https://github.com/tdh8316/triangler
:triangular_ruler: Convert images to Low-Poly art using Delaunay triangulation.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.1%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
:triangular_ruler: Convert images to Low-Poly art using Delaunay triangulation.
Basic Info
Statistics
- Stars: 97
- Watchers: 2
- Forks: 14
- Open Issues: 2
- Releases: 2
Topics
Metadata Files
README.md
Overview
📐 Convert images to Low-Poly art using Delaunay triangulation.

Table of contents
Installation
You need Python 3.10 or higher.
I strongly recommend to use virtual environment such as Anaconda. You can download Anaconda here.
Follow manual below to create conda virtual environment for Triangler with the Anaconda.
cmd
$ conda create -n triangler python=3.12
$ activate triangler
(triangler)$ python -m pip install git+https://github.com/tdh8316/triangler/
Usage
``` (triangler)$ python -m triangler -h positional arguments: input Input image
options: -h, --help show this help message and exit -o OUTPUT, --output OUTPUT Output image name -p POINTS, --points POINTS Number of sample points to use -e {canny,entropy,sobel}, --edge-detector {canny,entropy,sobel} Edge detection algorithm -s {poissondisk,threshold}, --sampler {poissondisk,threshold} Point sampling algorithm -r {centroid,mean}, --renderer {centroid,mean} Color polygon rendering algorithm -l, --reduce Reduce the result image size to match the input image -V, --version show program's version number and exit -d, --debug Enable debug mode ```
API
You can also use Triangler as a library.
```python import triangler
triangler.convert( img="INPUTIMAGE.jpg", savepath="OUTPUT_IMAGE.jpg", ) ```
Sample
Effect of the number of points
| Original Image | 5000 Points |
|:--------------------------------------------:|:--------------------------------------------:|
|
|
|
| 1000 Points | 500 Points |
|
|
|
More samples
| Original | Triangler |
|-----------------------------|---------------------------------------|
|
|
|
License
Licensed under the MIT License.
Copyright 2024 Donghyeok Tak
Credits
Some algorithms, including the Poisson disk sampling, are based on pmaldonado/PyTri.
Owner
- Name: Donghyeok Tak
- Login: tdh8316
- Kind: user
- Location: Republic of Korea
- Company: Kwangwoon University
- Repositories: 20
- Profile: https://github.com/tdh8316
GitHub Events
Total
- Issues event: 1
- Watch event: 8
- Issue comment event: 1
- Pull request event: 1
- Fork event: 2
Last Year
- Issues event: 1
- Watch event: 8
- Issue comment event: 1
- Pull request event: 1
- Fork event: 2
Committers
Last synced: 12 months ago
Top Committers
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 7
- Total pull requests: 7
- Average time to close issues: 6 months
- Average time to close pull requests: 7 months
- Total issue authors: 6
- Total pull request authors: 5
- Average comments per issue: 1.29
- Average comments per pull request: 0.29
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 4
Past Year
- Issues: 1
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- tdh8316 (2)
- acsr (1)
- geotheory (1)
- Tetsujinfr (1)
- WASasquatch (1)
- djkcyl (1)
Pull Request Authors
- imgbot[bot] (3)
- codacy-badger (1)
- wyapx (1)
- llbbl (1)
- dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 14 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 4
- Total maintainers: 1
pypi.org: triangler-patch
triangler dependencies version patch
- Homepage: https://github.com/tdh8316/triangler
- Documentation: https://triangler-patch.readthedocs.io/
- License: mit
-
Latest release: 0.1.3
published about 4 years ago
Rankings
Maintainers (1)
Dependencies
- imageio ==2.19.3
- numba ==0.55.2
- numpy ==1.22.4
- scikit-image ==0.19.3
- scipy ==1.8.1