Views
No views yet
| Model | FP32 | Task |
|---|---|---|
| PP-DocLayout_plus-L | pp-docLayout_plus-l.onnx | layout detection |
| PP-OCRv6_medium_det | pp-ocrV6_medium_det.onnx | text line detection |
| PP-OCRv6_medium_rec | pp-ocrV6_medium_rec.onnx | text recognition |
# onnxruntime-gpu for run it on GPU
pip install onnxruntime opencv-python numpy pyclippersrc/helper.py = onnx session builder (provider selection, threads, memory options)src/example.py = full pipeline: image preprocess, inference, postprocessonnx/ = the model filepython3 PP-DocLayout_plus-L/src/example.py jp_1.jpg0.936555 | header | [530, 62, 1213, 104]
0.910084 | table | [1066, 176, 1692, 260]
0.891657 | footer | [1066, 1157, 1198, 1175]
0.886924 | table | [54, 395, 1694, 799]
0.827543 | text | [55, 804, 1029, 959]image, im_shape (800, 800), scale_factor (800 / height, 800 / width).[classId, score, x1, y1, x2, y2] with coordinates already in the original image space,python3 PP-OCRv6_medium_det/src/example.py jp_1.jpg0.965487 | [[60, 1158], [850, 1158], [850, 1176], [60, 1176]]
0.827508 | [[1069, 1156], [1200, 1156], [1200, 1176], [1069, 1176]]
0.916008 | [[64, 1128], [837, 1128], [837, 1149], [64, 1149]]cv2.imread, no channel swap) normalized with the ImageNet mean / std,x, the only input, with a fully dynamic shape.[1, 1, height, width], the DB postprocess is on your side:cv2.findContours, minimum area box, score as the mean probability inside the box,[score, [4 corner points]] clockwise from the top-left corner, already in the originalpython3 PP-OCRv6_medium_rec/src/example.py det_box_0294.jpg0.953031 | (別表十(一)「15」若しくは別表十(二)「10」又は別表十(一)「16」若しくは別表十(二)「11」)cv2.imread, no channel swap) resized to height 48 keeping the aspect ratio,x, the only input, with a dynamic width (minimum 320, capped at 3200).[1, timeStep, 18710] already softmaxed, decoded with a greedy CTC: drop the repeats first,