A computer vision library for omnidirectional(360°) cameras. This package is divided into two parts:
Basic functions for inter-conversion of different types of mappings associated with omni directional cameras, virtual reality and 360° videos, like cubemap, spherical projections, perspective projection and equirectangular projection.
Software applications like 360° video viewer, fisheye image generator with variable intrinsic properties, GUI to determine fisheye camera paraeters.
Objectives of the OmniCV library
This library has been developed with the following obectives:
Quick and easy to use API to encourage and enhance the research in areas using omni directional cameras.
To support real time applications.
Provide extensions in python as well as C++ as they are the languages used by researchers.
GUI to control focus, distortion and view orientation to generate different kinds of distortion effects and get images with different properties.
GUI to determine fisheye camera parameters like aperture and fisheye radius for further conversions.
GUI to view an equirectangular image in 360° format with control trackbars to change FOV(Field Of View) and viewing angles. (You can download any 360° video from youtube and view it using the GUI and enjoy the 360° viewing experience).
Installation guide
A custom make file has been written which provides quick and easy options for installing and testing the library.
bash
git clone https://github.com/kaustubh-sadekar/OmniCV-Lib
cd OmniCV-Lib/omnicv/
# To build c++ as well as python files
make build-all
# To build only python files
make build-python
# To build only c++ files
make build-cpp
Installing OmniCV in a virtual environment using pipenv. Pipfile and Pipfile.lock files have been provided. Copy both the files to the present working directory. Then simply run the following commands to setup OmniCV in a local environment.
bash
pipenv install
pipenv shell
Running Tests
bash
cd OmniCV-Lib/omnicv/
# To test only python extension of the project
make test-py
# To test only c++ extension of the project
make test-cpp
# To test python as well as c++ extension of the project
make test-all
ROS Nodes
To build the ROS nodes follow these steps:
Create a folder named omnicv in your ros workspace where you have your other ros packages
bash
roscd src/
mkdir omnicv
Add the contents present inside ros_files folder to the omnicv folder created in the previous step.
Build the workspace.
bash
cp OmniCV/ros_files/ [PATH TO ROS WORKSPACE]/src/omnicv/
roscd
catkin_make