This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Import both skimage and cv | |
from skimage import transform as tf | |
from skimage import io | |
import cv2 | |
import numpy as np | |
from scipy import optimize | |
import matplotlib.pyplot as plt | |
# Could use either skimage or cv to read the image |