mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: 临时修复rect完全超限时的超限返回值
This commit is contained in:
@@ -92,7 +92,7 @@ Rect VisionHelper::correct_rect(const Rect& rect, const cv::Mat& image)
|
||||
}
|
||||
if (rect.x >= image.cols || rect.y >= image.rows) {
|
||||
Log.error(__FUNCTION__, "roi is out of range", image.cols, image.rows, rect.to_string());
|
||||
return rect;
|
||||
return { 1, 1, 0, 0 }; // 临时修复, 后续需调整默认rect的行为
|
||||
}
|
||||
|
||||
Rect res = rect;
|
||||
|
||||
Reference in New Issue
Block a user