Class TextDetector

java.lang.Object
org.opencv.text.TextDetector
Direct Known Subclasses:
TextDetectorCNN

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

    • nativeObj

      protected final long nativeObj
  • Constructor Details

    • TextDetector

      protected TextDetector(long addr)
  • Method Details

    • 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
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable