Package org.opencv.text

## Class TextDetector

- java.lang.Object
- - org.opencv.text.TextDetector

- Direct Known Subclasses:
    `TextDetectorCNN`

      public class TextDetector
      extends java.lang.Object

  An abstract class providing interface for text detection algorithms

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected long` | `nativeObj` |

  - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `TextDetector​(long addr)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static TextDetector` | `__fromPtr__​(long addr)` |
    `void` | `detect​(Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)` | Method that provides a quick and simple interface to detect text inside an image
    `protected void` | `finalize()` |
    `long` | `getNativeObjAddr()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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

    - #### finalize

          protected void finalize()
                           throws java.lang.Throwable

      Overrides:
        `finalize` in class `java.lang.Object`
      Throws:
        `java.lang.Throwable`