A method for extracting contours of underwater acoustic binary images

By collecting and clustering underwater acoustic signals and extracting the outline of underwater acoustic binary graphics, the problem of low image data processing efficiency on the DSP platform is solved, the target information in the underwater acoustic binary graphics is quickly calculated, and the processing efficiency is improved.

CN118447264BActive Publication Date: 2024-09-17HUNAN GUOKE HAIPHONG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410796415.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

The existing DSP platform is inefficient in image data processing, which results in a long time-consuming transmission of image data of hydroacoustic signals and the inability to effectively extract hydroacoustic binary graphic contours.

Method used

By collecting underwater acoustic signals and converting them into binary graphics, using clustering processing to convert them into vector sets, judging and merging continuous points, and calculating the size, coordinates and distance of the contour, the extraction of the contours of underwater acoustic binary graphics is realized.

Benefits of technology

It reduces the amount of data and transmission delay, improves calculation efficiency, and can quickly calculate the target outline, size, orientation and distance in underwater acoustic binary graphics in real time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447264B
    Figure CN118447264B
Patent Text Reader

Abstract

The present invention discloses a method for extracting the contour of a binary hydroacoustic graphic, comprising the following steps: S1, collecting a hydroacoustic signal and converting the hydroacoustic signal into a corresponding binary hydroacoustic graphic; S2, converting the binary hydroacoustic graphic into a vector set by clustering processing and storing the same; S3, judging whether the points in the vector set are continuous, merging the continuous points, and thereby making the endpoints of the same contour in the same group; S4, calculating the contour, size, coordinates and distance of the target in the binary hydroacoustic graphic, and thereby extracting the contour of the binary hydroacoustic graphic. The present invention stores the hydroacoustic signal in the form of graphic data, and then can process the binary hydroacoustic graphic by using a graphic processing method, thereby reducing the amount of data and data transmission delay; at the same time, by extracting the target in the binary hydroacoustic graphic in advance during the graphic data processing process, the calculation efficiency of the target can also be effectively improved, and has a wide range of application prospects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of DSP image processing, and in particular relates to a method for extracting contours of underwater acoustic binary graphics. Background Art

[0002] DSP platform refers to an algorithm processing technology platform based on digital signals. The existing DSP platform only has the functions of data acquisition and binary graphics conversion. When the data results are output, the image data needs to be transmitted and then analyzed by the receiving device. Since the image data is generally large, the image data transmission takes a long time, resulting in extremely low image processing efficiency. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a method for extracting contours of underwater acoustic binary graphics to solve the problems existing in the background technology.

[0004] The invention provides a method for extracting contours of underwater acoustic binary images, comprising the following steps:

[0005] S1, collecting water acoustic signals and converting the water acoustic signals into corresponding water acoustic binary graphics;

[0006] S2, converting the underwater acoustic binary graph into a vector set through clustering processing and storing it;

[0007] S3, judging whether the points in the vector set are continuous, merging the continuous points, and making the endpoints of the same contour be in the same group;

[0008] S4. Calculate the size, coordinates and distance of the target contour in the binary underwater acoustic graph, and then extract the contour of the binary underwater acoustic graph.

[0009] Preferably, the step S1 specifically includes:

[0010] S11, sending a signal in an acoustic matrix manner and collecting a matrix echo signal using a data acquisition device to obtain a required hydroacoustic matrix signal;

[0011] S12. Binarization processing is performed on the hydroacoustic matrix signal based on the DSP platform to obtain a hydroacoustic binary graph corresponding to the hydroacoustic binary matrix.

[0012] Preferably, the step S2 specifically includes: setting a clustering point threshold in the DSP platform, performing clustering processing on the hydroacoustic binary graphics by a graphic data processing method to convert the hydroacoustic binary graphics into a vector set and store it, including the following steps:

[0013] S21, check if there is a single column in the row, if yes, proceed to step S22, if no, convert the hydroacoustic binary matrix into a vector for storage;

[0014] S22, check if there is a single point in the column traversal, if yes, proceed to step S23, if no, return to step S21;

[0015] S23, determine whether there is an end point, if yes, proceed to step S24, if no, assign the current point as the start point and the end point and return to step S22;

[0016] S24, determine whether the current point is connected to the end point, if so, replace the current point with the end point and return to step S22.

[0017] Preferably, the step S3 specifically includes:

[0018] S31, traversing each point in the vector set row by row, connecting consecutive points into lines and storing them in a preset two-dimensional unit container as one unit;

[0019] S32, traversing two consecutive unit data in a one-dimensional column in a two-dimensional unit container row by row, and judging whether the two units are consecutive according to a preset threshold value, and merging the two units if they are consecutive;

[0020] S33, randomly select the data of a cell from the two-dimensional cell container, and merge the current column of the extracted cell data with other subsequent columns according to a preset threshold. If the threshold is satisfied, merge them until there is no merge item. At this time, the same contour endpoint is already in the same group.

[0021] Preferably, the step S32 of determining whether two units are continuous specifically comprises: calculating the distance between adjacent points in the two units and comparing it with a preset threshold value; if the distance between adjacent points in the two units is less than the preset threshold value, the two units are determined to be continuous; the distance between adjacent points in the two units is expressed by the formula:

[0022] (1)

[0023] In formula (1), represents the coordinates of point 1 in the first unit, represents the coordinates of point 2 in the second unit, Indicates the distance between point 1 in the first unit and point 2 in the second unit. (Since the current data is vertical data, only the y value needs to be compared with the preset threshold).

[0024] Preferably, in step S33, the current column of the extracted unit data is merged with other subsequent columns according to a preset threshold value, specifically: firstly, the two endpoints with the smallest difference in the vertical coordinates are compared with each other, and then the distance value between the two endpoints is calculated. If the distance value between the two endpoints is less than the preset threshold value, it is judged that the merging condition is met, which is expressed by the formula:

[0025] (2)

[0026] In formula (2), represents the coordinates of the first endpoint, represents the coordinates of the second endpoint, Indicates the distance between the first endpoint and the second endpoint.

[0027] Compared with the prior art, the present invention has the following beneficial effects:

[0028] The present invention provides a method for extracting the contour of an underwater acoustic binary graphic. First, the underwater acoustic signal is converted into an underwater acoustic binary graphic through a built-in program of a DSP platform; the underwater acoustic binary graphic is then converted into a vector set by clustering processing; then the length of the line segment formed by the two points closest to each other in the two vectors is calculated, and the line segments that meet the preset threshold are combined to place the endpoints in the same contour in the same group; finally, the contour, size, coordinates and distance of the target in the underwater acoustic binary graphic can be calculated according to the combination of the contour endpoints. The present invention stores the underwater acoustic signal in the form of graphic data, and then can process the underwater acoustic binary graphic using a graphic processing method, thereby reducing the amount of data and data transmission delay; at the same time, by extracting the target in the underwater acoustic binary graphic in advance during the graphic data processing process, the calculation efficiency of the target can also be effectively improved. Therefore, the method can quickly calculate the contour, size, orientation and distance of the target in the underwater acoustic binary graphic in real time, and has a wide range of application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flow chart of a method for extracting contours of underwater acoustic binary graphics in this application. DETAILED DESCRIPTION

[0030] In order to more clearly and completely describe the technical solution of the present invention, the present invention is further described in detail through specific embodiments below. 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. Various changes can be made within the scope of the rights of the present invention.

[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0032] like Figure 1 As shown in the flowchart, the present invention discloses a method for extracting contours of underwater acoustic binary graphics, comprising the following steps:

[0033] S1, collecting water acoustic signals and converting the water acoustic signals into corresponding water acoustic binary graphics;

[0034] This step specifically includes:

[0035] S11, sending a signal in an acoustic matrix manner and collecting a matrix echo signal using a data acquisition device to obtain a required hydroacoustic matrix signal;

[0036] S12. Binarization processing is performed on the hydroacoustic matrix signal based on the DSP platform to obtain a hydroacoustic binary graph corresponding to the hydroacoustic binary matrix.

[0037] S2, converting the underwater acoustic binary graph into a vector set through clustering processing and storing it;

[0038] In this step, a clustering point threshold is set in the DSP platform and used as a parameter input, and the hydroacoustic binary graphics are clustered by a graphic data processing method to convert the hydroacoustic binary graphics into a vector set and store it.

[0039] Specifically include:

[0040] S21, check if there is a single column in the row, if yes, proceed to step S22, if no, convert the hydroacoustic binary matrix into a vector for storage;

[0041] S22, check if there is a single point in the column traversal, if yes, proceed to step S23, if no, return to step S21;

[0042] S23, determine whether there is an end point, if yes, proceed to step S24, if no, assign the current point as the start point and the end point and return to step S22;

[0043] S24, determine whether the current point is connected to the end point, if so, replace the current point with the end point and return to step S22.

[0044] S3, judging whether the points in the vector set are continuous, merging the continuous points, and making the endpoints of the same contour be in the same group;

[0045] This step specifically includes the following steps:

[0046] S31. Traverse each point in the vector set row by row, connect consecutive points into lines and store them into a preset two-dimensional unit container as a unit; the two-dimensional unit container is used to store or extract results.

[0047] S32, traversing two consecutive unit data in the one-dimensional column in the two-dimensional unit container row by row, and judging whether the two units are continuous according to a preset threshold value, and merging the two units if they are continuous; specifically: calculating the distance between adjacent points in the two units and comparing it with the preset threshold value, if the distance value between the adjacent points in the two units is less than the preset threshold value, the two units are judged to be continuous, and the distance between adjacent points in the two units is expressed by the formula:

[0048] (1)

[0049] In formula (1), represents the coordinates of point 1 in the first unit, represents the coordinates of point 2 in the second unit, represents the distance between point one in the first unit and point two in the second unit;

[0050] Since the current two unit data are vertical data, the distance value between adjacent points in the two units only needs to compare the y value of the vertical coordinate. The absolute value of the y value difference is compared with the preset threshold to determine whether the two units are continuous.

[0051] S33, randomly taking data of a cell from the two-dimensional cell container, and merging the current column of the taken cell data with other subsequent columns according to a preset threshold, and merging if the threshold is satisfied, until there is no merging item, at which point the same contour endpoints are already in the same group;

[0052] Among them, the current column of the extracted unit data is merged with other subsequent columns according to the preset threshold value. Specifically, the vertical coordinates are compared to find the two endpoints with the smallest vertical coordinate difference, and then the distance between the two endpoints is calculated. If the distance between the two endpoints is less than the preset threshold, it is judged that the merging condition is met. The formula is expressed as:

[0053] (2)

[0054] In formula (2), represents the coordinates of the first endpoint, represents the coordinates of the second endpoint, represents the distance between the first endpoint and the second endpoint;

[0055] Since the data in the cell are all vertical line segments, you can first use the y values ​​of the ordinate to compare each other to find the two endpoints with the smallest difference in y values ​​of the ordinate, and then calculate the distance between the two endpoints. Finally, compare the distance between the two endpoints with the preset threshold to determine whether they meet the merging conditions. Judgment basis, trying to use the square value can reduce the square root operation, thereby reducing the calculation steps of the processor in the DSP platform, thereby achieving the purpose of improving the calculation speed.

[0056] S4. Calculate the contour, size, coordinates and distance of the target in the binary underwater acoustic image, and then extract the contour of the binary underwater acoustic image.

[0057] In this embodiment, the hydroacoustic signal is first converted into a hydroacoustic binary graph through the built-in program of the DSP platform; the hydroacoustic binary graph is then converted into a vector set by clustering processing; then the length of the line segment formed by the two closest points in the two vectors is calculated, and the line segments that meet the preset threshold are combined to place the same contour endpoints in the same group; finally, the contour, size, coordinates and distance of the target in the hydroacoustic binary graph can be calculated according to the endpoint combination result. This application can store the hydroacoustic signal in the form of graphic data, and then use the graphic processing method to process the hydroacoustic binary graph, thereby reducing the amount of data and data transmission delay; at the same time, by extracting the target in the hydroacoustic binary graph in advance during the graphic data processing process, the calculation efficiency of the target can also be effectively improved. Therefore, this method can quickly calculate the contour, size, orientation and distance of the target in the hydroacoustic binary graph in real time, and has a wide range of application prospects.

[0058] The above is a detailed introduction to a method for extracting contours of underwater acoustic binary graphics provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the core idea of ​​the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A method for extracting contours of underwater acoustic binary graphics, characterized in that: The following steps are involved: S1, collecting water acoustic signals and converting the water acoustic signals into corresponding water acoustic binary graphics; S2, converting the hydroacoustic binary graph into a vector set through clustering processing and storing the vector set; S3. Determine whether the points in the vector set are continuous, merge the continuous points, and make the endpoints of the same contour in the same group, specifically including: S31, traversing each point in the vector set row by row, connecting consecutive points into lines and storing them in a preset two-dimensional unit container as one unit; S32, traversing two consecutive unit data in a one-dimensional column in a two-dimensional unit container row by row, and judging whether the two units are continuous according to a preset threshold value, and merging the two units if they are continuous, wherein judging whether the two units are continuous is specifically: calculating the distance between adjacent points in the two units and comparing it with a preset threshold value, and judging that the two units are continuous if the distance value between adjacent points in the two units is less than the preset threshold value, and the distance between adjacent points in the two units is expressed by the formula: (1) In formula (1), represents the coordinates of point 1 in the first unit, represents the coordinates of point 2 in the second unit, represents the distance between point one in the first unit and point two in the second unit; S33, randomly select the data of a unit from the two-dimensional unit container, and merge the current column of the taken unit data with the subsequent columns according to the preset threshold value, if satisfied, merge until there is no merge item, at this time the same contour endpoint is already in the same group, wherein the current column of the taken unit data and the subsequent columns are merged and judged according to the preset threshold value as follows: first compare the ordinates with each other to find the two endpoints with the smallest ordinate difference, then calculate the distance value between the two endpoints found, if the distance value between the two endpoints is less than the preset threshold, it is judged that it meets the merging condition, which is expressed by the formula: (2) In formula (2), represents the coordinates of the first endpoint, represents the coordinates of the second endpoint, represents the distance between the first endpoint and the second endpoint; S4. Calculate the contour, size, coordinates and distance of the target in the binary underwater acoustic image, and then extract the contour of the binary underwater acoustic image.

2. The method for extracting contours of underwater acoustic binary images according to claim 1, characterized in that: The step S1 specifically includes: S11, sending out signals in an acoustic matrix manner and collecting matrix echo signals using a data acquisition device to obtain a required hydroacoustic matrix signal; S12. Binarization processing is performed on the hydroacoustic matrix signal based on the DSP platform to obtain a hydroacoustic binary graph corresponding to the hydroacoustic binary matrix.

3. A method for extracting contours of underwater acoustic binary images as claimed in claim 2, characterized in that: The step S2 specifically includes: setting a clustering point threshold in the DSP platform, performing clustering processing on the hydroacoustic binary graphics by a graphic data processing method to convert the hydroacoustic binary graphics into a vector set and store it, including the following steps: S21, check if there is a single column in the row traversal, if yes, proceed to step S22, if no, convert the hydroacoustic binary matrix into a vector for storage; S22, check if there is a single point in the column traversal, if yes, proceed to step S23, if no, return to step S21; S23, determine whether there is an end point, if yes, proceed to step S24, if no, assign the current point as the start point and the end point and return to step S22; S24, determine whether the current point is connected to the end point, if so, replace the current point with the end point and return to step S22.