Skip to content

Commit d4a1aea

Browse files
authored
Merge pull request #3648 from asmorkalov:al/dnn-type-inference
Added dnn type inference support
2 parents cf63a7f + dd7d7e9 commit d4a1aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/text/src/ocr_holistic.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class OCRHolisticWordRecognizerImpl CV_FINAL : public OCRHolisticWordRecognizer
7575
inputShape.push_back(getPerceptiveField().height);
7676
inputShape.push_back(getPerceptiveField().width);
7777
vector<dnn::MatShape> inShapes, outShapes;
78-
net.getLayerShapes(inputShape, id, inShapes, outShapes);
78+
net.getLayerShapes(inputShape, CV_32F, id, inShapes, outShapes);
7979
CV_Assert(outShapes.size() == 1 && outShapes[0].size() == 4);
8080
CV_Assert(outShapes[0][0] == 1 && outShapes[0][2] == 1 && outShapes[0][3] == 1);
8181
return outShapes[0][1];

0 commit comments

Comments
 (0)