image_output_1.png
from glob import glob

from keras.preprocessing.image import ImageDataGenerator, img_to_array, load_img

import matplotlib.pyplot as plt

train_path = '/kaggle/input/signature/signature/Train/'
test_path = '/kaggle/input/signature/signature/Test/'

img = load_img(train_path + 'forged/f138.png')
plt.figure()
plt.imshow(img)
plt.show()
x = img_to_array(img)
img = load_img(train_path + '/forged/f98.png')
plt.figure()
plt.imshow(img)
plt.show()
x = img_to_array(img)
print(x.shape)
numberOfClass = len(glob(train_path + '/*'))