We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 428059f commit 785073aCopy full SHA for 785073a
craft_hw_ocr/OCR.py
@@ -24,12 +24,12 @@ def load_TrOCRmodel():
24
return processor, model
25
26
27
-def craft_detection(img, link_threshold = None, text_threshold = None):
+def craft_detection(img, link_threshold = '', text_threshold = ''):
28
29
"""
30
Text detection using CRAFT text detector
31
32
- if link_threshold == None & text_threshold == None:
+ if link_threshold == '' & text_threshold == '':
33
lt = 0.1
34
tt = 0.3
35
0 commit comments