How to call processFields with submitImage?

  • Last Post 31 May 2017
lin skye posted this 30 May 2017

I've downloaded the sample code, but I'm a bit confused on how to use submitImage to start a new processFields task

An example would be great, thanks. 

Oksana Serdyuk posted this 31 May 2017

The steps you should take to implement the processFields scenario are the following:

  1. Obtain the image(s) that you want to process.
  2. Call the submitImage method and transmit the image(s) in the request body.
  3. Obtain the XML file with parameters for field recognition. Article XML Parameters of Field Recognition describes the format of the XML file that you should provide to the processFields method.
  4. Call processFields and transmit the XML file in the request body. This step is implemented in the sample project in Method processFields() of the Client class (see source file “” located in the src\com\abbyy\ocrsdk subdirectory of the Android code sample folder).