Analyze Live Video Streams
Turn video streams into actionable intelligence. Continuous scene analysis with custom triggers. Works with webcams, security cameras, drones—any video source. Deploy instantly or run free on edge.
How It Works
Analyzing live video is simple: capture frames, send them to Moondream, and process the results.
Connect to any video source—webcam, security camera, RTSP stream, or uploaded video file.
// Capture frame from video
const canvas = document.createElement('canvas');
canvas.width = video.videoWidth;
canvas.height = video.videoHeight;
const ctx = canvas.getContext('2d');
ctx.drawImage(video, 0, 0);
const frame = canvas.toDataURL('image/jpeg');Send the captured frame with your question or detection target to Moondream's API.
// Send to Moondream API
const response = await fetch(apiUrl + '/query', {
method: 'POST',
headers: {
'X-Moondream-Auth': apiKey
},
body: JSON.stringify({
image_url: frame,
question: 'Is there a delivery person at the door?'
})
});Use the results to trigger alerts, log events, update dashboards, or control systems in real-time.
// Process the answer
const data = await response.json();
if (data.answer.includes('yes')) {
// Trigger alert
sendAlert('Delivery person detected');
// Log event
logEvent({
timestamp: Date.now(),
detection: data.answer
});
}What You Can Build
Live video analysis enables real-time decision making for security, quality control, safety, and analytics applications.
Monitor for unauthorized access, detect suspicious behavior, and alert security teams in real-time.
- •Person detection in restricted areas
- •Package theft monitoring
- •Perimeter breach alerts
Inspect products on assembly lines, identify defects, and maintain quality standards automatically.
- •Defect detection on conveyor belts
- •Product counting and tracking
- •Assembly verification
Ensure workers wear PPE, detect hazardous situations, and prevent accidents before they happen.
- •PPE compliance checking
- •Hazard detection
- •Worker proximity alerts
Track customer behavior, monitor inventory, and optimize store layouts based on real-time insights.
- •Customer traffic analysis
- •Shelf monitoring
- •Queue length tracking
Get Running in Minutes.
Moondream is open source and you can install and run it anywhere, for free. You can have it running on your computer or in our cloud in a matter of minutes.
- Moondream Station is free
- Works with our Python and Node clients
- Works offline, fully under your control
- CPU or GPU compatible
- Spin up instantly—no downloads or DevOps
- $5 in free monthly credits, no card required
- Predictable pay-as-you-go pricing
- 2 RPS on free tier, scales to 10 RPS or more with paid credits