# Zeyi-Lin/HivisionIDPhotos

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

Repository: https://github.com/Zeyi-Lin/HivisionIDPhotos
Canonical: https://ross.abutalabs.com/products/hivisionidphotos
Homepage: https://modelscope.cn/studios/SwanLab/HivisionIDPhotos
Language: Python
License: Apache-2.0
License Family: permissive
Topics: demo, gradio, idphoto, machine-learning, matting, tools, cnn, docker, face-recognition, fastapi, mtcnn, unet
Last push: 2026-07-03T04:12:11+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 40, longevity 83
- inputs: {"age_days": 1172, "days_push": 61, "days_rel": 589, "gap_med": 1, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 21420, forks 2477 (observed 2026-08-28T04:11:31.717594+00:00)

## What it is
HivisionIDPhotos is a lightweight AI tool that generates standard ID/passport photos from user images using offline matting models that run on CPU. It offers a Python library, Gradio demo, and FastAPI-based API service with Docker deployment.

## Use cases
- make passport photos from a selfie
- remove background from ID photo
- generate 6-inch print layout of ID photos
- run offline ID photo generation on CPU
- deploy ID photo API service with Docker
- change ID photo background color

## When to choose
- you need standard-compliant ID photos generated automatically
- you want fully offline CPU-only inference without GPU
- you need an API or self-hosted service for photo processing

## When to avoid
- you need general-purpose photo editing beyond ID photos
- you require cloud-scale high-throughput image processing
- you need smart clothing replacement, which is still pending

## Facets
- artifact type: library
- maturity: active
- function: image-processing, machine-learning, computer-vision, api-framework, cli
- domain: image-processing, artificial-intelligence, computer-vision, photography
- platform: python, cross-platform, self-hosted
- tags: id-photo, matting, background-removal, gradio, fastapi, passport-photo, cpu-inference, docker

## Member repositories
- Zeyi-Lin/HivisionIDPhotos (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:31.717594+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:58:06.598781+00:00, confidence not recorded.
  - readme: https://github.com/Zeyi-Lin/HivisionIDPhotos (fetched 2026-08-28T04:11:31.717594+00:00, sha bd97161a9550)
  - homepage: https://modelscope.cn/studios/SwanLab/HivisionIDPhotos (fetched 2026-08-29T07:56:45.917462+00:00, sha 726e74de98b2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
