Fixed shebangs, added error checking
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#/usr/bin/env python
|
||||
#!/usr/bin/env python
|
||||
|
||||
import numpy as np
|
||||
import cv2
|
||||
@@ -20,8 +20,10 @@ def draw_motion_comp(vis, (x, y, w, h), angle, color):
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
try: video_src = sys.argv[1]
|
||||
except: video_src = 0
|
||||
try:
|
||||
video_src = sys.argv[1]
|
||||
except:
|
||||
video_src = 0
|
||||
|
||||
cv2.namedWindow('motempl')
|
||||
visuals = ['input', 'frame_diff', 'motion_hist', 'grad_orient']
|
||||
|
Reference in New Issue
Block a user