Defensive application-based automatic machine which detect human target and shoots it using Computer Vision algorithms. It is a portable weapon system that can be carried by the soldier anywhere in the battlefield and placed wherever required, This gun uses a camera with a human tracking program run via a micro-processor to track enemy/target and engage it by shooting at it. It rotates 120 degree pan motion (left to right or vice versa) & 50 degree tilt motion (up & down) to ensure safety of soldier.