Class TextDetector

  • Direct Known Subclasses:
    TextDetectorCNN

    public class TextDetector
    extends Object
    An abstract class providing interface for text detection algorithms
    • Field Detail

      • nativeObj

        protected final long nativeObj
    • Constructor Detail

      • TextDetector

        protected TextDetector​(long addr)
    • Method Detail

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static TextDetector __fromPtr__​(long addr)
      • detect

        public void detect​(Mat inputImage,
                           MatOfRect Bbox,
                           MatOfFloat confidence)
        Method that provides a quick and simple interface to detect text inside an image
        Parameters:
        inputImage - an image to process
        Bbox - a vector of Rect that will store the detected word bounding box
        confidence - a vector of float that will be updated with the confidence the classifier has for the selected bounding box