Page Summary
-
ImageLabelingCallbackis a type definition in Swift that represents a block of code executed when image labeling is complete. -
This callback provides an array of
MLKImageLabelobjects containing labeling results and an optionalErrorobject indicating any errors during the process.
Type Definitions
The following type definitions are available globally.
-
A block containing an array of label results or
nilif there’s an error.Declaration
Swift
typealias ImageLabelingCallback = ([MLKImageLabel]?, Error?) -> VoidParameters
labelsArray of label results in the image or
nilif there was an error.errorThe error or
nil.