phash v0.1.3 PHash View Source

Link to this section Summary

Functions

Write the image binary data to a temporary file and produces the same result as PHash.image_file_hash/1 using that file.

Unsafe proxy definition for image_binary_hash/1.

Reads an image from a path and produces a hash that can be compared with another hash via PHash.image_hash_distance/2.

Unsafe proxy definition for image_file_hash/1.

Calculates the hamming distance between two image hashes.

Link to this section Functions

Link to this function

image_binary_hash(image_data, opts \\ [])

View Source

Write the image binary data to a temporary file and produces the same result as PHash.image_file_hash/1 using that file.

Options:

  • extension - an extension to be added to the temporary file created (e.g. ".gif")
              (default: "").
Link to this function

image_binary_hash!(arg0)

View Source

Unsafe proxy definition for image_binary_hash/1.

Link to this function

image_binary_hash!(arg0, arg1)

View Source

Unsafe proxy definition for image_binary_hash/2.

Link to this function

image_file_hash(image_path)

View Source

Reads an image from a path and produces a hash that can be compared with another hash via PHash.image_hash_distance/2.

Unsafe proxy definition for image_file_hash/1.

Link to this function

image_hash_distance(hash_a, hash_b)

View Source

Calculates the hamming distance between two image hashes.