Skip to content

Instantly share code, notes, and snippets.

@johnbumgarner
johnbumgarner / comparison_scores_skimage.py
Last active January 2, 2021 13:20
This function is designed to generate comparison scores between two image using ssim from skimage.
######################################################################################
# The concurrent.futures module is part of the standard Python library which provides
# a high level API for launching asynchronous tasks.
######################################################################################
import concurrent.futures
#############################################################################################
# The OS module in provides functions for interacting with the operating system.
#
# os.path() provides various functions to handle pathnames.
@johnbumgarner
johnbumgarner / comparison_scores_ahash.py
Last active August 25, 2022 04:41
This function is designed to generate comparison scores between two image using aHash from ImageHash.
######################################################################################
# The concurrent.futures module is part of the standard Python library which provides
# a high level API for launching asynchronous tasks.
######################################################################################
import concurrent.futures
######################################################################################
# The Python module Pillow is the folk of PIL, the Python Imaging Library
# reference: https://pillow.readthedocs.io/en/3.0.x/index.html
######################################################################################