I have a rotated bounding box for a face and I like to rotate the image to to deskew the bounding box. Each bounding box is defined by 4 vertices in a python list like [["x":12, "y":24] ... ]
. I found some links describing such transformation but they all do this in C++ level opencv so I could not see what is going on between variables passing function to function.
I use opencv 2.4.12 on python but could not find a way to do so. Would you share some pointers to help me?