From f1b989ef74400ab07ffdb2e3868a8c466f02e18e Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Mon, 14 Aug 2023 10:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E7=94=A8=E8=AF=86=E5=88=AB=EF=BC=8C?= =?UTF-8?q?=E8=80=83=E8=99=91=E6=B2=A1=E6=9C=89=E6=96=87=E5=AD=97=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5=EF=BC=8C=E9=99=8D=E4=BD=8E=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/riic_report_analysis.py | 2 +- bot.py | 8 +++++++- rapid_ocr.yml | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/riic_report_analysis.py b/apps/riic_report_analysis.py index 980465c..9a66179 100644 --- a/apps/riic_report_analysis.py +++ b/apps/riic_report_analysis.py @@ -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 diff --git a/bot.py b/bot.py index db0f176..e0eb2a6 100644 --- a/bot.py +++ b/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], ), diff --git a/rapid_ocr.yml b/rapid_ocr.yml index 3c5ec96..cf2eb13 100644 --- a/rapid_ocr.yml +++ b/rapid_ocr.yml @@ -1,5 +1,5 @@ Global: - text_score: 0.5 + text_score: 0.4 use_angle_cls: false use_text_det: true print_verbose: false