We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d8b08 commit 2411bd6Copy full SHA for 2411bd6
utils/track/operators.py
@@ -131,6 +131,9 @@ def execute(self, context):
131
132
# get the fps of the clip and set the environment accordingly
133
fps = cap.get(cv2.CAP_PROP_FPS)
134
+ if fps < 1:
135
+ fps == 30
136
+ print("\nWARNING: Invalid FPS value read from input file. Defaulting to FPS = 30")
137
video_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
138
video_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
139
0 commit comments