A method, device, electronic equipment and medium for detecting seabed bubbles
By irradiating the seabed bubble photos simultaneously by laser and LED light source, combined with image processing technology, the problem of traditional technology being unable to estimate the distribution position and size of bubbles is solved, and accurate detection of bubble positions and volume is achieved, and suitable for deep-sea environments.
Patent Information
- Application Number
- CN202110924342.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-12
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2041-08-12
AI Technical Summary
Traditional subsea bubble detection technology cannot estimate the distribution location and size of bubbles, and the equipment is large in size and high in energy consumption, making it difficult to be suitable for deep-sea environments.
The laser and LED light source are used to simultaneously irradiate the photos of the seabed bubbles. Through channel separation, binarization processing and image morphology operations, the position and volume of the bubbles are calculated, and the image processing module is used to calculate the position and volume of the bubbles.
It realizes accurate detection of the distribution location and size of bubbles under the sea. The system structure is compact, suitable for long-term deep sea work, and adapts to monitoring the degree of bubble eruption in the underwater.
Smart Images

Figure CN113899737B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of seabed bubble detection, and in particular to a method and device for seabed bubble detection, and electronic equipment. Background Art
[0002] In many fields, such as textile, fiber industry, submarine gas storage and transportation and other scientific research fields, there is an urgent need to detect and count bubbles in the water. For example, the monitoring of submarine methane bubbles is of great significance for marine research and marine resource exploration and development. At present, there are some studies and methods related to underwater bubble photography, such as in the field of submarine gas storage and transportation and some scientific research fields.
[0003] In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: traditional technology can use acoustic and other technical means to detect the leakage position of bubbles, but cannot detect the flux of bubbles, and it is difficult to estimate the distribution position of bubbles. At the same time, traditional bubble detection methods are large in size, high in energy consumption, and difficult to deploy, and cannot be applied to deep-sea environments. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, an apparatus, and an electronic device to solve the technical problem existing in the related art that the distribution position and size of bubbles cannot be estimated.
[0005] According to a first aspect of an embodiment of the present application, a method is provided, including:
[0006] Acquire a photo of seabed bubbles collected by an image acquisition module, wherein the photo of seabed bubbles is obtained under simultaneous irradiation of a laser and an LED light source;
[0007] Performing channel separation, binarization processing, and image morphology operations on the seabed bubble photos to obtain laser images and LED images;
[0008] Calculating the distance of the bubble relative to the image acquisition module according to the laser image;
[0009] According to the distance, coordinate conversion is performed on the horizontal and vertical coordinates of the bubble on the image to calculate the bubble position;
[0010] Performing image processing on the LED image to obtain a first diameter and a first area of a bubble region in the image;
[0011] Calculating a second diameter and a second area of the bubble according to the first diameter, the first area and the distance;
[0012] The volume of the seabed bubble is calculated based on the second diameter and the second area.
[0013] According to a second aspect of an embodiment of the present application, a device is provided, including:
[0014] An acquisition module is used to acquire the seabed bubble photos acquired by the image acquisition module, wherein the seabed bubble photos are acquired under simultaneous irradiation of a laser and an LED light source;
[0015] The first processing module performs channel separation, binarization processing and image morphological operations on the seabed bubble photo to obtain a laser image and an LED image;
[0016] A first calculation module, for calculating the distance of the bubble relative to the image acquisition module according to the laser image;
[0017] A second calculation module, based on the distance, performs coordinate conversion on the horizontal and vertical coordinates of the bubble on the image to calculate the bubble position;
[0018] A second processing module performs image processing on the LED image to obtain a first diameter and a first area of a bubble region in the image;
[0019] A third calculation module, calculating a second diameter and a second area of the bubble according to the first diameter, the first area and the distance;
[0020] The fourth calculation module calculates the volume of the seabed bubble according to the second diameter and the second area.
[0021] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including:
[0022] one or more processors;
[0023] A memory for storing one or more programs;
[0024] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in the first aspect.
[0025] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored, characterized in that when the instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
[0026] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0027] It can be seen from the above embodiments that the present invention obtains a photo of seabed bubbles under simultaneous irradiation of an LED light source and a laser; performs channel separation, binarization processing and image morphology operations on the seabed bubble photo to obtain a laser image and an LED image; obtains the bubble position by performing image processing on the laser image; obtains the bubble volume by processing the LED image; after obtaining a photo of seabed bubbles, the present invention obtains information such as the bubble position and bubble volume by performing operations such as separation on the seabed bubble photo, thereby solving the technical problem in the related art that the bubble distribution position and size cannot be estimated.
[0028] This device uses a light source (including an LED light source and a laser) and an image acquisition module to obtain seabed bubble images, and uses an information processing module to calculate the bubble volume and position. Due to the small size and compact structure of the light source and camera, the structure of this measurement system is simple compared to other systems, can work for a long time in the deep sea, and is less affected by the environment. It is suitable for monitoring the degree of underwater bubble eruption.
[0029] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0031] Figure 1 The figure is a flow chart of a method for detecting seabed bubbles according to an exemplary embodiment.
[0032] Figure 2 The present invention is a method for calculating bubble distance in a seabed bubble detection method according to an exemplary embodiment.
[0033] Figure 3 is a flowchart of step S104 according to an exemplary embodiment.
[0034] Figure 4 is a flowchart of step S105 according to an exemplary embodiment.
[0035] Figure 5 is a flowchart of step S106 according to an exemplary embodiment.
[0036] Figure 6 The figure is a flow chart of a method for detecting seabed bubbles according to an exemplary embodiment.
[0037] Figure 7 and Figure 8It is a block diagram of a submarine bubble detection device according to an exemplary embodiment.
[0038] Fig. 9 It is a schematic structural diagram of a submarine bubble detection device according to an exemplary embodiment.
[0039] The reference numerals in the figures are:
[0040] 10. Connecting rod; 11. Laser; 12. Camera; 13. LED light source; 14. Processor; 15. Sealed box. DETAILED DESCRIPTION
[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0042] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0043] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0044] Figure 1 is a flowchart of a method according to an exemplary embodiment. Figure 1 As shown, the method is applied in a terminal and may include the following steps:
[0045] Step S101: Acquire a photo of seabed bubbles collected by an image acquisition module, wherein the photo of seabed bubbles is obtained under simultaneous irradiation of a laser and an LED light source;
[0046] Step S102: performing channel separation, binarization processing, and image morphology operations on the seabed bubble photo to obtain a laser image and an LED image;
[0047] Step S103: calculating the distance of the bubble relative to the image acquisition module according to the laser image;
[0048] Step S104: performing coordinate conversion on the horizontal and vertical coordinates of the bubble on the image according to the distance, and calculating the bubble position;
[0049] Step S105: performing image processing on the LED image to obtain a first diameter and a first area of the bubble region in the image;
[0050] Step S106: Calculating a second diameter and a second area of the bubble according to the first diameter, the first area and the distance;
[0051] Step S107: Calculate the volume of the seabed bubble according to the second diameter and the second area.
[0052] It can be seen from the above embodiments that the present application obtains a photo of seabed bubbles under simultaneous irradiation of an LED light source and a laser; performs channel separation, binarization processing and image morphology operations on the seabed bubble photo to obtain a laser image and an LED image; obtains the bubble position by performing image processing on the laser image; obtains the bubble volume by processing the LED image; after obtaining a photo of seabed bubbles, the present invention obtains information such as the bubble position and bubble volume by performing operations such as separation of the seabed bubble photo, thereby solving the technical problem in the related art that the bubble distribution position and size cannot be estimated.
[0053] In the specific implementation of step S101, a photo of seabed bubbles collected by an image acquisition module is obtained, wherein the photo of seabed bubbles is obtained under simultaneous irradiation of a laser and an LED light source;
[0054] Under the irradiation of the laser, the bubble will totally reflect the laser at a specific angle and can be captured by the image acquisition module; the LED light source can illuminate the side of the bubble facing the light source. Since the laser has good monochromaticity, the color information can be used in image processing to separate the laser-illuminated part of the bubble from the LED-illuminated part, and two photos can be extracted. In this embodiment, the image acquisition module uses an industrial camera that can capture images at a high speed of 210 frames per second. In the above embodiment, one camera is used to simultaneously capture images under the irradiation of two light sources, with the aim of reducing unnecessary hardware expenses, controlling the system volume, enhancing system stability, and also reducing the number of system calibration times.
[0055] In the specific implementation of step S102, channel separation, binarization processing and image morphology operation are performed on the seabed bubble photo to obtain a laser image and an LED image;
[0056] The seabed bubble photo adopts RGB color space. The monochromaticity of green laser is used to extract the image of G (green) channel; a suitable threshold is selected for binarization to prevent the ambient light from being regarded as a component of the laser image; in order to eliminate the impression of tiny impurities in the water, the corrosion operation is used to remove noise; in order to avoid the problem of discontinuous light reflected by the same bubble, the possible discontinuous lines are connected by expansion and corrosion methods; finally, the laser image is obtained. The LED image is obtained by the same method, but the R (red) and B (blue) channels are used instead of the G channel. In this embodiment, the classic method of image processing is used, which has a simple principle and low computing power overhead, can reduce the power consumption of the detection system, and makes the measurement system suitable for long-term underwater observation.
[0057] In the specific implementation of step S103, the distance of the bubble relative to the image acquisition module is calculated according to the laser image;
[0058] Specifically, according to the correspondence between the longitudinal coordinate of the bubble in the laser image and its distance, the distance of the bubble relative to the image acquisition module to which it belongs is obtained. Figure 2 As shown, the z-direction coordinate of the bubble is controlled, and the longitudinal coordinate of the bubble is constructed by adding the captured laser image (such as Figure 4 The coordinate y1 of the camera sampling map and its distance (such as Figure 4 The corresponding relationship between the distance z1) of the test graph in the experiment is established by curve fitting, and the relationship between the two is used to estimate the bubble distance in the actual measurement system. This design overcomes the difficulty of estimating the distance using the perspective principle due to the different bubble sizes, and the relationship curve fitting is performed in the experimental environment, making the estimation of the bubble z coordinate more accurate.
[0059] In the specific implementation of step S104, according to the distance, the horizontal and vertical coordinates of the bubble on the image are transformed to calculate the bubble position; Figure 3 , this step includes the following sub-steps:
[0060] Step S201: transforming the horizontal and vertical coordinates of the bubble on the image to obtain the two-dimensional position of the bubble;
[0061] Specifically, the image processing method is used to calculate the geometric center point of the bubble in the LED image as the horizontal and vertical coordinates of the bubble on the image. After coordinate transformation, the x and y coordinates of the bubble in space are obtained as the two-dimensional position of the bubble:
[0062] Step S202: Calculate the bubble position according to the distance and the two-dimensional position;
[0063] Specifically, according to the distance and the two-dimensional position, the actual coordinates of the bubble in the three-dimensional space are calculated using the coordinate system transformation calibrated by the system to obtain the bubble position;
[0064] The above steps 201 and 202 are common practices for obtaining the three-dimensional coordinates of points of interest in the three-dimensional scanning industry. They are easy to develop, have low computing power requirements, and have low system overhead.
[0065] In the specific implementation of step S105, the LED image is processed to obtain a first diameter and a first area of the bubble region in the image; Figure 4 , this step includes the following sub-steps:
[0066] Step S301: performing image processing on the LED image to obtain a bubble region in the LED image;
[0067] Specifically, the LED image is detected for connected areas, and an appropriate threshold is set to exclude connected areas that are too small, and each remaining connected area is a bubble area. This design utilizes the classic image processing method, which has a simple principle and low computing power overhead, can reduce the power consumption of the detection system, and makes the measurement system suitable for long-term underwater observation.
[0068] Step S302: calculating the diameter of the minimum circumscribed circle of the bubble region to obtain the first diameter;
[0069] Specifically, image processing is performed on the bubble region in the LED image, a minimum circumscribed circle is made for the region, and the diameter of the minimum circumscribed circle is used as the first diameter of the bubble.
[0070] Step S303: Calculate the area occupied by the bubble region in the LED image to obtain the first area.
[0071] Specifically, image processing is performed on the bubble area in the LED image, and the number of pixels occupied by the bubble connected area is counted as the first area of the bubble.
[0072] In the specific implementation of step S106, the second diameter and the second area of the bubble are calculated according to the first diameter, the first area and the distance; Figure 5 , this step includes the following sub-steps:
[0073] Step S401: Calculate an estimated value of the minimum circumscribed sphere diameter of the bubble according to the first diameter and the distance to obtain the second diameter;
[0074] Based on the principle that bubbles of the same diameter will have a larger diameter when imaged at a close distance and a smaller diameter when imaged at a long distance, the first diameter of the bubble is proportionally transformed using the camera calibration results to obtain an estimate of the actual minimum circumscribed sphere diameter of the bubble, which is called the second diameter.
[0075] This design uses the calibration of the imaging system to directly convert the diameter and is easy to develop.
[0076] Step S402: According to the first area and the diameter, the first area is corrected according to the principle that things are larger when near and smaller when far, to obtain the second area.
[0077] Using the camera calibration result, the first area of the bubble is scaled to obtain an estimate of the area of the bubble that is actually illuminated, which is called the second area.
[0078] In the specific implementation of step S107, the volume of the seabed bubble is calculated according to the second diameter and the second area.
[0079] The volume of the sphere is calculated according to the second diameter to obtain a first volume reference; the second area is calculated by power, ratio, etc. to obtain a second volume reference; the first volume reference and the second volume reference are weighted averaged to obtain the volume of a single seabed bubble.
[0080] Further, refer to Figure 6 , the method may further comprise the following steps:
[0081] Step S108: summing the volumes of all bubbles to obtain a preliminary estimated bubble flux Q1;
[0082] Specifically, the second diameter and the second area of the bubble are weighted to calculate the bubble volume, and the volumes of all bubbles in the field of view are summed to obtain a preliminary estimated bubble flux Q1.
[0083] Step S109: calculating the occlusion ratio of the bubbles in the image according to the two-dimensional positions and the first area of all the bubbles in the LED image;
[0084] Specifically, when the two-dimensional positions of any two bubbles on the LED image are too close to each other, so that their first areas overlap, the estimation of the bubble volume needs to consider the occlusion problem. For this purpose, the occlusion ratio is introduced, and the ratio of the overlapping part of all bubble areas to the total area is calculated as the occlusion ratio. When the occlusion ratio is greater than a certain value, the impact of occlusion on volume estimation is considered. This design divides the volume estimation method into two types according to the bubble occlusion ratio, which simplifies the estimation model.
[0085] Step S110: if the occlusion ratio exceeds a predetermined threshold, the bubble flux Q1 is fitted to obtain a final first bubble flux;
[0086] Step S111: if the shielding ratio does not exceed a predetermined threshold, fitting the bubble flux Q1 to obtain a final second bubble flux;
[0087] In the specific implementation of step S110-step S111, if the bubble eruption is violent and the distribution is dense, the occlusion ratio will exceed the threshold. At this time, the bubble flux fitting method under occlusion is used to fit Q1 to obtain the first bubble flux; if the bubble distribution is not dense and the occlusion ratio does not exceed the predetermined threshold, the bubble flux fitting method under no occlusion is used to fit Q1 to obtain the second bubble flux.
[0088] Step S111: generating a final bubble flux Q2 according to the first bubble flux or the second bubble flux;
[0089] Step S112: Generate bubble level information according to the bubble flux Q2 and the preset bubble level classification.
[0090] In one embodiment, the bubble flux Q2 is numerically graded as a bubble level, and this level data is then transmitted to a client for real-time monitoring of the bubble level.
[0091] Corresponding to the aforementioned embodiment of a seabed bubble detection method, the present application also provides an embodiment of a seabed bubble detection device.
[0092] Figure 7 is a block diagram of a submarine bubble detection device according to an exemplary embodiment. Figure 7 , the device comprises:
[0093] An acquisition module 21 acquires a photo of seabed bubbles acquired by an image acquisition module, wherein the photo of seabed bubbles is acquired under simultaneous irradiation of a laser and an LED light source;
[0094] The first processing module 22 performs channel separation, binarization processing and image morphology operation on the seabed bubble photo to obtain a laser image and an LED image;
[0095] A first calculation module 23 is configured to calculate the distance of the bubble relative to the image acquisition module according to the laser image;
[0096] A second calculation module 24 performs coordinate conversion on the horizontal and vertical coordinates of the bubble on the image according to the distance to calculate the bubble position;
[0097] The second processing module 25 performs image processing on the LED image to obtain a first diameter and a first area of the bubble region in the image;
[0098] A third calculation module 26 calculates a second diameter and a second area of the bubble according to the first diameter, the first area and the distance;
[0099] The fourth calculation module 27 calculates the volume of the seabed bubble according to the second diameter and the second area.
[0100] like Figure 8 As shown, the device may also include:
[0101] A fifth calculation module 28 performs a summation operation on the volumes of all bubbles to calculate a preliminary estimated bubble flux Q1;
[0102] A sixth calculation module 29, which calculates the occlusion ratio of the bubbles in the image according to the two-dimensional positions and the first area of all the bubbles in the LED image;
[0103] A first fitting module 30, if the occlusion ratio exceeds a predetermined threshold, fits the bubble flux Q1 to obtain a final first bubble flux;
[0104] A first fitting module 31, if the occlusion ratio does not exceed a predetermined threshold, fits the bubble flux Q1 to obtain a final second bubble flux;
[0105] A first generating module 32, generating a final bubble flux Q2 according to the first bubble flux or the second bubble flux;
[0106] The second generating module 33 generates bubble level information according to the bubble flux Q2 and a preset bubble level classification.
[0107] The present application also provides a submarine bubble detection device, comprising an illumination module, an image acquisition module and an information processing module, wherein the illumination module comprises a laser and an LED light source, wherein the laser is used to emit laser light, and the LED light source is used to emit LED light, and the emission directions of the laser and the LED light source are in the same plane; the submarine bubble photo is obtained under the simultaneous irradiation of the laser and the LED light source; the image acquisition module is used to collect the submarine bubble image when the illumination module is working; the information processing module is used to obtain the submarine bubble photo collected by the image acquisition module; the submarine bubble photo is subjected to channel separation, binarization processing and image morphological operation to obtain a laser image and an LED image; according to the laser image, the distance of the bubble relative to the image acquisition module is calculated; according to the distance, the horizontal and vertical coordinates of the bubble on the image are converted to calculate the bubble position; the LED image is subjected to image processing to obtain a first diameter and a first area of the bubble area in the image; according to the first diameter, the first area and the distance, the second diameter and the second area of the bubble are calculated; according to the second diameter and the second area, the volume of the submarine bubble is calculated.
[0108] like Fig. 9 As shown, an exemplary device includes a connecting rod 10, a laser 11, a camera 12, an LED light source 13, a processor 14 and a sealed box 15. The camera 12 obtains photos of seabed bubbles under the simultaneous illumination of the laser 11 and the LED light source 13; the processor 14 processes the photos of seabed bubbles; the connecting rod 10 is used to fix the laser 11, the camera 12 and the LED light source 13 from top to bottom, wherein the laser 11 is tilted downward, and the inclination angle with the horizontal plane is greater than or equal to 26°, and the camera 12 and the LED light source 13 are fixed horizontally; the sealed box 15 seals the connecting rod 10, the laser 11, the camera 12, the LED light source 13, and the processor 14, the connecting rod 10 is vertically fixed in the sealed box 15, and the processor 14 is fixed at the bottom of the sealed box 15 and connected to the camera 12.
[0109] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0110] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0111] Correspondingly, the present application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement a seabed bubble detection method as described above.
[0112] Correspondingly, the present application also provides a computer-readable storage medium on which computer instructions are stored, characterized in that when the instructions are executed by a processor, a seabed bubble detection method as described above is implemented.
[0113] Those skilled in the art will readily appreciate other embodiments of the present application after considering the description and practicing the contents disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. The description and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0114] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for detecting seabed bubbles, It is characterized in that include: Acquire a photo of seabed bubbles collected by an image acquisition module, wherein the photo of seabed bubbles is obtained under simultaneous irradiation of a laser and an LED light source; Performing channel separation, binarization processing, and image morphology operations on the seabed bubble photos to obtain laser images and LED images; Calculating the distance of the bubble relative to the image acquisition module according to the laser image; According to the distance, coordinate conversion is performed on the horizontal and vertical coordinates of the bubble on the image to calculate the bubble position; Performing image processing on the LED image to obtain a first diameter and a first area of a bubble region in the image; Calculating a second diameter and a second area of the bubble according to the first diameter, the first area and the distance; include: Calculate an estimated value of the minimum circumscribed sphere diameter of the bubble according to the first diameter and the distance to obtain the second diameter; Correcting the first area according to the first area and the diameter to obtain the second area; The volume of the seabed bubbles is calculated according to the second diameter and the second area; the volumes of all the bubbles are summed to calculate a preliminary estimated bubble flux Q1; Calculating the occlusion ratio of the bubbles in the image according to the two-dimensional positions and the first area of all the bubbles in the LED image; If the occlusion ratio exceeds a predetermined threshold, Q1 is fitted using the fitting method under occlusion to obtain the final first bubble flux; If the occlusion ratio does not exceed the predetermined threshold, Q1 is fitted using the bubble flux fitting method under no occlusion to obtain the final second bubble flux; Generating a final bubble flux Q2 according to the first bubble flux or the second bubble flux; The bubble level information is generated according to the bubble flux Q2 and the preset bubble level classification.
2. The method according to claim 1, It is characterized in that According to the distance, coordinate conversion is performed on the horizontal and vertical coordinates of the bubble on the image to calculate the bubble position, including: Transforming the horizontal and vertical coordinates of the bubble on the image to obtain the two-dimensional position of the bubble; The bubble position is calculated based on the distance and the two-dimensional position.
3. The method according to claim 1, It is characterized in that Performing image processing on the LED image to obtain a first diameter and a first area of a bubble region in the image includes: Performing image processing on the LED image to obtain a bubble region in the LED image; Calculating the diameter of the minimum circumscribed circle of the bubble region to obtain the first diameter; The area occupied by the bubble region in the LED image is calculated to obtain the first area.
4. A submarine bubble detection device, It is characterized in that include: An acquisition module is used to acquire the seabed bubble photos acquired by the image acquisition module, wherein the seabed bubble photos are acquired under simultaneous irradiation of a laser and an LED light source; The first processing module performs channel separation, binarization processing and image morphological operations on the seabed bubble photo to obtain a laser image and an LED image; A first calculation module, for calculating the distance of the bubble relative to the image acquisition module according to the laser image; A second calculation module, based on the distance, performs coordinate conversion on the horizontal and vertical coordinates of the bubble on the image to calculate the bubble position; A second processing module performs image processing on the LED image to obtain a first diameter and a first area of a bubble region in the image; A third calculation module, calculating a second diameter and a second area of the bubble according to the first diameter, the first area and the distance; include: Calculate an estimated value of the minimum circumscribed sphere diameter of the bubble according to the first diameter and the distance to obtain the second diameter; Correcting the first area according to the first area and the diameter to obtain the second area; A fourth calculation module, calculating the volume of the seabed bubble according to the second diameter and the second area; The fifth calculation module performs a summation operation on the volumes of all bubbles to calculate a preliminary estimated bubble flux Q1; A sixth calculation module, which calculates the occlusion ratio of the bubbles in the image according to the two-dimensional positions and the first area of all the bubbles in the LED image; In the first fitting module, if the occlusion ratio exceeds a predetermined threshold, If the occlusion ratio exceeds a predetermined threshold, Q1 is fitted using the fitting method under occlusion to obtain the final first bubble flux; A first fitting module, if the occlusion ratio does not exceed a predetermined threshold, uses a bubble flux fitting method under no occlusion to fit Q1 to obtain a final second bubble flux; a first generating module, based on the first bubble flux or the second bubble flux, generates a final bubble flux Q2; The second generating module generates bubble level information according to the bubble flux Q2 and a preset bubble level classification.
5. A submarine bubble detection device, It is characterized in that include: An illumination module, wherein the illumination module comprises a laser and an LED light source, wherein the laser is used to emit laser light, and the LED light source is used to emit LED light, and the emission directions of the laser and the LED light source are in the same plane; the seabed bubble photograph is obtained under the simultaneous illumination of the laser and the LED light source; An image acquisition module, wherein the image acquisition module is used to acquire an image of seabed bubbles when the lighting module is working; An information processing module is used to obtain the seabed bubble photos collected by the image acquisition module; perform channel separation, binarization processing and image morphology operations on the seabed bubble photos to obtain laser images and LED images; According to the laser image, the distance of the bubble relative to the image acquisition module is calculated; according to the distance, the horizontal and vertical coordinates of the bubble on the image are converted to calculate the position of the bubble; Performing image processing on the LED image to obtain a first diameter and a first area of a bubble region in the image; Calculating the second diameter and the second area of the bubble according to the first diameter, the first area and the distance, including: calculating an estimated value of the minimum circumscribed sphere diameter of the bubble according to the first diameter and the distance to obtain the second diameter; correcting the first area according to the first area and the diameter to obtain the second area; calculating the volume of the seabed bubble according to the second diameter and the second area; summing the volumes of all bubbles to calculate a preliminary estimated bubble flux Q1; Calculating the occlusion ratio of the bubbles in the image according to the two-dimensional positions and the first area of all the bubbles in the LED image; If the occlusion ratio exceeds a predetermined threshold, Q1 is fitted using the fitting method under occlusion to obtain the final first bubble flux; If the occlusion ratio does not exceed the predetermined threshold, Q1 is fitted using the bubble flux fitting method under no occlusion to obtain the final second bubble flux; Generating a final bubble flux Q2 according to the first bubble flux or the second bubble flux; The bubble level information is generated according to the bubble flux Q2 and the preset bubble level classification.
6. An electronic device, It is characterized in that include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.
7. A computer-readable storage medium having computer instructions stored thereon, It is characterized in that When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
