Skip to content
/ cbc Public

Count red, white blood cells to detect various diseases.

License

Notifications You must be signed in to change notification settings

nemo256/cbc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cbc

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

GitHub Repo stars Maintenance License

Table of Contents

Project Structure 📁

cbc/
├── docs/...
│
├── models/
│   ├── plt.h5
│   ├── rbc.h5
│   └── wbc.h5
├── AUTHORS
├── cbc
├── LICENSE
├── README.md
├── requirements.txt
├── setup.py
└── test.jpg

Install 🔨

  • Install straight from PyPI using pip:
pip install cbc

Use 🚀

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 📑

About

Count red, white blood cells to detect various diseases.

Topics

Resources

License

Stars

Watchers

Forks