This script measures the vehicle speed from the output result log of SCORER Traffic Counter. As shown in the image below, the vehicle speed is output when two detection lines are drawn and the distance between the detection lines is input. The distance between the two lines must be inferred from the white line or actually measured.
Python 3.5 or above
Execute the script with the SCORER Traffic Counter output log and distance as shown below.
# arguments: measure.py [csvfile] [distance(metre)]
python3 measure.py sample.csv 100 > output.csv