https://github.com/tdh8316/triangler

:triangular_ruler: Convert images to Low-Poly art using Delaunay triangulation.

https://github.com/tdh8316/triangler

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

delaunay delaunay-triangulation image-processing numba numpy python triangulation

Keywords from Contributors

hack bruteforce
Last synced: 6 months ago · JSON representation

Repository

:triangular_ruler: Convert images to Low-Poly art using Delaunay triangulation.

Basic Info
  • Host: GitHub
  • Owner: tdh8316
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 25.5 MB
Statistics
  • Stars: 97
  • Watchers: 2
  • Forks: 14
  • Open Issues: 2
  • Releases: 2
Topics
delaunay delaunay-triangulation image-processing numba numpy python triangulation
Created about 6 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

Works on my machine

Python Code style: black License: MIT Stargazers Twitter URL

Overview

📐 Convert images to Low-Poly art using Delaunay triangulation.

sample

Table of contents

  1. Installation
  2. Usage
  3. Use as a library
  4. Sample
  5. License

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 | |:--------------------------------------------:|:--------------------------------------------:| | sample | sample | | 1000 Points | 500 Points | | sample | sample |

More samples

| Original | Triangler | |-----------------------------|---------------------------------------| | sample | sample |

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

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

All Time
  • Total Commits: 150
  • Total Committers: 3
  • Avg Commits per committer: 50.0
  • Development Distribution Score (DDS): 0.033
Past Year
  • Commits: 15
  • Committers: 1
  • Avg Commits per committer: 15.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
탁동혁 t****6@n****m 145
ImgBotApp I****p@g****m 3
wyapx a****1@o****m 2
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
bug (1) dependencies (1)
Pull Request Labels
dependencies (1)

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

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 14 Last month
Rankings
Stargazers count: 7.8%
Dependent packages count: 10.1%
Forks count: 10.2%
Average: 20.9%
Dependent repos count: 21.5%
Downloads: 55.1%
Maintainers (1)
Last synced: 6 months ago

Dependencies

requirements.txt pypi
  • imageio ==2.19.3
  • numba ==0.55.2
  • numpy ==1.22.4
  • scikit-image ==0.19.3
  • scipy ==1.8.1
setup.py pypi