# bgr2grey
bgr2grey is a Python package that provides a function for converting RGB images to grayscale.
## Installation
You can install `bgr2grey` using pip:
```bash
pip install bgr2grey
```
## Usage
```bash
import cv2
from bgr2grey import rgb_to_gray
# Load an RGB image
image = cv2.imread('path/to/your/image.jpg')
# Convert the image to grayscale
gray_image = rgb_to_gray(image)
# Display the original and grayscale images
cv2.imshow('Original Image', image)
cv2.imshow('Grayscale Image', gray_image)
cv2.waitKey(0)
cv2.destroyAllWindows()
```
## License
This package is distributed under the MIT License. See the [LICENSE](LICENSE) file for more information.
Raw data
{
"_id": null,
"home_page": "https://github.com/divagarn/bgr2grey.git",
"name": "bgr2grey",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Divagar N",
"author_email": "divagar2kn@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ee/37/cdd64d2fe6598899e8ebfa0c6661908a0e5765682ebad601ff14590e7de1/bgr2grey-1.0.1.tar.gz",
"platform": null,
"description": "# bgr2grey\n\nbgr2grey is a Python package that provides a function for converting RGB images to grayscale.\n\n## Installation\n\nYou can install `bgr2grey` using pip:\n\n```bash\npip install bgr2grey\n```\n## Usage\n\n```bash\nimport cv2\nfrom bgr2grey import rgb_to_gray\n\n# Load an RGB image\nimage = cv2.imread('path/to/your/image.jpg')\n\n# Convert the image to grayscale\ngray_image = rgb_to_gray(image)\n\n# Display the original and grayscale images\ncv2.imshow('Original Image', image)\ncv2.imshow('Grayscale Image', gray_image)\ncv2.waitKey(0)\ncv2.destroyAllWindows()\n\n```\n\n## License\n\nThis package is distributed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A package for converting RGB images to grayscale",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/divagarn/bgr2grey.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f68a9a9090510a0684ef965c703838eae6f62a65ee5755ea206272fb00ae09ee",
"md5": "6ec7eb0cc648351941c8402bcec98c76",
"sha256": "38e7d6a3c47c89bc2bd89358464d863dec93fb36dc3aece7b0452b2ad5003216"
},
"downloads": -1,
"filename": "bgr2grey-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6ec7eb0cc648351941c8402bcec98c76",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3212,
"upload_time": "2023-07-06T19:23:24",
"upload_time_iso_8601": "2023-07-06T19:23:24.885006Z",
"url": "https://files.pythonhosted.org/packages/f6/8a/9a9090510a0684ef965c703838eae6f62a65ee5755ea206272fb00ae09ee/bgr2grey-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ee37cdd64d2fe6598899e8ebfa0c6661908a0e5765682ebad601ff14590e7de1",
"md5": "c25567bf312e5cf60583ab23da11bb79",
"sha256": "4f5ceac1c13515753e85f8e3d7f69e111b67db0a8bdeab5fd7fa63dcb54da5cf"
},
"downloads": -1,
"filename": "bgr2grey-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "c25567bf312e5cf60583ab23da11bb79",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2723,
"upload_time": "2023-07-06T19:23:26",
"upload_time_iso_8601": "2023-07-06T19:23:26.271768Z",
"url": "https://files.pythonhosted.org/packages/ee/37/cdd64d2fe6598899e8ebfa0c6661908a0e5765682ebad601ff14590e7de1/bgr2grey-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-06 19:23:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "divagarn",
"github_project": "bgr2grey",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "bgr2grey"
}