I want to develop a small application that allows users using rectangles to annotate different parts of an image. For example, user can draw a rectangle over an image labeled "head" and this app can get the parameters of this rectangle (height, width, center coordinate...). Sometimes I also need to rotate this rectangle to choose a particular area.
I want to use Qt to implement my idea, but I don't know how to:
- Get the parameters of the rectangle user drawn. (height, width, center coordinate...)
- How to rotate an rectangle and get the rotation angle.