Introduction - If you have any usage issues, please Google them yourself
Frame difference can be detected with the scene changes, a simple frame difference of two consecutive frames can be calculated to obtain the pixel. Right frame of each pixel (x, y), T and T-1 time point pixel value difference of Dx, y (T) = | | Sx, y (T)- Sx, y (T-1 ) | |. Set within the frame differential coefficient IDsum = ΣL, IF | | Sx, y (T)- Sx, y (T-1) | | ≥ Ta THEN L = TRUE, the actual decision of whether or alarm, you can calculate the number of three or more IDsum