Bbox,confidence=cv.text_TextDetector.detect(inputImage)
How to use this function in opencv
Bbox, confidence=cv.text_TextDetector.detect(inputImage)
cv::text::TextDetector is an abstract interface. you have to create an instance of the actual implementation:
textSpotter = cv.text.TextDetectorCNN_create("textbox.prototxt", "TextBoxes_icdar13.caffemodel")
then you can detect text segments with it:
rects, outProbs = textSpotter.detect(img);
there is a full python example here , have a look !
data needed: caffemodel prototxt
also make sure, your cv2 was built with the opencv_contrib modules !
Asked: 2018-05-19 22:33:10 -0600
Seen: 314 times
Last updated: May 20 '18