Underwater target recognition method, device and system

By combining the recognition method of optical and sonar images, the accuracy problem of underwater target recognition is solved, and the accurate recognition of underwater targets and the improvement of recognition efficiency are achieved.

CN113781421BInactive Publication Date: 2024-09-13LIAONING BAISHENG XINGYE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111018066.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the underwater target identification method is single, and the light source is interfered by the water environment, resulting in the inability to accurately identify underwater targets.

Method used

Using a method that combines optical images and sonar images, by acquiring optical and sonar images at the same time, image noise removal, target identification marking, area ratio judgment and classification detection are performed, and the degree of coincidence is calculated to synthesize the final underwater identification target.

Benefits of technology

The accuracy and ability of underwater target recognition are improved, the target can be accurately identified within the underwater visual range, and the recognition efficiency and accuracy are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113781421B
    Figure CN113781421B
Patent Text Reader

Abstract

The present application discloses an underwater target recognition method, device and system, which relates to the field of image recognition technology. The underwater target recognition method includes: sending the acquired first optical image and first sonar image to the optical image target recognition model and the sonar image target recognition model respectively for target recognition, and outputting the second optical image and the second sonar image; extracting the first recognition target and the second recognition target based on the second optical image and the second sonar image; calculating the overlap between the first recognition target and the second recognition target, and synthesizing the first recognition target and the second recognition target according to the overlap, and determining the underwater recognition target. By using the first optical image to identify the target within the underwater visible range, and using the first sonar image to identify the underwater target within a certain range, and then merging the two images, the underwater target can be identified more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of underwater identification technology, and in particular to an underwater target identification method, device and system. Background Art

[0002] Automatic underwater target recognition is a challenge with diverse image detection and acquisition. Although the existing technology can realize underwater target recognition by performing image detection on the underwater pictures taken, the underwater target recognition method is single and the light source of underwater shooting is disturbed by the water environment, which makes the shooting range small and makes it impossible to accurately identify underwater targets. Summary of the invention

[0003] In view of this, the present application provides an underwater target recognition method, device and readable storage medium to solve the problem that underwater targets cannot be accurately identified in the prior art.

[0004] According to a first aspect, the present application provides an underwater target recognition method, comprising: acquiring a first optical image in a preset target water area and a first sonar image in a preset target water area collected at the same time; sending the first optical image and the first sonar image to an optical image target recognition model and a sonar image target recognition model respectively for target recognition, outputting a second optical image with a target recognition mark and a second sonar image with a target recognition mark; extracting a first recognition target in the second optical image and a second recognition target in the second sonar image based on the second optical image and the second sonar image; calculating the overlap between the first recognition target and the second recognition target, and synthesizing the first recognition target and the second recognition target according to the overlap to determine an underwater recognition target.

[0005] The underwater target recognition method provided in the present application uses a first optical image to recognize targets within an underwater visible range, and uses a first sonar image to recognize underwater targets within a certain range, and then merges the two images to accurately identify underwater targets.

[0006] In combination with the first aspect, in a first embodiment of the first aspect, before the first optical image and the first sonar image are respectively sent to an optical image target recognition model and a sonar image target recognition model for target recognition, and a second optical image with a target recognition mark and a second sonar image with a target recognition mark are output, the method includes: performing image noise removal based on the first optical image and the first sonar image, and outputting a first preprocessed optical image and a first preprocessed sonar image; and sending the first preprocessed optical image and the first preprocessed sonar image to the optical image target recognition model and the sonar image target recognition model for target recognition.

[0007] In the underwater target recognition method provided in this embodiment, by eliminating image noise, the interference of image noise during target recognition of optical images and sonar images can be reduced, so that the target can be accurately identified, thereby improving the ability of underwater target recognition.

[0008] In combination with the first aspect, in a second implementation of the first aspect, the sending the first optical image and the first sonar image to an optical image target recognition model and a sonar image target recognition model respectively for target recognition, outputting a second optical image with a target recognition mark and outputting a second sonar image with a target recognition mark, comprises: determining whether the first area ratio satisfies a preset ratio range according to a first area ratio of the identified target in the first optical image, and outputting a first optical image that satisfies the preset ratio range; performing target recognition marking based on the first optical image that satisfies the preset ratio range, and outputting a second optical image with a target recognition mark; and determining whether the second area ratio satisfies the preset ratio range according to a second area ratio of the identified target in the first sonar image, and outputting a first sonar image that satisfies the preset ratio range; performing target recognition marking based on the first sonar image that satisfies the preset ratio range, and outputting a second sonar image with a target recognition mark.

[0009] In the underwater target recognition method provided in this embodiment, a first area ratio in the first optical image and a second area ratio of the identified target in the first sonar image are calculated, and based on the ratios, it is determined whether there are images in the images where target detection is required and in which target recognition cannot be performed, and the images are eliminated, thereby further improving the ability of underwater target recognition.

[0010] In combination with the second implementation of the first aspect, in a third implementation of the first aspect, the target identification and marking based on the first optical image that satisfies the preset proportion range, and the target identification and marking based on the first sonar image that satisfies the preset proportion range, include: performing target identification on the target to be identified in the first optical image, and selecting the identified target for target identification and marking, and performing target identification on the target to be identified in the first sonar image, and selecting the identified target for target identification and marking.

[0011] In the underwater target recognition method provided in this embodiment, by marking the target to be recognized in the first optical image and the target to be recognized in the first sonar image, time is saved for the subsequent classification and extraction, and the recognition accuracy is improved.

[0012] In combination with the first aspect, in a fourth implementation of the first aspect, extracting the first identification target in the second optical image and extracting the second identification target in the second sonar image based on the second optical image and the second sonar image further includes: sending the first identification target and the second identification target into a classifier for category detection respectively, and determining the category information in the first identification target and the category information in the second identification target.

[0013] In the underwater target recognition method provided in this embodiment, the underwater recognition efficiency is improved by classifying and detecting the first recognition target and the second recognition target.

[0014] In combination with the first aspect, in the fifth implementation of the first aspect, the degree of overlap between the first identification target and the second identification target is calculated, and the first identification target and the second identification target are synthesized according to the degree of overlap to determine the underwater identification target, including: determining the center positions of the first identification target and the second identification target, and after making the center position of the second identification target correspond to the center position of the first identification target, superimposing the second identification target on the first identification target, and calculating the area ratio of the second identification target to the area ratio of the first identification target; judging whether the area ratio is greater than the preset ratio; if the area ratio is greater than the preset ratio, merging the first identification target and the second identification target to output the underwater identification target.

[0015] In the underwater target recognition method provided in this embodiment, the degree of overlap between the first recognition target and the second recognition target is calculated, and then the first recognition target and the second recognition target are merged according to the degree of overlap to obtain the final recognition target, thereby ensuring the accuracy of target recognition.

[0016] In combination with the first aspect, in a sixth implementation of the first aspect, it also includes: acquiring the underwater identification target; performing classification detection based on the underwater identification target, outputting a classification image of the underwater identification target, and updating the target identification mark.

[0017] In the underwater target recognition method provided in this embodiment, the accuracy of the recognized underwater targets can be further guaranteed through classification detection.

[0018] According to a second aspect, the present application provides an underwater target recognition device, comprising: an acquisition module, used to acquire a first optical image in a preset target water area and a first sonar image in a preset target water area collected at the same time; a marking module, used to send the first optical image and the first sonar image to an optical image target recognition model and a sonar image target recognition model respectively for target recognition, and output a second optical image with a target recognition mark and a second sonar image with a target recognition mark; an extraction module, used to extract a first recognition target in the second optical image and a second recognition target in the second sonar image based on the second optical image and the second sonar image; a determination module, used to calculate the overlap between the first recognition target and the second recognition target, and synthesize the first recognition target and the second recognition target according to the overlap to determine the underwater recognition target.

[0019] The underwater target recognition device provided by the present application acquires a first optical image and a first acoustic image through an acquisition module, sends the acquired first optical image and first acoustic image to a marking module for target recognition marking, and then outputs a second optical image and a second sonar image, and then sends the second optical image and the second sonar image to an extraction module to extract the first recognition target and the second recognition target, and finally merges the first recognition target and the second recognition target to output the final underwater recognition target, thereby realizing accurate recognition of underwater targets.

[0020] According to the third aspect, an embodiment of the present invention provides a system, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the underwater target recognition method described in the first aspect or any one of the embodiments of the first aspect by executing the computer instructions.

[0021] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the underwater target recognition method described in the first aspect or any one embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 is a flow chart of an underwater target recognition method provided by an embodiment of the present application;

[0024] Figure 2 It is a flowchart of steps S11 to S12 in an underwater target recognition method provided by an optional embodiment of the present application;

[0025] Figure 3 It is a flowchart of steps S1-S2 in an underwater target recognition method provided by an optional embodiment of the present application;

[0026] Figure 4 is a flow chart of step S4 in an underwater target recognition method provided in an optional embodiment of the present application;

[0027] Figure 5 It is a flowchart of an underwater target recognition method provided by an optional embodiment of the present application;

[0028] Figure 6 It is a structural block diagram of an underwater target recognition device provided by an embodiment of the present application;

[0029] Figure 7 It is a structural schematic diagram of an underwater target recognition system provided by an optional embodiment of the present application.

[0030] Reference numerals

[0031] Acquisition module-1; marking module-2; extraction module-3; determination module-4; optical sensor-5; acoustic detector-6; memory-7; processor-8. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application are clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application. In the absence of conflict, the following embodiments and their technical features can be combined with each other.

[0033] It should be noted that the underwater target recognition method in the embodiment of the present invention can be used to identify underwater garbage, terrain and organisms, such as fish. Specifically, the present embodiment provides an underwater target recognition method, such as Figure 1 FIG. 1 is a flow chart of an underwater target recognition method provided according to an embodiment of the present invention, and the flow chart includes the following steps:

[0034] S1, acquiring a first optical image in a preset target water area and a first sonar image in a preset target water area collected at the same time.

[0035] In this embodiment, the underwater camera and the sonar detector uniformly shoot or detect underwater information in the same direction at the same time, and generate corresponding underwater pictures, wherein the first optical image is the underwater picture taken by the underwater camera, and the first sonar image is the sonar image detected by the sonar detector. In addition, since the picture quality of the optical image will be affected by the underwater environment, and the sonar image is obtained by detection by the sonar detector, the sonar image shooting range and the clarity of image recognition are better than the optical image shooting range, which can also better determine the underwater target.

[0036] S2, sending the first optical image and the first sonar image to an optical image target recognition model and a sonar image target recognition model respectively for target recognition, outputting a second optical image with a target recognition mark and a second sonar image with a target recognition mark.

[0037] In this embodiment, the obtained underwater optical image and underwater sonar image are sent to the target recognition model to identify the target mark, and a second optical image and a second acoustic image with the mark are output, wherein the target recognition mark can be a frame to select a specific fish or organism.

[0038] S3, extracting a first recognition target in the second optical image and a second recognition target in the second sonar image based on the second optical image and the second sonar image.

[0039] S4, calculating the overlap between the first recognition target and the second recognition target, and synthesizing the first recognition target and the second recognition target according to the overlap, to determine the underwater recognition target.

[0040] In this embodiment, the degree of overlap between the first identification target and the second identification target is the ratio of the area of ​​the first identification target to the area of ​​the second identification target, wherein the area of ​​the first identification target and the area of ​​the second identification target can be calculated by surveying and mapping software; when the degree of overlap is greater than the preset degree of overlap, the first identification target and the second identification target are image synthesized and output as the final identified underwater identification target.

[0041] The underwater target recognition method provided in this embodiment uses the first optical image to recognize targets within the underwater visible range, and uses the first sonar image to recognize underwater targets within a certain range, and then merges the two images to more accurately recognize underwater targets.

[0042] Optionally, before step S2, the following steps may be included: Figure 2 Steps shown:

[0043] S11, performing image noise removal based on the first optical image and the first sonar image, and outputting a first preprocessed optical image and a first preprocessed sonar image.

[0044] In this embodiment, Gabor filtering can be performed on the first optical image and the first sonar image to remove noise, distortion, blur and other problems in the first optical image and the first sonar image, and the images can be corrected at the same time to ensure the accuracy of subsequent image recognition.

[0045] In this embodiment, the first optical image and the first sonar image are subjected to image noise removal and preliminary target positioning can be obtained in advance, and then image enhancement training of underwater targets can be performed. At this time, the retinex algorithm can be used for image enhancement. Commonly used models include SSR, MSR, and MSRCR. In addition, with respect to scenes in special circumstances, for example, at night, night vision images and image color algorithms can be obtained for comparison, analysis and filtering, and the optimal value of the results can be retained, thereby enhancing the contrast of images under low-light photography and reducing image noise interference; in addition, for underwater image enhancement training, the enhancement effects of algorithms such as limited contrast adaptive histogram equalization (CLAHE), homomorphic filtering (HF) and wavelet threshold denoising (WTD) on underwater images in different color spaces such as HSI, HSV, YUV, YCrCb, XYZ, and Lab can be analyzed and compared, thereby ensuring the accuracy of data / image acquisition and reducing image noise interference. In addition, in the application of target recognition based on color features, it is also possible to target 11 different illumination invariant color components and multiple color spaces composed of their color components, and at the same time, to eliminate underwater image noise by considering the impact of changes in the target shooting angle and the distance between the target and the lens on the target's correct recognition rate.

[0046] In this embodiment, the formula for extracting underwater image noise may be:

[0047]

[0048] Where P′ is the underwater image after noise removal; P is the original underwater image with image noise; S P is a preset noise adjustment parameter. In this embodiment, image noise adjustment is performed on an underwater image with image noise, so as to eliminate or reduce the interference of the underwater image noise on subsequent underwater image recognition, wherein S P It is a preset noise adjustment parameter, which can be set according to user needs.

[0049] Optionally, underwater image noise removal can also be performed by obtaining an underwater target image, then segmenting the RGB three channels of the underwater target image, combining histogram equalization filtering (HE), histogram equalization (CLAHE), training optimization to modify parameters such as NumTiles, clipLimit, Distribution, and Alpha, so as to complete the synthesis and comparison of the three-channel image to obtain the final enhanced image.

[0050] S12, sending the first preprocessed optical image and the first preprocessed sonar image to an optical image target recognition model and a sonar image target recognition model respectively for target recognition.

[0051] The target recognition is performed by sending the first preprocessed optical image and the first preprocessed sonar image to the optical image target recognition model and the sonar image target recognition model to ensure the accuracy of underwater image recognition.

[0052] This embodiment provides an optional underwater target recognition method, including:

[0053] Optional, such as Figure 3 As shown, step S2 may also include:

[0054] S21, identifying a first area ratio of a target in the first optical image according to the first area ratio of the target in the first optical image.

[0055] In this embodiment, after the target recognition model outputs the recognized target in the first optical image, it is necessary to calculate the first area ratio of the recognized target in the first optical image through the mapping software, wherein the recognized target can be underwater fish, underwater garbage, etc. that are selected by the frame as underwater objects.

[0056] S22, determining whether the first area ratio satisfies a preset ratio range, and outputting a first optical image that satisfies the preset ratio range.

[0057] In this embodiment, the preset proportion range can be the maximum / small frame selection pixel that can identify the target not exceeding the recognizable pixel of the optical image or sonar image. For example, the pixel size of the optical image / sonar image is 256*256, and the preset proportion range is 200*200 to 16*16. Since it is necessary to ensure marking, some pixels need to be reserved for marking. Therefore, the upper limit of the maximum proportion range needs to be smaller than the size of the image itself. In order to prevent the existence of targets that are too small, the minimum proportion range lower limit can be 16*16. The preset proportion range can also be defined by the user while reserving a certain upper limit range.

[0058] S23, performing target identification marking based on the first optical image that meets the preset proportion range, and outputting a second optical image with the target identification marking.

[0059] In this embodiment, after the recognition target is determined, it is necessary to frame and mark the target and make notes in the image from which the recognition target is extracted.

[0060] and,

[0061] S24, identifying the target in the first sonar image according to a second area ratio in the first sonar image.

[0062] S25, determining whether the second area ratio meets a preset ratio range, and outputting a first sonar image that meets the preset ratio range.

[0063] S26, performing target identification marking based on the first sonar image that meets the preset proportion range, and outputting a second sonar image with the target identification marking.

[0064] In this embodiment, the second optical image and the second sonar image are acquired, and the accuracy of feature extraction or target recognition in the image is improved by utilizing the proportion.

[0065] Optionally, step S23 may be to perform target recognition on the target to be recognized in the first optical image, and frame the recognized target to perform target recognition marking.

[0066] Optionally, step S26 may be to identify the target to be identified in the first sonar image, and select the identified target to perform target identification marking.

[0067] Optionally, step S3 may also include: sending the first identified target and the second identified target to a classifier for category detection, respectively, to determine category information in the first identified target and category information in the second identified target. In this embodiment, after obtaining the first identified target and the second identified target for frame selection, it is necessary to perform category detection on the identified / framed targets to determine the category of the identified targets, for example: marking the framed targets as fish or garbage.

[0068] Optional, such as Figure 4 As shown, step S4 may also include:

[0069] S41, determining the center positions of the first recognition target and the second recognition target, matching the center positions of the second recognition target with the center positions of the first recognition target, superimposing the second recognition target on the first recognition target, and calculating the area ratio of the second recognition target to the area ratio of the first recognition target.

[0070] In this embodiment, the center positions of the first recognition target and the second recognition target are determined from the first recognition target and the second recognition target by using surveying and mapping software, and then the image of the second recognition target is superimposed with the image of the first recognition target after the center positions of the two are matched, and then the area ratio of the second recognition target to the area of ​​the first recognition target is calculated.

[0071] S42, determining whether the area ratio is greater than a preset ratio.

[0072] Optionally, the preset ratio is 0.5. When the area ratio is greater than 0.5, it indicates that the image overlap between the optical image and the sonar image is 50%, thereby ensuring that the optical image and the sonar image are merged.

[0073] S43, if the area ratio is greater than a preset ratio, the first recognition target and the second recognition target are combined to output an underwater recognition target, wherein the output underwater recognition target is an image and a category mark of the recognition target.

[0074] S44, if the area ratio is less than or equal to the preset ratio, the current merging of the first recognition target and the second recognition target is abandoned, and the next group of recognition merging of the first recognition target and the second recognition target is entered.

[0075] In this embodiment, in order to save computing resources, when the area of ​​the identified target does not meet the requirements, the identified target will be directly discarded.

[0076] The present application embodiment also provides an underwater target recognition method. In order to realize the recognition of underwater creatures, the present embodiment further performs the following steps based on the implementation of the above steps S1 to S4: Figure 5 The steps shown include:

[0077] S5, obtaining underwater identification targets.

[0078] In this embodiment, the corresponding underwater recognition target is obtained through steps S1-S4, wherein the underwater recognition target is an underwater organism or a still object, such as a fish or garbage; wherein the underwater recognition target includes a category label.

[0079] S6, performing classification detection based on the underwater recognition target, outputting the classification image of the underwater recognition target, and updating the target recognition mark.

[0080] In this embodiment, the underwater identified target is sent to a classifier or a classification model that executes a classification algorithm for calculation, and then the classified image of the underwater identified target is output, so as to ensure the accuracy of the data and update its target identification mark after determining the identified target; wherein the underwater identified target is sent to a classifier for calculation and judgment. In this embodiment, the classifier used is a two-level classifier, wherein the first-level classifier is mainly used to judge the category information of the identified target, and secondly, the second-level classifier is mainly used to further analyze whether the identified target is a corresponding target image or object based on the category. For example, when identifying underwater garbage, you can first obtain the scene of the underwater environment, and then obtain the target image or object that needs to be identified from the scene. Then, send its image data to the first-level classifier to judge the major category, that is, the target category information, such as dividing the identified targets into fish and objects, and then subdivide the identified targets from the second-level classifier that needs to be sorted, determine the garbage and mark the confirmed targets, such as obtaining shells and water bottles in the classification of objects, and then mark the water bottles. This can avoid multiple identification and marking of targets, save computing intensity, and ensure computing performance.

[0081] For example, the target recognition method can be applied to underwater projects in casinos to automatically identify the underwater environment in casinos. The distribution and types of fish can be summarized and displayed on a large screen for tourists to watch. An automatic detection function can also be set to clean the underwater environment and recycle garbage or other trash discarded by tourists.

[0082] Optionally, in this embodiment, image classification and recognition technology is combined with sonar graphics to identify various species of fish, restore and display a summary of fish species, for example: display the body shapes of different fish, and recognize that different species of the same type of fish usually have similar appearance, size, texture, color and other characteristic differences.

[0083] Optionally, after completing the fish detection and classification, the collected data can be transmitted back to the cloud data center, which is then controlled by the cloud segment and records the current position, and when there is a need, the corresponding image data is extracted.

[0084] Accordingly, please refer to Figure 6 , an underwater target recognition device provided by an embodiment of the present invention specifically comprises:

[0085] The acquisition module 1 is used to acquire a first optical image in a preset target water area and a first sonar image in a preset target water area collected at the same time. For details, refer to step S1.

[0086] The marking module 2 is used to send the first optical image and the first sonar image to the optical image target recognition model and the sonar image target recognition model respectively for target recognition, and output a second optical image with a target recognition mark and a second sonar image with a target recognition mark. For details, refer to step S2.

[0087] The extraction module 3 is used to extract the first identification target in the second optical image and the second identification target in the second sonar image based on the second optical image and the second sonar image. For details, please refer to step S3.

[0088] The determination module 4 is used to calculate the overlap between the first recognition target and the second recognition target, and synthesize the first recognition target and the second recognition target according to the overlap to determine the underwater recognition target. For details, please refer to step S4.

[0089] The underwater target recognition device provided in this embodiment acquires a first optical image and a first acoustic image through an acquisition module, sends the acquired first optical image and first acoustic image to a marking module for target recognition, and then outputs a second optical image and a second sonar image, and then sends the second optical image and the second sonar image to an extraction module to extract the first recognition target and the second recognition target, and finally merges the first recognition target and the second recognition target to output the final underwater recognition target, thereby realizing accurate recognition of underwater targets.

[0090] See also Figure 7 , Figure 7 is a schematic diagram of the structure of an underwater target recognition system provided by an optional embodiment of the present invention, such as Figure 7 As shown, the system may include: an optical sensor 5, an acoustic detector 6, a memory 7 and a processor 8, such as a CPU (Central Processing Unit). The optical sensor 5, the acoustic detector 6, the memory and the processor are communicatively connected with each other; the optical sensor 5 can collect optical images, such as an underwater camera; the acoustic detector 6 can collect underwater sonar images, such as underwater images collected by side-scan sonar or front-scan sonar; the memory 7 can be a high-speed RAM memory (Random Access Memory) or a non-volatile memory, such as at least one disk memory. The memory 7 may optionally be at least one storage device located away from the aforementioned processor 8. The processor 8 may be combined with Figure 6 In the described device, the memory 7 stores an application program, and the processor 8 calls the program code stored in the memory 7 to execute any of the above method steps.

[0091] In addition, the memory 7 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 7 may also include a combination of the above-mentioned types of memory.

[0092] The processor 8 may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 8 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0093] Optionally, the memory 7 is also used to store program instructions. The processor 8 can call the program instructions to implement the present application Figures 1 to 5 The underwater target recognition method shown in the embodiment.

[0094] The embodiment of the present invention further provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the underwater target recognition method in any of the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0095] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for underwater target recognition, characterized in that: include: Acquire a first optical image in a preset target water area and a first sonar image in a preset target water area collected at the same time; Sending the first optical image and the first sonar image to an optical image target recognition model and a sonar image target recognition model respectively for target recognition, outputting a second optical image with a target recognition mark and a second sonar image with a target recognition mark; extracting a first identification target in the second optical image and a second identification target in the second sonar image based on the second optical image and the second sonar image; Calculate the overlap between the first recognition target and the second recognition target, and synthesize the first recognition target and the second recognition target according to the overlap to determine the underwater recognition target, including: determine the center positions of the first recognition target and the second recognition target, and after making the center position of the second recognition target correspond to the center position of the first recognition target, superimpose the second recognition target on the first recognition target, and calculate the area ratio of the second recognition target to the area ratio of the first recognition target; determine whether the area ratio is greater than a preset ratio; if the area ratio is greater than the preset ratio, merge the first recognition target and the second recognition target to output the underwater recognition target; if the area ratio is less than or equal to the preset ratio, abandon the current merger of the first recognition target and the second recognition target, and enter the next group of recognition merger of the first recognition target and the second recognition target.

2. The target recognition method according to claim 1, characterized in that: The method comprises: sending the first optical image and the first sonar image to an optical image target recognition model and a sonar image target recognition model respectively for target recognition, and outputting a second optical image with a target recognition mark and a second sonar image with a target recognition mark before outputting the second optical image with a target recognition mark, comprising: Perform image noise removal based on the first optical image and the first sonar image, and output a first preprocessed optical image and a first preprocessed sonar image; The first preprocessed optical image and the first preprocessed sonar image are respectively sent to an optical image target recognition model and a sonar image target recognition model for target recognition.

3. The target recognition method according to claim 1, characterized in that: The step of sending the first optical image and the first sonar image to an optical image target recognition model and a sonar image target recognition model respectively for target recognition, and outputting a second optical image with a target recognition mark and a second sonar image with a target recognition mark comprises: According to a first area ratio of the identified target in the first optical image; Determine whether the first area ratio meets a preset ratio range, and output a first optical image that meets the preset ratio range; Performing target identification marking based on the first optical image that meets the preset proportion range, and outputting a second optical image with the target identification marking; and, according to a second area ratio of the identified target in the first sonar image in the first sonar image; Determine whether the second area ratio meets the preset ratio range, and output a first sonar image that meets the preset ratio range; A target identification mark is performed based on the first sonar image that meets the preset proportion range, and a second sonar image with the target identification mark is output.

4. The target recognition method according to claim 3, characterized in that: The target identification and marking based on the first optical image that meets the preset proportion range, and the target identification and marking based on the first sonar image that meets the preset proportion range include: Performing target recognition on the target to be recognized in the first optical image, and selecting the recognized target by framing it to perform target recognition marking; and, performing target recognition on the target to be recognized in the first sonar image, and selecting the recognized target to perform target recognition marking.

5. The target recognition method according to claim 1, characterized in that: The extracting of the first identification target in the second optical image and the second identification target in the second sonar image based on the second optical image and the second sonar image also includes: The first recognition target and the second recognition target are respectively sent to a classifier for category detection to determine category information in the first recognition target and category information in the second recognition target.

6. The target recognition method according to claim 1, characterized in that: Also includes: Acquire the underwater identification target; Classification detection is performed based on the underwater recognition target, a classification image of the underwater recognition target is output, and the target recognition mark is updated.

7. An underwater target recognition device, characterized in that: include: An acquisition module, used to acquire a first optical image in a preset target water area and a first sonar image in a preset target water area collected at the same time; a marking module, used for sending the first optical image and the first sonar image to an optical image target recognition model and a sonar image target recognition model respectively for target recognition, and outputting a second optical image with a target recognition mark and a second sonar image with a target recognition mark; an extraction module, configured to extract a first identification target in the second optical image and a second identification target in the second sonar image based on the second optical image and the second sonar image; A determination module is used to calculate the overlap between the first recognition target and the second recognition target, and synthesize the first recognition target and the second recognition target according to the overlap to determine the underwater recognition target, including: determining the center positions of the first recognition target and the second recognition target, and after making the center position of the second recognition target correspond to the center position of the first recognition target, superimposing the second recognition target on the first recognition target, and calculating the area ratio of the second recognition target to the area ratio of the first recognition target; judging whether the area ratio is greater than a preset ratio; if the area ratio is greater than the preset ratio, merging the first recognition target and the second recognition target to output the underwater recognition target; if the area ratio is less than or equal to the preset ratio, abandoning the current merger of the first recognition target and the second recognition target, and entering the recognition merger of the next group of first recognition targets and second recognition targets.

8. An underwater target recognition system, characterized in that: include: An optical sensor, an acoustic detector, a memory and a processor, wherein the optical sensor, the acoustic detector, the memory and the processor are communicatively connected with each other, the optical sensor and the acoustic detector collect optical images and acoustic images, and send the optical images and the acoustic images, the memory stores the optical images, the acoustic images and computer instructions, and the processor executes the computer instructions by acquiring the optical images and the acoustic images, thereby executing the underwater target recognition method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the underwater target recognition method according to any one of claims 1 to 6.