talira

HivisionIDPhotos

Lightweight AI tool that makes ID photos offline on a CPU

open sourceApache-2.0self-hostablefree

HivisionIDPhotos is a lightweight AI tool for making ID photos: it recognises the photo, cuts out the person with a matting model that runs offline on a CPU, and produces standard ID photos in many size specifications (custom sizes in millimetres too) and print layouts (six-inch, five-inch, A4, 3R, 4R), with custom background colours and face rotation alignment. It runs as a Gradio web demo, an API service or in Docker, and community projects build WeChat mini programs and a C++ version on it.

Problems it solves

  • make a passport photo from a selfie offline
  • generate ID photos with a white or blue background
  • self-host an ID photo API

Features

  • offline matting on CPU
  • standard ID photo sizes and custom sizes
  • print layouts (six-inch, A4, 3R, 4R)
  • custom background colours
  • Gradio demo, API and Docker