Object Tracking with Opencv and Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

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

  • @pysource-com
    @pysource-com  2 ปีที่แล้ว +5

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

  • @tomasdaels
    @tomasdaels 3 ปีที่แล้ว +44

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

  • @Nonsanity
    @Nonsanity 2 ปีที่แล้ว +54

    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.

    • @doraemondd6876
      @doraemondd6876 ปีที่แล้ว

      Can Using visual video code to run?

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

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

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

  • @bolzanoitaly8360
    @bolzanoitaly8360 2 ปีที่แล้ว

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

  • @Suman-zm7wx
    @Suman-zm7wx 2 ปีที่แล้ว +8

    The way this person is delivering these complicated stuffs regarding Open CV and OT, hats off man for your contribution towards the TH-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 😊

  • @manakavoo
    @manakavoo ปีที่แล้ว

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

  • @dennisasamoah2213
    @dennisasamoah2213 3 ปีที่แล้ว +24

    this was really awesome and thank you for the code

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

  • @rog0079
    @rog0079 3 ปีที่แล้ว +6

    Object Tracking starts at 20:25

    • @HarshaSravani--c
      @HarshaSravani--c 3 ปีที่แล้ว

      Hello !! From where can I get tracker.py

  • @juliendu46
    @juliendu46 3 ปีที่แล้ว +1

    BEST youtube channel!

  • @SenthilKumar-yf8pp
    @SenthilKumar-yf8pp 6 หลายเดือนก่อน

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

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

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

  • @hetalivekariya7415
    @hetalivekariya7415 3 ปีที่แล้ว +2

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

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

  • @dhamotharan1734
    @dhamotharan1734 ปีที่แล้ว

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

  • @九宫木柠
    @九宫木柠 3 ปีที่แล้ว +1

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

  • @dogarayunanagani6986
    @dogarayunanagani6986 3 ปีที่แล้ว +4

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

  • @RodrigoPacheco-Ruiz
    @RodrigoPacheco-Ruiz 2 ปีที่แล้ว +1

    Bravo Sergio! Maestro!

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

  • @praketasaxena
    @praketasaxena 3 ปีที่แล้ว

    perfect and much needed for me to understand OPENCV

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

    From where I can get tracker.py file

  • @タピオカ-d4t
    @タピオカ-d4t 2 ปีที่แล้ว

    We used it for our study. Thank you.

  • @snake6458
    @snake6458 3 ปีที่แล้ว

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

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

  • @thinkingahead2233
    @thinkingahead2233 2 ปีที่แล้ว

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

  • @hamizanahmad5879
    @hamizanahmad5879 3 ปีที่แล้ว +2

    Awesome video, where can i get traffic footage like that

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

  • @levienkon
    @levienkon ปีที่แล้ว

    Thanks I finally got a good starter tutorial

  • @cyrillaurencerameaualbon1637
    @cyrillaurencerameaualbon1637 3 ปีที่แล้ว

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

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

  • @alirezairani2876
    @alirezairani2876 ปีที่แล้ว

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

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

    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?

  • @mesaanugerah
    @mesaanugerah 2 ปีที่แล้ว +1

    Thanks for sharing! Keep up the good work 😄

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

  • @byurcik
    @byurcik ปีที่แล้ว

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

  • @ahmadrahmani7054
    @ahmadrahmani7054 ปีที่แล้ว +1

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

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

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

  • @truepath100
    @truepath100 2 ปีที่แล้ว

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

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

    Thank🎉 from Thailand.

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

  • @addkik
    @addkik 2 ปีที่แล้ว

    Awesome ... Great Work

  • @shuhaozhang7332
    @shuhaozhang7332 3 ปีที่แล้ว

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

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

  • @foreverclassicalmusic
    @foreverclassicalmusic ปีที่แล้ว

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

  • @yem.t.3930
    @yem.t.3930 ปีที่แล้ว

    Subscribed! A very beautiful explanation and examples

  • @vishalkashyap376
    @vishalkashyap376 2 ปีที่แล้ว

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

  • @taoliblack
    @taoliblack 3 ปีที่แล้ว

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

  • @DennisJDuran
    @DennisJDuran 3 ปีที่แล้ว

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

  • @flashdash4694
    @flashdash4694 3 ปีที่แล้ว +1

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

  • @house0795
    @house0795 2 ปีที่แล้ว

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

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

  • @k-series4036
    @k-series4036 2 ปีที่แล้ว

    How do you connect your program with a camera

  • @daylinewsru
    @daylinewsru 2 ปีที่แล้ว +1

    Hey!
    Thanks a lot for the video! Very helpful!
    Tell me, how can I record the coordinates of landmarks in a json file?

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

  • @takedowntheccp.5167
    @takedowntheccp.5167 2 ปีที่แล้ว

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

  • @BystroCoder
    @BystroCoder 3 ปีที่แล้ว

    Thank you. Super lecture. Very insteresting.

  • @chakwacheang648
    @chakwacheang648 3 ปีที่แล้ว

    Very nice video! But I found that the tracker keep assigning new ID to stationary objects or objects that is not moving fast enough. Do you have any tracker recommend that solve the problem? Many thanks!

    • @pysource-com
      @pysource-com  3 ปีที่แล้ว

      Hi, the tracker.py file uses Eucledian Distance to track and generate new ids and it's only reliable for simple tracking tasks.
      For an accurate and reliable tracking you should integrate more advanced algorithms.
      On my course Object Detection (opencv and deep learning) I dedicated and entire module to object tarcking.

  • @vahabmspour6336
    @vahabmspour6336 2 ปีที่แล้ว

    your tutorial method is wonderful ...

  • @phaminhhoang4478
    @phaminhhoang4478 ปีที่แล้ว

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

  • @PotatoMan1491
    @PotatoMan1491 3 ปีที่แล้ว +1

    Solid explanation to initiate into the field

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

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

  • @farihaafrin1803
    @farihaafrin1803 3 ปีที่แล้ว +2

    A very nice tutorial, Thanks. I would like to save images for every single car (instead of every frame) inside the rectangle from the video. How to do that please?

    • @DennisJDuran
      @DennisJDuran 3 ปีที่แล้ว

      I would assume you have to set a way to save the video from once it detects a specific car or motorcycle and end said video clip recording once that object is gone.

  • @thecontrolenggeek786
    @thecontrolenggeek786 2 ปีที่แล้ว

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

  • @Mrnobody-qj7zl
    @Mrnobody-qj7zl 2 ปีที่แล้ว

    hi. great tutorial.
    Can we apply this technique to our cctvs?
    Thanks.

    • @pysource-com
      @pysource-com  2 ปีที่แล้ว +1

      Nope, this is a very simple object tracking to be considered only good as an exercise. To make things reliable and precise on CCTV it's necessary to use object detection with deep learning and some algorithms for a reliable tracking when there is occlusion

  • @mrpoeky2527
    @mrpoeky2527 3 ปีที่แล้ว

    Thank you for your detailed explanation on object Tracking :)

  • @nailaydogan2241
    @nailaydogan2241 3 ปีที่แล้ว

    Sir do you have any project for hand gesture recognition ? Thanks

  • @umar_muhammad_yaree
    @umar_muhammad_yaree 2 ปีที่แล้ว

    Nice video
    How do I implement this using YOLO v5

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

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

  • @thanhtaiphan2651
    @thanhtaiphan2651 3 ปีที่แล้ว +1

    Can you explain more about the working of tracker.py file. Thanks u

  • @parbhanshurawat8267
    @parbhanshurawat8267 3 ปีที่แล้ว

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

  • @jadavpur4
    @jadavpur4 3 ปีที่แล้ว +2

    Hi...
    Thank you for the tutorial.. It's impressive. I have one question.
    Can we make the animation of moving objects a function of time? the program will run and continuously animation will run???
    Thank you

    • @fussballsuchti5661
      @fussballsuchti5661 2 ปีที่แล้ว

      Hey Soumitra,
      I'm actually trying to do that too and I wondered if you came to a solution. :)
      I know I'm probably to late asking this, but I will be very happy if you reply.
      Have a great day

  • @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 TH-cam link please 🙏🙏🙏

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

  • @okunolaakinwale4492
    @okunolaakinwale4492 2 ปีที่แล้ว

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

  • @akinagbejoye8631
    @akinagbejoye8631 2 ปีที่แล้ว

    pls how can i get the velocity of the moving objects

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

    where to download the video?

  • @andresimoes879
    @andresimoes879 ปีที่แล้ว +1

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

  • @cvic7143
    @cvic7143 3 ปีที่แล้ว

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

  • @deepanjan1234
    @deepanjan1234 3 ปีที่แล้ว

    This is just great. Many many thanks 👍

  • @ozcanyureklioglu6249
    @ozcanyureklioglu6249 3 ปีที่แล้ว +1

    very very awesome, 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

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

    can we do this in google cloud

  • @gsunil3697
    @gsunil3697 2 ปีที่แล้ว

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

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

    Can you do this for mobile camera?

  • @msreeabeyvignesh8254
    @msreeabeyvignesh8254 2 ปีที่แล้ว

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

  • @Car_Ram_Rod
    @Car_Ram_Rod 3 ปีที่แล้ว

    Dude, thanks for this video!

  • @ddarhe
    @ddarhe 2 ปีที่แล้ว

    really cool tutorial, thank you!
    One question tho; in the video example the detection number 12 gets updated to 13, although its the same object - how do you deal with these cases?
    is there a good way to clean up these detections so you don't tag the same object multiple times and increment its number when its not necessary?
    thanks!

    • @pysource-com
      @pysource-com  2 ปีที่แล้ว +1

      this should be considered only as an exercise to learn more about tracking and computer vision. For a more robust tracking, it's necessary to integrate deep learning object detection and tracking algorithms.

    • @ddarhe
      @ddarhe 2 ปีที่แล้ว

      @@pysource-com gotcha :D thanks for the reply :)

  • @claudiocatucci7028
    @claudiocatucci7028 3 ปีที่แล้ว +1

    Congratulations!

  • @pablodelbachi5286
    @pablodelbachi5286 2 ปีที่แล้ว

    Can you do the same for the number of people demonstrating? Thank you

  • @akanksharaj2705
    @akanksharaj2705 3 ปีที่แล้ว

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

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

  • @jackhammer6647
    @jackhammer6647 3 ปีที่แล้ว

    hello sir do you have a tutorial for detecting not moving object

  • @bryansneydergomez4870
    @bryansneydergomez4870 3 ปีที่แล้ว

    wow, you explain very well, trank u bro!

  • @vittal255
    @vittal255 3 ปีที่แล้ว

    Sir, thank you for the video with a detailed explanation.
    If I want the program to execute on two different videos at a time is that possible.
    If yes please tell the way

  • @hanshima_
    @hanshima_ 3 ปีที่แล้ว

    Thanks a lot for this amazing tutorial !!!

  • @kampfhund-cnc
    @kampfhund-cnc 3 ปีที่แล้ว

    thank you very much, great Tutorial! My Problem is that the Object has many Shadows, reflected from the Street and from the Window from the Car. do you have there a solution for?

    • @pysource-com
      @pysource-com  3 ปีที่แล้ว +1

      Yes,. Consider this is just one of the many approches possible.
      The most reliable one will be integrating deep learning with Opencv and object tracking, and you can have an accuracy close to 100%

    • @pppaulpeter
      @pppaulpeter 2 ปีที่แล้ว

      @@pysource-com so this example is not based on deep learning, right?