AI Slop Code RIsk Monitor

PaddlePaddle/PaddleOCR

Turn any PDF or image document into structured data for your AI. A powerful, lightweight OCR toolkit that bridges the gap between images/PDFs and LLMs. Supports 100+ languages.

7.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for PaddlePaddle/PaddleOCR, a Python project with 90,888 GitHub stars. SynthScan examined 481,682 lines of code across 1993 source files, recording 3073 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 7.3 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

7.3
Adjusted Signal
7.3
Raw Pattern Score
100%
Time Factor
2026-09-16
Last Push
90.9K
Stars
Python
Language
481.7K
Lines of Code
2.0K
Files
3.1K
Pattern Hits
2026-10-12
Scan Date
0.05
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 14.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1480 finding(s).

Hallucinated Dependency & Supply Chain Risk 13.3/100 · LOW

Are imports declared and package/API names verified? 1322 finding(s).

Agent Over-Engineering Ratio 11.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 776 finding(s).

PR Review Velocity Impact 31.6/100 · MEDIUM

Which changes need focused human review? 3073 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 5HIGH 101MEDIUM 21LOW 2946

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 3073 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Unused Imports1304 hits · 1225 pts
SeverityFileLineSnippetContext
LOWbenchmark/analysis.py15CODE
LOWbenchmark/PaddleOCR_DBNet/post_processing/__init__.py5CODE
LOWbenchmark/PaddleOCR_DBNet/tools/export_model.py8CODE
LOWbenchmark/PaddleOCR_DBNet/tools/infer.py24CODE
LOWbenchmark/PaddleOCR_DBNet/tools/infer.py27CODE
LOWbenchmark/PaddleOCR_DBNet/utils/compute_mean_std.py7CODE
LOWbenchmark/PaddleOCR_DBNet/utils/util.py8CODE
LOWbenchmark/PaddleOCR_DBNet/utils/__init__.py4CODE
LOWbenchmark/PaddleOCR_DBNet/utils/__init__.py5CODE
LOWbenchmark/PaddleOCR_DBNet/utils/__init__.py6CODE
LOWbenchmark/PaddleOCR_DBNet/utils/__init__.py7CODE
LOWbenchmark/PaddleOCR_DBNet/utils/__init__.py8CODE
LOWbenchmark/PaddleOCR_DBNet/utils/cal_recall/__init__.py4CODE
LOWbenchmark/PaddleOCR_DBNet/utils/ocr_metric/__init__.py4CODE
LOW…PaddleOCR_DBNet/utils/ocr_metric/icdar2015/__init__.py5CODE
LOW…DBNet/utils/ocr_metric/icdar2015/detection/mtwi2018.py4CODE
LOW…BNet/utils/ocr_metric/icdar2015/detection/icdar2013.py3CODE
LOW…BNet/utils/ocr_metric/icdar2015/detection/icdar2013.py4CODE
LOW…_DBNet/utils/ocr_metric/icdar2015/detection/deteval.py3CODE
LOW…_DBNet/utils/ocr_metric/icdar2015/detection/deteval.py4CODE
LOWbenchmark/PaddleOCR_DBNet/models/__init__.py5CODE
LOWbenchmark/PaddleOCR_DBNet/models/__init__.py6CODE
LOWbenchmark/PaddleOCR_DBNet/models/losses/__init__.py5CODE
LOWbenchmark/PaddleOCR_DBNet/models/head/__init__.py4CODE
LOWbenchmark/PaddleOCR_DBNet/models/neck/__init__.py4CODE
LOWbenchmark/PaddleOCR_DBNet/models/backbone/__init__.py5CODE
LOWbenchmark/PaddleOCR_DBNet/models/backbone/resnet.py1CODE
LOW…chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py4CODE
LOW…chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py5CODE
LOW…chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py6CODE
LOW…chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py6CODE
LOW…chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py7CODE
LOW…chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py8CODE
LOWbenchmark/PaddleOCR_DBNet/base/base_dataset.py6CODE
LOWbenchmark/PaddleOCR_DBNet/base/base_trainer.py7CODE
LOWbenchmark/PaddleOCR_DBNet/base/__init__.py1CODE
LOWbenchmark/PaddleOCR_DBNet/base/__init__.py2CODE
LOWbenchmark/PaddleOCR_DBNet/trainer/__init__.py4CODE
LOWtools/export_model.py22CODE
LOWtools/infer_kie_token_ser_re.py15CODE
LOWtools/infer_kie_token_ser_re.py16CODE
LOWtools/infer_kie_token_ser_re.py17CODE
LOWtools/infer_kie_token_ser_re.py34CODE
LOWtools/infer_kie_token_ser_re.py34CODE
LOWtools/infer_kie_token_ser_re.py40CODE
LOWtools/infer_sr.py15CODE
LOWtools/infer_sr.py16CODE
LOWtools/infer_sr.py17CODE
LOWtools/infer_sr.py23CODE
LOWtools/export_center.py15CODE
LOWtools/export_center.py16CODE
LOWtools/export_center.py17CODE
LOWtools/export_center.py31CODE
LOWtools/infer_det.py15CODE
LOWtools/infer_det.py16CODE
LOWtools/infer_det.py17CODE
LOWtools/infer_table.py15CODE
LOWtools/infer_table.py16CODE
LOWtools/infer_table.py17CODE
LOWtools/infer_table.py32CODE
1244 more matches not shown…
Over-Commented Block697 hits · 696 pts
SeverityFileLineSnippetContext
LOWmkdocs.yml221 # nav_translations:COMMENT
LOWsetup.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWbenchmark/analysis.py1# copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWbenchmark/PaddleOCR_DBNet/tools/__init__.py1# -*- coding: utf-8 -*-COMMENT
LOWbenchmark/PaddleOCR_DBNet/tools/infer.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWbenchmark/PaddleOCR_DBNet/utils/profiler.py1# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWbenchmark/PaddleOCR_DBNet/trainer/__init__.py1# -*- coding: utf-8 -*-COMMENT
LOWtools/export_model.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer_kie_token_ser_re.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer_sr.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/export_center.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer_det.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer_table.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer_cls.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/__init__.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer_kie.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer_kie_token_ser.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/test_hubserving.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/naive_sync_bn.py1# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer_e2e.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer_rec.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/train.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/program.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/eval.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/end2end/draw_html.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/end2end/eval_end2end.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/end2end/convert_ppocr_label.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer/predict_sr.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer/utility.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer/predict_rec.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer/predict_e2e.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer/predict_cls.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer/predict_system.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWtools/infer/predict_det.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWppocr/__init__.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWppocr/metrics/det_metric.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWppocr/metrics/cls_metric.py1# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/metrics/vqa_token_ser_metric.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWppocr/metrics/kie_metric.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWppocr/metrics/bleu.py1# copyright (c) 2024 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/metrics/__init__.py1# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/metrics/sr_metric.py1# copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/metrics/rec_metric.py1# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/metrics/e2e_metric.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWppocr/metrics/ct_metric.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWppocr/metrics/distillation_metric.py1# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/metrics/table_metric.py1# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/metrics/vqa_token_re_metric.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWppocr/losses/rec_parseq_loss.py1# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/rec_vl_loss.py1# copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/basic_loss.py1# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/rec_satrn_loss.py1# copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/e2e_pg_loss.py1# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/rec_ctc_loss.py1# copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/rec_pren_loss.py1# copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/rec_multi_loss.py1# copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/distillation_loss.py1# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/rec_rfl_loss.py1# copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/det_fce_loss.py1# copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWppocr/losses/rec_srn_loss.py1# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.COMMENT
637 more matches not shown…
Hyper-Verbose Identifiers332 hits · 349 pts
SeverityFileLineSnippetContext
LOWbenchmark/PaddleOCR_DBNet/utils/util.py161def order_points_clockwise_list(pts):CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py321def validate_point_inside_bounds(x, y, imWidth, imHeight):CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py334def validate_clockwise_points(points):CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py362def get_tl_line_values_from_file_contents(CODE
LOWbenchmark/PaddleOCR_DBNet/utils/cal_recall/script.py9def default_evaluation_params():CODE
LOWbenchmark/PaddleOCR_DBNet/utils/cal_recall/script.py117 def get_intersection_over_union(pD, pG):CODE
LOW…DBNet/utils/ocr_metric/icdar2015/detection/mtwi2018.py24 def get_intersection_over_union(pD, pG):CODE
LOW…BNet/utils/ocr_metric/icdar2015/detection/icdar2013.py30 def get_intersection_over_union(pD, pG):CODE
LOW…eOCR_DBNet/utils/ocr_metric/icdar2015/detection/iou.py43 def get_intersection_over_union(pD, pG):CODE
LOW…_DBNet/utils/ocr_metric/icdar2015/detection/deteval.py30 def get_intersection_over_union(pD, pG):CODE
LOW…addleOCR_DBNet/data_loader/modules/random_crop_data.py105 def region_wise_random_select(self, regions, max_size):CODE
LOWtools/naive_sync_bn.py36def differentiable_all_reduce(input):CODE
LOWtools/infer/predict_rec.py430 def resize_norm_img_cppd_padding(CODE
LOWtools/infer/predict_e2e.py98 def filter_tag_det_res_only_clip(self, dt_boxes, image_shape):CODE
LOWtools/infer/predict_det.py226 def filter_tag_det_res_only_clip(self, dt_boxes, image_shape):CODE
LOWppocr/metrics/eval_det_iou.py22 def get_intersection_over_union(pD, pG):CODE
LOWppocr/metrics/table_metric.py99 def prepare_bbox_metric_input(self, pred_label):CODE
LOWppocr/utils/export_model.py33def represent_dictionary_order(self, dict_data):CODE
LOWppocr/utils/network.py33def download_with_progressbar(url, save_path):CODE
LOWppocr/utils/e2e_metric/polygon_fast.py35def approx_area_of_intersection(det_x, det_y, gt_x, gt_y):CODE
LOWppocr/utils/e2e_utils/extract_textpoint_fast.py92def instance_ctc_greedy_decoder(CODE
LOWppocr/utils/e2e_utils/extract_textpoint_fast.py209def sort_and_expand_with_direction(pos_list, f_direction):CODE
LOWppocr/utils/e2e_utils/extract_textpoint_fast.py470def sort_by_direction_with_image_id_deprecated(pos_list, f_direction):CODE
LOWppocr/utils/e2e_utils/extract_textpoint_fast.py485def sort_by_direction_with_image_id(pos_list, f_direction):CODE
LOWppocr/utils/e2e_utils/extract_textpoint_slow.py157def instance_ctc_greedy_decoder(gather_info, logits_map, keep_blank_in_idxs=True):CODE
LOWppocr/utils/e2e_utils/extract_textpoint_slow.py236def sort_and_expand_with_direction(pos_list, f_direction):CODE
LOWppocr/utils/e2e_utils/extract_textpoint_slow.py345def generate_pivot_list_curved(CODE
LOWppocr/utils/e2e_utils/extract_textpoint_slow.py409def generate_pivot_list_horizontal(CODE
LOWppocr/utils/e2e_utils/extract_textpoint_slow.py533def sort_by_direction_with_image_id_deprecated(pos_list, f_direction):CODE
LOWppocr/utils/e2e_utils/extract_textpoint_slow.py548def sort_by_direction_with_image_id(pos_list, f_direction):CODE
LOWppocr/utils/e2e_utils/extract_textpoint_slow.py589def generate_pivot_list_tt_inference(CODE
LOWppocr/utils/e2e_utils/visual.py73def resize_image_for_totaltext(im, max_side_len=512):CODE
LOWppocr/modeling/necks/db_fpn.py661 def _convert_dilated_to_nondilated(kernel, dilate_rate):CODE
LOWppocr/modeling/necks/db_fpn.py678 def _merge_dilated_into_large_kernel(large_kernel, dilated_kernel, dilated_r):CODE
LOWppocr/modeling/heads/rec_satrn_head.py138 def _get_sinusoid_encoding_table(self, n_position, d_hid):CODE
LOWppocr/modeling/heads/rec_satrn_head.py338 def _get_sinusoid_encoding_table(self, n_position, d_hid):CODE
LOWppocr/modeling/heads/local_graph.py29def normalize_adjacent_matrix(A):CODE
LOWppocr/modeling/heads/local_graph.py43def euclidean_distance_matrix(A, B):CODE
LOWppocr/modeling/heads/proposal_local_graph.py162 def propose_comps_and_attribs(CODE
LOWppocr/modeling/heads/rec_visionlan_head.py38 def _get_sinusoid_encoding_table(self, n_position, d_hid):CODE
LOWppocr/modeling/heads/rec_nrtr_head.py200 def get_inst_idx_to_tensor_position_map(inst_idx_list):CODE
LOWppocr/modeling/heads/rec_nrtr_head.py271 def collect_active_inst_idx_list(CODE
LOWppocr/modeling/heads/rec_nrtr_head.py293 def collect_hypothesis_and_scores(inst_dec_beams, n_best):CODE
LOWppocr/modeling/heads/rec_nrtr_head.py352 def generate_square_subsequent_mask(self, sz):CODE
LOWppocr/modeling/heads/rec_nrtr_head.py683 def get_the_best_score_and_idx(self):CODE
LOWppocr/modeling/heads/rec_unimernet_head.py878 def prepare_inputs_for_generation(CODE
LOWppocr/modeling/heads/rec_unimernet_head.py1253def _scaled_dot_product_attention(CODE
LOWppocr/modeling/heads/rec_unimernet_head.py1321def multi_head_attention_forward(CODE
LOWppocr/modeling/heads/rec_unimernet_head.py2137 def _get_decoder_start_token_id(CODE
LOWppocr/modeling/heads/rec_unimernet_head.py2158 def _prepare_decoder_input_ids_for_generation(CODE
LOWppocr/modeling/heads/rec_unimernet_head.py2227 def prepare_inputs_for_generation_mbart(CODE
LOWppocr/modeling/heads/rec_unimernet_head.py2255 def prepare_inputs_for_generation(CODE
LOWppocr/modeling/heads/rec_unimernet_head.py2282 def prepare_inputs_for_generation_export(CODE
LOWppocr/modeling/heads/rec_unimernet_head.py2297 def _extract_past_from_model_output(CODE
LOWppocr/modeling/heads/rec_unimernet_head.py2310 def _update_model_kwargs_for_generation(CODE
LOWppocr/modeling/heads/rec_ppformulanet_head.py123 def _make_causal_mask_parallel(CODE
LOWppocr/modeling/heads/rec_ppformulanet_head.py809 def prepare_inputs_for_generation(CODE
LOWppocr/modeling/heads/rec_ppformulanet_head.py835 def _extract_past_from_model_output(CODE
LOWppocr/modeling/heads/rec_ppformulanet_head.py847 def _update_model_kwargs_for_generation(CODE
LOWppocr/modeling/heads/rec_ppformulanet_head.py906 def stopping_criteria_parallel(self, input_ids):CODE
272 more matches not shown…
Cross-File Repetition44 hits · 220 pts
SeverityFileLineSnippetContext
HIGHbenchmark/PaddleOCR_DBNet/utils/util.py0recursively visualize a dict and indenting acrrording by the relationship of keys.STRING
HIGHppocr/utils/utility.py0recursively visualize a dict and indenting acrrording by the relationship of keys.STRING
HIGHtest_tipc/supplementary/utils.py0recursively visualize a dict and indenting acrrording by the relationship of keys.STRING
HIGHbenchmark/PaddleOCR_DBNet/utils/util.py0load config from yml/yaml file. args: file_path (str): path of the config file to be loaded. returns: global configSTRING
HIGHtools/program.py0load config from yml/yaml file. args: file_path (str): path of the config file to be loaded. returns: global configSTRING
HIGHtest_tipc/supplementary/config.py0load config from yml/yaml file. args: file_path (str): path of the config file to be loaded. returns: global configSTRING
HIGH…PaddleOCR_DBNet/data_loader/modules/make_shrink_map.py0从scales中随机选择一个尺度,对图片和文本框进行缩放 :param data: {'img':,'text_polys':,'texts':,'ignore_tags':} :return:STRING
HIGH…PaddleOCR_DBNet/data_loader/modules/make_border_map.py0从scales中随机选择一个尺度,对图片和文本框进行缩放 :param data: {'img':,'text_polys':,'texts':,'ignore_tags':} :return:STRING
HIGH…nchmark/PaddleOCR_DBNet/data_loader/modules/augment.py0从scales中随机选择一个尺度,对图片和文本框进行缩放 :param data: {'img':,'text_polys':,'texts':,'ignore_tags':} :return:STRING
HIGH…addleOCR_DBNet/data_loader/modules/random_crop_data.py0从scales中随机选择一个尺度,对图片和文本框进行缩放 :param data: {'img':,'text_polys':,'texts':,'ignore_tags':} :return:STRING
HIGHtools/program.py0merge config into global config. args: config (dict): config to be merged. returns: global configSTRING
HIGH…/rec/multi_language/generate_multi_language_configs.py0merge config into global config. args: config (dict): config to be merged. returns: global configSTRING
HIGHtest_tipc/supplementary/config.py0merge config into global config. args: config (dict): config to be merged. returns: global configSTRING
HIGHppocr/losses/det_pse_loss.py0this code is refer from: https://github.com/whai362/psenet/blob/python3/models/head/psenet_head.pySTRING
HIGHppocr/modeling/heads/det_pse_head.py0this code is refer from: https://github.com/whai362/psenet/blob/python3/models/head/psenet_head.pySTRING
HIGHppocr/postprocess/pse_postprocess/pse_postprocess.py0this code is refer from: https://github.com/whai362/psenet/blob/python3/models/head/psenet_head.pySTRING
HIGHppocr/utils/e2e_utils/extract_textpoint_fast.py0transfer vertical point_pairs into poly point in clockwise.STRING
HIGHppocr/utils/e2e_utils/extract_textpoint_slow.py0transfer vertical point_pairs into poly point in clockwise.STRING
HIGHppocr/utils/e2e_utils/visual.py0transfer vertical point_pairs into poly point in clockwise.STRING
HIGHppocr/postprocess/sast_postprocess.py0transfer vertical point_pairs into poly point in clockwise.STRING
HIGHppocr/modeling/heads/sr_rensnet_transformer.py0generate a square mask for the sequence. the masked positions are filled with float('-inf'). unmasked positions are fillSTRING
HIGHppocr/modeling/heads/rec_abinet_head.py0generate a square mask for the sequence. the masked positions are filled with float('-inf'). unmasked positions are fillSTRING
HIGHppocr/modeling/heads/rec_nrtr_head.py0generate a square mask for the sequence. the masked positions are filled with float('-inf'). unmasked positions are fillSTRING
HIGHppocr/modeling/backbones/rec_resnetv2.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks).STRING
HIGHppocr/modeling/backbones/rec_svtrv2.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks).STRING
HIGHppocr/modeling/backbones/rec_vit.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks).STRING
HIGHppocr/modeling/backbones/rec_vit_parseq.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks).STRING
HIGHppocr/modeling/backbones/rec_svtrnet.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks).STRING
HIGHppocr/modeling/backbones/rec_donut_swin.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks).STRING
HIGHppocr/modeling/backbones/rec_svtrv2.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks). the original name is misleadingSTRING
HIGHppocr/modeling/backbones/rec_vit.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks). the original name is misleadingSTRING
HIGHppocr/modeling/backbones/rec_vit_parseq.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks). the original name is misleadingSTRING
HIGHppocr/modeling/backbones/rec_svtrnet.py0drop paths (stochastic depth) per sample (when applied in main path of residual blocks). the original name is misleadingSTRING
HIGHppocr/data/imaug/east_process.py0check so that the text poly is in the same direction, and also filter some invalid polygons :param polys: :param tags: :STRING
HIGHppocr/data/imaug/sast_process.py0check so that the text poly is in the same direction, and also filter some invalid polygons :param polys: :param tags: :STRING
HIGHppocr/data/imaug/pg_process.py0check so that the text poly is in the same direction, and also filter some invalid polygons :param polys: :param tags: :STRING
HIGHdeploy/hubserving/ocr_det/module.py0get the text angle in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, c].STRING
HIGHdeploy/hubserving/ocr_rec/module.py0get the text angle in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, c].STRING
HIGHdeploy/hubserving/ocr_cls/module.py0get the text angle in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, c].STRING
HIGHdeploy/hubserving/structure_system/module.py0get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, STRING
HIGHdeploy/hubserving/kie_ser_re/module.py0get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, STRING
HIGHdeploy/hubserving/ocr_system/module.py0get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, STRING
HIGHdeploy/hubserving/kie_ser/module.py0get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, STRING
HIGHdeploy/hubserving/structure_table/module.py0get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, STRING
Deep Nesting228 hits · 218 pts
SeverityFileLineSnippetContext
LOWoverrides/hooks/expiry.py5CODE
LOWoverrides/hooks/expiry.py8CODE
LOWbenchmark/analysis.py110CODE
LOWbenchmark/analysis.py159CODE
LOWbenchmark/analysis.py192CODE
LOWbenchmark/PaddleOCR_DBNet/utils/util.py23CODE
LOWbenchmark/PaddleOCR_DBNet/utils/util.py170CODE
LOWbenchmark/PaddleOCR_DBNet/utils/util.py251CODE
LOWbenchmark/PaddleOCR_DBNet/utils/util.py339CODE
LOWbenchmark/PaddleOCR_DBNet/utils/profiler.py59CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py25CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py54CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py86CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py175CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py403CODE
LOWbenchmark/PaddleOCR_DBNet/utils/cal_recall/script.py60CODE
LOW…dleOCR_DBNet/utils/ocr_metric/icdar2015/quad_metric.py31CODE
LOW…DBNet/utils/ocr_metric/icdar2015/detection/mtwi2018.py20CODE
LOW…BNet/utils/ocr_metric/icdar2015/detection/icdar2013.py26CODE
LOW…eOCR_DBNet/utils/ocr_metric/icdar2015/detection/iou.py39CODE
LOW…_DBNet/utils/ocr_metric/icdar2015/detection/deteval.py26CODE
LOWbenchmark/PaddleOCR_DBNet/models/backbone/resnet.py167CODE
LOWbenchmark/PaddleOCR_DBNet/data_loader/__init__.py48CODE
LOWbenchmark/PaddleOCR_DBNet/data_loader/dataset.py43CODE
LOWbenchmark/PaddleOCR_DBNet/data_loader/dataset.py86CODE
LOWbenchmark/PaddleOCR_DBNet/base/base_dataset.py61CODE
LOWbenchmark/PaddleOCR_DBNet/trainer/trainer.py147CODE
LOWtools/infer_sr.py43CODE
LOWtools/infer_det.py57CODE
LOWtools/infer_cls.py40CODE
LOWtools/infer_kie.py126CODE
LOWtools/test_hubserving.py75CODE
LOWtools/test_hubserving.py100CODE
LOWtools/infer_e2e.py102CODE
LOWtools/check_docs_github_links.py23CODE
LOWtools/infer_rec.py41CODE
LOWtools/train.py46CODE
LOWtools/program.py88CODE
LOWtools/program.py118CODE
LOWtools/program.py180CODE
LOWtools/program.py200CODE
LOWtools/program.py709CODE
LOWtools/program.py821CODE
LOWtools/program.py873CODE
LOWtools/eval.py35CODE
LOWtools/end2end/eval_end2end.py70CODE
LOWtools/end2end/convert_ppocr_label.py27CODE
LOWtools/infer/utility.py177CODE
LOWtools/infer/utility.py520CODE
LOWtools/infer/utility.py1006CODE
LOWtools/infer/predict_rec.py40CODE
LOWtools/infer/predict_rec.py583CODE
LOWtools/infer/predict_system.py185CODE
LOWtools/infer/predict_det.py37CODE
LOWtools/infer/predict_det.py244CODE
LOWtools/infer/predict_det.py310CODE
LOWppocr/metrics/eval_det_iou.py18CODE
LOWppocr/metrics/e2e_metric.py41CODE
LOWppocr/metrics/vqa_token_re_metric.py79CODE
LOWppocr/losses/rec_multi_loss.py41CODE
168 more matches not shown…
Empty Error Handlers42 hits · 210 pts
SeverityFileLineSnippetContext
HIGHoverrides/hooks/expiry.py24except Exception:CODE
HIGHbenchmark/analysis.py302except:CODE
HIGHbenchmark/PaddleOCR_DBNet/utils/metrics.py30except:CODE
HIGHtools/train.py188except:CODE
HIGHtools/program.py176except Exception as e:CODE
HIGHppocr/data/__init__.py66except AttributeError:CODE
HIGHppocr/data/simple_dataset.py142except Exception:CODE
HIGHppocr/data/simple_dataset.py346except:CODE
HIGHppocr/data/imaug/fce_aug.py567except:CODE
HIGHdeploy/ios_demo/scripts/quantize_onnx_model.py367except OSError:CODE
HIGHdeploy/ios_demo/scripts/quantize_onnx_model.py340except OSError:CODE
HIGHdeploy/ios_demo/scripts/quantize_onnx_model.py360except OSError:CODE
HIGHpaddleocr/_cli.py141except (requests.exceptions.ConnectionError, requests.exceptions.Timeout):CODE
HIGHpaddleocr/_doc2md/converters/docx.py70except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py75except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py88except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py93except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py106except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py111except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py962except (KeyError, AttributeError):CODE
HIGHpaddleocr/_doc2md/converters/docx.py1583except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py1539except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py1566except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py1580except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py896except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py1561except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py1575except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py187except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py1526except Exception:CODE
HIGHpaddleocr/_doc2md/converters/docx.py210except Exception:CODE
HIGHpaddleocr/_doc2md/converters/__init__.py27except ImportError:CODE
HIGHpaddleocr/_doc2md/converters/xlsx.py107except (AttributeError, ImportError):CODE
HIGHpaddleocr/_doc2md/converters/xlsx.py210except Exception:CODE
HIGHpaddleocr/_doc2md/converters/xlsx.py273except Exception:CODE
HIGHpaddleocr/_doc2md/converters/xlsx.py281except Exception:CODE
HIGHpaddleocr/_doc2md/converters/xlsx.py309except Exception:CODE
HIGHpaddleocr/_doc2md/converters/pptx.py66except Exception:CODE
HIGHpaddleocr/_doc2md/converters/pptx.py87except Exception:CODE
HIGHpaddleocr/_doc2md/converters/pptx.py253except (ValueError, AttributeError):CODE
HIGHpaddleocr/_doc2md/converters/pptx.py269except AttributeError:CODE
HIGHpaddleocr/_doc2md/converters/pptx.py356except Exception:CODE
HIGHpaddleocr/_doc2md/converters/pptx.py507except (KeyError, AttributeError):CODE
AI Structural Patterns173 hits · 169 pts
SeverityFileLineSnippetContext
LOWbenchmark/PaddleOCR_DBNet/tools/infer.py215CODE
LOWbenchmark/PaddleOCR_DBNet/models/backbone/resnet.py98CODE
LOWbenchmark/PaddleOCR_DBNet/models/backbone/resnet.py163CODE
LOWbenchmark/PaddleOCR_DBNet/data_loader/dataset.py66CODE
LOWtools/naive_sync_bn.py109CODE
LOWtools/program.py200CODE
LOWtools/infer/utility.py854CODE
LOWppocr/metrics/kie_metric.py62CODE
LOWppocr/losses/distillation_loss.py48CODE
LOWppocr/losses/distillation_loss.py251CODE
LOWppocr/losses/distillation_loss.py505CODE
LOWppocr/losses/distillation_loss.py706CODE
LOWppocr/losses/distillation_loss.py745CODE
LOWppocr/losses/rec_enhanced_ctc_loss.py27CODE
LOWppocr/losses/rec_aster_loss.py42CODE
LOWppocr/losses/det_db_loss.py36CODE
LOWppocr/ext_op/roi_align_rotated/roi_align_rotated.py69CODE
LOWppocr/optimizer/lr_scheduler.py55CODE
LOWppocr/optimizer/optimizer.py57CODE
LOWppocr/optimizer/optimizer.py231CODE
LOWppocr/utils/e2e_utils/pgnet_pp_utils.py86CODE
LOWppocr/utils/e2e_utils/pgnet_pp_utils.py179CODE
LOWppocr/modeling/necks/pren_fpn.py79CODE
LOWppocr/modeling/necks/fce_fpn.py88CODE
LOWppocr/modeling/necks/fce_fpn.py119CODE
LOWppocr/modeling/necks/rnn.py141CODE
LOWppocr/modeling/necks/rnn.py252CODE
LOWppocr/modeling/heads/gcn.py82CODE
LOWppocr/modeling/heads/rec_satrn_head.py173CODE
LOWppocr/modeling/heads/rec_satrn_head.py253CODE
LOWppocr/modeling/heads/rec_satrn_head.py307CODE
LOWppocr/modeling/heads/rec_satrn_head.py357CODE
LOWppocr/modeling/heads/rec_satrn_head.py452CODE
LOWppocr/modeling/heads/rec_satrn_head.py520CODE
LOWppocr/modeling/heads/rec_sar_head.py156CODE
LOWppocr/modeling/heads/rec_sar_head.py349CODE
LOWppocr/modeling/heads/kie_sdmgr_head.py28CODE
LOWppocr/modeling/heads/kie_sdmgr_head.py154CODE
LOWppocr/modeling/heads/rec_robustscanner_head.py156CODE
LOWppocr/modeling/heads/rec_robustscanner_head.py244CODE
LOWppocr/modeling/heads/rec_robustscanner_head.py324CODE
LOWppocr/modeling/heads/rec_robustscanner_head.py354CODE
LOWppocr/modeling/heads/rec_robustscanner_head.py384CODE
LOWppocr/modeling/heads/rec_robustscanner_head.py521CODE
LOWppocr/modeling/heads/rec_robustscanner_head.py551CODE
LOWppocr/modeling/heads/rec_robustscanner_head.py637CODE
LOWppocr/modeling/heads/rec_robustscanner_head.py685CODE
LOWppocr/modeling/heads/rec_srn_head.py239CODE
LOWppocr/modeling/heads/rec_aster_head.py157CODE
LOWppocr/modeling/heads/self_attention.py312CODE
LOWppocr/modeling/heads/self_attention.py460CODE
LOWppocr/modeling/heads/sr_rensnet_transformer.py214CODE
LOWppocr/modeling/heads/sr_rensnet_transformer.py262CODE
LOWppocr/modeling/heads/sr_rensnet_transformer.py352CODE
LOWppocr/modeling/heads/table_att_head.py187CODE
LOWppocr/modeling/heads/rec_abinet_head.py282CODE
LOWppocr/modeling/heads/rec_abinet_head.py28CODE
LOWppocr/modeling/heads/rec_abinet_head.py175CODE
LOWppocr/modeling/heads/det_db_head.py258CODE
LOWppocr/modeling/heads/rec_visionlan_head.py89CODE
113 more matches not shown…
Excessive Try-Catch Wrapping118 hits · 122 pts
SeverityFileLineSnippetContext
LOWoverrides/hooks/expiry.py24 except Exception:CODE
LOWbenchmark/analysis.py146 except Exception as exc:CODE
LOWbenchmark/analysis.py350 except Exception:CODE
LOWbenchmark/PaddleOCR_DBNet/tools/infer.py127 except Exception as E:CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py153 except Exception as e:CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py431 except Exception as e:CODE
LOW…ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py492 except Exception as e:CODE
LOWtools/train.py291 except Exception as e:CODE
LOWtools/program.py176 except Exception as e:CODE
LOWtools/infer/predict_sr.py164 except Exception as E:CODE
LOWtools/infer/utility.py346 except Exception as E:CODE
LOWtools/infer/predict_rec.py903 except Exception as E:CODE
LOWtools/infer/predict_cls.py156 except Exception as E:CODE
LOWppocr/utils/network.py71 except Exception as e: # requests.exceptions.ConnectionErrorCODE
LOWppocr/data/latexocr_dataset.py147 except Exception as E:CODE
LOWppocr/data/simple_dataset.py99 except Exception:CODE
LOWppocr/data/simple_dataset.py142 except Exception:CODE
LOWppocr/data/simple_dataset.py384 except Exception:CODE
LOWppocr/data/pgnet_dataset.py95 except Exception as e:CODE
LOWppocr/data/imaug/ct_process.py97 except Exception as e:CODE
LOWppocr/data/imaug/random_crop_data.py183 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/quantize_onnx_model.py102 except Exception as e:CODE
LOW⚡deploy/ios_demo/scripts/quantize_onnx_model.py184 except Exception as e:CODE
LOW⚡deploy/ios_demo/scripts/quantize_onnx_model.py193 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/quantize_onnx_model.py205 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/quantize_onnx_model.py356 except Exception:CODE
LOWdeploy/ios_demo/scripts/debug_onnx_qdq.py161 except Exception as e:CODE
LOW⚡deploy/ios_demo/scripts/debug_onnx_qdq.py181 except Exception as e:CODE
LOW⚡deploy/ios_demo/scripts/debug_onnx_qdq.py188 except Exception as e:CODE
LOW⚡deploy/ios_demo/scripts/debug_onnx_qdq.py198 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/build_onnx_calib_npy.py298 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/build_onnx_calib_npy.py318 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/build_onnx_calib_npy.py331 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/build_onnx_calib_npy.py346 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/build_onnx_calib_npy.py359 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/build_onnx_calib_npy.py376 except Exception as e:CODE
LOWdeploy/ios_demo/scripts/build_onnx_calib_npy.py384 except Exception as e:CODE
LOWdeploy/hubserving/ocr_cls/module.py135 except Exception as e:CODE
LOWdeploy/hubserving/ocr_rec/module.py135 except Exception as e:CODE
LOWdeploy/paddleocr_vl_docker/hps/gateway/app.py153 except Exception:CODE
LOWdeploy/paddleocr_vl_docker/hps/gateway/app.py211 except Exception as e:CODE
LOWdeploy/paddleocr_vl_docker/hps/gateway/app.py290 except Exception:CODE
LOWpaddleocr/_cli.py203 except Exception as e:CODE
MEDIUMpaddleocr/_cli.py111def _install_genai_server_deps(args):CODE
LOWpaddleocr/_api_client/_async_http.py179 except Exception:CODE
LOWpaddleocr/_api_client/_async_http.py186 except Exception as e:CODE
MEDIUMpaddleocr/_api_client/_async_http.py183def _response_data(self, resp) -> Dict[str, Any]:CODE
LOWpaddleocr/_api_client/cli.py221 except Exception as e:CODE
MEDIUMpaddleocr/_api_client/cli.py222 print(f"Error: {e}", file=sys.stderr)CODE
LOWpaddleocr/_api_client/cli.py314 except Exception as e:CODE
MEDIUMpaddleocr/_api_client/cli.py315 print(f"Error: {e}", file=sys.stderr)CODE
LOWpaddleocr/_doc2md/core.py55 except Exception as e:CODE
LOW⚡paddleocr/_doc2md/converters/docx.py106 except Exception:CODE
LOW⚡paddleocr/_doc2md/converters/docx.py111 except Exception:CODE
LOW⚡paddleocr/_doc2md/converters/docx.py120 except Exception:CODE
LOW⚡paddleocr/_doc2md/converters/docx.py128 except Exception:CODE
LOW⚡paddleocr/_doc2md/converters/docx.py1539 except Exception:CODE
LOW⚡paddleocr/_doc2md/converters/docx.py1551 except Exception:CODE
LOW⚡paddleocr/_doc2md/converters/docx.py1561 except Exception:CODE
LOW⚡paddleocr/_doc2md/converters/docx.py1566 except Exception:CODE
58 more matches not shown…
Hallucination Indicators5 hits · 75 pts
SeverityFileLineSnippetContext
CRITICAL⚡ppocr/optimizer/optimizer.py89 mlm = model._layers.head.MLM_VRM.MLM.parameters()CODE
CRITICAL⚡ppocr/optimizer/optimizer.py91 model._layers.head.MLM_VRM.Prediction.pp_share.parameters()CODE
CRITICAL⚡ppocr/optimizer/optimizer.py94 model._layers.head.MLM_VRM.Prediction.w_share.parameters()CODE
CRITICAL⚡ppocr/optimizer/optimizer.py98 pre_mlm_pp = model.head.MLM_VRM.Prediction.pp_share.parameters()CODE
CRITICAL⚡ppocr/optimizer/optimizer.py99 pre_mlm_w = model.head.MLM_VRM.Prediction.w_share.parameters()CODE
Magic Placeholder Names12 hits · 75 pts
SeverityFileLineSnippetContext
HIGHdocs/version3.x/pipeline_usage/PP-DocTranslation.en.md696paddleocr pp_doctranslation -i vehicle_certificate-1.png --target_language en --qianfan_api_key your_api_keyCODE
HIGHdocs/version3.x/pipeline_usage/PP-DocTranslation.en.md705paddleocr pp_doctranslation -i vehicle_certificate-1.png --target_language en --qianfan_api_key your_api_key \CODE
HIGHdocs/version3.x/pipeline_usage/PP-DocTranslation.md693paddleocr pp_doctranslation -i vehicle_certificate-1.png --target_language en --qianfan_api_key your_api_keyCODE
HIGHdocs/version3.x/pipeline_usage/PP-DocTranslation.md702paddleocr pp_doctranslation -i vehicle_certificate-1.png --target_language en --qianfan_api_key your_api_key \CODE
HIGH⚡docs/version3.x/pipeline_usage/PP-ChatOCRv4.en.md985paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_keyCODE
HIGH⚡docs/version3.x/pipeline_usage/PP-ChatOCRv4.en.md988paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key --invoke_mllm True --pCODE
HIGH⚡docs/version3.x/pipeline_usage/PP-ChatOCRv4.en.md997paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key \CODE
HIGH⚡docs/version3.x/pipeline_usage/PP-ChatOCRv4.md874paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_keyCODE
HIGH⚡docs/version3.x/pipeline_usage/PP-ChatOCRv4.md877paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key --invoke_mllm True --pCODE
HIGH⚡docs/version3.x/pipeline_usage/PP-ChatOCRv4.md886paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key \CODE
HIGHdocs/version3.x/integrations/mcp_server.md288 "PADDLEOCR_MCP_QIANFAN_API_KEY": "<your-api-key>"CODE
HIGHdocs/version3.x/integrations/mcp_server.en.md287 "PADDLEOCR_MCP_QIANFAN_API_KEY": "<your-api-key>"CODE
Modern Structural Boilerplate67 hits · 67 pts
SeverityFileLineSnippetContext
LOWbenchmark/PaddleOCR_DBNet/utils/schedulers.py4__all__ = ["Polynomial"]CODE
LOWbenchmark/PaddleOCR_DBNet/utils/cal_recall/__init__.py6__all__ = ["cal_recall_precision_f1"]CODE
LOWbenchmark/PaddleOCR_DBNet/models/__init__.py8__all__ = ["build_loss", "build_model"]CODE
LOWbenchmark/PaddleOCR_DBNet/models/losses/__init__.py7__all__ = ["build_loss"]CODE
LOWbenchmark/PaddleOCR_DBNet/models/head/__init__.py6__all__ = ["build_head"]CODE
LOWbenchmark/PaddleOCR_DBNet/models/neck/__init__.py6__all__ = ["build_neck"]CODE
LOWbenchmark/PaddleOCR_DBNet/models/backbone/__init__.py7__all__ = ["build_backbone"]CODE
LOWbenchmark/PaddleOCR_DBNet/models/backbone/resnet.py7__all__ = [CODE
LOWppocr/metrics/det_metric.py19__all__ = ["DetMetric", "DetFCEMetric"]CODE
LOWppocr/metrics/vqa_token_ser_metric.py22__all__ = ["VQASerTokenMetric"]CODE
LOWppocr/metrics/kie_metric.py23__all__ = ["KIEMetric"]CODE
LOWppocr/metrics/__init__.py22__all__ = ["build_metric"]CODE
LOWppocr/metrics/e2e_metric.py19__all__ = ["E2EMetric"]CODE
LOWppocr/metrics/vqa_token_re_metric.py22__all__ = ["VQAReTokenMetric"]CODE
LOWppocr/optimizer/__init__.py23__all__ = ["build_optimizer"]CODE
LOWppocr/utils/save_load.py38__all__ = ["load_model"]CODE
LOWppocr/utils/stats.py19__all__ = ["TrainingStats", "Time"]CODE
LOWppocr/modeling/necks/fce_fpn.py26__all__ = ["FCEFPN"]CODE
LOWppocr/modeling/necks/__init__.py15__all__ = ["build_neck"]CODE
LOWppocr/modeling/necks/csp_pan.py23__all__ = ["CSPPAN"]CODE
LOWppocr/modeling/architectures/distillation_model.py26__all__ = ["DistillationModel"]CODE
LOWppocr/modeling/architectures/__init__.py24__all__ = ["build_model", "apply_to_static"]CODE
LOWppocr/modeling/architectures/base_model.py24__all__ = ["BaseModel"]CODE
LOWppocr/modeling/heads/__init__.py15__all__ = ["build_head"]CODE
LOWppocr/modeling/transforms/__init__.py15__all__ = ["build_transform"]CODE
LOWppocr/modeling/backbones/det_resnet_vd_sast.py24__all__ = ["ResNet_SAST"]CODE
LOWppocr/modeling/backbones/rec_efficientb3_pren.py30__all__ = ["EfficientNetb3_PREN"]CODE
LOWppocr/modeling/backbones/e2e_resnet_vd_pg.py24__all__ = ["ResNet"]CODE
LOWppocr/modeling/backbones/vqa_layoutlm.py35__all__ = ["LayoutXLMForSer", "LayoutLMForSer"]CODE
LOWppocr/modeling/backbones/rec_resnet_fpn.py24__all__ = ["ResNetFPN"]CODE
LOWppocr/modeling/backbones/__init__.py15__all__ = ["build_backbone"]CODE
LOWppocr/modeling/backbones/det_resnet_vd.py28__all__ = ["ResNet_vd", "ConvBNLayer", "DeformableConvV2"]CODE
LOWppocr/modeling/backbones/rec_resnet_vd.py24__all__ = ["ResNet"]CODE
LOWppocr/modeling/backbones/rec_resnet_32.py25__all__ = ["ResNet32"]CODE
LOWppocr/modeling/backbones/rec_resnet_31.py30__all__ = ["ResNet31"]CODE
LOWppocr/modeling/backbones/kie_unet_sdmgr.py24__all__ = ["Kie_backbone"]CODE
LOWppocr/modeling/backbones/rec_mobilenet_v3.py23__all__ = ["MobileNetV3"]CODE
LOWppocr/modeling/backbones/rec_resnet_45.py31__all__ = ["ResNet45"]CODE
LOWppocr/modeling/backbones/det_mobilenet_v3.py25__all__ = ["MobileNetV3"]CODE
LOWppocr/postprocess/__init__.py23__all__ = ["build_post_process"]CODE
LOWppocr/data/__init__.py51__all__ = ["build_dataloader", "transform", "create_operators", "set_signal_handlers"]CODE
LOWppocr/data/imaug/make_shrink_map.py29__all__ = ["MakeShrinkMap"]CODE
LOWppocr/data/imaug/make_border_map.py35__all__ = ["MakeBorderMap"]CODE
LOWppocr/data/imaug/ColorJitter.py16__all__ = ["ColorJitter"]CODE
LOWppocr/data/imaug/east_process.py25__all__ = ["EASTProcessTrain"]CODE
LOWppocr/data/imaug/make_pse_gt.py25__all__ = ["MakePseGt"]CODE
LOWppocr/data/imaug/sast_process.py25__all__ = ["SASTProcessTrain"]CODE
LOWppocr/data/imaug/pg_process.py23__all__ = ["PGProcessTrain"]CODE
LOWppocr/data/imaug/text_image_aug/__init__.py17__all__ = ["tia_distort", "tia_stretch", "tia_perspective"]CODE
LOWppocr/data/imaug/vqa/__init__.py23__all__ = [CODE
LOWdeploy/ios_demo/scripts/debug_onnx_qdq.py59logger = logging.getLogger(__name__)CODE
LOWdeploy/ios_demo/scripts/utils.py28__all__ = [CODE
LOWdeploy/paddleocr_vl_docker/hps/gateway/app.py59logger = logging.getLogger(__name__)CODE
LOWpaddleocr/__init__.py84__all__ = [CODE
LOWpaddleocr/_api_client/_naming.py17__all__ = ["snake_keys_to_camel", "snake_to_camel"]CODE
LOWpaddleocr/_pipelines/_patch_layout_parsing.py30logger = logging.getLogger(__name__)CODE
LOWpaddleocr/_pipelines/__init__.py26__all__ = [CODE
LOWpaddleocr/_models/__init__.py29__all__ = [CODE
LOWpaddleocr/_doc2md/__init__.py20__all__ = [CODE
LOWpaddleocr/_doc2md/math/omml.py55logger = logging.getLogger(__name__)CODE
7 more matches not shown…
Structural Annotation Overuse16 hits · 29 pts
SeverityFileLineSnippetContext
LOWREADME.md173### Step 1: Try OnlineCOMMENT
LOWREADME.md178### Step 2: Local DeploymentCOMMENT
LOW⚡…oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift118 // Step 1: PreprocessCOMMENT
LOW⚡…oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift123 // Step 2: Run ORT inferenceCOMMENT
LOW⚡…oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift131 // Step 3: Extract the probability map from ORT outputCOMMENT
LOW…oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift146 // Step 4: PostprocessCOMMENT
LOWdeploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift123 // Step 3: Build selection maskCOMMENT
LOWdeploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift144 // Step 4: Collect selected characters and their probabilitiesCOMMENT
LOW⚡deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift158 // Step 5: Join characters into textCOMMENT
LOW⚡deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift161 // Step 6: Compute mean confidenceCOMMENT
LOW⚡deploy/ios_demo/PaddleOCRDemo/Engine/BoxSorter.swift45 // Step 1: Sort by top-left point -- first by y, then by xCOMMENT
LOW⚡deploy/ios_demo/PaddleOCRDemo/Engine/BoxSorter.swift53 // Step 2: Backward insertion sort for same-line boxesCOMMENT
LOWdocs/version2.x/legacy/windows_vs2019_build.en.md54### Step 1: Create a Visual Studio ProjectCOMMENT
LOWdocs/version2.x/legacy/windows_vs2019_build.en.md60### Step 2: Run CMake ConfigurationCOMMENT
LOWdocs/version2.x/legacy/windows_vs2019_build.en.md93### Step 3: Generate Visual Studio ProjectCOMMENT
LOWdocs/version2.x/legacy/windows_vs2019_build.en.md118### Step 4: Run the PredictionCOMMENT
Verbosity Indicators10 hits · 20 pts
SeverityFileLineSnippetContext
LOW⚡…oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift118 // Step 1: PreprocessCOMMENT
LOW⚡…oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift123 // Step 2: Run ORT inferenceCOMMENT
LOW⚡…oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift131 // Step 3: Extract the probability map from ORT outputCOMMENT
LOW…oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift146 // Step 4: PostprocessCOMMENT
LOWdeploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift123 // Step 3: Build selection maskCOMMENT
LOWdeploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift144 // Step 4: Collect selected characters and their probabilitiesCOMMENT
LOW⚡deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift158 // Step 5: Join characters into textCOMMENT
LOW⚡deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift161 // Step 6: Compute mean confidenceCOMMENT
LOW⚡deploy/ios_demo/PaddleOCRDemo/Engine/BoxSorter.swift45 // Step 1: Sort by top-left point -- first by y, then by xCOMMENT
LOW⚡deploy/ios_demo/PaddleOCRDemo/Engine/BoxSorter.swift53 // Step 2: Backward insertion sort for same-line boxesCOMMENT
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHppocr/modeling/backbones/rec_pphgnetv2.py569use 'handle_func' to modify the sub-layer(s) specified by 'layer_name_pattern'. Args: layer_name_paSTRING
HIGHpaddleocr/_doc2md/core.py30 Convert an office document to Markdown. Args: source: Path to the source file. output: OptionaSTRING
HIGHppstructure/recovery/table_process.py72Remove white space from a string. Args: string(str): The string to remove white space from. leading(STRING
Slop Phrases5 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMppocr/modeling/architectures/base_model.py40 # if you make model differently, you can use transform in det and clsCOMMENT
LOWppocr/data/imaug/ct_process.py226 # make sure to crop the text regionCOMMENT
LOWppocr/data/imaug/random_crop_data.py543 # make sure to crop the text regionCOMMENT
MEDIUM…/rec/ch_PP-OCRv2/ch_PP-OCRv2_rec_enhanced_ctc_loss.yml66 # you can also try to add ace loss on your own datasetCOMMENT
MEDIUMconfigs/kie/vi_layoutxlm/ser_vi_layoutxlm_xfund_zh.yml17 # you can use the following configCOMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMppocr/modeling/heads/rec_aster_head.py238 # Initialize return variables given different typesCOMMENT
MEDIUMtests/ppocr/test_iaa_augment.py38 # Create a 100x100 pixel dummy image with 3 color channels (RGB)COMMENT
MEDIUMlangchain-paddleocr/scripts/lint_imports.sh5# Initialize a variable to keep track of errorsCOMMENT
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMppocr/modeling/heads/rec_ppformulanet_head.py976 # 1. Check whether the user has defined `decoder_input_ids` manually. To facilitate in terms of input naming,COMMENT
MEDIUMppocr/postprocess/rec_postprocess.py118 ): # grouping word with '-', such as 'state-of-the-art'CODE
MEDIUMppocr/data/imaug/abinet_aug.py253 # TODO: more robust way to crop imageCOMMENT
Redundant / Tautological Comments4 hits · 7 pts
SeverityFileLineSnippetContext
LOWppocr/data/imaug/random_crop_data.py380 # Check if this is a valid text boxCOMMENT
LOWdeploy/paddleocr_vl_docker/hps/gateway/app.py178 # Check if required models are readyCOMMENT
LOWpaddleocr/_pipelines/pp_chatocrv4_doc.py743 # Print the result to stdoutCOMMENT
LOW⚡paddleocr/_doc2md/converters/docx.py1548 # Check if the document uses different odd/even page headers/footersCOMMENT
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWbenchmark/PaddleOCR_DBNet/test_tipc/benchmark_train.sh5# Usage:COMMENT
LOWdeploy/ios_demo/scripts/convert_onnx_to_ort.sh15# Usage:COMMENT
LOWtest_tipc/compare_results.py112 # Usage:COMMENT
LOWtest_tipc/benchmark_train.sh5# Usage:COMMENT
Modern AI Meta-Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md251| [Dify](https://github.com/langgenius/dify) <a href="https://github.com/langgenius/dify"><img src="https://img.shields.CODE
MEDIUMdeploy/paddleocr_vl_docker/hps/README_en.md91This solution reuses the PaddleX [High-Stability Serving](https://paddlepaddle.github.io/PaddleX/latest/en/pipeline_deplCODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpaddleocr/_pipelines/pp_chatocrv4_doc.py715 "api_key": "fake_key",CODE