Skip to content

Commit 5a3c6a3

Browse files
committed
explicit cast to int for rowRange with size_t parameters
1 parent 5d5ec99 commit 5a3c6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/text/src/ocr_holistic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class DictNetCaffeImpl: public DictNet{
155155
std::vector<Mat>::const_iterator from=std::vector<Mat>::const_iterator(allImageVector.begin()+imgNum);
156156
std::vector<Mat>::const_iterator to=std::vector<Mat>::const_iterator(allImageVector.begin()+rangeEnd);
157157
std::vector<Mat> minibatchInput(from,to);
158-
classifyMiniBatch(minibatchInput,outputMat.rowRange(imgNum,rangeEnd));
158+
classifyMiniBatch(minibatchInput,outputMat.rowRange(int(imgNum),int(rangeEnd)));
159159
}
160160
}
161161

0 commit comments

Comments
 (0)