HivisionIDPhotos turns casual portraits into compliant ID photos using offline matting, sizing, and layout tools. It offers a local web demo, Python CLI, and deployable API backends.
Overview
HivisionIDPhotos is an AI-driven toolkit for making standard ID photos from everyday snapshots. It chains recognition, portrait matting, and formatting steps so varied shooting conditions can still yield usable official images.
Matting can run fully offline on CPU with lightweight models, and you can switch matting or face-detection weights when you need different speed or accuracy. The workflow outputs sized ID photos, high-resolution transparent PNGs, background fills, and six-inch print layouts, with optional beauty adjustment and planned formal-wear swapping.
You can work through a Gradio-based local web UI, call Python inference modes for matting or layout-only tasks, or stand up a FastAPI-style backend. Docker images and compose setups support running the demo or API on your own hardware, with optional GPU acceleration for selected models.
Preset dimensions and background colors are data-driven, and print-layout tabs support common paper sizes. Environment variables tune runtime behavior such as memory-heavy fast-reuse mode and default demo language.
Key features
- CPU-friendly offline portrait matting
- Configurable ID photo and print layouts
- Gradio local web interface
- Python CLI inference modes
- HTTP API deployment
- Docker and compose packaging
- Optional face-detection model choice
- Beauty adjustment on API and demo
Use cases
- Emergency ID photo preparation
- Batch layout for photo-shop printing
- Portrait cutout without cloud upload
- Self-hosted ID photo microservice