img = cv2.imread(path) img = cv2.resize(img,(IMG_SIZ,IMG_SIZ),3)
trainX = train[:, 1:].reshape(train.shape[0],1,28).astype( 'float32' ) X_train = trainX / 255.0