Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/esimov/legoizer
A tool to convert images to Lego bricks.
https://github.com/esimov/legoizer
golang image-legoizer image-processing lego
Last synced: 17 days ago
JSON representation
A tool to convert images to Lego bricks.
- Host: GitHub
- URL: https://github.com/esimov/legoizer
- Owner: esimov
- License: mit
- Created: 2017-06-08T14:25:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T09:58:42.000Z (6 months ago)
- Last Synced: 2024-10-16T01:10:48.422Z (28 days ago)
- Topics: golang, image-legoizer, image-processing, lego
- Language: Go
- Homepage:
- Size: 150 KB
- Stars: 80
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# legoizer
**Legoizer** is a simple tool to generate lego-like images taking as input an image and converting it to lego bricks. This process consists of two steps:
1. The image is converted to it's quantified representation to reduce the number of colors.
2. The bricks are generated based on the curently processed cell color compared to it's neighboring cells average color.### Install
`$ go get -u github.com/esimov/legoizer`
### Run
Type `$ legoizer --help` to get the currently supported commands.```
Usage of legoizer:
-colors int
Number of colors (default 128)
-in string
Input path
-out string
Output path
-size int
Lego size
```| Source image | Legoized image
|:--:|:--:|
| | |
| | |
| | |### Discalimer
This is a simple toy, so it does not have any commercial usage.
## License
This software is distributed under the MIT license found in the LICENSE file.