osdDirectoryWithError: Type Method

+ (NSString *) osdDirectoryWithError:(NSError * *) error;

Resolves the directory containing the bundled OSD data (osd.traineddata), decrypting it on first use. Synchronous.

Parameters

  • error — On failure, set to an NSError describing the decrypt / I/O problem.

Return Value

The OCR-data directory path, or nil on failure.

Discussion

Warning: May block on first use (~10 MB decrypt). Do not call on the main thread.

Top