mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
fix: RegionOcr阈值过滤膨胀后超出原roi
This commit is contained in:
@@ -38,6 +38,7 @@ RegionOCRer::ResultOpt RegionOCRer::analyze() const
|
||||
#ifdef ASST_DEBUG
|
||||
cv::rectangle(m_image_draw, make_rect<cv::Rect>(new_roi), cv::Scalar(0, 0, 255), 1);
|
||||
#endif // ASST_DEBUG
|
||||
new_roi = correct_rect(new_roi, m_roi);
|
||||
|
||||
OCRer ocr_analyzer;
|
||||
if (m_use_raw) {
|
||||
|
||||
Reference in New Issue
Block a user