Giter VIP home page Giter VIP logo

pltpics's Introduction

PltPics

A simple script that draws picture into matplotlib.pyplot using bezier curves.

Special Thanks To

kevinjycui for https://github.com/kevinjycui/DesmosBezierRenderer

Installation

Linux

  1. Git clone this repository
  2. sudo apt-get install ffmpeg
  3. sudo apt update
  4. sudo apt install git python3-dev python3-pip build-essential libagg-dev libpotrace-dev pkg-config
  5. pip install -r requirements.txt

Mac

  1. Git clone this repository
  2. brew install ffmpeg (or brew like manager)
  3. brew install potrace
  4. brew install pkg-config
  5. brew install libagg
  6. pip install -r requirements.txt

Using Program

ipynb_version

  1. Visit directory ipynb_version
  2. jupyter notebook
  3. ./ipynb_version/DrawImage.ipynb is for drawing images.
  4. ./ipynb_version/ProcessVideo.ipynb is for processing videos.

python_version

  1. Visit directory python_version
  2. python run_me.py
  3. For arguments, please check here

Features

Photo to Graph

My profile image converted

New Project

Video to Graphs

Noot Noot Meme converted

nzzz.mp4

How is this possible?

  1. Extract frames of video by ffmpeg
  2. Convert image to vector images using pypotrace.
  3. Represent those contours using Bezier curves.
  4. Use matplotlib.pyplot to draw Bezier curves using some features.
  5. Save those pyplots into images.
  6. Use ffmpeg to turn those images into video.

pltpics's People

Contributors

isu-kim avatar

Stargazers

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