Metadata-Version: 2.1
Name: cv2pencil
Version: 0.10
Summary: Converts images to pencil sketches
Home-page: https://github.com/hansalemaos/cv2pencil
Author: Johannes Fischer
Author-email: <aulasparticularesdealemaosp@gmail.com>
License: MIT
Keywords: cv2,numpy,pencil,filter
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE.rst
Requires-Dist: a-cv-imwrite-imread-plus
Requires-Dist: numpy
Requires-Dist: opencv-python


<h2>Converts images to pencil sketches</h2>





```python



$pip install cv2pencil



from cv2pencil import get_pencil_drawing

# Allowed image formats: url/path/buffer/base64/PIL/np

# save_diff / save_norm are optional

a, b = get_pencil_drawing(

    r"https://raw.githubusercontent.com/hansalemaos/screenshots/main/merg1.png",

    dilate=(9, 9),

    blur=7,

    save_diff="f:\\pencildrawing\\diff.png",

    save_norm="f:\\pencildrawing\\norm.png",

)





```



<img src="https://raw.githubusercontent.com/hansalemaos/screenshots/main/merg1.png"/>





<img src="https://raw.githubusercontent.com/hansalemaos/screenshots/main/diff.png"/>





<img src="https://raw.githubusercontent.com/hansalemaos/screenshots/main/norm.png"/>
