Merge pull request #75 from alyssais/destroy
Don't destroy windows if visualization disabled
This commit is contained in:
commit
e6e24efd20
1 changed files with 2 additions and 1 deletions
|
|
@ -447,7 +447,8 @@ except KeyboardInterrupt:
|
|||
input_reader.close()
|
||||
if out is not None:
|
||||
out.release()
|
||||
cv2.destroyAllWindows()
|
||||
if args.visualize != 0:
|
||||
cv2.destroyAllWindows()
|
||||
|
||||
if args.silent == 0 and tracking_frames > 0:
|
||||
average_tracking_time = 1000 * tracking_time / tracking_frames
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue