Skip to content

Instantly share code, notes, and snippets.

@alpocr
Created September 1, 2014 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpocr/edbf5ae3b06d051e1eed to your computer and use it in GitHub Desktop.
Save alpocr/edbf5ae3b06d051e1eed to your computer and use it in GitHub Desktop.
from SimpleCV import * #import FrameWork
import time # import time
frame = Image("1.jpg").scale(0.8) # open image
face = frame.findHaarFeatures("face.xml") #start a face.xml instance
if face: #if a face was found
face.draw((0, 255, 0), 3)
frame.show() # show result
time.sleep(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment