Deep Learning Based Out-of-focus Detection on Surveillance Footage

University essay from Lunds universitet/Matematik LTH

Abstract: Loss of focus in surveillance cameras can occur due to factors such as environmental aspects, sabotage or system errors. The focus loss leads to degraded footage that is of no use for either post-investigation or automatic video analysis. It is therefore of the utmost importance to provide an automatic detection system in order to resolve the issue as fast as possible. The most popular approaches for out-of-focus detection in image analysis can be categorized into traditional, deep learning-based and a combination of the two. The traditional methods are usually based on a comparison between consecutive frames, where the edge content is in some way quantified and compared. Recent related works focus heavily on the learning and combination-based approaches, promising a higher blur detection accuracy. We apply this to the field of surveillance footage and evaluate the performance of a popular traditional method based on Discrete Fourier Transform (DFT) and three different Convolutional Neural Networks (CNNs); Pix2Pix, MANN and MFF. There are several important requirements for surveillance application considered in this project: flexibility in regards to different camera resolutions and robustness to different surroundings, as well as weather- and lighting conditions. Considering the computational weight and memory requirements is also of importance for on-edge camera application. To train the networks on an objective amount of blur, a method for artificial blurring is utilized. A large dataset is acquired using Axis cameras, and a Gaussian Kernel is applied for obtaining various blur levels. The models are finally tested on optical blur, on images created by manually changing the focus level on the used cameras. Of the three implemented CNN networks, the Pix2Pix model shows the most promising results, with the disadvantage of being the largest. However, the size is dramatically decreased with the use of unstructured pruning and quantization. Unexpectedly high accuracy is also achieved by the computationally heavy DFT approach, with the exception of bad generalization properties. In the future, a combination method could be of interest, as well as expanding the model for detection of additional anomalies or weather conditions such as fog, rain, tampering etc.

  AT THIS PAGE YOU CAN DOWNLOAD THE WHOLE ESSAY. (follow the link to the next page)