add gif demo
This commit is contained in:
parent
a4b81205cf
commit
81ae5e7248
5 changed files with 3 additions and 3 deletions
BIN
assets/IMG_0055.gif
Normal file
BIN
assets/IMG_0055.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
BIN
assets/MOT16-03.gif
Normal file
BIN
assets/MOT16-03.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 MiB |
BIN
assets/MOT16-14.gif
Normal file
BIN
assets/MOT16-14.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 MiB |
4
track.py
4
track.py
|
@ -153,7 +153,7 @@ if __name__ == '__main__':
|
||||||
PETS09-S2L1
|
PETS09-S2L1
|
||||||
TUD-Campus
|
TUD-Campus
|
||||||
TUD-Stadtmitte'''
|
TUD-Stadtmitte'''
|
||||||
data_root = '/home/liuyx/datasets/MOT/MOT15/train'
|
data_root = '/home/wangzd/datasets/MOT/MOT15/train'
|
||||||
else:
|
else:
|
||||||
seqs_str = '''MOT16-01
|
seqs_str = '''MOT16-01
|
||||||
MOT16-03
|
MOT16-03
|
||||||
|
@ -162,7 +162,7 @@ if __name__ == '__main__':
|
||||||
MOT16-08
|
MOT16-08
|
||||||
MOT16-12
|
MOT16-12
|
||||||
MOT16-14'''
|
MOT16-14'''
|
||||||
data_root = '/home/liuyx/datasets/MOT/MOT16/test'
|
data_root = '/home/wangzd/datasets/MOT/MOT16/test'
|
||||||
seqs = [seq.strip() for seq in seqs_str.split()]
|
seqs = [seq.strip() for seq in seqs_str.split()]
|
||||||
|
|
||||||
main(opt,
|
main(opt,
|
||||||
|
|
|
@ -33,7 +33,7 @@ def plot_tracking(image, tlwhs, obj_ids, scores=None, frame_id=0, fps=0., ids2=N
|
||||||
|
|
||||||
text_scale = max(1, image.shape[1] / 1600.)
|
text_scale = max(1, image.shape[1] / 1600.)
|
||||||
text_thickness = 1 if text_scale > 1.1 else 1
|
text_thickness = 1 if text_scale > 1.1 else 1
|
||||||
line_thickness = max(1, int(image.shape[1] / 600.))
|
line_thickness = max(1, int(image.shape[1] / 500.))
|
||||||
|
|
||||||
radius = max(5, int(im_w/140.))
|
radius = max(5, int(im_w/140.))
|
||||||
cv2.putText(im, 'frame: %d fps: %.2f num: %d' % (frame_id, fps, len(tlwhs)),
|
cv2.putText(im, 'frame: %d fps: %.2f num: %d' % (frame_id, fps, len(tlwhs)),
|
||||||
|
|
Loading…
Reference in a new issue