We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf63a7f + dd7d7e9 commit d4a1aeaCopy full SHA for d4a1aea
modules/text/src/ocr_holistic.cpp
@@ -75,7 +75,7 @@ class OCRHolisticWordRecognizerImpl CV_FINAL : public OCRHolisticWordRecognizer
75
inputShape.push_back(getPerceptiveField().height);
76
inputShape.push_back(getPerceptiveField().width);
77
vector<dnn::MatShape> inShapes, outShapes;
78
- net.getLayerShapes(inputShape, id, inShapes, outShapes);
+ net.getLayerShapes(inputShape, CV_32F, id, inShapes, outShapes);
79
CV_Assert(outShapes.size() == 1 && outShapes[0].size() == 4);
80
CV_Assert(outShapes[0][0] == 1 && outShapes[0][2] == 1 && outShapes[0][3] == 1);
81
return outShapes[0][1];
0 commit comments