An open API service indexing awesome lists of open source software.

https://github.com/1jaffry1/detect-brain-tumors-opencv2

A simple program to detect brain tumors from images using image processing
https://github.com/1jaffry1/detect-brain-tumors-opencv2

detection image-processing opencv python python3 tumor-detection vision

Last synced: 4 months ago
JSON representation

A simple program to detect brain tumors from images using image processing

Awesome Lists containing this project

README

        

# Detect-brain-tumors-openCV2
This program can detect brain tumors from images using image processing

# How to run
1. Install dependencies: NumPy and CV2:
`pip install numpy`
`pip install opencv-python`

2. Run the `detect-tumor.py` file after setting the src_path and the target path in `detect-tumor.py`. You dont have to change anything in `setup.py` or `contrast.py`.

Example outputs:
---

![7](https://github.com/user-attachments/assets/d2474f86-7e70-497d-8dad-4be077098bf2)
![6](https://github.com/user-attachments/assets/12dfdb8c-4e62-4a94-b9a8-215c341031ee)
![5](https://github.com/user-attachments/assets/ff62a598-04e4-4038-84c4-a1829f8ed313)

This program uses basic image processing techniques to identify potential brain tumors in brain images. It uses a ratio of white pixels to identify such tumors.