Underwater foreign body detection method, device and storage medium based on multi-dimensional spectral parameters
By employing a multidimensional spectral parameter-based underwater foreign object detection method, utilizing image registration, scattering matrix, and polarization analysis, the problem of low accuracy in underwater foreign object detection is solved, achieving efficient identification and classification of underwater foreign objects.
Patent Information
- Application Number
- CN202410604143.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-05-15
AI Technical Summary
Traditional underwater foreign object detection methods suffer from insufficient imaging light due to the absorption and scattering of light by the water, resulting in dim and low-resolution images and low identification accuracy.
A detection method based on multidimensional spectral parameters is adopted. By acquiring a group of multidimensional spectral images for image registration, extracting feature parameters to construct a scattering matrix, performing polarization analysis, extracting polarization feature spectra, identifying regions of interest for underwater foreign objects, and performing foreign object feature analysis.
It improves the accuracy of underwater foreign object identification, enabling precise identification of the presence, type, size, and material of foreign objects, thus enhancing detection efficiency.
Smart Images

Figure CN118447380B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an underwater foreign body detection method based on multi-dimensional spectral parameters, an electronic device and a computer-readable storage medium. Background Art
[0002] Underwater foreign object detection refers to the process of using various technologies to identify, locate and evaluate objects in the underwater environment that are not natural or are not a normal part of the environment. Underwater foreign objects include but are not limited to shipwrecks, waste, underwater rocks, unexploded ordnance, excessive growth of aquatic plants, invasive alien species, and any objects that may hinder underwater activities or cause harm to the environment.
[0003] Traditional underwater foreign object detection methods, especially those that rely on optical imaging, will experience rapid attenuation of light intensity because water absorbs and scatters light significantly more than air, reducing the total amount of light reaching underwater objects, resulting in insufficient imaging light, dim images, and loss of details. In addition, particles in the water can cause backscattering of light, that is, part of the light scatters in all directions after hitting particles, further reducing image clarity and target recognizability. Therefore, current underwater foreign object detection methods still have the problem of low accuracy in underwater foreign object recognition. Summary of the invention
[0004] The present invention provides an underwater foreign body detection method, device and computer-readable storage medium based on multi-dimensional spectral parameters, the main purpose of which is to solve the problem of low detection accuracy when identifying underwater foreign bodies.
[0005] To achieve the above object, the present invention provides an underwater foreign body detection method based on multi-dimensional spectral parameters, comprising:
[0006] Acquire a multi-dimensional spectral image group, and perform image registration on the multi-dimensional spectral image group to obtain a multi-spectral image;
[0007] Extracting characteristic parameters from the multispectral image, and constructing a scattering matrix using the characteristic parameters;
[0008] Using the scattering matrix to perform polarization analysis on polarization data in the multispectral image to obtain a polarization characteristic spectrum, and using the polarization characteristic spectrum to extract a foreign body part image from the multispectral image to obtain an underwater foreign body image of interest;
[0009] The underwater foreign object image of interest is analyzed for foreign object features to obtain the underwater foreign object.
[0010] Optionally, performing image registration on the multi-dimensional spectral image group to obtain a multi-spectral image includes:
[0011] Performing band alignment on the multi-dimensional spectral image group to obtain a multi-spectral image group;
[0012] Extracting feature points from the multispectral image group to obtain feature point positions and feature point descriptors;
[0013] Using the multispectral image group to perform feature point matching on the feature point descriptors to obtain feature point pairs;
[0014] Performing image transformation on the multispectral image group using the feature point pairs and the feature point positions to obtain a transformed image group;
[0015] The transformed image group is stitched to obtain a multispectral image.
[0016] Optionally, performing image stitching on the transformed image group to obtain a multispectral image includes:
[0017] Calculating the image overlap using the transformed image group;
[0018] Calculating a splicing path of the transformed image group using the image overlap;
[0019] The transformed image group is subjected to image fusion using the stitching path to obtain a multispectral image.
[0020] Optionally, extracting characteristic parameters from the multispectral image includes:
[0021] Performing data correction on the multispectral image to obtain a corrected image;
[0022] Extracting spectral features from the corrected image to obtain spectral features;
[0023] Extracting texture features from the corrected image to obtain texture features;
[0024] Extracting polarization features from the corrected image to obtain polarization features;
[0025] The spectral feature, the texture feature and the polarization feature are combined into a feature parameter.
[0026] Optionally, constructing a scattering matrix using the characteristic parameters includes:
[0027] The correlation coefficient between the characteristic parameters corresponding to each pixel in the multispectral image is calculated, wherein the correlation coefficient is calculated using the following formula:
[0028]
[0029] Among them, r IJis the correlation coefficient between the Jth feature and the Ith feature in the feature parameter, X kI is the value of the k-th pixel in the multispectral image on the I-th feature, X kJ is the value of the Jth feature in the kth pixel in the multispectral image, X I is the average value of feature I, is the average value of feature J, N is the total number of pixels in the multispectral image;
[0030] The correlation coefficients are arranged into a scatter matrix.
[0031] Optionally, the step of performing polarization analysis on the polarization data in the multispectral image using the scattering matrix to obtain a polarization characteristic spectrum includes:
[0032] Performing polarization decomposition on the scattering matrix to obtain polarization components;
[0033] Calculating a polarization characteristic value according to the polarization component;
[0034] The polarization eigenvalues corresponding to each pixel point in the multispectral image are combined to obtain a polarization eigenspectrum.
[0035] Optionally, the extracting the foreign body part image from the multispectral image using the polarization characteristic spectrum to obtain the underwater foreign body image of interest includes:
[0036] Using the polarization characteristic spectrum to divide the multispectral image into regions to obtain a plurality of image regions;
[0037] Using the scattering matrix to filter out dark areas from the image area;
[0038] Calculate the frequency of occurrence of the dark area in the image area to obtain a frequency result;
[0039] Using the frequency result, a region of interest is screened out from the dark region;
[0040] The region of interest is classified using the polarization characteristic spectrum to obtain an underwater foreign body image of interest.
[0041] Optionally, performing foreign object feature analysis on the underwater foreign object image of interest to obtain the underwater foreign object includes:
[0042] Calculating the object refractive index of the underwater foreign object image of interest using the polarization characteristic value in the polarization characteristic spectrum corresponding to the underwater foreign object image of interest;
[0043] Perform foreign body imaging according to the object refractive index and the polarization characteristic value to obtain a foreign body image;
[0044] Object recognition is performed on the foreign object image to obtain the underwater foreign object.
[0045] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0046] at least one processor; and,
[0047] a memory communicatively connected to the at least one processor; wherein,
[0048] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the underwater foreign body detection method based on multi-dimensional spectral parameters described above.
[0049] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned underwater foreign object detection method based on multi-dimensional spectral parameters.
[0050] The embodiment of the present invention obtains a multi-dimensional spectral image group covering a spectral range from visible light to near infrared or even wider, and then increases the collection of effective light signals by utilizing the characteristics of certain bands that are relatively less absorbed by water, thereby improving the image quality, and by performing image registration on the multi-spectral images, the multi-spectral images are accurately aligned, thereby improving the accuracy of the multi-spectral images; by selecting those characteristic parameters that have little effect on the absorption and scattering effects of water bodies from the multi-spectral images, and using the parameters to construct a scattering matrix, the fine characterization of underwater foreign objects can be extracted, and the scattering characteristics of foreign objects and the surrounding environment can be effectively distinguished; by extracting the image of the foreign object part using the polarization characteristic spectrum, the potential foreign object area can be highlighted in a targeted manner, the interference of the non-foreign object area can be reduced, and the recognition accuracy of underwater foreign objects can be improved; by performing detailed feature analysis on the foreign object image of interest, not only the existence of the foreign object can be identified, but also its type, size, material and other key information can be further analyzed, thereby improving the detection efficiency of underwater foreign objects. Therefore, the underwater foreign object detection method based on multi-dimensional spectral parameters, the electronic device and the computer-readable storage medium proposed by the present invention can solve the problem of low detection accuracy when identifying underwater foreign objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of a process flow of an underwater foreign body detection method based on multi-dimensional spectral parameters provided by an embodiment of the present invention;
[0052] Figure 2 A schematic diagram of a process of polarization analysis provided by an embodiment of the present invention;
[0053] Figure 3 A schematic diagram of a process of foreign body imaging provided by an embodiment of the present invention.
[0054] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0056] The embodiment of the present application provides an underwater foreign body detection method based on multi-dimensional spectral parameters. The execution subject of the underwater foreign body detection method based on multi-dimensional spectral parameters includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the underwater foreign body detection method based on multi-dimensional spectral parameters can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0057] Reference Figure 1 FIG. 1 is a flow chart of an underwater foreign body detection method based on multi-dimensional spectral parameters provided by an embodiment of the present invention. In this embodiment, the underwater foreign body detection method based on multi-dimensional spectral parameters includes:
[0058] S1. Acquire a multi-dimensional spectral image group, and perform image registration on the multi-dimensional spectral image group to obtain a multi-spectral image.
[0059] In an embodiment of the present invention, the multidimensional spectral image group includes spectral images and polarization data; the spectral image refers to a collection of images captured from multiple wavelengths or bands in the same scene using multispectral imaging technology, and one image represents the reflection or emission characteristics of the scene in a specific spectral band; polarization data refers to different polarization data when the spectral image is collected.
[0060] In an embodiment of the present invention, by collecting image data of different spectral bands and polarization states, the comprehensiveness and richness of information are improved, so that subsequent analysis can more accurately distinguish different substances; at the same time, image registration is performed on the multi-dimensional spectral image group to ensure the spatial consistency of multi-source data and achieve accurate superposition of multi-dimensional information.
[0061] In the embodiment of the present invention, performing image registration on the multi-dimensional spectral image group to obtain a multi-spectral image includes:
[0062] Performing band alignment on the multi-dimensional spectral image group to obtain a multi-spectral image group;
[0063] Extracting feature points from the multispectral image group to obtain feature point positions and feature point descriptors;
[0064] Using the multispectral image group to perform feature point matching on the feature point descriptors to obtain feature point pairs;
[0065] Performing image transformation on the multispectral image group using the feature point pairs and the feature point positions to obtain a transformed image group;
[0066] The transformed image group is stitched to obtain a multispectral image.
[0067] In an embodiment of the present invention, the band alignment refers to a preliminary organization or arrangement of the multidimensional spectral image group to ensure that the images in the subsequent processing steps correspond correctly in the band order, by arranging the bands of the images in the multidimensional spectral image in the same order, such as from ultraviolet to near infrared, visible light to thermal infrared, etc., and then checking whether there are some images in the image group that are missing a band or contain additional bands. For missing bands, if there are multiple images covering the same area, the average value of the corresponding band data of other images can be used to fill them; for additional bands, the additional bands are ignored.
[0068] In an embodiment of the present invention, convolution of different scales is performed on the multidimensional spectral images in the multidimensional spectral image one by one using a preset convolution kernel to obtain a scale image; the difference value of adjacent scale images is calculated; the pixel points in the scale image are screened using the difference value to obtain a key point; the position of the key point is located, and the key point position is used as the feature point position; a gradient histogram is calculated in a neighborhood space around the key point, the peak of the histogram is found, and the direction of the key point is obtained; the area around the key point is divided into multiple sub-areas; in each sub-area, the gradient amplitude kernel direction of the pixel point is calculated one by one, the gradient direction is quantized according to the key point direction, and a direction histogram is obtained, and the direction histogram is connected in series to form a feature descriptor.
[0069] In the embodiment of the present invention, the distance between the feature descriptors between the spectral images is calculated, descriptors corresponding to distances greater than a preset similarity value are screened out according to the distance, and the corresponding descriptors are stored in the form of vectors to obtain feature point pairs.
[0070] In an embodiment of the present invention, an affine transformation equation is constructed for the spectral image, the descriptor coordinates corresponding to the feature point pairs are used to calculate the equation parameters of the affine transformation equation, a transformation matrix is constructed according to the equation parameters, and each pixel point in the spectral image is geometrically transformed according to the transformation matrix, that is, the new position of the pixel point in the image after the transformation is calculated using the transformation matrix, and the spectral image is reconstructed using the new position to obtain a plurality of transformed images, that is, a transformed image group.
[0071] In the embodiment of the present invention, the step of performing image stitching on the transformed image group to obtain a multispectral image includes:
[0072] Calculating the image overlap using the transformed image group;
[0073] Calculating a splicing path of the transformed image group using the image overlap;
[0074] The transformed image group is subjected to image fusion using the stitching path to obtain a multispectral image.
[0075] In an embodiment of the present invention, the area of the minimum bounding rectangle corresponding to each pair of feature points in the transformed image is calculated, and the total overlapping area between adjacent transformed images is calculated using the area. The calculated overlapping area is divided by the total area of the selected image to obtain the degree of overlap.
[0076] In an embodiment of the present invention, each multispectral image in the transformed image group is used as a node. If there is an overlapping part between the images of adjacent nodes, an edge is created between the two nodes, and the inverse of the overlap between the adjacent nodes is used as the weight of the edge between the nodes to obtain a node graph. The shortest path of the node graph is calculated using the shortest path search method, and the shortest path is used as the splicing path.
[0077] In an embodiment of the present invention, each image in the transformed image group is divided into a number of equidistant grids, a local projection transformation matrix is calculated for each grid in a weighted manner, a weighted sum of squares error between the distances between image feature points and the center of the grid is calculated, and the weighted sum of squares error is used to perform image mapping on the transformed image group to obtain a multispectral image.
[0078] In the embodiment of the present invention, by performing image registration on the multidimensional spectral image group, the multidimensional spectral image group can be quickly spliced while ensuring the image quality in the multidimensional spectral image group.
[0079] S2. Extract characteristic parameters from the multispectral image, and construct a scattering matrix using the characteristic parameters.
[0080] In an embodiment of the present invention, the scattering matrix refers to a complex matrix that uses mathematical expressions to express the scattering phenomenon when light hits the surface of an object or passes through a medium. Its elements describe how different polarization states of incident light are converted into various polarization states of outgoing light. Each matrix element contains information about the characteristics of the scattering medium.
[0081] In the embodiment of the present invention, complex image data can be simplified into key variables by extracting characteristic parameters, and then a scattering matrix is constructed for the key variables, so that the physical characteristics of the interaction between light and the water surface and underwater foreign objects can be quantified, and the foreign objects can be identified using the physical characteristics.
[0082] In an embodiment of the present invention, the step of extracting characteristic parameters from the multispectral image includes:
[0083] Performing data correction on the multispectral image to obtain a corrected image;
[0084] Extracting spectral features from the corrected image to obtain spectral features;
[0085] Extracting texture features from the corrected image to obtain texture features;
[0086] Extracting polarization features from the corrected image to obtain polarization features;
[0087] The spectral feature, the texture feature and the polarization feature are combined into a feature parameter.
[0088] In an embodiment of the present invention, the data correction refers to correcting the illumination conditions of the multispectral image and checking the consistency of the polarization data in the multispectral image data using the multispectral image group data. Among them, the atmospheric correction refers to adjusting the illumination conditions of the image so that the image brightness and contrast remain consistent under different illumination conditions; the consistency check refers to defining an indicator for evaluating the consistency between images based on the polarization characteristics of the polarization parameters corresponding to the multispectral image, such as the polarization degree difference, and comparing the polarization characteristics of each pixel or region one by one or in batches in the multispectral image, calculating the difference using the polarization degree difference indicator, and performing statistical analysis on the polarization data differences of the entire image or a specific area to determine whether it exceeds the preset tolerance range and identify abnormal data; for the identified abnormal data, taking the mean of the data adjacent to the abnormal data, and replacing the abnormal data with the mean.
[0089] In the embodiment of the present invention, the band data corresponding to all the pixels in the corrected image are extracted, the ratio of the band data is calculated, and the band ratio corresponding to each pixel is used as the spectral feature of the point.
[0090] In an embodiment of the present invention, the frequency of occurrence of the grayscale combination of each pixel point in the corrected image and the pixels within a preset offset distance is calculated using preset grayscale matrix parameters, and the contrast, mean, entropy value and variance value of each pixel point are calculated based on the frequency. The contrast, mean, entropy value and variance value corresponding to each pixel point are vector-combined to obtain a four-dimensional feature vector, which is the texture feature.
[0091] In an embodiment of the present invention, image data in different polarization states are classified from the corrected image, and reflectivity ratios corresponding to the different image data are calculated based on the image data, and the ratios are used as polarization features.
[0092] In the embodiment of the present invention, a multi-dimensional vector is reconstructed from the texture feature, the spectral feature and the polarization feature corresponding to each pixel point to obtain a feature parameter, wherein different dimensions in the feature parameter represent different features.
[0093] In an embodiment of the present invention, the step of constructing a scattering matrix using the characteristic parameters includes:
[0094] Calculating the correlation coefficient between the characteristic parameters corresponding to each pixel in the multispectral image;
[0095] The correlation coefficients are arranged into a scatter matrix.
[0096] In detail, the correlation coefficient can be calculated using the following formula:
[0097]
[0098] Among them, r IJ is the correlation coefficient between the Jth feature and the Ith feature in the feature parameter, X kI is the value of the k-th pixel in the multispectral image on the I-th feature, X kJ is the value of the Jth feature in the kth pixel in the multispectral image, X I is the average value of feature I, is the average value of feature J, and N is the total number of pixels in the multispectral image.
[0099] In the embodiment of the present invention, all calculated correlation coefficients are arranged into a matrix, that is, a scattering matrix is obtained, the diagonal elements of the matrix are the variances of each feature itself, and the non-diagonal elements represent the covariances between the features.
[0100] In the embodiment of the present invention, by constructing the scattering moment, the difference in the multispectral image can be described, and then the difference can be used to distinguish the location of the underwater foreign body, thereby improving the accuracy of the distinction.
[0101] S3. Perform polarization analysis on the polarization data in the multispectral image using the scattering matrix to obtain a polarization characteristic spectrum, and extract the foreign body part image from the multispectral image using the polarization characteristic spectrum to obtain an underwater foreign body image of interest.
[0102] In the embodiment of the present invention, polarization data analysis utilizes the polarization characteristics of light to enhance the ability to identify the difference between foreign objects and the surrounding environment. Therefore, through the analysis of the polarization characteristic spectrum, the foreign object image can be located and extracted more accurately, reducing the possibility of false detection and missed detection.
[0103] Ginseng Figure 2 As shown, the polarization analysis of the polarization data in the multispectral image using the scattering matrix to obtain a polarization characteristic spectrum includes:
[0104] S21, performing polarization decomposition on the scattering matrix to obtain polarization components;
[0105] S22, calculating a polarization characteristic value according to the polarization component;
[0106] S23, combining the polarization eigenvalues corresponding to each pixel point in the multispectral image to obtain a polarization eigenspectrum.
[0107] In an embodiment of the present invention, the matrix is normalized to obtain a normalized matrix, and matrix decomposition is performed according to the normalized matrix to extract eigenvalues and eigenvectors; the eigenvalues and eigenvectors are mapped to the Stokes parameter space to obtain polarization components. Wherein, the Stokes parameter space is a mathematical conceptual framework for describing and analyzing the polarization state of light, and the Stokes parameter space can be imagined as a four-dimensional vector space; the polarization component includes the total light intensity S0, the linear polarization component S1, the elliptical polarization component S2, and the circular polarization component S3; the mapping of the eigenvector to the Stokes parameter space refers to screening out the eigenvector related to the polarization state of light based on the eigendecomposition result of the scattering matrix, and expressing the polarization component using the screened eigenvector; the contribution value of the eigenvector to the polarization component is calculated using the eigenvalue corresponding to the screened eigenvector, and the absolute value of the eigenvalue represents the contribution degree of the eigenvector to the total scattering or transmission effect.
[0108] In detail, the polarization components are the values obtained based on eigenvector mapping and eigenvalue calculation, namely S0, S1, S2, and S3, which accurately define the polarization state of light in the Stokes parameter space, including the relative intensity and direction of various polarization modes, and are key parameters for understanding and analyzing the polarization properties of light.
[0109] In the embodiment of the present invention, the polarization component is used to calculate the polarization degree, polarization angle, circular polarization degree, linear polarization degree and other data of the light at each pixel point to obtain the polarization characteristic value.
[0110] In detail, the degree of polarization can be obtained using the following formula:
[0111]
[0112] Among them, P is the degree of polarization, S1 is the linear polarization component, S2 is the elliptical polarization component, S3 is 2 is the circular polarization component, and S0 is the total light intensity.
[0113] In detail, the polarization angle can be calculated using the following formula:
[0114]
[0115] Among them, AoP is the polarization angle, S1 is the linear polarization component, and S2 is the elliptical polarization component.
[0116] In detail, the circular polarization degree can be calculated using the following formula:
[0117]
[0118] Among them, CPD is the circular polarization degree, S0 is the total light intensity, S3 is 2 is the circular polarization component.
[0119] In an embodiment of the present invention, for each pixel in a multispectral image, all polarization eigenvalues corresponding to the pixel points are combined one by one to form a feature vector; the eigenvectors of all pixel points are organized according to spatial positions to form a three-dimensional data set, in which two dimensions are spatial coordinates and the third dimension is a polarization eigenvalue sequence, that is, a polarization characteristic spectrum is formed.
[0120] In detail, the polarization characteristic spectrum focuses on the intuitive and directly reflective values of polarization characteristics extracted from the image, while the scattering matrix is a more basic and mathematical description that contains the energy conversion rules in the physical process and requires further processing to obtain specific eigenvalues.
[0121] In the embodiment of the present invention, the method of extracting the foreign body part image from the multispectral image using the polarization characteristic spectrum to obtain the underwater foreign body image of interest includes:
[0122] Using the polarization characteristic spectrum to divide the multispectral image into regions to obtain a plurality of image regions;
[0123] Using the scattering matrix to filter out dark areas from the image area;
[0124] Calculate the frequency of occurrence of the dark area in the image area to obtain a frequency result;
[0125] Using the frequency result, a region of interest is screened out from the dark region;
[0126] The region of interest is classified using the polarization characteristic spectrum to obtain an underwater foreign body image of interest.
[0127] In the embodiment of the present invention, the area in the multispectral image whose polarization characteristic spectrum is smaller than a preset threshold is screened out as a dark area.
[0128] In the embodiment of the present invention, the frequency of each dark area appearing in the entire image is calculated, that is, the number of times the dark area appears in all image areas is counted one by one to obtain a frequency result.
[0129] In the embodiment of the present invention, the relationship between the frequency result and a preset frequency threshold is calculated, dark areas whose frequency results are higher than the preset threshold are screened out, and the screened out dark areas are used as regions of interest.
[0130] In an embodiment of the present invention, the region of interest is distinguished by utilizing the principle that the polarization characteristic spectra of objects of different types are different, and it is distinguished whether the region of interest is a normal water surface or an underwater foreign object. By performing data dimension reduction on the polarization characteristic spectrum, the region of interest is classified according to the representative features after dimension reduction using a preset classification model and the polarization characteristic spectrum, so as to obtain a normal water surface image and an underwater foreign object image of interest.
[0131] In the embodiment of the present invention, by analyzing the polarization characteristic spectrum, the area where the underwater foreign object is located can be accurately located, the underwater foreign object and the normal water surface can be effectively distinguished, and the sensitivity of underwater foreign object recognition can be improved.
[0132] S4, performing foreign body feature analysis on the underwater foreign body image of interest to obtain the underwater foreign body.
[0133] In the embodiment of the present invention, by performing feature analysis on the image of interest of the foreign object, not only the existence of the foreign object can be identified, but also its properties (such as size, shape, composition, etc.) can be further analyzed, thereby realizing accurate identification of underwater foreign objects.
[0134] like Figure 3 As shown, the foreign body feature analysis is performed on the underwater foreign body image of interest to obtain the underwater foreign body, including:
[0135] S31, calculating the object refractive index of the underwater foreign object image of interest using the polarization characteristic value in the polarization characteristic spectrum corresponding to the underwater foreign object image of interest;
[0136] S32, performing foreign body imaging according to the object refractive index and the polarization characteristic value to obtain a foreign body image;
[0137] S33: performing object recognition on the foreign object image to obtain underwater foreign objects.
[0138] In the embodiment of the present invention, a preset physical model (such as the Berreman model or the Maxwell equations) is used to establish a mathematical relationship between the polarization characteristic value and the refractive index of the object, the refractive index is used as a parameter to be processed, the polarization characteristic value is used to optimize the refractive index of the physical model, and the refractive index parameter is adjusted through step-by-step iteration to minimize the error between the polarization response predicted by the model and the measured data, and the refractive index parameter is used as the refractive index of the object. The physical model describes the change of the polarization state during the interaction between light and matter.
[0139] In an embodiment of the present invention, numerical simulation software is used to simulate the light field distribution at different angles and polarization states according to the refractive index of the object, and based on the simulated light field distribution, a two-dimensional or three-dimensional image of the foreign object is synthesized by methods such as ray tracing or radiation transfer equations.
[0140] In an embodiment of the present invention, image features are extracted from the foreign object image to obtain image features of the foreign object image, and distance calculation is performed using the image features and sample features in a preset foreign object category sample feature database to obtain a distance result. Sample features whose distances are greater than a preset threshold are screened out from the distance result, and the foreign object category corresponding to the sample feature is used as a label for the underwater foreign object to obtain the underwater foreign object.
[0141] In an embodiment of the present invention, by performing specific feature analysis on the image of interest of the underwater foreign object to obtain information such as the size, shape, and material of the foreign object, the type of the underwater foreign object can be accurately identified, providing data support for the formulation of marine ecological protection strategies.
[0142] An electronic device for implementing an underwater foreign body detection method based on multi-dimensional spectral parameters is provided in one embodiment of the present invention. The electronic device may include a processor, a memory, a communication bus, and a communication interface, and may also include a computer program stored in the memory and executable on the processor, such as an underwater foreign body detection program based on multi-dimensional spectral parameters.
[0143] In some embodiments, the processor may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing underwater foreign body detection programs based on multi-dimensional spectral parameters, etc.), and calls data stored in the memory to execute various functions of the electronic device and process data.
[0144] The memory includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory may be an internal storage unit of an electronic device in some embodiments, such as a mobile hard disk of the electronic device. The memory may also be an external storage device of an electronic device in other embodiments, such as a plug-in mobile hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device. Further, the memory may also include both an internal storage unit of the electronic device and an external storage device. The memory may not only be used to store application software and various types of data installed in the electronic device, such as the code of an underwater foreign body detection program based on multi-dimensional spectral parameters, but may also be used to temporarily store data that has been output or is to be output.
[0145] The communication bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection communication between the memory and at least one processor, etc.
[0146] The communication interface is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0147] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0148] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0149] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0150] The underwater foreign body detection program based on multi-dimensional spectral parameters stored in the memory of the electronic device is a combination of multiple instructions. When running in the processor, it can achieve:
[0151] Acquire a multi-dimensional spectral image group, and perform image registration on the multi-dimensional spectral image group to obtain a multi-spectral image;
[0152] Extracting characteristic parameters from the multispectral image, and constructing a scattering matrix using the characteristic parameters;
[0153] Using the scattering matrix to perform polarization analysis on polarization data in the multispectral image to obtain a polarization characteristic spectrum, and using the polarization characteristic spectrum to extract a foreign body part image from the multispectral image to obtain an underwater foreign body image of interest;
[0154] The underwater foreign object image of interest is analyzed for foreign object features to obtain the underwater foreign object.
[0155] Specifically, the specific implementation method of the processor for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0156] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0157] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0158] Acquire a multi-dimensional spectral image group, and perform image registration on the multi-dimensional spectral image group to obtain a multi-spectral image;
[0159] Extracting characteristic parameters from the multispectral image, and constructing a scattering matrix using the characteristic parameters;
[0160] Using the scattering matrix to perform polarization analysis on polarization data in the multispectral image to obtain a polarization characteristic spectrum, and using the polarization characteristic spectrum to extract a foreign body part image from the multispectral image to obtain an underwater foreign body image of interest;
[0161] The underwater foreign object image of interest is analyzed for foreign object features to obtain the underwater foreign object.
[0162] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0163] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0164] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0165] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0166] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is not limited only according to the above description, and it is intended that all changes within the meaning and scope of equivalent elements within the scope of protection are included in the present invention.
[0167] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0168] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for underwater foreign body detection based on multi-dimensional spectral parameters, characterized in that: The method comprises: Acquire a multi-dimensional spectral image group, and perform image registration on the multi-dimensional spectral image group to obtain a multi-spectral image; Extracting characteristic parameters from the multispectral image, and constructing a scattering matrix using the characteristic parameters; Using the scattering matrix to perform polarization analysis on polarization data in the multispectral image to obtain a polarization characteristic spectrum, and using the polarization characteristic spectrum to extract an image of a foreign body part from the multispectral image to obtain an underwater foreign body image of interest; Performing foreign object feature analysis on the underwater foreign object image of interest to obtain the underwater foreign object; Wherein, constructing a scattering matrix using the characteristic parameters includes: The correlation coefficient between the characteristic parameters corresponding to each pixel in the multispectral image is calculated, wherein the correlation coefficient is calculated using the following formula: Among them, r IJ is the correlation coefficient between the Jth feature and the Ith feature in the feature parameter, X kI is the value of the k-th pixel in the multispectral image on the I-th feature, X kJ is the value of the Jth feature in the kth pixel in the multispectral image, X I is the average value of feature I, is the average value of feature J, N is the total number of pixels in the multispectral image; Arranging the correlation coefficients into a scatter matrix; The step of performing polarization analysis on the polarization data in the multispectral image using the scattering matrix to obtain a polarization characteristic spectrum includes: Performing polarization decomposition on the scattering matrix to obtain polarization components; Calculating a polarization characteristic value according to the polarization component; Combining the polarization eigenvalues corresponding to each pixel point in the multispectral image to obtain a polarization eigenspectrum; The method of extracting the foreign body part image from the multispectral image by using the polarization characteristic spectrum to obtain the underwater foreign body image of interest includes: Using the polarization characteristic spectrum to divide the multispectral image into regions to obtain a plurality of image regions; Using the scattering matrix to filter out dark areas from the image area; Calculate the frequency of occurrence of the dark area in the image area to obtain a frequency result; Using the frequency result, a region of interest is screened out from the dark region; The region of interest is classified using the polarization characteristic spectrum to obtain an underwater foreign body image of interest.
2. The underwater foreign body detection method based on multi-dimensional spectral parameters according to claim 1, characterized in that: The performing image registration on the multi-dimensional spectral image group to obtain a multi-spectral image includes: Performing band alignment on the multi-dimensional spectral image group to obtain a multi-spectral image group; Extracting feature points from the multispectral image group to obtain feature point positions and feature point descriptors; Using the multispectral image group to perform feature point matching on the feature point descriptors to obtain feature point pairs; Performing image transformation on the multispectral image group using the feature point pairs and the feature point positions to obtain a transformed image group; The transformed image group is stitched to obtain a multispectral image.
3. The underwater foreign body detection method based on multi-dimensional spectral parameters according to claim 2, characterized in that: The step of performing image stitching on the transformed image group to obtain a multispectral image includes: Calculating the image overlap using the transformed image group; Calculating a splicing path of the transformed image group using the image overlap; The transformed image group is subjected to image fusion using the stitching path to obtain a multispectral image.
4. The underwater foreign body detection method based on multi-dimensional spectral parameters according to claim 1, characterized in that: The extracting characteristic parameters from the multispectral image comprises: Performing data correction on the multispectral image to obtain a corrected image; Extracting spectral features from the corrected image to obtain spectral features; Extracting texture features from the corrected image to obtain texture features; Extracting polarization features from the corrected image to obtain polarization features; The spectral feature, the texture feature and the polarization feature are combined into a feature parameter.
5. The underwater foreign body detection method based on multi-dimensional spectral parameters according to claim 1, characterized in that: The performing foreign object feature analysis on the underwater foreign object image of interest to obtain the underwater foreign object includes: Calculating the object refractive index of the underwater foreign object image of interest using the polarization characteristic value in the polarization characteristic spectrum corresponding to the underwater foreign object image of interest; Perform foreign body imaging according to the object refractive index and the polarization characteristic value to obtain a foreign body image; Object recognition is performed on the foreign object image to obtain the underwater foreign object.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the underwater foreign object detection method based on multi-dimensional spectral parameters as described in any one of claims 1 to 5.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the underwater foreign body detection method based on multi-dimensional spectral parameters as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Registration method and device based on multiple spectral images
CN106157306A
Urban impervious bed extraction method based on deep belief network
CN108764326A
