OCRBeamSearchDecoder (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Package org.opencv.text
Class OCRBeamSearchDecoder
- java.lang.Object
-
- org.opencv.text.BaseOCR
-
- org.opencv.text.OCRBeamSearchDecoder
-
public class OCRBeamSearchDecoder extends BaseOCROCRBeamSearchDecoder class provides an interface for OCR using Beam Search algorithm. Note:- (C++) An example on using OCRBeamSearchDecoder recognition combined with scene text detection can be found at the demo sample: <https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/word_recognition.cpp>