project
HivisionIDPhotos - Free and open-source AI ID photo maker
HivisionIDPhoto is a lightweight AI-powered ID photo maker that intelligently recognizes and cuts out backgrounds, quickly generating ID photos that meet various specifications. It supports custom background colors and sizes, and will introduce beauty filters and more in the future...
What is HivisionID Photos?
HivisionIDPhoto is a lightweight AI-powered ID photo maker that intelligently recognizes and cuts out backgrounds to quickly generate ID photos that meet various specifications. It supports custom background colors and sizes, and will add beautification and intelligent formal attire conversion features in the future. Users can easily set up a local service via Docker. Source code and an online demo are available on GitHub.
Key features of HivisionID Photos
- Lightweight cutoutBased on AI technology, it accurately identifies people in photos and separates them from the background to generate ID photos with transparent backgrounds.
- Generate multiple sizes of ID photosIt supports generating ID photos in various standard sizes, such as 1-inch, 2-inch, and 6-inch layout photos, to meet the needs of different usage scenarios.
- Smart change of formal wear(Coming Soon): Future versions will allow users to upload regular photos, and AI will automatically dress them in formal attire, simplifying the ID photo shooting process.
- Beauty function(Coming Soon): We will provide beauty enhancement to ensure that users' ID photos meet the standards while also showing their best appearance.
- Supports Docker deploymentIt allows users to quickly set up and run ID photo generation services locally or on a server.
- API ServiceProvides API interfaces to support developer integration and automation of the ID photo generation process.
HivisionIDPhotos project address
- GitHub repository:https://github.com/Zeyi-Lin/HivisionIDPhotos
- Online Demo Experience Address:https://swanhub.co/ZeYiLin/HivisionIDPhotos/demo
How to use HivisionIDPhotos
- Installation Environment:Make sure Python 3.7 or later is installed on your computer.Use Anaconda or Miniconda to manage your Python environment.
- Get code:Clone the HivisionIDPhoto codebase to your local machine via Github.
- Install dependencies:Install the required Python dependencies.
- Download pre-trained model:Download the pre-trained model file from GitHub or other provided links and place it in the root directory of your project.
- Running Gradio Demo:run
python app.pyThis command starts a local web service and will provide an interactive web page.Accessing the displayed local URL is usually...http://127.0.0.1:7860We started using the web interface to create ID photos. - Deploy API services:If you need to call the ID photo generation service via API, you can run:
python deploy_api.pyAn API server will be launched, which can generate ID photos by sending HTTP requests. - Using API:Use the provided Python script or write your own script to send requests to the API server. The command will...
test.jpgAs input, generate a standard-sized ID photo and save it as...idphoto.png. - Docker deployment:If you prefer to use Docker, you can run the following command in the project root directory to build and run Docker containers.
Application scenarios of HivisionIDPhotos
- Personal use:Individuals can create their own official passport photos at home that meet various official requirements, such as passports, visas, ID cards, and driver's licenses.
- Corporate Human Resources:Corporate human resources departments can use tools to quickly create and update work badges for new or existing employees.
- Educational institutions:Schools and universities can use it to make student IDs, faculty IDs, and other campus cards.
- Online service providers:Websites and applications can integrate HivisionIDPhoto's API to provide online ID photo generation services.
- Photography Studio:Photographers can use this tool to improve their work efficiency, quickly process and provide compliant ID photos to clients.