This code demonstrates a simple method to transfer images from Processing (the generator) to Python (the evaluator) and get in return fitness or evaluation scores.
This can be useful for instante to implement an evolutionary system to evolve images or any other kind of solutions in the visual domain.
How to test this code?
- Download this repository
- Run the generator by opening the Processing sketch located at
/generator
- You will see a window with images and the message "Waiting fitness"
- Run the evaluator by executing the Python script
evaluator.py
- You will see fitness values displayed below the images
Now that you tested this code, go ahead the change the generator and evaluator code!