Skip to content

Commit

Permalink
Update tesseract-ocr-utils.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
umireon committed Mar 27, 2024
1 parent e72aed6 commit 031980e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tesseract-ocr-utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ void tesseract_thread(void *data)
if (tf->rescaleImage) {
// scale to height tf->rescaleTargetSize maintaining aspect ratio
cv::Mat resized;
float scale =
(float)tf->rescaleTargetSize / (float)imageForOCR.rows;
float scale = (float)tf->rescaleTargetSize /
(float)imageForOCR.rows;
cv::resize(imageForOCR, resized, cv::Size(), scale, scale);
imageForOCR = resized;
}
Expand Down

0 comments on commit 031980e

Please sign in to comment.