mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
fix: 修复抄作业干员识别错误
This commit is contained in:
@@ -198,7 +198,7 @@ bool asst::BattleHelper::update_deployment(bool init, const cv::Mat& reusable)
|
||||
if (det_name.empty()) {
|
||||
Log.warn("ocr with det model failed");
|
||||
}
|
||||
else if (BattleData.is_name_invalid(det_name)) {
|
||||
else if (!BattleData.is_name_invalid(det_name)) {
|
||||
Log.info("use ocr with det", det_name);
|
||||
name = det_name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user