I know I say this a lot in the comments, but holy hell was this video incredible! I'm watching it 5 years later, and it just helped me develop a large scale project. These videos are a treasure trove of information Dan, love you for these!
A perfect teacher! There is algorithm + code + corner cases + customization + dance + most important fun !! Liked, subscribed and I am going to explore your channel!! Thanks for the content :)
you can also return a condition instead of if/else statement: return (d < distSqrt(x,y,px,py)); instead of if (d < distSqrt(x,y,px,py)) { return true; } else { return false; } same goes with simple values. let's assume we want to return 5 or 10. return ((d < distSqrt(x,y,px,py))? 5 : 10); this is how it works:if (condition)? if true : if false; condition = your check. ? = which side do I need to execute. left side of : symbol = if true is the result of the condition. right side of : symbol = if false is the result of the condition. hope you've all learned something by this message.
I feel like I want you to be my best friend, most genuine and good teacher I have ever seen on youtube, reminds me of classic thenewboston when I first got into programming, you really have a special talent and I wish I could just sit and absorb your knowledge forever
I love that you're covering some fairly complex subjects. There are a few areas in computer graphics that continue to baffle me: Working in gradient domain and converting back to RGB color model. FFT for 2D images fluid simulation
You should do a video on emotion detection with openCV, I currently have a project to do, and I wanted to do a smile detector and some typography animations, but I can't seem to find very many good stuff on this subject. Love your work btw
Was this in a stream!?!?! Did i miss it!?!?! Thanks for these awesome videos Dan, I'm 16 and learning to code in general, but your videos are so energetic and motivating! Inspiring stuff keep it up!
damn! this channel is a virtual university! you handle such deep concept like nanny sings a lullaby! I name you the Aaron of the computer programmer! now I just need to find the Moses!
I think you could obtain a better result with a much lower treshold and a different way to calculate the distance between a pixel and a blob, you need to calculate the shortest distance between any pixel of the blob and the given pixel, this way if the red area is big you won't get a lot of small blobs next to one another even if you don't exclude small blobs
I'm glad that I was helpful, I noticed that if you had a treshold of 20 (let's say 20 pixel of distance using the dist function and not the distSq one) if a blob becomes bigger than 40x40 pixel even if a red pixel sit right next to it's border it will be excluded from the blob
I just had nearly one of the scariest moments of my life, the Coding Train channel glitched and said Zero Playlists! "NooooooooooooooooooooooooooooooooOOOO!"
Would be interesting to experiment with the smaller threshold (as code is in 14.44 of video), when you 'comment out' the line of code that clears the blobs, you are able to track more than one colour when the mouse is clicked because it retains the previous colour as well as the new one.... Would it be possible to also remove blobs of colour being tracked with a right mouse button click or key pressed? Would also be interesting to find the average /center location of that specific colour - on the entire screen or within the larger blobs which you develop at the end of the video (and in the next couple videos in this series of course XD)
i try to track white pixel in a image, when the pixel moves,it merge with non moving white pixels.. how can i separate moving and non moving pixel in a image using opencv c++
You are amazing !!!!!! I learned too many things on Java and Processing W I T H O U T book in just O N E week through your videos !!!!! Thank you thank you thank you P.S. I would like some help if you have some time. 1. How do I change your code to detect objects that appear only in an area 250X250 pixels around the center of the screen? ( I did it through a change here : for (int x = 0; x < video.width; x++ ) { for (int y = 0; y < video.height; y++ ) but there is an error about the size of this : color currentColor = video.pixels[loc]; 2. How do I change your code to track only the biggest object that is appearing in the screen ???? Thank you
how about using some search algorithm: h t t p s : / / en.wikipedia.org / wiki / Category:Search_algorithms. would this help p5js being more performant? the thing is i don't know which search algorithm to use.
I know I say this a lot in the comments, but holy hell was this video incredible! I'm watching it 5 years later, and it just helped me develop a large scale project. These videos are a treasure trove of information Dan, love you for these!
I can't believe you just made me watch a 21-min video about something I already know.
A perfect teacher! There is algorithm + code + corner cases + customization + dance + most important fun !! Liked, subscribed and I am going to explore your channel!! Thanks for the content :)
The blobs attack at the end was epic haha :) Great stuff as always :)
Heh, thanks!
you can also return a condition instead of if/else statement:
return (d < distSqrt(x,y,px,py));
instead of
if (d < distSqrt(x,y,px,py)) {
return true;
} else {
return false;
}
same goes with simple values.
let's assume we want to return 5 or 10.
return ((d < distSqrt(x,y,px,py))? 5 : 10);
this is how it works:if
(condition)? if true : if false;
condition = your check.
? = which side do I need to execute.
left side of : symbol = if true is the result of the condition.
right side of : symbol = if false is the result of the condition.
hope you've all learned something by this message.
I learned two things from this video. DIY blob detection and DIY v-neck. Thank you.
I feel like I want you to be my best friend, most genuine and good teacher I have ever seen on youtube, reminds me of classic thenewboston when I first got into programming, you really have a special talent and I wish I could just sit and absorb your knowledge forever
Lol great tutorial, Blob Man. Not only am I learning lots, but you're also cheering me up in the process!
i wish he is our lecturer...so i wont skip classes.awesome teaching skills...
Dude, you are the coolest guy on the internet
I love that you're covering some fairly complex subjects. There are a few areas in computer graphics that continue to baffle me:
Working in gradient domain and converting back to RGB color model.
FFT for 2D images
fluid simulation
Why bother paying Netflix when we have The Coding Train. Your tutorials have been so useful (and entertaining)!
You should do a video on emotion detection with openCV, I currently have a project to do, and I wanted to do a smile detector and some typography animations, but I can't seem to find very many good stuff on this subject.
Love your work btw
Was this in a stream!?!?! Did i miss it!?!?! Thanks for these awesome videos Dan, I'm 16 and learning to code in general, but your videos are so energetic and motivating! Inspiring stuff keep it up!
haha , he makes me crack up up sometimes . fun to learn with Dan!
Thanks for watching!
OMG, I never knew that your code training course also covered the image processing part.!!! That' s greaaat! Thank you.,
damn! this channel is a virtual university! you handle such deep concept like nanny sings a lullaby! I name you the Aaron of the computer programmer! now I just need to find the Moses!
Fantastic teaching skills man! Great work!
So nice to hear, thank you!
Man, you're awesome. I've learned and known away more about programming from your videos. Thanks a million ^^.
Thank you so much!
best teacher ever
I think you could obtain a better result with a much lower treshold and a different way to calculate the distance between a pixel and a blob, you need to calculate the shortest distance between any pixel of the blob and the given pixel, this way if the red area is big you won't get a lot of small blobs next to one another even if you don't exclude small blobs
oh this is a great point! I'll try to make these improvements in a future session.
I'm glad that I was helpful, I noticed that if you had a treshold of 20 (let's say 20 pixel of distance using the dist function and not the distSq one) if a blob becomes bigger than 40x40 pixel even if a red pixel sit right next to it's border it will be excluded from the blob
You're awesome! Thank you for making these videos, it brings so much joy into my life!
Great work! I've read all your books and now finally see your face~ XD
Loving these classes, thanks!
YESSS!!! AWESOME!! GOES PERFECT WITH MY PROJECT!!
so glad to hear!
thank you so much for sharing really inspired me to code more
I just had nearly one of the scariest moments of my life, the Coding Train channel glitched and said Zero Playlists! "NooooooooooooooooooooooooooooooooOOOO!"
Thank you, very useful fun learning video.
i loveddd it
Thanks so much. Love this.
Would be interesting to experiment with the smaller threshold (as code is in 14.44 of video), when you 'comment out' the line of code that clears the blobs, you are able to track more than one colour when the mouse is clicked because it retains the previous colour as well as the new one.... Would it be possible to also remove blobs of colour being tracked with a right mouse button click or key pressed? Would also be interesting to find the average /center location of that specific colour - on the entire screen or within the larger blobs which you develop at the end of the video (and in the next couple videos in this series of course XD)
I like all these ideas! You could definitely keep an array of colors you are seeking and add / remove from it!
THANK YOUUUUUU (is it weird that im learning this in middle school without my teacher telling me to)
i try to track white pixel in a image, when the pixel moves,it merge with non moving white pixels.. how can i separate moving and non moving pixel in a image using opencv c++
Wonderful video thank you =)
How can we decide that, our blob is circle or not? Do you have a tricky idea for this purpose?
How can I set the colors that need to be tracked without clicking with the mouse?
Can i get shape detection without using coloring filter ?
very nice tutorial..I have a question sir, is it possible that I can get the Object's height and width if I pixilate the object in an image
Hi, it s possible to have a tutorial about tracking and draw on capture video? Help!
omg , I kept laughing and laughing. so interesting playing with the blobs
Awsome broh...
nice tutorial sir, but i still not get any idea, how could you create blob object?? how could you detect Red color into blob object?
Amazing tutorial!!!!! :)
Awesome!! :D
thanks bro
can you make a video of circle shaped blob?
Hi! How can I track blobs of a video file, instead from the camera?
Is it applicable on android studio and opencv? sorry im a newbie...
O MY GUD!!! YOU'RE THE BEST!!!! and, what's kind of ide is that?!?!!
It's processing.org!
could you show me how to track color possition?
thank you :)
You need a refactor tool there buddy?
Give some tutorials on webVR and openCV
I'd love to see how to generate a high res heatmap such as codeflow.org/entries/2013/feb/04/high-performance-js-heatmaps/ from a lower res data input.
novel price for Daniel!
You are amazing !!!!!!
I learned too many things on Java and Processing W I T H O U T book in just O N E week through your videos !!!!!
Thank you thank you thank you
P.S. I would like some help if you have some time.
1. How do I change your code to detect objects that appear only in an area 250X250 pixels around the center of the screen?
( I did it through a change here :
for (int x = 0; x < video.width; x++ ) {
for (int y = 0; y < video.height; y++ )
but there is an error about the size of this : color currentColor = video.pixels[loc];
2. How do I change your code to track only the biggest object that is appearing in the screen ????
Thank you
how about using some search algorithm: h t t p s : / / en.wikipedia.org / wiki / Category:Search_algorithms. would this help p5js being more performant? the thing is i don't know which search algorithm to use.
Thanks for the suggestion!
You're a goof! But this was good!
Dude, why are you always seems so bubbly and happy? Is it drugs or something? xD
11:44 BUG!!!!!!!!!!!!!!!!!!!!!
ZOINKS
XD
Watching you mimic with no sound is rather intertaining