Community

How applied ***ProcessImage*** to multiple images at the same time Answered

Hello,

I have applied ProcessImage in my application C# with sucess , but just for one Photo (Prenom.jpg), and this is my code :

string language = "Arabic";

        ProcessingSettings settings = new ProcessingSettings();

        settings.SetLanguage(language);

        settings.SetOutputFormat(OutputFormat.txt);

String sourceFilePath = @"C:\CINPROCESSING\Prenom.jpg";

        OcrSdkTask task = restClient.ProcessImage(sourceFilePath, settings);

        String outputFileBase = @"C:\CINPROCESSING\Prenom.txt";

        task = waitForTask(task, restClient);

        restClient.DownloadResult(task, outputFileBase);

I want to apply ProcessImage to multiple photos at same time : Prenom.jpg , Nom.jpg, Date.jpg

How i fix that?

Thanks,

0

Comments

2 comments

  • Avatar
    Oksana Serdyuk

    You can use the processDocument method for that. This method allows you to process several images using the same settings and obtain recognition result as a multi-page document, i.e. the output will be one single file with many pages.

    At first, you should upload several images to one task using submitImage method and receive the corresponding task ID. Then you should call the processDocument method where the task ID is transmitted as a parameter.

    This method is implemented in our C# code sample.

    1
  • Avatar
    thabet idris

    Thanks , it works

    0

Please sign in to leave a comment.