Skip to content

Python OpenCV Motion Detection Car Speed Detection

Notifications You must be signed in to change notification settings

krismasson/WebcamToMPH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

WebcamToMPH

Python OpenCV

Captures an area of the desktop and motion detects it.

detects cars as the drive by. displays speed.

Method:

Calculate the time the object was on the screen and divide by feet

something like Speed = Distance / Time

Installation:

  • pip install cv2 numpy mss Pillow keyboard time

  • set the distance of your street

(basically the amount of street visible in your camera)

  • set the capture area

  • use getpng to generate a comparison image

  • then once running you can hit f1 to set the comparison image

About

Python OpenCV Motion Detection Car Speed Detection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages