Skip to content

Instantly share code, notes, and snippets.

@sarmadm
sarmadm / eye_detector.py
Last active September 9, 2015 10:35 — forked from dimitrs/eye_detector.py
A Python implementation of the paper "Accurate Eye Center Location through Invariant Isocentric Patterns".
import cv2
import numpy as np
import matplotlib.pyplot as plt
from skimage import io
img = io.imread('eye.png')
# Left eye
img = np.around(img[0:img.shape[0], 0:img.shape[1]/2])