this time "patterns argument is null " come out again! i'm now work with my customer. i' not using custom language any more . and the code is working fine yesterday!!but today ,the program reports this error "patterns argument is null". how could it be?!the code is never change between yes today and today!but now it is not work. I've been torture by this error for 5 days.i fells very disappoint!and i report this error to your support team,but there is no answer until now. the Xcode is V5.1,iPhone is iPhone5 V7.1,my os is 10.9,sdk is MSDK42R11GMu_part_889-24_build_4-4-0-172_iOS_Only. below is the code of how i use them,not using custom language:

    - (CMocrRecognitionConfiguration*) bcrConfiguration
{
    if( _bcrConfiguration == nil ) {
        NSSet* recognitionLanguages = [NSSet setWithObjects:@"English", nil];
        _bcrConfiguration = [[CMocrRecognitionConfiguration alloc]
                             initWithImageResolution:0
                             imageProcessingOptions:0
                             recognitionMode:MRM_Full
                             recognitionConfidenceLevel:MRCL_Level3
                             barcodeTypes:0
                             defaultCodePage:MSCP_Utf8
                             unknownLetter:L'^'
                             recognitionLanguages:recognitionLanguages];
    }
    return _bcrConfiguration;
}
    CMocrEngine* _mocrEngine = [CMocrEngine createSharedEngineWithDataSources:dataSources license:license];
    if( _mocrEngine == nil ) {
        // Failed to create singleton instance of the CMocrEngine class.
        TMocrErrorCode errorCode;
        NSString* errorMessage;
        [CMocrEngine getLastError:&errorCode message:&errorMessage];
        //NSLog(@"Error code: %@. Error message: %@", [CRecognitionViewController stringFromMocrErrorCode:errorCode], errorMessage);
    }
NSObject<IMocrRecognitionManager>* recognitionManager1 =
            [[_mocrEngine newRecognitionManagerWithConfiguration:[self bcrConfiguration]] autorelease];
    [self processRecognitionOperation:[CRecognizeBusinessCardOnImageOperation
                                               operationWithRecognitionManager:recognitionManager1 imageToRecognize:[self scaleFromImage:[self imageFromImage:imageGet inRect:recogAreaInSourceImage] toSize:scaletoRect] callbackObject:self]];

asked 29 Mar '14, 12:15

zx344819350's gravatar image

zx344819350
114

edited 29 Mar '14, 12:18


Please send the description of your issue to alex@digitalitcd.cn.

link

answered 01 Apr '14, 15:04

Julia%20Anikushina's gravatar image

Julia Anikus... ♦♦
3628

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×43

Asked: 29 Mar '14, 12:15

Seen: 1,564 times

Last updated: 01 Apr '14, 15:04

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal