| drawController | index /home/bedrock/Desktop/project/AlertWatch/Production/detector/drawUtil/drawController.py |
Drawing Utilities for Video Frames
This module provides utility functions for annotating video frames with various information,
including bounding boxes, text, landmarks, head pose, and performance metrics like FPS.
Functions:
- draw_bounding_box: Draws a bounding box with a detection score on the frame.
- draw_text: Displays text at a specific location on the frame.
- draw_landmarks: Draws detected landmarks on the frame.
- draw_head_pose: Visualizes head pose using 3D axes on the frame. (unused)
- display_fps: Displays current and average FPS on the frame.
- display_blink_info: Displays blink-related information on the frame.
Dependencies:
- OpenCV (cv2): For image processing and drawing operations.
- NumPy: For numerical computations and matrix manipulations.
- datetime: For timestamping frames.
Usage:
Import the module and use the functions to annotate video frames during real-time video processing.
Author:
Lior Jigalo
License:
MIT
| Modules | ||||||
| ||||||
| Functions | ||
| ||