It is often required to blur out the faces of people in an image. Google Street View does this to protect the identity of the people in an area. Several military applications need this too. While this would seem a daunting task to any beginner, SimpleCV makes everything really… um… simple.
The code to detect a face and blur that area out is as follows:
cam = Camera()
haarcascade = HaarCascade("face")
img = cam.getImage().flipHorizontal().scale(0.5)
faces = img.findHaarFeatures(haarcascade)
bb = faces[-1].boundingBox()
img = img.pixelize(10, region=(bb, bb, bb, bb))
Hope you’ll find cool and innovative applications for the awesome algorithm above. Peace.