I understand that this question has been asked prior, but the answer was dated.

I'd like to get the determined orientation when the call from processImage completes. My understanding is that this is not offered in Cloud SDK. Is there any plan to include this information in the future? It would be enormously helpful.

Thanks

asked 02 Jul '15, 20:09

kmcclosk's gravatar image

kmcclosk
112


Sorry for the delay in response.

ABBYY Cloud OCR SDK has no direct method for returning the determined image orientation. But it is possible to extract the necessary data by analyzing the text coordinates from the XML export on your side. There are two available XML export formats in Cloud OCR SDK:

  • xml – this format allows you to get text with its original image coordinates,
  • xmlForCorrectedImage - this format allows you to get text with coordinates related to the corrected image (deskewed, rotated, etc.), not the original.

You can simultaneously export the recognized data into two these formats. To do this, specify the necessary formats, separated by commas, in the exportFormat parameter of the processImage method, for example: "xml,xmlForCorrectedImage". Then compare the coordinates from these files in order to calculate the rotation angle.

link

answered 06 Jul '15, 15:10

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

Not so long ago we updated the XML scheme and two new attributes were added to our xml export format: the rotation attribute for the page tag and the isTab attribute for the charParams tag.

The rotation attribute may be useful for your usage scenario. It stores the type of rotation applied to the original page image.

link
This answer is marked "community wiki".

answered 30 Oct '15, 16:52

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

No, the processBusinessCard output does not contain the rotation attribute.

Kindly describe your usage scenario in details? Why you need this information?

(03 Mar '16, 14:59) Oksana Serdyuk ♦♦

As a possible workaround, you can firstly call the processImage method and get the information about rotation from the XML output, and then re-process the image using the processBusinessCard method. You can re-recognize the same image for free while your account is not empty.

(03 Mar '16, 15:07) Oksana Serdyuk ♦♦

Sometimes user scans business card with orientation 90 degrees rotated. We want to rotate the card image correctly for customer.

Your workaround will increase the process time, won't it? I guess calling processImage then processBusinessCard take double time of only one API.

(06 Mar '16, 17:49) jackZap

My company already bought your package "Volume Pack L". We really hope you can support to return orientation result in processBusinessCard API, thus improve our user experience a lot.

Thanks.

(08 Mar '16, 11:08) jackZap

I have consulted with our development team, and we are going to implement this feature for the XML export for BCR in the nearest future. As soon as the feature will be implemented and tested, I will let you know.

(11 Mar '16, 14:21) Oksana Serdyuk ♦♦

Thank you. Looking forward to the update.

(11 Mar '16, 19:04) jackZap

@jackZap, recently ABBYY Cloud OCR SDK team has improved the BCR technology regarding your request. The imageRotation attribute for the businessCard element was added to the XML export format. More details are here: http://forum.ocrsdk.com/questions/5526/getting-image-orientaiton-in-bcr

(24 Mar '16, 15:28) Oksana Serdyuk ♦♦
showing 5 of 7 show 2 more comments
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:

×195

Asked: 02 Jul '15, 20:09

Seen: 1,398 times

Last updated: 24 Mar '16, 15:28

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