Raster Vectorization
Install the png++ package.
Install CUDA packages and add the Path variable to Environment Variables in the run configuration.
Create a venv:
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
Build open3d (Arch only):
in 3rdparty/libjpeg-turbo/libjpeg-turbo.cmake
replace
$ set(JPEG_TURBO_LIB_DIR ${INSTALL_DIR}/${Open3D_INSTALL_LIB_DIR})
with
$ set(JPEG_TURBO_LIB_DIR ${INSTALL_DIR}/lib64)
Example path variable:
Path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\extras\CUPTI\lib64\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\bin\;D:\Program Files\cuda\bin\;
See src/util/settings.py for a list of command-line arguments.
$ python3 src/main.py -i img/lab1.jpg -o img/out2.svg
TODO: remove old instructions and code
$ make run_edge ARGS="img/emoji.png img/out.png"
(venv) $ python src/sampling/sample.py -i img/test.jpg(venv) $ python src/util/mesh_to_svg.py