Skip to content

Instantly share code, notes, and snippets.

@aferral
aferral / gist:588bed4f10a6f181398470a91ae3cf26
Last active March 19, 2017 13:38
Select pixels in image and save them to pickles
import cv2
import numpy as np
import os
import pickle
#----------------------INICIO PARAMETROS
imagesFolder = "C:/Users/andres/Desktop/CrackImages/CleanCracks"
dataOutFolder = "C:/Users/andres/Desktop/CrackImages/saved"
imageTypes = ['jpeg']