I am using a python request to detect objects in each frame from camera. it returns x1, y1 and x2, y2 to draw rectangles. x1, y1 represent starting point of rectangle and x2, y2 represent ending point of rectangle. This is the common data to draw a rectangle in python.
In network optix, I can see x, y values and height, width. I want to convert my (x1, x2, y1, y2) values to NX supported format (x, y, height, width). How to do this?
Can someone explain x, y, height and width in terms of (x1, y1, x2, y2)?
Please sign in to leave a comment.