TextDetectionModel_DB (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Package org.opencv.dnn
Class TextDetectionModel_DB
- java.lang.Object
-
- org.opencv.dnn.Model
-
- org.opencv.dnn.TextDetectionModel
-
- org.opencv.dnn.TextDetectionModel_DB
-
public class TextDetectionModel_DB extends TextDetectionModelThis class represents high-level API for text detection DL networks compatible with DB model. Related publications: CITE: liao2020real Paper: https://arxiv.org/abs/1911.08947 For more information about the hyper-parameters setting, please refer to https://github.com/MhLiao/DB Configurable parameters: - (float) binaryThreshold - The threshold of the binary map. It is usually set to 0.3. - (float) polygonThreshold - The threshold of text polygons. It is usually set to 0.5, 0.6, and 0.7. Default is 0.5f - (double) unclipRatio - The unclip ratio of the detected text region, which determines the output size. It is usually set to 2.0. - (int) maxCandidates - The max number of the output results.