This project aims to reproduce a given picture using a genetic algorithm. The algorithm will generate a population of polygons and will iteratively improve the population by applying genetic operators such as crossover and mutation. The final goal is to reproduce the target picture with the highest possible similarity.
- Clone the repository
Copy codegit clone https://github.com/yourusername/picture-reproduction-genetic-algorithm
- Run the main script
Copy codepython evolution.py --help pip install -r requirements.txt
0 | 1000 | 2000 | 2978 |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Original | 2978 generation |
---|---|
![]() |
![]() |
Please note that depending on the complexity of the target picture and the number of polygons, the computation may take a long time. It is recommended to start with a small number of polygons and gradually increase it.