Loading...
Loading...
Capture webcam frames and video clips using the aeyes daemon. Use when asked to take a photo, snap a picture, grab a frame, record video, view live webcam stream, or inspect webcam feed. Supports multiple cameras and live streaming via web UI.
npx skill4agent add elecnix/aeyes aeyesaeyeswhich aeyes
# or
command -v aeyesls ~/.cargo/bin/aeyes 2>/dev/null
ls /usr/local/bin/aeyes 2>/dev/nullgit clone https://github.com/elecnix/aeyes.git /tmp/aeyes
cd /tmp/aeyes
cargo install --path .~/.cargo/bin/aeyes~/.cargo/binexport PATH="$HOME/.cargo/bin:$PATH"rustc --versioncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"start Start the background daemon
cams List available cameras
frame Capture a frame to a file through the daemon HTTP API
video Capture a video clip through the daemon HTTP API
stop Stop the daemon
status Show daemon statusaeyes startaeyes status# Custom output path (required - no default path)
aeyes frame -o /tmp/my-photo.jpgaeyes camsaeyes video -o /tmp/my-clip.aviaeyes stop# One-liner: ensure daemon is running, capture, return path
aeyes start 2>/dev/null || true
sleep 1
aeyes frame -o /tmp/aeyes-capture.jpg
echo "Image saved to: /tmp/aeyes-capture.jpg"| Camera | URL |
|---|---|
| Camera 0 | http://localhost:43210/web/0 |
| Camera 1 | http://localhost:43210/web/1 |
| Default camera | http://localhost:43210/web/default |
# Display URL for user
echo "Live webcam view: http://localhost:43210/web/0"
# Or open in Chrome (if available)
google-chrome http://localhost:43210/web/0 2>/dev/null &# Get the MJPEG multipart stream
curl http://localhost:43210/cams/default/stream# List cameras
curl http://localhost:43210/cams
# Get a frame
curl -o frame.jpg http://localhost:43210/cams/default/frame
# Capture a video (query params: max_length, fps)
curl -o video.avi http://localhost:43210/cams/default/video?max_length=5&fps=15
# Live MJPEG stream
curl http://localhost:43210/cams/default/stream| Symptom | Cause | Fix |
|---|---|---|
| Not in PATH | Add |
| Build fails | Missing Rust | Install rustup (see above) |
| Daemon fails to start | Webcam in use or port 43210 occupied | Close other apps using camera, check |
| Empty/black capture | Wrong device | Check |
| Permission denied | No video group access | |
| Web UI not loading | Daemon not running | Run |
http://127.0.0.1:43210