diff options
Diffstat (limited to 'decoder.py')
-rw-r--r-- | decoder.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ def find_corner(A, f): return np.average(np.where(mask), axis=1), np.average(A[mask], axis=0).astype(np.float64) -if args.input.isdecimal(): +if isinstance(args.input, str) and args.input.isdecimal(): args.input = int(args.input) cap = cv2.VideoCapture(args.input) data = None |