I have a problem that I have not been able to find a thread about.
I have a camera feed of a circular object which I need to rotate BUT I want to detect the rotation of the object. If the object is rotated clockwise or counterclockwise. In the end I want to, for example, draw an rectangle on the object and that rectangle will the rotate the same direction as the object in the camera feed.
The camera feed (shown in GIF below) it's processed with Otsus algorithm and the object is always deformed somehow (i.e. it's not 100% round).
I looked into various motion detection algorithms and by comparing two frames you can get the motion if the object moves across the frame. But the methods won't work to determine the rotation.
If someone could be so kind to help me or to direct me to the correct direction I would be very grateful. And as before, if I'm being unclear I will of course try to explain further. Thank you!
