The present disclosure provides systems and techniques for determining a grip
layout for a gun. The techniques include obtaining an image depicting a hand, obtaining calibration data associated with the image, calculating a real distance between a first
landmark of the hand and a second
landmark of the hand, and determining a grip
layout for the gun based on the real distance between the first
landmark and the second landmark. Calibration data may include a scale for the image or data that may be used to derive the scale, such as an object of known dimensions, an angular
field of view, or a distance between the device used to capture the image and the hand. The grip
layout may include a backstrap size, a sensor size, a sensor location on the gun, or any combination thereof.