Skip to main content

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


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.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

bgr2grey-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file bgr2grey-1.0.0.tar.gz.

File metadata

  • Download URL: bgr2grey-1.0.0.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

Hashes for bgr2grey-1.0.0.tar.gz
Algorithm Hash digest
SHA256 174888f9167dc1b8f37a8bae5ec50e487661de40fea15c0825c969184fc17a54
MD5 8dd1022fafedbdae864806cf76c8dfcf
BLAKE2b-256 fdac623a7bd61fde650e9c7dbad27994631bd86c89c705059a8bccef664a9bf1

See more details on using hashes here.

File details

Details for the file bgr2grey-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bgr2grey-1.0.0-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

Hashes for bgr2grey-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7336c8b6b8adcc73ce698a161e9856fef3aff59a6f8b9a32549d33e7d377b8f
MD5 dd0ef70d921eddee770f5a41aa6ef7ad
BLAKE2b-256 ea1f98a19da44ed454a47b4f279d273c8393a47480e646fcd45912d40ed6b5e3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page