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

Prerequisites

  • Install and configure OpenCV: uv pip install opencv-python
  • 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.