# HivisionIDPhotos

> HivisionIDPhotos: a lightweight and efficient AI ID photos tools. 一个轻量级的AI证件照制作算法。

- Type: agent or tool
- Field: Image & Design
- Repository: https://github.com/Zeyi-Lin/HivisionIDPhotos
- GitHub stars: 21772
- Licence: Apache-2.0
- Language: Python
- Last push: 2026-07-03
- Page: https://imutechz.in/agents/hivisionidphotos

## What it is
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.

## 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

## Install
```
pip install -r requirements.txt
```

## Usage
```
python scripts/download_model.py --models all
```

Tags: id-photo, portrait-matting, image-processing, offline, cpu, gradio, python, face-alignment
