From fc0e133ea9f1dce65ffe7a6cfd4798ba44d6b058 Mon Sep 17 00:00:00 2001 From: AnonymDevOSS Date: Fri, 14 Nov 2025 21:53:14 +0100 Subject: [PATCH] added example as it was delited by mistake --- supervision/utils/video.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/supervision/utils/video.py b/supervision/utils/video.py index dbf63a98..7227b92b 100644 --- a/supervision/utils/video.py +++ b/supervision/utils/video.py @@ -251,6 +251,18 @@ def process_video( - When the callback function is Python-heavy and GIL-bound. In that case, using a process-based approach is more effective. + Examples: + ```python + import supervision as sv + def callback(scene: np.ndarray, index: int) -> np.ndarray: + ... + process_video( + source_path=, + target_path=, + callback=callback + ) + ``` + Args: source_path (str): The path to the source video file. target_path (str): The path to the target video file.