试用识别,考虑没有文字的情况,降低阈值
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
|
||||
|
||||
|
|
8
bot.py
8
bot.py
|
@ -22,7 +22,13 @@ bot.apply_routes(
|
|||
handlers=[WuHuTakeoff],
|
||||
),
|
||||
BotRoute(
|
||||
groups={"onebot": ["810857924"]},
|
||||
groups={
|
||||
"onebot": [
|
||||
"810857924", # 测试群
|
||||
"239200680", # mower 1群
|
||||
"838353939", # mower 2群
|
||||
]
|
||||
},
|
||||
friends=None,
|
||||
handlers=[RIICReportAnalysis],
|
||||
),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Global:
|
||||
text_score: 0.5
|
||||
text_score: 0.4
|
||||
use_angle_cls: false
|
||||
use_text_det: true
|
||||
print_verbose: false
|
||||
|
|
Loading…
Reference in a new issue