mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
修复基建宿舍会多次选择注意力涣散干员的问题
This commit is contained in:
@@ -301,7 +301,10 @@ std::vector<InfrastDormTask::MoodStatus> InfrastDormTask::detect_mood_status_at_
|
||||
cv::rectangle(draw_image, cv_actual_rect, cv::Scalar(0, 0, 255), 1);
|
||||
cv::putText(draw_image, std::to_string(mood_status.process), cv::Point(cv_actual_rect.x, cv_actual_rect.y), cv::FONT_HERSHEY_PLAIN, 1, cv::Scalar(0, 0, 255));
|
||||
#endif
|
||||
if (mood_status.process <= process_threshold) { // 心情小于阈值的直接加入结果
|
||||
if (mood_status.process == 0) {
|
||||
// 值为0说明是“注意力涣散”,红色哭脸被错误的识别成黄色笑脸了,这里直接忽略这个值
|
||||
}
|
||||
else if (mood_status.process <= process_threshold) { // 心情小于阈值的直接加入结果
|
||||
moods_vec.emplace_back(std::move(mood_status));
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -580,7 +580,7 @@
|
||||
},
|
||||
"InfrastReward": {
|
||||
"algorithm": "OcrDetect",
|
||||
"text": [ "可收获", "订单交付", "干员信赖" ],
|
||||
"text": [ "可收获", "订单交付", "信赖" ],
|
||||
"rearDelay": 1000,
|
||||
"action": "clickSelf",
|
||||
"next": [
|
||||
|
||||
Reference in New Issue
Block a user