Accidents are a leading cause of deaths in armed forces. The Aim of this paper is to minimize the accidents caused using weapons in the armed forces. Developing artificial intelligence technologies aim to increase efficiency more and more wherever people exist. Giving guns to inexperienced, untrained, or unpredictable mentally unhealthy people in shooting ranges used for gun training can be risky and fatal. With the use of image processing technologies in these shooting ranges, it is aimed to minimize the risk of life-threatening accidents that may be caused by this people. Artificial intelligence is trained for the targets to be used in shooting ranges. When the camera of weapon sees these targets, it switches from safe mode to firing mode. When a risky situation occurs in shooting range, the gun turns itself into safe mode with various additional security measures.