fix: 肉鸽结算Ocr 非数字替换

This commit is contained in:
status102
2025-06-24 12:03:18 +08:00
parent fd4bdb6f4a
commit 96c007274d

View File

@@ -77,6 +77,9 @@ bool asst::RoguelikeSettlementTaskPlugin::get_settlement_info(json::value& info,
RegionOCRer ocr(image);
ocr.set_task_info("RoguelikeSettlementOcr-" + task_name);
ocr.set_bin_threshold(0, 160);
auto merge_map = number_replace;
merge_map.emplace_back("[^\\d]+", "");
ocr.set_replace(merge_map);
if (!ocr.analyze()) {
Log.error(__FUNCTION__, "analyze battle data failed, task:", task_name);
return;