Measure Speed With Raspberry Pi + OpenCV + Python
Core Electronics Core Electronics
126K subscribers
43,754 views
856

 Published On Oct 3, 2021

Actively determine speed of objects of any size (be it a vehicle, person, or matchbox car) via a live feed. Then use the object's speed to control GPIO!
Full Article - https://core-electronics.com.au/tutor...

Make sure to use the Previous Raspberry Pi 'Buster' OS with this Guide.

Related Information
Flashing 'Buster' OS onto a Raspberry Pi - https://core-electronics.com.au/tutor...
Facial Recognition Raspberry Pi - https://core-electronics.com.au/tutor...
Face and Movement Tracking System For Raspberry Pi - https://core-electronics.com.au/tutor...
Object and Animal Recognition With Raspberry Pi - https://core-electronics.com.au/tutor...
Hand Tracking & Gesture Control With Raspberry Pi - https://core-electronics.com.au/tutor...
Use Your Phone to Control Your Raspberry Pi - https://core-electronics.com.au/tutor...
LED Control with Raspberry Pi -    • Raspberry Pi Workshop - Chapter 2 - U...  
Speed Camera Software Claude Pageau - https://github.com/pageauc/speed-camera

Cameras in combination with artificial intelligence create arguably the most powerful sensor you can ever put on a Raspberry Pi and it has never been easier to try it out yourself. By the time I'm done here we will be able to use the video data coming in to determine accurately the speed of moving objects. Open-CV, which is a huge resource that helps solve real-time computer vision and image processing problems, will be used here to determine what is a moving object. The open-source software will then compare two photos and (from some trigonometry and known distances) infer the speed of that object. Then! It will take the second compared image, provide it with a timestamp, slapping the file location and the speed of the object onto it, save it and upload it to a local network website. These photos can then be accessed through a website from any machine on your local network and are stored indefinitely on the Pi. Then having all that under your belt I will take it a step further and use the recorded speed of the object to control physical hardware (in this case whenever a recorded object goes faster than 0.5km/h it will turn on a LED light). A huge thank you to Claude Pageau whose created the amazing fully fledged speed camera software, it is already brilliant and there is just so much potential to take projects to the next level.

If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - http://coreelec.io/forum

Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:

Raspberry Pi 4 Model B (4GB) Ultimate Kit Bundle (AVALIABLE!) - https://core-electronics.com.au/raspb...

Raspberry Pi 4 Model B 4GB: https://core-electronics.com.au/catal...

Raspberry Pi High Quality Camera (Used Here): https://core-electronics.com.au/catal...

Raspberry Pi 6mm Wide Angle Camera Lens (Used Here): https://core-electronics.com.au/catal...

Raspberry Pi Official Camera Module V2 : https://core-electronics.com.au/catal...

Great Electronic Starter Kit by Kitronik (Breadboard, LEDs, Resistors + heaps more): https://core-electronics.com.au/catal...

Raspberry Pi 4 Power Supply: https://core-electronics.com.au/catal...

0:00 Intro
0:12 Video Overview
0:27 Open-CV and Software Features
1:03 A Glimpse of the Pay-Off
1:10 What You Need
1:43 Initial Set Up and Terminal Commands
4:11 Best Way to Run the Code
4:39 Demonstration!
5:12 Configuration and Live Preview
6:13 Calibrate Software
7:50 Camera Settings
8:34 GPIO Control Via 'High Speed Activity'
10:00 Acknowledgements
10:10 Outro

show more

Share/Embed