1. A feature extraction method for extracting a feature from an image by computer processing, the method comprising: receiving an image and measured acceleration data from a mobile device including image acquiring means and acceleration measuring means; obtaining a gravity vector in the image in a camera coordinate system on a basis of the measured acceleration data; obtaining a vanishing point in the image in a vertical direction in a screen coordinate system by using the gravity vector; obtaining differential vectors along two axes for each of pixels in the screen coordinate system; obtaining a connection line vector connecting each of the pixels with the vanishing point; identifying a vertical edge on the basis of determination that an angle formed by the differential vector and the connection line vector is within a certain threshold range; obtaining the sum of strengths of vertical edges and writing the sum in a predetermined variable array; extracting a keypoint on the basis of the variable array; and calculating a feature quantity from the keypoint.