12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #import <Foundation/Foundation.h>
- @class FIRVisionImage;
- @class FIRVisionText;
- NS_ASSUME_NONNULL_BEGIN
- typedef void (^FIRVisionTextRecognitionCallback)(FIRVisionText *_Nullable text,
- NSError *_Nullable error)
- NS_SWIFT_NAME(VisionTextRecognitionCallback);
- typedef NS_ENUM(NSInteger, FIRVisionTextRecognizerType) {
-
- FIRVisionTextRecognizerTypeOnDevice,
-
- FIRVisionTextRecognizerTypeCloud,
- } NS_SWIFT_NAME(VisionTextRecognizerType);
- NS_SWIFT_NAME(VisionTextRecognizer)
- @interface FIRVisionTextRecognizer : NSObject
- @property(nonatomic, readonly) FIRVisionTextRecognizerType type;
- - (instancetype)init NS_UNAVAILABLE;
- - (void)processImage:(FIRVisionImage *)image
- completion:(FIRVisionTextRecognitionCallback)completion
- NS_SWIFT_NAME(process(_:completion:));
- @end
- NS_ASSUME_NONNULL_END
|