The world's simplest facial recognition api for Python and the command line
AgentImage & Design
HivisionIDPhotos
github.com/Zeyi-Lin/HivisionIDPhotosHivisionIDPhotos: a lightweight and efficient AI ID photos tools. 一个轻量级的AI证件照制作算法。
git clone https://github.com/Zeyi-Lin/HivisionIDPhotos- Stars
- 22k
- Rank in field
- Top 12%#70 of 586 by stars
- Forks
- …
- Open issues
- …
- Contributors
- …
- Language
- Python
- License
- Apache-2.0
- Last push
- 3 Jul 2026
What is HivisionIDPhotos?
HivisionIDPhotos is a lightweight AI tool for making ID photos. It uses a pipeline of AI models to detect faces, cut out the portrait, and generate standard ID photos or multi-photo print layouts. It runs fully offline on CPU, and can also be used in a cloud-assisted setup. It is aimed at developers and users who need quick ID photo generation.
Install & use
Install
pip install -r requirements.txt
Usage
python scripts/download_model.py --models all
Zeyi-Lin/HivisionIDPhotos is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.
Features
- Offline portrait matting that runs on CPU only
- Generates standard ID photos by size and six-inch print layouts
- Supports offline or cloud-assisted inference
- Beauty retouching option
- Face rotation alignment and custom size input in millimeters
- Gradio demo with print layout options for six-inch, five-inch, A4, 3R and 4R
Best for
- Making ID photos locally without a GPU
- Generating print-ready photo sheets
- Building ID photo features into apps via API
- Quick emergency ID photo creation
Pros
- Runs fully offline with CPU-only inference
- Provides a Gradio demo and an API service
- Supports multiple print layout sizes
- Includes beauty retouching and face alignment
Cons
- Requires Python = 3.7 (mainly tested on 3.10)
- Requires downloading model weight files before use
- Smart formal-wear replacement is still waiting
Stars over time