INNER CODE UNIT · Python
h
GeekAlexis/FastMOT · app.py:95
w, h = br - tl + 1
txt.write(f'{mot.frame_count},{track.trk_id},{tl[0]:.6f},{tl[1]:.6f},'
f'{w:.6f},{h:.6f},-1,-1,-1\n')
if args.show:
cv2.imshow('Video', frame)
if cv2.waitKey(1) & 0xFF == 27:
break
if args.output_uri is not None:
stream.write(frame)
finally:
# clean up resources
if txt is not None:
txt.close()
stream.release()
cv2.destroyAllWindows()
# timing statistics