A distance measuring apparatus of the invention includes an arithmetic operation device which uses the degree of shift detected when the distance to a reference object is measured and a known distance to the reference object, to determine the difference between the offsets of image-forming positions on optical sensor arrays caused by a windshield present between a measuring object and the optical sensor arrays. The arithmetic operation device uses the difference between the offsets of the image-forming positions, an optical characteristic amount of the image-forming lenses, and the amount of shift detected when the distance to the measuring object is measured, to determine the distance to the measuring object.
A position detecting device for a vehicle detects the position of an object in a real space coordinate system. A plurality of objects are extracted from an image obtained by cameras, and a pitching-dependent correction amount is calculated based on amounts of displacement in position of the plurality of objects in a direction of height. Positions of the plurality of objects are corrected based on the pitching-dependent correction amount.