Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
umireon committed Mar 27, 2024
1 parent 4a14264 commit e72aed6
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 @@ -360,7 +360,7 @@ void tesseract_thread(void *data)
else if (tf->binarizationMode == 2 ||
tf->binarizationMode == 3) {
// ensure that the block size is odd
uint16_t block_size = tf->binarizationBlockSize;
int block_size = tf->binarizationBlockSize;
if (tf->binarizationBlockSize % 2 == 0) {
block_size++;
}
Expand Down Expand Up @@ -406,7 +406,7 @@ void tesseract_thread(void *data)
// scale to height tf->rescaleTargetSize maintaining aspect ratio
cv::Mat resized;
float scale =
(float)tf->rescaleTargetSize / imageForOCR.rows;
(float)tf->rescaleTargetSize / (float)imageForOCR.rows;
cv::resize(imageForOCR, resized, cv::Size(), scale, scale);
imageForOCR = resized;
}
Expand Down

0 comments on commit e72aed6

Please sign in to comment.