Last active
February 26, 2016 23:31
-
-
Save andrelramos/3697f1c5d41a84ba6db7 to your computer and use it in GitHub Desktop.
Detecção facial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from SimpleCV import * #importa FrameWork | |
| import time # importa time | |
| frame = Image("1.jpg").scale(0.8) # abre imagem e subtrai 20% do seu total | |
| face = frame.findHaarFeatures("face.xml") #instancia de face.xml | |
| if face: # se encontrar um rosto | |
| face.draw((0, 255, 0), 3) #desenha cor (R,G,B) LarguraLinha 3 | |
| frame.show() #mostra o resultado | |
| time.sleep(10) #segura por 10seg resultado na tela |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment