Processes a video stream from a vehicle dash cam and track the movement of vehicles in the video stream. Predicts the movement of tracked vehicles for two seconds ahead. Users can mark an area as danger area. If a vehicle is predictedto enter the danger area in the next two seconds, a warnng should be generated.
(1) Install Opencv
pip install opencv-python
(2) Set 'dnn_model' folder as follows.
(Download needed resources).
dnn_model
|-- yolov4.cfg
|-- yolov4.weights
|-- classes.txt
(4) Run object_tracking_v1.py