Python库可以自动将照片对齐并裁剪为正确的生物特征护照照片大小。
photoidmagick的Python项目详细描述
照片ID Magick
Python库可以自动将照片对齐并裁剪为正确的生物特征护照照片大小。在
此库基于库face_detection和{a2}。在
安装
$ pip install photoidmagick
使用
$ 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 |
---|---|---|
- 项目
标签: