Add float cast to OCR Beemsearch

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

@ -566,7 +566,7 @@ OCRBeamSearchClassifierCNN::OCRBeamSearchClassifierCNN (const string& filename)
nr_feature = weights.rows;
nr_class = weights.cols;
patch_size = (int)sqrt(kernels.cols);
patch_size = (int)sqrt((float)kernels.cols);
window_size = 4*patch_size;
step_size = 4;
quad_size = 12;

Loading…
Cancel
Save