cv2pencil


Namecv2pencil JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/cv2pencil
SummaryConverts images to pencil sketches
upload_time2022-12-29 21:32:12
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords cv2 numpy pencil filter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
<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"/>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/cv2pencil",
    "name": "cv2pencil",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "cv2,numpy,pencil,filter",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e7/a0/8f1b16aa6e493ad35027093419cbda1e48f5db7dc1be3d57584524a327ed/cv2pencil-0.10.tar.gz",
    "platform": null,
    "description": "\n<h2>Converts images to pencil sketches</h2>\n\n\n\n\n\n```python\n\n\n\n$pip install cv2pencil\n\n\n\nfrom cv2pencil import get_pencil_drawing\n\n# Allowed image formats: url/path/buffer/base64/PIL/np\n\n# save_diff / save_norm are optional\n\na, b = get_pencil_drawing(\n\n    r\"https://raw.githubusercontent.com/hansalemaos/screenshots/main/merg1.png\",\n\n    dilate=(9, 9),\n\n    blur=7,\n\n    save_diff=\"f:\\\\pencildrawing\\\\diff.png\",\n\n    save_norm=\"f:\\\\pencildrawing\\\\norm.png\",\n\n)\n\n\n\n\n\n```\n\n\n\n<img src=\"https://raw.githubusercontent.com/hansalemaos/screenshots/main/merg1.png\"/>\n\n\n\n\n\n<img src=\"https://raw.githubusercontent.com/hansalemaos/screenshots/main/diff.png\"/>\n\n\n\n\n\n<img src=\"https://raw.githubusercontent.com/hansalemaos/screenshots/main/norm.png\"/>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Converts images to pencil sketches",
    "version": "0.10",
    "split_keywords": [
        "cv2",
        "numpy",
        "pencil",
        "filter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "482e45ffd398f16c4491252220b75f29",
                "sha256": "bc34378b68da29788e7211287f5c8ea8c16fe64be5eef073afca9420960e2281"
            },
            "downloads": -1,
            "filename": "cv2pencil-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "482e45ffd398f16c4491252220b75f29",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4746,
            "upload_time": "2022-12-29T21:32:10",
            "upload_time_iso_8601": "2022-12-29T21:32:10.710477Z",
            "url": "https://files.pythonhosted.org/packages/2b/f0/f5b13c7c10ee303072a6145f59b6497821e4a5bff3e291af86d672a1165d/cv2pencil-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "a8bcd883a2714fec1164ce2f9b9e5c7f",
                "sha256": "7e9ffd36aed7967fe571a5618ee483995afb5b4086aa646f27806b4a7c3e0e90"
            },
            "downloads": -1,
            "filename": "cv2pencil-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "a8bcd883a2714fec1164ce2f9b9e5c7f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3533,
            "upload_time": "2022-12-29T21:32:12",
            "upload_time_iso_8601": "2022-12-29T21:32:12.327458Z",
            "url": "https://files.pythonhosted.org/packages/e7/a0/8f1b16aa6e493ad35027093419cbda1e48f5db7dc1be3d57584524a327ed/cv2pencil-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-29 21:32:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "cv2pencil",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "cv2pencil"
}
        
Elapsed time: 0.03697s