|
Algorithm 1: Visual abnormal event detection via online least squares one-class support vector machine (LS-OC-SVM) and sparse online LS-OC-SVM. |
|
Require |
n training frames
and the corresponding optical flow
. |
Compute the covariance matrix of each frame.
-
(a)
Online strategy: Applying LS-OC-SVM on the small subset of training samples to calculate the coefficient matrix.
-
(b)
Sparse online strategy: Applying LS-OC-SVM to train the initial dictionary, C, offline.
-
(a)
Online strategy: Applying online LS-OC-SVM on the remaining samples to calculate the coefficient matrix.
-
(b)
Sparse online strategy: Applying sparse online LS-OC-SVM on the remaining samples to calculate the coefficient matrix and to update the dictionary.
Each frame Cn+l is classified via LS-OC-SVM. |
|