A method and system for underwater target image detection based on deep learning

Through deep learning technology, combined with denoising, color correction and motion blur correction networks, the problem of low underwater target detection accuracy is solved, efficient enhancement and accurate recognition of underwater images are achieved, and detection effects and environmental adaptability are improved. .

CN116797471BActive Publication Date: 2024-10-01HUIZHIAN INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211641871.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-20
Publication Date
2024-10-01
Estimated Expiration
2042-12-20

AI Technical Summary

Technical Problem

The image recognition accuracy of underwater target detection in the existing technology is low, resulting in poor detection results, poor environmental adaptability, reliance on manual experience and high time costs.

Method used

An underwater target image detection method based on deep learning is used to automatically remove noise through a denoising network, a color correction network, and a motion blur correction network, combined with convolution, hollow convolution, residual blocks, and a residual network that generates feature attention. , correct chromatic aberration and remove motion blur to improve image quality.

Benefits of technology

Effectively remove underwater noise, correct color cast images, restore original color and texture details, and significantly improve the accuracy and environmental adaptability of underwater target detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116797471B_ABST
    Figure CN116797471B_ABST
Patent Text Reader

Abstract

The present invention proposes a method and system for underwater target image detection based on deep learning. The underwater target image detection method comprises performing denoising processing on the underwater target image using the image denoising network structure to obtain the denoised underwater target image; performing color correction on the denoised underwater target image using the color correction network to obtain the color-corrected underwater target image; and performing image enhancement on the color-corrected underwater target image using the motion blur correction network to obtain the enhanced underwater target image. The system comprises modules corresponding to the steps of the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention proposes an underwater target image detection method and system based on deep learning, belonging to the technical field of image processing. Background Art

[0002] Traditional target detection methods first select corresponding features based on human analysis of specific underwater tasks, such as color features, texture features, geometric features, etc., and then build models based on the features to design classifiers to identify targets in underwater images or videos, thus achieving underwater target recognition tasks. However, these features rely heavily on manual experience and task characteristics, require a lot of time, have poor environmental adaptability, and the detection results are not satisfactory. Summary of the invention

[0003] The present invention provides an underwater target image detection method and system based on deep learning, which is used to solve the problem that the image recognition accuracy of underwater target detection in the prior art is low, resulting in poor underwater target detection effect:

[0004] A method for underwater target image detection based on deep learning, the underwater target image detection method comprising:

[0005] Performing denoising processing on the underwater target image by using the image denoising network structure to obtain a denoised underwater target image;

[0006] Performing color correction on the denoised underwater target image using a color correction network to obtain a color-corrected underwater target image;

[0007] The color-corrected underwater target image is enhanced by using a motion blur correction network to obtain an enhanced underwater target image.

[0008] Furthermore, the underwater target image is denoised using the image denoising network structure to obtain the denoised underwater target image, including:

[0009] A feature map for underwater target image detection is extracted from the input using one convolution and two hollow convolutions; wherein the hollow convolution can expand the receptive field so that each convolution outputs a feature map containing information in a larger range.

[0010] A residual block including two convolutional layers is used for feature learning according to the feature map; wherein the use of the residual structure can reduce the propagation of low-frequency information.

[0011] A residual network with convolutional feature attention is used to reconstruct the underwater target image to obtain a reconstructed image, wherein the reconstructed image is the denoised underwater target image.

[0012] The image denoising network structure includes a convolution and two hollow convolutions, a residual block containing two convolution layers and a convolution of a residual network for generating feature attention.

[0013] Further, color correction is performed on the denoised underwater target image using a color correction network to obtain a color-corrected underwater target image, including:

[0014] Inputting the denoised underwater target image into a generator; wherein the generator is a network guided by a self-regularized attention graph mechanism;

[0015] The generator uses a perceptual loss method to reduce the feature distance between the denoised underwater target image with color bias and the enhanced image of the preset index, so as to obtain a color-corrected underwater target image.

[0016] A self-regularized perceptual loss method is introduced into the generator to constrain the characteristic distance between the denoised underwater target image with color bias input and the enhanced image of the preset index.

[0017] Furthermore, the motion blur correction network includes three sub-networks, each of which has the same structure; wherein the sub-network includes six convolutional layers, two fully connected layers, and a long short-term memory (LSTM), and the convolution kernel size of each convolutional layer is 5 and the step size is 1. Because for the deblurring task, the receptive field needs to be large to handle violent motion.

[0018] Further, the color-corrected underwater target image is enhanced by using a motion blur correction network to obtain an enhanced underwater target image, including:

[0019] Performing feature extraction on the color-corrected underwater target image through a convolution layer to obtain image features corresponding to the color-corrected underwater target image;

[0020] The image features are input into a deconvolution layer, and image restoration is performed through the deconvolution layer to obtain an enhanced underwater target image.

[0021] An underwater target image detection system based on deep learning, the underwater target image detection system comprising:

[0022] A denoising processing module, used to perform denoising processing on the underwater target image using the image denoising network structure to obtain a denoised underwater target image;

[0023] A color correction module, used for performing color correction on the denoised underwater target image using a color correction network to obtain a color-corrected underwater target image;

[0024] The image enhancement module is used to enhance the underwater target image after color correction by using a motion blur correction network to obtain an enhanced underwater target image.

[0025] Furthermore, the denoising processing module includes:

[0026] The feature extraction module is used to extract the feature map of underwater target image detection from the input using one convolution and two hollow convolutions; wherein the hollow convolution can expand the receptive field so that each convolution outputs a feature map containing information in a larger range.

[0027] The learning module is adjusted to perform feature learning using a residual block including two convolutional layers according to the feature map; wherein the use of the residual structure can reduce the propagation of low-frequency information.

[0028] A reconstruction module is used to reconstruct the underwater target image using a residual network that generates feature attention through convolution to obtain a reconstructed image, wherein the reconstructed image is the denoised underwater target image.

[0029] The image denoising network structure includes a convolution and two hollow convolutions, a residual block containing two convolution layers and a convolution of a residual network for generating feature attention.

[0030] Furthermore, the color correction module includes:

[0031] An input module, used to input the denoised underwater target image into a generator; wherein the generator is a network guided by a self-regularized attention graph mechanism;

[0032] The distance reduction module is used to reduce the characteristic distance between the denoised underwater target image with color bias and the enhanced image of preset indicators by using the perceptual loss method in the generator to obtain the underwater target image after color correction.

[0033] A self-regularized perceptual loss method is introduced into the generator to constrain the characteristic distance between the denoised underwater target image with color bias input and the enhanced image of the preset index.

[0034] Furthermore, the motion blur correction network includes three sub-networks, each of which has the same structure; wherein the sub-network includes six convolutional layers, two fully connected layers, and a long short-term memory (LSTM), and the convolution kernel size of each convolutional layer is 5 and the step size is 1. Because for the deblurring task, the receptive field needs to be large to handle violent motion.

[0035] Furthermore, the image enhancement module includes:

[0036] A feature extraction module, used to extract features of the color-corrected underwater target image through a convolution layer to obtain image features corresponding to the color-corrected underwater target image;

[0037] The image restoration module is used to input the image features into the deconvolution layer, and perform image restoration through the deconvolution layer to obtain an enhanced underwater target image.

[0038] Furthermore, the image enhancement module includes:

[0039] After obtaining the enhanced underwater target image, pixel comparison is performed based on the enhanced underwater target image and the original underwater target image to obtain the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement. Based on the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement, it is controlled whether the enhanced underwater target image needs to be restored to the original image to ensure the authenticity of the image when the enhancement degree is not large. The specific steps include:

[0040] Step A1: Use formula (1) to compare pixels of the enhanced underwater target image and the original underwater target image to obtain the overall pixel comparison value of the two images before and after enhancement:

[0041]

[0042] where μ Q represents the overall pixel contrast value of the two images before and after enhancement; H′(i,j) represents the pixel value of the pixel in the i-th row and j-th column in the image matrix of the enhanced underwater target image; H(i,j) represents the pixel value of the pixel in the i-th row and j-th column in the image matrix of the original underwater target image; m represents the total number of pixels in any row of the image matrix; n represents the total number of pixels in any column of the image matrix; || represents the absolute value; H max Indicates the maximum value that the pixel value can take;

[0043] Step A2: Use formula (2) to compare pixels of the enhanced underwater target image and the original underwater target image to obtain the horizontal and vertical pixel comparison values ​​of the two images before and after enhancement:

[0044]

[0045] where μ z Represents the vertical pixel contrast value of the two images before and after enhancement; μ L Indicates the horizontal pixel contrast value of the two images before and after enhancement;

[0046] Step A3: Using formula (3) to control whether the enhanced underwater target image needs to be restored to the original image according to the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement

[0047]

[0048] Wherein E represents the control value of restoring the enhanced underwater target image to the original image; It means substituting the value of i from 1 to n and the value of j from 1 to m into H′(i,j) to obtain the minimum value of H′(i,j);

[0049] If E=0, the enhanced underwater target image is controlled to maintain the current image data state;

[0050] If E=1, the enhanced underwater target image is controlled to be restored to the original image.

[0051] Beneficial effects of the present invention:

[0052] The present invention proposes a method and system for underwater target image detection based on deep learning. The latest attention mechanism is introduced in each enhanced network, so that the network can automatically determine the importance of feature channels, effectively remove underwater noise, correct underwater color cast images, remove motion blur, restore the original color and texture details of target objects in underwater scenes, and enhance the underwater images. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 is a flow chart of the method of the present invention;

[0054] Figure 2 The system block diagram of the system of the present invention. DETAILED DESCRIPTION

[0055] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0056] The embodiment of the present invention proposes an underwater target image detection method based on deep learning, such as Figure 1 As shown, the underwater target image detection method includes:

[0057] S1. Performing denoising processing on the underwater target image using the image denoising network structure to obtain a denoised underwater target image;

[0058] S2, performing color correction on the denoised underwater target image using a color correction network to obtain a color-corrected underwater target image;

[0059] S3. Performing image enhancement on the color-corrected underwater target image using a motion blur correction network to obtain an enhanced underwater target image.

[0060] The motion blur correction network includes three sub-networks, each of which has the same structure; the sub-network includes six convolutional layers, two fully connected layers, and a long short-term memory (LSTM), and the convolution kernel size of each convolutional layer is 5 and the step size is 1. Because for the deblurring task, the receptive field needs to be large to handle violent motion.

[0061] The working principle of the above technical solution is: first, the underwater target image is denoised using the image denoising network structure to obtain a denoised underwater target image; then, the denoised underwater target image is color corrected using a color correction network to obtain a color-corrected underwater target image; finally, the color-corrected underwater target image is enhanced using a motion blur correction network to obtain an enhanced underwater target image.

[0062] The effect of the above technical solution is: the underwater target image detection method based on deep learning proposed in this embodiment introduces the latest attention mechanism in each enhancement network, so that the network can automatically determine the importance of feature channels, effectively remove underwater noise, correct underwater color cast images, remove motion blur, restore the original color and texture details of the target objects in the underwater scene, and enhance the underwater image.

[0063] In one embodiment of the present invention, the underwater target image is denoised using the image denoising network structure to obtain the denoised underwater target image, including:

[0064] S101. Use one convolution and two hollow convolutions to extract a feature map for underwater target image detection from an input; wherein the hollow convolution can expand the receptive field so that each convolution outputs a feature map containing information in a larger range.

[0065] S102. Using a residual block including two convolutional layers to perform feature learning according to the feature map; wherein using a residual structure can reduce the propagation of low-frequency information.

[0066] S103, using a residual network of convolutional feature generation to reconstruct the underwater target image to obtain a reconstructed image, wherein the reconstructed image is the denoised underwater target image.

[0067] The image denoising network structure includes a convolution and two hollow convolutions, a residual block containing two convolution layers and a convolution of a residual network for generating feature attention.

[0068] The working principle of the above technical solution is as follows: first, a convolution and two hollow convolutions are used to extract the feature map of the underwater target image detection from the input; wherein, the hollow convolution can expand the receptive field so that each convolution outputs a feature map containing a larger range of information. Subsequently, a residual block containing two convolutional layers is used for feature learning according to the feature map; wherein, the use of a residual structure can reduce the propagation of low-frequency information. Finally, a residual network with convolutional feature attention is used to reconstruct the underwater target image to obtain a reconstructed image, wherein the reconstructed image is the denoised underwater target image.

[0069] The effect of the above technical solution is: the latest attention mechanism is introduced in each enhancement network, so that the network can automatically determine the importance of feature channels, effectively remove underwater noise, correct underwater color cast images, remove motion blur, restore the original color and texture details of target objects in underwater scenes, and enhance the underwater image.

[0070] In one embodiment of the present invention, color correction is performed on the denoised underwater target image using a color correction network to obtain a color-corrected underwater target image, including:

[0071] S201, inputting the denoised underwater target image into a generator; wherein the generator is a network guided by a self-regularized attention graph mechanism;

[0072] S202, in the generator, reducing the feature distance between the denoised underwater target image with color bias and the enhanced image of the preset index by using the perceptual loss method, to obtain a color-corrected underwater target image.

[0073] A self-regularized perceptual loss method is introduced into the generator to constrain the characteristic distance between the denoised underwater target image with color bias input and the enhanced image of the preset index.

[0074] The working principle of the above technical solution is: first, the denoised underwater target image is input into a generator; wherein the generator is a network guided by a self-regularized attention graph mechanism; then, the generator uses a perceptual loss method to reduce the feature distance between the denoised underwater target image with color bias and the enhanced image of the preset index, so as to obtain a color-corrected underwater target image.

[0075] The effect of the above technical solution is: the latest attention mechanism is introduced in each enhancement network, so that the network can automatically determine the importance of feature channels, effectively remove underwater noise, correct underwater color cast images, remove motion blur, restore the original color and texture details of target objects in underwater scenes, and enhance the underwater image.

[0076] In one embodiment of the present invention, a motion blur correction network is used to perform image enhancement on the color-corrected underwater target image to obtain an enhanced underwater target image, including:

[0077] S301, performing feature extraction on the color-corrected underwater target image through a convolution layer to obtain image features corresponding to the color-corrected underwater target image;

[0078] S302: Input the image features into a deconvolution layer, and perform image restoration through the deconvolution layer to obtain an enhanced underwater target image.

[0079] The working principle of the above technical solution is: first, the feature extraction of the color-corrected underwater target image is performed through the convolution layer to obtain the image features corresponding to the color-corrected underwater target image; then, the image features are input into the deconvolution layer, and the image restoration is performed through the deconvolution layer to obtain the enhanced underwater target image.

[0080] The effect of the above technical solution is: the latest attention mechanism is introduced in each enhancement network, so that the network can automatically determine the importance of feature channels, effectively remove underwater noise, correct underwater color cast images, remove motion blur, restore the original color and texture details of target objects in underwater scenes, and enhance the underwater image.

[0081] The embodiment of the present invention proposes an underwater target image detection system based on deep learning. Figure 2 As shown, the underwater target image detection system includes:

[0082] A denoising processing module, used to perform denoising processing on the underwater target image using the image denoising network structure to obtain a denoised underwater target image;

[0083] A color correction module, used for performing color correction on the denoised underwater target image using a color correction network to obtain a color-corrected underwater target image;

[0084] The image enhancement module is used to enhance the underwater target image after color correction by using a motion blur correction network to obtain an enhanced underwater target image. The motion blur correction network includes three sub-networks, each of which has the same structure; the sub-network includes six convolutional layers, two fully connected layers and a long short-term memory (LSTM), and the convolution kernel size of each convolutional layer is 5 and the step size is 1. Because for the deblurring task, the receptive field needs to be large to handle violent motion.

[0085] The working principle of the above technical solution is as follows: first, the underwater target image is denoised by the denoising processing module using the image denoising network structure to obtain the denoised underwater target image; then, the denoised underwater target image is color corrected by the color correction module using the color correction network to obtain the color corrected underwater target image; finally, the image enhancement module is used to enhance the color corrected underwater target image using the motion blur correction network to obtain the enhanced underwater target image. The motion blur correction network includes three sub-networks, each of which has the same structure; the sub-network includes six convolutional layers, two fully connected layers and a long short-term memory (LSTM), and the convolution kernel size of each convolutional layer is 5 and the step size is 1. Because for the deblurring task, the receptive field needs to be large to handle violent motion.

[0086] The effect of the above technical solution is: the underwater target image detection system based on deep learning proposed in this embodiment introduces the latest attention mechanism in each enhancement network, so that the network can automatically determine the importance of feature channels, effectively remove underwater noise, correct underwater color cast images, remove motion blur, restore the original color and texture details of the target objects in the underwater scene, and enhance the underwater image.

[0087] In one embodiment of the present invention, the denoising processing module includes:

[0088] The feature extraction module is used to extract the feature map of underwater target image detection from the input using one convolution and two hollow convolutions; wherein the hollow convolution can expand the receptive field so that each convolution outputs a feature map containing information in a larger range.

[0089] The learning module is adjusted to perform feature learning using a residual block including two convolutional layers according to the feature map; wherein the use of the residual structure can reduce the propagation of low-frequency information.

[0090] A reconstruction module is used to reconstruct the underwater target image using a residual network that generates feature attention through convolution to obtain a reconstructed image, wherein the reconstructed image is the denoised underwater target image.

[0091] The image denoising network structure includes a convolution and two hollow convolutions, a residual block containing two convolution layers and a convolution of a residual network for generating feature attention.

[0092] The working principle of the above technical solution is as follows: first, a feature extraction module is used to extract a feature map of underwater target image detection from the input using one convolution and two hollow convolutions; wherein the hollow convolution can expand the receptive field so that each convolution outputs a feature map containing information in a larger range. Then, an adjustment learning module is used to perform feature learning based on the feature map using a residual block containing two convolution layers; wherein the use of a residual structure can reduce the propagation of low-frequency information. Finally, a reconstruction module is used to reconstruct the underwater target image using a residual network that generates feature attention through a convolution to obtain a reconstructed image, wherein the reconstructed image is the denoised underwater target image.

[0093] The effect of the above technical solution is: the latest attention mechanism is introduced in each enhancement network, so that the network can automatically determine the importance of feature channels, effectively remove underwater noise, correct underwater color cast images, remove motion blur, restore the original color and texture details of target objects in underwater scenes, and enhance the underwater image.

[0094] In one embodiment of the present invention, the color correction module includes:

[0095] An input module, used to input the denoised underwater target image into a generator; wherein the generator is a network guided by a self-regularized attention graph mechanism;

[0096] The distance reduction module is used to reduce the characteristic distance between the denoised underwater target image with color bias and the enhanced image of preset indicators by using the perceptual loss method in the generator to obtain the underwater target image after color correction.

[0097] A self-regularized perceptual loss method is introduced into the generator to constrain the characteristic distance between the denoised underwater target image with color bias input and the enhanced image of the preset index.

[0098] The working principle of the above technical solution is as follows: first, the denoised underwater target image is input into the generator through the input module; wherein the generator is a network guided by the self-regularized attention graph mechanism; then, the distance reduction module is used in the generator to reduce the characteristic distance between the denoised underwater target image with color bias and the enhanced image of the preset index by using the perceptual loss method to obtain the color-corrected underwater target image. wherein, the perceptual loss method of self-regularization is introduced in the generator to constrain the characteristic distance between the denoised underwater target image with color bias and the enhanced image of the preset index.

[0099] The effect of the above technical solution is: the latest attention mechanism is introduced in each enhancement network, so that the network can automatically determine the importance of feature channels, effectively remove underwater noise, correct underwater color cast images, remove motion blur, restore the original color and texture details of target objects in underwater scenes, and enhance the underwater image.

[0100] In one embodiment of the present invention, the image enhancement module includes:

[0101] A feature extraction module, used to extract features of the color-corrected underwater target image through a convolution layer to obtain image features corresponding to the color-corrected underwater target image;

[0102] The image restoration module is used to input the image features into the deconvolution layer, and perform image restoration through the deconvolution layer to obtain an enhanced underwater target image.

[0103] The working principle of the above technical solution is: first, a feature extraction module is used to extract features of the color-corrected underwater target image through a convolution layer to obtain image features corresponding to the color-corrected underwater target image; then, the image features are input into a deconvolution layer through an image restoration module, and image restoration is performed through the deconvolution layer to obtain an enhanced underwater target image.

[0104] The effect of the above technical solution is: the latest attention mechanism is introduced in each enhancement network, so that the network can automatically determine the importance of feature channels, effectively remove underwater noise, correct underwater color cast images, remove motion blur, restore the original color and texture details of target objects in underwater scenes, and enhance the underwater image.

[0105] In one embodiment of the present invention, the image enhancement module includes:

[0106] After obtaining the enhanced underwater target image, pixel comparison is performed based on the enhanced underwater target image and the original underwater target image to obtain the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement. Based on the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement, it is controlled whether the enhanced underwater target image needs to be restored to the original image to ensure the authenticity of the image when the enhancement degree is not large. The specific steps include:

[0107] Step A1: Use formula (1) to compare pixels of the enhanced underwater target image and the original underwater target image to obtain the overall pixel comparison value of the two images before and after enhancement:

[0108]

[0109] where μ Q represents the overall pixel contrast value of the two images before and after enhancement; H′(i,j) represents the pixel value of the pixel in the i-th row and j-th column in the image matrix of the enhanced underwater target image; H(i,j) represents the pixel value of the pixel in the i-th row and j-th column in the image matrix of the original underwater target image; m represents the total number of pixels in any row of the image matrix; n represents the total number of pixels in any column of the image matrix; || represents the absolute value; H max Indicates the maximum value that the pixel value can take;

[0110] Step A2: Use formula (2) to compare pixels of the enhanced underwater target image and the original underwater target image to obtain the horizontal and vertical pixel comparison values ​​of the two images before and after enhancement:

[0111]

[0112] where μ z Represents the vertical pixel contrast value of the two images before and after enhancement; μ L Indicates the horizontal pixel contrast value of the two images before and after enhancement;

[0113] Step A3: Using formula (3) to control whether the enhanced underwater target image needs to be restored to the original image according to the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement

[0114]

[0115] Wherein E represents the control value of restoring the enhanced underwater target image to the original image; It means substituting the value of i from 1 to n and the value of j from 1 to m into H′(i,j) to obtain the minimum value of H′(i,j);

[0116] If E=0, the enhanced underwater target image is controlled to maintain the current image data state;

[0117] If E=1, the enhanced underwater target image is controlled to be restored to the original image.

[0118] The beneficial effect of the above technical solution is: using the formula (1) of step A1 to perform pixel comparison according to the enhanced underwater target image and the most original underwater target image, the overall pixel contrast value of the two images before and after the enhancement is obtained, so as to know the change relationship between the two images, and then know the image enhancement effect; then using the formula (2) of step A2 to perform pixel comparison according to the enhanced underwater target image and the most original underwater target image, the horizontal and vertical pixel contrast values ​​of the two images before and after the enhancement are obtained, so as to add the comparison results of the two images before and after the enhancement from multiple angles and directions, which is convenient for the accuracy of subsequent judgment and control; finally, using the formula (3) of step A3 to control whether the enhanced underwater target image needs to be restored to the original image according to the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement, so as to ensure the authenticity of the image when the degree of enhancement is not large.

[0119] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for underwater target image detection based on deep learning, characterized in that: The underwater target image detection method comprises: Performing denoising processing on the underwater target image using an image denoising network structure to obtain a denoised underwater target image; Performing color correction on the denoised underwater target image using a color correction network to obtain a color-corrected underwater target image; Performing image enhancement on the color-corrected underwater target image using a motion blur correction network to obtain an enhanced underwater target image; After obtaining the enhanced underwater target image, pixel comparison is performed based on the enhanced underwater target image and the most original underwater target image to obtain the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement. Based on the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement, it is controlled whether the enhanced underwater target image needs to be restored to the original image to ensure the authenticity of the image when the enhancement degree is not large. The specific steps include: Step A1: Use formula (1) to compare pixels of the enhanced underwater target image and the original underwater target image to obtain the overall pixel comparison value of the two images before and after enhancement: where μ Q represents the overall pixel contrast value of the two images before and after enhancement; H′(i,j) represents the pixel value of the pixel in the i-th row and j-th column in the image matrix of the enhanced underwater target image; H(i,j) represents the pixel value of the pixel in the i-th row and j-th column in the image matrix of the original underwater target image; m represents the total number of pixels in any row of the image matrix; n represents the total number of pixels in any column of the image matrix; | | represents the absolute value; H max Indicates the maximum value that the pixel value can take; Step A2: Use formula (2) to compare pixels of the enhanced underwater target image and the original underwater target image to obtain the horizontal and vertical pixel comparison values ​​of the two images before and after enhancement: where μ Z Represents the vertical pixel contrast value of the two images before and after enhancement; μ L Indicates the horizontal pixel contrast value of the two images before and after enhancement; Step A3: Using formula (3) to control whether the enhanced underwater target image needs to be restored to the original image according to the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement Wherein E represents the control value of restoring the enhanced underwater target image to the original image; It means substituting the value of i from 1 to n and the value of j from 1 to m into H′(i,j) to obtain the minimum value of H′(i,j); If E=0, the enhanced underwater target image is controlled to maintain the current image data state; If E=1, the enhanced underwater target image is controlled to be restored to the original image.

2. The underwater target image detection method according to claim 1, characterized in that: The underwater target image is denoised using the image denoising network structure to obtain the denoised underwater target image, including: Using one convolution and two hollow convolutions to extract the feature map of the underwater target image detection from the input; Using a residual block including two convolutional layers for feature learning according to the feature map; A residual network with convolutional feature attention is used to reconstruct the underwater target image to obtain a reconstructed image, wherein the reconstructed image is the denoised underwater target image.

3. The underwater target image detection method according to claim 1, characterized in that: Performing color correction on the denoised underwater target image using a color correction network to obtain a color-corrected underwater target image, including: Inputting the denoised underwater target image into a generator; The generator uses a perceptual loss method to reduce the feature distance between the denoised underwater target image with color bias and the enhanced image of the preset index, so as to obtain a color-corrected underwater target image.

4. The underwater target image detection method according to claim 1, characterized in that: The motion blur correction network includes three sub-networks, each of which has the same structure; wherein the sub-network includes six convolutional layers, two fully connected layers and a long short-term memory (LSTM), and the convolution kernel size of each convolutional layer is 5 and the step size is 1.

5. The underwater target image detection method according to claim 1, characterized in that: Performing image enhancement on the color-corrected underwater target image using a motion blur correction network to obtain an enhanced underwater target image, including: Performing feature extraction on the color-corrected underwater target image through a convolution layer to obtain image features corresponding to the color-corrected underwater target image; The image features are input into a deconvolution layer, and image restoration is performed through the deconvolution layer to obtain an enhanced underwater target image.

6. An underwater target image detection system based on deep learning, characterized in that: The underwater target image detection system comprises: A denoising processing module is used to perform denoising processing on the underwater target image using an image denoising network structure to obtain a denoised underwater target image; A color correction module, used for performing color correction on the denoised underwater target image using a color correction network to obtain a color-corrected underwater target image; An image enhancement module is used to enhance the underwater target image after color correction by using a motion blur correction network to obtain an enhanced underwater target image; Wherein, the image enhancement module includes: A feature extraction module, used to extract features of the color-corrected underwater target image through a convolution layer to obtain image features corresponding to the color-corrected underwater target image; An image restoration module, used for inputting the image features into a deconvolution layer, and performing image restoration through the deconvolution layer to obtain an enhanced underwater target image; Wherein, the image enhancement module includes: After obtaining the enhanced underwater target image, pixel comparison is performed based on the enhanced underwater target image and the original underwater target image to obtain the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement. Based on the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement, it is controlled whether the enhanced underwater target image needs to be restored to the original image to ensure the authenticity of the image when the enhancement degree is not large. The specific steps include: Step A1: Use formula (1) to compare pixels of the enhanced underwater target image and the original underwater target image to obtain the overall pixel comparison value of the two images before and after enhancement: where μ Q represents the overall pixel contrast value of the two images before and after enhancement; H′(i,j) represents the pixel value of the pixel in the i-th row and j-th column in the image matrix of the enhanced underwater target image; H(i,j) represents the pixel value of the pixel in the i-th row and j-th column in the image matrix of the original underwater target image; m represents the total number of pixels in any row of the image matrix; n represents the total number of pixels in any column of the image matrix; | | represents the absolute value; H max Indicates the maximum value that the pixel value can take; Step A2: Use formula (2) to compare pixels of the enhanced underwater target image and the original underwater target image to obtain the horizontal and vertical pixel comparison values ​​of the two images before and after enhancement: where μ Z Represents the vertical pixel contrast value of the two images before and after enhancement; μ L Indicates the horizontal pixel contrast value of the two images before and after enhancement; Step A3: Using formula (3) to control whether the enhanced underwater target image needs to be restored to the original image according to the overall pixel contrast value and the horizontal and vertical pixel contrast value of the two images before and after the enhancement Wherein E represents the control value of restoring the enhanced underwater target image to the original image; It means substituting the value of i from 1 to n and the value of j from 1 to m into H′(i,j) to obtain the minimum value of H′(i,j); If E=0, the enhanced underwater target image is controlled to maintain the current image data state; If E=1, the enhanced underwater target image is controlled to be restored to the original image.

7. The underwater target image detection system according to claim 6, characterized in that: The denoising processing module comprises: A feature extraction module, used to extract a feature map of underwater target image detection from an input using one convolution and two hollow convolutions; An adjustment learning module is used for feature learning using a residual block including two convolutional layers according to the feature map; A reconstruction module is used to reconstruct the underwater target image using a residual network that generates feature attention through convolution to obtain a reconstructed image, wherein the reconstructed image is the denoised underwater target image.

8. The underwater target image detection system according to claim 6, characterized in that: The color correction module comprises: An input module, used for inputting the denoised underwater target image into a generator; The distance reduction module is used to reduce the characteristic distance between the denoised underwater target image with color bias and the enhanced image of preset indicators by using the perceptual loss method in the generator to obtain the underwater target image after color correction.

9. The underwater target image detection system according to claim 6, characterized in that: The motion blur correction network includes three sub-networks, each of which has the same structure; wherein the sub-network includes six convolutional layers, two fully connected layers and a long short-term memory, and the convolution kernel size of each convolutional layer is 5 and the step size is 1.

Citation Information

Patent Citations

  • Image enhancement method and device, computer equipment and storage medium

    CN109801244A

  • Infrared thermal imaging image enhancement method, device and equipment and readable storage medium

    CN113256525A

  • Multi-module cascaded underwater image enhancement method

    CN114612347A

  • Method and apparatus for contrast enhancement

    EP0527525A2