pageauc/speed-camera

A Unix, Windows, Raspberry Pi Object Speed Camera using python3, opencv, video streaming, motion tracking. Includes a Standalone Web Server , Image Search using opencv template match and a whiptail Admin Menu Interface Includes picam and webcam Plugins for motion track security camera configuration including rclone sync scripts.

What it solves

This project turns a standard camera into a motion-tracking speed detection system. It identifies the largest moving object within a defined area of the camera's view, calculates its speed based on user-defined calibration, and logs the data for analysis.

How it works

The software uses Python and OpenCV to monitor a video stream. It tracks the x and y coordinates of moving objects that exceed a minimum pixel size. By comparing the object's movement against calibration settings (which define distance and scale), it determines the speed. Data is saved to CSV files or a SQLite database, and the system can automatically generate graphs, reports, and web-accessible views of captured images.

Who it’s for

It is designed for hobbyists and developers using a Raspberry Pi, Windows, or Unix-based system who want to build a DIY speed-monitoring station using a camera module, USB webcam, or IP/RTSP camera.

Highlights

  • Supports multiple camera types including Raspberry Pi camera modules, USB webcams, and IP/RTSP streams.
  • Includes a menu-driven management system (menubox.sh) for easy configuration and operation.
  • Stores speed data in SQLite databases for historical tracking and analysis.
  • Generates visual reports, graphs, and HTML pages to view captured events via a web browser.
  • Offers optional remote file synchronization using rclone to services like Google Drive or Dropbox.
  • Provides integration support for license plate recognition via OpenALPR.

Related

  • Project
  • Project
  • Project
  • Project