Skip to content

Commit

Permalink
Updated BlinkOCR-sample with PPBlinkInputRcognizerSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
juraskrlec committed Sep 12, 2017
1 parent bf13ac3 commit ac5df12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Samples/BlinkOCR-sample/BlinkOCR-sample/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ - (PPCameraCoordinator *)coordinatorWithError:(NSError **)error {
/** 2. Setup the license key */

// Visit www.microblink.com to get the license key for your app
settings.licenseSettings.licenseKey = @"MUPW7QST-TS3RUNTO-5WHPC7CP-W24H2RJX-TS2AMI5Z-LVLMZS5N-O7VW7IWS-VUFXVXVU";
settings.licenseSettings.licenseKey = @"D4Y6YBOP-GREFNTEL-UWKFLAZX-N4BEHKH7-W4GQ54GO-A5MCWFY4-7J4BFLLW-K6IKPAAJ";
// this license key is valid temporarily until 2017-10-26


Expand All @@ -78,7 +78,7 @@ - (PPCameraCoordinator *)coordinatorWithError:(NSError **)error {
*/

// To specify we want to perform OCR recognition, initialize the OCR recognizer settings
PPBlinkOcrRecognizerSettings *ocrRecognizerSettings = [[PPBlinkOcrRecognizerSettings alloc] init];
PPBlinkInputRecognizerSettings *ocrRecognizerSettings = [[PPBlinkInputRecognizerSettings alloc] init];


// We want raw OCR parsing
Expand Down Expand Up @@ -154,8 +154,8 @@ - (void)scanningViewController:(UIViewController<PPScanningViewController> *)sca
// Collect data from the result
for (PPRecognizerResult *result in results) {

if ([result isKindOfClass:[PPBlinkOcrRecognizerResult class]]) {
PPBlinkOcrRecognizerResult *ocrRecognizerResult = (PPBlinkOcrRecognizerResult *)result;
if ([result isKindOfClass:[PPBlinkInputRecognizerResult class]]) {
PPBlinkInputRecognizerResult *ocrRecognizerResult = (PPBlinkInputRecognizerResult *)result;

NSLog(@"OCR results are:");
NSLog(@"Raw ocr: %@", [ocrRecognizerResult parsedResultForName:self.rawOcrParserId]);
Expand Down

0 comments on commit ac5df12

Please sign in to comment.