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

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ส.ค. 2023
  • Code: github.com/computervisioneng/...
    🌍 Community 👥
    Join our Discord server: / discord
    Support me on Patreon: / computervisionengineer
    #python #computervision #yolov8 #objectdetection #objecttracking

ความคิดเห็น • 130

  • @ComputerVisionEngineer
    @ComputerVisionEngineer  11 หลายเดือนก่อน +2

    Dive into a world of exclusive computer vision content on my Patreon: www.patreon.com/ComputerVisionEngineer

    • @aoeu256
      @aoeu256 4 หลายเดือนก่อน

      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.

  • @rohanshah8129
    @rohanshah8129 11 หลายเดือนก่อน +2

    This long project in such less duration and that too so easy to follow and engaging at the same time. Hats off! 💯

  • @dylanskinner6815
    @dylanskinner6815 4 หลายเดือนก่อน +1

    Your tutorials are go great. I was able to complete my first computer vision project because of you. Thank you!

  • @reemfikry8679
    @reemfikry8679 8 หลายเดือนก่อน +1

    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  8 หลายเดือนก่อน

      You are welcome! Glad the video was helpful! 😃🙌

  • @KirillFrolov77
    @KirillFrolov77 3 หลายเดือนก่อน +1

    Very useful, I was able to repeat the steps and it worked just fine!

  • @davidvc4560
    @davidvc4560 10 หลายเดือนก่อน +6

    Just want to say that your tutorial and the files provided are very helpful and convenient. Big thanks to you!

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  10 หลายเดือนก่อน

      Thank you! Glad you enjoyed it! 😃🙌

    • @hamzaboughfir3361
      @hamzaboughfir3361 3 หลายเดือนก่อน

      can I ask u what was your dataset pleaze

  • @lanreuzamere4994
    @lanreuzamere4994 11 หลายเดือนก่อน +2

    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  11 หลายเดือนก่อน

      Absolutely! 😊 Thank you for your good wishes! 😃🙌

  • @CodeX-hv1sf
    @CodeX-hv1sf 6 หลายเดือนก่อน

    Ahhh after mindless searching finally this is the code been looking for ❤

  • @sluggy6074
    @sluggy6074 11 หลายเดือนก่อน +10

    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  11 หลายเดือนก่อน

      Agreed. Exaggerations are a very useful teaching resource. Glad you enjoyed it! 😃🙌

    • @vm5954
      @vm5954 5 หลายเดือนก่อน

      Borat style

    • @andrevanstom
      @andrevanstom 4 หลายเดือนก่อน

      Nobody f$&@S with the Jesus

  • @SedaSch
    @SedaSch 3 หลายเดือนก่อน

    Thank you for the amazing video!

  • @rohanshah8129
    @rohanshah8129 11 หลายเดือนก่อน

    You are insane!!! 💯 Amazing explanation 👉👈

  • @Zeneuii
    @Zeneuii 12 วันที่ผ่านมา

    This was such a great video, you helped me replicate object tracking for my project. Thank you.

  • @thewisearchitect
    @thewisearchitect 4 หลายเดือนก่อน

    Simple and Excellent tutorial. Thanks.

  • @WangYichuan-wb9he
    @WangYichuan-wb9he 4 หลายเดือนก่อน

    Well done and easy to learn

  • @dgadstv3876
    @dgadstv3876 5 หลายเดือนก่อน

    thanks alot, my job is going somewhere now.

  • @nirangalakshan3877
    @nirangalakshan3877 11 หลายเดือนก่อน +1

    Im a beginner. your explanation is superb😍

  • @Zafarkhan-jg3lr
    @Zafarkhan-jg3lr 11 หลายเดือนก่อน

    Really like your style and explanation. Kindly upload full detailed videos. Thank you

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  11 หลายเดือนก่อน

      Thank you! Glad you enjoyed it! 😃 I will make full detailed videos! 💪

  • @techradar6787
    @techradar6787 11 หลายเดือนก่อน

    Beautiful, excellent, intelligent, extraordinary ❤❤❤

  • @d4663r
    @d4663r 3 หลายเดือนก่อน

    great video

  • @suryatyagi3273
    @suryatyagi3273 17 วันที่ผ่านมา

    respect to u sir for this amazing project and save my marks. 😊😊😊😊

  • @darknessreaper7282
    @darknessreaper7282 11 หลายเดือนก่อน +1

    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.

  • @testhossam1
    @testhossam1 5 หลายเดือนก่อน

    Thank you for your video, its better if you show which properties in "result" variable covers tracking parameters like ID, Class, Box.

  • @RossDCurrie
    @RossDCurrie 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน

      Frenchy from The Boys 😂😂
      Cool, thank you for your contribution regarding the Python version! 🙌

  • @code___f1
    @code___f1 11 หลายเดือนก่อน

    Great work as always, mate! Saving this to watch later!
    Quick question-can you track the coordinates of the bounding boxes?

    • @AlainPilon
      @AlainPilon 11 หลายเดือนก่อน +2

      yes. You can then use the center of the rectangle to draw a line between frames to show trajectory.

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  11 หลายเดือนก่อน +2

      Thank you! 😃Tracking the coordinates do you mean drawing a trajectory as @AlainPilon said?

    • @code___f1
      @code___f1 11 หลายเดือนก่อน +1

      @@ComputerVisionEngineer That was exactly my question :) Thank you both!

  • @suphotnarapong355
    @suphotnarapong355 11 หลายเดือนก่อน

    Thank you for share knowledge. It's very useful. It simple but powerful code.

  • @ditya.aditya16
    @ditya.aditya16 10 หลายเดือนก่อน

    Nice video sir ❤

  • @Noname-tm6sy
    @Noname-tm6sy 8 หลายเดือนก่อน

    Cool👍👍👍👍👍👍

  • @davidvc4560
    @davidvc4560 10 หลายเดือนก่อน

    how do I export a file that contain information of detected polygon coordinates and the frame index at which they are detected?

  • @user-xi3ly9bz6s
    @user-xi3ly9bz6s 10 หลายเดือนก่อน

    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  10 หลายเดือนก่อน

      You are welcome! Sure! I will keep it in mind in future videos! 😃🙌

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

  • @shriharshbankapur9666
    @shriharshbankapur9666 11 หลายเดือนก่อน

    this is cool

  • @fatmanursefer1482
    @fatmanursefer1482 3 หลายเดือนก่อน

    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.

  • @user-ox6ie8pi4x
    @user-ox6ie8pi4x 11 หลายเดือนก่อน

    You are a World referent in IA, thanks

  • @aissagasmi4144
    @aissagasmi4144 11 หลายเดือนก่อน +1

    100000000000000000 likes excellent explanation

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  11 หลายเดือนก่อน +1

      Thank you so much for your support!! 😊 So glad you enjoyed it! 💪

  • @SubramanyanagasaiyashasweaVenk
    @SubramanyanagasaiyashasweaVenk 4 หลายเดือนก่อน

    Hi. After giving persist=True, till how many frames or how long does it persist

  • @atheeral3
    @atheeral3 2 หลายเดือนก่อน

    How can I find a ready-made template so I can count the number of people for my project?

  • @RusPeople21
    @RusPeople21 9 หลายเดือนก่อน

    Hi! How we can use it to track the keypoints of objects? Is it possible?

  • @sandroormeno
    @sandroormeno 9 หลายเดือนก่อน +1

    did you detect and track in only One sentence, That's amazing, i don't know how did you do that.

  • @Chalce-dony
    @Chalce-dony 7 หลายเดือนก่อน

    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?

  • @vipulec2235
    @vipulec2235 5 หลายเดือนก่อน

    Some time track I'd is changed for same object. Any solution?

  • @mcamilla77
    @mcamilla77 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      Thank you for your support! No, I don't think it outperforms other object tracking methods.

  • @abhisheksrivastava2558
    @abhisheksrivastava2558 9 หลายเดือนก่อน

    does it work with occlusion for long range tracking ?

  • @abireltouaiti3771
    @abireltouaiti3771 2 หลายเดือนก่อน

    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

  • @saimanayyar7667
    @saimanayyar7667 4 หลายเดือนก่อน

    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

  • @-Gangsterr-bl3bs
    @-Gangsterr-bl3bs 4 หลายเดือนก่อน

    please i need the repo of deep sort that is compatible with the last version of python

  • @mnm__studios
    @mnm__studios 6 หลายเดือนก่อน +1

    How can I create the model to just detect the humans and not other things?

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  6 หลายเดือนก่อน

      Take a look at the ultralytics documentation, you can specify what are the classes you want to detect.

  • @codersohum8257
    @codersohum8257 5 หลายเดือนก่อน

    AttributeError: 'YOLO' object has no attribute 'track'. Did you mean: 'task'?

  • @jearimjarden838
    @jearimjarden838 8 หลายเดือนก่อน

    thank you for the tutorial🙏 i have a question, is it faster to use yolov8 native object tracking or deepsort?

  • @charlotepencier818
    @charlotepencier818 3 หลายเดือนก่อน

    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 3 หลายเดือนก่อน

      results = model.track(frame, persist=True, classes=0)

  • @1hpxalphaop741
    @1hpxalphaop741 4 หลายเดือนก่อน

    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  3 หลายเดือนก่อน

      I have used Python 3.8 with no problem. What error are you getting?

  • @me111ok
    @me111ok 10 หลายเดือนก่อน

    Thanks for tutorial. it is great, but I keep getting "source is missing" error

  • @aleksandrakrajna9240
    @aleksandrakrajna9240 10 หลายเดือนก่อน

    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  10 หลายเดือนก่อน

      Hey, do you mean the exact coordinates of the bounding box you are tracking through the video?

    • @aleksandrakrajna9240
      @aleksandrakrajna9240 10 หลายเดือนก่อน

      @@ComputerVisionEngineer yess, exactly ;D

  • @ri.n8807
    @ri.n8807 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน +1

      🤔 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 9 หลายเดือนก่อน

      @@ComputerVisionEngineer Thanks so much. Your really the best AI coding channel on TH-cam.

  • @Mr3Run4Fun
    @Mr3Run4Fun 11 หลายเดือนก่อน

    How can I contact you for private consultation?

  • @tarekt8571
    @tarekt8571 11 หลายเดือนก่อน

    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  11 หลายเดือนก่อน +1

      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. 🙌

  • @omegaoneai
    @omegaoneai 11 หลายเดือนก่อน

    Hi, how is this version different from the video which you used deep sort?

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  11 หลายเดือนก่อน

      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). 🙌

  • @nigzz9117
    @nigzz9117 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน +1

      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 7 หลายเดือนก่อน

      @@ComputerVisionEngineer I used pycharm and it ran, but I'm getting no output

  • @Diego-lz5ki
    @Diego-lz5ki 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน

      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))
      ....

  • @nattapongrattanapitax3445
    @nattapongrattanapitax3445 10 หลายเดือนก่อน

    Thank you very much , i try to test object tracking but error , i found ans from your vedio

  • @aissagasmi4144
    @aissagasmi4144 11 หลายเดือนก่อน

    i like ur accent hhhh understandable more then native one

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  11 หลายเดือนก่อน

      Thank you! Every new video I try to sound a little more understandable, I also upload subtitles just in case. 😃🙌

  • @YigalBZ
    @YigalBZ 11 หลายเดือนก่อน

    I might have missed: where can I download the video? I would like to follow your exact foot steps

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  10 หลายเดือนก่อน

      I have added a link to the video in the readme file of this tutorial's github repository. 🙌

  • @arunmathur1668
    @arunmathur1668 7 หลายเดือนก่อน

    Just wanted to know If I want to detect only a person from this video, how can we this?

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  7 หลายเดือนก่อน

      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. 🙌

  • @abeerilyas8337
    @abeerilyas8337 11 หลายเดือนก่อน

    Is there any tutorial to track and show bounding box of a object with specific ID?

    • @bilalmalik1647
      @bilalmalik1647 4 หลายเดือนก่อน

      Person Identification and re-identification is still a research area. there are many research papers regarding, but no much resourceful implementation

    • @bilalmalik1647
      @bilalmalik1647 4 หลายเดือนก่อน

      If you have any resource, lemme know too

  • @aoeu256
    @aoeu256 4 หลายเดือนก่อน

    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.

  • @kurtdecena8681
    @kurtdecena8681 4 หลายเดือนก่อน

    in ultralytics package i can already use my cuda gpu? not cpu?

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  4 หลายเดือนก่อน +1

      yes, you can use your gpu

    • @Cam022
      @Cam022 4 หลายเดือนก่อน +1

      you may have to uninstall the preinstalled torch version and update it using a torch update compatible with your system + CUDA version

  • @weistrass
    @weistrass 7 หลายเดือนก่อน

    Why don't you use "SORT" algortithm for tracking as in other videos?

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  7 หลายเดือนก่อน +1

      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. 🙌

  • @atacanteknik9085
    @atacanteknik9085 6 หลายเดือนก่อน

    i wanna dedect car make model car how i can do

  • @michael8680
    @michael8680 8 หลายเดือนก่อน

    how to save the data that you display to one whole video ?

    • @ComputerVisionEngineer
      @ComputerVisionEngineer  8 หลายเดือนก่อน

      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 🙌

  • @aissagasmi4144
    @aissagasmi4144 11 หลายเดือนก่อน

    i want to make a software of face attendance for my company with professionell GUI can u do project like this

  • @evanshlom1
    @evanshlom1 11 หลายเดือนก่อน

    Do it with counting how many objects cross a line in the frame

  • @TKanal3
    @TKanal3 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน +1

      Thank you! Maybe someone in our community can help you. Try asking in our discord.

    • @TKanal3
      @TKanal3 7 หลายเดือนก่อน

      @@ComputerVisionEngineer i figured it out on my own now lol

  • @blackycode5555
    @blackycode5555 3 หลายเดือนก่อน

    chilean?

  • @hassaantariq3448
    @hassaantariq3448 5 หลายเดือนก่อน

    Muh se Supari nikal kr baat kr ray baba ....

  • @dev_kainoah
    @dev_kainoah 9 หลายเดือนก่อน

    short video, less explanation, lot of abstractions (what is this what is that?). Not recommended for beginners. Go find another youtube tutorial.

  • @jl2696
    @jl2696 4 หลายเดือนก่อน

    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 2 หลายเดือนก่อน

      Hi
      I have the same problem😢
      How did you solv yours??

  • @vasilisvasileiou8406
    @vasilisvasileiou8406 2 หลายเดือนก่อน

    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