AI tool for generating ID photos
Top 2.4% on sourcepulse
HivisionIDPhotos is a lightweight, efficient AI-powered tool for creating standard ID photos. It targets users needing quick, high-quality ID photos, offering offline processing and customizable output formats.
How It Works
The tool utilizes a pipeline of AI models for tasks like background removal (matting) and face detection. It supports multiple matting models (MODNet, hivision_modnet, rmbg-1.4, birefnet-v1-lite) and face detection models (MTCNN, RetinaFace, Face++ API), allowing users to balance speed and accuracy. The system can generate standard ID photos, print-ready layouts, and supports features like background color changes and beautification.
Quick Start & Requirements
pip install -r requirements.txt
and pip install -r requirements-app.txt
.python scripts/download_model.py --models all
or manually.python app.py
.Highlighted Details
Maintenance & Community
The project is actively maintained with frequent updates. A vibrant community contributes extensions like ComfyUI workflows, WeChat mini-programs, and a C++ version. Links to community projects and contact information are provided.
Licensing & Compatibility
Licensed under the Apache-2.0 License, permitting commercial use and integration with closed-source projects.
Limitations & Caveats
GPU acceleration is primarily supported for the birefnet-v1-lite
model and requires significant VRAM (around 16GB). Some advanced features like "smart suit changing" are marked as "waiting." CPU inference times can vary significantly depending on the chosen models.
3 weeks ago
1 day