Society of Robots - Robot Forum

General Misc => Robot Videos => Topic started by: superchiku on March 31, 2009, 02:47:19 AM

Title: BLOB DETECTION ALGORITHM.....VIDEO
Post by: superchiku on March 31, 2009, 02:47:19 AM
hey guys thanks to u ppl i was able to develop this simple blob detection algorithm which is fairly accurate and can serve any general purpose....enjoy the video and the song

[youtube]yXsVUuh_Frs[/youtube]
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: superchiku on March 31, 2009, 11:01:18 AM
cheerio...i jst improvedthe algo..the accuracy is better now...
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: offy on March 31, 2009, 11:37:45 AM
nice, very very nice. I have a few questions about it though. If there is only 2 blobs, will it only show blue and green? Does it have to be that exact color red?
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: superchiku on March 31, 2009, 11:49:14 AM
yes it will show blue and green only..... actually i designed it for red blobs..but the code only needs minor modifications for blobs of any other colour...like only changing an array index value...
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: offy on March 31, 2009, 12:54:48 PM
Is it hooked up to a webcam?
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: superchiku on March 31, 2009, 12:57:39 PM
ya video processing...
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: offy on March 31, 2009, 01:00:50 PM
Can I have the code so I can try it out?
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: superchiku on March 31, 2009, 01:03:52 PM
its in opencv sure u can have t ..if u have yahoo messenger then give me ur id ..ill addd  and send u
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: luiyl on April 16, 2009, 09:01:08 AM
hi can i have to code as well..
 
i manage to try out the sample in opencv which detect reb image. i wada to learn to add blob and track it.

please sent to [email protected]

thanks.. :)
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: superchiku on April 16, 2009, 10:06:15 AM
i detected sum bugs with the code...i need to add sum extra filtering to it...if u still need it then ill give u
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: luiyl on April 16, 2009, 08:29:44 PM
yup.. thanks.. :)
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: superchiku on April 17, 2009, 03:14:58 AM
ok ill send the code to ur email...correct the bugs.. .
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: luiyl on April 29, 2009, 11:01:02 PM
hello..

i have yet to receive to code.. can you help me send again..

[email protected] or [email protected]

thanks.. :)
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: ehernandezd on May 19, 2009, 07:19:33 PM
could you send me the code? greetings from Colombia
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: jakx12 on June 02, 2009, 01:51:05 PM
very nice :)
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: luiyl on July 22, 2009, 01:13:26 AM
hi guys, i receive some error while trying to compile the above sample code, has it got to do with the initial declaration??


   int height1=hw->height;
   int width1=hw->width;


warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data


//finding centre of gravity...
   for(float i=0;i<height1;i++)
   {
      for(float j=0;j<width1;j++)
      {
       s=cvGet2D(hw,i,j);  ******** error is here******************
       if(s.val[2]>120)
       {
         xcounter++;
         ycounter++;
         xpixel+=j;
         ypixel+=i;
       }
   }
Title: Re: BLOB DETECTION ALGORITHM.....VIDEO
Post by: night_soul on April 12, 2010, 07:05:24 AM
Hello may i have the code also?

[email protected]

Thank you very much