Skip to content
A genetic algorithm toy project for drawing
Python Jupyter Notebook
Branch: master
Clone or download

Latest commit

unknown
Latest commit d4e0930 Jun 5, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
brushes/watercolor Add files via upload Jun 5, 2020
imgs Add files via upload Jun 5, 2020
GeneticDrawing.ipynb check if out folder exists Jun 5, 2020
LICENSE Create LICENSE Jun 5, 2020
README.md Update README.md Jun 5, 2020
example.jpg Add files via upload Jun 5, 2020
genetic_drawing.py Add files via upload Jun 5, 2020
mask.jpg Add files via upload Jun 5, 2020

README.md

Genetic Drawing

This is a toy project I did around 2017 for imitating a drawing process given a target image (inspired by many examples of genetic drawing on the internet, and this was my take on it, mostly as an exercise).

Due to a popular request, it is now opensource 🙂

Examples of generated images:

It also supports user-created sampling masks, in case you'd like to specify regions where more brushstrokes are needed (for ex, to allocate more finer details)

Python

you would need the following python 3 libraries:

  • opencv 3.4.1
  • numpy 1.16.2
  • matplotlib 3.0.3
  • and Jupyter Notebook

To start, open the GeneticDrawing.ipynb and run the example code

You can’t perform that action at this time.