pranayganvir/blood-cell-detection
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
๐ฉธ Blood Cell Detection App ๐ฌ
๐ Overview
The Blood Cell Detection App is a Streamlit-based application that allows users to upload an image and detect different types of blood cells (๐ฅ RBCs, ๐ต WBCs, and ๐ก Platelets) using a YOLO model. The detected image is displayed with bounding boxes and a table showing the count of each cell type.
The model was trained on the BCCD dataset, with annotations converted to TXT format using Roboflow for YOLO compatibility. The app processes images, draws bounding boxes around detected cells, and displays a count table, providing an efficient tool for blood cell analysis. ๐.
โจ Features
โ Upload an image for blood cell detection โ Draw bounding boxes around detected ๐ฅ RBCs, ๐ต WBCs, and ๐ก Platelets โ Display a count table of detected cells โ Option to download the processed image
โ๏ธ Installation
To run the app locally, follow these steps:
1๏ธโฃ Clone the Repository
https://github.com/pranayganvir/blood-cell-detection-BCCD.git
cd blood-cell-detection-BCCD2๏ธโฃ Install Dependencies
Make sure you have Python installed. Then, install the required packages:
pip install -r requirements.txt3๏ธโฃ Run the Application
streamlit run app.py๐ Requirements
- ๐ Python 3.7+
- ๐ Streamlit
- ๐ท OpenCV
- ๐ข NumPy
- ๐ Pandas
- ๐ผ๏ธ PIL (Pillow)
- ๐ ultralytics (for YOLO model)
๐ Usage
1๏ธโฃ Upload an image containing blood cells. 2๏ธโฃ The model processes the image and detects ๐ฅ RBCs, ๐ต WBCs, and ๐ก Platelets. 3๏ธโฃ The detected image is displayed with bounding boxes. 4๏ธโฃ A table shows the count of each type of blood cell. 5๏ธโฃ Optionally, download the processed image.
๐ฆ Model Details
The application uses a YOLO model (best.pt) trained on the YOLO v10p framework with the BCCD dataset. Ensure the model file is available in the project directory.
- ๐ Dataset: BCCD Dataset
- ๐ Annotations Converted: Annotations were converted into the TXT format using Roboflow for compatibility with YOLO.
๐ Acknowledgments
- ๐ Dataset: BCCD Dataset
- ๐ค Model: YOLO v10p
- ๐ฅ๏ธ Framework: Streamlit
- ๐ ๏ธ Annotation Conversion: Roboflow
๐ License
This project is open-source and available under the MIT License.
Front UI Interface

Result

Count Table

Downloaded Image
.jpg)
