TextDetector

Objective-C

@interface TextDetector : NSObject

Swift

class TextDetector : NSObject

An abstract class providing interface for text detection algorithms

Member of Text

Methods

  • Method that provides a quick and simple interface to detect text inside an image

    Declaration

    Objective-C

    - (void)detect:(nonnull Mat *)inputImage
              Bbox:(nonnull NSMutableArray<Rect2i *> *)Bbox
        confidence:(nonnull FloatVector *)confidence;

    Swift

    func detect(inputImage: Mat, Bbox: NSMutableArray, confidence: FloatVector)

    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