ZhangAoCanada / RADDet

Range-Azimuth-Doppler Based Radar Object Detection
MIT License
160 stars 39 forks source link

the cart_box #26

Closed Acciwu closed 1 year ago

Acciwu commented 1 year ago

I want to know which is the coordinates of cart_box? In training, what xywh do you use(Also Note: for the cart_box, the format is [x_center, y_center, w, h].); but, what yxhw do you use in visual drawing

RADDet/util/drawer.py: def drawBoxOrEllipse(inputs, class_name, axe, color, x_shape=0, mode="box", \ if_facecolor=False): """ Draw bounding box onto the image. """ if if_facecolor: facecolor = color else: facecolor = "none" if mode == "box": for box in inputs:

y1, y2, x1, x2 = box

        y_c, x_c, h, w = box               # Isn't x, y, w, h = box ?
ZhangAoCanada commented 1 year ago

The reason I did y, x, h, w = box is that: the x, y axes of the drawing function from matplotlib.pyplot are inverted.....

Acciwu commented 1 year ago

Thank you very much for your quick reply!Very embarrassed.........