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