- Python 3.6.x or later
- OpenCV 3.x
Note: Make sure that Python is compiled with framework enabled when installing on macOS systems.
This project requires a working installation of OpenCV 3. Please install this first before installing the project dependencies.
Dependencies of this project can be installed via PIP.
Follow these steps to install the setup the application:
-
Run the command
pyvenv venv
to setup a Python 3 virtual environment. -
Activate the virtual environment by running
source venv/bin/activate
-
Install the project dependencies by running
pip install -r requirements.txt
-
Locate your OpenCV Python bindings and type the command
echo <Python OpenCV bindings path> >> ./venv/lib/<python version>/site-packages/opencv3.pth
.Where:
-
<Python CV bindings path>
: is the site-packages folder inside the OpenCV installation. Please make sure you select the appropriate version of bindings that matches the Python version declared in the requirements. -
<python version>
: is the version under yourvenv
virtual environment folder
-
You can run the python scripts by invoking python <script>.py
or ./<script>.py
.
For getting the output using the OpenCV color maps, run python color-map.py
or ./color-map.py
.
For getting the output using the RGB transformation, run python rgb-transformation.py
or ./rgb-transformation.py
.
MIT