Skip to content

EA makes art from reference project for IAI course

Notifications You must be signed in to change notification settings

Tumypmyp/EA_makes_art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Report for EA_makes_art project

Prepared by Gainullin Timur

To use download or clone this repository and execute:

java -jar IAI.jar

For this project firstly I needed to research for the answer to "What is an art and non-art?" question. As I know there is no legitimate criteria was found. Therefore I had to choose from different theories. There are Expressionists, Emotionalists, Formalists, Organicists, Intuitionists, Voluntarists, etc. For EA I need a function that will define criteria if a given image is art or not-art. Formalists ideas are most suitable for that purpose. For Formalists, an artist should use elements such as colour, line, shape, texture. Elements should come together using certain rules of composition, colour theory, etc.

So for one of the criteria, I choose acceptance of the image with colour theory. The program has some basic colour palettes. All of them strict with relations of main colours in the colour circle. Colours in one palette can be Monochromatic, Complementary, Analogous, Triadic, Tetradic, etc. The program calculates to which palette the image corresponding and how much. From that, it gives points to the image.

Final art should look like the given picture, so artwork gets the most points for similarity to the picture. To make images look more pleasant I decided to add functionality for extra points if colours on image smoothly changing and if it has a nice composition. I tried finding most valuable spots in the picture via most contrast, brightest or darkest squares in int. But this checking composition in the image didn't work well, so I don't use it.

There are examples of how EA changed given pictures using only points for Color Theory:

In the GitHub repository, you can see the output folder where images sorted by points the program gave them. As additional information, the most suitable colour palette is written with image points too.

There is contest image that I remembered to send to late

After some optimizations works much faster, there are the results:

In order to choose the best constants for EA which are:

  • Population size
  • Number of generations
  • Mutation Rate
  • Mutation percentage on population
  • Crossover percentage on population I tested different ones and filled following table.
Pop size Gen num Avg survived Time Score
30 249 15 10 963
100 100 50 10 996
100 208 50 20 1017
100 317 50 30 1030
300 33 150 10 976
300 63 150 20 1004
300 21 50 10 981
300 42 50 20 1015
300 62 50 30 1030
300 100 50 50 1044
300 40 200 10 973
300 17 75 10 960
200 32 66 10 970
150 47 110 10 942
150 93 110 20 970
150 280 110 60 1020
120 70 60 10 985
130 60 70 10 982
130 106 70 20 995

I think my program did make art. In Formalists way of view, it is not perfect but can be estimated as one.

used matirials:

Complimentary colors

Java Class helping convert from RGB to HSL and backwards

philosophical writing about art and non-art

color wheel theory

About

EA makes art from reference project for IAI course

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages