Developed a web app for matrimonial use-case where picture of two persons can be uploaded to see how they will look if stood next to each other. The app takes images of two person with their height as input and outputs a final image which contains cutouts of both person placed side by side on a separate background image. The app first crops out persons from their respective original images, resizes them according to the persons height and merges them side by side on a default background image
📌 Landing Page
📌 Home Page
📌 Waiting Page
This project implements Mask_RCNN_TF2 based on tensorflow 2.0, keras 2.2.4 and above. This project uses Mask_RCNN for extracting person mask and bounding boxes for cropping and creating png image. Resizes person's height with respect to another person's height and pastes both the images side by side using Open_CV and overlays the image on a deafult background with the help of cvzone library.
Mask RCNN is a deep neural network aimed to solve instance segmentation problem in machine learning or computer vision. The model generates bounding boxes and segmentation masks for each instance of an object in the image. It's based on Feature Pyramid Network (FPN) and a ResNet101 backbone. Learn more about Mask_RCNN on this page: https://github.com/ahmedfgad/Mask-RCNN-TF2
- Drag and drop images
- preview and save images
- Support JPG, PNG file fromats
- Image optimization, automatic image resizing, cropping, and fixes EXIF orientation.
-
Clone this repository
https://github.com/divyanshkumarworks/Blogging-Portal.git
-
Create Virtual Environment
python3 -m venv venv
-
Activate the environment
source /venv/bin/activate
-
Install dependencies
pip3 install -r requirements.txt
-
The pre-trained weights of the Mask R-CNN model is based on the COCO dataset. The weights can be downloaded from this link: https://github.com/matterport/Mask_RCNN/releases/download/v2.0/mask_rcnn_coco.h5. After downloading the weights, place it inside the root directory.
The COCO dataset has 80 classes. There is an additional class for the background named BG. Thus, the total number of classes is 81. The classes names are listed in the
CLASS_NAMES
list. DO NOT CHANGE THE ORDER OF THE CLASSES. -
Run the website from the root directory
python manage.py runserver