fix Win x64 warning

pull/350/head
Lluis Gomez-Bigorda 9 years ago
parent b19c676559
commit a94753c0bf
  1. 4
      modules/text/src/ocr_beamsearch_decoder.cpp

@ -371,8 +371,8 @@ private:
Mat interdist ((int)segmentation.size()-1, 1, CV_32F, 1);
for (size_t i=0; i<segmentation.size()-1; i++)
{
interdist.at<float>(i,0) = (float)oversegmentation[segmentation[(int)i+1]]*step_size -
(float)oversegmentation[segmentation[(int)i]]*step_size;
interdist.at<float>((int)i,0) = (float)oversegmentation[segmentation[(int)i+1]]*step_size
- (float)oversegmentation[segmentation[(int)i]]*step_size;
if ((float)interdist.at<float>((int)i,0)/win_size > 2.25) // TODO explain how did you set this thrs
{
return -DBL_MAX;

Loading…
Cancel
Save