picture analysis - human figure picture is straight

105 views Asked by At

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.

1

There are 1 answers

1
greenfeet On

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