merge #5
6
main.py
6
main.py
@ -65,9 +65,11 @@ def start( camera, face_cascade):
|
|||||||
roi_gray = gray[y:y+h, x:x+w]
|
roi_gray = gray[y:y+h, x:x+w]
|
||||||
roi_color = img[y:y+h, x:x+w]
|
roi_color = img[y:y+h, x:x+w]
|
||||||
person = recognize(roi_gray)
|
person = recognize(roi_gray)
|
||||||
if person == 'Hesham' or person == 'Saeed':#Change to if 'unknown' elif openShifter
|
if person == 'unknown':
|
||||||
|
print('Found unknown person')
|
||||||
|
else:
|
||||||
|
print('Found '+person)
|
||||||
OpenShifter()
|
OpenShifter()
|
||||||
print('Sending to Arduino!')
|
|
||||||
cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
|
cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
|
||||||
cv2.putText(img, person, (x, y), cv2.FONT_HERSHEY_PLAIN, 1.7, (255, 0, 0), 2)
|
cv2.putText(img, person, (x, y), cv2.FONT_HERSHEY_PLAIN, 1.7, (255, 0, 0), 2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user