/Computer-Vision-Utils

Repository for storing computer vision projects

Primary LanguagePython

Computer-Vision-Utils

Repository for storing the following computer vision projects :

1. Object removal with seam carving

Script used for removing the selected object from input image by using seam carving on both horizontal/vertical axes.

alt image

Usage

# Create virtual environment
python3 -m venv venv

# Activate the environment 
source venv/bin/activate

# Install requirements 
pip install -r requirements.txt

# Remove object from picture
python seam.py --ref <image-path>

This script can also be used for content-aware image resizing.

2. Mosaic-Creator

Script that can be used to create photographic mosaic pictures based on euclidean distance between two images. The dataset used for this is Cifar10 and there are 10 categories of images available.

alt image

Usage

# Create virtual environment
python3 -m venv venv

# Activate the environment 
source venv/bin/activate

# Install requirements 
pip install -r requirements.txt

# Download and extract cifra images
./download_cifar.sh

# Create mosaic from picture
python mosaic.py --ref <image-path>

Requirements

numpy==1.14.4
opencv-python==3.4.1.15
mxnet==1.2.0
matplotlib==2.2.2