11.9: Computer Vision: Blob Tracking with Persistence – Processing Tutorial

[ad_1]
In this Computer Vision video, I develop a “blob persistence” algorithm. I assign IDs to each detected blob and track its position over time.

Support this channel on Patreon:

Coding Rainbow T-Shirts:

Send me your questions and coding challenges!:

Contact:

Links discussed in this video:
Previous Blob Detection video:

Source Code for the Video Lessons:

p5.js:
Processing:

For More Computer Vision videos:

For More Coding Challenges:

Help us caption & translate this video!


Posted

in

by

Tags:

Comments

16 responses to “11.9: Computer Vision: Blob Tracking with Persistence – Processing Tutorial”

  1. Kevin Broocen Avatar

    Please where can i get the code?? 馃檪

  2. Game And Gamer Avatar

    hi Daniel i have a mac too when i try to execute same code in laptop the video that is displayed is flipped ( i mean text and everything is mirrored )
    i tried using this code in draw
    pushMatrix();
    scale(-1,1);
    image(video,-video.width,0);
    popMatrix();
    but the output screen instantly crashes do you have any better method.

  3. 膼么ng Quang Avatar

    Thank you so much! Amazing!

  4. statorworks 345 Avatar

    A little bit hard to follow towards the end, but I think there was a problem in naming the newly detected as 'current'. I think the historical ones should be the 'current'.
    Any one from the new detection frame that is close enough to a current one is just an update of the position. This way they could even go out of the screen or go undetected momentarily and still exist.
    Great videos!

  5. statorworks 345 Avatar

    You can't do this in the video, but it helps to understand your own thoughts if you write down a one line comment when you verbalize your idea, as opposed to just juggling with it in your head.
    I usually start new code with a series of concise one liners. Only then I start filling the 'paragraphs' with instructions.

  6. Federico Panni Avatar

    Thanks for the tutorial! I just have a question for you: How can i consider blob 0, blob 1, blob 2 separately? I mean.. I need to say: if blob number 0 goes to a certain part of the screen and blob number 1 in another part of the screen, than println "presence"

    Is it possible? Thank you so much, your tutorials are all great!

  7. bastueb ducloy Avatar

    hi Daniel ! i have a really important question: can we do the same thing like trackColor like you in the video in p5.js ? i like you're video ! continue like this!

  8. Rakesh Chaurasia Avatar

    sir, please help me out . I want to count the number of blobs how can we do that ?

  9. realcygnus Avatar

    pretty intense series …….awesomeness !

  10. John J1101 Avatar

    Daniel Shiffman
    Make a version of flappy bird where instead of clapping you flap your hands when holding cups lol

  11. michael eli Avatar

    14:45 take your time buddy, soaking it all up!! Great stuff

  12. Damian Reloaded Avatar

    I think your variable naming convention is facking you up. One word abbreviations starts becoming less and less conspicuous after you get many of them. I personally never abbreviate. The time you save abbreviating variable names multiplied by 100 is the time you lose debugging them later. It was a great video nonetheless, the timeout is a great idea I wanna know how did that turn out. I'm gonna watch the next video… ^_^

  13. Collin Bell Avatar

    28:20 "I wonder how…."
    28:24 "Don't you dare"
    28:31 "Why?!"

  14. The Frozen Indie Avatar

    what kind of library does processing use ?

  15. Ignacio Gattarelli Avatar

    man, you're awesome! i always watch your videos! i'm still waiting for some library to connect my camera dslr to processing 馃檨

Leave a Reply

Your email address will not be published. Required fields are marked *