Method and device for measuring particle size of underwater riverbed sediment
Through the underwater camera module continuous shooting, noise reduction treatment and image distortion correction technology, the noise and distortion problems in the measurement of silt particle size of underwater riverbed are solved, the accuracy and efficiency of measurement are improved, and the water conservancy engineering and environmental research is provided. Reliable data support.
Patent Information
- Application Number
- CN202411141586.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-08-20
AI Technical Summary
The existing underwater riverbed sediment particle size measurement technology has problems with noise interference and image distortion, resulting in low accuracy and efficiency of measurement results.
The underwater camera module is used for continuous shooting, noise reduction is performed through the median averaging method, and the photos are corrected based on the image distortion correction algorithm, and the river bed size information of each pixel is determined based on the side length information of the cuboid frame, so as to Identify the grading information of the silt and sand of the underwater riverbed.
It improves the monitoring efficiency and accuracy of sediment grading information of underwater riverbeds, provides reliable data support, and provides effective data support for water conservancy engineering and environmental research.
Smart Images

Figure CN119044014A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of underwater sediment measurement, and in particular to a method and device for measuring the particle size of underwater riverbed sediment. Background Art
[0002] With the development of water conservancy engineering technology, underwater riverbed sediment measurement technology has become increasingly important. Underwater sediment measurement technology can be used to measure the particle size distribution and gradation information of underwater riverbed sediment, so as to provide data support for research in the fields of water conservancy engineering, waterway maintenance, riverbed evolution and environmental changes. In related technologies, the underwater sediment particle size information is measured using an artificial single-point measurement method. Summary of the invention
[0003] The present invention provides a method and a device for measuring the particle size of underwater riverbed sediment.
[0004] According to a first aspect of the present disclosure, there is provided a method for measuring the particle size of underwater riverbed sediment, comprising:
[0005] Acquire multiple first riverbed sediment photos; the multiple first riverbed sediment photos are taken by an underwater camera module in a device for measuring underwater riverbed sediment particle size using a continuous shooting mode;
[0006] The median average method is used to perform noise reduction on multiple first riverbed sediment photos to obtain the first sediment particle size photo;
[0007] Correcting the first sediment particle size photo based on an image distortion correction algorithm to obtain a corrected first sediment particle size photo;
[0008] Determine the first image scale information according to the side length information of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the underwater riverbed sediment particle size and the first sediment particle size photo after correction processing; the first image scale information includes the riverbed surface size information corresponding to each pixel in the first sediment particle size photo after correction processing;
[0009] First riverbed sediment identification information is obtained from the corrected first sediment particle size photograph, and underwater riverbed sediment gradation information is obtained based on the first riverbed sediment identification information and the first image scale information.
[0010] According to a second aspect of the present disclosure, there is provided a device for measuring the particle size of underwater riverbed sediment, comprising:
[0011] An acquisition module is used to acquire a plurality of first riverbed sediment photos; the plurality of first riverbed sediment photos are obtained by taking photos in a continuous shooting mode using an underwater camera module in a device for measuring the particle size of underwater riverbed sediment;
[0012] A noise reduction module, used for performing noise reduction processing on the plurality of first riverbed sediment photos by using a median average method to obtain a first sediment particle size photo;
[0013] A correction module, used for correcting the first sediment particle size photo based on an image distortion correction algorithm to obtain a corrected first sediment particle size photo;
[0014] A determination module, for determining first image scale information according to the side length information of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment and the first sediment particle size photo after correction processing; the first image scale information includes the riverbed surface size information corresponding to each pixel in the first sediment particle size photo after correction processing;
[0015] The identification module is used to identify and obtain first riverbed sediment identification information from the first sediment particle size photo after correction, and obtain underwater riverbed sediment gradation information based on the first riverbed sediment identification information and the first picture scale information.
[0016] According to a third aspect of the present disclosure, there is provided a device for measuring the particle size of underwater riverbed sediment, comprising:
[0017] A rectangular parallelepiped frame for fixing the position of a device for measuring the particle size of sediment in an underwater riverbed;
[0018] A camera connection module is connected to the rectangular frame and is used to fix the underwater camera module on the rectangular frame;
[0019] The underwater camera module is connected to the camera connection module and is used to photograph the underwater sediment at the location of the device for measuring the particle size of the underwater riverbed sediment.
[0020] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:
[0021] at least one processor; and
[0022] a memory communicatively connected to at least one processor; wherein,
[0023] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the method of the first aspect mentioned above.
[0024] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method of the first aspect.
[0025] According to a sixth aspect of an embodiment of the present disclosure, there is provided a computer program product, comprising a computer program, which implements the steps of any one of the methods in the first aspect when executed by a processor.
[0026] The technical solution disclosed in the present invention obtains a plurality of first riverbed sediment photos; the plurality of first riverbed sediment photos are obtained by taking the photos in a continuous shooting mode using an underwater camera module in a device for measuring the particle size of underwater riverbed sediment; a median average method is used to perform noise reduction processing on the plurality of first riverbed sediment photos to obtain a first sediment particle size photo; the first sediment particle size photo is corrected based on an image distortion correction algorithm to obtain a corrected first sediment particle size photo; and the square bottom surface information of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment and the correction algorithm are used to obtain a first sediment particle size photo. The first sediment particle size photograph after correction is used to determine the first picture scale information; the first picture scale information includes the riverbed size information corresponding to each pixel in the first sediment particle size photograph after correction; the first riverbed sediment identification information is obtained from the first sediment particle size photograph after correction, and the underwater riverbed sediment gradation information is obtained based on the first riverbed sediment identification information and the first picture scale information, thereby improving the monitoring efficiency and accuracy of the underwater riverbed sediment gradation information, so as to provide reliable data support for research and application in related fields.
[0027] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0029] Figure 1 is a flow chart of a method for measuring the particle size of underwater riverbed sediment provided according to an embodiment of the present disclosure;
[0030] Figure 2 is a flow chart of a method for measuring the particle size of underwater riverbed sediment provided according to an embodiment of the present disclosure;
[0031] Figure 3 is a flow chart of a method for measuring the particle size of underwater riverbed sediment provided according to an embodiment of the present disclosure;
[0032] Figure 4 is a flow chart of a method for measuring the particle size of underwater riverbed sediment provided according to an embodiment of the present disclosure;
[0033] Figure 5 is a block diagram of a device for measuring the particle size of underwater riverbed sediment provided according to an embodiment of the present disclosure;
[0034] Figure 6 is a block diagram of a device for measuring the particle size of underwater riverbed sediment provided according to an embodiment of the present disclosure;
[0035] Figure 7 is a block diagram of a device for measuring the particle size of underwater riverbed sediment provided according to an embodiment of the present disclosure;
[0036] Figure 8 is a block diagram of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0038] It should be noted that in the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0039] Figure 1 1 is a flow chart of a method for measuring the particle size of underwater riverbed sediment according to an embodiment of the present disclosure. It should be noted that, in some embodiments, the execution body of the method for measuring the particle size of underwater riverbed sediment may be a processing module of the device for measuring the particle size of underwater sediment provided in an embodiment of the present disclosure. Figure 1 As shown, the method for measuring the particle size of underwater riverbed sediment includes but is not limited to the following steps:
[0040] In step S101, a plurality of first riverbed sediment photos are obtained.
[0041] It should be noted that, in some embodiments, the plurality of first riverbed sediment photos are obtained by taking photos using a continuous shooting mode using an underwater camera module in a device for measuring the particle size of underwater riverbed sediment.
[0042] In step S102, a median average method is used to perform noise reduction processing on a plurality of first riverbed sediment photos to obtain first sediment particle size photos.
[0043] It should be noted that, in some embodiments, the median average method is an image processing method that combines the median filtering method and the arithmetic mean filtering method. Optionally, in some embodiments, the median filtering method is used to perform noise reduction processing on multiple first riverbed sediment photos to obtain multiple noise-reduced first riverbed sediment photos; the arithmetic mean filtering method is used to perform image fusion processing on multiple noise-reduced first riverbed sediment photos to obtain the first sediment particle size photo.
[0044] In step S103, the first sediment particle size photograph is corrected based on an image distortion correction algorithm to obtain a corrected first sediment particle size photograph.
[0045] It should be noted that, in some embodiments, the image distortion correction algorithm is an algorithm for correcting photos based on a camera calibration method. Optionally, in some embodiments, a first camera coordinate system and a first world coordinate system are determined; the first sediment particle size photo is corrected according to the first camera coordinate system and the first world coordinate system to obtain the corrected first sediment particle size photo.
[0046] In step S104, first image scale information is determined based on the side length information of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment and the first sediment particle size photo after correction.
[0047] It should be noted that, in some embodiments, the first image scale information includes riverbed size information corresponding to each pixel in the first sediment particle size photograph after correction.
[0048] It should be noted that, in some embodiments, the spatial resolution is the actual ground distance represented by one pixel in the photo. For example, the scale information of the first image is five centimeters, that is, each pixel in the first underwater sediment motion image information after correction corresponds to a square riverbed with a side length of five centimeters.
[0049] In step S105, first riverbed sediment identification information is obtained from the corrected first sediment particle size photograph, and underwater riverbed sediment gradation information is obtained based on the first riverbed sediment identification information and the first image scale information.
[0050] It should be noted that, in some embodiments, the first riverbed sediment identification information is obtained from the first sediment particle size photograph after correction; the first riverbed sediment identification information is scaled based on the first image scale information to obtain the underwater riverbed sediment gradation information.
[0051] In an embodiment of the present disclosure, a plurality of first riverbed sediment photos are obtained; the plurality of first riverbed sediment photos are obtained by taking the photos in a continuous shooting mode using an underwater camera module in a device for measuring the particle size of underwater riverbed sediment; a median average method is used to perform noise reduction processing on the plurality of first riverbed sediment photos to obtain first sediment particle size photos; the first sediment particle size photos are corrected based on an image distortion correction algorithm to obtain the corrected first sediment particle size photos; and the side length information of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment and The first sediment particle size photograph after correction is used to determine the first picture scale information; the first picture scale information includes the riverbed size information corresponding to each pixel in the first sediment particle size photograph after correction; the first riverbed sediment identification information is obtained from the first sediment particle size photograph after correction, and the underwater riverbed sediment gradation information is obtained based on the first riverbed sediment identification information and the first picture scale information, thereby improving the monitoring efficiency and accuracy of the underwater riverbed sediment gradation information, so as to provide reliable data support for research and application in related fields.
[0052] Figure 2 FIG. 1 is a flow chart of a method for measuring the particle size of underwater riverbed sediment according to an embodiment of the present disclosure. Figure 2 As shown, the method for measuring the particle size of underwater riverbed sediment includes but is not limited to the following steps:
[0053] In step S201, a plurality of first riverbed sediment photos are obtained.
[0054] In the embodiments of the present disclosure, step S201 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0055] In step S202, each of the plurality of first riverbed sediment photographs is preprocessed to obtain a plurality of preprocessed first riverbed sediment photographs.
[0056] It should be noted that, in some embodiments, preprocessing the first riverbed sediment photograph may improve the image quality of the photograph, so as to obtain more accurate data from the first riverbed sediment photograph.
[0057] Optionally, in some embodiments, for each of the plurality of first riverbed sediment photos, image sharpening and cropping processing is performed on the first riverbed sediment photo to obtain a preprocessed first riverbed sediment photo. Exemplarily, a first shooting area is determined from the plurality of first riverbed sediment photos; for each of the plurality of first riverbed sediment photos, image cropping processing is performed on the first riverbed sediment photo based on the first shooting area to obtain a preprocessed first riverbed sediment photo.
[0058] In step S203, for each of the multiple preprocessed first riverbed sediment photos, noise reduction processing is performed on the preprocessed first riverbed sediment photo based on a median filtering algorithm to obtain a first riverbed sediment photo after noise reduction processing.
[0059] Optionally, in some embodiments, for each preprocessed first riverbed sediment photograph among the multiple preprocessed first riverbed sediment photographs, median filtering is performed on each of the multiple pixels in the preprocessed first riverbed sediment photograph based on a preset median filter to obtain the first riverbed sediment photograph after noise reduction processing.
[0060] Exemplarily, the convolution kernel size of the preset median filter is 3; for each preprocessed first riverbed sediment photo in the multiple preprocessed first riverbed sediment photos, median filtering is performed on each of the multiple pixels in the preprocessed first riverbed sediment photo based on the preset median filter to obtain the first riverbed sediment photo after noise reduction processing.
[0061] In step S204, pixel-level image fusion processing is performed on the plurality of first riverbed sediment photos that have undergone noise reduction processing to obtain first sediment particle size photos.
[0062] Optionally, in some embodiments, a plurality of first riverbed sediment photographs after noise reduction processing are aligned to obtain a plurality of first riverbed sediment photographs after alignment processing; and a plurality of first riverbed sediment photographs after alignment processing are subjected to pixel-level image fusion processing to obtain a first sediment particle size photograph.
[0063] Exemplarily, a plurality of first riverbed sediment photographs after noise reduction are aligned to obtain a plurality of aligned first riverbed sediment photographs; a first blank image having the same size as any one of the plurality of aligned first riverbed sediment photographs is created; for each pixel among the plurality of pixels of the first spatial image, pixel values corresponding to the pixel in the plurality of aligned first riverbed sediment photographs are averaged to obtain a first pixel average value corresponding to the pixel; and the first spatial image is updated based on the plurality of first pixel average values to obtain a first sediment particle size photo.
[0064] In step S205, the first sediment particle size photograph is corrected based on an image distortion correction algorithm to obtain a corrected first sediment particle size photograph.
[0065] In the embodiments of the present disclosure, step S205 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0066] In step S206, first image scale information is determined based on the side length information of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment and the first sediment particle size photo after correction.
[0067] In the embodiments of the present disclosure, step S206 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0068] In step S207, first riverbed sediment identification information is obtained from the corrected first sediment particle size photograph, and underwater riverbed sediment gradation information is obtained based on the first riverbed sediment identification information and the first image scale information.
[0069] In the embodiments of the present disclosure, step S207 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0070] In an embodiment of the present disclosure, each of the multiple first riverbed sediment photographs is preprocessed to obtain a plurality of preprocessed first riverbed sediment photographs; for each of the multiple preprocessed first riverbed sediment photographs, a denoising process is performed on the preprocessed first riverbed sediment photograph based on a median filtering algorithm to obtain a denoised first riverbed sediment photograph; and a pixel-level image fusion process is performed on the multiple denoised first riverbed sediment photographs to obtain a first sediment particle size photograph, which can improve the imaging quality and clarity of the first sediment particle size photograph, so as to improve the accuracy of the underwater riverbed sediment grading information.
[0071] Figure 3 FIG. 1 is a flow chart of a method for measuring the particle size of underwater riverbed sediment according to an embodiment of the present disclosure. Figure 3 As shown, the method for measuring the particle size of underwater riverbed sediment includes but is not limited to the following steps:
[0072] In step S301, a plurality of first riverbed sediment photos are obtained.
[0073] In the embodiments of the present disclosure, step S301 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0074] In step S302, a median average method is used to perform noise reduction processing on a plurality of first riverbed sediment photos to obtain a first sediment particle size photo.
[0075] In the embodiments of the present disclosure, step S302 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0076] In step S303, first world coordinate information and first image coordinate information are obtained.
[0077] It should be noted that, in some embodiments, the image distortion correction method based on the camera calibration technology is an algorithm for performing distortion correction on the image based on the world coordinate system and the camera coordinate system.
[0078] It should be noted that, in some embodiments, the first world coordinate information is the world coordinate information of the four corners of the square bottom surface of the rectangular frame in the device for measuring the particle size of underwater riverbed sediment; the first image coordinate information is the image coordinate information of the four corners of the square bottom surface of the rectangular frame in the device for measuring the particle size of underwater riverbed sediment.
[0079] In step S304, a first direct linear transformation formula group is solved based on the first world coordinate information and the first image coordinate information to obtain a first distortion parameter.
[0080] It should be noted that, in some embodiments, the first direct linear conversion formula group is a formula group used for conversion between the first world coordinate information and the first image coordinate information.
[0081] Optionally, in some embodiments, a first direct linear transformation formula group is constructed according to the first world coordinate parameter, the first image coordinate parameter and the first distortion parameter. Exemplarily, the four corners of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment determine the first world coordinate parameter, the first image coordinate parameter and the first distortion parameter; and a first direct linear transformation formula group is constructed according to the first world coordinate parameter, the first image coordinate parameter and the first distortion parameter. For example, the first direct linear transformation formula group can be expressed by the following formula (1):
[0082]
[0083] Among them, x i Refers to the first parameter of the i-th corner in the first image coordinate parameter; y i Refers to the second parameter of the i-th corner in the first image coordinate parameter; X i Refers to the first parameter of the i-th corner in the first world coordinate parameter; Y i Refers to the second parameter of the i-th corner in the first world coordinate parameter; a i1 refers to the first parameter of the i-th corner in the first distortion parameter; a i2 refers to the second parameter of the i-th corner in the first distortion parameter; ai3 refers to the third parameter of the i-th corner in the first distortion parameter; a i4 refers to the fourth parameter of the i-th corner in the first distortion parameter; a i5 refers to the fifth parameter of the i-th corner in the first distortion parameter; a i6 refers to the sixth parameter of the i-th corner in the first distortion parameter; a i7 refers to the seventh parameter of the i-th corner in the first distortion parameter; a i8 Refers to the eighth parameter of the i-th corner in the first distortion parameter.
[0084] Optionally, in some embodiments, the first world coordinate information and the first image coordinate information are substituted into a first direct linear transformation formula group for solution to obtain a first distortion parameter.
[0085] In step S305, the first sediment particle size photograph is corrected based on the first distortion parameter to obtain the corrected first sediment particle size photograph.
[0086] Optionally, in some embodiments, a second blank image is created; each pixel in the first sediment particle size photograph is corrected based on the first distortion parameter, and each corrected pixel is mapped to the second blank image to obtain the corrected first sediment particle size photograph.
[0087] In step S306, first image scale information is determined based on the side length information of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment and the first sediment particle size photo after correction.
[0088] In the embodiments of the present disclosure, step S306 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0089] In step S307, the first sediment particle size photograph after correction is identified based on the pre-trained sediment identification model to obtain first riverbed sediment identification information.
[0090] It should be noted that, in some embodiments, the pre-trained sediment recognition model is a recognition model that takes sediment particle size photos as input and riverbed sediment recognition information as output.
[0091] Optionally, in some embodiments, the pre-trained sediment recognition model is a sediment recognition model obtained by training a U-Net model.
[0092] In step S308, the underwater riverbed sediment gradation information is obtained according to the first riverbed sediment identification information and the first image scale information.
[0093] In the embodiments of the present disclosure, step S308 may be implemented in any of the ways in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0094] In an embodiment of the present disclosure, first world coordinate information and first image coordinate information are obtained; a first direct linear transformation formula group is solved based on the first world coordinate information and the first image coordinate information to obtain a first distortion parameter; a first sediment particle size photo is corrected based on the first distortion parameter to obtain a corrected first sediment particle size photo; first image scale information is determined based on side length information of a square bottom surface of a rectangular parallelepiped frame in an apparatus for measuring underwater riverbed sediment particle size and the corrected first sediment particle size photo; the corrected first sediment particle size photo is identified based on a pre-trained sediment recognition model to obtain first riverbed sediment recognition information, thereby improving the reliability and accuracy of the first riverbed sediment recognition information, so as to further improve the accuracy of the underwater riverbed sediment grading information.
[0095] Figure 4 FIG. 1 is a flow chart of a method for measuring the particle size of underwater riverbed sediment according to an embodiment of the present disclosure. Figure 4 As shown, the method for measuring the particle size of underwater riverbed sediment includes but is not limited to the following steps:
[0096] In step S401, a plurality of first riverbed sediment photos are obtained.
[0097] In the embodiments of the present disclosure, step S401 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0098] In step S402, a median average method is used to perform noise reduction processing on a plurality of first riverbed sediment photos to obtain a first sediment particle size photo.
[0099] In the embodiments of the present disclosure, step S402 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0100] In step S403, the first sediment particle size photograph is corrected based on an image distortion correction algorithm to obtain a corrected first sediment particle size photograph.
[0101] In the embodiments of the present disclosure, step S403 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0102] In step S404, first image scale information is determined based on the side length information of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment and the first sediment particle size photo after correction.
[0103] In the embodiments of the present disclosure, step S404 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0104] In step S405, first riverbed sediment identification information is obtained from the corrected first sediment particle size photograph.
[0105] It should be noted that, in some embodiments, the first riverbed sediment identification information includes shape information of each first sediment particle among the plurality of first sediment particles.
[0106] In step S406, for each first sediment particle among the plurality of first sediment particles, the shape information of the first sediment particle is scale-transformed based on the first image scale information to obtain the particle size information of the first sediment particle.
[0107] Optionally, in some embodiments, the shape information of the first sediment particles includes but is not limited to the diameter information of the first sediment particles; for each first sediment particle among the multiple first sediment particles, the diameter information of the first sediment particle is scaled based on the first image scale information to obtain the particle size information of the first sediment particle.
[0108] Exemplarily, the scale information of the first image is 1 cm; the diameter information of the first sediment particle is 1 pixel; based on the scale information of the first image, the diameter information of the first sediment particle is scale-transformed to obtain the particle size information of the first sediment particle is 1 cm.
[0109] In step S407, the particle size information of each first sediment particle in the plurality of first sediment particles is statistically analyzed to obtain the sediment gradation information of the underwater riverbed.
[0110] It should be noted that, in some embodiments, the underwater riverbed sediment gradation information includes but is not limited to the particle size distribution information of a plurality of first sediment particles.
[0111] Optionally, in some embodiments, a plurality of first sediment particle size ranges are determined; and based on the plurality of first sediment particle size ranges, particle size information of the plurality of first sediment particles is statistically analyzed to obtain particle size distribution information of the plurality of first sediment particles.
[0112] In an embodiment of the present disclosure, for each first sediment particle among multiple first sediment particles, the shape information of the first sediment particle is scaled based on the first image scale information to obtain the particle size information of the first sediment particle; the particle size information of each first sediment particle among the multiple first sediment particles is statistically analyzed to obtain the underwater riverbed sediment grading information, which can further improve the accuracy of the underwater riverbed sediment grading information.
[0113] Figure 5 is a block diagram of a device for measuring the particle size of underwater riverbed sediment according to an embodiment of the present disclosure. Figure 5 As shown, the device for measuring the particle size of underwater riverbed sediment includes but is not limited to: an acquisition module 501, a noise reduction module 502, a correction module 503, a determination module 504, and an identification module 505.
[0114] The acquisition module 501 is used to acquire a plurality of first riverbed sediment photos; the plurality of first riverbed sediment photos are obtained by taking photos in a continuous shooting mode using an underwater camera module in a device for measuring the particle size of underwater riverbed sediment;
[0115] A noise reduction module 502 is used to perform noise reduction processing on the plurality of first riverbed sediment photos by using a median average method to obtain a first sediment particle size photo;
[0116] The correction module 503 is used to correct the first sediment particle size photo based on an image distortion correction algorithm to obtain a corrected first sediment particle size photo;
[0117] The determination module 504 is used to determine the first image scale information according to the side length information of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the underwater riverbed sediment particle size and the first sediment particle size photo after correction processing; the first image scale information includes the riverbed surface size information corresponding to each pixel in the first sediment particle size photo after correction processing;
[0118] The identification module 505 is used to identify and obtain first riverbed sediment identification information from the first sediment particle size photo after correction, and obtain underwater riverbed sediment gradation information according to the first riverbed sediment identification information and the first image scale information.
[0119] As an example, the noise reduction module 502 is also used to preprocess each of the multiple first riverbed sediment photos to obtain multiple preprocessed first riverbed sediment photos; for each of the multiple preprocessed first riverbed sediment photos, performing noise reduction processing on the preprocessed first riverbed sediment photo based on the median filtering algorithm to obtain the first riverbed sediment photo after noise reduction processing; performing pixel-level image fusion processing on the multiple first riverbed sediment photos after noise reduction processing to obtain the first sediment particle size photo.
[0120] As an example, the correction module 503 is also used to obtain first world coordinate information and first image coordinate information; the first world coordinate information is the world coordinate information of the four corners of the square bottom surface of the rectangular frame in the device for measuring the particle size of underwater riverbed sediment; the first image coordinate information is the image coordinate information of the four corners of the square bottom surface of the rectangular frame in the device for measuring the particle size of underwater riverbed sediment; based on the first world coordinate information and the first image coordinate information, the first direct linear conversion formula group is solved to obtain the first distortion parameter; the first direct linear conversion formula group is a formula group for converting between the first world coordinate information and the first image coordinate information; based on the first distortion parameter, the first sediment particle size photo is corrected to obtain the corrected first sediment particle size photo.
[0121] As an example, the recognition module 505 is also used to identify the first sediment particle size photo after correction based on a pre-trained sediment recognition model to obtain the first riverbed sediment recognition information; the pre-trained sediment recognition model is a recognition model that takes the sediment particle size photo as input and the riverbed sediment recognition information as output.
[0122] As an example, the first riverbed sediment identification information in the identification module 505 includes the shape information of each first sediment particle in the plurality of first sediment particles. The identification module 505 is also used to perform a scale transformation on the shape information of each first sediment particle in the plurality of first sediment particles based on the first image scale information to obtain the particle size information of the first sediment particle; and perform a statistical analysis on the particle size information of each first sediment particle in the plurality of first sediment particles to obtain the underwater riverbed sediment gradation information.
[0123] 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.
[0124] Figure 6 is a block diagram of a device for measuring the particle size of underwater riverbed sediment according to an embodiment of the present disclosure. Figure 6 As shown, the device for measuring the particle size of underwater riverbed sediment includes but is not limited to a rectangular frame 610, a camera connection module 620, an underwater camera module 630, and a processing module 640.
[0125] The rectangular frame 610 is used to fix the position of the device for measuring the particle size of the underwater riverbed sediment;
[0126] The camera connection module 620 is connected to the rectangular parallelepiped frame 610 and is used to fix the underwater camera module on the rectangular parallelepiped frame;
[0127] An underwater camera module 630, connected to the camera connection module 620, is used to photograph underwater sediment at the location of the device for measuring the particle size of underwater riverbed sediment;
[0128] The processing module 640 is configured to execute the method for measuring the particle size of underwater riverbed sediment provided in the embodiment of the present disclosure.
[0129] Optionally, in some embodiments, the bottom surface of the rectangular parallelepiped frame 610 is a square. Exemplarily, the first image scale information is determined according to the side length information of the square bottom surface of the rectangular parallelepiped frame 610 in the device for measuring the particle size of underwater riverbed sediment and the first sediment particle size photo after correction.
[0130] Optionally, in some embodiments, the size information of the rectangular frame 610 is determined according to the water depth information of the location where the device for measuring the particle size of the underwater riverbed is located. Exemplarily, the water depth information of the location where the device for measuring the particle size of the underwater riverbed is located is 40 centimeters; the height information of the rectangular frame 610 can be 50 centimeters.
[0131] Optionally, in some embodiments, the underwater camera module 630 in the device for measuring the particle size of underwater riverbed sediment adopts a continuous shooting mode to obtain multiple first riverbed sediment photos.
[0132] In some embodiments, the underwater camera module 630 in the device for measuring the particle size of underwater riverbed sediment in the embodiments of the present disclosure further includes: an underwater camera 631 , a waterproof housing 632 , and an underwater fill light array 633 .
[0133] The underwater camera 631 is used to photograph the underwater sediment at the location of the device for measuring the particle size of the underwater riverbed sediment;
[0134] A waterproof housing 632, used to provide waterproof protection for the underwater camera;
[0135] The underwater fill light array 633 is used to provide lighting for the underwater camera 631 to improve the imaging quality of the photo.
[0136] In some embodiments, Figure 7 As shown, in Figure 6 Based on the figure, the camera connection module 620 in the device for measuring the particle size of underwater riverbed sediment in the embodiment of the present disclosure also includes: a transverse connecting rod 621, an adjustable connecting piece 622, and a retractable camera fixing rod 623.
[0137] Wherein, the transverse connecting rod 621 is connected to the top of the rectangular parallelepiped frame 610;
[0138] An adjustable connecting member 622 connected to the transverse connecting rod 621 and used to adjust the shooting angle of the underwater camera module 630;
[0139] The retractable camera fixing rod 623 is connected to the adjustable connecting piece 622 and the underwater camera module 630. According to the water depth information of the location of the device for measuring the particle size of the underwater riverbed sediment, the up and down position of the underwater camera module 630 is adjusted to ensure that the underwater camera module 630 is in an underwater environment.
[0140] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a storage medium, and a computer program product.
[0141] Figure 8 1 is a block diagram of an electronic device provided according to an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices.
[0142] Optionally, in some embodiments, the electronic device may be a processing module in a device for measuring the particle size of underwater riverbed sediment provided by an embodiment of the present disclosure. The components, their connections and relationships, and their functions shown herein are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0143] like Figure 8 As shown, the electronic device includes: one or more processors 801, memory 802, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 801 is taken as an example.
[0144] The memory 802 is a non-transitory computer-readable storage medium provided by the present disclosure. The memory stores instructions executable by at least one processor to enable the at least one processor to execute the method for measuring the particle size of underwater riverbed sediment provided by the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions, which are used to enable a computer to execute the method for measuring the particle size of underwater riverbed sediment provided by the present disclosure.
[0145] The memory 802 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the method for measuring the particle size of underwater riverbed sediment in the embodiment of the present disclosure (for example, the attached Figure 5 The processor 801 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 802, that is, the method for measuring the particle size of underwater riverbed sediment in the above method embodiment is implemented.
[0146] The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 802 may optionally include a memory remotely arranged relative to the processor 801, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0147] The electronic device may further include: an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803 and the output device 804 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.
[0148] The input device 803 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 804 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0149] Optionally, in some embodiments, a computer program product is also provided, including a computer program, which, when executed by one or more processors 801, can implement the method for measuring the particle size of underwater riverbed sediment provided in the embodiments of the present disclosure.
[0150] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0151] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0152] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0153] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0154] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0155] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0156] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for measuring the particle size of underwater riverbed sediment, characterized in that: The following steps are involved: Acquire a plurality of first riverbed sediment photos; the plurality of first riverbed sediment photos are obtained by taking the photos in a continuous shooting mode using an underwater camera module in a device for measuring the particle size of underwater riverbed sediment; Using a median average method to perform noise reduction processing on the plurality of first riverbed sediment photos to obtain a first sediment particle size photo; Correcting the first sediment particle size photo based on an image distortion correction algorithm to obtain a corrected first sediment particle size photo; Determine first image scale information according to the side length information of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment and the first sediment particle size photo after correction; the first image scale information includes riverbed surface size information corresponding to each pixel in the first sediment particle size photo after correction; First riverbed sediment identification information is identified from the corrected first sediment particle size photograph, and underwater riverbed sediment gradation information is obtained based on the first riverbed sediment identification information and the first image scale information.
2. The method according to claim 1, characterized in that: The method of using the median average method to perform noise reduction processing on the plurality of first riverbed sediment photos to obtain the first sediment particle size photo includes: Preprocessing each of the plurality of first riverbed sediment photos to obtain a plurality of preprocessed first riverbed sediment photos; For each of the plurality of pre-processed first riverbed sediment photos, performing noise reduction processing on the pre-processed first riverbed sediment photo based on a median filtering algorithm to obtain a first riverbed sediment photo after noise reduction processing; The plurality of first riverbed sediment photos that have undergone noise reduction processing are subjected to pixel-level image fusion processing to obtain the first sediment particle size photos.
3. The method according to claim 1, characterized in that The step of correcting the first sediment particle size photo based on an image distortion correction algorithm to obtain the corrected first sediment particle size photo includes: Acquire first world coordinate information and first image coordinate information; the first world coordinate information is the world coordinate information of the four corners of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment; the first image coordinate information is the image coordinate information of the four corners of the square bottom surface of the rectangular parallelepiped frame in the device for measuring the particle size of underwater riverbed sediment; Solving a first direct linear transformation formula group based on the first world coordinate information and the first image coordinate information to obtain a first distortion parameter; the first direct linear transformation formula group is a formula group used for transformation between the first world coordinate information and the first image coordinate information; The first sediment particle size photograph is corrected based on the first distortion parameter to obtain a corrected first sediment particle size photograph.
4. The method according to claim 1, characterized in that: The step of identifying the first riverbed sediment identification information from the first sediment particle size photograph after the correction process includes: The first sediment particle size photo after correction is identified based on a pre-trained sediment identification model to obtain the first riverbed sediment identification information; the pre-trained sediment identification model is a recognition model that takes the sediment particle size photo as input and takes the riverbed sediment identification information as output.
5. The method according to claim 1, characterized in that The first riverbed sediment identification information includes shape information of each of the first sediment particles in the plurality of first sediment particles; the underwater riverbed sediment gradation information is obtained according to the first riverbed sediment identification information and the first image scale information, including: For each of the plurality of first sediment particles, scale transform the shape information of the first sediment particle based on the first image scale information to obtain particle size information of the first sediment particle; Statistical analysis is performed on the particle size information of each of the plurality of first sediment particles to obtain the sediment gradation information of the underwater riverbed.
6. The method according to any one of claims 1 to 5, characterized in that: The device for measuring the particle size of underwater riverbed sediment comprises: A rectangular parallelepiped frame, used to fix the position of the device for measuring the particle size of underwater riverbed sediment; A camera connection module, connected to the rectangular frame, and used to fix the underwater camera module on the rectangular frame; The underwater camera module is connected to the camera connection module and is used to photograph the underwater riverbed sediment at the location where the device for measuring the particle size of the underwater riverbed sediment is located.
7. The method according to claim 6, characterized in that The underwater camera module comprises: An underwater camera, used for photographing the underwater riverbed sediment at the location where the device for measuring the particle size of the underwater riverbed sediment is located; A waterproof housing, used to provide waterproof protection for the underwater camera; Underwater fill light array.
8. The method according to claim 6, characterized in that The underwater camera module comprises: A transverse connecting rod connected to the top of the rectangular parallelepiped frame; An adjustable connecting piece, connected to the transverse connecting rod, for adjusting the shooting angle of the underwater camera module; A retractable camera fixing rod is connected to the adjustable connecting piece and the underwater camera module, and adjusts the upper and lower positions of the underwater camera module according to the water depth information of the location of the device for measuring the particle size of underwater riverbed sediment to ensure that the underwater camera module is in an underwater environment.
9. A device for measuring the particle size of underwater riverbed sediment, characterized in that: include: A rectangular parallelepiped frame, used to fix the position of the device for measuring the particle size of underwater riverbed sediment; A camera connection module connected to the top of the rectangular frame and used to fix the underwater camera module on the rectangular frame; An underwater camera module, connected to the camera connection module, for photographing the underwater sediment at the location of the device for measuring the particle size of the underwater riverbed sediment; The processing module is configured to execute the method for measuring the particle size of underwater riverbed sediment as described in any one of claims 1 to 8.
10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Riverbed bed load vertical section separating model test device and use method thereof
CN105841920A
Bed material surface grading observation and analysis method and system based on digital image
CN106157335A
Field deposit particle size rapid determination system and method
CN106596361A
Imaging processing-based sand gravel material grading rapid analysis system and method
CN108287125A
Method for online monitoring surface particle pollutants of large-diameter reflector
CN110389088A
Cited By
Microspur measurement device and method
CN120142101A
A macro measurement device and method
CN120142101B
