Team project where we implemented and experimented with image compression algorithms. Lossless and lossy compression with vector quantization, mean-removal vector quantization, LBG algorithm, differential encoding and Golomb coding.
- Create virtual environment with
virtualenv .venv
. - Activate venv with
source .venv/bin/activate
. - Install packages with
pip install -r requirements.txt
. - Activate git hooks with
pre-commit install
. - Install
vector_quantization
as a package withpip install -e .
. This will allow doing imports likefrom vector_quantization import .
. - Go to
vector_quantization
subfolder. - Launch application with
python main.py
.
IMPORTANT: on commiting black formatter and flake8 will check code. To enable this checking run command
pre-commit install
.
Run tests with pytest
in root
- Install LaTeX https://www.latex-project.org/get/
- Edit
docs/template.tex
with your editor, for example TeXMaker
Install Live Share extension for VSCode..