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 |
|---|---|---|
Metadata
Release files for photoidmagick 1.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| photoidmagick-1.1.11.tar.gz | 15.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| photoidmagick-1.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.3 kB
Release files / photoidmagick-1.1.11.tar.gz
| Download URL | photoidmagick-1.1.11.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2da60f440656dc15e1cc78feaaa9092abe6d4206b7a68f69bcaaba51252dde9
|
|
BLAKE2b-256 checksum How to use checksums |
6be762e7de868c4601df999e2165b313dae95ed06bc0c4a9739b976a0617bc49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.6 Darwin/22.2.0
|
Release files / photoidmagick-1.1.11-py3-none-any.whl
| Download URL | photoidmagick-1.1.11-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f236df4ba214c8d1dc5c5613d0fb07d6335faefbbf287e0cdb172bb8970f839a
|
|
BLAKE2b-256 checksum How to use checksums |
7416e6021007a890b6451058815dbf59cc8636a30983d2bc11b76d8664abf743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.6 Darwin/22.2.0
|