I'm looking for a way to analyze an image ( the human figure ) and verify whether it is necessary to rotate the image or images straight.
i'm using c# env.
I'm looking for a way to analyze an image ( the human figure ) and verify whether it is necessary to rotate the image or images straight.
i'm using c# env.
If you could detect the eyes then you could figure out if the image should be rotated using the eyes positions.
if (eye1.y - eye2.y) > (eye1.x - eye2.x) => the image should be rotated
Of course you would have to check and subtract the smaller value from the higher value when you calculate the position difference in order for this to work