Security camera image adaptive exposure enhancement and local motion blur method based on neural network

CN117575947BActive Publication Date: 2026-11-27GUANGDONG TELEPOWER TELECOM TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311408278.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2026-11-27
Estimated Expiration
2043-10-26

AI Technical Summary

Technical Problem

另外安防摄像头部署的环境多样复杂、需要全天候运行,存在着夜晚光线暗、逆光、运动物体成像模糊等因素导致成像质量较差,而且传统的isp无法有效的处理安防图像

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117575947B_ABST
    Figure CN117575947B_ABST
Patent Text Reader

Abstract

The application provides a security camera image adaptive exposure enhancement and local motion blur method based on a neural network, which comprises AI image enhancement and AI main body segmentation; the AI image enhancement comprises low-light image enhancement and motion blur image elimination; the low-light image enhancement comprises constructing an end-to-end full connection network; the non-linear influence parameter of each pixel is estimated through the full connection network; the final pixel value component is obtained through a mapping function by taking the pixel value and the non-linear influence parameter; the motion blur image elimination compensates the blurred area of the image through the constructed network; and the AI main body segmentation distinguishes the foreground and background parts of the image through the image segmentation algorithm and the saliency region segmentation algorithm of the network. The AI image enhancement of the application is helpful for people to view and compensates the local blurred area; the AI main body segmentation divides the image into the foreground and background parts, and then weakens the background details, thereby saving the bandwidth and facilitating the transmission of the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks. Background Technology

[0002] The current video transmission process for cameras is as follows: camera capture, traditional ISP processing, H264 / H25 encoding, and streaming to the server.

[0003] As the requirements for camera resolution increase, limited bandwidth resources are becoming one of the transmission bottlenecks. In addition, security cameras are deployed in diverse and complex environments and need to operate around the clock. Factors such as low light at night, backlight, and blurred images of moving objects result in poor image quality. Moreover, traditional ISPs cannot effectively process security images. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention provides a method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks.

[0005] The technical solution of this invention is: a method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks, including AI image enhancement and AI subject segmentation; wherein,

[0006] The AI ​​image enhancement includes low-brightness image enhancement and motion blur image removal;

[0007] S1) The low-brightness image enhancement includes the following steps:

[0008] S11) Construct an end-to-end fully connected network; estimate the nonlinear influence parameter α of the red, green, and blue components R, G, and B values ​​of each pixel through the end-to-end fully connected network. r α g α b ;

[0009] S12), combine pixel values ​​and nonlinear influence parameter α r α g α b The final pixel value components are obtained through a mapping function;

[0010] S2) Motion blur removal, specifically including the following steps:

[0011] S21) Based on the assumption that the data collected by the sensor is a linear superposition of valid data and noise signals, a neural network for local motion blur compensation is constructed. The constructed network compensates for the blurred areas of the image, and the image restoration formula is as follows:

[0012]

[0013] In the formula, I is the original image output by the fully connected network, and η is the local blur compensation of the neural network for local motion blur compensation. It outputs the image after local blur removal; at the same time, it restricts blur compensation to only the areas of motion blur in the original image, while the compensation for clear areas is zero.

[0014] S3), AI Subject Segmentation

[0015] A subject segmentation network is constructed, which uses the network's image segmentation algorithm and salient region segmentation algorithm to distinguish the foreground and background parts of the image, thereby weakening background details.

[0016] Preferably, in step S12), the mapping function is:

[0017] f(I(x),α)=I(x)+αI(x)(1-I(x));

[0018] Where α is a nonlinear influence parameter with a range of [-1,1], x is the pixel position, and I(x) is the pixel value at position x.

[0019] Preferably, in step S11), the total loss function of the fully connected network is:

[0020] L all =L spatial +L exposure +L color ;

[0021] Among them, L spatial Let L be the space loss function. exposure L is the exposure loss function; color This is the color loss function.

[0022] Preferably, the space loss function L spatial To ensure spatial consistency between the original and the image, the image is divided into non-overlapping patches. Each patch is set to an n×n block, where n ranges from [5,10]. This ensures that patches at the same spatial location are similar in appearance to their surrounding patches. Therefore, the spatial loss function L... spatial for:

[0023]

[0024] Where N is the total number of patch blocks, Y i Y is the mean of the i-th patch in the enhanced image; jIt is the mean of the surrounding patches of the i-th patch in the enhanced image; I i It is the mean of the i-th patch in the original image; I j Ω(i) is the mean of the surrounding patches of the i-th patch in the original image; Ω(i) is the i-th element in the RGB three-channel set.

[0025] Preferably, the exposure loss function L exposure By incorporating exposure control E, the enhanced image brightness is prevented from being overexposed or underexposed, and remains within a reasonable exposure range; the exposure loss function L... exposure for:

[0026]

[0027] Where K is the number of patches, Y k E is the mean of the k-th patch in the enhanced image, and E is the set ideal brightness value.

[0028] Preferably, the color loss function L color To ensure that the enhanced image does not lose color accuracy, a color loss function is added based on the grayscale world theory to ensure that the mean values ​​of the RGB three channels of the enhanced image are close; the color loss function L... color The expression is:

[0029]

[0030] In the formula, I i It is the mean of the i-th patch in the original image; I j Ω is the mean of the surrounding patches of the i-th patch in the original image; Ω is the set of RGB three channels.

[0031] Preferably, in step S21), the loss function of the neural network for local motion blur compensation is:

[0032]

[0033] In the formula, H represents the pixel position in the blurred region; M represents the pixel position in the sharp region; and F1 is a first normal form. I is the locally blurred image output at pixel h. h The original image output at pixel h.

[0034] Preferably, in step S3), the loss function of the AI ​​subject segmentation network is:

[0035]

[0036] In the formula, D is the number of background pixels, and S is the number of foreground pixels. For the segmentation mask of a fully convolutional network, I s The foreground mask for the training set is F1, which is a first-order paradigm.

[0037] Preferably, in step S3), the background mask is 0 and the foreground mask is 1.

[0038] The beneficial effects of this invention are as follows:

[0039] 1. This invention enhances images captured by security cameras using AI, which helps people view them. Furthermore, it segments the image into foreground and background parts using AI subject segmentation, thereby weakening background details and saving bandwidth, thus facilitating image transmission.

[0040] 2. This invention achieves the processing of locally blurred areas in an image through local motion blur compensation; compared with the global deblurring method, it is more suitable for security scenarios and has a more accurate and effective deblurring effect, without introducing uncontrollable factors to the clear areas of the original image;

[0041] 3. This invention enhances low-brightness images to generate reasonably exposed pictures while taking into account the fidelity of color, texture details, etc. Attached Figure Description

[0042] Figure 1 This is a flowchart illustrating the framework of the present invention;

[0043] Figure 2 This is a structural framework diagram of the local motion fuzzy compensation neural network of the present invention;

[0044] Figure 3 This is a flowchart illustrating the AI ​​subject segmentation process of the present invention. Detailed Implementation

[0045] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings:

[0046] like Figure 1 As shown, this embodiment provides a method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks, including AI image enhancement and AI subject segmentation; wherein,

[0047] The AI ​​image enhancement includes low-brightness image enhancement and motion blur image removal;

[0048] S1) Low-brightness image enhancement, including the following steps:

[0049] S11) Construct an end-to-end fully connected network; estimate the nonlinear influence parameter α of the red, green, and blue components R, G, and B values ​​of each pixel through the end-to-end fully connected network.r α g α b ;

[0050] S12), combine pixel values ​​and nonlinear influence parameter α r α g α b The final pixel value components are obtained through a mapping function;

[0051] S2) Motion blur removal, specifically including the following steps:

[0052] S21) Based on the assumption that the data collected by the sensor is a linear superposition of valid data and noise signals, a neural network for local motion blur compensation is constructed. The constructed network compensates for the blurred areas of the image, and the image restoration formula is as follows:

[0053]

[0054] In the formula, I is the original image output by the fully connected network, and η is the local blur compensation of the neural network for local motion blur compensation; This is the output image after local blur removal; it also restricts blur compensation to only areas of local motion blur in the original image, while compensation for clear areas is zero; the structure diagram of the neural network for local motion blur compensation constructed in this embodiment is shown below. Figure 2 As shown.

[0055] S3), AI Subject Segmentation

[0056] In this embodiment, since the main subject of a security camera is generally a moving pedestrian, vehicle, a user-defined ROI region, or an adaptively determined salient region, this embodiment constructs a subject segmentation network. The network's image segmentation algorithm and salient region segmentation algorithm distinguish the foreground and background of the image, thereby weakening background details and saving bandwidth. See details below. Figure 3 .

[0057] In a preferred embodiment, the mapping function in step S12) is:

[0058] f(I(x),α)=I(x)+αI(x)(1-I(x));

[0059] Where α is a nonlinear influence parameter with a range of [-1,1], x is the pixel position, and I(x) is the pixel value at position x.

[0060] In a preferred embodiment, in step S11), the total loss function of the fully connected network is:

[0061] L all =Lspatial +L exposure +L color ;

[0062] Among them, L spatial Let L be the space loss function. exposure L is the exposure loss function; color This is the color loss function.

[0063] As a preferred embodiment, the space loss function L... spatial To ensure spatial consistency between the original and the image, the image is divided into non-overlapping patches. Each patch is set to an n×n block, where n ranges from [5,10]. This ensures that patches at the same spatial location are similar in appearance to their surrounding patches. Therefore, the spatial loss function L... spatial for:

[0064]

[0065] Where N is the total number of patch blocks, Y i Y is the mean of the i-th patch in the enhanced image; j It is the mean of the surrounding patches of the i-th patch in the enhanced image; I i It is the mean of the i-th patch in the original image; I j Ω(i) is the mean of the surrounding patches of the i-th patch in the original image; Ω(i) is the i-th element in the RGB three-channel set.

[0066] As a preferred embodiment, the exposure loss function L exposure By incorporating exposure control E, the enhanced image brightness is prevented from being overexposed or underexposed, and remains within a reasonable exposure range; the exposure loss function L... exposure for:

[0067]

[0068] Where K is the number of patches, Y k E is the mean of the k-th patch in the enhanced image, and E is the set ideal brightness value.

[0069] As a preferred embodiment, the color loss function L... color To ensure that the enhanced image does not lose color accuracy, a color loss function is added based on the grayscale world theory to ensure that the mean values ​​of the RGB three channels of the enhanced image are close; the color loss function L... color The expression is:

[0070]

[0071] In the formula, I i It is the mean of the i-th patch in the original image; I j Ω is the mean of the surrounding patches of the i-th patch in the original image; Ω is the set of RGB three channels.

[0072] Preferably, in step S21), the loss function of the neural network for local motion blur compensation is:

[0073]

[0074] In the formula, H represents the pixel position in the blurred region; M represents the pixel position in the sharp region; and F1 is a first normal form. I is the locally blurred image output at pixel h. h The original image output at pixel h.

[0075] In a preferred embodiment, in step S3), the loss function of the AI ​​subject segmentation network is:

[0076]

[0077] In the formula, D is the number of background pixels, and S is the number of foreground pixels. For the segmentation mask of a fully convolutional network, I s The foreground mask for the training set is F1, which is a first-order paradigm.

[0078] In a preferred embodiment, in step S3), the background mask is 0 and the foreground mask value is 1.

[0079] The embodiments and descriptions above are merely illustrative of the principles and preferred embodiments of the present invention. Various changes and modifications may be made to the present invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed.

Claims

1. A method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks, characterized in that: This includes AI image enhancement and AI subject segmentation; among them, The AI ​​image enhancement includes low-brightness image enhancement and motion blur image removal; S1) Low-brightness image enhancement, specifically including the following steps: S11) Construct an end-to-end fully connected network; estimate the nonlinear influence parameters of the R, G, and B values ​​of the red, green, and blue components of each pixel through the end-to-end fully connected network. , , ; S12) Combine pixel values ​​and nonlinear influence parameters , , The final pixel value components are obtained through a mapping function; S2) Motion blur removal, specifically including the following steps: S21) Based on the assumption that the data collected by the sensor is a linear superposition of valid data and noise signals, a neural network for local motion blur compensation is constructed. The constructed network compensates for the blurred areas of the image, and the image restoration formula is as follows: ; In the formula, I is the original image output by the fully connected network, and η is the local blur compensation of the neural network for local motion blur compensation. It outputs the image after local blur removal; at the same time, it restricts blur compensation to only the areas of motion blur in the original image, while the compensation for clear areas is zero. S3), AI Subject Segmentation A subject segmentation network is constructed, which uses the network's image segmentation algorithm and salient region segmentation algorithm to distinguish the foreground and background parts of the image, thereby weakening background details.

2. The method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks according to claim 1, characterized in that: In step S12), the mapping function is: ; in, The parameter is a non-linear effect parameter with a range of [-1, 1], where x is the pixel position and I(x) is the pixel value at position x.

3. The method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks according to claim 1, characterized in that: In step S11), the total loss function of the fully connected network is: ; in, Let be the space loss function. For exposure loss function; This is the color loss function.

4. The method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks according to claim 3, characterized in that: The space loss function To ensure spatial consistency between the original and the image, the image is divided into non-overlapping patches. Each patch is set to an n×n block, where n ranges from [5, 10]. This ensures that patches at the same spatial location are similar in appearance to their surrounding patches. Therefore, the spatial loss function... for: ; Where N is the total number of patch blocks, It is the mean of the i-th patch in the enhanced image; It is the mean of the surrounding patches of the i-th patch in the enhanced image; It is the mean of the i-th patch in the original image; Ω(i) is the mean of the surrounding patches of the i-th patch in the original image; Ω(i) is the i-th element in the RGB three-channel set.

5. The method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks according to claim 3, characterized in that: The exposure loss function By incorporating exposure control E, the enhanced image brightness is prevented from being overexposed or underexposed, and remains within a reasonable exposure range; the aforementioned exposure loss function for: ; Where K is the number of patches. E is the mean of the k-th patch in the enhanced image, and E is the set ideal brightness value.

6. The method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks according to claim 3, characterized in that: The color loss function To ensure that the enhanced image does not lose color accuracy, a color loss function is added based on the grayscale world theory to ensure that the mean values ​​of the RGB three channels of the enhanced image are close; the aforementioned color loss function... The expression is: ; In the formula, It is the mean of the i-th patch in the original image; Ω is the mean of the surrounding patches of the i-th patch in the original image; Ω is the set of RGB three channels.

7. The method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks according to claim 1, characterized in that: In step S21), the loss function of the neural network for local motion blur compensation is: ; In the formula, H represents the pixel position in the blurred region; M represents the pixel position in the sharp region; and F1 is a first normal form. This is the image after local blur removal output at pixel h. The original image output at pixel h.

8. The method for adaptive exposure enhancement and local motion blurring of security camera images based on neural networks according to claim 1, characterized in that: In step S3), the background mask is 0 and the foreground mask is 1.

Citation Information

Patent Citations

  • Local image mapping method and vehicle camera

    CN108307121A

  • Integrated machine learning algorithms for image filters

    US20230146181A1