Welcome to the Passport Photo Maker App! This application allows you to easily create passport photos using AI-powered image processing techniques.
- Upload an image and process it to meet passport photo specifications.
- Download the processed passport photo.
- Responsive user interface with Bootstrap styling.
To serve the app locally using Uvicorn, run
uvicorn app:app --port 8000
you can access the app at http://localhost:8000.
- opencv-python
- fastapi
- mediapipe
- imutils
- uvicorn
- rembg
All models are downloaded and saved in the user home folder in the .u2net directory.
The available models are:
- u2net (download, source): A pre-trained model for general use cases.
- u2netp (download, source): A lightweight version of u2net model.
- u2net_human_seg (download, source): A pre-trained model for human segmentation.
- u2net_cloth_seg (download, source): A pre-trained model for Cloths Parsing from human portrait. Here clothes are parsed into 3 category: Upper body, Lower body and Full body.
- silueta (download, source): Same as u2net but the size is reduced to 43Mb.
- isnet-general-use (download, source): A new pre-trained model for general use cases.
- isnet-anime (download, source): A high-accuracy segmentation for anime character.
- sam (download encoder, download decoder, source): A pre-trained model for any use cases.
Copyright (c) 2020-present Daniel Gatis
Licensed under MIT License