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

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( result, elapse = await loop.run_in_executor(
None, functools.partial(rapid_ocr, img_path) 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) os.remove(img_path)
return return

8
bot.py
View file

@ -22,7 +22,13 @@ bot.apply_routes(
handlers=[WuHuTakeoff], handlers=[WuHuTakeoff],
), ),
BotRoute( BotRoute(
groups={"onebot": ["810857924"]}, groups={
"onebot": [
"810857924", # 测试群
"239200680", # mower 1群
"838353939", # mower 2群
]
},
friends=None, friends=None,
handlers=[RIICReportAnalysis], handlers=[RIICReportAnalysis],
), ),

View file

@ -1,5 +1,5 @@
Global: Global:
text_score: 0.5 text_score: 0.4
use_angle_cls: false use_angle_cls: false
use_text_det: true use_text_det: true
print_verbose: false print_verbose: false