Object Tracking with Opencv and Python

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ •

  • @pysource-com
    @pysource-com  2 роки тому +5

    🔥Learn how to build your own AI vision solutions: pysource.com/community

  • @tomasdaels
    @tomasdaels 3 роки тому +45

    Today I installed opencv, it was a long day of tutorials but this one was super super clear!
    Thanks a lot!

  • @Nonsanity
    @Nonsanity 2 роки тому +55

    This really isn’t a tutorial on object tracking as the title promises. It’s a (good) tutorial for visual object detection and then a single-line black box function that does all the tracking with no explanation of its operation, just it’s use.

  • @dendredi
    @dendredi Рік тому +8

    Dude! Not only have you helped me to finally set up opencv but you have even made my first steps easier in my own project with your demo. ❤
    Hint to all who have troubles with the namespace in build.gradle: try to adjust the gradle plugin version under project structure > project. 7.2 worked for me.

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

    Thanks, to you Sergio Canu,
    you have resolved much of our issues.
    thanks to you from the core of our hearts.

  • @federicojoelvergelli5698
    @federicojoelvergelli5698 5 місяців тому +2

    Hello, for those following the tutorial, a good enough roi can be
    ```python
    roi = frame[int(height/3):, int(width/2)-200:int(width/2)+200]
    ```
    Good tutorial btw.

  • @Suman-zm7wx
    @Suman-zm7wx 3 роки тому +8

    The way this person is delivering these complicated stuffs regarding Open CV and OT, hats off man for your contribution towards the UA-cam Community. Do try to make a playlist or video regarding implementation of GANNs tensorflow models along with Opened CV, like Real Time image to image translation using Cycle GANNs.
    By the way lots if love from this Subscriber 😊

  • @abc-co7fy
    @abc-co7fy 3 роки тому +4

    Thanks for sharing the knowledge and resources.
    For the information of the fellow viewers/commenters..
    I implemented his code in VS Code in Windows 10. 2 errors and following had to be done as it threw some error when I attempted to run it:
    1. install "pip install tracker" --> Refresh VS code
    2. Make sure that the specified folder path of the video and code are same. Files --> Open Folder--> Object-Tracking.

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

    i'm newbie to opencv , u explanations are far better than my lectures....thansks a lot sir.....

  • @chun5310
    @chun5310 3 роки тому +4

    Thank you so much men! I do appreciate your kindness and efforts for sharing this great script even for free. It helps a lot, especillay for many students who are with empty pockets! Gracias!

  • @SenthilKumar-yf8pp
    @SenthilKumar-yf8pp 6 місяців тому

    This was my first AI program in python. Thanks a lot for teaching this. 🙏🙏🙏

  • @dennisasamoah2213
    @dennisasamoah2213 3 роки тому +24

    this was really awesome and thank you for the code

  • @hetalivekariya7415
    @hetalivekariya7415 3 роки тому +2

    Thank you for explaining each and every line of code clearly. Great help. Keep uploading videos like this

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

    Thanks man! This helps me to complete my assignment on object tracking using OpenCV

  • @dogarayunanagani6986
    @dogarayunanagani6986 3 роки тому +4

    Wow this was quite useful and well explained. Thank you and God bless your work!!!

  • @juliendu46
    @juliendu46 3 роки тому +1

    BEST youtube channel!

  • @julianboulevard
    @julianboulevard 8 місяців тому

    Best tutorial ever!!!! Thanks a lot for your time and clear explanation, cheers!!!

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

    Thank you for the video sir, I have spent weeks to do this traffic counting and none that I found work for me. Thank you so much for the tutorial!

  • @九宫木柠
    @九宫木柠 3 роки тому +1

    It’s great, it makes me think python is awesome, and I start to like it.Thankyou!

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

    I am from Vietnam and I'm going to research to count the number of people in CCTV camera but I don't know how to track people. Then, I watch your video and I really like it. It's so helpful for me.
    I'm so grateful to you. Thank you so much

  • @MayurKatre-k1j
    @MayurKatre-k1j 11 місяців тому +1

    From where I can get tracker.py file

  • @rog0079
    @rog0079 3 роки тому +6

    Object Tracking starts at 20:25

  • @RodrigoPacheco-Ruiz
    @RodrigoPacheco-Ruiz 2 роки тому +1

    Bravo Sergio! Maestro!

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

    Hello can you help me to find camera coordinate and contour position on a image or realtime video

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

    I really enjoy watching your videos and they are quite helpful at same time. thanks for sharing this with us

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

    Thank you very much for making this video; concepts are clearly explained.

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

    Hi, I tried another video that has a stopped car and slow cars but this code can not track these cases...any help? from where I can start to fix this issue? thank you

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

    Hello . Great explanation, thank you very much.
    @00:10:44, It is clear that You filtered using area.
    But I wonder if it is possible to use some of "speed" threshold or a good combination (compound condition) instead of it???

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

    How can I get tracker module for euclideandistracker ? I cannot find it

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

    Hello, is it possible to create software that identifies the speed of an object in a video? Please

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

    is there some code or resource to leave a 'tail' that traces the path of the rider?

  • @msreeabeyvignesh8254
    @msreeabeyvignesh8254 3 роки тому

    sir how to get x,y with respect to time foe a single object that should be given as input

  • @タピオカ-d4t
    @タピオカ-d4t 2 роки тому

    We used it for our study. Thank you.

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

    How can I detect videos that have been downloaded?
    every time I run it only comes out of the camera view, it doesn't immediately detect the video

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

    can i use vlc window panel as a motion capture ?. cuz i want be able to change the video source :)

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

    Anyone having trouble with receiving the email with the necessary files on Pysource website?

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

    I want to know the exact date and time, when a vehicle entered the frame of video? How do I do it? Supposing we are feeding live video from a camera?

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

    Please I can't find the link to download those files required for this lesson, can anyone help me?

  • @yem.t.3930
    @yem.t.3930 Рік тому

    Subscribed! A very beautiful explanation and examples

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

    pls how can i get the velocity of the moving objects

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

    Where is the tracker file
    It's not in the link below

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

    what if i want to tracking only object that i select with my mouse even if it moving it's still tracking the object i select with my mouse

  • @praketasaxena
    @praketasaxena 3 роки тому

    perfect and much needed for me to understand OPENCV

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

    Very interesting video. Is there some way to get the time that a vehicle pass through two lines in the highway and register this times in a excel sheet?

  • @parbhanshurawat8267
    @parbhanshurawat8267 3 роки тому

    Can you please tell how to add line that u speak off in last

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

    Thanks I finally got a good starter tutorial

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

    how can i store the output in an excel file?
    thnx!

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

    is this a different method that we approach object tracking by using different functions in opencv, do you find it yourself?

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

    Thanks for sharing! Keep up the good work 😄

  • @akanksharaj2705
    @akanksharaj2705 3 роки тому

    how can i track the bot using moving camera that is attached into the same bot? any idea??

  • @flashdash4694
    @flashdash4694 3 роки тому +1

    Thanks for the insight, you have taken my python-programming to another higher level!! Great fun too.

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

    Awesome ... Great Work

  • @hamizanahmad5879
    @hamizanahmad5879 3 роки тому +2

    Awesome video, where can i get traffic footage like that

  • @k-series4036
    @k-series4036 3 роки тому

    How do you connect your program with a camera

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

    ı just need x,y coordinate ı dont want to take id . how can fixed this because ı take the x,y coordinate with to create figure (table)

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

    hey, when I am importing the tracker this error keeps on coming -ImportError: cannot import name 'izip_longest' from 'itertools' (unknown location).

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

    Bro, extracting a particular portion using "roi" is not working.what ever ration is given same frame is showing.plz help

  • @falconvisionuav
    @falconvisionuav 10 місяців тому

    Awesome! I use the same method for tracking "alpha numeric " raised numbers and letters on the face of the front dashboard. My problem is that I have to process the images and then convert them for analysis. Do you have any cellular applications? Or desktop?

  • @DennisJDuran
    @DennisJDuran 3 роки тому

    What if I wanna do this live. Like from a streaming camera ? Or from live video playback

  • @snake6458
    @snake6458 3 роки тому

    我來自台灣,謝謝你的教導,感謝!!

  • @shuhaozhang7332
    @shuhaozhang7332 3 роки тому

    Are x and y coordinates mean the center point of the rectangle, or are they the corner of the rectangle?

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

    your tutorial method is wonderful ...

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

    I do not receive any email, can't sign up

  • @weirdsciencetv4999
    @weirdsciencetv4999 10 місяців тому

    Can you do this for mobile camera?

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

    Can you do a lesson on calculating the size of objects such as fruits and vegetables . Thanks

  • @edwingpenaaviles4511
    @edwingpenaaviles4511 3 роки тому +1

    Can I change some line of code to only detect a specific moving object with a specific color; not all moving objects only the moving object with that specific color?

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

      Yes, you can do everything

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

      Is it possible to classify vehicles based on their size

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

      @@gsunil3697 Yeah, you can use the area of the rectangle as a paramter in any way, but it tends to be inneficient cuz you dont know what type of vehicles you can get in the image and the cam angle distorts the size

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

      @@braiandeivid bro i have a code for vehicles detection but I want to classify them based on their size.but i am getting lot of errors .can you help me plz.....

  • @teo-dev
    @teo-dev Рік тому

    What if we have a moving camera?

  • @fettahyldz460
    @fettahyldz460 3 роки тому

    Is there a way to optimize tracker class? In my case, I will use it on a robot which will operate on the roads. Camera will vibrate so I want it to keep vehicles' ids even though the camera vibrates.

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

    Hi i need your help have these punk neighbors who have twicked an algorithm object tracking following me around remotely using my voice and facial recognition. How do i stop them from following me...this is crazy i need helpnim a woman alone and they're abusing us. God bless and thank you

  • @takedowntheccp.5167
    @takedowntheccp.5167 2 роки тому

    Thank you so much men! I want to study follow your ! 👍

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

    Hi,
    1. It goes to infinite loop(first step). I had to define ret = True first and then loop condition as "while ret == True". Any other way of doing this?
    2. I am not able to exit the window, it is showing this. And I have to do forcequit -- "QObject::moveToThread: Current thread (0x5606b1b41160) is not the object's thread (0x5606b22e9910).
    Cannot move to target thread (0x5606b1b41160)"

  • @jejlion
    @jejlion 2 місяці тому

    can we do this in google cloud

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

    Excellent👍, thanks for sharing the codes of the project to us to learn it well

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

    its great ... free source codes. keep posting free codes.

  • @samirosmanl4802
    @samirosmanl4802 3 роки тому

    Can you share me soruce for vehicle dataset. Example for vehicle brand, vehicle color, plate, like these?

  • @TheGupex
    @TheGupex 8 місяців тому

    Thank🎉 from Thailand.

  • @robotsj2775
    @robotsj2775 2 роки тому +2

    Sir where is tracker.py
    Is that pip install django-request-tracker
    If it is so then i am getting error saying
    Error in module and not in pip
    Please guide me

  • @mrpoeky2527
    @mrpoeky2527 3 роки тому

    Thank you for your detailed explanation on object Tracking :)

  • @PotatoMan1491
    @PotatoMan1491 3 роки тому +1

    Solid explanation to initiate into the field

  • @hreetampaul9350
    @hreetampaul9350 11 місяців тому

    where to download the video?

  • @sameerjadhav3044
    @sameerjadhav3044 3 роки тому

    I'm not able to find the ROI of video size 1080*1920p How I find it?

  • @saiddontiveros2715
    @saiddontiveros2715 3 роки тому

    Hello, it is possible to track people? if yes, how we can detect if someone is with frontal position or back position do determinate direction of the movement? this is because i need to count if leave some place or enter to the place

    • @pysource-com
      @pysource-com  3 роки тому

      Yes it's possible, this is something I do on my Computer Vision course, and something I help companies with.
      You will need to use deep learning to detect the people + object tracking algorithms to keep track of them

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

    Bro,Is it possible to classify vehicles based on their size.plz help me.

  • @cvic7143
    @cvic7143 3 роки тому

    May I ask how to export the location of the object (x,y,w,h) into a CSV file?

  • @BystroCoder
    @BystroCoder 3 роки тому

    Thank you. Super lecture. Very insteresting.

  • @cyrillaurencerameaualbon1637
    @cyrillaurencerameaualbon1637 3 роки тому

    Thanks, Are you able to count the demonstrators of a march ?

  • @bryansneydergomez4870
    @bryansneydergomez4870 3 роки тому

    wow, you explain very well, trank u bro!

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

    thanks for great video, does it work for moving camera and stable object too?

  • @taoliblack
    @taoliblack 3 роки тому

    Is it possible to use an external camera as a video source?

  • @Kishi1969
    @Kishi1969 3 роки тому

    Sir you said we should check one of your program "Object detection with opencv and Deep learning " but i can't find the lecture.. Please can you send me the UA-cam link please 🙏🙏🙏

  • @WonderUmesh
    @WonderUmesh 3 роки тому

    from .cv2 import _registerMatType i am getting error

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

    Thank you so much, please make more tutorials like tNice tutorials. You explain better than any other guide I've seen on youtube, very clear and

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

    when i using tracker
    errror at when tracker is import
    "from itertools import izip_longest
    ImportError: cannot import name 'izip_longest' from 'itertools' (unknown location)"
    please solve this issue

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

    Thank you for the tutoral, very good. i only want to ask one question. How can i restart to zero the id counter?

  • @Car_Ram_Rod
    @Car_Ram_Rod 3 роки тому

    Dude, thanks for this video!

  • @deepanjan1234
    @deepanjan1234 3 роки тому

    This is just great. Many many thanks 👍

  • @amalambro8914
    @amalambro8914 3 роки тому

    Nice one

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

    Nice video
    How do I implement this using YOLO v5

  • @claudiocatucci7028
    @claudiocatucci7028 3 роки тому +1

    Congratulations!

  • @ozcanyureklioglu6249
    @ozcanyureklioglu6249 3 роки тому +1

    very very awesome, thank you