Skip to content

This repository uses rembg library and mediapipe to create passport size photos of an input image.

License

Notifications You must be signed in to change notification settings

OmarHexa/PassportMaker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passport Photo Maker App

Welcome to the Passport Photo Maker App! This application allows you to easily create passport photos using AI-powered image processing techniques.

Alt Text

Features

  • Upload an image and process it to meet passport photo specifications.
  • Download the processed passport photo.
  • Responsive user interface with Bootstrap styling.

Serving the App with Uvicorn

To serve the app locally using Uvicorn, run

uvicorn app:app --port 8000

you can access the app at http://localhost:8000.

Requirements

  • opencv-python
  • fastapi
  • mediapipe
  • imutils
  • uvicorn
  • rembg

Models

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.

License

Copyright (c) 2020-present Daniel Gatis

Licensed under MIT License

About

This repository uses rembg library and mediapipe to create passport size photos of an input image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.4%
  • Inno Setup 3.8%
  • HTML 3.6%
  • Other 0.2%