INNER CODE UNIT · Python

eye_on_mask

vardanagarwal/Proctoring-AI · eye_tracker.py:13

def eye_on_mask(mask, side, shape):
    """
    Create ROI on mask of the size of eyes and also find the extreme points of each eye

    Parameters
    ----------
    mask : np.uint8
        Blank mask to draw eyes on
    side : list of int
        the facial landmark numbers of eyes
    shape : Array of uint32
        Facial landmarks

    Returns
    -------
    mask : np.uint8
        Mask with region of interest drawn
    [l, t, r, b] : list

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…