MCPcopy Create free account

hub / github.com/Topdu/OpenOCR / functions

Functions1,872 in github.com/Topdu/OpenOCR

↓ 1 callersFunctionmain
()
tools/eval_rec.py:20
↓ 1 callersFunctionmain
()
tools/train_det.py:26
↓ 1 callersFunctionmain
(cfg, type)
tools/export_rec.py:63
↓ 1 callersFunctionmain
()
tools/eval_rec_all_long.py:24
↓ 1 callersFunctionmain
(cfg)
tools/toonnx.py:33
↓ 1 callersFunctionmain
Example usage.
tools/infer_unirec_onnx.py:733
↓ 1 callersFunctionmain
(cfg_det, cfg_rec)
tools/infer_e2e_parallel.py:125
↓ 1 callersFunctionmain
()
tools/train_rec.py:26
↓ 1 callersFunctionmain
()
tools/eval_rec_all_ch.py:23
↓ 1 callersFunctionmain
()
tools/eval_rec_all_long_simple.py:24
↓ 1 callersFunctionmain
()
tools/eval_rec_all_en.py:23
↓ 1 callersFunctionmain
()
tools/infer_e2e.py:405
↓ 1 callersFunctionmain
(cfg)
tools/infer_rec.py:452
↓ 1 callersFunctionmain
(args)
tools/infer/predict_rec.py:111
↓ 1 callersFunctionmain
(cfg)
tools/download/download_dataset.py:16
↓ 1 callersFunctionmake_divisible
(v, divisor=8, min_value=None, round_limit=0.9)
opendet/modeling/backbones/repvit.py:31
↓ 1 callersFunctionmany_to_one
( local_sigma_table, local_tau_table, local_accumulative_recall,
tools/utils/e2e_metric/Deteval.py:572
↓ 1 callersFunctionmatch_ss
(ss1, ss2)
openrec/metrics/rec_metric.py:6
↓ 1 callersFunctionmerge_images
Merge images vertically with given alignment. Args: images (List[PIL.Image or np.ndarray]): List of images to merge. aligns
tools/utils/opendoc_onnx_utils/utils.py:218
↓ 1 callersFunctionmotion_blur
(img: np.ndarray, radius: int, sigma: float, angle: float)
openrec/preprocess/cmer_label_encode.py:386
↓ 1 callersMethodno_weight_decay
(self)
openrec/modeling/encoders/vit.py:102
↓ 1 callersFunctionone_to_many
( local_sigma_table, local_tau_table, local_accumulative_recall,
tools/utils/e2e_metric/Deteval.py:484
↓ 1 callersFunctionone_to_one
( local_sigma_table, local_tau_table, local_accumulative_recall,
tools/utils/e2e_metric/Deteval.py:419
↓ 1 callersFunctionorg_tcl_rois
tools/utils/e2e_utils/extract_batchsize.py:6
↓ 1 callersFunctionotsl_extract_tokens_and_text
Extract OTSL tags and text parts from the input string. Args: s (str): OTSL string. Returns: Tuple[List[str], List[str]
tools/utils/opendoc_onnx_utils/utils.py:675
↓ 1 callersFunctionotsl_pad_to_sqr_v2
Pad OTSL string to a square (rectangular) format, ensuring each row has equal number of cells. Args: otsl_str (str): OTSL string.
tools/utils/opendoc_onnx_utils/utils.py:848
↓ 1 callersFunctionotsl_parse_texts
Parse OTSL text and tags into TableCell objects and tag structure. Args: texts (List[str]): List of tokens and text. tokens
tools/utils/opendoc_onnx_utils/utils.py:696
↓ 1 callersFunctionoverlapwith_other_box
(block_idx, prev_idx, blocks)
tools/utils/opendoc_onnx_utils/utils.py:293
↓ 1 callersFunctionpaint_token
Fill a rectangular area in the image with a white background and write the given token string. Args: image (np.ndarray): Image to pa
tools/utils/opendoc_onnx_utils/utils.py:416
↓ 1 callersFunctionparam_groups_weight_decay
(model: nn.Module, weight_decay=1e-5, no_weight_de
openrec/optimizer/__init__.py:8
↓ 1 callersFunctionparse_args
()
tools/eval_det.py:14
↓ 1 callersFunctionparse_args
()
tools/eval_rec.py:14
↓ 1 callersFunctionparse_args
()
tools/train_det.py:14
↓ 1 callersFunctionparse_args
()
tools/export_rec.py:101
↓ 1 callersFunctionparse_args
()
tools/eval_rec_all_long.py:18
↓ 1 callersFunctionparse_args
()
tools/toonnx.py:64
↓ 1 callersFunctionparse_args
()
tools/train_rec.py:14
↓ 1 callersFunctionparse_args
()
tools/eval_rec_all_ch.py:17
↓ 1 callersFunctionparse_args
()
tools/eval_rec_all_long_simple.py:18
↓ 1 callersFunctionparse_args
()
tools/eval_rec_all_en.py:17
↓ 1 callersFunctionparse_args
()
tools/infer/utility.py:76
↓ 1 callersMethodpaste_img
(self, src_img, box_img, src_polys)
opendet/preprocess/crop_paste.py:80
↓ 1 callersFunctionplasma_fractal
(mapsize=256, wibbledecay=3, rng=None)
openrec/preprocess/cmer_label_encode.py:343
↓ 1 callersFunctionpoint_pair2poly
Transfer vertical point_pairs into poly point in clockwise.
tools/utils/e2e_utils/extract_textpoint_fast.py:281
↓ 1 callersFunctionpoint_pair2poly
Transfer vertical point_pairs into poly point in clockwise.
tools/utils/e2e_utils/visual.py:82
↓ 1 callersFunctionpoly_iou
Calculate the IOU between two polygons. Args: poly_det (Polygon): A polygon predicted by detector. poly_gt (Polygon): A gt polygo
tools/utils/poly_nms.py:94
↓ 1 callersFunctionpoly_union
Calculate the union area between two polygon. Args: poly_det (Polygon): A polygon predicted by detector. poly_gt (Polygon): A gt
tools/utils/poly_nms.py:45
↓ 1 callersMethodpolygon_area
compute polygon area
opendet/preprocess/db_label_encode.py:304
↓ 1 callersMethodpolygons_from_bitmap
_bitmap: single map with shape (1, H, W), whose values are binarized as {0, 1}
opendet/postprocess/db_postprocess.py:42
↓ 1 callersMethodpool_h_2
(self, x)
openrec/modeling/decoders/ctc_decoder.py:112
↓ 1 callersMethodpostprocess
后处理,仿照 get_layout_parsing_results 的逻辑 Args: image: 原始图像 (BGR格式) outputs: 模型输出 scale: 缩放因子 (scale
tools/infer_doc_onnx.py:388
↓ 1 callersMethodpred_reverse
(self, pred)
openrec/postprocess/ctc_postprocess.py:36
↓ 1 callersMethodpredict
Predicts the layout parsing result for the given input. Args: input (Union[str, list[str], np.ndarray, list[np.ndarray]]
tools/infer_doc.py:421
↓ 1 callersMethodpreprocess
Args: image: BGR格式的图像 target_input_size: 目标尺寸 (height, width) Returns: 输入字典, (scale_h, scale_w),
tools/infer_doc_onnx.py:344
↓ 1 callersMethodprint_cfg
Recursively visualize a dict and indenting acrrording by the relationship of keys.
tools/engine/config.py:147
↓ 1 callersFunctionprint_dict
Recursively visualize a dict and indenting acrrording by the relationship of keys.
tools/engine/config.py:88
↓ 1 callersFunctionprocess_batch
(process_batch_list: list, gpuId: int, output_path: str, is_save_vis_img: bool, is_save_json
tools/infer_doc.py:796
↓ 1 callersMethodprocess_images
Process a list of images.
tools/infer_e2e_parallel.py:103
↓ 1 callersFunctionrand_augment_choices
(name: str, increasing=True)
openrec/preprocess/auto_augment.py:719
↓ 1 callersFunctionrand_augment_ops
( magnitude: Union[int, float] = 10, prob: float = 0.5, hparams: Optional[Dict] = None, transf
openrec/preprocess/auto_augment.py:729
↓ 1 callersFunctionrandom_color
生成一个随机的 RGB 颜色元组 (0.0 到 1.0 之间).
tools/data/native_size_dataset.py:61
↓ 1 callersMethodrandom_pad
(self, img: Image.Image)
openrec/preprocess/rec_aug.py:237
↓ 1 callersFunctionread_file
(filename)
setup.py:10
↓ 1 callersMethodreflect_random_idices
(self, text, eps=1e-3)
openrec/preprocess/mdiff_label_encode.py:254
↓ 1 callersFunctionremove_blank
(labels, blank=0)
tools/utils/e2e_utils/extract_textpoint_fast.py:49
↓ 1 callersFunctionremove_blank
(labels, blank=0)
tools/utils/e2e_utils/extract_textpoint_slow.py:112
↓ 1 callersMethodremove_space_before_sn
(self, text, rep_str)
tools/data/native_size_dataset.py:647
↓ 1 callersMethodrender_normal
(self, font, text)
openrec/preprocess/cam_label_encode.py:65
↓ 1 callersMethodrep
(self)
openrec/modeling/encoders/rec_lcnetv3.py:185
↓ 1 callersMethodreset
reset
tools/utils/utility.py:153
↓ 1 callersMethodresize_image
(self, original_width, original_height, max_width, max_height)
openrec/preprocess/resize.py:326
↓ 1 callersMethodresize_image_type0
resize image to a size multiple of 32 which is required by the network args: img(array): array with shape [h, w, c]
opendet/preprocess/db_resize_for_test.py:67
↓ 1 callersMethodresize_image_type1
(self, img)
opendet/preprocess/db_resize_for_test.py:54
↓ 1 callersMethodresize_image_type2
(self, img)
opendet/preprocess/db_resize_for_test.py:116
↓ 1 callersFunctionresize_norm_img
(img, image_shape, padding=True, interpolation=cv2
openrec/preprocess/resize.py:402
↓ 1 callersMethodresize_norm_img
(self, data, gen_ratio, padding=True)
tools/data/ratio_dataset_test.py:192
↓ 1 callersMethodresize_norm_img
(self, data, gen_ratio, padding=True)
tools/data/ratio_dataset_tvresize.py:136
↓ 1 callersMethodresize_norm_img
(self, data, gen_ratio, padding=True)
tools/data/ratio_dataset_tvresize_test.py:201
↓ 1 callersMethodresize_norm_img
(self, data, imgW, imgH,
tools/data/native_size_dataset.py:600
↓ 1 callersMethodresize_norm_img
(self, data, imgW, imgH, padding=True)
tools/data/simple_dataset.py:196
↓ 1 callersMethodresize_norm_img
(self, data, gen_ratio, padding=True)
tools/data/ratio_dataset.py:134
↓ 1 callersMethodresize_norm_img
(self, img, max_wh_ratio)
tools/infer/predict_rec.py:48
↓ 1 callersFunctionresize_norm_img_abinet
(img, image_shape)
openrec/preprocess/resize.py:45
↓ 1 callersFunctionresize_norm_img_long
( data, base_shape=[[64, 64], [96, 48], [112, 40], [128, 32]], max_ratio=12, base_h=32, pa
openrec/preprocess/resize.py:434
↓ 1 callersFunctionresize_norm_img_sar
(img, image_shape, width_downsample_ratio=0.25)
openrec/preprocess/resize.py:527
↓ 1 callersFunctionresize_norm_img_slice
( img, image_shape, base_shape=[[64, 64], [96, 48], [112, 40], [128, 32]], max_ratio=12, b
openrec/preprocess/resize.py:364
↓ 1 callersFunctionresize_norm_img_srn
(img, image_shape)
openrec/preprocess/resize.py:575
↓ 1 callersFunctionrestore_poly
(instance_yxs_list, seq_strs, p_border, ratio_w, ratio_h, src_w, src_h, valid_set)
tools/utils/e2e_utils/extract_textpoint_fast.py:331
↓ 1 callersFunctionrotate
(img, degrees, **kwargs)
openrec/preprocess/auto_augment.py:104
↓ 1 callersFunctionrotate_bbox
from https://github.com/WenmuZhou/DBNet.pytorch/blob/master/data_loader/modules/augment.py Args: img: np.ndarray text_polys:
opendet/preprocess/crop_paste.py:147
↓ 1 callersMethodrun_all_tests
Run all tests
test_openocr.py:331
↓ 1 callersMethodsave_visualization
保存可视化结果
tools/infer_doc_onnx.py:1207
↓ 1 callersMethodselect_coord
(self, src_polys, box, endx, endy)
opendet/preprocess/crop_paste.py:104
↓ 1 callersFunctionset_device
(device, numId=0)
tools/infer_det.py:143
↓ 1 callersFunctionset_device
(device, numId=0)
tools/infer_rec.py:181
↓ 1 callersMethodset_epoch_as_seed
(self, seed, dataset_config)
tools/data/simple_dataset.py:55
↓ 1 callersMethodset_random_seed
(self, seed)
tools/engine/trainer.py:221
↓ 1 callersMethodshuffle_data_random
(self)
tools/data/simple_dataset.py:89
↓ 1 callersFunctionsoftmax
logits: N x d
tools/utils/e2e_utils/extract_textpoint_slow.py:83
↓ 1 callersFunctionsoftmax_m1
(x: torch.Tensor, dim: int)
openrec/modeling/decoders/lister_decoder.py:184
← previousnext →601–700 of 1,872, ranked by callers