Add float cast to OCR HMM

Required for MSVC 2008, shouldn't affect results otherwise.
pull/518/head
Patrick Snape 9 years ago
parent 6457fb8fff
commit 0900a86b58
  1. 2
      modules/text/src/ocr_hmm_decoder.cpp

@ -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;

Loading…
Cancel
Save