Coder Social home page Coder Social logo

abdulkadrtr / drawingwithgeneticalgorithm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 104 KB

In this project, an attempt is made to mimic a visual image using genetic algorithms.

Python 100.00%
genetic-algorithm genetic-algorithm-python image-creator image-drawer

drawingwithgeneticalgorithm's Introduction

Genetic Algorithm for Visual Imitation

This project explores the visual imitation capabilities of genetic algorithms. The application takes a black and white image as input and attempts to recreate it using a genetic algorithm.

The algorithm initially distributes a uniform points randomly in an m x m area. Each gene used by the genetic algorithm is composed of a combination of these points. The image is imitated by connecting these points and drawing paths.

The project provides a dynamic visualization screen that allows you to visually see the best result of each generation.

The parameters of the algorithm are as follows:

k: Determines the number of points used to create the image.

Initial Population Size: The size of the initial population is provided as a parameter.

Number of Generations: The number of generations is provided as a parameter.

Number of Best Individuals: The number of best individuals to be selected from the initial population is provided as a parameter.

Mutation Rate: The mutation rate is provided as a parameter.

This project is a fascinating exploration of how genetic algorithms can be used in the field of image processing and computer graphics. It demonstrates the power of evolutionary computation in tackling complex problems and generating creative solutions.

Examples

IN OUT
in1 out1
K 80
Initial Population Size 1000
Number of Generations 1000
Number of Best Individuals 100
Mutation Rate 0.5
IN OUT
in2 out2
K 80
Initial Population Size 1000
Number of Generations 1000
Number of Best Individuals 100
Mutation Rate 0.5
IN OUT
in3 out3
K 80
Initial Population Size 1000
Number of Generations 1000
Number of Best Individuals 100
Mutation Rate 0.5
IN OUT
in4 out4
K 80
Initial Population Size 1000
Number of Generations 1000
Number of Best Individuals 100
Mutation Rate 0.5

drawingwithgeneticalgorithm's People

Contributors

abdulkadrtr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.