Brain Tumor Detection

Vandita Chapadia
3 min readOct 28, 2021

A brain tumor is an abnormal growth of tissue in the brain or central spine that can disrupt proper brain function. It is the abnormal growth of tissues in brain. If the tumor originates in the brain, it is called a primary brain tumor. Primary brain tumors can be benign or malignant. Benign brain tumors are not cancerous.

Requirements

  • Opencv
  • Tensorflow
  • Tkinter
  • PIL
  • Numpy

This a GUI based Brain tumor detection system that GUI part was implemented in Tkinter and that system browse that image from your device that gave options like detect tumor and view the region of tumor. After browsing the image using Opencv and PIL to convert it into the grayscale format to understand the region of brain and that all are in represented in a form of numpy array to process of detection by Tensorflow model whether the MRI of brain have tumor or not.

Outputs

The tumor region can be viewed using Image processing methods applied through opencv. Image segmentation using marker-based watershed segmentation algorithm is used to view the tumor region. A watershed is a transformation defined on a grayscale image. We label the region which we are sure of being the foreground or object with one color(or intensity), and label the region which we are sure of being background or non-object with another color and finally the region which we are not sure of anything, we label it with 0. That is our marker. Then apply watershed algorithm. Then our marker will be updated with the labels we gave, and the boundaries of objects will have a value of -1.

That’s it about Brain Tumor Detection. For Implementation visit following link

--

--