We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › flob / computer vision library
Page Index Toggle Pages: 1
flob / computer vision library (Read 7171 times)
flob / computer vision library
Feb 10th, 2009, 11:07pm
 
hi

i built a simple multi-blob detector library, been using it in some projects, got a chance to clean it up and post it for others to use. my aims for this code were making it fast and lightweight. the library is still very early alpha, but already quite usable, hence i thought it should be useful for other people too.

it's called flob: a concatenation of flood and blob. the base algorithm is the flood-fill technique. i built a simple example which explains most the inner workings, available in the download.

here is the link
http://s373.net/code/flob

hope you enjoy.
best regards
a

Re: flob / computer vision library
Reply #1 - Feb 16th, 2009, 6:07pm
 
some updates:

- returns normalized positions
- support for non-square images
- new om: continuous_difference
- return pixelcount/mass of each blob
- returns normalized presence
Re: flob / computer vision library
Reply #2 - Jun 23rd, 2009, 4:21pm
 
hi everyone,

i've updated the flob library, more robust, stable and powerfull.
flob is a fast flood-fill multi-blob detector that works in processing.
tracks blobs and simple features in image streams.

now can track blobs with id's, track feature points, new version (001k) not backwards compatible, but simpler to access and use blob data.

have a look at the monoflob example, which emulates a camera based kind of monome. this code has been tested already on many mac's and windows and even linuxes, runs ok.

feedback this thread if you like it or have problems with it. hope you enjoy, a

http://s373.net/code/flob
Re: flob / computer vision library
Reply #3 - Jun 24th, 2009, 7:20am
 
cool Smiley
Re: flob / computer vision library
Reply #4 - Sep 18th, 2009, 1:34am
 
Hi
I try to download the flob/computer vision library
Until now I ‘v worked with the blob detection library, but I need Tracking und yours updates are really good, than I want to tray it wtht flob
… but my browser cannot find your link  Undecided

Can you help me?
thanks!
Regards
mariana
Re: flob / computer vision library
Reply #5 - Sep 20th, 2009, 1:17pm
 
cool!
I have it now Smiley
Re: flob / computer vision library
Reply #6 - Dec 2nd, 2009, 1:06am
 
hey as! great library. thinking of linking it to tiction to generate movement based sound.im really curious to see how you did it but i cant make too much sense of java. can you share the algorithm or processing code you wrote? Smiley
Re: flob / computer vision library
Reply #7 - Dec 2nd, 2009, 3:03am
 
hi

sure i share the sound sketch, glad you enjoy the lib.
i've been using 2 strategies, 1 sending via osc to max/pd/of...
and the other having sound straight out of java...

i just have an extended monoflob sketch which uses sound samples.. since the sketch is a bit lenghty to post, i though i just leave here the code you could insert in monoflob to make it work.

// main sketch changes
import ddf.minim.*;
...
Minim minim;
String audiofiles[] = {"1.wav","2.wav","3.wav","4.wav","5.wav"};
...
void stop(){  minim.stop();super.stop();}
...

// monoflob changes

// Botao b[];
 BotaoAudio b[];

//and a new class...

// o botao audio tem tudo o q o botao normal tem,
// mas vai ter mais a parte de gerir audio

class BotaoAudio extends Botao{

 float vol;
 AudioPlayer  sndplayer;


 BotaoAudio(int i,  float _x, float _y, float _w , float _h ){
   super(i,_x,_y,_w,_h); //construtor botao normal

   //carregar audio, converter o id para nome do ficheiro
   sndplayer= minim.loadFile(audiofiles[i%5], 2048);
   sndplayer.loop();
 }

 // overloading state to handle sound here
 void state(){

   super.state();// first calc state from botao, then use vars to scale audio amp
   float newvol = map(gain, 0, 100, -50, 10); // os vols minim estão em dbs de -100 a 0
   float f = 0.12; //lowpass para suavizar..
   vol = f*newvol+(1f-f)*vol;
   sndplayer.setGain(vol);
 }

}


hope this gets you going...
Re: flob / computer vision library
Reply #8 - Feb 10th, 2010, 6:58am
 
another update to flob. more info here: http://s373.net/continuum/?p=216

best regards

a
Re: flob / computer vision library
Reply #9 - Feb 11th, 2010, 7:47am
 
as wrote on Feb 10th, 2010, 6:58am:
another update to flob. more info here: http://s373.net/continuum/?p=216

best regards

a


the download link seems broken,any chance to fix it thank you
Re: flob / computer vision library
Reply #10 - Feb 11th, 2010, 8:10am
 
oops. sorry, fixed already.
edit: direct link for this version is http://s373.net/code/flob/flob-001o-20100210.tar.gz
Re: flob / computer vision library
Reply #11 - Feb 16th, 2010, 1:13pm
 
Any thoughts on using a movie file, rather than a camera, as input for flob? I thought it might just be a matter of changing the various instances of the video variable referencing the Capture class (and instead using Movie), but I'm not getting it to work.
Re: flob / computer vision library
Reply #12 - Mar 19th, 2010, 5:29am
 
sorry, only today found your post. flob was not working with movies because they are not reporting their width and height accordingly. ie, println(myMovie.width+" "+myMovie.height); returns 1 1 on my system. this causes flob to not construct properly. a couple of days ago i put a version where you can use a different flob constructor, like:
flob = new Flob(this, srcWidth, srcHeight, dstWidth, dstHeight);
this makes it possible to use movies the standard way, like using cameras. also a bug with the abscence of the great fastblur has vanished.

hth

a
Page Index Toggle Pages: 1