I am trying to read empty and square checkboxes using sumbitImage and processFields using this XML file.

<?xml version="1.0" encoding="UTF-8"?>
<document xmlns="http://ocrsdk.com/schema/taskDescription-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ocrsdk.com/schema/taskDescription-1.0.xsd http://ocrsdk.com/schema/taskDescription-1.0.xsd">
      <checkmark id="checkmarkBox">
      <checkmark id="checkmarkField">
      <checkmark template="checkmarkBox" id="r-1-c-1" left="145" top="777" right="170" bottom="795" />
      <checkmark template="checkmarkField" id="r-1-c-2" left="555" top="140" right="655" bottom="280" />

This is how I am posting to RestClient

response = RestClient.post("#{BASE_URL}/submitImage", :upload => {
  :file => File.new(FILE_NAME, 'rb')

This works just fine and the status that is returned is "Submitted". I then take the taskId from that response and do:

RestClient.post("#{BASE_URL}/processFields?taskId=#{task_id}", :upload => {
  :file => File.new(XML_FILE_NAME, 'rb')

after I run the code all that I get back is this error

<?xml version="1.0" encoding="utf-8"?><error><message language="english">Internal Server Error</message></error>

I can't find the error, Please someone help.

asked 05 Sep '14, 02:40

Paul%20Mancuso's gravatar image

Paul Mancuso

edited 06 Sep '14, 02:04

If you don't have an answer, could you please give me some example code for using submitImage and processFields

(09 Sep '14, 01:52) Paul Mancuso

The issue occurs due to an error in your XML-file: the "applyTo" attribute is required for the "page" element name:

<page applyTo="0,1">

answered 13 Sep '14, 01:35

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦

To let us investigate the issue, please share or send to CloudOCRSDK@abbyy.com some additional information:

  1. the name of your application,
  2. the image you recognize,
  3. logs from any HTTP debugger (for example, Fiddler).

answered 09 Sep '14, 15:49

SDK_support's gravatar image

SDK_support ♦♦

Unfortunately, we have not got a ready Ruby sample for the submitImage and the processFields methods, but we can recommend the following links:

  1. The Ruby sample for the processImage method,
  2. The Java sample for the processFields method,
  3. The sample xml file for the processFields method and the corresponding image.

answered 10 Sep '14, 17:11

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



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



Asked: 05 Sep '14, 02:40

Seen: 1,230 times

Last updated: 13 Sep '14, 01:35

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