Page Summary
-
TextRecognitionCallbackis a type definition used in Swift for handling the results of text recognition operations. -
It is a closure that receives two parameters: the recognized
Textobject (ornilif there was an error) and an optionalErrorobject.
Type Definitions
The following type definitions are available globally.
-
The callback to invoke when the text recognition completes.
Declaration
Swift
typealias TextRecognitionCallback = (MLKText?, Error?) -> VoidParameters
textRecognized
Textin the image ornilif there was an error.errorThe error or
nil.