Page Summary
-
TextRecognitionCallbackis a type definition used to handle the results of text recognition. -
It includes parameters for the recognized text (
MLKText) and any potential errors encountered during the process. -
This typealias is utilized within the context of the
MLKTextRecognizerclass and its text recognition functionality.
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.