Moondream logo
Solution

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.

Try Moondream with live video

Prompt
Trigger

How It Works

Analyzing live video is simple: capture frames, send them to Moondream, and process the results.

1Video Stream

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');
2Send Frame + Prompt

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?'
  })
});
3Act on Results

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.

Security & Surveillance

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
Quality Control

Inspect products on assembly lines, identify defects, and maintain quality standards automatically.

  • Defect detection on conveyor belts
  • Product counting and tracking
  • Assembly verification
Safety Monitoring

Ensure workers wear PPE, detect hazardous situations, and prevent accidents before they happen.

  • PPE compliance checking
  • Hazard detection
  • Worker proximity alerts
Retail Analytics

Track customer behavior, monitor inventory, and optimize store layouts based on real-time insights.

  • Customer traffic analysis
  • Shelf monitoring
  • Queue length tracking
Get Started

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.

Run It Yourself
  • Moondream Station is free
  • Works with our Python and Node clients
  • Works offline, fully under your control
  • CPU or GPU compatible
Moondream Station
Run in the Cloud
  • 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
Moondream Cloud