https://github.com/randomgamingdev/mldelunayimagetriangulator
A short, simple, and sweet ML script that triangulates images by use of Delunay Triangulation.
https://github.com/randomgamingdev/mldelunayimagetriangulator
console console-app console-application console-tool draw drawing imag-manipulation image image-conversion image-convert image-converter image-processing jpeg line lines machine-learning ml png python
Last synced: 4 days ago
JSON representation
A short, simple, and sweet ML script that triangulates images by use of Delunay Triangulation.
- Host: GitHub
- URL: https://github.com/randomgamingdev/mldelunayimagetriangulator
- Owner: RandomGamingDev
- License: mit
- Created: 2022-06-01T13:22:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-20T15:20:18.000Z (almost 3 years ago)
- Last Synced: 2025-06-12T03:49:31.773Z (12 days ago)
- Topics: console, console-app, console-application, console-tool, draw, drawing, imag-manipulation, image, image-conversion, image-convert, image-converter, image-processing, jpeg, line, lines, machine-learning, ml, png, python
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MLDelunayImageTriangulator
A short, simple, and sweet ML script that triangulates images by use of Delunay Triangulation.
This is a python script that converts an image into a series of triangles
How to use the script:
Start by entering the settings that you want in settings.txt
The 1st line is for the # of instances
The 2nd line is for the # of triangles per instance
The 3rd line is for the # of iterations
Then after confirming the settings enter the filepath to the image relative to the executable or as a direct filepath
Then confirm that that's the image that you want
Wait for the final result in output.jpeg!
This is for Python 3.9 and requires the following dependencies:
pillow,
numpy,
scipy,
matplotlib
It takes a while for the image to generate but you can watch it learn not only in output.jpeg but also on the graph.
This application isn't multithreaded.
Hope you enjoy!
If output.jpeg isn't generating try changing the image type.