Skip to content

Commit 5c10ff6

Browse files
authored
Merge pull request #124 from superannotateai/fix_video_upload
Fixed image upload(video frame extracting)
2 parents cf51a96 + 424f935 commit 5c10ff6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

superannotate/db/projects.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,12 @@ def _get_video_fps_ration(target_fps, video, ratio, log):
250250
Get video fps / target fps ratio
251251
"""
252252
video_fps = float(video.get(cv2.CAP_PROP_FPS))
253-
if target_fps >= video_fps and log:
254-
logger.warning(
255-
"Video frame rate %s smaller than target frame rate %s. Cannot change frame rate.",
256-
video_fps, target_fps
257-
)
253+
if target_fps >= video_fps:
254+
if log:
255+
logger.warning(
256+
"Video frame rate %s smaller than target frame rate %s. Cannot change frame rate.",
257+
video_fps, target_fps
258+
)
258259
else:
259260
if log:
260261
logger.info(

0 commit comments

Comments
 (0)