Tw1ddle / geometrize

:white_square_button: Geometrize is a desktop app that geometrizes images into geometric primitives
https://www.geometrize.co.uk
Other
1.91k stars 127 forks source link

Add shape limit option #7

Closed Pichu0102 closed 5 years ago

Pichu0102 commented 6 years ago

An option to stop once a certain number of shapes has been reached would be nice.

Tw1ddle commented 6 years ago

Will add that soon. Probably by adding an scriptable stop condition, with a "stop if shape count >= n" as one of the preset scripts.

Tw1ddle commented 5 years ago

Hey, this is implemented! There's now a "Stop Conditions" tab next to the "Task Settings" and "Exporters" tabs when geometrizing an image.

This tab has a shape limit option and way to script custom stop conditions, will be in the latest automated builds soon: https://github.com/Tw1ddle/geometrize-installer#development-builds

Looks like this:

rovo79 commented 2 years ago

What is the difference between the Max Shape Count and the Custom Stop Condition?

Tw1ddle commented 2 years ago

In theory you could write other conditions for stopping the process, like if you reach a certain similarity to the desired image. I haven't documented how to do that yet though (or even tried it myself).

rovo79 commented 2 years ago

I just allowed mine to up to 29,000+ shapes on a 1,200x 675 target image, when it was done, I almost couldn't tell the difference because it had pretty much recreated the image :)