The human brain serves as the central component of the human body, orchestrating its functionality. Brain tumors emerge from abnormal cell growth and division within the brain, potentially leading to the development of brain cancer. Computer vision plays a pivotal role in healthcare by alleviating the burden of making precise decisions. Among imaging modalities like magnetic resonance imaging (MRI), computed tomography (CT) scans, and X-rays, MRI scans stand out as one of the most prevalent and safest methods for obtaining detailed images, capable of detecting minute abnormalities. Our research endeavors to explore the diverse applications of brain MRI in detecting brain cancer. In this study, we employed the bilateral filter (BF) to eliminate noise from MR images before processing. Subsequently, the tumor region was delineated using binary thresholding and Convolutional Neural Network (CNN) segmentation techniques. The datasets were divided into training, testing, and validation subsets, enabling our machine to discern the presence of brain tumors in subjects. Various performance metrics including accuracy, sensitivity, and specificity were utilized to evaluate the outcomes. Dense layers within the CNN architecture efficiently extract features from brain MRI images, enhancing diagnostic accuracy. The experiment was conducted primarily on MRI data due to its ability to provide comprehensive insights into cellular