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.11.tar.gz
(15.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file photoidmagick-1.1.11.tar.gz.
File metadata
- Download URL: photoidmagick-1.1.11.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Darwin/22.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2da60f440656dc15e1cc78feaaa9092abe6d4206b7a68f69bcaaba51252dde9
|
|
| MD5 |
1de2d85f893c37d16c5ef2d96b884e63
|
|
| BLAKE2b-256 |
6be762e7de868c4601df999e2165b313dae95ed06bc0c4a9739b976a0617bc49
|
File details
Details for the file photoidmagick-1.1.11-py3-none-any.whl.
File metadata
- Download URL: photoidmagick-1.1.11-py3-none-any.whl
- Upload date:
- Size: 16.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f236df4ba214c8d1dc5c5613d0fb07d6335faefbbf287e0cdb172bb8970f839a
|
|
| MD5 |
b715d0871cad2e91d31cca0c9e781925
|
|
| BLAKE2b-256 |
7416e6021007a890b6451058815dbf59cc8636a30983d2bc11b76d8664abf743
|