Commit 6bd2556e authored by Arne Gerdes's avatar Arne Gerdes

Eye Tracking entfernt

parent 439e443d
......@@ -8,7 +8,7 @@ detector = dlib.get_frontal_face_detector() # Face detector
detectors = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
predictor = dlib.shape_predictor(
"shape_predictor_68_face_landmarks.dat") # Landmark identifier. Set the filename to whatever you named the downloaded file
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')
while True:
ret, frame = video_capture.read()
......@@ -29,9 +29,7 @@ while True:
cv2.rectangle(frame, (x, y), (x + w, y + h), (255, 0, 0), 2)
roi_gray = gray[y:y + h, x:x + w]
roi_color = frame[y:y + h, x:x + w]
eyes = eye_cascade.detectMultiScale(roi_gray)
for (ex, ey, ew, eh) in eyes:
cv2.rectangle(roi_color, (ex, ey), (ex + ew, ey + eh), (0, 255, 0), 2)
cv2.imshow("image", frame) # Display the frame
......
import numpy as np
import cv2
detector = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
......
import cv2
import emoji
print(emoji.emojize('Python is :city_sunrise:', use_aliases=True))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment