Skip to main content

Prerequisites

The following example requires the opencv-python and openai libraries.
Grant camera access to the terminal or IDE running the example. On macOS, use System Settings > Privacy & Security > Camera. On Windows, use Settings > Privacy & security > Camera and allow desktop apps. On Linux and in containers, make sure the process can access the camera device, such as /dev/video0.

Example

The following agent can capture images and videos from your webcam:

Toolkit Params

Toolkit Functions

Developer Resources