Automatic keypoint detecting of wireframe gates