Detect vehicles speed from CCTV Cameras with Opencv and Deep Learning

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • Blog: pysource.com/2021/10/26/speed...
    In this tutorial, we will see how to use CCTV camera footage to calculate the vehicle speed detection of each individual vehicle passing on the road
    ➤ Courses:
    Full Computer Vision course: pysource.com/object-detection...
    Training Mask R-CNN PRO (Notebook + Mini-Course): pysource.com/mask-rcnn-traini...
    ➤ Follow me on:
    LinkedIn: / pysource
    ➤ For business inquiries:
    pysource.com/contact
    #SpeedDetection #OpenCV #DeepLearning
  • Věda a technologie

Komentáře • 55

  • @pysource-com
    @pysource-com  Před 2 lety +4

    ►► You can Build a Computer Vision software to DETECT and TRACK any Object.
    → 4-Step FREE Workshop pysource.com/blueprint-workshop-signup/

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

      Where can I get this video sources i didn't see in the blog ?

    • @pysource-com
      @pysource-com  Před 2 lety

      @@tamilmanir6730 the specific video source I used in this project is not available to download.

  • @marcomaggiotti2330
    @marcomaggiotti2330 Před 2 lety

    Love it, I really like ur motivation and ideas. I also think that there is a lot of potential in cv for ip cameras

  • @mohammadaliavazpour3268

    Your videos helped me a lot , really really thank you

  • @19_lowisroyfigo76
    @19_lowisroyfigo76 Před 2 lety +1

    Botak Berguna, terimakasih telah memberikan TUTORIAL. GOOD JOB,

  • @mohammadaliavazpour3268

    Another nice object , Thanks

  • @NA-cw4pj
    @NA-cw4pj Před 2 lety +2

    TYSM for this video, I love it. But anyone have the code for execute this? Or using the one´s you let us see on the screen could work? I mean at leas the parts we see for every instance in the video. TYSM

  • @abdulrahmanalshameery7097

    its a great videos
    i get mini problem where is the full video that you croped it to implement this project

  • @truthcam1
    @truthcam1 Před měsícem

    great videos............

  • @akifakbulut765
    @akifakbulut765 Před rokem +2

    where can we find the python file named deep_sort.deep_sort that you used in the video?

  • @shamrao8723
    @shamrao8723 Před 2 lety +4

    Hi Sergio, can you make a video where it can determine (heavy congestion, moderate congestion, no/light congestion) based on speed/ number of vehicles passing through point 1 to point 2? This might be very helpful for a student like me who wanted to explore more on object tracking. Thank you.

    • @feyakut
      @feyakut Před 2 lety

      Yeah that would be good

  • @zy.r.4323
    @zy.r.4323 Před rokem

    Hi
    Thank you for the tutorial!
    I am doing similar project but I have some problems when counting objects passing roi. Image distortion in roi causing wrong object counting. I am using nvidia geforce rtx 3090. Help me to fix this problem, please

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

    can you give the video footage clip?

  • @GaryBuck
    @GaryBuck Před 2 lety

    V good video - you could add a suggestion to calibrate it by driving the road at a known set speed. Then tweak the estimated distance figure to match

    • @pysource-com
      @pysource-com  Před 2 lety +1

      Hi Gary,
      I think the easiest way to get the distance, by not having instruments to do that, is by using google maps.
      Select on google maps the starting point and the end point and you'll get the distance. Definitely will be more precise than using a own vehicle at a certain speed

  • @anime_on_data7594
    @anime_on_data7594 Před rokem

    how can we take this implementation to PyTorch yolov5 detection?

  • @RohitThirukarthick
    @RohitThirukarthick Před 2 lety

    Hey hi.. can u please give me a guide on detect speed of turbine rotation using opencv plzzz

  • @user-ph8oe2qu5o
    @user-ph8oe2qu5o Před 26 dny

    Hi,
    Would it be possible to detect the speed of vehicles, but with a camera at the same horizontal level as them? That is to say, a view which is not plunging, as in your example.
    We have a street; we place a camera on a pole about six feet high. We record passing vehicles and later, using Open CV or other programs, we are able to obtain the speed of everything in the camera's field of view.
    Of course, we took the distances beforehand, for example using a 100-foot measuring tape.
    Thank you for sharing your knowledge.

  • @mdkamruzzaman7174
    @mdkamruzzaman7174 Před 11 měsíci

    sir can we measure the distance ? please answer..

  • @tomasdaels
    @tomasdaels Před 2 lety

    sergio, could you please make a video where the camera is not fixed? so the vertexces of the area of interest should get refreshed.
    Thanks!

    • @pysource-com
      @pysource-com  Před 2 lety

      HI Tomas,
      please share some video footage of a moving camera and I'll take it into account for further updates

  • @hermitking3718
    @hermitking3718 Před rokem

    I need to capture torpedo speeds for my project those it work underwater.

  • @adampiksel689
    @adampiksel689 Před 2 lety

    Hi Sergio, a question what's the reason of this kind of situation "I have a camera footage from the road, yolo alghoritm does detection quite well, but in length of a few frames exactly same object is detected many times and it's label with number changed" ? Especially it's visible during car passing by.

    • @pysource-com
      @pysource-com  Před 2 lety

      You need to consider that Detection and Tracking are two separate stages.
      Once you have object detection in place, you need to implement the algorithm for a proper object tracking, otherwise it's normal that it loses the id.

  • @haeemnaeem5892
    @haeemnaeem5892 Před rokem

    kindly upload the vedio which you had uesd

  • @loiuc4600
    @loiuc4600 Před 2 lety

    a rewarding video. However, do you have datasets on the velocities of the vehicles for ground truth?

    • @pysource-com
      @pysource-com  Před 2 lety

      Nope, I used pretrained models for this example.

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

    can you please make the video to predict trajectory of multiple objects in different polygon?? i will be thankful to you

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

    yolo4 custom pleaseeeee

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

    Where can I get the deep_sort source like yours sir?

    • @pysource-com
      @pysource-com  Před 2 lety

      Hi, this code is on the course Object Detection (with Opencv and Deep Learning) on pysource.com

  • @hieuvu6543
    @hieuvu6543 Před 2 lety

    plz soucre code ?

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

    Where is deep sort come from? Can I install via pip command?

    • @pysource-com
      @pysource-com  Před 2 lety

      Deep sort is an open source object tracking algorithm. Its source is available on github but its implementation is not so easy.
      I've created a custom and simple implamentation of deep sort in a few lines of codes and I share that on my videocourse Object Detection with Opencv and Deep Learning.

  • @rakotomamonjypaulmazoto7881

    Thaks. I have a question.
    How to get and install object_detection and deep_sort?

    • @pysource-com
      @pysource-com  Před 2 lety

      Deep Sort is an open source library that you can find online, but the specific one is a custom implementation that's available only on the course Object Detection (with Opencv and Deep Leraning) pysource.com/object-detection-opencv-deep-learning-video-course/

  • @rahulsinghvwymycpdzg1714

    hello sir which software are using in programming

  • @nhomlaptrinhcode
    @nhomlaptrinhcode Před 2 lety

    Can you send me the car footage in that video.

  • @codewithkhizer4943
    @codewithkhizer4943 Před 2 lety

    code

  • @sabirineel-harchali8675

    thanks for your amazing video i need this video_test plzz

  • @marinenav8
    @marinenav8 Před 2 lety

    👍

    • @marinenav8
      @marinenav8 Před 2 lety

      There are example source code ?

  • @Kishi1969
    @Kishi1969 Před 2 lety

    Dear sir...You did not put the code of this in your site "Detect vehicles speed from CCTV Cameras with Opencv and Deep Learning" can you let me know where i can download it sir

    • @pysource-com
      @pysource-com  Před 2 lety +1

      Hi, this code is not available to download

    • @Kishi1969
      @Kishi1969 Před 2 lety

      @@pysource-com OK Sir but how to follow on this program then Sir?

  • @sharank5724
    @sharank5724 Před 2 lety +6

    Can you share the source code for this ??

    • @alone_legends
      @alone_legends Před rokem

      Can we delete CCTV footage and replace it with another CCTV footage

  • @endotherm
    @endotherm Před 8 měsíci

    You wouldn't just use the distance from one side of the roundabout to the other, that would be a straight line. The actual track the vehicles take would be a curved path so you would need to do some math to calculate the circumference of the roundabout and the length of the segment used. Otherwise the estimated speeds are going to come out slower than they are actually travelling -- they need to go faster along the curved route to get to the exit in the same time as a straight line calculation.

  • @happypumpkinpm7434
    @happypumpkinpm7434 Před 2 lety +4

    Thanks for the video. I want to give my thoughts about this. 16seconds traveling time does not seem correct. I do not think that is a 65 meters distance, it is lower than that. The time that you are calculating is not the actual traveling time, you are calculating the processing time in your computer. You are using deep sort (heavy computation), the processing time is slow, which makes time look longer and in fact that is due to the slow processing. Your timing should be based on the entering and exiting frame rather than time based on processing. You are considering that delay for calculating time here which is not accurate.

    • @pysource-com
      @pysource-com  Před 2 lety +3

      I do totally agree with what you say. This project needs to be considered purely as a demonstration.
      I would say that with an accurate calibration and also with the exact timestamp of each single frame we can get a very good accuracy.

    • @arivarasan1548
      @arivarasan1548 Před rokem

      Hi @happypumpkinpm7434, I think the time that's calculated is not the system processing time, it should be the actual travel time. As the timestamp is captured based on the vehicle's position in the frame, it should be the approximate travel time.

  • @faysalnazmul7240
    @faysalnazmul7240 Před 2 lety

    Sir, would you give me the code for free?