The project contains sample codes to select ROIs in images and videos
Python 2.7 Pip Virtualenv OpenCV Numpy
Python 2.7 is available by default
For other prerequisites follow the instructions:
- Install Pip
sudo apt-get update
sudo apt-get install python-pip - Install virtualenv
sudo pip install virtualenv - Setup virtual enviornment
Download source files in to a folder (use git clone or download ZIP)
cd path/to/downloaded/folder
virtualenv venv - Activate venv
source venv/bin/activate - Add packages
pip install -r requirements.txt
python image_crop.py
- It will take an image from images folder and save the cropped image as cropped.jpg in to same folder
python video_crop.py
- It will take an sample video from video folder and save the cropped video as cropped.avi in to same folder
- Shashank Sharma