FirebaseMLVision Framework Reference

FIRVisionTextRecognizer


@interface FIRVisionTextRecognizer : NSObject

An on-device or cloud text recognizer that recognizes text in an image.

  • The text recognizer type.

    Declaration

    Objective-C

    @property (nonatomic, readonly) FIRVisionTextRecognizerType type;
  • Unavailable. Use Vision factory methods.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Processes the given image for on-device or cloud text recognition.

    Declaration

    Objective-C

    - (void)processImage:(nonnull FIRVisionImage *)image
              completion:(nonnull FIRVisionTextRecognitionCallback)completion;

    Parameters

    image

    The image to process for recognizing text.

    completion

    Handler to call back on the main queue when text recognition completes.