FirebaseMLVision Framework Reference Stay organized with collections Save and categorize content based on your preferences.
Type Definitions
The following type definitions are available globally.
A block containing an array of barcodes or
nilif there’s an error.Declaration
Objective-C
typedefvoid(^FIRVisionBarcodeDetectionCallback)(NSArray<FIRVisionBarcode*>*_Nullable,NSError*_Nullable)Parameters
barcodesArray of barcodes detected in the image or
nilif there was an error.errorThe error or
nil.A block containing an array of landmark or
nilif there’s an error.Declaration
Objective-C
typedefvoid(^FIRVisionCloudLandmarkDetectionCompletion)(NSArray<FIRVisionCloudLandmark*>*_Nullable,NSError*_Nullable)Parameters
landmarksArray of landmark detected in the image or
nilif there was an error.errorThe error or
nil.The callback to invoke when the document text recognition completes.
Declaration
Objective-C
typedefvoid(^FIRVisionDocumentTextRecognitionCallback)(FIRVisionDocumentText*_Nullable,NSError*_Nullable)Parameters
textRecognized document text in the image or
nilif there was an error or no text was detected.errorThe error or
nil.Facial contour types.
Declaration
Objective-C
typedefNSString*FIRFaceContourTypeA block containing an array of faces or
nilif there’s an error.Declaration
Objective-C
typedefvoid(^FIRVisionFaceDetectionCallback)(NSArray<FIRVisionFace*>*_Nullable,NSError*_Nullable)Parameters
facesArray of faces detected in the image or
nilif there was an error.errorThe error or
nil.Type of all facial landmarks.
Declaration
Objective-C
typedefNSString*FIRFaceLandmarkTypeA block containing an array of labels or
nilif there’s an error.Declaration
Objective-C
typedefvoid(^FIRVisionImageLabelerCallback)(NSArray<FIRVisionImageLabel*>*_Nullable,NSError*_Nullable)Parameters
labelsArray of labels detected in the image or
nilif there was an error.errorThe error or
nil.The callback to invoke when the text recognition completes.
Declaration
Objective-C
typedefvoid(^FIRVisionTextRecognitionCallback)(FIRVisionText*_Nullable,NSError*_Nullable)Parameters
textRecognized text in the image or
nilif there was an error or no text was detected.errorThe error or
nil.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-11 UTC.