Skip to content

Commit dd7d7e9

Browse files
Alexander Lyulkovasmorkalov
Alexander Lyulkov
authored andcommitted
Added dnn type inference support
1 parent cf63a7f commit dd7d7e9

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)