{"id":20371315,"url":"https://github.com/reshalfahsi/ggb","last_synced_at":"2025-06-14T08:06:36.539Z","repository":{"id":49269110,"uuid":"218470644","full_name":"reshalfahsi/ggb","owner":"reshalfahsi","description":"Implementation of GGB color space","archived":false,"fork":false,"pushed_at":"2024-02-23T03:24:13.000Z","size":1171,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T12:53:15.682Z","etag":null,"topics":["ggb-color","image-processing","medical-image-processing","opencv","pillow","python","skimage"],"latest_commit_sha":null,"homepage":"https://ggb.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reshalfahsi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-30T07:46:10.000Z","updated_at":"2021-10-06T13:21:39.000Z","dependencies_parsed_at":"2025-04-12T06:37:43.084Z","dependency_job_id":null,"html_url":"https://github.com/reshalfahsi/ggb","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/reshalfahsi/ggb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshalfahsi%2Fggb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshalfahsi%2Fggb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshalfahsi%2Fggb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshalfahsi%2Fggb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reshalfahsi","download_url":"https://codeload.github.com/reshalfahsi/ggb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshalfahsi%2Fggb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259782947,"owners_count":22910295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ggb-color","image-processing","medical-image-processing","opencv","pillow","python","skimage"],"created_at":"2024-11-15T01:07:25.759Z","updated_at":"2025-06-14T08:06:36.506Z","avatar_url":"https://github.com/reshalfahsi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GGB Color Space\n\n[![PyPI](https://badge.fury.io/py/ggb.svg)](https://badge.fury.io/py/ggb)\n[![license](https://img.shields.io/pypi/l/ggb.svg)](https://github.com/reshalfahsi/ggb/blob/master/LICENSE)\n[![Travis CI](https://api.travis-ci.com/reshalfahsi/ggb.svg?branch=master)](https://travis-ci.com/github/reshalfahsi/ggb)\n[![docker](https://img.shields.io/docker/pulls/reshalfahsi/ggb)](https://hub.docker.com/r/reshalfahsi/ggb)\n[![codecov](https://codecov.io/github/reshalfahsi/ggb/coverage.svg?branch=master\u0026precision=2)](https://codecov.io/gh/reshalfahsi/ggb)\n\n\nThis 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](https://link.springer.com/content/pdf/10.1007%2Fs10916-018-0962-1.pdf).\n\n\n## Installation\n\n### Install GGB\n\nThis package could be installed via [PyPI](https://pypi.org/project/ggb/).\n\n    pip3 install ggb\n\nor manually:\n\n    python3 setup.py install\n\n\n### Building Docker Image\n\n`Dockerfile` is also provided in this project. To build the image:\n\n```bash\ncd docker/\nbash docker.build.sh\n```\n\n\nor pull it directly from [Docker Hub](https://hub.docker.com/r/reshalfahsi/ggb):\n\n    docker pull reshalfahsi/ggb\n\n\n### Building the Documentation\n\nThe documentations to this package could be built using [Sphinx](www.sphinx-doc.org).\n\n```bash\ncd docs/\npip3 install -r requirements.txt\nmake html\n```\n\nThe HTML pages are in docs/build/html.\n\n\n## Quick Demo\n\nThis package supports various computer vision libraries such as OpenCV and PIL. Complete examples for these computer vision libraries are provided in [here](https://github.com/reshalfahsi/ggb/tree/master/examples). For the short example in Python3:\n\n\n```python\n# import the package and its necessary components\nfrom ggb import GGB, ColorSpace\n\n# we are using OpenCV\nimport cv2\n\nimport urllib.request as urllib\nimport numpy as np\n\n# load image from internet\nreq = urllib.urlopen('https://github.com/reshalfahsi/GGB/raw/master/docs/img/leukocytes.png')\narr = np.asarray(bytearray(req.read()), dtype=np.uint8)\nimg = cv2.imdecode(arr, -1)\n    \n# convert to GGB Color\nggb_image = GGB(image=img, input_color=ColorSpace.BGR).process()\n\n# show the result    \nggb_image.show()\n\n# save the image to OpenCV format\nimg = ggb_image.write()\n```\n\nThis package also could be run through CLI:\n\n    ggb /path/to/image --output /path/to/output\n\n\n## Result\n\n### Leukocytes\n![alt text](https://github.com/reshalfahsi/GGB/raw/master/docs/img/GGB_RGB_LEUKOCYTES.jpg)\n\n### Fundus\n![alt text](https://github.com/reshalfahsi/GGB/raw/master/docs/img/GGB_RGB_FUNDUS.jpg)\n\n### Car\n![alt text](https://github.com/reshalfahsi/GGB/raw/master/docs/img/GGB_RGB_TESLA.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshalfahsi%2Fggb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freshalfahsi%2Fggb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshalfahsi%2Fggb/lists"}