pls help me!!`patterns` argument is null again!

  • 1.6K Views
  • Last Post 01 April 2014
zx344819350 posted this 29 March 2014

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]];

Julia Anikushina posted this 01 April 2014

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

Close