@interface GSKOCR : NSObject
Provides OCR capability for your application.
WarningThe SDK must be initialized with [GSK initWithLicenseKey:error:] first.
Recognize the text in the provided image
This call is synchronous an can take some time so it’s advised to call it on background thread.
+ (GSKOCRResult *_Nullable) recognizeTextForImageAtPath:(nonnull NSString *)imagePath ocrConfiguration:(GSKOCRConfiguration *_Nullable)configuration onProgress:(nonnull void (^)(float))progressBlock error:(NSError *_Nullable *_Nullable)error;
the path of the image to recognize. Ideally the image has been processed in black and white with [GSDK enhanceImage:withPostProcessing:error:] first. If not, set the
preprocessedflag on the
configurationobject to NO.
Configuration for the OCR process, in particular the language in which the OCR is performed. Note that you must provided the appropriate trained data.
The progress between 0 and 1. Called on the same thread.
On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.
a GSKOCRResult object containing the result of the text recognition.