imPixelate


NameimPixelate JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/Mamdasn/imPixelate
SummaryThis snippet of code attempts to pixelate images.
upload_time2021-05-02 15:08:45
maintainer
docs_urlNone
authormamdasn s
requires_python
license
keywords python histogram pixelate pixelate image
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# ImPixelate
This snippet of code attempts to pixelate images.

# Usage
```python
import cv2, os
import numpy as np
from imPixelate import pix

img_fullname = "assets/lotus.jpg"
img_name, img_ext = os.path.splitext(img_fullname)

img = cv2.imread(img_fullname)
img_out = img.copy()

[h, w, d] = img.shape
for i in range(d):
    img_out[:, :, i] = pix(img[:, :, i].copy())
cv2.imwrite(f'{img_name}-pixelate{img_ext}', img_out)
```

# Output
This is a sample image:  
![lotus.jpg](https://raw.githubusercontent.com/Mamdasn/imPixelate/main/assets/lotus.jpg "lotus.jpg")  
This is the sample image pixelated:  
![lotus-pixelate.jpg](https://raw.githubusercontent.com/Mamdasn/imPixelate/main/assets/lotus-pixelate.jpg "lotus-pixelate.jpg")  



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Mamdasn/imPixelate",
    "name": "imPixelate",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,histogram,Pixelate,Pixelate Image",
    "author": "mamdasn s",
    "author_email": "<mamdassn@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/f5/df/ee1d61eb372dc61eb2cd5b5dd62fe5c723a664144085acec6e1bcb722ade/imPixelate-0.0.2.tar.gz",
    "platform": "",
    "description": "\n# ImPixelate\nThis snippet of code attempts to pixelate images.\n\n# Usage\n```python\nimport cv2, os\nimport numpy as np\nfrom imPixelate import pix\n\nimg_fullname = \"assets/lotus.jpg\"\nimg_name, img_ext = os.path.splitext(img_fullname)\n\nimg = cv2.imread(img_fullname)\nimg_out = img.copy()\n\n[h, w, d] = img.shape\nfor i in range(d):\n    img_out[:, :, i] = pix(img[:, :, i].copy())\ncv2.imwrite(f'{img_name}-pixelate{img_ext}', img_out)\n```\n\n# Output\nThis is a sample image:  \n![lotus.jpg](https://raw.githubusercontent.com/Mamdasn/imPixelate/main/assets/lotus.jpg \"lotus.jpg\")  \nThis is the sample image pixelated:  \n![lotus-pixelate.jpg](https://raw.githubusercontent.com/Mamdasn/imPixelate/main/assets/lotus-pixelate.jpg \"lotus-pixelate.jpg\")  \n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "This snippet of code attempts to pixelate images.",
    "version": "0.0.2",
    "split_keywords": [
        "python",
        "histogram",
        "pixelate",
        "pixelate image"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "35419948821a338ca96a7c8740429ee1",
                "sha256": "62749047a2b97bfa80fd0745d8abd27defa571e58b7a8e73e9f81abe4f1990c9"
            },
            "downloads": -1,
            "filename": "imPixelate-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "35419948821a338ca96a7c8740429ee1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2823,
            "upload_time": "2021-05-02T15:08:34",
            "upload_time_iso_8601": "2021-05-02T15:08:34.187639Z",
            "url": "https://files.pythonhosted.org/packages/50/bb/e7e7275c63c01ebfd7021fb77ea99abbb8843a6d3f3e9f7d744d6ae99880/imPixelate-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "9da7b8880641d797e40d0f48ca9f1ed0",
                "sha256": "bfec338fa42c0068849fa752685c2e44cfa2fb50a8f389f8754f72db4476b749"
            },
            "downloads": -1,
            "filename": "imPixelate-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "9da7b8880641d797e40d0f48ca9f1ed0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 732794,
            "upload_time": "2021-05-02T15:08:45",
            "upload_time_iso_8601": "2021-05-02T15:08:45.345960Z",
            "url": "https://files.pythonhosted.org/packages/f5/df/ee1d61eb372dc61eb2cd5b5dd62fe5c723a664144085acec6e1bcb722ade/imPixelate-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-05-02 15:08:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "Mamdasn",
    "error": "Could not fetch GitHub repository",
    "lcname": "impixelate"
}
        
Elapsed time: 0.24973s