Measure Speed With Raspberry Pi + OpenCV + Python

  Рет қаралды 44,727

Core Electronics

Core Electronics

Күн бұрын

Пікірлер: 52
@danyf3116
@danyf3116 2 жыл бұрын
Thanks for the step by step info. Is it possible to use a regular USB camera for these projects ?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Totally mate, you will just need to adjust the script a little bit by adjusting the camera | Index | number. With everything plugged in type and enter the following into your terminal. This will inform you as to what the index number need to be. --list-cameras
@aaronag7876
@aaronag7876 3 жыл бұрын
Exactly what I needed, as working on a similar project. Thanks
@Core-Electronics
@Core-Electronics 3 жыл бұрын
Glad it helped 😊
@jimherefordbmx
@jimherefordbmx 8 ай бұрын
Hi, thanks for this great guide and write up. I've got the system up and running but having issues where only the slower moving cars and pedestrians are being picked up. I have adjusted the red box to only cover the road, and using identical hardware (Pi4B-8GB and PiHQ cam). What settings can I play with to increase the ability to capture faster moving vehicles? I can't move camera further away. Cars are roughly 10m away. Thanks
@99dynasty
@99dynasty 2 жыл бұрын
Theory question. Would a camera based system be as effective as a radar or laser system at detecting distance between a lead vehicle? Also curious about rate of distance change?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
All depends on how exactly the system was recording the data, how good the radar/laser are and how you are measuring effectiveness 😊. This camera has the advantage of not being right next to the road and also seeing a lot of the road. Rate of distance change sounds like a velocity which is what were measuring here.
@christopherzaino9443
@christopherzaino9443 9 ай бұрын
I am trying to make a similar system to track the exit velocity and launch angle of a baseball being hit off of a tee. Would this be able to measure object's velocity and position of a quick moving object (around 100mph)?
@aled721
@aled721 Жыл бұрын
It'd be cool if this could add the info into a csv file too.
@anghanquan577
@anghanquan577 Жыл бұрын
If I want to measure the speed and revolution of a baseball throughout the whole flight, can you recommend me a camera that can do that?
@Core-Electronics
@Core-Electronics Жыл бұрын
I love that idea! I reckon you need to go full Mythbusters, with a zebra background and a high frame rate, sharply focused, slow motion camera. Similar to this set up - kzbin.info/www/bejne/eH3YemRnbdObsMU
@rangakaarthi7011
@rangakaarthi7011 Жыл бұрын
what camera module model you have used sir. pls reply with the model number and other essential details on additional components needed for implementation .what kind of camera module is suitable if it is to be implemented in road? thank you
@Core-Electronics
@Core-Electronics Жыл бұрын
Hit up the KZbin description or full written up article - core-electronics.com.au/guides/detect-speed-raspberry-pi/ - to see exactly what hardware I am using. If you mimic the parts I have used in the guide (perhaps use a longer range lens, depending on how far away from the road you are) you'll be good to go. Check out Claude using it on actual traffic here - kzbin.info/www/bejne/Y6nHc5KulKiVeZo
@zoyamchuang2806
@zoyamchuang2806 2 ай бұрын
Could this project change to USB webcam?
@MrEspeediE
@MrEspeediE 4 ай бұрын
Hello and thank you for going through this. I have this up and running and have been tweaking it to get the speed as accurate as possible. I am having an issue where the camera is taking multiple photos of a vehicle as it goes by. How do I reduce that so it calculates just one average? I’m running this in an Orange. I had it on a RPi but I do not think it was as smoothing. The Orange is running it really well. Any help would be appreciated!
@Core-Electronics
@Core-Electronics 4 ай бұрын
Great to hear you got the project going, we have a dedicated community forums post that might have some helpful information, if not feel free to chuck a post there with your setup, we have lots of maker eyes over there that can help! forum.core-electronics.com.au/t/detect-speed-with-a-raspberry-pi-camera-and-opencv/11784/18
@juanpaul6141
@juanpaul6141 2 жыл бұрын
Thanks a bunch!
@Core-Electronics
@Core-Electronics 2 жыл бұрын
My pleasure mate 😊
@rossmischnick
@rossmischnick Жыл бұрын
Would this software work with a car driving towards the camera vs perpendicular to it? working on a speed sign with speed display for my neighborhood. Thanks!
@jackrice1094
@jackrice1094 4 ай бұрын
This software works by pixel tracking Left to Right or Right to Left. This won’t work with the car driving towards the camera as it operates at a calibrated distance away from the camera. Hope this helps.
@aquarium-i2s
@aquarium-i2s Жыл бұрын
Where did you get the camera
@SandbagG45
@SandbagG45 2 жыл бұрын
what are the speed limitations on this if i was to replace the car with say a golf ball?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Frame rate and pixel density are the limiting factors with this system. If your smashing the golf ball out of the driving range I reckon it will be going too fast to get an accurate reading, but if your doing slower putts on the green it'll record that speed no problem.
@azzezza0921
@azzezza0921 Жыл бұрын
Hello, can raspberry Pi face detection integrate with ANFIS?
@Core-Electronics
@Core-Electronics Жыл бұрын
Nice advanced question! I know that ANFIS systems have been implemented on a Raspberry Pi (www.researchgate.net/publication/323700075_ANFIS_based_quadrotor_drone_altitude_control_implementation_on_Raspberry_Pi_platform) I see no reason why it couldn't be taken into the land of Face Detection.
@adlernunez
@adlernunez 6 ай бұрын
i need help with genereic web cam, i saw some options in settings, where at present its set to pilibcam , and can be changed to usbcam, and doing so didnt do anything.
@faulio
@faulio 2 жыл бұрын
Is it possible to scan a street with 100 different cars a day?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
100% mate, that is totally within the capabilities of this system. Each car captured by the system will have a unique photo tagged with time and speed information for record keeping.
@abhinigam3889
@abhinigam3889 2 жыл бұрын
Can we measure the speed of the ball using this software?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
You absolutely can!
@TANMAYSINGH-rt2zz
@TANMAYSINGH-rt2zz Жыл бұрын
sir can you please provide the code link here as i am unable to find it in the guided note
@Core-Electronics
@Core-Electronics Жыл бұрын
Big love to Claude, here is his GitHub page on this script - github.com/pageauc/speed-camera
@TANMAYSINGH-rt2zz
@TANMAYSINGH-rt2zz Жыл бұрын
@@Core-Electronics thank u so much sir
@olliewang7476
@olliewang7476 4 ай бұрын
at 4:27 when i try to open menubox, it says permission denied, do you know why?
@TARUN__46
@TARUN__46 Жыл бұрын
Hy is it possible to run rasp model b 1 GB Ram and can I use 5 doller raspberry pi cam?
@Dirtyharry70585
@Dirtyharry70585 Жыл бұрын
Cool
@Burgerhs
@Burgerhs 6 ай бұрын
Bro is Conor Murphy the bodybuilder your bro ? 😮
@barrymagno7
@barrymagno7 2 жыл бұрын
Hi Good day! Does raspberry pi 2gb ram will work on this?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
If you're running the legacy 'Buster' OS you should be able to run this on a Raspberry Pi 3, though the CPU intense computer vision will run quite slowly on a Pi 3
@barrymagno7
@barrymagno7 2 жыл бұрын
@@Core-Electronics sorry wrong question, im pertaining to raspberry pi 4 with 2gb ram
@Core-Electronics
@Core-Electronics 2 жыл бұрын
No worries, any Raspberry Pi 4 will do just fine, RAM doesn't greatly impact the performance for this application as the processes are mainly CPU based
@barrymagno7
@barrymagno7 2 жыл бұрын
@@Core-Electronics Thank you mate!
@olliewang7476
@olliewang7476 4 ай бұрын
when i open the menubox, it says failed to start speed cam py, any idea why?
@olliewang7476
@olliewang7476 4 ай бұрын
i think it has something to do with permissions, but im not sure what.
@olliewang7476
@olliewang7476 4 ай бұрын
specifically it says line 60 of the menubox script has permission denied
@Core-Electronics
@Core-Electronics 4 ай бұрын
Hey Ollie, we have a dedicated forum topic on this exact video that might have some helpful information for you there, if not feel free to drop a post there with your setup and some screenshots of your issue, we have a lot of maker eyes over there that can help!
@Enigma363
@Enigma363 2 жыл бұрын
my webserver isnt working?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Is it functioning okay not-headlessly? Also double check for me that all your hardware is the same as mine, also can you confirm that your system is running with Raspberry Pi 'Buster' OS. We can get your system back to running properly 😊
@mirozbiro
@mirozbiro 6 ай бұрын
I am missing credit to the author of the sw.
@MC-mi2sh
@MC-mi2sh 2 жыл бұрын
I would really love this to track vehicle speeds but I just don’t have the technical ability to build one of these. Is there a place I can find somebody to build me one of these for a fee?
@jyvben1520
@jyvben1520 3 жыл бұрын
5:00 "ip address : 8 o 8 o", nope, 8080, no letters, also use tab completion for a filename in the current directory
@Core-Electronics
@Core-Electronics 3 жыл бұрын
Cheers for the correction and the tip!
How To Scan QR Codes With A Raspberry Pi + OpenCV + Python
5:42
Core Electronics
Рет қаралды 41 М.
Raspberry Pi Cameras - The BIG Picture
52:26
DroneBot Workshop
Рет қаралды 507 М.
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 152 МЛН
I Turned My Mom into Anxiety Mode! 😆💥 #prank #familyfun #funny
00:32
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 23 МЛН
License Plate Detection Demo Using Raspberry Pi Camera
52:14
Data Slayer
Рет қаралды 86 М.
Object Tracking with Opencv and Python
30:03
Pysource
Рет қаралды 621 М.
How Many ERRORS Can You Fit in a Video?!
20:40
ElectroBOOM
Рет қаралды 3,3 МЛН
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 852 М.
PoE+ NVMe beats Raspberry Pi to the punch
15:31
Jeff Geerling
Рет қаралды 263 М.
Hand Tracking & Gesture Control With Raspberry Pi + OpenCV + Python
13:02
Accessing USB Devices and Webcams with OpenCV and Python
21:40
Nicholas Renotte
Рет қаралды 99 М.
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Рет қаралды 3,5 МЛН
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 1,3 МЛН
How to do Object Detection using ESP32-CAM and Edge Impulse YOLO Model
16:50