Seeing Danger: How AI-Based Computer Vision Detects Firearms to Boost Security

Using computer vision can be very useful in many situations it is designed for. In May 2022, just a few weeks after a devastating mass shooting, I was pissed off and wanted to find ways to help save lives in an active threat situation. 1



Machine Leaning Model Handgun Detection

                        
                            Italian Trulli

                            
                                
 





 


                            
                            
                                
                                
                                      
                            
                            
                                
                                    
                                    
                                
                              
                            
                            
                                >>>
                            
                        
                    

How it works:

  1. Collect Postive and Negative Datasets for Machine learning task
  2. After Training, deploy the cascade file into the C++ program
  3. My C++ program consists of using the OpenCV framework. Using this framework helped me create a clear goal for object detection.

And yup, that works. But not without jumping through a few hoops: