A Method for Estimating the Camera Parameters Based on Vanishing Points