INNER CODE UNIT · Python

track_eye

vardanagarwal/Proctoring-AI · eye_tracker.py:165

def track_eye(video_path=None):

    video_path = ""

    cap = cv2.VideoCapture(video_path)
    ret, img = cap.read()
    thresh = img.copy()

    while(True):
        ret, img = cap.read()
        rects = find_faces(img, face_model)

        if not ret:
            break
        
        for rect in rects:
            shape = detect_marks(img, landmark_model, rect)
            mask = np.zeros(img.shape[:2], dtype=np.uint8)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…