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
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
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!
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
So that we (human) can see the box and id?
Very nicely explained 👏👏👏
Thank you 🙂
Good stuff
Appreciate it
Nice video ma'am
Thank you!
clear cut explanation
Glad you liked it!
is it posible to run this on jetson nano real time ?
Mam how can we detect a fast moving vehicle number plate in ANPR.
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.
can we use it to count debris on road using moving camera?
Yes, if you have a dataset for that. You can detect and count. Accuracy depends upon the quality of dataset.
How to used live webcam for detection
Provide source 0
Hlo mam i want the count of vehicoes which are standing on the signal so for that please tell how to do it
Mark the area where you want to count the vehicles and then count only those vehicles which are in that marked area.
@@CodeWithAarohi mam how to do it can u please help me to do it I need it for the project
Could you please extend it and show how to track the color of these vehicles as well.
I will cover that soon.
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!
I am facing the same problem
thank you,, but for me taking 1 second for each frames, can u suggest hardware requirements !
What are you using right now?
madam do a video for car accident dection ......ur video make me so easy to learn Technologie
Sure!
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)
I am not sure why are you getting this.
I'm also getting same error.
@@CodeWithAarohi May I know what packages should be installed for tracker ? Is it just !pip install tracker ?
'''
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')
@@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.
👏👏👏
can we train our own model for this task like detecting only one object person?
Yes
thank you mam very use for me
Welcome 😊
Hi Mam , can we detect traffic flow using his method? If yes , how ?
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.
can you make video on that ?@@CodeWithAarohi
Thanks.
Welcome
I get "NameError: name "Tracker" is not defined" for tracker=Tracker()
You have to place the tracker.py file in your working directory.
thank you. Working now@@CodeWithAarohi
@@CodeWithAarohi but that tracker is manually made,,,,,, why you said that it's byte tracker
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
Can you please let me know how you got the code and where you ran it ? I would really appreciate it.
What tracker algorithm do u use?
Bytetrack
@@CodeWithAarohi where can we adjust the parameters of tracker?
@@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
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
@@Mr____syedd aarohisingla1987@gmail.com