修复基建宿舍会多次选择注意力涣散干员的问题

This commit is contained in:
MistEO
2021-09-07 21:26:24 +08:00
parent 63eafd6bd9
commit 7cb542ef52
2 changed files with 5 additions and 2 deletions

View File

@@ -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 {

View File

@@ -580,7 +580,7 @@
},
"InfrastReward": {
"algorithm": "OcrDetect",
"text": [ "可收获", "订单交付", "干员信赖" ],
"text": [ "可收获", "订单交付", "信赖" ],
"rearDelay": 1000,
"action": "clickSelf",
"next": [