A method for measuring an inter-vehicle distance using a processor is provided. The method includes acquiring a driving image photographed by a photographing device of a first vehicle; detecting a second vehicle from the driving image and calculating a ratio between an image width of the detected…