Forum Discussion
RoxanaTFA
Oct 20, 2020Copper Contributor
Vision API: deskew
Hello,
On the Vision API in the response there's an angle field that's supposed to give us the skew of the image (I need to do OCR on some documents). How should I interpret that angle (seems to be...
Shunderpooch
Oct 20, 2020Former Employee
RoxanaTFA Supposing you're using the computer vision API 3.1, https://westcentralus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-1-ga/operations/56f91f2e778daf14a499f20d the textAngle field is in radians. You can use that and the orientation field in order to re-orient either the image to be in line with overlaid recognition results, or orient the overlaid text at the angle of the text in the image.
You can use a photo editor, like photoshop or Paint 3D (guide here https://www.laptopmag.com/articles/rotate-resize-paint-3d) to rotate the image before passing it to the vision API.
Let me know if you have any follow ups!