Track & Count Vehicles using YOLOv9 and ByteTrack

Поділитися
Вставка
  • Опубліковано 1 жов 2024
  • 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

КОМЕНТАРІ • 59

  • @davesimbana9865
    @davesimbana9865 20 годин тому

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

  • @이두현-l1f
    @이두현-l1f 4 місяці тому +1

    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!

  • @kosttavmalhotra5899
    @kosttavmalhotra5899 5 місяців тому +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  5 місяців тому +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!

  • @abdolkarimmehrparvar6583
    @abdolkarimmehrparvar6583 6 місяців тому +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 Місяць тому

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

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

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

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

    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 2 місяці тому

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

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

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

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

      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.

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

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

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

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

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

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

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

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

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

      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 6 місяців тому

      can you make video on that ?@@CodeWithAarohi

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

    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  6 місяців тому

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

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

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

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

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

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

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

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

      thank you. Working now@@CodeWithAarohi

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

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

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

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

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

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

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

    How to used live webcam for detection

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

    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  6 місяців тому +1

      I am not sure why are you getting this.

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

      I'm also getting same error.

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

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

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

      '''
      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 6 місяців тому

      ​@@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.

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

    What tracker algorithm do u use?

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

      Bytetrack

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

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

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

      ​​@@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

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

    thank you mam very use for me

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

    👏👏👏

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

    Very nicely explained 👏👏👏

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

    clear cut explanation

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

    Thanks.

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

    Good stuff

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

    Nice video ma'am