Skip to content

Commit b094079

Browse files
committed
fixes for paddle ocr
1 parent 612785d commit b094079

File tree

7 files changed

+117
-138
lines changed

7 files changed

+117
-138
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ weights/icon_caption_blip2
22
weights/icon_caption_florence
33
weights/icon_detect/
44
.gradio
5-
__pycache__
5+
__pycache__/

__pycache__/utils.cpython-312.pyc

629 Bytes
Binary file not shown.

__pycache__/utils.cpython-39.pyc

-19.2 KB
Binary file not shown.

demo.ipynb

Lines changed: 114 additions & 135 deletions
Large diffs are not rendered by default.

gradio_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def process(
9090
iou_threshold_component = gr.Slider(
9191
label='IOU Threshold', minimum=0.01, maximum=1.0, step=0.01, value=0.1)
9292
use_paddleocr_component = gr.Checkbox(
93-
label='Use PaddleOCR', default=True)
93+
label='Use PaddleOCR', value=True)
9494
submit_button_component = gr.Button(
9595
value='Submit', variant='primary')
9696
with gr.Column():

imgs/saved_image_demo.png

-122 KB
Loading

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def check_ocr_box(image_path, display_img = True, output_bb_format='xywh', goal_
411411
elif output_bb_format == 'xyxy':
412412
bb = [get_xyxy(item) for item in coord]
413413
# print('bounding box!!!', bb)
414-
return (text, bb), is_goal_filtered
414+
return (text, bb), goal_filtering
415415

416416

417417

0 commit comments

Comments
 (0)