how i configure ProcessImage with Arbabic setting?

  • 403 Views
  • Last Post 01 July 2016
  • Topic Is Solved
thabet idris posted this 30 June 2016

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,

Order By: Standard | Newest | Votes
Oksana Serdyuk posted this 01 July 2016

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

ProcessingSettings settings = new ProcessingSettings();

thabet idris posted this 01 July 2016

thanks,

Close