Skip to content

Latest commit

 

History

History
32 lines (14 loc) · 550 Bytes

README.md

File metadata and controls

32 lines (14 loc) · 550 Bytes

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