Skip to main content

Python library to automatically align and crop your photos to the correct biometric passport photo size

Project description

Photo ID Magick

Python library to automatically align and crop your photos to the correct biometric passport photo size.

This library is based on the libraries face_detection and Pillow.

Installation

$ pip install photoidmagick

Usage

$ photoidmagick -f sample_039.jpg -s 1750x2250
Traceback (most recent call last):
__main__.ObliqueFacePoseException: the midsagittal facial line doesn't intersect the midhorizontal iris line in the middle


$ photoidmagick -f sample_039.jpg -s 350x450 --allow-oblique-face
Original Passport Photo Format Square Photo Format
$ photoidmagick -f sample_054.jpg -s 400x400 --allow-oblique-face
Traceback (most recent call last):
__main__.UnevenlyOpenEyelidException: the right eye is more opened than the left eye

$ photoidmagick -f sample_054.jpg -s 1000x1000 --allow-oblique-face --allow-unevenly-open-eye
Original Passport Photo Format Square Photo Format

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

photoidmagick-1.1.10.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

photoidmagick-1.1.10-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file photoidmagick-1.1.10.tar.gz.

File metadata

  • Download URL: photoidmagick-1.1.10.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Darwin/22.2.0

File hashes

Hashes for photoidmagick-1.1.10.tar.gz
Algorithm Hash digest
SHA256 ebecf95bf3d4f5ef0af1793b4f48ccd192ae2ba84baec95375ac6885626feb21
MD5 925eaebd1e8bee7504920f1c02cffbb0
BLAKE2b-256 6d29070be1c95879b05e0a9e204e46667d702d49f8cbc2441ea19bea4b939e55

See more details on using hashes here.

File details

Details for the file photoidmagick-1.1.10-py3-none-any.whl.

File metadata

  • Download URL: photoidmagick-1.1.10-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Darwin/22.2.0

File hashes

Hashes for photoidmagick-1.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 7f48ec17b8940e94afcc06f65cde7fa9439f42e104ecfce3bd88f164d389c01b
MD5 6e6ec8e100f11fd0547f1e0fc376d449
BLAKE2b-256 6a13f0fbe3e180d375a623857b8577188da7914b5ffa15d54ca533999e390675

See more details on using hashes here.

Supported by

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