OpenCVTools enables agents to capture images and videos from webcam using OpenCV computer vision library.
Parameter | Type | Default | Description |
---|---|---|---|
show_preview | bool | False | Whether to show camera preview window during capture. |
enable_capture_image | bool | True | Enable image capture functionality. |
enable_capture_video | bool | True | Enable video capture functionality. |
Function | Description |
---|---|
capture_image | Capture a single image from the webcam. |
capture_video | Record a video from the webcam for a specified duration. |