Anomaly detection method for ball camera monitoring based on PSPNet-RCNN
Through the ball machine monitoring anomaly detection method based on PSPNet-RCNN, HDR image and feature registration technology is used, combined with multi-scale network fusion, to solve the shortcomings of traditional methods in detection accuracy and robustness in dynamic monitoring scenarios, and achieve higher detection accuracy and real-time performance.
Patent Information
- Application Number
- CN202111489941.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-08
AI Technical Summary
Traditional surveillance image processing methods are difficult to achieve accurate analysis of real-time image changes and differences in dynamic surveillance scenarios of dome cameras, and are sensitive to changes in environmental factors and imaging conditions, resulting in insufficient detection accuracy and robustness.
The ball machine monitoring anomaly detection method based on PSPNet-RCNN is used to collect multi-period exposure images through the PTZ camera to generate HDR images, perform SIFT feature registration and preprocessing, and combine the improved multi-scale PSPNet network and Mask R-CNN network to extract the image Abnormal area.
It improves the accuracy and robustness of anomaly detection, can maintain good detection results under dynamic PTZ movements and harsh environments, adapts to the monitor hardware environment, and achieves real-time analysis.
Smart Images

Figure CN114298948B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image anomaly detection, and in particular to a ball camera monitoring anomaly detection method based on PSPNet-RCNN. Background Art
[0002] As an important device in the field of monitoring, PTZ Dome has been widely used in various open scenes that require dynamic monitoring. It has the characteristics of flexible control, fast operation, and precise zoom positioning. It has a good performance in the power, water, industry, education and other industries. With the continuous enhancement and development of the networking, digitization and high-definition of the monitoring industry, the investment in product research and development and the development of the promotion market for the software system supporting PTZ monitors have also entered a new stage.
[0003] An important purpose of monitoring is to detect abnormalities in the monitored scene through monitoring equipment to achieve early warning effects. To achieve this goal, before the introduction of computer-related technologies, monitoring judgment and recording have always been done manually. However, this method is limited by manual working time and energy. It is possible that the monitoring personnel cannot continue to monitor a large area due to long-term high concentration and mental fatigue, resulting in false detection and missed detection. After the introduction of computer automatic detection technology, the detection method of traditional surveillance image processing uses and analyzes statistical information such as pixel probability density and pattern number in the image frame of the continuously collected surveillance video stream within a certain period of time to represent the background, and then uses statistical difference or feature probability to distinguish the foreground target from the background image for the detection target image, so as to achieve the purpose of abnormal detection of surveillance images. This research direction establishes a background model for the image through statistical probability or time series, and realizes the binary classification of foreground and background pixels. It has the advantages of high real-time performance, high target detection rate, and long target detection distance. However, it also has high requirements for the image acquisition scene. It can only have relatively good performance under the condition that the camera is fixed and has continuous acquisition capabilities. In addition, changes in environmental factors or imaging conditions, such as lighting, vibration, exposure, etc., also have a great impact on the accuracy of this method.
[0004] The ball camera has the characteristics of wide monitoring range, non-fixed shooting according to inspection needs, dynamic exposure, and long detection interval. However, it is impossible to directly use traditional algorithms to perform real-time analysis of image changes and differences. Summary of the invention
[0005] The purpose of the present invention is to provide a ball camera monitoring anomaly detection method based on PSPNet-RCNN, so as to improve the versatility and accuracy of the ball camera monitoring anomaly detection method and enhance the real-time and robustness of the detection results.
[0006] The technical solution to achieve the purpose of the present invention is: a ball camera monitoring anomaly detection method based on PSPNet-RCNN, comprising the following steps:
[0007] Step 1: Use a PTZ camera to collect images of the same location at multiple exposure periods, and generate an HDR image by fusing images of different exposure intensities;
[0008] Step 2: Perform SIFT feature registration on the HDR image and the original position image, match the image feature points at the corresponding positions, and obtain the registered HDR image;
[0009] Step 3: Preprocess the registered HDR image to enhance the image contrast, sharpness, saturation and brightness to obtain an enhanced registered HDR image;
[0010] Step 4: Increase the dilation rate of the dilated convolution of the pyramid pooling module of the PSPNet network, add an encoding and decoding convolutional neural network branch to the PSPNet, and then add a residual convolutional network to the entrance of the feature extraction module for dual-image input, and finally obtain an improved multi-scale PSPNet network;
[0011] Step 5: The improved multi-scale PSPNet network is integrated with the Mask R-CNN network that extracts target information from HDR images to obtain the PSPNet-RCNN image anomaly detection network. This network is then used to predict the image and extract the corresponding image anomaly area.
[0012] Compared with the prior art, the present invention has the following significant advantages: (1) It can detect abnormal areas more accurately. The algorithm calculates the HDR image more accurately by segmenting closed targets and exposing them at different time periods. Then, it uses an image registration algorithm based on edge features to improve the accuracy of image feature point matching. Finally, it adopts multi-scale network fusion, combines the improved multi-scale PSPNet network with the target detection Mask R-CNN network, and improves the quality of abnormal detection with high accuracy. (2) It has higher stability. Through iterative preprocessing between algorithms, the process from image acquisition to final result output is fully covered and tested. Considering the influence of different factors on imaging and image processing, it still has relatively good robustness and abnormality handling capabilities in dynamic PTZ mobile acquisition and severe weather conditions. (3) The algorithm design process fully considers scenarios such as object recovery and image memory tuning, optimizes the time complexity and space complexity of the neural network algorithm to adapt to the monitor hardware application environment, and can achieve real-time analysis effects in actual scene use. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is a multi-scale PSPNet network diagram based on HDR image improvement.
[0014] Figure 2 This is a network diagram of anomaly detection in ball camera monitoring based on PSPNet-RCNN.
[0015] Figure 3 It is a comparison chart of the test results of the present invention and the test results of the prior art. DETAILED DESCRIPTION
[0016] PSPNet (Pyramid Scene Parsing Network) pyramid scene parsing network can increase the receptive field of the separation layer through hole convolution and global mean pooling operations, so that more context information can be introduced in the network training process, and the global information can be better taken into account in the image segmentation results, effectively reducing the probability of mis-segmentation. PSPNet fully captures the full-text context prior knowledge through pyramid pooling, alleviates the problems of object relationship mismatch, target type confusion, and discontinuous segmentation of large targets, and has a good performance in the field of scene parsing. Mask R-CNN has the characteristics of fast speed, high accuracy, and ease of use. It is improved by integrating the classic detection algorithm Fast R-CNN through the RPN network, and has strong applicability and generalization ability in image target detection. Aiming at the actual application scenarios of ball camera cameras and the shortcomings and defects of the prior art, the present invention proposes a ball camera monitoring anomaly detection method based on PSPNet-RCNN.
[0017] Combination Figure 1-2 The specific process of the ball camera monitoring anomaly detection method based on PSPNet-RCNN is as follows:
[0018] A method for detecting anomalies in ball camera monitoring based on PSPNet-RCNN. The steps are as follows:
[0019] Step 1: Use a PTZ camera to collect images of the same location at multiple exposure periods, and generate an HDR image by fusing images of different exposure intensities;
[0020] Step 2: Perform SIFT feature registration on the HDR image and the original position image, match the image feature points at the corresponding positions, and obtain the registered HDR image;
[0021] Step 3: Preprocess the registered HDR image to enhance the image contrast, sharpness, saturation and brightness to obtain an enhanced registered HDR image;
[0022] Step 4: Increase the dilation rate of the dilated convolution of the pyramid pooling module of the PSPNet network, add an encoding and decoding convolutional neural network branch to the PSPNet, and then add a residual convolutional network to the entrance of the feature extraction module for dual-image input, and finally obtain an improved multi-scale PSPNet network;
[0023] Step 5: The improved multi-scale PSPNet network is integrated with the Mask R-CNN network that extracts target information from HDR images to obtain the PSPNet-RCNN image anomaly detection network. This network is then used to predict the image and extract the corresponding image anomaly area.
[0024] Furthermore, in step 1, the PTZ camera is used to collect images of the same position at multiple exposure periods, and an HDR image is generated by fusing images of different exposure intensities. The specific steps are as follows:
[0025] 1.1) Define the functional relationship between scene irradiance and image pixels as f, E represents the scene irradiance of pixel value Z, where Z ij represents the pixel value of the i-th pixel in the j-th image, Δt j Represents the exposure time of the jth image, then there is a relational expression:
[0026] Z ij =f(E i Δt j )
[0027] Taking the inverse of the above relational expression f, we have:
[0028] f -1 (Z ij )=E i Δt j
[0029] 1.2) Define function g as the eigenvector of pixel Z. According to the relationship between the eigenvector and the scene irradiance, we have:
[0030] g(Z ij )=lnf -1 (Z ij )=lnE i +lnΔt j
[0031] The pixel value range of RGB image is 0-255, so nonlinear color image has 256 pixel values, that is, the eigenvector g is 256-dimensional and smooth, where E i is the irradiance intensity of pixel i. The scene illumination amplitude of multiple captured images in a fixed scene remains unchanged. It can be concluded that the cumulative square error of the irradiance intensity w is:
[0032]
[0033] Where N is the number of selected pixels, P represents the number of images, i represents the i-th pixel with an initial value of 0, and j represents the j-th image with an initial value of 1.
[0034] 1.3) According to the error expression, the solution of the actual eigenvector g can be transformed into a least squares problem. Multiple RGB images are fused into an HDR image by weighting. If the number of RGB images is k and each RGB image is represented by P, the weighted formula of the fused HDR image I is:
[0035]
[0036] Where w is the cumulative error square of the irradiance, i starts to accumulate from 0, P i represents the i-th image, t i Represents the exposure time of the i-th image, and the HDR image is generated by fusion according to the weighted formula.
[0037] Furthermore, in step 2, SIFT feature registration is performed on the HDR image and the original position image to match the image feature points at corresponding positions, thereby improving the accuracy of image pixel matching and obtaining a registered HDR image. The specific steps are as follows:
[0038] 2.1) Calculate the LBP operator values of the center pixel and neighboring pixels of each HDR region image, and slide a 3×3 window m in each region, with the center pixel coordinates m c , the pixel coordinates of the 8 points in the neighborhood are m0, m1, ..., m7 respectively, then the expression of the texture feature T is:
[0039] T≈(m0-m c ,m1-m c ,...,m7-m c )
[0040] The pixel value of the center point of the pixel matrix is used as the threshold to realize the pixel threshold standardization operation of the neighborhood around the center. When the neighborhood grayscale value is greater than the center pixel value, it is set to 1, otherwise it is set to 0, where m is the center point m c The actual value s(x) of the pixel threshold x is expressed as:
[0041]
[0042] 2.2) Assign a corresponding weight to each pixel, convert the encoded binary value into decimal to replace the center point threshold, p represents the pixel value at the corresponding position, there are 8 positions in the neighborhood pixels, p i ,p c Represent the pixel values of the i-th position and the center position respectively, and the LBP texture feature expression converted to decimal is:
[0043]
[0044] 2.3) For texture image f LBP(x) is fused with the original image f(x) at a ratio of 2:8. The formula of the fused image G(x) is:
[0045] G(x)=0.8f(x)+0.2f LBP (x)
[0046] 2.4) Gaussian difference function is used for scale normalization, DoG operator is used to enhance the stability of feature detection, and Gaussian filter is used for smoothing calculation. The scale normalization formula is:
[0047]
[0048] Where σ is the standard deviation of the Gaussian kernel, represents the Gaussian filter, G is the fused image, x and y are the horizontal and vertical pixel coordinates of each image, I' is the input image, and I is the output scale-normalized image.
[0049] 2.5) Finally, the double elimination mechanism is used to remove the feature points that are incorrectly matched, that is, to remove the feature points whose feature distance is greater than the threshold k, so as to increase the matching accuracy. The mathematical expression of the threshold k is:
[0050]
[0051] Where p represents the pixel distance of the feature point, t represents the grayscale distance of the feature point, maps the matched feature points and generates an HDR feature matching map.
[0052] Furthermore, in step 3, the registered HDR image is preprocessed to enhance the image contrast, sharpness, saturation and brightness, enrich the image feature information, and obtain the enhanced registered HDR image. The specific steps are as follows:
[0053] 3.1) Calculate the pixel mean of the image. Read and count all n pixel values in the image. Take the first pixel with i as 1 and add all pixels to calculate the average value. The calculation formula is as follows:
[0054]
[0055] 3.2) For image regions with higher average pixel values, enhance and remove corresponding noise points through histogram equalization. u represents the corresponding histogram channel value, P is the total number of histogram channels, and the distribution of the u-th histogram is H P (u), u starts to accumulate from 0, D is the image, L is the grayscale depth, then the calculation formula of the equalized image f(D) is:
[0056]
[0057] 3.3) Substitute different regions of the HDR image into the mean square error and peak signal-to-noise ratio formula, calculate the image enhancement factor a and bias factor b, and substitute the calculated factors into the following enhancement formula:
[0058] G'(x,y)=a*G(x,y)+b
[0059] Where G' represents the output enhanced image, G represents the input image, x and y are the horizontal and vertical pixel coordinates of each image, and the normalized enhanced and registered HDR image is obtained.
[0060] Furthermore, in step 4, the void ratio of the void convolution of the pyramid pooling module of the PSPNet network is increased, and an encoding and decoding convolutional neural network branch is added to the PSPNet to improve the scene segmentation capability, and then a residual convolutional network is added to the entrance of the feature extraction module for dual image input, and finally an improved multi-scale PSPNet network is obtained. The specific steps are as follows:
[0061] 4.1) The dilation rate of the dilated convolution of the PSPNet pyramid pooling module is increased from (1, 2, 3, 6) to (1, 6, 12, 18) to expand the network’s receptive field and increase the ability to extract global image information. The corresponding feature map size is also downsampled to 1 / 8 of the original image to ensure the uniformity of the network data dimension.
[0062] 4.2) After expanding the void rate, encoder and decoder network branches are added to the image feature extraction network. The ability to extract the overall contour features of the image is enhanced by downsampling and upsampling. This network branch uses a two-layer 3×3 convolution kernel for feature extraction, increases the network feature scale, and broadens the dimensional range of data extraction.
[0063] 4.3) After adding the codec, a residual network branch is added to the convolution entrance of the network, which is used for dual-image feature extraction of the original image and the enhanced registered HDR image. The feature maps obtained by dual-image pooling are fused and upsampled to increase the detail information of the image. The improved multi-scale PSPNet network is obtained through three steps of network construction.
[0064] Furthermore, in step 5, the improved multi-scale PSPNet network is integrated with the Mask R-CNN network that can extract target information in the HDR image to obtain the PSPNet-RCNN image anomaly detection network, and then the image is predicted through this network to extract the corresponding image anomaly area. The specific steps are as follows:
[0065] 5.1) The feature extraction network of the Mask R-CNN network is added with an improved multi-scale PSPNet network branch. The input image is convolved simultaneously through the two-end network. Finally, the two-end network downsamples the (480, 360, 3) image to the same size of (60, 45, 3).
[0066] 5.2) The output layer of the two-end network is fused using a fully connected layer, that is, the output feature map of the two-end network is convolved through a 480×360×2×2 convolution layer, and then the probability of different pixels being assigned to the corresponding category is calculated through a Softmax layer to ensure that the sum of all classification probabilities is 1. The Mask R-CNN network and the improved multi-scale PSPNet network are fused into the PSPNet-RCNN image anomaly detection network.
[0067] 5.3) The images captured by the PTZ monitor and the converted enhanced registered HDR images are simultaneously input into the PSPNet-RCNN image anomaly detection network model. By integrating the scene and target segmentation capabilities of the network, the states of different targets in the corresponding scenes are judged, the abnormal areas are extracted, and the monitoring image anomaly detection is completed.
[0068] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0069] Example
[0070] This embodiment is based on a PTZ data set, which has three monitoring anomaly detection results with different principle characteristics, namely, anomaly detection algorithm Vibe, mixed Gaussian background modeling algorithm GMM, and principal component analysis algorithm PCA, as examples of case analysis. The Vibe algorithm inserts background pixels into the model sample library of neighborhood pixels through a spatial propagation mechanism, and completes the division of detection results when at least two similar samples are found; the GMM algorithm estimates the detection probability through a linear combination of multiple Gaussian distribution functions; and PCA uses statistical analysis to estimate the distribution of image anomalies.
[0071] The detection results of the present invention are compared with the results of the other three different algorithms. Figure 3 , quantitatively analyze each group of detection results, and statistically analyze the peak signal-to-noise ratio (PSNR), structural similarity (SSIM), intersection over union (IoU) and running time of multiple groups of detection results in the case. The methods in the case are executed in the same hardware environment, and the results are shown in Table 1:
[0072] Table 1
[0073]
[0074] In summary, the present invention can detect abnormal areas more accurately. The algorithm calculates the HDR image more accurately through closed target segmentation and exposure at different time periods, and then uses the image registration algorithm based on edge features to improve the accuracy of image feature point matching. Finally, multi-scale network fusion is adopted, combined with the improved multi-scale PSPNet network and the target detection Mask R-CNN network, to improve the quality of abnormal detection with high accuracy. Through iterative preprocessing between algorithms, the process from image acquisition to final result output is fully covered and tested. Taking into account the influence of different factors on imaging and image processing, it still has relatively good robustness and exception handling capabilities in dynamic PTZ mobile acquisition and severe weather environments. The algorithm design process of the present invention fully considers scenarios such as object recovery and image memory tuning, optimizes the time complexity and space complexity of the neural network algorithm to adapt to the monitor hardware application environment, and can achieve real-time analysis effects in actual scene use.
Claims
1. A dome camera monitoring anomaly detection method based on PSPNet-RCNN, It is characterized in that The steps include: Step 1: Use a PTZ camera to collect images of the same location at multiple exposure periods, and generate an HDR image by fusing images of different exposure intensities; Step 2: Perform SIFT feature registration on the HDR image and the original position image, match the image feature points at the corresponding positions, and obtain the registered HDR image; Step 3: Preprocess the registered HDR image to enhance the image contrast, sharpness, saturation and brightness to obtain an enhanced registered HDR image; Step 4: Increase the dilation rate of the dilated convolution of the pyramid pooling module of the PSPNet network, add an encoding and decoding convolutional neural network branch to the PSPNet, and then add a residual convolutional network to the entrance of the feature extraction module for dual-image input, and finally obtain an improved multi-scale PSPNet network; Step 5: The improved multi-scale PSPNet network is integrated with the Mask R-CNN network that extracts target information from HDR images to obtain the PSPNet-RCNN image anomaly detection network. This network is then used to predict the image and extract the corresponding image anomaly area. In step 4, the void ratio of the void convolution of the pyramid pooling module of the PSPNet network is increased, and the encoding and decoding convolutional neural network branch is added to the PSPNet, and then the residual convolutional network is added to the entrance of the feature extraction module for the input of the dual image, and finally an improved multi-scale PSPNet network is obtained. The specific steps are as follows: 4.1) The dilation rate of the dilated convolution of the PSPNet pyramid pooling module is increased from (1, 2, 3, 6) to (1, 6, 12, 18) to expand the network’s receptive field and increase the ability to extract global image information. The corresponding feature map size is also downsampled to 1 / 8 of the original image to ensure the uniformity of the network data dimension. 4.2) After expanding the void rate, the encoder and decoder network branches are added to the image feature extraction network. The ability to extract the overall contour features of the image is enhanced by downsampling and upsampling. The network branch uses a two-layer 3×3 convolution kernel for feature extraction, increases the network feature scale, and broadens the dimensional range of data extraction; 4.3) After adding the codec, a residual network branch is added to the convolution entrance of the network, which is used for dual image feature extraction of the original image and the enhanced registered HDR image, and the feature map obtained by dual image pooling is fused and upsampled to increase the image detail information. The improved multi-scale PSPNet network is obtained through the three-step network construction; In step 5, the improved multi-scale PSPNet network is integrated with the Mask R-CNN network for extracting target information in the HDR image to obtain the PSPNet-RCNN image anomaly detection network. This network is then used to predict the image and extract the corresponding image anomaly area. The specific steps are as follows: 5.1) The feature extraction network of the Mask R-CNN network is added with an improved multi-scale PSPNet network branch. The input image is convolved simultaneously through the two-end network. Finally, the two-end network downsamples the (480, 360, 3) image to the same size of (60, 45, 3). 5.2) The output layer of the two-end network is fused using a fully connected layer, that is, the output feature map of the two-end network is convolved through a 480×360×2×2 convolution layer, and then the probability of different pixels being classified into corresponding categories is calculated through a Softmax layer to ensure that the sum of all classification probabilities is 1. The Mask R-CNN network and the improved multi-scale PSPNet network are fused into the PSPNet-RCNN image anomaly detection network; 5.3) The images captured by the PTZ monitor and the converted enhanced registered HDR images are simultaneously input into the PSPNet-RCNN image anomaly detection network model. By integrating the scene and target segmentation capabilities of the network, the states of different targets in the corresponding scenes are judged, the abnormal areas are extracted, and the monitoring image anomaly detection is completed.
2. According to the PSPNet-RCNN-based ball camera monitoring anomaly detection method according to claim 1, It is characterized in that In step 1, the PTZ camera is used to collect images of the same position at multiple exposure periods, and an HDR image is generated by fusing images of different exposure intensities. The specific steps are as follows: 1.1) Define the functional relationship between scene irradiance and image pixels as f, E represents the scene irradiance of pixel value Z, where Z ij represents the pixel value of the i-th pixel in the j-th image, Δt j represents the exposure time of the jth image, then there is a relational expression: Z ij =f(E i Δt j ) Taking the inverse of the above relational expression f, we have: f -1 (Z ij )=E i Δt j 1.2) Define function g as the eigenvector of pixel Z. According to the relationship between the eigenvector and the scene irradiance, we have: g(Z ij )=lnf -1 (From ij )=lnE i +lnΔt j The pixel value range of RGB image is 0-255, so nonlinear color image has 256 pixel values, that is, the eigenvector g is 256-dimensional and smooth, where E i is the irradiance intensity of pixel i. The scene illumination amplitude of multiple captured images in a fixed scene remains unchanged. The cumulative square error w of the irradiance intensity is obtained as follows: Where N is the number of selected pixels, P represents the number of images, i represents the i-th pixel, the initial value is 0, j represents the j-th image, the initial value is 1; 1.3) According to the error expression, the solution of the actual eigenvector g is transformed into a least squares problem. Multiple RGB images are fused into an HDR image by weighting. If the number of RGB images is k and each RGB image is represented by P, the weighted formula of the fused HDR image I is: Where w is the cumulative error square of the irradiance, i starts to accumulate from 0, P i represents the i-th image, t i Represents the exposure time of the i-th image, and the HDR image is generated by fusion according to the weighted formula.
3. The ball camera monitoring anomaly detection method based on PSPNet-RCNN according to claim 1, It is characterized in that In step 2, SIFT feature registration is performed on the HDR image and the original position image to match the image feature points at corresponding positions to obtain a registered HDR image. The specific steps are as follows: 2.1) Calculate the LBP operator values of the center pixel and neighboring pixels of each HDR region image, and slide a 3×3 window m in each region, with the center pixel coordinates m c The pixel coordinates of the eight points in the neighborhood are m 0 ,m 1 ,...,m 7 , then the expression of texture feature T is: T≈(m 0 -m c ,m 1 -m c ,...,m 7 -m c ) The pixel value of the center point of the pixel matrix is used as the threshold to realize the pixel threshold standardization operation of the neighborhood around the center. When the neighborhood grayscale value is greater than the center pixel value, it is set to 1, otherwise it is set to 0, where m is the center point m c The actual value s(x) of the pixel threshold x is expressed as: 2.2) Assign a corresponding weight to each pixel, convert the encoded binary value into decimal to replace the center point threshold, p represents the pixel value at the corresponding position, there are 8 positions in the neighborhood pixels, p i ,p c Represent the pixel values of the i-th position and the center position respectively, and the LBP texture feature expression converted to decimal is: 2.3) For texture image f LBP (x) is fused with the original image f(x) at a ratio of 2:8, and the formula of the fused image G(x) is: G(x)=0.8f(x)+0.2f LBP (x) 2.4) Gaussian difference function is used for scale normalization, DoG operator is used to enhance the stability of feature detection, and Gaussian filter is used for smoothing calculation. The scale normalization formula is: Where σ is the standard deviation of the Gaussian kernel, represents Gaussian filter, G is the fused image, x and y are the horizontal and vertical pixel coordinates of each image, I' is the input image, and I is the output scale-normalized image; 2.5) Finally, the double elimination mechanism is used to remove the feature points that are incorrectly matched, that is, to remove the feature points whose feature distance is greater than the threshold k. The mathematical expression of the threshold k is: Where p represents the pixel distance of the feature point, t represents the grayscale distance of the feature point, maps the matched feature points and generates an HDR feature matching map.
4. The ball camera monitoring anomaly detection method based on PSPNet-RCNN according to claim 1, It is characterized in that In step 3, the registered HDR image is preprocessed to enhance the image contrast, sharpness, saturation and brightness to obtain an enhanced registered HDR image. The specific steps are as follows: 3.1) Calculate the pixel mean of the image. Read and count all n pixel values in the image. Take the first pixel with i as 1 and add all pixels to calculate the average value. The calculation formula is as follows: 3.2) For image regions with higher average pixel values, enhance and remove corresponding noise points through histogram equalization. u represents the corresponding histogram channel value, P is the total number of histogram channels, and the distribution of the u-th histogram is H P (u), u starts to accumulate from 0, D is the image, L is the grayscale depth, then the calculation formula of the equalized image f(D) is: 3.3) Substitute different regions of the HDR image into the mean square error and peak signal-to-noise ratio formula, calculate the image enhancement factor a and bias factor b, and substitute the calculated factors into the following enhancement formula: G'(x,y)=a*G(x,y)+b Where G' represents the output enhanced image, G represents the input image, x and y are the horizontal and vertical pixel coordinates of each image, and the normalized enhanced and registered HDR image is obtained.
