aboutsummaryrefslogtreecommitdiff
path: root/decoder.py
diff options
context:
space:
mode:
authorAnthony Wang2024-05-14 11:22:33 -0400
committerAnthony Wang2024-05-14 11:22:33 -0400
commit170c85404be222056f5c5077600a16add00b5e28 (patch)
tree0a7f71ff121c4e29104be91fec5dece477d1d919 /decoder.py
parentb5a725174ad85271b239a9b97c71c470bb949f5a (diff)
Thicker edges for mixing video
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