A method for measuring a position of an object according to an image of
the object captured by a camera unit. The method includes the following
steps: calculating a discrepancy of an incident beam of light penetrating
a lens system of the camera unit relative to an optical center of the
lens system, and compensating the position of the object according to the
discrepancy.