We describe an effective method for calibrating cameras by using planar calibration patterns. The calibration pattern control points are localized by Harris detector incorporating the gradient histogram. The accuracy of the calibration control points location consequently improves the accuracy of the camera calibration. Additionally, optimization computation is carried out for increasing the accuracy of camera calibration results. Experiments using real images verified the effectiveness and robustness of the proposed method.