Тёмный

Yolov8 object tracking 100% native | Object detection with Python | Computer vision tutorial 

Computer vision engineer
Подписаться 38 тыс.
Просмотров 53 тыс.
50% 1

Code: github.com/com...
🌍 Community 👥
Join our Discord server: / discord
Support me on Patreon: / computervisionengineer
#python #computervision #yolov8 #objectdetection #objecttracking

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 142   
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Did you enjoy this video? Try my premium courses! 😃🙌😊 ● Hands-On Computer Vision in the Cloud: Building an AWS-based Real Time Number Plate Recognition System bit.ly/3RXrE1Y ● End-To-End Computer Vision: Build and Deploy a Video Summarization API bit.ly/3tyQX0M ● Computer Vision on Edge: Real Time Number Plate Recognition on an Edge Device bit.ly/4dYodA7 ● Machine Learning Entrepreneur: How to start your entrepreneurial journey as a freelancer and content creator bit.ly/4bFLeaC Learn to create AI-based prototypes in the Computer Vision School! www.computervision.school 😃🚀🎓
@aoeu256
@aoeu256 6 месяцев назад
Is there a better library with lots of objects like in the thousands or tens of thousands, and it will also recursively tell you the features within objects. I want to use this to build an immersion environment for learning Chinese, I want to use it on live streams of people playing video games, and movies.
@sluggy6074
@sluggy6074 Год назад
Ive never heard someone narrarate like this but it actually makes it way easier for to retain information. The exaggerations on the important things help it stick. Some tutorials people are monotone and talk so much about unrelated things that its hard to know whats critical and whats not cause its just peppered inbetween a bunch of droning. I can listen to this guy at work and know whats key by his tone of voice and dont have to dedicate myself to following a video down to the T cause i dont know what tiny detail will cause the whole thing to not work.
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Agreed. Exaggerations are a very useful teaching resource. Glad you enjoyed it! 😃🙌
@vm5954
@vm5954 7 месяцев назад
Borat style
@andrevanstom
@andrevanstom 6 месяцев назад
Nobody f$&@S with the Jesus
@davidvc4560
@davidvc4560 Год назад
Just want to say that your tutorial and the files provided are very helpful and convenient. Big thanks to you!
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you! Glad you enjoyed it! 😃🙌
@hamzaboughfir3361
@hamzaboughfir3361 5 месяцев назад
can I ask u what was your dataset pleaze
@rohanshah8129
@rohanshah8129 Год назад
This long project in such less duration and that too so easy to follow and engaging at the same time. Hats off! 💯
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you once again! 😃
@dylanskinner6815
@dylanskinner6815 6 месяцев назад
Your tutorials are go great. I was able to complete my first computer vision project because of you. Thank you!
@lanreuzamere4994
@lanreuzamere4994 Год назад
I see you have now started showing how you created the project in PyCharm as I asked for; You are really a Blessing and Heaven-sent!!! GOD Bless you richly!
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Absolutely! 😊 Thank you for your good wishes! 😃🙌
@reemfikry8679
@reemfikry8679 10 месяцев назад
This is exactly what I needed!!! First test that perfectly worked with my own custom model and dataset. Thank you for the brilliant work!
@ComputerVisionEngineer
@ComputerVisionEngineer 10 месяцев назад
You are welcome! Glad the video was helpful! 😃🙌
@KirillFrolov77
@KirillFrolov77 5 месяцев назад
Very useful, I was able to repeat the steps and it worked just fine!
@Zeneuii
@Zeneuii 2 месяца назад
This was such a great video, you helped me replicate object tracking for my project. Thank you.
@RossDCurrie
@RossDCurrie 11 месяцев назад
This is like getting a programming lesson from Frenchy from The Boys. I love it. Also.. super helpful... and fml, had python 3.12 and couldn't get yolo to install because pytorch won't run on anything higher than 3.11 at time of me writing this.
@ComputerVisionEngineer
@ComputerVisionEngineer 11 месяцев назад
Frenchy from The Boys 😂😂 Cool, thank you for your contribution regarding the Python version! 🙌
@CodeX-hv1sf
@CodeX-hv1sf 8 месяцев назад
Ahhh after mindless searching finally this is the code been looking for ❤
@nirangalakshan3877
@nirangalakshan3877 Год назад
Im a beginner. your explanation is superb😍
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you!! Glad you enjoyed it! 😃
@suryatyagi3273
@suryatyagi3273 2 месяца назад
respect to u sir for this amazing project and save my marks. 😊😊😊😊
@thewisearchitect
@thewisearchitect 6 месяцев назад
Simple and Excellent tutorial. Thanks.
@SedaSch
@SedaSch 5 месяцев назад
Thank you for the amazing video!
@StayHardened
@StayHardened 24 дня назад
amazing tutorial... thank you!
@rohanshah8129
@rohanshah8129 Год назад
You are insane!!! 💯 Amazing explanation 👉👈
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
😃 Thank you!! Glad you enjoyed it! 💪💪
@testhossam1
@testhossam1 7 месяцев назад
Thank you for your video, its better if you show which properties in "result" variable covers tracking parameters like ID, Class, Box.
@Zafarkhan-jg3lr
@Zafarkhan-jg3lr Год назад
Really like your style and explanation. Kindly upload full detailed videos. Thank you
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you! Glad you enjoyed it! 😃 I will make full detailed videos! 💪
@darknessreaper7282
@darknessreaper7282 Год назад
Please help! I have multiple classes of object detection model, but I don't know how to use the detection results to control an arduino board. I've stuck with it for a week.
@sandroormeno
@sandroormeno 11 месяцев назад
did you detect and track in only One sentence, That's amazing, i don't know how did you do that.
@ComputerVisionEngineer
@ComputerVisionEngineer 11 месяцев назад
Yes, agreed, yolov8 is amazing! 😃🙌
@itsthemeg
@itsthemeg 8 месяцев назад
How can I create the model to just detect the humans and not other things?
@ComputerVisionEngineer
@ComputerVisionEngineer 8 месяцев назад
Take a look at the ultralytics documentation, you can specify what are the classes you want to detect.
@abireltouaiti3771
@abireltouaiti3771 4 месяца назад
Hi! Your videos are really helpful, so thank you so much i have a quesion how can i detect, track and count at the same time
@techradar6787
@techradar6787 Год назад
Beautiful, excellent, intelligent, extraordinary ❤❤❤
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you for your support! 😊🙌
@WangYichuan-wb9he
@WangYichuan-wb9he 6 месяцев назад
Well done and easy to learn
@АлександрГромов-г4ч
Thank you so much for your guides! Would be nice if you show how after this steps get exact objects, fe only persons or only dogs, also take coords of objects :)
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
You are welcome! Sure! I will keep it in mind in future videos! 😃🙌
@code___f1
@code___f1 Год назад
Great work as always, mate! Saving this to watch later! Quick question-can you track the coordinates of the bounding boxes?
@AlainPilon
@AlainPilon Год назад
yes. You can then use the center of the rectangle to draw a line between frames to show trajectory.
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you! 😃Tracking the coordinates do you mean drawing a trajectory as @AlainPilon said?
@code___f1
@code___f1 Год назад
@@ComputerVisionEngineer That was exactly my question :) Thank you both!
@suphotnarapong355
@suphotnarapong355 Год назад
Thank you for share knowledge. It's very useful. It simple but powerful code.
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Agreed. Simple but powerful code! 💪💪
@mcamilla77
@mcamilla77 7 месяцев назад
Hi!! i love your videos they are very very helpful!!!! - quick question: this method outperform traditional tracking (SORT -DEEPSORT)? Thank you! greetings from Chile!
@ComputerVisionEngineer
@ComputerVisionEngineer 7 месяцев назад
Thank you for your support! No, I don't think it outperforms other object tracking methods.
@fatmanursefer1482
@fatmanursefer1482 6 месяцев назад
Hi, I collected data with video to use in my project. Can I use this video to train my model or do I need to train the model using only photos? If I can use it, how should I label the data in this video? I would appreciate it very much if you could help me on this issue.
@saimanayyar7667
@saimanayyar7667 6 месяцев назад
your video is good, i ran it working fine for first frame, but for next frame it exits and kernel dies out. Can someone pls help me
@FunPlay_Heroes
@FunPlay_Heroes 4 месяца назад
How can I find a ready-made template so I can count the number of people for my project?
@tarekt8571
@tarekt8571 Год назад
hi sir , in parking space detection video , how can i numbering the parking spots like that 1 2 3 next to each parking spot. thank you for works
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Hey, you can write the numbers with cv2.putText, and should be able to get the id for each parking spot from the 'connected_components' object. Take a look at the line 31 from util.py file. 🙌
@user-ox6ie8pi4x
@user-ox6ie8pi4x Год назад
You are a World referent in IA, thanks
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you so much for your kind words! 😊🙌
@Chalce-dony
@Chalce-dony 9 месяцев назад
Is it possible to detect a single particular object on the screen by selecting that particular bounding box (or creating a bounding box around the object using mouse)? And then it can track only that particular selected object. I am trying to create a model for single object tracking using drone. Please let me know if anyone has any idea?
@SubramanyanagasaiyashasweaVenk
@SubramanyanagasaiyashasweaVenk 6 месяцев назад
Hi. After giving persist=True, till how many frames or how long does it persist
@davidvc4560
@davidvc4560 Год назад
how do I export a file that contain information of detected polygon coordinates and the frame index at which they are detected?
@charlotepencier818
@charlotepencier818 5 месяцев назад
If I want to track only the person class, then what is the default variable name for predictions? like class_id or pred?
@hennessy_901
@hennessy_901 5 месяцев назад
results = model.track(frame, persist=True, classes=0)
@jearimjarden838
@jearimjarden838 10 месяцев назад
thank you for the tutorial🙏 i have a question, is it faster to use yolov8 native object tracking or deepsort?
@ComputerVisionEngineer
@ComputerVisionEngineer 10 месяцев назад
🤔 I think yolov8 native tracking is faster
@vipulec2235
@vipulec2235 7 месяцев назад
Some time track I'd is changed for same object. Any solution?
@RusPeople21
@RusPeople21 11 месяцев назад
Hi! How we can use it to track the keypoints of objects? Is it possible?
@aleksandrakrajna9240
@aleksandrakrajna9240 Год назад
hey, great work as always, Quick question: I am using this method to track skin lesions on my face, I wonder if I am able to get the exact coordinates of these tracked points? :D
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Hey, do you mean the exact coordinates of the bounding box you are tracking through the video?
@aleksandrakrajna9240
@aleksandrakrajna9240 Год назад
@@ComputerVisionEngineer yess, exactly ;D
@-Gangsterr-bl3bs
@-Gangsterr-bl3bs 6 месяцев назад
please i need the repo of deep sort that is compatible with the last version of python
@1hpxalphaop741
@1hpxalphaop741 6 месяцев назад
hey felipe, i wanted to ask whether python 3.12 is required for yolov8 ? because i am getting error by using python 3.8
@ComputerVisionEngineer
@ComputerVisionEngineer 5 месяцев назад
I have used Python 3.8 with no problem. What error are you getting?
@ri.n8807
@ri.n8807 11 месяцев назад
Thanks for the Brilliant video! Do you know of any ways that the plotting time could be sped up so as it calculates the video at near to real time?
@ComputerVisionEngineer
@ComputerVisionEngineer 11 месяцев назад
🤔 Using a gpu would speed up the inference. About speeding up the drawing, perhaps using c++ instead of Python. You could also do the object detection + tracking on 1 every 5 frames, and interpolate the bounding boxes for the other frames. 🙌
@ri.n8807
@ri.n8807 11 месяцев назад
@@ComputerVisionEngineer Thanks so much. Your really the best AI coding channel on RU-vid.
@RoufiaBenzai
@RoufiaBenzai Месяц назад
Very helpful video! can this be done with Yolov7?
@ComputerVisionEngineer
@ComputerVisionEngineer Месяц назад
Thank you! I will try to do an object detection and tracking video with yolov7.
@FX50S
@FX50S Месяц назад
Wow object tracking
@yoginkhair1241
@yoginkhair1241 25 дней назад
thank you sir
@weistrass
@weistrass 9 месяцев назад
Why don't you use "SORT" algortithm for tracking as in other videos?
@ComputerVisionEngineer
@ComputerVisionEngineer 9 месяцев назад
No reason. It is always healthy to get familiar with different technologies in order to solve a problem. Yolov8 built in object tracking is very easy to use and a very interesting tool in order to do object tracking. 🙌
@abhisheksrivastava2558
@abhisheksrivastava2558 11 месяцев назад
does it work with occlusion for long range tracking ?
@nattapongrattanapitax3445
@nattapongrattanapitax3445 Год назад
Thank you very much , i try to test object tracking but error , i found ans from your vedio
@Diego-lz5ki
@Diego-lz5ki 11 месяцев назад
Hola buenas, ya que supongo que hablas en español te hablo en español jaja, una consulta, si en ves de un video tengo todos los frames de ese video, que debería cambiar en relación al código del video? Saludos desde Chile.
@ComputerVisionEngineer
@ComputerVisionEngineer 11 месяцев назад
Hola, si tienes todos los frames guardados en un directorio por ejemplo? for image_path in os.listdir(frames_dir): frame = cv2.imread(os.path.join(frames_dir, image_path)) ....
@bencekovacs2810
@bencekovacs2810 2 месяца назад
Hi! I am experiencing something weird. When I run the program the frames load, but it detects very badly. The upper part of the frame has lots of false detections with 1.0 conf and the bottom part has 0, despite me trying to detect cars there. I have tried to follow your tutorial, I think I did everything the same way. (even got the source code, just to be sure) However It doesn't seem to work even with different models (v8s, v5nu, v5su) and different videos. Do you have any guesses what's causing this? EDIT: its probably an installation issue, everything works fine on google colab
@LuísOliveira-j8r
@LuísOliveira-j8r Месяц назад
I have the same issue
@LuísOliveira-j8r
@LuísOliveira-j8r Месяц назад
Did you manage to solve the problem?
@bencekovacs2810
@bencekovacs2810 Месяц назад
@@LuísOliveira-j8r yes, it was a torch issue, I downgraded to 2.2.0 and torchvision 0.17, it solved it.
@bencekovacs2810
@bencekovacs2810 Месяц назад
@@LuísOliveira-j8r yes, it was a torch issue, I downgraded to 2.2.0 and torchvision 0.17, it solved it.
@jamesrankin5156
@jamesrankin5156 Месяц назад
@@bencekovacs2810 Dude I kept encountering that problem struggled for an hour thanks for the help
@d4663r
@d4663r 5 месяцев назад
great video
@aissagasmi4144
@aissagasmi4144 Год назад
i like ur accent hhhh understandable more then native one
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you! Every new video I try to sound a little more understandable, I also upload subtitles just in case. 😃🙌
@arunmathur1668
@arunmathur1668 9 месяцев назад
Just wanted to know If I want to detect only a person from this video, how can we this?
@ComputerVisionEngineer
@ComputerVisionEngineer 9 месяцев назад
Do you mean if you only want to detect the class 'person'? You can specify what are the categories you want to detect when making inferences. 🙌
@YigalBZ
@YigalBZ Год назад
I might have missed: where can I download the video? I would like to follow your exact foot steps
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
I have added a link to the video in the readme file of this tutorial's github repository. 🙌
@omegaoneai
@omegaoneai Год назад
Hi, how is this version different from the video which you used deep sort?
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Hi, in this video we are using yolov8 only to do both detection and tracking. In my previous video on object detection + tracking using deep sort we used an external library (deep sort). 🙌
@me111ok
@me111ok Год назад
Thanks for tutorial. it is great, but I keep getting "source is missing" error
@abeerilyas8337
@abeerilyas8337 Год назад
Is there any tutorial to track and show bounding box of a object with specific ID?
@bilalmalik1647
@bilalmalik1647 6 месяцев назад
Person Identification and re-identification is still a research area. there are many research papers regarding, but no much resourceful implementation
@bilalmalik1647
@bilalmalik1647 6 месяцев назад
If you have any resource, lemme know too
@Mr3Run4Fun
@Mr3Run4Fun Год назад
How can I contact you for private consultation?
@codersohum8257
@codersohum8257 7 месяцев назад
AttributeError: 'YOLO' object has no attribute 'track'. Did you mean: 'task'?
@TKanal3
@TKanal3 9 месяцев назад
Great tutorial. For some reason its not compiling for me. I think im making a mistake with the path. New to python and not a great programmer lol
@ComputerVisionEngineer
@ComputerVisionEngineer 9 месяцев назад
Thank you! Maybe someone in our community can help you. Try asking in our discord.
@TKanal3
@TKanal3 9 месяцев назад
@@ComputerVisionEngineer i figured it out on my own now lol
@kurtdecena8681
@kurtdecena8681 6 месяцев назад
in ultralytics package i can already use my cuda gpu? not cpu?
@ComputerVisionEngineer
@ComputerVisionEngineer 6 месяцев назад
yes, you can use your gpu
@Cam022
@Cam022 6 месяцев назад
you may have to uninstall the preinstalled torch version and update it using a torch update compatible with your system + CUDA version
@atacanteknik9085
@atacanteknik9085 8 месяцев назад
i wanna dedect car make model car how i can do
@aissagasmi4144
@aissagasmi4144 Год назад
i want to make a software of face attendance for my company with professionell GUI can u do project like this
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
I will try to. 🙌
@aoeu256
@aoeu256 6 месяцев назад
I want to build a system of robots by connecting wheels to my phone/tablets, and they will then take pictures of everything in the house and tell me where things are... I wish the robot can charge itself haha.
@ComputerVisionEngineer
@ComputerVisionEngineer 6 месяцев назад
Sounds like a cool project!
@michael8680
@michael8680 10 месяцев назад
how to save the data that you display to one whole video ?
@ComputerVisionEngineer
@ComputerVisionEngineer 10 месяцев назад
Do you mean how to save a video to disk with the bounding boxes on top instead of showing the frames one at the time? Tale a look at this script github.com/computervisioneng/train-yolov8-custom-dataset-step-by-step-guide/blob/master/local_env/predict_video.py 🙌
@Noname-tm6sy
@Noname-tm6sy 11 месяцев назад
Cool👍👍👍👍👍👍
@evanshlom1
@evanshlom1 Год назад
Do it with counting how many objects cross a line in the frame
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
I will try to. 🙌
@MelonHusk7
@MelonHusk7 Год назад
this is cool
@vasilisvasileiou8406
@vasilisvasileiou8406 4 месяца назад
Good Morning, I try to use the same code but instead of 10 frames I use the whole video, The code runs ok for multiple of video frames and after some time I get this particular error: Traceback (most recent call last): File "c:\Users\user\Desktop\detect1\main.py", line 38, in track_ids = cont_tracker.update(np.asarray(detections_)) # contains boudning boxes and tracking related information ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\user\Desktop\detect1\sort\sort.py", line 232, in update matched, unmatched_dets, unmatched_trks = associate_detections_to_trackers(dets,trks, self.iou_threshold) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\user\Desktop\detect1\sort\sort.py", line 163, in associate_detections_to_trackers iou_matrix = iou_batch(detections, trackers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\user\Desktop\detect1\sort\sort.py", line 55, in iou_batch yy1 = np.maximum(bb_test[..., 1], bb_gt[..., 1]) ~~~~~~~^^^^^^^^ IndexError: index 1 is out of bounds for axis 1 with size 1 I would be grateful if you could help me resolve this
@blackycode5555
@blackycode5555 5 месяцев назад
chilean?
@ComputerVisionEngineer
@ComputerVisionEngineer 5 месяцев назад
Uruguayan 🇺🇾
@LucaL1fe
@LucaL1fe 17 дней назад
Kiss!
@hassaantariq3448
@hassaantariq3448 7 месяцев назад
Muh se Supari nikal kr baat kr ray baba ....
@jl2696
@jl2696 6 месяцев назад
Hey Felipe when I tried to run your code, I got an error at results = model.track(persists=True). The issue was lap >= 0.4 not found and the update was skipped. Do you have any idea how to fix this error?
@chiyembekezophiri8076
@chiyembekezophiri8076 4 месяца назад
Hi I have the same problem😢 How did you solv yours??
@nigzz9117
@nigzz9117 9 месяцев назад
Thank you for this amazing guide. I'd to ask, please how do you set ultralytics on Vscode? I usually run into an error when I use pip install ultralytics
@ComputerVisionEngineer
@ComputerVisionEngineer 9 месяцев назад
You are welcome! Not sure if I would be able to guide you on how to install it in vscode, I use pycharm. 🙌
@nigzz9117
@nigzz9117 9 месяцев назад
@@ComputerVisionEngineer I used pycharm and it ran, but I'm getting no output
@aissagasmi4144
@aissagasmi4144 Год назад
100000000000000000 likes excellent explanation
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you so much for your support!! 😊 So glad you enjoyed it! 💪
@dgadstv3876
@dgadstv3876 7 месяцев назад
thanks alot, my job is going somewhere now.
@ditya.aditya16
@ditya.aditya16 Год назад
Nice video sir ❤
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Glad you enjoyed it! 😄🙌
@kainoah_dev
@kainoah_dev 11 месяцев назад
short video, less explanation, lot of abstractions (what is this what is that?). Not recommended for beginners. Go find another youtube tutorial.
Далее
Object Tracking with Opencv and Python
30:03
Просмотров 612 тыс.
Face Tracking Turret made with Arduino and Open CV2
2:36