aboutsummaryrefslogtreecommitdiff
path: root/decoder.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoder.py')
-rw-r--r--decoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder.py b/decoder.py
index b5d198e..5b3178c 100644
--- a/decoder.py
+++ b/decoder.py
@@ -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