Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 785073a

Browse files
committedNov 24, 2021
up
1 parent 428059f commit 785073a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎craft_hw_ocr/OCR.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ def load_TrOCRmodel():
2424
return processor, model
2525

2626

27-
def craft_detection(img, link_threshold = None, text_threshold = None):
27+
def craft_detection(img, link_threshold = '', text_threshold = ''):
2828

2929
"""
3030
Text detection using CRAFT text detector
3131
"""
32-
if link_threshold == None & text_threshold == None:
32+
if link_threshold == '' & text_threshold == '':
3333
lt = 0.1
3434
tt = 0.3
3535

0 commit comments

Comments
 (0)
Please sign in to comment.