fix: RegionOcr阈值过滤膨胀后超出原roi

This commit is contained in:
status102
2025-05-21 11:06:37 +08:00
parent 739110255b
commit 566ff62cb0
3 changed files with 34 additions and 0 deletions

View File

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