Community

how i configure ProcessImage with Arbabic setting? Answered

Hello,

I have a problem with function ProcessImage :

String sourceFilePath = "C:\CINPROCESSING\nom.jpg";

        string language = "Arabic";
        ProcessingSettings settings;           
        settings.SetLanguage("Arabic");
        OcrSdkTask task=restClient.ProcessImage(sourceFilePath, settings );

        String outputFileBase = "C:\\new\\text.txt";

        task = waitForTask(task, restClient);

I still have ERROR : Utilisation d'une variable locale non assignée 'settings' ??

How can i fix it?

Thanks,

0

Comments

2 comments

  • Avatar
    Oksana Serdyuk

    Local variables aren't initialized, you need to initialize and assign the 'settings' variable before used:

    ProcessingSettings settings = new ProcessingSettings();
    
    0
  • Avatar
    thabet idris

    thanks,

    0

Please sign in to leave a comment.