ProcessImage Method automation

  • 89 Views
  • Last Post 14 April 2017
dfco21 posted this 12 April 2017

Hello,

I need to extract text from various files (image, pdf, ...).

I am trying the http://cloud.ocrsdk.com/processImage?language=english&exportformat=txt method.

I created a Web Service and I succeeded to execute the text capture for one image file. A part of the procedure was manual because of the input which is an attachment.

I would like to automate the extraction of many image files with no manual action. Ideally I would like to create a WebService which uses the processImage method. This WebService would "transform" image files (which are input for the processimage method) located in a folder in a server.

It looks like the image should be transmitted in the body of the method. Is an automation possible ?

Could you please advise.

Thanks, AEB

Order By: Standard | Newest | Votes
Oksana Serdyuk posted this 13 April 2017

Yes, you are right: in the current implementation of the Service the image should be transmitted in the request body of the corresponding processing method and you have to call the processing method for each image. Batch processing is not supported.

dfco21 posted this 13 April 2017

Thanks Oksana.

 

You mean. In the current implementation of the Service, the only option to transmit the image is manually in the request body. Correct ?

Oksana Serdyuk posted this 14 April 2017

Could you please explain what you mean by "manually"?

I say that an image should be transmitted in the request body of the corresponding processing method. This can be a one-page document or multi-page document. Thus, you should form the request to the Service for each of your documents.

But nothing prevents you to develop your own application that will browse a folder with multiple files and send them to Cloud OCR SDK for recognition.

Something similar is implemented in our Java sample, see ProcessManyFiles.java.

dfco21 posted this 14 April 2017

Hi Oksana,

My requirement is to use a Web Service to recognize many files (the web service takes one or many files (pdf, image, ...) as input, send them to the OCR SDK for recognition then return the "formatted" files) . I created one but I had to update the request body manually.

I would like the web service to be automated with no manual action. I haven't found a sample which use a Web Service.

Please advise.

Thanks, AEB

Oksana Serdyuk posted this 14 April 2017

Thank you for your explanation.

If I understand you correctly, you would like to have an active callback of the service that notifies the calling application that the status of a task becomes "Completed" immediately. Unfortunately, at the moment there is no API for this, but this feature is already planned to be implemented in the nearest future.

We have the corresponding Feature Request and you can vote for this in order to speed up its implementation.

Close