From f088389fabd9fdfd0d5f80a63d52649338d02807 Mon Sep 17 00:00:00 2001 From: abewley Date: Sun, 11 Jun 2017 13:34:29 +0100 Subject: [PATCH] Changed type cast to account for negative values --- sort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sort.py b/sort.py index aee6dde..32b08c0 100644 --- a/sort.py +++ b/sort.py @@ -281,7 +281,7 @@ if __name__ == '__main__': 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) if(display): - d = d.astype(np.uint32) + d = d.astype(np.int32) 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')