With the public's demand for social security and order, many streets, alleys, or critical public places are equipped with all-weather surveillance cameras. In accidents, the police can immediately retrieve surveillance footage and identify suspicious individuals. However, surveillance data is often very lengthy, so using background separation technology as the core technology to capture foreground objects, and adding feature analysis and other technologies to achieve value-added functions, the video compression solution can effectively save users a lot of human surveillance time. Video compression technology compresses the original video, that would take tens of hours to watch, to just a few tens of minutes, and does not miss any useful information.