Abnormal Event Detection in Videos using SpatioTemporal AutoEncoder
Code for the paper.
Install ffmpeg for Video frame extraction.
numpy
sklearn
keras
tensorflow
h5py
scipy
OpenCV
Run processor.py with args the path of Video directory and frame rate.
Run train.py to train the model
Run test.py to test on testing data.
Run start_live_feed.py to test the model on live webcam feed.
You can adjust the threshold parameter in test.py to different values to adjust sensitivity
Datasets Recommended: Avenue Dataset for Anomaly Detection