imagecluster.calc.fingerprint

imagecluster.calc.fingerprint(image, model)[source]

Run image array (3d array) run through model (keras.models.Model).

Parameters:

image : 3d array

(3,x,y) or (x,y,3), depending on keras.preprocessing.image.img_to_array and image_data_format (channels_{first,last}) in ~/.keras/keras.json, see read_images()

model : keras.models.Model instance

Returns:

fingerprint : 1d array