# Revision history [back]

### Can I binarize and still find color?

ok, so that wasn't my last question, but...

I was wondering if I can binarize the image to be analyzed and still look for the color of a blob. I would convert the image to

img = cam.getImage()
imgBin = img.binarize(binValue).invert()
blobs = imgBin.findBlobs(minsize, maxsize)


of course, this would returns blobs that are only white with a (255,255,255) color tuple. The binarization is fairly important as the code has an easier time finding the blobs. Any solution to this?

Also I have another problem, whenever I execute this line

squares = blobs.filter([b.isRectangle(0.1) for b in blobs])


I always get a printout on the terminal screen, which I don't want. of course I can run

os.system('clear')


but running simplecv on an slow embedded system, it really janks up my terminal monitor whenver this printout occurs.

thanks

### Can I binarize and still find color?Executing line prints out in Terminal Screen

ok, so that wasn't my last question, but...

I was wondering if I can binarize the image to be analyzed and still look for the color of a blob. I would convert the image to

img = cam.getImage()
imgBin = img.binarize(binValue).invert()
blobs = imgBin.findBlobs(minsize, maxsize)


of course, this would returns blobs that are only white with a (255,255,255) color tuple. The binarization is fairly important as the code has an easier time finding the blobs. Any solution to this?

Also I have another problem, whenever Whenever I execute this line

squares = blobs.filter([b.isRectangle(0.1) for b in blobs])


I always get a printout on the terminal screen, which I don't want. of course I can run

os.system('clear')


but running simplecv on an slow embedded system, it really janks up my terminal monitor whenver this printout occurs.

thanks

### Executing line prints out in Terminal Screen

Whenever I execute this line

squares = blobs.filter([b.isRectangle(0.1) for b in blobs])


I always get a printout on the terminal screen, which I don't want. of course I can run

os.system('clear')


but running simplecv on an slow embedded system, it really janks up my terminal monitor whenver this printout occurs.

thanks

!!EDIT!! well this is the printout I get when I execute the line

<SimpleCV.Image Object size:(58, 69), filename: (None), at memory location:
(0x3b54c68)>
<SimpleCV.Image Object size:(58, 69), filename: (None), at memory location:
(0x48f83b0)>
58
69
58
69