Fixed deprication warning when displaying.
This commit is contained in:
parent
74a936adf3
commit
1163f287b4
1 changed files with 1 additions and 0 deletions
1
sort.py
1
sort.py
|
@ -281,6 +281,7 @@ if __name__ == '__main__':
|
||||||
for d in trackers:
|
for d in trackers:
|
||||||
print('%d,%d,%.2f,%.2f,%.2f,%.2f,1,-1,-1,-1'%(frame,d[4],d[0],d[1],d[2]-d[0],d[3]-d[1]),file=out_file)
|
print('%d,%d,%.2f,%.2f,%.2f,%.2f,1,-1,-1,-1'%(frame,d[4],d[0],d[1],d[2]-d[0],d[3]-d[1]),file=out_file)
|
||||||
if(display):
|
if(display):
|
||||||
|
d = d.astype(np.uint32)
|
||||||
ax1.add_patch(patches.Rectangle((d[0],d[1]),d[2]-d[0],d[3]-d[1],fill=False,lw=3,ec=colours[d[4]%32,:]))
|
ax1.add_patch(patches.Rectangle((d[0],d[1]),d[2]-d[0],d[3]-d[1],fill=False,lw=3,ec=colours[d[4]%32,:]))
|
||||||
ax1.set_adjustable('box-forced')
|
ax1.set_adjustable('box-forced')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue