Easy, Smooth and Accurate Object Tracking using Kalman Filter in OpenCV

Поділитися
Вставка
  • Опубліковано 11 вер 2024
  • Inside my school and program, I teach you my system to become an AI engineer or freelancer. Life-time access, personal help by me and I will show you exactly how I went from below average student to making $250/hr. Join the High Earner AI Career Program here 👉 www.nicolai-ni... (PRICES WILL INCREASE SOON)
    You will also get access to all the technical courses inside the program, also the ones I plan to make in the future! Check out the technical courses below 👇
    _____________________________________________________________
    In this video 📝 we are going to take a look at how to do easy object tracking with a Kalman filter in OpenCV. First of all, we need to detect the objects, set up our tracker with the Kalman filter, and then we can do tracking on a video sequence. In the end, we will see the results for the tracked objects.
    If you enjoyed this video, be sure to press the 👍 button so that I know what content you guys like to see.
    _____________________________________________________________
    🛠️ Freelance Work: www.nicolai-ni...
    _____________________________________________________________
    💻💰🛠️ High Earner AI Career Program: www.nicolai-ni...
    ⚙️ Real-world AI Technical Courses: (www.nicos-scho...)
    📗 OpenCV GPU in Python: www.nicos-scho...
    📕 YOLOv7 Object Detection: www.nicos-scho...
    📒 Transformer & Segmentation: www.nicos-scho...
    📙 YOLOv8 Object Tracking: www.nicos-scho...
    📘 Research Paper Implementation: www.nicos-scho...
    📔 CustomGPT: www.nicos-scho...
    _____________________________________________________________
    📞 Connect with Me:
    🌳 linktr.ee/nico...
    🌍 My Website: www.nicolai-ni...
    🤖 GitHub: github.com/nic...
    👉 LinkedIn: / nicolaiai
    🐦 X/Twitter: / nielsencv_ai
    🌆 Instagram: / nicolaihoeirup
    _____________________________________________________________
    🎮 My Gear (Affiliate links):
    💻 Laptop: amzn.to/49LJkTW
    🖥️ Desktop PC:
    NVIDIA RTX 4090 24GB: amzn.to/3Uc7yAM
    Intel I9-14900K: amzn.to/3W4Z5Cb
    Motherboard: amzn.to/4aR6wBC
    32GB RAM: amzn.to/3Jt2XVR
    🖥️ Monitor: amzn.to/4aLP8hh
    🖱️ Mouse: amzn.to/3W501GH
    ⌨️ Keyboard: amzn.to/3xUGz5b
    🎙️ Microphone: amzn.to/3w1F1WK
    📷 Camera: amzn.to/4b4Ryr9
    _____________________________________________________________
    Tags:
    #ObjectTracking #OpenCV #ComputerVision

КОМЕНТАРІ • 18

  • @NicolaiAI
    @NicolaiAI  Рік тому +1

    Join My AI Career Program
    www.nicolai-nielsen.com/aicareer
    Enroll in My School and Technical Courses
    www.nicos-school.com

  • @saturnorbit6810
    @saturnorbit6810 2 роки тому +1

    So something to add would be some algorithms that could *remember* a previous ID of a person, and reassign it to that same person when obstruction happens?

  • @prestonmcomber9895
    @prestonmcomber9895 11 місяців тому +1

    Where does the Kalman Filtering come into play? This is a great video on how to use tf-centernet, but I am having a hard time seeing where the filtering occurs. By Kalman filter, I mean a filter that could use system dynamics to track an object after an occlusion by varying the Kalman gain based on the propagation of uncertainty in measurements vs estimates. In the beginning of the video, you mentioned we would pass the bounding box into the Kalman filter. Where in the code do we do this?

    • @wayneferguson2174
      @wayneferguson2174 7 місяців тому

      If you dig into the code a bit you'll see that the sort.py file uses filterpy.kalman. The line res = sort.update(dets) updates the state vector with the observed box

  • @chinmayganguly457
    @chinmayganguly457 2 роки тому +1

    if 0 is for people, what is the number for cars and bikes? this object tracker is very specific, i'd like to detect and track cars and other vehicles too

  • @rishabhgarg3979
    @rishabhgarg3979 Рік тому

    Hey Nico, I love your tutorials. Just a quick question, How to track a person with specify color shirt? can you share the code or make a video, it would be helpful.

  • @8eck
    @8eck 2 роки тому

    3d deepsort would be cool. With proper stereo cameras setup i think it is possible. What do you think?

  • @andreaslanter8182
    @andreaslanter8182 Рік тому

    Hey;
    Thanks for the video!! I have some trouble with the last step: create the video out of the images. My mp4 file is an empty file, and I don't know where the fault is. Can you help me?

  • @eliramirez9376
    @eliramirez9376 2 роки тому +1

    Hello, have you a tutorial for beginners in computer vision?

    • @NicolaiAI
      @NicolaiAI  2 роки тому

      Yeah! My computer vision playlist here on the channel will help u from scratch

  • @daisy-iw2nf
    @daisy-iw2nf Рік тому

    id's change when detection. How I make id the same for each person.

  • @aisearch6747
    @aisearch6747 2 роки тому

    what is min_hits in Sort class ?

  • @rutho.6282
    @rutho.6282 Рік тому +1

    how do you trace an object's path?

    • @NicolaiAI
      @NicolaiAI  Рік тому

      U can basically just append the centers of the tracked bboxes to a list

  • @rishabraina8917
    @rishabraina8917 2 роки тому

    Hi Nicolai...
    Which yolo version is used for object detection purpose?

  • @xtu373
    @xtu373 2 роки тому +1

    make next video on advanced ai chatbot