| videoController | index /home/bedrock/Desktop/project/AlertWatch/Production/detector/util/videoController.py |
Video Saving Utilities for Blink Detection and Drowsiness Monitoring
This module provides functions for saving video frames to a file, ensuring directory existence,
and handling video saves.
Functions:
- save_video_sync: Saves a video synchronously from a buffer of frames.
- save_video: Asynchronously saves a video using an executor.
Dependencies:
- cv2: For OpenCV video handling.
- asyncio: For asynchronous tasks.
Usage:
Use these functions to handle video saving during drowsiness detection in real-time applications.
Author:
Lior Jigalo
License:
MIT
| Modules | ||||||
| ||||||
| Functions | ||
| ||