Metadata-Version: 2.1
Name: trivector
Version: 1.1.1
Summary: Convert an image into a SVG vector image composed of triangular sectors.
Home-page: https://github.com/nklapste/trivector
Author: Nathan Klapstein
Author-email: nklapste@ualberta.ca
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Multimedia :: Graphics :: Editors :: Vector-Based
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Requires-Dist: svgwrite (<2.0.0,>=1.1.12)
Requires-Dist: opencv-python (<4.0.0.0,>=3.4.1.15)
Requires-Dist: numpy (<2.0.0,>=1.14.3)
Requires-Dist: progressbar2 (<4.0.0,>=3.37.1)
Provides-Extra: docs
Requires-Dist: sphinx (<2.0.0,>=1.7.5) ; extra == 'docs'
Requires-Dist: sphinx-rtd-theme (<1.0.0,>=0.3.1) ; extra == 'docs'
Requires-Dist: sphinx-autodoc-typehints (<2.0.0,>=1.3.0) ; extra == 'docs'
Requires-Dist: sphinx-argparse (<1.0.0,>=0.2.2) ; extra == 'docs'

*********
trivector
*********

.. image:: https://travis-ci.com/nklapste/trivector.svg?branch=master
    :target: https://travis-ci.com/nklapste/trivector
    :alt: Build Status

.. image:: https://readthedocs.org/projects/trivector/badge/?version=latest
    :target: https://trivector.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

Description
===========

Convert an image into a SVG vector image composed of triangular sectors.

Installation
============

trivector can be installed from PyPI with the following command:

.. code-block:: shell

    pip install trivector

Usage
=====

To get help on using trivector type the following command:

.. code-block:: shell

    trivector --help

Example
-------

Below is a simple PNG raster image to trivectorize!

.. image:: https://raw.githubusercontent.com/nklapste/trivector/master/examples/meface_before.png
    :width: 250
    :alt: Before trivector

Running ``trivector meface_before.png meface_after.svg 20`` yields the
following trivectorized SVG image at ``meface_after.svg``:

.. image:: https://raw.githubusercontent.com/nklapste/trivector/master/examples/meface_after.svg?sanitize=true
    :width: 250
    :alt: After trivector


