Use genetic algorithm to fit circles to image.
Inspired by GA_engine.
usage: transform.py [-h] [--max_loop MAX_LOOP] [--save_pre_loop SAVE_PRE_LOOP]
[--mutate_rate MUTATE_RATE] [--mutate_speed MUTATE_SPEED]
[--circle_nums CIRCLE_NUMS]
target output
You can write your class which implement mutate, _mutate, as_image method to use new shape to fit the image.
The speed of python to processing image is poor, use pypy if you want quicker fit.
MIT
Special thanks to GA_engine.







