Patent attributes
A method and apparatus for calibrating a camera are provided. The method includes: detecting at least one edge of fixed object in image received from a camera, determining at least one horizontal midpoint of the at least one edge, calculating a first pixel distance between the determined at least one horizontal midpoint and a pre-stored at least one horizontal midpoint, calculating second pixel distances between a plurality of points on the detected at least one edge of the fixed object and a pre-stored plurality of points of the at least one edge of the fixed object, determining whether to recalibrate the camera based on the first pixel distance and the second pixel distances, and recalibrating the camera if the determining determines to recalibrate the camera.