Ask Your Question
0

Bbox,confidence=cv.text_TextDetector.detect(inputImage)

asked 2018-05-19 22:33:10 -0600

How to use this function in opencv

Bbox, confidence=cv.text_TextDetector.detect(inputImage)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-05-20 01:47:01 -0600

berak gravatar image

updated 2018-05-20 04:17:54 -0600

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 !

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-05-19 22:33:10 -0600

Seen: 289 times

Last updated: May 20 '18