Skip to content

Commit 424f935

Browse files
Vaghinak BasentsyanVaghinak Basentsyan
authored andcommitted
Fixed image upload
1 parent cf51a96 commit 424f935

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)