Skip to main content

Count Blood Cells

Project description

Count Blood Cells

Count red, white blood cells to detect various diseases such as blood cancer (leukemia), lower red blood cells count (anemia)...

Sample

Table of Contents

Project Structure

cbc/
|-- data/
|   |-- plt/...
|   |-- rbc/...
|   |-- wbc/...
|
|-- docs/...
|
|-- models/...
|
|-- output/
|   |-- plt/...
|   |-- rbc/...
|   |-- wbc/...
|
|-- AUTHORS
|-- cbc
|-- LICENSE
|-- README.md
|-- TODO.md
|-- requirements.txt 
|-- setup.py

Install

  • Install straight from PyPI using pip:
$ pip install cbc

Usage

Please read cbc --help before using it -o flag is optional (defaults to out/ directory)

  • Count blood cells (-r for red and -w for white):
$ cbc -r <blood-cell-image>
  • Predict red blood cells (use Circle Hough Tranform and Connected Component Labeling with otsu's thresholding):
$ cbc -r -CHT -CCL -t <blood-cell-image>
  • Predict white blood cells (with custom output directory):
$ cbc -w <blood-cell-image> -o outdir/

Develop

  • Download the project:
$ git clone https://github.com/nemo256/cbc
$ cd cbc 
  • Activate virtual environment:
$ python -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
  • Now just adapt the code to your needs and then run using the command:
$ chmod +x cbc
$ ./cbc

License

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

cbc-1.0.4.tar.gz (22.0 MB view details)

Uploaded Source

Built Distribution

cbc-1.0.4-py3-none-any.whl (22.0 MB view details)

Uploaded Python 3

File details

Details for the file cbc-1.0.4.tar.gz.

File metadata

  • Download URL: cbc-1.0.4.tar.gz
  • Upload date:
  • Size: 22.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for cbc-1.0.4.tar.gz
Algorithm Hash digest
SHA256 f4d0f9993f80cd3da102579e736fd51b6a4a1f68d9b678f90765cbeddd1fe957
MD5 36242d9230831d0a3827f717a3269411
BLAKE2b-256 7f714c8c6385c93a98cd2ce5fd8984275e191fce78de2bc2d54a1642fe9ab682

See more details on using hashes here.

File details

Details for the file cbc-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: cbc-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 22.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for cbc-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c62af71132b9b9b515df3734fad8f8e0cf70e9c771df5e4362954f8d0329fc12
MD5 c577321d02670277b79cd75ff7bc0375
BLAKE2b-256 1840929d63c0e53f7fd093569f5b7beab63ed92636644b792abadc87c4681667

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