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

  Рет қаралды 41,102

Computer vision engineer

Computer vision engineer

9 ай бұрын

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

Пікірлер: 127
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Dive into a world of exclusive computer vision content on my Patreon: www.patreon.com/ComputerVisionEngineer
@aoeu256
@aoeu256 2 ай бұрын
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 9 ай бұрын
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 9 ай бұрын
Agreed. Exaggerations are a very useful teaching resource. Glad you enjoyed it! 😃🙌
@vm5954
@vm5954 3 ай бұрын
Borat style
@andrevanstom
@andrevanstom 2 ай бұрын
Nobody f$&@S with the Jesus
@dylanskinner6815
@dylanskinner6815 2 ай бұрын
Your tutorials are go great. I was able to complete my first computer vision project because of you. Thank you!
@rohanshah8129
@rohanshah8129 9 ай бұрын
This long project in such less duration and that too so easy to follow and engaging at the same time. Hats off! 💯
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Thank you once again! 😃
@reemfikry8679
@reemfikry8679 6 ай бұрын
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 6 ай бұрын
You are welcome! Glad the video was helpful! 😃🙌
@davidvc4560
@davidvc4560 8 ай бұрын
Just want to say that your tutorial and the files provided are very helpful and convenient. Big thanks to you!
@ComputerVisionEngineer
@ComputerVisionEngineer 8 ай бұрын
Thank you! Glad you enjoyed it! 😃🙌
@hamzaboughfir3361
@hamzaboughfir3361 Ай бұрын
can I ask u what was your dataset pleaze
@KirillFrolov77
@KirillFrolov77 Ай бұрын
Very useful, I was able to repeat the steps and it worked just fine!
@lanreuzamere4994
@lanreuzamere4994 9 ай бұрын
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 9 ай бұрын
Absolutely! 😊 Thank you for your good wishes! 😃🙌
@CodeX-hv1sf
@CodeX-hv1sf 4 ай бұрын
Ahhh after mindless searching finally this is the code been looking for ❤
@SedaSch
@SedaSch Ай бұрын
Thank you for the amazing video!
@thewisearchitect
@thewisearchitect 2 ай бұрын
Simple and Excellent tutorial. Thanks.
@rohanshah8129
@rohanshah8129 9 ай бұрын
You are insane!!! 💯 Amazing explanation 👉👈
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
😃 Thank you!! Glad you enjoyed it! 💪💪
@darknessreaper7282
@darknessreaper7282 9 ай бұрын
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.
@nirangalakshan3877
@nirangalakshan3877 9 ай бұрын
Im a beginner. your explanation is superb😍
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Thank you!! Glad you enjoyed it! 😃
@WangYichuan-wb9he
@WangYichuan-wb9he 2 ай бұрын
Well done and easy to learn
@fatmanursefer1482
@fatmanursefer1482 2 ай бұрын
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.
@davidvc4560
@davidvc4560 8 ай бұрын
how do I export a file that contain information of detected polygon coordinates and the frame index at which they are detected?
@Zafarkhan-jg3lr
@Zafarkhan-jg3lr 9 ай бұрын
Really like your style and explanation. Kindly upload full detailed videos. Thank you
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Thank you! Glad you enjoyed it! 😃 I will make full detailed videos! 💪
@SubramanyanagasaiyashasweaVenk
@SubramanyanagasaiyashasweaVenk 2 ай бұрын
Hi. After giving persist=True, till how many frames or how long does it persist
@dgadstv3876
@dgadstv3876 3 ай бұрын
thanks alot, my job is going somewhere now.
@abhisheksrivastava2558
@abhisheksrivastava2558 7 ай бұрын
does it work with occlusion for long range tracking ?
@techradar6787
@techradar6787 9 ай бұрын
Beautiful, excellent, intelligent, extraordinary ❤❤❤
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Thank you for your support! 😊🙌
@d4663r
@d4663r Ай бұрын
great video
@Chalce-dony
@Chalce-dony 5 ай бұрын
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?
@code___f1
@code___f1 9 ай бұрын
Great work as always, mate! Saving this to watch later! Quick question-can you track the coordinates of the bounding boxes?
@AlainPilon
@AlainPilon 9 ай бұрын
yes. You can then use the center of the rectangle to draw a line between frames to show trajectory.
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Thank you! 😃Tracking the coordinates do you mean drawing a trajectory as @AlainPilon said?
@code___f1
@code___f1 9 ай бұрын
@@ComputerVisionEngineer That was exactly my question :) Thank you both!
@atheeral3
@atheeral3 13 күн бұрын
How can I find a ready-made template so I can count the number of people for my project?
@RusPeople21
@RusPeople21 7 ай бұрын
Hi! How we can use it to track the keypoints of objects? Is it possible?
@RossDCurrie
@RossDCurrie 7 ай бұрын
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 7 ай бұрын
Frenchy from The Boys 😂😂 Cool, thank you for your contribution regarding the Python version! 🙌
@testhossam1
@testhossam1 3 ай бұрын
Thank you for your video, its better if you show which properties in "result" variable covers tracking parameters like ID, Class, Box.
@1hpxalphaop741
@1hpxalphaop741 2 ай бұрын
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 2 ай бұрын
I have used Python 3.8 with no problem. What error are you getting?
@saimanayyar7667
@saimanayyar7667 2 ай бұрын
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
@vipulec2235
@vipulec2235 3 ай бұрын
Some time track I'd is changed for same object. Any solution?
@-Gangsterr-bl3bs
@-Gangsterr-bl3bs 2 ай бұрын
please i need the repo of deep sort that is compatible with the last version of python
@ditya.aditya16
@ditya.aditya16 8 ай бұрын
Nice video sir ❤
@ComputerVisionEngineer
@ComputerVisionEngineer 8 ай бұрын
Glad you enjoyed it! 😄🙌
@suphotnarapong355
@suphotnarapong355 9 ай бұрын
Thank you for share knowledge. It's very useful. It simple but powerful code.
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Agreed. Simple but powerful code! 💪💪
@charlotepencier818
@charlotepencier818 Ай бұрын
If I want to track only the person class, then what is the default variable name for predictions? like class_id or pred?
@hennessy8796
@hennessy8796 Ай бұрын
results = model.track(frame, persist=True, classes=0)
@user-xi3ly9bz6s
@user-xi3ly9bz6s 9 ай бұрын
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 8 ай бұрын
You are welcome! Sure! I will keep it in mind in future videos! 😃🙌
@ri.n8807
@ri.n8807 7 ай бұрын
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 7 ай бұрын
🤔 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 7 ай бұрын
@@ComputerVisionEngineer Thanks so much. Your really the best AI coding channel on KZbin.
@mcamilla77
@mcamilla77 3 ай бұрын
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 3 ай бұрын
Thank you for your support! No, I don't think it outperforms other object tracking methods.
@nigzz9117
@nigzz9117 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@ComputerVisionEngineer I used pycharm and it ran, but I'm getting no output
@jearimjarden838
@jearimjarden838 6 ай бұрын
thank you for the tutorial🙏 i have a question, is it faster to use yolov8 native object tracking or deepsort?
@ComputerVisionEngineer
@ComputerVisionEngineer 6 ай бұрын
🤔 I think yolov8 native tracking is faster
@Noname-tm6sy
@Noname-tm6sy 7 ай бұрын
Cool👍👍👍👍👍👍
@abireltouaiti3771
@abireltouaiti3771 29 күн бұрын
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
@aissagasmi4144
@aissagasmi4144 9 ай бұрын
100000000000000000 likes excellent explanation
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Thank you so much for your support!! 😊 So glad you enjoyed it! 💪
@shriharshbankapur9666
@shriharshbankapur9666 9 ай бұрын
this is cool
@omegaoneai
@omegaoneai 9 ай бұрын
Hi, how is this version different from the video which you used deep sort?
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
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). 🙌
@aleksandrakrajna9240
@aleksandrakrajna9240 8 ай бұрын
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 8 ай бұрын
Hey, do you mean the exact coordinates of the bounding box you are tracking through the video?
@aleksandrakrajna9240
@aleksandrakrajna9240 8 ай бұрын
@@ComputerVisionEngineer yess, exactly ;D
@Diego-lz5ki
@Diego-lz5ki 7 ай бұрын
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 7 ай бұрын
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)) ....
@Mr3Run4Fun
@Mr3Run4Fun 9 ай бұрын
How can I contact you for private consultation?
@mnm__studios
@mnm__studios 4 ай бұрын
How can I create the model to just detect the humans and not other things?
@ComputerVisionEngineer
@ComputerVisionEngineer 4 ай бұрын
Take a look at the ultralytics documentation, you can specify what are the classes you want to detect.
@codersohum8257
@codersohum8257 3 ай бұрын
AttributeError: 'YOLO' object has no attribute 'track'. Did you mean: 'task'?
@user-ox6ie8pi4x
@user-ox6ie8pi4x 9 ай бұрын
You are a World referent in IA, thanks
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Thank you so much for your kind words! 😊🙌
@sandroormeno
@sandroormeno 7 ай бұрын
did you detect and track in only One sentence, That's amazing, i don't know how did you do that.
@ComputerVisionEngineer
@ComputerVisionEngineer 7 ай бұрын
Yes, agreed, yolov8 is amazing! 😃🙌
@tarekt8571
@tarekt8571 9 ай бұрын
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 9 ай бұрын
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. 🙌
@kurtdecena8681
@kurtdecena8681 2 ай бұрын
in ultralytics package i can already use my cuda gpu? not cpu?
@ComputerVisionEngineer
@ComputerVisionEngineer 2 ай бұрын
yes, you can use your gpu
@Cam022
@Cam022 2 ай бұрын
you may have to uninstall the preinstalled torch version and update it using a torch update compatible with your system + CUDA version
@me111ok
@me111ok 8 ай бұрын
Thanks for tutorial. it is great, but I keep getting "source is missing" error
@abeerilyas8337
@abeerilyas8337 9 ай бұрын
Is there any tutorial to track and show bounding box of a object with specific ID?
@bilalmalik1647
@bilalmalik1647 2 ай бұрын
Person Identification and re-identification is still a research area. there are many research papers regarding, but no much resourceful implementation
@bilalmalik1647
@bilalmalik1647 2 ай бұрын
If you have any resource, lemme know too
@YigalBZ
@YigalBZ 9 ай бұрын
I might have missed: where can I download the video? I would like to follow your exact foot steps
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
I have added a link to the video in the readme file of this tutorial's github repository. 🙌
@atacanteknik9085
@atacanteknik9085 4 ай бұрын
i wanna dedect car make model car how i can do
@weistrass
@weistrass 5 ай бұрын
Why don't you use "SORT" algortithm for tracking as in other videos?
@ComputerVisionEngineer
@ComputerVisionEngineer 5 ай бұрын
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. 🙌
@arunmathur1668
@arunmathur1668 5 ай бұрын
Just wanted to know If I want to detect only a person from this video, how can we this?
@ComputerVisionEngineer
@ComputerVisionEngineer 5 ай бұрын
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. 🙌
@nattapongrattanapitax3445
@nattapongrattanapitax3445 8 ай бұрын
Thank you very much , i try to test object tracking but error , i found ans from your vedio
@aissagasmi4144
@aissagasmi4144 9 ай бұрын
i want to make a software of face attendance for my company with professionell GUI can u do project like this
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
I will try to. 🙌
@michael8680
@michael8680 6 ай бұрын
how to save the data that you display to one whole video ?
@ComputerVisionEngineer
@ComputerVisionEngineer 6 ай бұрын
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 🙌
@evanshlom1
@evanshlom1 9 ай бұрын
Do it with counting how many objects cross a line in the frame
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
I will try to. 🙌
@TKanal3
@TKanal3 5 ай бұрын
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 5 ай бұрын
Thank you! Maybe someone in our community can help you. Try asking in our discord.
@TKanal3
@TKanal3 5 ай бұрын
@@ComputerVisionEngineer i figured it out on my own now lol
@aissagasmi4144
@aissagasmi4144 9 ай бұрын
i like ur accent hhhh understandable more then native one
@ComputerVisionEngineer
@ComputerVisionEngineer 9 ай бұрын
Thank you! Every new video I try to sound a little more understandable, I also upload subtitles just in case. 😃🙌
@aoeu256
@aoeu256 2 ай бұрын
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 2 ай бұрын
Sounds like a cool project!
@blackycode5555
@blackycode5555 Ай бұрын
chilean?
@ComputerVisionEngineer
@ComputerVisionEngineer Ай бұрын
Uruguayan 🇺🇾
@jl2696
@jl2696 2 ай бұрын
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 27 күн бұрын
Hi I have the same problem😢 How did you solv yours??
@kainoah5563
@kainoah5563 7 ай бұрын
short video, less explanation, lot of abstractions (what is this what is that?). Not recommended for beginners. Go find another youtube tutorial.
@hassaantariq3448
@hassaantariq3448 3 ай бұрын
Muh se Supari nikal kr baat kr ray baba ....
@vasilisvasileiou8406
@vasilisvasileiou8406 7 күн бұрын
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
Dynamic #gadgets for math genius! #maths
00:29
FLIP FLOP Hacks
Рет қаралды 18 МЛН
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 25 МЛН
[柴犬ASMR]曼玉Manyu&小白Bai 毛发护理Spa asmr
01:00
是曼玉不是鳗鱼
Рет қаралды 46 МЛН
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 51 МЛН
Yolov8 object detection + deep sort object tracking | Computer vision tutorial
34:33
Computer vision engineer
Рет қаралды 81 М.
Tryolabs | Automated soccer ball possession using AI
0:59
Tryolabs
Рет қаралды 37 М.
Object Detection in 10 minutes with YOLOv5 & Python!
10:45
Rob Mulla
Рет қаралды 218 М.
Track & Count Objects using YOLOv8 ByteTrack & Supervision
26:11
Dynamic #gadgets for math genius! #maths
00:29
FLIP FLOP Hacks
Рет қаралды 18 МЛН