image orientation to "upright" [closed]

asked 2014-08-29 02:41:38 -0500

Hi All, I'm new to cv so pardon the noob question. I have a set of pictures of printed out slips of paper. Each paper is of the same format, ie. they have various markings that could be used for alignment. The pictures were taken with a smartphone so can be in any rotation. How can I find the correct angle of rotation to pass to imagemagick so I can rotate the image to "upright"? Any blogs/posts/code to take a look at? Something in Python, perhaps?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-11-17 13:59:06.858521

Comments

An example image would be useful. How do the markings look like? Maybe a simple template-matching could help or a feature-based approach. But that depends on your images. (BTW: you can of course also use OpenCV to rotate your images...)

FooBar gravatar imageFooBar ( 2014-08-29 03:01:56 -0500 )edit