Skip to main content
Enable Agno agents to perform real-time computer vision operations using OpenCV tools. For selective function access, use the enable_ flag pattern.

Prerequisites

  • Install dependencies: uv pip install -U agno openai opencv-python.
  • Export your OpenAI API key: export OPENAI_API_KEY=your_openai_key.
  • Enable Camera Permissions:
    • Make sure your webcam is connected and not being used by other applications.
    • Go to System Settings > Privacy & Security > Camera
    • Enable camera access for Terminal or your IDE

Run the Example

For details, see OpenCV cookbook.