March 2018
Beginner to intermediate
306 pages
9h 54m
English
There are many different text detection methods implemented in OpenCV. In this recipe, you learned how to use a state-of-the-art deep learning approach for detecting text bounding boxes. The OpenCV class cv2.TextDetectorCNN_create creates a CNN (convolutional neural network) model, and loads its pre-trained weights from a specified file. After that, you only need to call the det.detect method, which returns a list of rectangles with the associated probabilities of rectangles containing text.
The following output is expected:
