Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wendelhime/go-kluge
Implementation (or adaptation) of Espen Kluge Portrait algorithm
https://github.com/wendelhime/go-kluge
Last synced: 3 days ago
JSON representation
Implementation (or adaptation) of Espen Kluge Portrait algorithm
- Host: GitHub
- URL: https://github.com/wendelhime/go-kluge
- Owner: WendelHime
- License: mit
- Created: 2021-02-27T16:00:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-02-27T17:33:39.000Z (over 3 years ago)
- Last Synced: 2024-06-19T23:14:16.520Z (5 months ago)
- Language: Go
- Homepage:
- Size: 27.6 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-kluge
This repository is an adaptation from [christiankastner/klugen-portrait](https://github.com/christiankastner/klugen-portrait), which is a implementation of [Espen Kluge Alternatives](https://www.espen.xyz/alternatives-new-portrait-series-2019). Basically the algorithm generate random points on image and connect them with lines based on a minimum distance (provided by user, in pixels).
# Installing
Install the command with go:
```bash
go install github.com/WendelHime/go-kluge/cmd/kluge
```# Usage
```bash
kluge -h
Usage of kluge: kluge -filepath images/ada_in_blank.png -threshold 0.35 -minDist 50 -output images/ada_output.png
-filepath string
the filepath for a segmented image (default "/home/wotan/Pictures/ada_in_blank.png")
-minDist float
minimum distance of points (default 70)
-output string
output filepath (default "./output.png")
-threshold float
a threshold for random creation of points, the value must be in the range 0, 100. (default 0.25)
```# Examples
Command:
```bash
kluge -filepath images/ada_in_blank.png -threshold 0.35 -minDist 50 -output images/ada_output.png
```| original image | output |
| :-- | :-- |
| | |
| | |