sort icon indicating copy to clipboard operation
sort copied to clipboard

Clarify Detection Bounding Box Coordinate Definitions

Open GOBish opened this issue 4 years ago • 1 comments

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!

GOBish avatar Apr 23 '20 23:04 GOBish

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.

aia39 avatar Aug 21 '20 19:08 aia39