Breast cancer detection at an early stage is crucial for improving patient survival rates. This work introduces an innovative thermal imaging prototype that incorporates compression techniques inspired by mammography equipment. The prototype offers a radiation-free and precise cancer diagnosis. By integrating compression and illumination methods, thermal picture quality has increased, and the accuracy of classification has improved. Essential components of the suggested thermography device include an equipment body, plates, motors, pressure sensors, light sources, and a thermal camera. We created a 3D model of the gadget using the SolidWorks software 2020 package. Furthermore, the classification research employed both cancer and normal images from the experimental results to validate the efficacy of the suggested system. We employed preprocessing and segmentation methods on the obtained dataset. We successfully categorized the thermal pictures using various classifiers and examined their performance. The logistic regression model showed excellent performance, achieving an accuracy of 0.976, F1 score of 0.977, precision of 1.000, and recall of 0.995. This indicates a high level of accuracy in correctly classifying thermal abnormalities associated with breast cancer. The proposed prototype serves as a highly effective tool for conducting initial investigations into breast cancer detection, offering potential advancements in early-stage diagnosis, and improving patient survival rates.