imagecluster.io.get_image_data¶
-
imagecluster.io.
get_image_data
(imagedir, model_kwds={'layer': 'fc2'}, img_kwds={'size': (224, 224)}, timestamps_kwds={'source': 'auto'}, pca_kwds=None)[source]¶ Convenience function to create images, fingerprints, timestamps.
It checks for existing images and fingerprints database files on disk and load them if present. Running this again only loads data from disk, which is fast. Default locations:
fingerprints: <imagedir>/imagecluster/fingerprints.pk images: <imagedir>/imagecluster/images.pk
Parameters: imagedir : str
model_kwds : dict
passed to
get_model()
img_kwds : dict
passed to
read_images()
timestamps_kwds : dict
passed to
read_timestamps()
pca_kwds : dict
passed to
pca()
, PCA is skipped ifpca_kwds=None
Returns: images : see
read_images()
fingerprints : see
fingerprints()
timestamps : see
read_timestamps()