Bbox,confidence=cv.text_TextDetector.detect(inputImage)
How to use this function in opencv
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: 292 times
Last updated: May 20 '18
Area of a single pixel object in OpenCV
how to understand which functions available in python bindings?
Problems installing opencv on mac with python
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Weird result while finding angle
cv2.perspectiveTransform() with Python
Using OpenCV's stitching module, strange error when compositing images