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
Install GGB
This package could be installed via PyPI.
pip3 install ggb
or manually:
python3 setup.py install
Building Docker Image
Dockerfile is also provided in this project. To build the image:
cd docker/
bash docker.build.sh
or pull it directly from Docker Hub:
docker pull reshalfahsi/ggb
Building the Documentation
The documentations to this package could be built using Sphinx.
cd docs/
pip3 install -r requirements.txt
make html
The HTML pages are in docs/build/html.
Quick Demo
This package supports various computer vision libraries such as OpenCV and PIL. Complete examples for these computer vision libraries are 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()
This package also could be run through CLI:
ggb /path/to/image --output /path/to/output
Result
Leukocytes
Fundus
Car
Metadata
Release files for ggb 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ggb-1.1.5.tar.gz | 7.2 kB | Without provenance | Details for ggb-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ggb-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for ggb-1.1.5-py3-none-any.whl |
Total release size: 17.8 kB
Release files / ggb-1.1.5.tar.gz
| Download URL | ggb-1.1.5.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3840e7a52b9682f4f7a01a51f4bd7cd9d0b3872fcab5638cca5664b7c3d36f21
|
|
BLAKE2b-256 checksum How to use checksums |
c329bc3089503b6a4576ec31369e1a47c2f117a556cf986827b152d44f532a57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9
|
Release files / ggb-1.1.5-py3-none-any.whl
| Download URL | ggb-1.1.5-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4163fd4bdcbf0250123a1ee0c1ce99c1b6170e52fc0bc89a4493fe03da48a18e
|
|
BLAKE2b-256 checksum How to use checksums |
ba61e4a8745c081e851266157f369b10025f6c45f5dc4695b03e6a7bd8411932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9
|
Security for ggb 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.