According to numerous statistics, it can be inferred that the rate of violence using firearms and dangerous weapons is rising annually, making it difficult for law enforcement organizations to address this problem promptly. There are several locations where there are high rates of crime with firearms or knives, particularly in areas with lax gun restrictions. For the security of citizens, the early identification of violent crime is crucial. We see a lot of crimes and attacks on public transportation these days. Different ways have been developed to hide the weapons to launch savage attacks on the unwary population. These criminals' primary goals are to manipulate people and harm public property. All these things only occur as a result of weapons and other dangerous items being readily transported into buses and trains. To protect the public and its assets, it is important to create and implement highly effective technologies across the nation. By spotting the existence of deadly weapons like knives and firearms, these situations can be avoided.