A package for converting RGB images to grayscale
Project description
bgr2grey
bgr2grey is a Python package that provides a function for converting RGB images to grayscale.
Installation
You can install bgr2grey using pip:
pip install bgr2grey
Usage
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 file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bgr2grey-1.0.1.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bgr2grey-1.0.1.tar.gz.
File metadata
- Download URL: bgr2grey-1.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f5ceac1c13515753e85f8e3d7f69e111b67db0a8bdeab5fd7fa63dcb54da5cf
|
|
| MD5 |
c25567bf312e5cf60583ab23da11bb79
|
|
| BLAKE2b-256 |
ee37cdd64d2fe6598899e8ebfa0c6661908a0e5765682ebad601ff14590e7de1
|
File details
Details for the file bgr2grey-1.0.1-py3-none-any.whl.
File metadata
- Download URL: bgr2grey-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38e7d6a3c47c89bc2bd89358464d863dec93fb36dc3aece7b0452b2ad5003216
|
|
| MD5 |
6ec7eb0cc648351941c8402bcec98c76
|
|
| BLAKE2b-256 |
f68a9a9090510a0684ef965c703838eae6f62a65ee5755ea206272fb00ae09ee
|