sort
sort copied to clipboard
Clarify Detection Bounding Box Coordinate Definitions
Hi, Could you please clarify the coordinate system for the bounding box of the detections? In sort.py, the notes say
Params: dets - a numpy array of detections in the format [[x1,y1,x2,y2,score],[x1,y1,x2,y2,score],...] Requires: this method must be called once for each frame even with empty detections (use np.empty((0, 5)) for frames without detections). Returns the a similar array, where the last column is the object ID.
Just want to check, does this mean (x1,y1)-->upper left corner (x2,y2)-->lower right corner? (absolute) Or is it (x1,y1)-->upper left corner, (x2,y2)-->width and height? (relative)
Thanks!
As I have implemented successfully it, I saw that you have to pass (x1,y1) as absolute upper left corner and (x2,y2) as absolute lower right corner.