ce

circle-evolution

Evolutionary Art Using Circles in Python

Showing:

Popularity

Downloads/wk

0

GitHub Stars

276

Maintenance

Last Commit

5mos ago

Contributors

5

Package

Dependencies

0

License

Categories

Readme



Contributions - Welcome GitHub stars GitHub forks License

Evolutionary Art Using Circles

Getting Started

Installation

You can download the latest release using pip.

pip install circle-evolution

Usage

Command Line

You can easily start training an image by calling circle_evolution from your terminal

Example:

circle_evolution "Mona Lisa 64.jpg" --size 1 --genes 256 --max-generations 50000
ParameterDescription
--sizeImage size {1: (64, 64), 2: (128, 128), 3: (256, 256)}. Default: 2
--genesNumber of circle to fit. Default: 256
--max-generationsNumber of generations to run. Default: 500,000

Python Example Script

from circle_evolution import evolution
from circle_evolution import helpers
import numpy as np
import cv2

target = helpers.load_target_image("Mona Lisa 64.jpg", size=(64, 64))
e = evolution.Evolution(target, genes=256)

e.evolve(max_generation=50000)

helpers.show_image(e.specie.phenotype)

np.savetxt("Checkpoint.txt", e.specie.genotype)
cv2.imwrite("OuputImage.jpg", e.specie.phenotype)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Contributors

Ahmed Khalf ahmedkhalf

Guilherme de Amorim guimorg

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100