This repository contains a Streamlit web application for bone fracture detection using YOLOv8. Follow the instructions below to run the application.
- Python 3.9
- Git
-
Clone the repository to your local machine:
git clone https://github.com/imadarsh9686/bone_fracture_detection.git
-
Navigate to the project directory:
cd your-repo
-
Create a conda environment (optional but recommended):
conda create --name your_env_name python=3.9.18
-
Activate the conda environment:
conda activate your_env_name
-
Install the required Python packages:
pip install -r requirements.txt
-
Make sure your virtual environment is activated.
-
Run the following command to start the Streamlit app:
streamlit run app.py
-
Open your web browser and go to http://localhost:8501.
-
Upload an X-ray image and click the "Detect" button to view the fracture detection results.
-
Follow steps 1-4 from the "Detecting Fractures in a Single Image" section.
-
Navigate to the "Image Folder Detection" page in the Streamlit app.
-
Enter the path of the folder containing X-ray images.
-
Click the "Detect in Folder" button to generate a CSV file with detection results.