mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 02:16:34 +08:00
Add float cast to OCR HMM
Required for MSVC 2008, shouldn't affect results otherwise.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user