1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-18 17:24:28 +08:00

Add float cast to OCR HMM

Required for MSVC 2008, shouldn't affect results otherwise.
This commit is contained in:
Patrick Snape
2016-01-18 11:12:16 +00:00
parent 6457fb8fff
commit 0900a86b58

View File

@@ -982,7 +982,7 @@ OCRHMMClassifierCNN::OCRHMMClassifierCNN (const string& filename)
nr_feature = weights.rows;
nr_class = weights.cols;
patch_size = (int)sqrt(kernels.cols);
patch_size = (int)sqrt((float)kernels.cols);
// algorithm internal parameters
window_size = 32;
num_quads = 25;