fixes for paddle ocr

This commit is contained in:
yadonglu
2024-10-31 15:18:12 -07:00
parent 612785d1c0
commit b094079a06
7 changed files with 117 additions and 138 deletions

View File

@@ -411,7 +411,7 @@ def check_ocr_box(image_path, display_img = True, output_bb_format='xywh', goal_
elif output_bb_format == 'xyxy':
bb = [get_xyxy(item) for item in coord]
# print('bounding box!!!', bb)
return (text, bb), is_goal_filtered
return (text, bb), goal_filtering