Example
The following agent can capture images and videos from your webcam:Toolkit Params
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. |
Toolkit Functions
Function | Description |
---|---|
capture_image | Capture a single image from the webcam. |
capture_video | Record a video from the webcam for a specified duration. |