MCPcopy Create free account

hub / github.com/Topdu/OpenOCR / functions

Functions1,872 in github.com/Topdu/OpenOCR

↓ 1 callersMethod_calc_blended_weights
(self, ws, m)
openrec/preprocess/auto_augment.py:896
↓ 1 callersMethod_calculate_target_size
Calculate target size with aspect ratio preservation.
tools/infer_unirec_onnx.py:212
↓ 1 callersMethod_call_det
Call detection task
openocr.py:245
↓ 1 callersMethod_call_doc
Call Doc task (supports image and PDF input)
openocr.py:261
↓ 1 callersMethod_call_ocr
Call OCR task
openocr.py:253
↓ 1 callersMethod_call_rec
Call recognition task
openocr.py:249
↓ 1 callersMethod_call_unirec
Call UniRec task (supports image and PDF input)
openocr.py:257
↓ 1 callersMethod_constant_border
(img: np.ndarray, pad_px: int, value: int = 255)
openrec/preprocess/cmer_label_encode.py:516
↓ 1 callersMethod_distance
compute the distance from point to a line ys: coordinates in the first axis xs: coordinates in the second axis point_
opendet/preprocess/db_label_encode.py:152
↓ 1 callersFunction_download
(url: str, root: str)
openrec/modeling/decoders/dptr_parseq_clip_b_decoder.py:300
↓ 1 callersMethod_filter
Internal method which performs the necessary filtering prior to decoding.
openrec/preprocess/dptr_label_encode.py:71
↓ 1 callersMethod_gen_t_index
(self, real_len, device)
openrec/modeling/decoders/lister_decoder.py:50
↓ 1 callersMethod_get_execution_providers
Determine execution providers based on GPU availability and user preference. Args: use_gpu: None (auto-detect), True (force GPU),
tools/infer_doc_onnx.py:270
↓ 1 callersMethod_get_execution_providers
Determine execution providers based on GPU availability and user preference. Args: use_gpu: None (auto-detect), True (force GPU),
tools/infer_unirec_onnx.py:444
↓ 1 callersMethod_get_inverse_affine_matrix
(self, center, angle, translate, scale, shear)
openrec/preprocess/abinet_aug.py:121
↓ 1 callersMethod_get_kernel_bias
(self)
openrec/modeling/encoders/rec_lcnetv3.py:207
↓ 1 callersFunction_get_weighted_transforms
(transforms: Dict)
openrec/preprocess/auto_augment.py:712
↓ 1 callersMethod_handle_figure
Handle figure content
tools/to_markdown.py:261
↓ 1 callersMethod_handle_heading
Convert section headings to appropriate markdown format
tools/to_markdown.py:236
↓ 1 callersMethod_handle_list_item
Convert list items to markdown list format
tools/to_markdown.py:251
↓ 1 callersMethod_ids2tok
(self, token_ids: List[int], join: bool = True)
openrec/preprocess/dptr_label_encode.py:51
↓ 1 callersMethod_infer_single_image
Run inference on a single BGR numpy image (used for PDF pages). Args: img_numpy: Input image as numpy array (BGR format)
tools/infer_doc_onnx.py:1030
↓ 1 callersMethod_inference_onnx
(self, images)
tools/infer_det.py:252
↓ 1 callersMethod_inference_onnx
(self, images)
tools/infer_rec.py:327
↓ 1 callersMethod_init_common
(self, config)
tools/infer_det.py:218
↓ 1 callersMethod_init_common
(self)
tools/infer_rec.py:267
↓ 1 callersMethod_init_det_model
(self)
tools/engine/trainer.py:202
↓ 1 callersMethod_init_det_task
Initialize detection task
openocr.py:168
↓ 1 callersMethod_init_doc_task
Initialize Doc task (document OCR with layout)
openocr.py:188
↓ 1 callersMethod_init_ocr_task
Initialize OCR task (detection + recognition)
openocr.py:178
↓ 1 callersMethod_init_rec_model
(self)
tools/engine/trainer.py:164
↓ 1 callersMethod_init_rec_task
Initialize recognition task
openocr.py:173
↓ 1 callersMethod_init_torch_model
(self, config, numId=0)
tools/infer_det.py:238
↓ 1 callersMethod_init_torch_model
(self, numId)
tools/infer_rec.py:286
↓ 1 callersMethod_init_unirec_task
Initialize UniRec task (universal recognition)
openocr.py:183
↓ 1 callersMethod_init_weights
(self)
openrec/modeling/encoders/rec_hgnet.py:235
↓ 1 callersFunction_interpolation
(kwargs)
openrec/preprocess/auto_augment.py:53
↓ 1 callersMethod_load_config_with_base
Load config from file. Args: file_path (str): Path of the config file to be loaded. Returns: global config
tools/engine/config.py:109
↓ 1 callersMethod_maybe_augment_uint8
(self, img_uint8: np.ndarray, seed: Optional[int], pre_pad_px: int)
openrec/preprocess/cmer_label_encode.py:532
↓ 1 callersMethod_pad_kernel_1x1_to_kxk
(self, kernel1x1, pad)
openrec/modeling/encoders/rec_lcnetv3.py:201
↓ 1 callersMethod_parallel_vlm_recognize
Run VLM recognition on multiple blocks in parallel. Uses ThreadPoolExecutor with multiple UniRecONNX instances to process up to max_p
tools/infer_doc_onnx.py:657
↓ 1 callersMethod_parse_opt
(self, opts)
tools/utility.py:25
↓ 1 callersMethod_parse_opt
(self, opts)
tools/engine/config.py:27
↓ 1 callersMethod_pdf_to_images
Convert PDF file to a list of BGR numpy images. Args: pdf_path: Path to PDF file Returns: List of numpy arra
tools/infer_doc_onnx.py:727
↓ 1 callersMethod_pdf_to_images
Convert PDF file to a list of PIL Images. Args: pdf_path: Path to PDF file Returns: List of PIL Image object
tools/infer_unirec_onnx.py:541
↓ 1 callersFunction_posterize_level_to_arg
(level, _hparams)
openrec/preprocess/auto_augment.py:264
↓ 1 callersMethod_prep_uint8
(self, img, input_data_format)
openrec/preprocess/cmer_label_encode.py:549
↓ 1 callersMethod_preprocess_labels
(self, charset, remove_whitespace, normalize_unicode, max_label_len, min_image_dim)
tools/data/lmdb_dataset_test.py:107
↓ 1 callersMethod_process_formulas_in_text
Process mathematical formulas in text by iteratively finding and replacing formulas. - Identify inline and block formulas - R
tools/to_markdown.py:200
↓ 1 callersMethod_recognize_single_block
Recognize a single block using the shared VLM recognizer. The underlying ONNX Runtime session is thread-safe, so multiple threads can
tools/infer_doc_onnx.py:615
↓ 1 callersMethod_remove_newline_in_heading
Remove newline in heading
tools/to_markdown.py:217
↓ 1 callersMethod_reset_parameters
r"""Initiate parameters in the transformer model.
openrec/modeling/decoders/cdistnet_decoder.py:330
↓ 1 callersFunction_solarize_level_to_arg
(level, _hparams)
openrec/preprocess/auto_augment.py:285
↓ 1 callersMethod_swin_stride_and_winsize
(self)
openrec/modeling/cmer_modeling/modeling_cmer.py:377
↓ 1 callersMethod_tok2ids
(self, tokens: str)
openrec/preprocess/dptr_label_encode.py:47
↓ 1 callersFunctionadd_gasuss_noise
Gasuss noise.
openrec/preprocess/rec_aug.py:310
↓ 1 callersMethodadd_special_char
(self, dict_character)
openrec/postprocess/ctc_postprocess.py:52
↓ 1 callersMethodadd_special_char
(self, dict_character)
openrec/preprocess/ctc_label_encode.py:65
↓ 1 callersMethodadd_special_char
(self, dict_character)
openrec/preprocess/ce_label_encode.py:65
↓ 1 callersMethodadd_value
(self, value)
tools/utils/stats.py:16
↓ 1 callersMethodalign_chars
(self, start_map, nb_map, max_ch=None)
openrec/modeling/decoders/lister_decoder.py:244
↓ 1 callersFunctionapply
()
openrec/preprocess/parseq_aug.py:40
↓ 1 callersFunctionapply_rope2d
(q: torch.Tensor, k: torch.Tensor, cos_sin_cache)
openrec/modeling/cmer_modeling/modeling_cmer.py:80
↓ 1 callersFunctionarea_of_union
(det_x, det_y, gt_x, gt_y)
tools/utils/e2e_metric/polygon_fast.py:54
↓ 1 callersMethodattention
(self, x: torch.Tensor)
openrec/modeling/decoders/dptr_parseq_clip_b_decoder.py:575
↓ 1 callersFunctionaugmix_ops
( magnitude: Union[int, float] = 10, hparams: Optional[Dict] = None, transforms: Optional[Union[st
openrec/preprocess/auto_augment.py:870
↓ 1 callersFunctionauto_augment_policy
(name='v0', hparams=None)
openrec/preprocess/auto_augment.py:560
↓ 1 callersFunctionauto_augment_policy_3a
(hparams)
openrec/preprocess/auto_augment.py:550
↓ 1 callersFunctionauto_augment_policy_original
(hparams)
openrec/preprocess/auto_augment.py:484
↓ 1 callersFunctionauto_augment_policy_originalr
(hparams)
openrec/preprocess/auto_augment.py:517
↓ 1 callersFunctionauto_augment_policy_v0
(hparams)
openrec/preprocess/auto_augment.py:416
↓ 1 callersFunctionauto_augment_policy_v0r
(hparams)
openrec/preprocess/auto_augment.py:450
↓ 1 callersFunctionavailable_models
Returns the names of available CLIP models
openrec/modeling/decoders/dptr_parseq_clip_b_decoder.py:359
↓ 1 callersFunctionbasic_clean
(text)
openrec/modeling/decoders/dptr_parseq_clip_b_decoder.py:93
↓ 1 callersMethodbatch_decode
(self, *args, **kwargs)
openrec/preprocess/cmer_label_encode.py:1024
↓ 1 callersFunctionboundary_iou
Calculate the IOU between two boundaries. Args: src (list): Source boundary. target (list): Target boundary. Returns: i
tools/utils/poly_nms.py:76
↓ 1 callersMethodbox_score_slow
box_score_slow: use polyon mean score as the mean score
opendet/postprocess/db_postprocess.py:189
↓ 1 callersMethodboxes_from_bitmap
_bitmap: single map with shape (1, H, W), whose values are binarized as {0, 1}
opendet/postprocess/db_postprocess.py:91
↓ 1 callersMethodbpe
(self, token)
openrec/modeling/decoders/dptr_parseq_clip_b_decoder.py:129
↓ 1 callersMethodbpe_decode
convert text-index into text-label.
openrec/postprocess/mgp_postprocess.py:105
↓ 1 callersMethodbpe_encode
(self, text)
openrec/preprocess/mgp_label_encode.py:78
↓ 1 callersMethodbpe_encode
(self, text)
openrec/preprocess/unirec_label_encode.py:52
↓ 1 callersFunctionbucket_len_shortedge_ratio
(data_iter, batch_size, pool_size=4096, len_key="tokens", se_key="se_bin", ar_
tools/data/cmer_web_dataset.py:132
↓ 1 callersMethodbuild
(self, args, root=True)
opendet/preprocess/iaa_augment.py:79
↓ 1 callersMethodbuild_C_paddle
Return coordinates of fiducial points in I_r; C.
openrec/modeling/transforms/tps.py:151
↓ 1 callersMethodbuild_P_hat_paddle
(self, C, P)
openrec/modeling/transforms/tps.py:196
↓ 1 callersMethodbuild_P_paddle
(self, I_r_size)
openrec/modeling/transforms/tps.py:162
↓ 1 callersMethodbuild_attention_mask
(self)
openrec/modeling/decoders/dptr_parseq_clip_b_decoder.py:742
↓ 1 callersFunctionbuild_backbone
(config)
opendet/modeling/backbones/__init__.py:4
↓ 1 callersFunctionbuild_encoder
(config)
openrec/modeling/encoders/__init__.py:31
↓ 1 callersFunctionbuild_head
(config)
opendet/modeling/heads/__init__.py:4
↓ 1 callersMethodbuild_inv_delta_C_paddle
Return inv_delta_C which is needed to calculate T.
openrec/modeling/transforms/tps.py:176
↓ 1 callersFunctionbuild_model
(config)
opendet/modeling/__init__.py:8
↓ 1 callersFunctionbuild_model
(state_dict: dict)
openrec/modeling/decoders/dptr_parseq_clip_b_decoder.py:246
↓ 1 callersFunctionbuild_neck
(config)
opendet/modeling/necks/__init__.py:4
↓ 1 callersFunctionbuild_optimizer
(optim_config, lr_scheduler_config, epochs, step_each_epoch, model)
openrec/optimizer/__init__.py:36
↓ 1 callersFunctionbuild_output_control_points
(num_control_points, margins)
openrec/modeling/transforms/aster_tps.py:128
↓ 1 callersFunctionbuild_transform
(config)
openrec/modeling/transforms/__init__.py:4
↓ 1 callersFunctionbuild_wheel
Build the wheel package
build_package.py:82
↓ 1 callersMethodcalc_entropy
Args: p: probability distribution over the last dimension, of size (..., L, C) mask: (..., L)
openrec/modeling/decoders/lister_decoder.py:500
← previousnext →301–400 of 1,872, ranked by callers