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)...

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.1.0.tar.gz (22.0 MB view hashes)

Uploaded Source

Built Distribution

cbc-1.1.0-py3-none-any.whl (22.0 MB view hashes)

Uploaded Python 3

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