Cervical cancer is caused by the growth of abnormal cells in the cervix's lining. Human papillomavirus (HPV), a sexually transmitted infection, plays a role in most cervical cancers. Therefore, cervical cancer can be avoided by having regular screenings and being vaccinated against HPV infection. The term pap-smear refers to human cell samples stained using the Papanicolaou method. The Papanicolaou method is used to detect precancerous cell changes before they become invasive cancer. The smear cell image is composed of a nucleus and cytoplasm. Cancer prevalence is determined by the shape and structure of the nucleus. Therefore, the segmentation of the nucleus is an essential step in detecting cancer. However, overlapping, poor contrast, uneven staining, and other factors make cervical nucleus segmentation difficult. This paper proposes a new segmentation method for the cervical nucleus using digital image processing. Our proposed method used a median filter to remove noise and a non-linear contrast stretching to enhance the Pap smear images. Then, we used Bradley thresholding for the segmented cervical nucleus. The main impact of this paper will assist doctors in diagnosing cervical cancer based on Pap smear images and increase the accuracy percentages compared to the conventional method.