试用识别,考虑没有文字的情况,降低阈值
This commit is contained in:
parent
c94f9f0605
commit
f1b989ef74
3 changed files with 9 additions and 3 deletions
|
@ -23,7 +23,7 @@ class RIICReportAnalysis:
|
|||
result, elapse = await loop.run_in_executor(
|
||||
None, functools.partial(rapid_ocr, img_path)
|
||||
)
|
||||
if not "副手简报" in [i[1] for i in result]:
|
||||
if not result or not "副手简报" in [i[1] for i in result]:
|
||||
os.remove(img_path)
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue