Giter Club home page Giter Club logo

ganeshkavhar / pencil-sketch-using-open-cv-in-python Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 5 KB

Open CV (Open Source Computer Vision) is a very powerful library of programming functions mainly aimed at real-time computer vision. Created by Intel in 1999, it is written in C++ (we will be using the Python bindings). In this brief code, we will see how one can change from: photo to cartoon effect and photo to pencil sketch effect

Home Page: https://about.me/ganeshkavhar

Jupyter Notebook 100.00%
python data-science machine-learning algorithms algorithms-and-data-structures opencv package packages-manager ganeshkavhar ganeshkavharpythontutorials

pencil-sketch-using-open-cv-in-python's Introduction

Pencil-Sketch-Using-Open-CV-In-Python

Open CV (Open Source Computer Vision) is a very powerful library of programming functions mainly aimed at real-time computer vision. Created by Intel in 1999, it is written in C++ (we will be using the Python bindings). In this brief code, we will see how one can change from: photo to cartoon effect and photo to pencil sketch effect

Create a cartoon effect

Stylization aims to produce digital imagery with a wide variety of effects not focused on photorealism. Stylization can abstract regions of low contrast while preserving, or enhancing, high-contrast features.

Parameters

src Input 8-bit 3-channel image.

dst Output image with the same size and type as src.

sigma_s Range between 0 to 200.

sigma_r Range between 0 to 1.

Note

sigma_s controls how much the image is smoothed - the larger its value, the more smoothed the image gets, but it's also slower to compute.

sigma_r is important if you want to preserve edges while smoothing the image. Small sigma_r results in only very similar colors to be averaged (i.e. smoothed), while colors that differ much will stay intact.

Example

Basic Image

image

After Pencil Effect

image

pencil-sketch-using-open-cv-in-python's People

Contributors

ganeshkavhar avatar

Watchers

 avatar  avatar  avatar

Forkers

carji

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.