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,

asked 30 Jun '16, 18:16

thabet%20idris's gravatar image

thabet idris
174


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

ProcessingSettings settings = new ProcessingSettings();
link

answered 01 Jul '16, 12:57

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

thanks,

link

answered 01 Jul '16, 14:45

thabet%20idris's gravatar image

thabet idris
174

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:

×41
×36

Asked: 30 Jun '16, 18:16

Seen: 351 times

Last updated: 01 Jul '16, 14:45

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