Git Product home page Git Product logo

plotter-art's Introduction

Polarizer

Polarizer is a python script that transforms an image into a single line scribble that can be consumed by a Polargraph or Plotter machine. It works by taking advantage of dithering and QuadTrees. First we use the built in dithering function from Pillow and then run a basic QuadTree generation on the generated points to come up with groupings.

TODO

  • Implement a TSP solver based on the generated quadtrees
  • Transform the generated TSP points into a scribble type line where a loop will be put around each cell in the QuadTree
  • Convert that generated line into an SVG to be input to the Polargraph

Usage

The first argument passed in is the image, and the second is the total number of points you want inside each quadtree. You can run the script using the following command

$ python3 polarizer.py zebra.jpg 10

Converted image using the Polarizer script

plotter-art's People

Contributors

dinubs avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar  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.