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 --helpbefore 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
- Please read cbc/LICENSE
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cbc-1.1.0-py3-none-any.whl
(22.0 MB
view details)
File details
Details for the file cbc-1.1.0.tar.gz.
File metadata
- Download URL: cbc-1.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
045e4d6767f0e5e8c1f9488c79a8f295206b5937bc5d0870efde43c40e25c7b1
|
|
| MD5 |
8560fcc3b35e65007c7a18eb6620f521
|
|
| BLAKE2b-256 |
3d4ef147acbbb74dd584cfa281b7a268ffd6e829d5f106c7525ecc4640b73d2c
|
File details
Details for the file cbc-1.1.0-py3-none-any.whl.
File metadata
- Download URL: cbc-1.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1911c600aad30ebb4ffa1e6aa1db85170ba1d7dd5a9262a6eeb8a4fdfd78a63
|
|
| MD5 |
e5dce1c1daa384097d374aec0408a267
|
|
| BLAKE2b-256 |
0f9d75200f897470160b5efaefeb88827e91e49c7c48996042fc3c0dd36e3812
|