Measure Speed With Raspberry Pi + OpenCV + Python

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 52

  • @aaronag7876
    @aaronag7876 Před 2 lety +3

    Exactly what I needed, as working on a similar project. Thanks

  • @aled721
    @aled721 Před rokem +2

    It'd be cool if this could add the info into a csv file too.

  • @adlernunez
    @adlernunez Před 4 měsíci

    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.

  • @99dynasty
    @99dynasty Před 2 lety +3

    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  Před 2 lety +1

      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.

  • @zoyamchuang2806
    @zoyamchuang2806 Před 19 dny

    Could this project change to USB webcam?

  • @jimherefordbmx
    @jimherefordbmx Před 6 měsíci

    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

  • @christopherzaino9443
    @christopherzaino9443 Před 7 měsíci

    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)?

  • @MrEspeediE
    @MrEspeediE Před 2 měsíci

    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  Před 2 měsíci

      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

  • @danyf3116
    @danyf3116 Před 2 lety +3

    Thanks for the step by step info. Is it possible to use a regular USB camera for these projects ?

    • @Core-Electronics
      @Core-Electronics  Před 2 lety +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

  • @olliewang7476
    @olliewang7476 Před 2 měsíci

    at 4:27 when i try to open menubox, it says permission denied, do you know why?

  • @anghanquan577
    @anghanquan577 Před rokem +1

    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  Před rokem +1

      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 - czcams.com/video/BLuI118nhzc/video.html

  • @rangakaarthi7011
    @rangakaarthi7011 Před rokem +1

    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  Před rokem

      Hit up the CZcams 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 - czcams.com/video/-xdB_x_CbC8/video.html

  • @SandbagG45
    @SandbagG45 Před 2 lety +1

    what are the speed limitations on this if i was to replace the car with say a golf ball?

    • @Core-Electronics
      @Core-Electronics  Před 2 lety +1

      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.

  • @faulio
    @faulio Před 2 lety +2

    Is it possible to scan a street with 100 different cars a day?

    • @Core-Electronics
      @Core-Electronics  Před 2 lety +1

      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.

  • @juanpaul6141
    @juanpaul6141 Před 2 lety +1

    Thanks a bunch!

  • @azzezza0921
    @azzezza0921 Před rokem +1

    Hello, can raspberry Pi face detection integrate with ANFIS?

    • @Core-Electronics
      @Core-Electronics  Před rokem

      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.

  • @rossmischnick
    @rossmischnick Před 10 měsíci

    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 Před měsícem

      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.

  • @TARUN__46
    @TARUN__46 Před rokem

    Hy is it possible to run rasp model b 1 GB Ram and can I use 5 doller raspberry pi cam?

  • @user-ed4yp6eq5k
    @user-ed4yp6eq5k Před 4 měsíci

    Bro is Conor Murphy the bodybuilder your bro ? 😮

  • @abhinigam3889
    @abhinigam3889 Před 2 lety +1

    Can we measure the speed of the ball using this software?

  • @olliewang7476
    @olliewang7476 Před 2 měsíci

    when i open the menubox, it says failed to start speed cam py, any idea why?

    • @olliewang7476
      @olliewang7476 Před 2 měsíci

      i think it has something to do with permissions, but im not sure what.

    • @olliewang7476
      @olliewang7476 Před 2 měsíci

      specifically it says line 60 of the menubox script has permission denied

    • @Core-Electronics
      @Core-Electronics  Před 2 měsíci

      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!

  • @TANMAYSINGH-rt2zz
    @TANMAYSINGH-rt2zz Před rokem +1

    sir can you please provide the code link here as i am unable to find it in the guided note

    • @Core-Electronics
      @Core-Electronics  Před rokem

      Big love to Claude, here is his GitHub page on this script - github.com/pageauc/speed-camera

    • @TANMAYSINGH-rt2zz
      @TANMAYSINGH-rt2zz Před rokem +1

      @@Core-Electronics thank u so much sir

  • @MC-mi2sh
    @MC-mi2sh Před 2 lety +1

    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?

  • @user-nz2op9zl3r
    @user-nz2op9zl3r Před rokem

    Where did you get the camera

  • @jyvben1520
    @jyvben1520 Před 2 lety +2

    5:00 "ip address : 8 o 8 o", nope, 8080, no letters, also use tab completion for a filename in the current directory

  • @mirozbiro
    @mirozbiro Před 4 měsíci

    I am missing credit to the author of the sw.

  • @Dirtyharry70585
    @Dirtyharry70585 Před rokem

    Cool

  • @Enigma363
    @Enigma363 Před 2 lety +1

    my webserver isnt working?

    • @Core-Electronics
      @Core-Electronics  Před 2 lety

      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 😊

  • @barrymagno7581
    @barrymagno7581 Před 2 lety

    Hi Good day! Does raspberry pi 2gb ram will work on this?

    • @Core-Electronics
      @Core-Electronics  Před 2 lety

      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

    • @barrymagno7581
      @barrymagno7581 Před 2 lety +1

      @@Core-Electronics sorry wrong question, im pertaining to raspberry pi 4 with 2gb ram

    • @Core-Electronics
      @Core-Electronics  Před 2 lety +1

      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

    • @barrymagno7581
      @barrymagno7581 Před 2 lety +1

      @@Core-Electronics Thank you mate!