TextDetectorCNN (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Package org.opencv.text
Class TextDetectorCNN
- java.lang.Object
-
- org.opencv.text.TextDetector
-
- org.opencv.text.TextDetectorCNN
-
public class TextDetectorCNN extends TextDetectorTextDetectorCNN class provides the functionallity of text bounding box detection. This class is representing to find bounding boxes of text words given an input image. This class uses OpenCV dnn module to load pre-trained model described in CITE: LiaoSBWL17. The original repository with the modified SSD Caffe version: https://github.com/MhLiao/TextBoxes. Model can be downloaded from [DropBox](https://www.dropbox.com/s/g8pjzv2de9gty8g/TextBoxes_icdar13.caffemodel?dl=0). Modified .prototxt file with the model description can be found inopencv_contrib/modules/text/samples/textbox.prototxt.