PROJECTS Raspberry Pi Speed Camera
Pi Cam
Speed Trap
Build a motion recorder that analyzes video
to catch speeding vehicles on your street
Written and photographed by Ed Hume
0 est. MPH=43.5
0
Adobe Stock-Umi G Design
How would you like an inexpensive camera you
could point out the window (or at the fridge) and
record video whenever motion occurs? A great
project — but lets take it further. If your window
faces the street, would you like to know the speed
of vehicles and pedestrians going by?
This project takes motion detection code
examples found on the web and combines them
with more sophisticated tracking and speed
estimation. It only takes a little familiarity with
Python for you to customize the software for your
own setup. Take a look at the screen capture
(Figure
A
) or this video clip on Flickr (flickr.com/
photos/edhume3/52008654721) to get a feel for
the speed trap we’ll build here.
The Python app is a single file which can run
on the Raspberry Pi 4B single board computer
(SBC) using the Pi V2 camera module, or on a
Linux system using a webcam. It also runs on my
Jetson Xavier NX, which greatly outperforms the
Pi — 21fps at 720×480 — but the Raspberry Pi is
the best choice for a dedicated setup.
76 makezine.com
M83_076-83_PiCamSpeedTrap_F1.indd 76M83_076-83_PiCamSpeedTrap_F1.indd 76 10/10/22 4:15 PM10/10/22 4:15 PM
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.214.202