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
from glob import glob | |
import numpy as np | |
import os | |
import sys | |
# You'll need scikit-image and PIL installed to use this | |
try: | |
import skimage.io | |
except ImportError: | |
sys.exit("please 'pip install scikit-image' to use this script") |