How to remove text from MRI image using Python.?

I want to do further analysis on image.but before moving to next process I want my tumor image text free.
See the attached image.

Hello @mamoonna,
welcome to the forum!
There are may be various strategies to do that. For example, you can try to threshold the image and do erosion+dilation with the smallest kernel size for the thresholded mask. That should eliminate your text.
Alternatively, you can do thresholding and keep only the largest object…

But in any way, you should work with the raw data (without text / lossy compression) rather than preprocessed jpegs.

1 Like