试用识别,考虑没有文字的情况,降低阈值

This commit is contained in:
zhbaor 2023-08-14 10:13:17 +08:00
parent c94f9f0605
commit f1b989ef74
3 changed files with 9 additions and 3 deletions

View file

@ -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