@@ -249,11 +249,11 @@ def plot_img(img, frame_id, results, save_dir):
249
249
# convert tlwh to tlbr
250
250
tlbr = tuple ([int (tlwh [0 ]), int (tlwh [1 ]), int (tlwh [0 ] + tlwh [2 ]), int (tlwh [1 ] + tlwh [3 ])])
251
251
# draw a rect
252
- cv2 .rectangle (img_ , tlbr [:2 ], tlbr [2 :], get_color (id ), thickness = 1 , )
252
+ cv2 .rectangle (img_ , tlbr [:2 ], tlbr [2 :], get_color (id ), thickness = 3 , )
253
253
# note the id and cls
254
254
text = f'{ CATEGORY_DICT [cls ]} -{ id } '
255
255
cv2 .putText (img_ , text , (tlbr [0 ], tlbr [1 ]), fontFace = cv2 .FONT_HERSHEY_PLAIN , fontScale = 1 ,
256
- color = (255 , 164 , 0 ), thickness = 1 )
256
+ color = (255 , 164 , 0 ), thickness = 2 )
257
257
258
258
cv2 .imwrite (os .path .join (save_dir , f'{ frame_id :05d} .jpg' ), img_ )
259
259
@@ -337,4 +337,4 @@ def get_color(idx):
337
337
# for debug
338
338
# evaluate(sorted(os.listdir('./tracker/results/deepmot_17_08_02_38')),
339
339
# sorted(os.listdir('./tracker/results/deepmot_17_08_02_38')), data_type='visdrone', result_folder='deepmot_17_08_02_38')
340
- main (opts )
340
+ main (opts )
0 commit comments