[Myro-users] Blob detection

Jay Summet summetj at gatech.edu
Mon Nov 30 15:13:33 EST 2009


The code in the example is meant to be used interactively at the
terminal (IDLE shell).

If you want to set a blob color in code check out the configureBlob(...)
function call.

(When you select a region in a picture, it shows you the "setBlob"
parameter string that was generated, which you can put into code....but
I'm not sure if that feature made it into 2.8.2, it may only be in the
SVN version that I'm using, 2.8.14).


For example, configureBlob(0,254, 106,119, 193,220)
will set up the blob detection to find an orangish red color.

(it's luminosity or Y from 0 to 254 (all) and U from 106-119, and V from
193-220) in YUV color space)

Jay

McGill, Monica wrote:
> Hello,
> 
> I am trying to figure out exactly how to detect an object of my choosing.
> According to the wiki (and the book), it sounds like I should be able to
> take a picture, then select the object to be detected by drawing a bounding
> box around the object. The code provided is:
> 
> p = takePicture()
> show(p)
> b = takePicture("blob")
> show(b)
> 
> Since there is no waiting between the two sets of takePicture- show
> commands, I never have a chance to select the blob.
> 
> I don't think I'm interpreting the syntax for this correctly. If I take a
> picture, and select a bounding box, does the software inherently know that
> that is the blob I am looking for when it later executes the
> takePicture("blob") command? Or do I explicitly need to run a comparison
> between the two?
> 
> Thanks,
> Monica
> 
> _______________________________________________
> myro-users mailing list
> myro-users at myro.roboteducation.org
> http://myro.roboteducation.org/mailman/listinfo/myro-users


More information about the myro-users mailing list