In addition to providing physical safety, creating a safe learning environment is essential for promoting academic achievement and general wellbeing. Schools struggling with issues such as drugs, weapons, and violence often face lower academic performance and diminished desirability, whether they are public or private institutions. Nonetheless, the alarming increase in school violence, especially in the US, emphasizes the necessity of all-encompassing security measures. Among these, X-ray threat and weapon detection systems, which combine cutting-edge technology with proactive prevention, have become an essential tool in protecting public areas and schools.