Track & Count Vehicles using YOLOv9 and ByteTrack

Поділитися
Вставка
  • Опубліковано 7 лют 2025
  • Welcome to this step-by-step tutorial where you'll master the art of vehicle detection, tracking, and directional counting using YOLOv8.
    Github: github.com/Aar...
    For queries: You can comment in comment section or you can email me at aarohisingla1987@gmail.com
    Throughout this tutorial, you'll delve into the intricacies of YOLOv8, a powerful object detection algorithm, to identify vehicles in real-time. Not stopping there, you'll also learn the fundamentals of vehicle tracking, enabling you to monitor their movements seamlessly. Finally, we'll explore advanced techniques to count vehicles direction-wise, providing invaluable insights into traffic flow analysis. Get ready to embark on a journey of learning and mastery in computer vision with YOLOv8. Let's dive in!
    #yolov9 #computervision #yolov8 #objectdetection #objecttracking

КОМЕНТАРІ • 61

  • @kosttavmalhotra5899
    @kosttavmalhotra5899 10 місяців тому +1

    Very famous channels can't explain by this simplicity in which you have....thanks for your video
    But i think that
    If id in down:
    This line is redundant

    • @CodeWithAarohi
      @CodeWithAarohi  10 місяців тому +1

      Thank you for your feedback! I'm glad you found the video helpful. Regarding your point about redundancy in the line 'If id in down,' I appreciate your observation. Simplifying explanations while maintaining clarity is always a goal. I'll take your feedback into consideration for future content. Thanks again for watching!

  • @Kappa_mi
    @Kappa_mi 10 місяців тому +1

    what is the purpose of having offset?
    instead we can say if line_x_start> cx and cx > line_x_end which means the car touched the line

    • @afiffaudzi93
      @afiffaudzi93 5 місяців тому

      So that we (human) can see the box and id?

  • @Sunil-ez1hx
    @Sunil-ez1hx 11 місяців тому

    Very nicely explained 👏👏👏

  • @soravsingla8782
    @soravsingla8782 11 місяців тому +1

    Good stuff

  • @arnavthakur5409
    @arnavthakur5409 11 місяців тому +1

    Nice video ma'am

  • @LOMADAKARUNAKARREDDYRS
    @LOMADAKARUNAKARREDDYRS 10 місяців тому +1

    clear cut explanation

  • @davesimbana9865
    @davesimbana9865 4 місяці тому

    is it posible to run this on jetson nano real time ?

  • @romrom2001
    @romrom2001 11 місяців тому +1

    Mam how can we detect a fast moving vehicle number plate in ANPR.

    • @CodeWithAarohi
      @CodeWithAarohi  11 місяців тому +1

      While using ANPR on fast moving vehicles there are several challenges due to motion blur and changes in perspective. Using cameras with high frame rates can help reduce motion blur in fast-moving scenes, making it easier to capture clear images of number plates. Also use techniques which can stabilize the video feed which will reduce the motion blur caused by the movement of the vehicle.

  • @MegaBoss1980
    @MegaBoss1980 11 місяців тому +1

    can we use it to count debris on road using moving camera?

    • @CodeWithAarohi
      @CodeWithAarohi  11 місяців тому +1

      Yes, if you have a dataset for that. You can detect and count. Accuracy depends upon the quality of dataset.

  • @sagarmate4890
    @sagarmate4890 10 місяців тому +1

    How to used live webcam for detection

  • @58kartikaursang49
    @58kartikaursang49 11 місяців тому +1

    Hlo mam i want the count of vehicoes which are standing on the signal so for that please tell how to do it

    • @CodeWithAarohi
      @CodeWithAarohi  10 місяців тому +1

      Mark the area where you want to count the vehicles and then count only those vehicles which are in that marked area.

    • @58kartikaursang49
      @58kartikaursang49 10 місяців тому

      @@CodeWithAarohi mam how to do it can u please help me to do it I need it for the project

  • @AmandeepSingh-uq3wp
    @AmandeepSingh-uq3wp 10 місяців тому

    Could you please extend it and show how to track the color of these vehicles as well.

  • @이두현-l1f
    @이두현-l1f 8 місяців тому +2

    Hello, I did 'from tracker import *' and gave me a error of izip_longest, so I changed to zip_longest in the' tracker.py' file.
    But when I try to do 'tracker=Tracker()', it says "NameError: name 'Tracker' is not defined"
    could you help me to solve it? thx thx!

  • @adipvendemo539
    @adipvendemo539 7 місяців тому

    thank you,, but for me taking 1 second for each frames, can u suggest hardware requirements !

  • @varaprasad-yw1lk
    @varaprasad-yw1lk 11 місяців тому

    madam do a video for car accident dection ......ur video make me so easy to learn Technologie

  • @yeongnamtan
    @yeongnamtan 11 місяців тому

    thank you for the clear explanation. When I run "from tracker import*", i get below error:
    ImportError: cannot import name 'izip_longest' from 'itertools' (unknown location)

    • @CodeWithAarohi
      @CodeWithAarohi  11 місяців тому +1

      I am not sure why are you getting this.

    • @arpituttarwar
      @arpituttarwar 11 місяців тому

      I'm also getting same error.

    • @keyanwb
      @keyanwb 11 місяців тому

      @@CodeWithAarohi May I know what packages should be installed for tracker ? Is it just !pip install tracker ?

    • @mariotorres7503
      @mariotorres7503 11 місяців тому

      '''
      Due to a common name, python may be searching for another tracker package, try adding this to top of your file
      '''
      import sys
      sys.path.append('/yourpath/to/project/Track-and-Count-Using-yolov9')

    • @keyanwb
      @keyanwb 11 місяців тому

      ​@@CodeWithAarohi because he had installed !pip install tracker. Is this the right package? The issue is because in some version izip_longest has been renamed to just zip_longest. It will be good to know what and how to install the prerequisite packages. Thanks in advance.

  • @pifordtechnologiespvtltd5698
    @pifordtechnologiespvtltd5698 11 місяців тому

    👏👏👏

  • @nightmares4476
    @nightmares4476 10 місяців тому

    can we train our own model for this task like detecting only one object person?

  • @tamilselvan1594
    @tamilselvan1594 11 місяців тому

    thank you mam very use for me

  • @theunfolders5461
    @theunfolders5461 10 місяців тому

    Hi Mam , can we detect traffic flow using his method? If yes , how ?

    • @CodeWithAarohi
      @CodeWithAarohi  10 місяців тому +1

      YEs, You can do that. By adding features such as directional tracking, speed estimation, density calculation, queue length measurement, real-time data analysis, integration with traffic management systems, and visualization/reporting capabilities. These additions will provide valuable insights into traffic patterns and help optimize traffic flow.

    • @theunfolders5461
      @theunfolders5461 10 місяців тому +1

      can you make video on that ?@@CodeWithAarohi

  • @ministerking2430
    @ministerking2430 10 місяців тому

    Thanks.

  • @yeongnamtan
    @yeongnamtan 11 місяців тому

    I get "NameError: name "Tracker" is not defined" for tracker=Tracker()

    • @CodeWithAarohi
      @CodeWithAarohi  11 місяців тому

      You have to place the tracker.py file in your working directory.

    • @yeongnamtan
      @yeongnamtan 11 місяців тому

      thank you. Working now@@CodeWithAarohi

    • @kosttavmalhotra5899
      @kosttavmalhotra5899 10 місяців тому

      ​​@@CodeWithAarohi but that tracker is manually made,,,,,, why you said that it's byte tracker

  • @vijithsreevalsam7979
    @vijithsreevalsam7979 9 місяців тому

    Dear Maam, thanks a lot for this video, however , i have a problem, when i run the program, all works well , but my streaming speed is very low, what could be the reason. waitkey is 1 only no change, is this yolo model reduce the streaming which cause load on cpu. ? please reply

    • @siddy2738
      @siddy2738 6 місяців тому

      Can you please let me know how you got the code and where you ran it ? I would really appreciate it.

  • @yeongnamtan
    @yeongnamtan 11 місяців тому

    What tracker algorithm do u use?

    • @CodeWithAarohi
      @CodeWithAarohi  11 місяців тому

      Bytetrack

    • @yeongnamtan
      @yeongnamtan 11 місяців тому

      ​@@CodeWithAarohi where can we adjust the parameters of tracker?

    • @kosttavmalhotra5899
      @kosttavmalhotra5899 10 місяців тому

      ​​@@CodeWithAarohi you said that you used bytetracker
      But where have you imported that library and in which line of code have you initialised that bytetracker
      Please explain mam

  • @Mr____syedd
    @Mr____syedd 2 місяці тому

    Mam can i get your contact nbr or any social media id that i can contact u im trying to present my project on vehicle detection but im not getting

    • @CodeWithAarohi
      @CodeWithAarohi  2 місяці тому

      @@Mr____syedd aarohisingla1987@gmail.com