New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gen2: ImageManip rotated/arbitrary cropping, camera controls #16
Conversation
Does the intermediate rectangle size adds any additional benefits compared to just the final output size? |
can be used when ImageManip is connected directly to the camera, and set to process a sequence of NN detections (bounding boxes), it should be set when there are no detections
For the rotated rectangle (center, size, angle), it describes the crop area, that can be further resized. |
Add types defined similar to some OpenCV ones:
Point2f: {float x, y;}
Size2f: {float width, height;}
RotatedRect: {Point2f center; Size2f size; float angle;}
And for arbitrary cropping, I was thinking on defining a sequence of 4 points in clockwise order forming a quadrilateral, that would get mapped to a rectangle, whose size we specify (so resizing + other warp transforms can be applied). First sequence point would get mapped to the top-left corner of the rectangle.
These are still open to ideas for improvement.