The full description of this application can be found here.
This application requires meta information regarding the scene for counting traffic. Read the preparation to prepare a json file that indicates how the application should count vehicles.
# Record a 60 second video from given stream and
# save the video as sample.mp4
python3 record.py \
--stream rtsp://mystream \
--duration 60
# Take input.mp4 as an input
python3 app.py \
--lanes /path/to/lanes.json \
--input-file file:///path/to/input.mp4 \
# Take a 60 second video from given stream
python3 app.py \
--lanes /path/to/lanes.json \
--stream rtsp://mystream \
--duration 60