MCPcopy Create free account

hub / github.com/discus0434/pdf-translator / functions

Functions383 in github.com/discus0434/pdf-translator

↓ 1 callersFunctionctc_greedy_decoder
CTC greedy (best path) decoder.
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_slow.py:137
↓ 1 callersMethoddecode_label
convert text-label into text-index.
utils/ocr_model/ppocr_onnx/ppocr/postprocess/table_postprocess.py:98
↓ 1 callersMethoddecode_pred
(self, pred_relations)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/vqa_token_re_layoutlm_postprocess.py:55
↓ 1 callersMethoddetect
restore text boxes from score map and geo map
utils/ocr_model/ppocr_onnx/ppocr/postprocess/east_postprocess.py:52
↓ 1 callersMethoddetect_sast
first resize the tcl_map, tvo_map and tbo_map to the input_size, then restore the polys
utils/ocr_model/ppocr_onnx/ppocr/postprocess/sast_postprocess.py:199
↓ 1 callersFunctiondownload_with_progressbar
(url, save_path)
utils/ocr_model/ppocr_onnx/ppocr/utils/network.py:24
↓ 1 callersFunctiondraw_box_txt_fine
(img_size, box, txt, font_path="./doc/fonts/simfang.ttf")
utils/ocr_model/ppocr_onnx/tools/infer/utility.py:334
↓ 1 callersMethoddraw_crop_rec_res
(self, output_dir, img_crop_list, rec_res)
utils/ocr_model/ppocr_onnx/ppocr_onnx.py:27
↓ 1 callersMethoddraw_crop_rec_res
(self, output_dir, img_crop_list, rec_res)
utils/ocr_model/ppocr_onnx/tools/infer/predict_system.py:56
↓ 1 callersFunctiondraw_ocr_box_txt
(image, boxes, txts=None, scores=None,
utils/ocr_model/ppocr_onnx/tools/infer/utility.py:303
↓ 1 callersMethodestimate_sample_pts_num
Estimate sample points number.
utils/ocr_model/ppocr_onnx/ppocr/postprocess/sast_postprocess.py:174
↓ 1 callersFunctionexpand_poly_along_width
expand poly along width.
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:319
↓ 1 callersFunctionexpand_poly_along_width
expand poly along width.
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/visual.py:128
↓ 1 callersMethodexpand_poly_along_width
expand poly along width.
utils/ocr_model/ppocr_onnx/ppocr/postprocess/sast_postprocess.py:80
↓ 1 callersFunctionextract_main_direction
f_direction: h x w x 2 pos_list: [[y, x], [y, x], [y, x] ...]
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_slow.py:492
↓ 1 callersMethodfcenet_decode
Decoding predictions of FCENet to instances. Args: preds (list(Tensor)): The head output tensors. fourier_degree (int
utils/ocr_model/ppocr_onnx/ppocr/postprocess/fce_postprocess.py:153
↓ 1 callersFunctionfill_hole
(input_mask)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/fce_postprocess.py:25
↓ 1 callersMethodfilter_tag_det_res
(self, dt_boxes, image_shape)
utils/ocr_model/ppocr_onnx/tools/infer/predict_det.py:183
↓ 1 callersMethodfilter_tag_det_res_only_clip
(self, dt_boxes, image_shape)
utils/ocr_model/ppocr_onnx/tools/infer/predict_det.py:199
↓ 1 callersFunctionfix_corner
(top_line, bot_line, start_box, end_box)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/drrg_postprocess.py:192
↓ 1 callersFunctionfourier2poly
Inverse Fourier transform Args: fourier_coeff (ndarray): Fourier coefficients shaped (n, 2k+1), with n and k bein
utils/ocr_model/ppocr_onnx/ppocr/postprocess/fce_postprocess.py:38
↓ 1 callersFunctionfw_fill
(text, width=MAXWIDTH, **kwargs)
utils/textwrap_japanese.py:137
↓ 1 callersFunctionfw_wrap
(text, width=MAXWIDTH, **kwargs)
utils/textwrap_japanese.py:132
↓ 1 callersFunctiongen_det_label
(root_path, input_dir, out_label)
utils/ocr_model/ppocr_onnx/ppocr/utils/gen_label.py:29
↓ 1 callersFunctiongen_rec_label
(input_path, out_label)
utils/ocr_model/ppocr_onnx/ppocr/utils/gen_label.py:19
↓ 1 callersFunctiongenerate_pivot_list_curved
return center point and end point of TCL instance; filter with the char maps;
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_slow.py:323
↓ 1 callersFunctiongenerate_pivot_list_fast
return center point and end point of TCL instance; filter with the char maps;
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:386
↓ 1 callersFunctiongenerate_pivot_list_horizontal
return center point and end point of TCL instance; filter with the char maps;
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_slow.py:382
↓ 1 callersFunctiongenerate_pivot_list_slow
Warp all the function together.
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_slow.py:462
↓ 1 callersMethodget_beg_end_flag_idx
(self, beg_or_end)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/rec_postprocess.py:354
↓ 1 callersMethodget_boundary
(self, score_maps, shape_list)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/fce_postprocess.py:123
↓ 1 callersFunctionget_dict
(character_dict_path)
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:27
↓ 1 callersMethodget_ignored_tokens
(self)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/rec_postprocess.py:99
↓ 1 callersMethodget_ignored_tokens
(self)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/rec_postprocess.py:350
↓ 1 callersMethodget_ignored_tokens
(self)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/rec_postprocess.py:478
↓ 1 callersMethodget_ignored_tokens
(self)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/rec_postprocess.py:567
↓ 1 callersFunctionget_keep_pos_idxs
Remove duplicate and get pos idxs of keep items. The value of keep_blank should be [None, 95].
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:49
↓ 1 callersFunctionget_keep_pos_idxs
Remove duplicate and get pos idxs of keep items. The value of keep_blank should be [None, 95].
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_slow.py:107
↓ 1 callersMethodget_median_value
(self)
utils/ocr_model/ppocr_onnx/ppocr/utils/stats.py:33
↓ 1 callersFunctiongraph_propagation
(edges, scores, text_comps, edge_len_thr=50.)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/drrg_postprocess.py:45
↓ 1 callersFunctionhard_nms
Args: box_scores (N, 5): boxes in corner-form and probabilities. iou_threshold: intersection over union threshold. top_k:
utils/ocr_model/ppocr_onnx/ppocr/postprocess/picodet_postprocess.py:19
↓ 1 callersMethodimage_padding
(self, im, value=0)
utils/ocr_model/ppocr_onnx/ppocr/data/imaug/operators.py:238
↓ 1 callersMethodimg_info
(self, ori_img, img)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/picodet_postprocess.py:133
↓ 1 callersFunctioninit_args
()
utils/ocr_model/ppocr_onnx/tools/infer/utility.py:31
↓ 1 callersFunctioninstance_ctc_greedy_decoder
(gather_info, logits_map, pts_num=4,
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:91
↓ 1 callersFunctioninstance_ctc_greedy_decoder
gather_info: [[x, y], [x, y] ...] logits_map: H x W X (n_chars + 1)
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_slow.py:149
↓ 1 callersFunctioniou_of
Return intersection-over-union (Jaccard index) of boxes. Args: boxes0 (N, 4): ground truth boxes. boxes1 (N or 1, 4): predicted bo
utils/ocr_model/ppocr_onnx/ppocr/postprocess/picodet_postprocess.py:51
↓ 1 callersFunctioniou_single
(a, b, mask, n_class)
utils/ocr_model/ppocr_onnx/ppocr/utils/iou.py:24
↓ 1 callersMethodload_layout_dict
(self, layout_dict_path)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/picodet_postprocess.py:104
↓ 1 callersFunctionload_pretrained_params
(model, path)
utils/ocr_model/ppocr_onnx/ppocr/utils/save_load.py:146
↓ 1 callersFunctionload_vqa_bio_label_maps
(label_map_path)
utils/ocr_model/ppocr_onnx/ppocr/utils/utility.py:107
↓ 1 callersMethodlog
(self, extras=None)
utils/ocr_model/ppocr_onnx/ppocr/utils/stats.py:66
↓ 1 callersFunctionmain
Translates a PDF or all PDFs in a directory. Parameters ---------- args : argparse.Namespace Arguments passed to the script.
cli.py:34
↓ 1 callersFunctionmain
(args)
utils/ocr_model/ppocr_onnx/tools/infer/predict_rec.py:627
↓ 1 callersFunctionmain
(args)
utils/ocr_model/ppocr_onnx/tools/infer/predict_cls.py:125
↓ 1 callersFunctionmain
(args)
utils/ocr_model/ppocr_onnx/tools/infer/predict_system.py:137
↓ 1 callersFunctionmin_connect_path
(points)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/drrg_postprocess.py:141
↓ 1 callersMethodnms
(self, dets)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/sast_postprocess.py:137
↓ 1 callersMethodnorm_img_can
(self, img, image_shape)
utils/ocr_model/ppocr_onnx/tools/infer/predict_rec.py:360
↓ 1 callersMethodorder_points_clockwise
(self, pts)
utils/ocr_model/ppocr_onnx/tools/infer/predict_det.py:166
↓ 1 callersFunctionorg_tcl_rois
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_batchsize.py:6
↓ 1 callersMethodpg_postprocess_fast
(self)
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/pgnet_pp_utils.py:44
↓ 1 callersMethodpg_postprocess_slow
(self)
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/pgnet_pp_utils.py:77
↓ 1 callersFunctionpoint_pair2poly
Transfer vertical point_pairs into poly point in clockwise.
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:299
↓ 1 callersFunctionpoint_pair2poly
Transfer vertical point_pairs into poly point in clockwise.
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/visual.py:97
↓ 1 callersMethodpoint_pair2poly
Transfer vertical point_pairs into poly point in clockwise.
utils/ocr_model/ppocr_onnx/ppocr/postprocess/sast_postprocess.py:55
↓ 1 callersFunctionpoly_iou
Calculate the IOU between two polygons. Args: poly_det (Polygon): A polygon predicted by detector. poly_gt (Polygon): A gt polygo
utils/ocr_model/ppocr_onnx/ppocr/utils/poly_nms.py:108
↓ 1 callersFunctionpoly_union
Calculate the union area between two polygon. Args: poly_det (Polygon): A polygon predicted by detector. poly_gt (Polygon): A gt
utils/ocr_model/ppocr_onnx/ppocr/utils/poly_nms.py:59
↓ 1 callersMethodpolygons_from_bitmap
_bitmap: single map with shape (1, H, W), whose values are binarized as {0, 1}
utils/ocr_model/ppocr_onnx/ppocr/postprocess/db_postprocess.py:55
↓ 1 callersMethodpred_reverse
(self, pred)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/rec_postprocess.py:48
↓ 1 callersMethodprocess_image_srn
(self, img, image_shape, num_heads, max_text_length)
utils/ocr_model/ppocr_onnx/tools/infer/predict_rec.py:262
↓ 1 callersMethodquad_area
compute area of a quad.
utils/ocr_model/ppocr_onnx/ppocr/postprocess/sast_postprocess.py:127
↓ 1 callersFunctionremove_blank
(labels, blank=0)
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:67
↓ 1 callersFunctionremove_blank
(labels, blank=0)
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_slow.py:125
↓ 1 callersFunctionremove_single
(text_comps, comp_pred_labels)
utils/ocr_model/ppocr_onnx/ppocr/postprocess/drrg_postprocess.py:120
↓ 1 callersMethodreset
reset
utils/ocr_model/ppocr_onnx/ppocr/utils/utility.py:136
↓ 1 callersMethodresize_boundary
Rescale boundaries via scale_factor. Args: boundaries (list[list[float]]): The boundary list. Each boundary with size
utils/ocr_model/ppocr_onnx/ppocr/postprocess/fce_postprocess.py:99
↓ 1 callersMethodresize_boundary
Rescale boundaries via scale_factor. Args: boundaries (list[list[float]]): The boundary list. Each boundary with size
utils/ocr_model/ppocr_onnx/ppocr/postprocess/drrg_postprocess.py:304
↓ 1 callersMethodresize_boxes
(self, im, points, scale_factor)
utils/ocr_model/ppocr_onnx/ppocr/data/imaug/operators.py:442
↓ 1 callersMethodresize_image
(self, img)
utils/ocr_model/ppocr_onnx/ppocr/data/imaug/operators.py:174
↓ 1 callersMethodresize_image
resize image to a size multiple of max_stride which is required by the network :param im: the resized image :param max_side_l
utils/ocr_model/ppocr_onnx/ppocr/data/imaug/operators.py:368
↓ 1 callersMethodresize_image
(self, img)
utils/ocr_model/ppocr_onnx/ppocr/data/imaug/operators.py:420
↓ 1 callersMethodresize_image_for_totaltext
(self, im, max_side_len=512)
utils/ocr_model/ppocr_onnx/ppocr/data/imaug/operators.py:349
↓ 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]
utils/ocr_model/ppocr_onnx/ppocr/data/imaug/operators.py:257
↓ 1 callersMethodresize_image_type1
(self, img)
utils/ocr_model/ppocr_onnx/ppocr/data/imaug/operators.py:244
↓ 1 callersMethodresize_image_type2
(self, img)
utils/ocr_model/ppocr_onnx/ppocr/data/imaug/operators.py:306
↓ 1 callersFunctionresize_img
resize img and limit the longest side of the image to input_size
utils/ocr_model/ppocr_onnx/tools/infer/utility.py:251
↓ 1 callersMethodresize_norm_img
(self, img, max_wh_ratio)
utils/ocr_model/ppocr_onnx/tools/infer/predict_rec.py:144
↓ 1 callersMethodresize_norm_img
(self, img)
utils/ocr_model/ppocr_onnx/tools/infer/predict_cls.py:52
↓ 1 callersMethodresize_norm_img_abinet
(self, img, image_shape)
utils/ocr_model/ppocr_onnx/tools/infer/predict_rec.py:342
↓ 1 callersMethodresize_norm_img_spin
(self, img)
utils/ocr_model/ppocr_onnx/tools/infer/predict_rec.py:314
↓ 1 callersMethodresize_norm_img_srn
(self, img, image_shape)
utils/ocr_model/ppocr_onnx/tools/infer/predict_rec.py:205
↓ 1 callersMethodresize_norm_img_svtr
(self, img, image_shape)
utils/ocr_model/ppocr_onnx/tools/infer/predict_rec.py:331
↓ 1 callersMethodresize_norm_img_vl
(self, img, image_shape)
utils/ocr_model/ppocr_onnx/tools/infer/predict_rec.py:195
↓ 1 callersFunctionrestore_poly
(instance_yxs_list, seq_strs, p_border, ratio_w, ratio_h, src_w, src_h, valid_set)
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:345
↓ 1 callersMethodrestore_quad
Restore quad.
utils/ocr_model/ppocr_onnx/ppocr/postprocess/sast_postprocess.py:107
↓ 1 callersMethodrestore_rectangle_quad
Restore rectangle from quadrangle.
utils/ocr_model/ppocr_onnx/ppocr/postprocess/east_postprocess.py:41
↓ 1 callersFunctionsoftmax
logits: N x d
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:38
↓ 1 callersFunctionsoftmax
logits: N x d
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_slow.py:96
↓ 1 callersFunctionsort_and_expand_with_direction_v2
f_direction: h x w x 2 pos_list: [[y, x], [y, x], [y, x] ...] binary_tcl_map: h x w
utils/ocr_model/ppocr_onnx/ppocr/utils/e2e_utils/extract_textpoint_fast.py:247
← previousnext →101–200 of 383, ranked by callers