Skip to content

Commit fa9c69f

Browse files
committed
Default use paddle ocr to false to not break jupyter notebook example
Add paddleocr to requirements
1 parent be04aff commit fa9c69f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ dill
1414
accelerate
1515
timm
1616
einops==0.8.0
17+
paddlepaddle
18+
paddleocr

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def get_xywh_yolo(input):
380380

381381

382382

383-
def check_ocr_box(image_path, display_img = True, output_bb_format='xywh', goal_filtering=None, easyocr_args=None, use_paddleocr=True):
383+
def check_ocr_box(image_path, display_img = True, output_bb_format='xywh', goal_filtering=None, easyocr_args=None, use_paddleocr=False):
384384
if use_paddleocr:
385385
result = paddle_ocr.ocr(image_path, cls=False)[0]
386386
coord = [item[0] for item in result]

0 commit comments

Comments
 (0)