GGB Color Space in Python
Project description
GGB Color Space
This package is implementation of GGB color space from Development of a Robust Algorithm for Detection of Nuclei and Classification of White Blood Cells in Peripheral Blood Smear Image.
Installation
This package could be installed via PyPI.
pip3 install ggb
Quick Demo
This package supports various computer vision libraries such as OpenCV and PIL. Complete example for these computer vision libraries provided in here. For the short example in Python3:
# import the package and its necessary components
from ggb import GGB, ColorSpace
# we are using OpenCV
import cv2
import urllib.request as urllib
import numpy as np
# load image from internet
req = urllib.urlopen('https://github.com/reshalfahsi/GGB/raw/master/docs/img/leukocytes.png')
arr = np.asarray(bytearray(req.read()), dtype=np.uint8)
img = cv2.imdecode(arr, -1)
# convert to GGB Color
ggb_image = GGB(image=img, input_color=ColorSpace.BGR).process()
# show the result
ggb_image.show()
# save the image to OpenCV format
img = ggb_image.write()
Result
Leukocytes
Fundus
Car
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
ggb-1.1.0.tar.gz
(5.2 kB
view details)
Built Distribution
ggb-1.1.0-py3-none-any.whl
(7.7 kB
view details)
File details
Details for the file ggb-1.1.0.tar.gz
.
File metadata
- Download URL: ggb-1.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2e840ebcecfab85c0f83675ec1fd10a023872fea680b398b2aeebc3091e8919 |
|
MD5 | 1e8e14e8098546abbb5ceee1020fa9e2 |
|
BLAKE2b-256 | e6d274c12c99db56ae2dfaec26d7f64cdb2796a5ef559be80a697dd050f445a1 |
File details
Details for the file ggb-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: ggb-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0b4ab1b3e98057ec27fd1d6afc456c46498fb4f65cd7891d0c15283af347175 |
|
MD5 | 13e68caafa16af59ca21592e92cf4119 |
|
BLAKE2b-256 | 0b3056fe8ae87e465166f54d5784acebd8949cb95307066d14efe3bea6dd0a4c |