Skip to content

Commit d03f256

Browse files
committed
add fps argument
1 parent 8ccef42 commit d03f256

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

roboflow/roboflowpy.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def run_video_inference_api(args):
123123
# Pass model_id and version
124124
job_id, signed_url, expire_time = model.predict_video(
125125
args.video_file,
126-
fps=40,
126+
args.fps,
127127
prediction_type="batch-video",
128128
)
129129
results = model.poll_until_video_results(job_id)
@@ -376,6 +376,12 @@ def _add_run_video_inference_api_parser(subparsers):
376376
dest="video_file",
377377
help="path to video file",
378378
)
379+
run_video_inference_api_parser.add_argument(
380+
"-fps",
381+
dest="fps",
382+
type=int,
383+
help="fps",
384+
)
379385
run_video_inference_api_parser.set_defaults(func=run_video_inference_api)
380386

381387

0 commit comments

Comments
 (0)