A multi-eye image acquisition and preprocessing system and method for sea surface scenes
Through the simultaneous acquisition, splicing and adaptive enhancement processing of multi-camera images, the problem of multi-target recognition and real-time performance in the sea surface image acquisition system is solved, high-resolution, large-field image data generation and interference removal are achieved, improving image quality and real-time.
Patent Information
- Application Number
- CN202410747126.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-11
AI Technical Summary
Due to the narrow field of view and low resolution of a single camera, the existing sea surface image acquisition system cannot effectively handle multiple targets and fast-moving targets on the sea surface, and the multi-camera hardware is susceptible to interference, resulting in inconsistent image data timing, affecting real-time performance and image quality.
The multi-camera image synchronization acquisition subsystem, image splicing subsystem and adaptive enhancement subsystem are used to generate high-resolution and large-field-of-view spliced images through simultaneous acquisition of multi-camera images, color compensation, image registration and multi-scale interference removal processing. , and use the sea surface image quality evaluation network model and the multi-scale interference removal network model to identify and remove interference, and restore the pseudo-clear image.
It achieves timing alignment of multi-camera image data, eliminates color errors, improves image resolution and field of view, enhances image quality, ensures real-time performance and visibility, and provides high-quality image data.
Smart Images

Figure CN118333909B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a multi-eye image acquisition and preprocessing system and method for sea surface scenes. Background Art
[0002] Computer vision is an important branch of artificial intelligence. Its purpose is to use computers and sensors to automatically collect and process scene images instead of human eyes. In various practical applications, the image acquisition system is the basis for the development of computer vision perception systems, providing high-quality data for computers to process and analyze targets in images.
[0003] Sea surface image acquisition systems are widely used in automatic navigation and obstacle avoidance of unmanned boats. At present, most sea surface image acquisition systems are based on a single camera for data collection. Limited by the inherent characteristics of the narrow field of view and low resolution of the monocular camera, it is not conducive to the perception of multiple targets and fast-moving targets on the sea surface. In addition, limited by the inherent susceptibility to interference of multi-camera hardware, the timestamps of the collected image data cannot be guaranteed to be completely consistent, and the real-time nature of the image cannot be guaranteed. In addition, the existing marine image acquisition system only completes the acquisition of images. Due to the complex and changeable sea surface environmental conditions, the collected images have various types of interference factors (such as fog, backlight, low contrast, rain, etc.), which not only affects the operator's intuitive feeling of the collected images, but also is not conducive to the subsequent processing of the target object by the computer. Summary of the invention
[0004] In view of this, the present invention provides a multi-camera image acquisition and preprocessing system and method for sea surface scenes, which are used to at least solve the problem of complex and difficult to handle interference between multiple camera images in sea surface scenes in the prior art.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] A multi-camera image acquisition and preprocessing system for sea surface scenes, comprising: a multi-camera image synchronous acquisition subsystem, an image stitching subsystem and an adaptive enhancement subsystem connected in sequence;
[0007] The multi-camera image synchronous acquisition subsystem is used to synchronously acquire multi-camera images and complete the stable transmission of multi-camera images, and ensure the interaction of multi-camera image data between different processes to meet the real-time stitching requirements;
[0008] The image stitching subsystem is used to perform color compensation, image registration and image fusion processing on the multi-camera images collected to obtain a stitched image with high resolution and large field of view;
[0009] The adaptive enhancement subsystem includes a sea surface image quality assessment network model and a multi-scale interference removal network model. The sea surface image quality assessment network model is used to identify the interference type of the spliced image in the form of a probability vector, and the multi-scale interference removal network model is used to adaptively enhance and restore the interfered image with high quality according to the probability vector to obtain a pseudo-clear image.
[0010] Preferably, the multi-camera image synchronization acquisition subsystem includes a synchronization trigger box, a camera monitoring module, and a data distribution service publishing interface;
[0011] A synchronous trigger box is used as a synchronous controller to send trigger signals to multiple cameras for synchronous acquisition of multiple images;
[0012] The camera monitoring module is used to work in software interrupt mode, receive multi-camera images, and call the data distribution service publishing interface;
[0013] The data distribution service publishing interface is used to publish image content to the DDS global data space using shared memory.
[0014] Preferably, the image stitching subsystem includes a color compensation module, an image registration module and an image fusion module;
[0015] Color compensation module, used to eliminate color errors caused by different camera sensor characteristics, to avoid obvious stitching lines and color differences from different image parts after stitching;
[0016] An image registration module is used to detect feature points in the overlapping area of two adjacent images and perform cylindrical projection on the matched feature points to obtain a transformation model for image fusion;
[0017] The image fusion module is used to fuse multiple images with overlapping areas into a high-resolution and large-viewing-field stitched image through a transformation model.
[0018] Preferably, the color compensation module includes a color space conversion unit, a three-channel histogram statistics unit and a gamma conversion unit:
[0019] A color space conversion unit, used for selecting images with overlapping areas, converting the selected images from sRGB space to RGB space, and then converting from RGB space to Lab space;
[0020] A three-channel histogram statistics unit is used to count the histograms of the three channels of the image converted by the color space conversion unit according to the pixel values;
[0021] The gamma transform unit is used to select the image captured by the middle camera as the template and other images with overlapping areas as the images to be transformed, and use gamma transform to make the histogram distribution of the three channels corresponding to the images to be transformed close to the histogram distribution of the three channels of the template.
[0022] Preferably, the conversion content of the color space conversion unit includes: converting the image from sRGB space to RGB space through gamma conversion, converting the RGB space to XYZ through linear mapping, and then converting to Lab color space; wherein,
[0023] sRGB is normalized and converted to RGB color space through gamma transformation:
[0024]
[0025] in,
[0026] Convert the RGB space to XYZ space using a linear transformation matrix:
[0027]
[0028] The superscript T indicates transposition.
[0029] Normalize the XYZ space:
[0030]
[0031] Among them, X REF , Y REF and Z REF are constants respectively;
[0032] Then perform nonlinear transformation and linear transformation to finally convert to Lab color space:
[0033]
[0034] Where A∈{x,y,z};
[0035]
[0036] Preferably, the gamma transform is:
[0037] S=C·r γ (6)
[0038] Among them, r is each channel image, C is the grayscale scaling factor, and γ is the gamma factor, whose size controls the scaling degree of the transformation.
[0039] Preferably, the image registration module includes a SIFT feature detection unit and a mapping unit:
[0040] SIFT feature detection unit, used to extract feature points of two adjacent images with overlapping areas, and determine the corresponding matching relationship between the feature points of the two images, construct a KD tree index for all feature descriptions in one of the images, and use the KD tree index to find the corresponding matching point for each feature point in the other image;
[0041] The mapping unit is used to perform cylindrical projection on the matched feature points and obtain the transformation model of image fusion through the homography matrix.
[0042] Preferably, the sea surface image quality assessment network model includes a preliminary feature extractor, a local feature extractor, a global feature extractor, and a fusion network:
[0043] The preliminary feature extractor includes convolutional layers, batch normalization layers, and max pooling layers, which are used to convert the pixels of the input image N(k) into perceptually meaningful and interference-related feature representations; where the input image N(k) is:
[0044]
[0045] Among them, X (k) represents the kth image, p (k) Represents the interference type probability vector of the kth image;
[0046] The local feature extractor and the global feature extractor are used to perform local feature extraction and global feature extraction on the feature representation respectively and obtain the local feature representation and the global feature representation respectively;
[0047] The fusion network is used to interact and aggregate local and global feature information after splicing the local feature representation with the global feature representation in the channel dimension, obtain different interference types and output the interference probability value output vector:
[0048]
[0049] in: represents the probability of C types of interference; W 1 is the preliminary feature extractor parameter; W 2 is the fusion network parameter; w 1 and w 2 are the parameters of the local feature extractor and the global feature extractor respectively.
[0050] Preferably, the multi-scale interference removal network model includes a repair network;
[0051] The repair network is used to obtain the interfered image and its corresponding interference probability value output vector, and output a pseudo-clear image after removing the interference;
[0052] The overall loss function of the multi-scale de-interference network includes the similarity loss L S , color loss L c , Structural loss L is , local feature loss L loc and the global feature loss L glo ; During the training process, the calculated loss is back-propagated to the repair network to update the parameters; the overall loss function is:
[0053] L=ω S L S +ω C L C +ω is L is +ω loc L loc +ω glo L glo (9)
[0054] Among them, ω S ,ω C ,ω is ,ω loc ,ω glo Represent the weight of each loss respectively;
[0055] Similarity loss L S for:
[0056]
[0057] Among them, p represents each pixel, I and Represent the target clear image and pseudo clear image respectively;
[0058] Color loss L c Used to make the pseudo-clear image as close to the target clear image in color as possible:
[0059]
[0060] Among them, p represents each pixel, Representation calculation (I) p , The angle between them is considered as a three-dimensional vector [r, g, b] T ;
[0061] Structural loss L is for:
[0062]
[0063] in, Represents the gradient, including Horizontal gradient and The vertical gradient, a, is the coefficient of the intensity of the equilibrium structure consciousness;
[0064] Local feature loss L loc for:
[0065]
[0066] Among them, A represents each pixel of the local feature map, F A and Represent the target clear image I and the pseudo clear image respectively Local feature map of ;
[0067] Global feature loss L gio for:
[0068]
[0069] Among them, B represents each pixel of the global feature map, F B and Represent the target clear image I and the pseudo clear image respectively The global feature map of .
[0070] A multi-eye image acquisition and preprocessing method for sea surface scenes comprises the following steps:
[0071] Synchronously capture multi-camera images and complete stable transmission of multi-camera images, and ensure that multi-camera image data interacts between different processes to meet real-time stitching requirements;
[0072] Perform color compensation, image registration and image fusion processing on the collected multi-camera images to obtain high-resolution and large-field-of-view stitched images;
[0073] Identify the interference type of the spliced image in the form of a probability vector;
[0074] The disturbed image is adaptively enhanced and restored with high quality according to the probability vector to obtain a pseudo clear image.
[0075] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a multi-eye image acquisition and preprocessing system and method for sea surface scenes, which has the following beneficial effects:
[0076] 1. The multi-camera image synchronous acquisition subsystem can ensure that the image data collected by multiple cameras are aligned in time sequence to meet the needs of real-time stitching. This synchronous acquisition mode can ensure high throughput of the communication link, stable transmission of large amounts of collected image data and consistent timestamps of multiple collected images.
[0077] 2. The image stitching subsystem can eliminate the color errors caused by the characteristics of different camera sensors, avoid the obvious visible stitching lines and color differences from different image parts after stitching, and can efficiently reduce the color differences of low-resolution, small-field-of-view monocular images collected synchronously by multiple cameras and stitch them into high-resolution, large-field-of-view images to achieve the speed of video processing.
[0078] 3. The adaptive enhancement subsystem adopts an image adaptive enhancement method based on a multi-scale convolutional neural network, which is guided by the image quality evaluation score for multi-source interference. The image quality evaluation network is input to judge the spliced image to obtain its interference probability vector, which is then input into the multi-scale de-interference network model for adaptive enhancement. The adaptive enhancement method not only ensures the subjective visibility of the image data, but also effectively avoids the disturbance of the image features by interference factors, providing high-quality image data for subsequent visual perception tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0080] Figure 1 A structural diagram of a multi-eye image acquisition and preprocessing system for sea surface scenes provided by the present invention;
[0081] Figure 2 is a multi-camera image synchronous acquisition flow chart provided by an embodiment of the present invention;
[0082] Figure 3 is an image stitching flow chart provided by an embodiment of the present invention;
[0083] Figure 4 is a flow chart of a color compensation method provided by an embodiment of the present invention;
[0084] Figure 5 is an adaptive enhancement flow chart provided by an embodiment of the present invention;
[0085] Figure 6 is a structural diagram of a sea surface image quality assessment network model provided by an embodiment of the present invention;
[0086] Figure 7 It is a structural diagram of the image multi-scale interference removal network model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0087] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0088] The present invention provides a multi-eye image acquisition and preprocessing system for sea surface scenes, such as Figure 1 As shown, it includes: a multi-camera image synchronous acquisition subsystem, an image stitching subsystem and an adaptive enhancement subsystem are connected in sequence;
[0089] The multi-camera image synchronous acquisition subsystem is used to synchronously acquire multi-camera images and complete the stable transmission of multi-camera images, and ensure the interaction of multi-camera image data between different processes to meet the real-time stitching requirements;
[0090] The image stitching subsystem is used to perform color compensation, image registration and image fusion processing on the multi-camera images collected to obtain a stitched image with high resolution and large field of view;
[0091] The adaptive enhancement subsystem includes a sea surface image quality assessment network model and a multi-scale interference removal network model. The sea surface image quality assessment network model is used to identify the interference type of the spliced image in the form of a probability vector, and the multi-scale interference removal network model is used to adaptively enhance and restore the interfered image with high quality according to the probability vector to obtain a pseudo-clear image.
[0092] It should be noted that:
[0093] The multi-camera image synchronous acquisition subsystem guarantees high throughput of the communication link, ensures stable transmission of large amounts of acquired image data and consistent timestamps of multiple acquired images, and realizes synchronous triggering of multiple cameras under the control of external timing. The camera listening program publishes the image data to the global data space of the Data Distribution Service (DDS), ensuring consistent timestamps of image data acquired by multiple cameras and interaction of multiple image data between different processes, thus ensuring the real-time nature of the image and meeting the needs of real-time stitching.
[0094] The image stitching subsystem efficiently stitches low-resolution, small-field-of-view monocular images acquired synchronously by multiple cameras into high-resolution, large-field-of-view images, achieving the speed of video processing.
[0095] The adaptive enhancement subsystem ensures the subjective beauty and visibility of image data, and effectively avoids the disturbance of image features by interference factors, providing high-quality image data for subsequent visual perception tasks.
[0096] In order to further implement the above technical solution, the multi-camera image synchronization acquisition subsystem includes a synchronization trigger box, a camera monitoring module, and a data distribution service publishing interface;
[0097] A synchronous trigger box is used as a synchronous controller to send trigger signals to multiple cameras for synchronous acquisition of multiple images;
[0098] The camera monitoring module is used to work in software interrupt mode, receive multi-camera images, and call the data distribution service publishing interface;
[0099] The data distribution service publishing interface is used to publish image content to the DDS global data space using shared memory.
[0100] It should be noted that:
[0101] In this embodiment, synchronous triggering refers to using the Luster synchronous trigger box as a synchronous controller to control multi-camera image acquisition, and the trigger delay is less than 1ms; Figure 2 As shown, the camera monitoring module works in a software interrupt mode, waiting for the synchronization trigger box to trigger the four cameras to capture images.
[0102] The synchronous acquisition signal of the synchronous trigger box is a square wave signal with a set frequency and duty cycle. When the camera receives a high-level signal, it is triggered to perform acquisition. The set frequency is set by the operator and is used to control the frequency of the camera to acquire images.
[0103] Data Distribution Service (DDS) is a communication architecture based on publishing and subscription, which can realize one-to-many and many-to-many communication, emphasize data-centricity, provide multiple QoS service quality strategies, and meet the real-time and efficient distribution of data. Global Data Space (GDS) is a concept established by data distribution service. Publishers of external data and subscribers of data are based on this global data space. DDS realizes the transmission of image data of multiple processes to the image stitching process. The present invention establishes the camera monitoring module and the image stitching subsystem as the publisher and subscriber of the global data space of DDS respectively, so as to realize the efficient transmission of collected image data.
[0104] In order to further implement the above technical solution, the image stitching subsystem includes a color compensation module, an image registration module and an image fusion module;
[0105] Color compensation module, used to eliminate color errors caused by different camera sensor characteristics, to avoid obvious stitching lines and color differences from different image parts after stitching;
[0106] An image registration module is used to detect feature points in the overlapping area of two adjacent images and perform cylindrical projection on the matched feature points to obtain a transformation model for image fusion;
[0107] The image fusion module is used to fuse multiple images with overlapping areas into a high-resolution and large-viewing-field stitched image through a transformation model.
[0108] It should be noted that:
[0109] The color compensation method provided by the present invention converts the image data collected by different cameras from the RGB color space to the Lab color space, separates the brightness channel and the color channel, and uses the histogram information of the pixel intensity and color intensity in the overlapping area to perform gamma transformation to make the two images as similar as possible.
[0110] In order to further implement the above technical solution, the color compensation module includes a color space conversion unit, a three-channel histogram statistics unit and a gamma conversion unit:
[0111] A color space conversion unit, used for selecting images with overlapping areas, converting the selected images from sRGB space to RGB space, and then converting from RGB space to Lab space;
[0112] A three-channel histogram statistics unit is used to count the histograms of the three channels of the image converted by the color space conversion unit according to the pixel values;
[0113] The gamma transform unit is used to select the image captured by the middle camera as the template and other images with overlapping areas as the images to be transformed, and use gamma transform to make the histogram distribution of the three channels corresponding to the images to be transformed close to the histogram distribution of the three channels of the template.
[0114] It should be noted that:
[0115] The advantages of using the middle camera as a template are: 1. The relative position of the middle camera and the other two cameras is fixed. Once its field of view angle is given, the area (field of view angle) of the overlapping area on the left and right is fixed, which is convenient for calculation; 2. Since the gamma transform is calculated based on the histogram statistics of the overlapping area, if the left camera image is selected as the template, the middle camera will be the first to undergo gamma transform, and the right camera will then be transformed based on the histogram of the middle and side cameras. The error will increase through the transfer exponential and cannot be calculated in parallel.
[0116] In order to further implement the above technical solution, the conversion content of the color space conversion unit includes: converting the image from the sRGB space to the RGB space through gamma transformation, converting the RGB space to XYZ through linear mapping, and then converting to the Lab color space; wherein,
[0117] sRGB is normalized and converted to RGB color space through gamma transformation:
[0118]
[0119] in,
[0120] Convert the RGB space to XYZ space using a linear transformation matrix:
[0121]
[0122] The superscript T indicates transposition.
[0123] Normalize the XYZ space:
[0124]
[0125] Among them, X REF , Y REF and Z REF are constants respectively;
[0126] Then perform nonlinear transformation and linear transformation to finally convert to Lab color space:
[0127]
[0128] Where A∈{x,y,z};
[0129]
[0130] In order to further implement the above technical solution, the gamma transformation is:
[0131] S=C·r γ (6)
[0132] Among them, r is each channel image, C is the grayscale scaling factor, and γ is the gamma factor, whose size controls the scaling degree of the transformation.
[0133] It should be noted that:
[0134] The conversion process of color space transformation unit is as follows Figure 4 As shown, in this embodiment, the constant X REF , Y REF and Z REF Set to 0.95047, 1.0, and 1.08883 respectively.
[0135] In order to further implement the above technical solution, the image registration module includes a SIFT feature detection unit and a mapping unit:
[0136] SIFT feature detection unit, used to extract feature points of two adjacent images with overlapping areas, and determine the corresponding matching relationship between the feature points of the two images, construct a KD tree index for all feature descriptions in one of the images, and use the KD tree index to find the corresponding matching point for each feature point in the other image;
[0137] The mapping unit is used to perform cylindrical projection on the matched feature points and obtain the transformation model of image fusion through the homography matrix.
[0138] It should be noted that:
[0139] Image registration uses SIFT feature detection method, which is scale and rotation invariant and highly adaptable to illumination changes. The feature points extracted by SIFT have a large difference, which is conducive to feature matching. Constructing KD tree index improves matching efficiency.
[0140] In this embodiment, the homography matrix is an 8-degree-of-freedom matrix, which theoretically requires 4 feature points to be solved. Since the number of feature point pairs is generally much greater than 4, the equations for solving the homography matrix are overdetermined. The RANSAC algorithm is used to eliminate mismatched point pairs and obtain an accurate 8-parameter transformation model; the image fusion uses the common pyramid multi-resolution fusion method.
[0141] like Figure 5 As shown, the adaptive enhancement adopts an image adaptive enhancement method based on a multi-scale convolutional neural network and guided by an image quality evaluation score for multi-source interference.
[0142] In order to further implement the above technical solution, the sea surface image quality evaluation network model includes a preliminary feature extractor, a local feature extractor, a global feature extractor, and a fusion network:
[0143] The preliminary feature extractor includes convolutional layers, batch normalization layers, and max pooling layers, which are used to convert the pixels of the input image N(k) into perceptually meaningful and interference-related feature representations; where the input image N(k) is:
[0144]
[0145] Among them, X (k) represents the kth image, p (k) Represents the interference type probability vector of the kth image;
[0146] The local feature extractor and the global feature extractor are used to perform local feature extraction and global feature extraction on the feature representation respectively and obtain the local feature representation and the global feature representation respectively;
[0147] The fusion network is used to interact and aggregate local and global feature information after splicing the local feature representation with the global feature representation in the channel dimension, obtain different interference types and output the interference probability value output vector:
[0148]
[0149] in: represents the probability of C types of interference; W 1 is the preliminary feature extractor parameter; W 2 is the fusion network parameter; w 1 and w 2 are the parameters of the local feature extractor and the global feature extractor respectively.
[0150] It should be noted that:
[0151] like Figure 6 As shown in the figure, the image quality assessment network aims to identify the type of interference in the image in the form of a probability vector. The output vector contains the probability values of different types of interference and serves as the input of the subsequent interference removal network model. The preliminary feature extractor includes multiple convolutions, batch normalization layers, and maximum pooling layers; the local feature representation includes structural detail information, local shadows, etc., and the global feature representation includes color distribution, global brightness, etc.; the preliminary feature extraction layer is a pre-trained ResNet-18, the local feature extractor is a U-shaped network consisting of a convolution layer, a batch normalization layer, and an upsampling layer, and the global feature extractor consists of a convolution layer, a multi-head self-attention module, and a batch normalization layer. Different heads can focus on different global features. After the local and global feature information are interacted and aggregated, a 1×1 convolution kernel is used to obtain a C-dimensional feature vector, and finally the Softmax function is used to encode the interference range into [0,1].
[0152] To further implement the above technical solution, the multi-scale de-interference network model includes a repair network;
[0153] The repair network is used to obtain the interfered image and its corresponding interference probability value output vector, and output a pseudo-clear image after removing the interference;
[0154] The overall loss function of the multi-scale de-interference network includes the similarity loss L S , color loss L c , Structural loss L is , local feature loss L loc and the global feature loss L glo ; During the training process, the calculated loss is back-propagated to the repair network to update the parameters; the overall loss function is:
[0155] L=ω S L S +ωC L C +ω is L is +ω loc L loc +ω glo L glo (9)
[0156] Among them, ω S ,ω C ,ω is ,ω loc ,ω glo Represent the weight of each loss respectively;
[0157] Similarity loss L S for:
[0158]
[0159] Among them, p represents each pixel, I and Represent the target clear image and pseudo clear image respectively;
[0160] Color loss L c Used to make the pseudo-clear image as close to the target clear image in color as possible:
[0161]
[0162] Among them, p represents each pixel, Representation calculation (I) p , The angle between them is considered as a three-dimensional vector [r, g, b] T ;
[0163] Structural loss L is for:
[0164]
[0165] in, Represents the gradient, including Horizontal gradient and vertical gradient, α is the coefficient of the strength of the balanced structural awareness;
[0166] Local feature loss L loc for:
[0167]
[0168] Among them, A represents each pixel of the local feature map, F A and Represent the target clear image I and the pseudo clear image respectively Local feature map of ;
[0169] Global feature loss L glo for:
[0170]
[0171] Among them, B represents each pixel of the global feature map, F B and Represent the target clear image I and the pseudo clear image respectively The global feature map of .
[0172] It should be noted that:
[0173] like Figure 7 As shown in the figure, the multi-scale de-interference network model aims to adaptively enhance and restore the interfered image with high quality. The local features and global features obtained in this module are obtained through local feature extractors and global feature extractors, which are completely consistent with the local feature extractors and global feature extractors in the sea surface image quality assessment network model, and the parameters are also shared. After the two are trained in the quality assessment network, the parameters are not updated again in the de-interference network.
[0174] In this embodiment, ω S ,ω C ,ω is ,ω loc ,ω glo Set to 0.5, 0.2, 0.2, 0.05, 0.05 respectively
[0175] A multi-eye image acquisition and preprocessing method for sea surface scenes comprises the following steps:
[0176] Synchronously capture multi-camera images and complete stable transmission of multi-camera images, and ensure that multi-camera image data interacts between different processes to meet real-time stitching requirements;
[0177] Perform color compensation, image registration and image fusion processing on the collected multi-camera images to obtain high-resolution and large-field-of-view stitched images;
[0178] Identify the interference type of the spliced image in the form of a probability vector;
[0179] The disturbed image is adaptively enhanced and restored with high quality according to the probability vector to obtain a pseudo clear image.
[0180] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A multi-eye image acquisition and preprocessing system for sea surface scenes, characterized in that: include: The multi-camera image synchronous acquisition subsystem, the image stitching subsystem and the adaptive enhancement subsystem are connected in sequence; The multi-camera image synchronous acquisition subsystem is used to synchronously acquire multi-camera images and complete the stable transmission of multi-camera images, and ensure the interaction of multi-camera image data between different processes to meet the real-time stitching requirements; The image stitching subsystem is used to perform color compensation, image registration and image fusion processing on the multi-camera images collected to obtain a stitched image with high resolution and large field of view; The adaptive enhancement subsystem includes a sea surface image quality assessment network model and a multi-scale interference removal network model. The sea surface image quality assessment network model is used to identify the interference type of the spliced image in the form of a probability vector, and the multi-scale interference removal network model is used to adaptively enhance and restore the interfered image with high quality according to the probability vector to obtain a pseudo-clear image. The sea surface image quality assessment network model includes preliminary feature extractor, local feature extractor, global feature extractor, and fusion network: The preliminary feature extractor is used to convert the input image N ( k ) pixels into a perceptually meaningful and noise-relevant feature representation: The input image N ( k ) is: (1) in, represents the kth image, represents the interference type probability vector of the kth image, where K is the number of input images; The local feature extractor and the global feature extractor are used to perform local feature extraction and global feature extraction on the feature representation respectively and obtain the local feature representation and the global feature representation respectively; The fusion network is used to interact and aggregate local and global feature information after splicing the local feature representation with the global feature representation in the channel dimension, obtain different interference types and output the interference probability value output vector: (2) in: represents the probability of C interference types; are the preliminary feature extractor parameters; is the fusion network parameter; are the local feature extractor and global feature extractor parameters respectively; The multi-scale de-interference network model includes a repair network; The repair network is used to obtain the interfered image and its corresponding interference probability value output vector, and output a pseudo-clear image after removing the interference; The overall loss function of the multi-scale de-interference network includes similarity loss , color loss , Structural losses , local feature loss and global feature loss ; During the training process, the calculated loss is back-propagated to the repair network to update the parameters; The overall loss function is: (9) in, , , , , Represent the weight of each loss respectively; Similarity loss for: (10) in, Represents each pixel, and Represent the target clear image and pseudo clear image respectively; Color loss Used to make the pseudo-clear image as close to the target clear image in color as possible: (11) in, Represents each pixel, Representation calculation The angle between them is considered as a three-dimensional vector ; Structural losses for: (12) in, Represents the gradient, including Horizontal gradient and vertical gradient, is the coefficient for balancing the strength of structural awareness; Local feature loss for: (13) in, Represents each pixel of the local feature map, and Respectively represent the target clear image and pseudo-clear images Local feature map of ; Global feature loss for: (14) in, Represents each pixel of the global feature map, and Respectively represent the target clear image and pseudo-clear images The global feature map of .
2. The multi-eye image acquisition and preprocessing system for sea surface scenes according to claim 1 is characterized in that: The multi-camera image synchronization acquisition subsystem includes a synchronization trigger box, a camera monitoring module, and a data distribution service publishing interface; A synchronous trigger box is used as a synchronous controller to send trigger signals to multiple cameras for synchronous acquisition of multiple images; The camera monitoring module is used to work in software interrupt mode, receive multi-camera images, and call the data distribution service publishing interface; The data distribution service publishing interface is used to publish image content to the DDS global data space using shared memory.
3. The multi-eye image acquisition and preprocessing system for sea surface scenes according to claim 1 is characterized in that: The image stitching subsystem includes a color compensation module, an image registration module and an image fusion module; Color compensation module, used to eliminate color errors caused by different camera sensor characteristics, to avoid obvious stitching lines and color differences from different image parts after stitching; An image registration module is used to detect feature points in the overlapping area of two adjacent images and perform cylindrical projection on the matched feature points to obtain a transformation model for image fusion; The image fusion module is used to fuse multiple images with overlapping areas into a high-resolution and large-viewing-field stitched image through a transformation model.
4. The multi-eye image acquisition and preprocessing system for sea surface scenes according to claim 3 is characterized in that: The color compensation module includes a color space conversion unit, a three-channel histogram statistics unit, and a gamma conversion unit: A color space conversion unit, used for selecting images with overlapping areas, converting the selected images from sRGB space to RGB space, and then converting from RGB space to Lab space; A three-channel histogram statistics unit is used to count the histograms of the three channels of the image converted by the color space conversion unit according to the pixel values; The gamma transform unit is used to select the image captured by the middle camera as the template and other images with overlapping areas as the images to be transformed, and use gamma transform to make the histogram distribution of the three channels corresponding to the images to be transformed close to the histogram distribution of the three channels of the template.
5. The multi-eye image acquisition and preprocessing system for sea surface scenes according to claim 4 is characterized in that: The conversion content of the color space conversion unit includes: converting the image from sRGB space to RGB space through gamma transformation, converting RGB space to XYZ through linear mapping, and then converting to Lab color space; among them, sRGB is normalized and converted to RGB color space through gamma transformation: (3) in, ; Convert the RGB space to XYZ space using a linear transformation matrix: (4) The superscript T indicates transposition. ; Normalize the XYZ space: (5) in, , and are constants respectively; Then perform nonlinear transformation and linear transformation to finally convert to Color Space: (6) in, ; (7)。 6. The multi-eye image acquisition and preprocessing system for sea surface scenes according to claim 3 is characterized in that: The gamma transform is: (8) in, For each channel graph, is the grayscale scaling factor, is the gamma factor, whose size controls the degree of scaling of the transform.
7. The multi-eye image acquisition and preprocessing system for sea surface scenes according to claim 3 is characterized in that: The image registration module includes a SIFT feature detection unit and a mapping unit: SIFT feature detection unit, used to extract feature points of two adjacent images with overlapping areas, and determine the corresponding matching relationship between the feature points of the two images, construct a KD tree index for all feature descriptions in one of the images, and use the KD tree index to find the corresponding matching point for each feature point in the other image; The mapping unit is used to perform cylindrical projection on the matched feature points and obtain the transformation model of image fusion through the homography matrix.
8. A multi-eye image acquisition and preprocessing method for sea surface scenes, based on a multi-eye image acquisition and preprocessing system for sea surface scenes according to any one of claims 1 to 7, characterized in that: The following steps are involved: Synchronously capture multi-camera images and complete stable transmission of multi-camera images, and ensure that multi-camera image data interacts between different processes to meet real-time stitching requirements; Perform color compensation, image registration and image fusion processing on the collected multi-camera images to obtain high-resolution and large-field-of-view stitched images; Identify the interference type of the spliced image in the form of a probability vector; The disturbed image is adaptively enhanced and restored with high quality according to the probability vector to obtain a pseudo clear image.
Citation Information
Patent Citations
Video restoration method based on optical flow method and multi-view scene
CN114119424A
Interference identification method based on deep learning
CN115296759A
