Giter VIP home page Giter VIP logo

pencil-python's Introduction

pencil-python:

##Author:

##Introduction:

A python version implementation of Combining Sketch and Tone for Pencil Drawing Production

I think it's interesting when I was introduced the paper.

So even I know little about the area of image processing, I try to read the paper and find some open source implementation to help me understand.

I still have some confusion about the method, but finally I use python to reproduce the result.

This project is developed and tested on Mac OSX 10.10.5 with python 2.7.11 and Ubuntu 14.04 with python 2.7.6

Usage

preparation

clone this repository

git clone [email protected]:duduainankai/pencil-python.git
cd pencil-python

dependency

The packages you need to install:

Scipy
numpy
Pillow

PS.

If you want to try the color pencil draw method, you need to install opencv in your environment, if just pencil draw wanted, the packages above is enough.

To be honst, how to correctly install opencv is still a question for me. When I search it on google, someone just told me that use homebrew(or apt-get) is OK, but others said it's a wrong way and list many steps should be gone through.

I really got confused so at first I try my best not to use the opencv functions. But when I got to the last step(changing color from Ycbcr to RGB), I did all I can but still failed. Finally, I simplely use homebrew or apt-get to install, and fortunately it works well.

run the program

  • python draw.py --p -img img/sign.png
  • there should be a floder named output where you can find the productions
  • python draw.py -h
  • for more arguments and explaination

Productions

Here are some original picture and productions of the method.

Happy Birthday Arsene Wenger

Come on You Gunners!

@林导

@董小彬

You can visit here to see more productions.

Reference

[1] Lu C, Xu L, Jia J. Combining sketch and tone for pencil drawing production[C]

[2] PencilDrawing By fumin

[3] PencilDrawing By cancat1992

Todos

  • maybe an online version pencil drawing service

  • figure out deeper insight of the paper and maybe refactor the code

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.