This is a project I learn about Reinforcement learning especially How Genetic Algorithm work.
- Create a random DNA list as population. In this project DNA is a list of brush stroke
- Measure the fitness of image to target image. (The measure is simple by perform subtract between target image and generated image)
- Generate (Evolve) new generation of DNA by crossover and mutation. If child has less error than parent so replace parent (Try with 180 stage and 20 generation each stage)
you would need the following python 3 libraries:
- opencv
- numpy
- matplotlib
- and Jupyter Notebook
To start, start with GeneticDrawing.ipynb