Skip to main content

A small example package

Project description

image-hashing

facial-extractor

PyPi: flare-image-hashing

API

  • hash_image

    • Average Hash computation of the given image.
    • Parameters
      • image_path - A string specifying where the image in located.
    • Return:
      • An imagehash ImageHash object on success. None otherwise.
  • image_difference

    • Checks if the Average Hash of two images is equal. Here the definition of equal is using computed hashes and not raw pixel values. Meaning two different images could be 'equal'.
    • Parameters
      • reference_image_path - A string specifying where the first image in located.
      • other_time_path - A string specifying where the second image in located.
    • Return:
      • True if equal. False otherwise.

Publishing the package

  1. Install packages in requirements.txt
  2. Bump the version number in setup.cfg
  3. Building (Now run this command from the same directory where pyproject.toml is located): python3 -m build
  4. Get the PyPI API token
  5. Run Twine to upload all the archives under dist: python3 -m twine upload dist/*
  6. username: __token__
  7. password: the PyPi token including the pypi- prefix

Helpful links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flare-image-hashing-0.0.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

flare_image_hashing-0.0.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page