Liquid level judgment method and device, equipment and storage medium
By acquiring and adjusting the brightness and contrast data of the liquid level image through machine vision technology, the problem of the impact of changes in auxiliary lighting parameters during liquid level detection in a confined space is solved, and accurate calculation of the liquid level height is achieved.
Patent Information
- Application Number
- CN202410659064.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-24
AI Technical Summary
In liquid level detection in a confined space, fixed auxiliary lighting parameters cannot adapt to environmental changes, affecting the quality of liquid level image acquisition, and thus affecting the accuracy of liquid level height judgment.
Using a liquid level judgment method based on machine vision, by obtaining the brightness and contrast data of the liquid surface image, it is judged whether its quality meets the preset requirements. If not, the parameters of the auxiliary lighting equipment are adjusted, and inverse perspective transformation and HSV color space are performed. Processing, preprocessing and other operations to calculate liquid level height.
It improves the accuracy of liquid level height judgment, ensures that lighting parameters can be adjusted in time when the environment changes, and obtains high-quality liquid level images, thus improving the reliability of liquid level detection.
Smart Images

Figure CN118670480A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of liquid level measurement, and in particular to a liquid level determination method, device, equipment and storage medium. Background Art
[0002] At present, when detecting the liquid level in a confined space, the auxiliary lighting device in the confined space is usually turned on first, and then the liquid surface image in the confined space is collected by a camera device installed in the confined space, and finally the liquid level in the confined space is analyzed based on the collected liquid surface image. However, the auxiliary lighting devices in the confined space are all based on fixed parameters for auxiliary lighting. When the environment in the confined space changes, if the parameters of the auxiliary lighting devices are not changed, it will directly affect the quality of liquid surface image collection, and then affect the accuracy of liquid level judgment. Therefore, how to improve the accuracy of liquid level judgment is a technical problem that needs to be solved urgently by skilled technicians. Summary of the invention
[0003] In view of this, the present disclosure proposes a liquid level determination method, device, equipment and storage medium based on machine vision, which can improve the accuracy of liquid level height determination.
[0004] According to a first aspect of the present disclosure, a liquid level determination method based on machine vision is provided, comprising:
[0005] Acquire liquid surface images in confined spaces;
[0006] Determining whether the quality of the liquid surface image meets a preset quality requirement;
[0007] When it is determined that the quality of the liquid surface image meets the quality requirement, the liquid level height in the enclosed space is calculated based on the liquid surface image.
[0008] In a possible implementation, when judging whether the quality of the liquid surface image meets a preset quality requirement, the process includes:
[0009] Acquiring brightness data and contrast data of the liquid surface image;
[0010] Based on the brightness data and the contrast data, it is determined whether the quality of the liquid surface image meets a preset quality requirement.
[0011] In a possible implementation, when acquiring the brightness data and contrast data of the liquid surface image, the process includes:
[0012] Converting the liquid surface image into HSV space;
[0013] Based on the HSV space, brightness data and contrast data of the liquid surface image are acquired.
[0014] In a possible implementation manner, when it is determined that the quality of the liquid surface image does not meet the quality requirement, the method further includes:
[0015] Calculating quality deviation data between the liquid surface image quality and the quality requirement;
[0016] adjusting the auxiliary lighting equipment in the confined space according to the quality deviation data;
[0017] The quality deviation data includes at least one of brightness deviation data and contrast deviation data, and the auxiliary lighting device includes at least one of an auxiliary light source and a laser transmitter.
[0018] In a possible implementation, the quality deviation data includes brightness deviation data, and when the auxiliary lighting equipment in the enclosed space is adjusted according to the brightness deviation data, it is implemented based on a preset brightness deviation threshold.
[0019] In a possible implementation, the quality deviation data includes contrast deviation data, and when the auxiliary lighting equipment in the enclosed space is adjusted according to the contrast deviation data, it is implemented based on a preset contrast deviation threshold.
[0020] In a possible implementation, when calculating the liquid level in the confined space based on the liquid surface image, the method includes:
[0021] Using inverse perspective transformation to transform the liquid surface image into a target liquid surface image matching the actual space;
[0023] Converting the target liquid surface image into HSV space;
[0024] Extract target image data of a specified channel from the HSV space;
[0025] Performing at least one preprocessing operation of grayscale conversion processing, histogram equalization processing, denoising processing and binarization processing on the image data;
[0026] Based on the preprocessed target image data, the height of the liquid level in the confined space is determined.
[0027] According to a second aspect of the present disclosure, a liquid level determination device is provided, comprising:
[0028] An image acquisition module, used for acquiring a liquid surface image in a confined space;
[0029] A quality judgment module, used to judge whether the quality of the liquid surface image meets the preset quality requirements;
[0030] The height calculation module is used to calculate the height of the liquid level in the confined space based on the liquid surface image when it is determined that the quality of the liquid surface image meets the quality requirement.
[0031] According to a third aspect of the present disclosure, there is provided a liquid level determination device, comprising:
[0032] processor;
[0033] a memory for storing processor-executable instructions;
[0034] The processor is configured to execute the method described in the first aspect of the present disclosure.
[0035] According to a fourth aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, implement the method described in the first aspect of the present disclosure.
[0036] The present disclosure provides a liquid level determination method, including: obtaining a liquid surface image in a confined space; determining whether the quality of the liquid surface image meets a preset quality requirement; and calculating the liquid level height in the confined space based on the liquid surface image when the quality of the liquid surface image is determined to meet the quality requirement. Since the liquid level height is calculated based on the liquid surface image that meets the quality requirement in the present disclosure, the accuracy of the liquid level height calculation can be improved.
[0037] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0039] Figure 1 A flow chart of a method for determining a liquid level based on machine vision according to an embodiment of the present disclosure is shown.
[0040] Figure 2 A system framework diagram of a liquid level determination method based on machine vision according to an embodiment of the present disclosure is shown.
[0041] Figure 3 A flowchart of a specific embodiment of liquid level judgment based on machine vision according to an embodiment of the present disclosure is shown.
[0042] Figure 4 A schematic block diagram of a liquid level determination device based on machine vision according to an embodiment of the present disclosure is shown.
[0043] Figure 5A schematic block diagram of a liquid level determination device based on machine vision according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0044] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0045] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0046] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0047] <Method Example>
[0048] Figure 1 FIG. 1 is a flow chart of a liquid level method based on machine vision according to an embodiment of the present disclosure. Figure 1 As shown, the method includes steps S1100-S1300.
[0049] S1100, acquiring a liquid surface image in a closed space.
[0050] It should be noted here that in a confined space, Figure 2 The camera device (1), auxiliary light source (2), laser transmitter (3), single board computer system (4) and controller (5) shown in the figure, when performing liquid level judgment, the single board computer system generates an image acquisition signal, and sends the image acquisition signal to the controller and the camera device. After receiving the image acquisition signal, the controller will turn on the auxiliary light source and the laser transmitter according to the default parameters. After receiving the image acquisition signal, the camera device will collect the liquid level image in the enclosed space according to the preset frequency, and send the collected liquid level image to the single board computer system, so that the single board computer system can obtain the liquid level image in the enclosed space. Among them, the camera device, auxiliary light source, laser transmitter, single board computer system and controller all have explosion-proof protection function. The camera device can use a low-light high-definition camera, the single board computer can use a Linux operating system, and the controller can use a variable frequency or fixed frequency configurable constant current controller.
[0051] After the liquid surface image in the enclosed space is acquired, step S1200 may be executed to determine whether the quality of the liquid surface image meets a preset quality requirement.
[0052] In a possible implementation, when judging whether the quality of the liquid surface image meets the preset quality requirement, steps S1210-S1220 may be included.
[0053] S1210, obtaining brightness data and contrast data of the liquid surface image. Specifically, the following steps may be included:
[0054] First, the collected liquid surface image is converted into the HSV space. It should be noted here that the collected liquid surface image is an RGB image. In order to quickly and accurately obtain the brightness data and contrast data of the liquid surface image, the RGB liquid surface image can be first converted into the HSV space, and then the brightness data and contrast data of the liquid surface image can be obtained based on the HSV space.
[0055] Second, based on the HSV space, the brightness data and contrast data of the liquid surface image are obtained. The specific steps can be as follows:
[0056] First, the image data of the V channel is extracted from the HSV space, wherein the image data of the V channel records the brightness value of each pixel block in the liquid surface image.
[0057] Secondly, based on the brightness values of each pixel block in the liquid surface image recorded in the image data of the V channel, the brightness data and contrast data of the liquid surface image are determined. Specifically, the mean square error of the brightness values of each pixel block is calculated, and the calculated mean square error is used as the brightness data of the liquid surface image. Further, the brightness values of each row of pixel blocks are traversed, and for the current row traversed, the maximum brightness value and the minimum brightness value in the pixel block are extracted, and the difference between the maximum brightness value and the minimum brightness value is calculated, and the calculated difference is used as the contrast corresponding to the current row. After the traversal is completed, the contrast corresponding to each row of pixel blocks is obtained. The mean of all contrasts is calculated, and the mean of all contrasts is used as the contrast data of the liquid surface image.
[0058] In another possible implementation, the contrast corresponding to each column of pixel blocks is calculated respectively, and then the average value of the contrast corresponding to each column of pixel blocks is calculated, and then the calculated average value is used as the contrast data of the liquid surface image.
[0059] S1220: Based on the brightness data and the contrast data, determine whether the quality of the liquid surface image meets the preset quality requirements.
[0060] It should be noted that before executing this step, the quality requirements need to be set first, wherein the quality requirements may include a brightness threshold and a contrast threshold, preferably, the brightness threshold may be set to 100. The contrast threshold may range from 0.0 to 3.0, preferably, the contrast threshold may be set to 1.6.
[0061] After the quality requirements are set, it is possible to determine whether the quality of the liquid surface image meets the preset quality requirements based on the brightness data and contrast data. Specifically, determine whether the brightness data is greater than or equal to the brightness threshold set for the quality requirements. If the brightness data is greater than the brightness threshold, continue to determine whether the contrast data is greater than or equal to the contrast threshold set for the quality requirements. If the contrast data is also greater than or equal to the contrast threshold, determine whether the quality of the liquid surface image meets the preset quality requirements. Otherwise, it is determined that the quality of the liquid surface image does not meet the preset quality requirements.
[0062] If it is determined that the quality of the liquid surface image does not meet the quality requirements, the following steps will be performed:
[0063] First, quality deviation data between the quality of the liquid surface image and the quality requirement is calculated, wherein the quality deviation data includes at least one of brightness deviation data and contrast deviation data.
[0064] When calculating the brightness deviation data, it includes: acquiring the brightness data in the liquid surface image, calculating the difference between the brightness data and the brightness threshold, and using the difference between the brightness data and the brightness threshold as the brightness deviation data.
[0065] When calculating the contrast deviation data, it includes: acquiring contrast data in the liquid surface image, calculating the difference between the contrast data and the contrast threshold, and using the difference between the contrast data and the contrast threshold as the contrast deviation data.
[0066] Second, according to the quality deviation data, the auxiliary lighting equipment in the confined space is adjusted, wherein the auxiliary lighting equipment includes at least one of an auxiliary light source and a laser transmitter.
[0067] When the quality deviation data includes brightness deviation data, the brightness of the auxiliary light source is adjusted according to the brightness deviation data. In a possible implementation, when the brightness of the auxiliary light source is adjusted according to the brightness deviation data, it is implemented based on a preset brightness deviation threshold. The brightness deviation threshold includes a first brightness deviation threshold and a second brightness deviation threshold. Specifically, when the brightness deviation data is less than the preset first brightness deviation threshold, it means that the brightness of the liquid surface image is insufficient. At this time, the brightness of the auxiliary light source is increased by one step length, wherein, when adjusting the brightness, one step length can be a unit distance of the brightness value. When the brightness deviation data is greater than the second brightness deviation threshold, it means that the liquid surface image is overexposed. At this time, the brightness of the auxiliary light source is reduced by one step length. When the brightness deviation data is greater than or equal to the first brightness deviation threshold and less than or equal to the second brightness deviation threshold, it means that the brightness of the liquid surface image is within a reasonable range. At this time, the brightness of the auxiliary light source is not adjusted. The first brightness deviation threshold value range can be -10-10, preferably, the first brightness deviation threshold can be set to -2. The second brightness deviation threshold value range can be 0-20, preferably, the second brightness deviation threshold can be set to 2.
[0068] When the quality deviation data includes contrast deviation data, the brightness of the laser intensity of the laser emitter is adjusted according to the contrast deviation data. In a possible implementation, when the laser intensity of the laser emitter is adjusted according to the contrast deviation data, it is implemented based on a preset contrast deviation threshold. Wherein, the contrast deviation threshold includes a first contrast deviation threshold and a second contrast deviation threshold. Specifically, when the contrast deviation data is less than the preset first contrast deviation threshold, the laser intensity of the laser emitter is increased by one step, wherein, when adjusting the laser intensity, one step can be a unit distance of the laser intensity. When the contrast deviation data is greater than the second contrast deviation threshold, the laser intensity of the laser emitter is reduced by one step. When the contrast deviation data is greater than or equal to the first contrast deviation threshold and less than or equal to the second contrast deviation threshold, the laser intensity of the laser emitter is not adjusted. Wherein, the first contrast deviation threshold value range can be 0.0-3.0, preferably, the first contrast deviation threshold can be set to -0.1. The second contrast deviation threshold value range can be 0.0-3.0, preferably, the second contrast deviation threshold can be set to 0.1.
[0069] The method of this embodiment can be used to gradually adjust the auxiliary lighting equipment according to the quality deviation data of the liquid surface image when the liquid surface image does not meet the preset quality requirements, so as to obtain a liquid surface image that meets the quality requirements later.
[0070] When it is determined that the quality of the liquid surface image meets the preset quality requirement, step S1300 may be executed to calculate the liquid level height in the enclosed space based on the liquid surface image.
[0071] In a possible implementation, when calculating the liquid level in a closed space based on a liquid surface image, steps S1310 - S1350 may be included.
[0072] S1310, using inverse perspective transformation to transform the liquid surface image into a target liquid surface image matching the actual space, and then executing step S1320. It should be noted that the pixel distance in the target liquid surface image obtained by inverse perspective transformation is consistent with that in the actual space.
[0073] S1320, converting the target liquid surface image into the HSV space, which may specifically include the following steps.
[0074] It should be noted here that the converted target liquid surface image is an RGB image. In order to extract the image data of a specified channel, the liquid surface image in RGB format can be first converted to the HSV space, and then the image data of the specified channel can be extracted based on the HSV space.
[0075] S1330, extract the target image data of the designated channel from the HSV space. The designated channel refers to the H channel. When extracting the target image data, it is implemented based on the laser color of the laser emitter. Specifically, when the laser color is green, the image data with pixel values in the range of 20-99 in the H channel is intercepted as the target image data. When the laser color is blue, the image data with pixel values in the range of 78-155 in the H channel is intercepted as the target image data. When the laser color is red, the image data with pixel values in the range of 0-10 and 156-180 in the H channel is intercepted as the target image data. Extracting the target image data based on the laser color of the laser emitter can effectively remove the color interference caused by related objects and improve the accuracy of subsequent liquid level height calculations.
[0076] S1340, performing at least one pre-processing operation of grayscale conversion processing, histogram equalization processing, denoising processing and binarization processing on the target image data.
[0077] In a possible implementation, the target image data may be denoised by a closing operation, that is, the target image data is first dilated and then the dilated image is eroded, thereby removing internal hole noise in the target image data.
[0078] In another possible implementation, the target image data may be denoised by an opening operation, that is, the target image data is first eroded and then the image after the erosion transformation is expanded to eliminate noise and burrs in the target image data and separate smooth image boundaries.
[0079] In a possible implementation, after extracting the target image data of a specified channel from the HSV space, the target image data may be sequentially processed with grayscale conversion, histogram equalization, denoising, and binarization to improve the accuracy of subsequent liquid level calculation.
[0080] After the preprocessing of the target image data is completed, step S1350 may be executed to determine the liquid level in the confined space based on the preprocessed target image data.
[0081] In an embodiment in which grayscale conversion processing, histogram equalization processing, denoising processing and binarization processing are sequentially performed on target image data, the pre-processed target image data is a binary image data, and the pixel value of each pixel block in the binary image is marked with 0 or 1, wherein when the pixel value is 1, the color of the pixel block is black, and when the pixel value is 0, the color of the pixel block is white.
[0082] When judging the liquid level in a confined space based on the binary image data, the image data of the laser irradiation area can be firstly intercepted from the target image data as the ROI image. Then, for the intercepted ROI image, the number of 0 pixel values in each row is counted, and the row with the largest number of 0 pixel values (i.e., the row with the largest number of white pixel blocks) is taken as the liquid level position. Next, the pixel distance of the liquid level position relative to the bottom position of the ROI image is calculated, and the calculated pixel distance is taken as the actual liquid level in the confined space.
[0083] It should be noted here that when calculating the liquid level height, the liquid level height may be calculated based on one liquid level image that meets the quality requirements, or may be calculated based on multiple liquid level images that meet the quality requirements.
[0084] When calculating the liquid level height based on multiple liquid surface images that meet the quality requirements, it includes: after obtaining a liquid surface image that meets the quality requirements, first calculate the preprocessing result corresponding to the liquid surface image with reference to the above, and then determine whether the number of liquid surface images that currently meet the quality requirements reaches the preset quantity threshold. When the data threshold is met, the liquid level height is calculated based on each target image data. The specific calculation process is as described above and will not be repeated here. Then, all the calculated liquid level height values are sorted from small to large, and the liquid level height in the middle is selected as the final liquid level height calculation result. Among them, the preset quantity threshold can be 25. In the embodiment where the quantity threshold is 25, 25 liquid level height values are calculated, and after the 25 liquid level height values are sorted from small to large, the liquid level height value ranked 13th is extracted as the final liquid level height value.
[0085] In another possible implementation, the following Figure 3 The process shown calculates the liquid level height, and may specifically include steps S2010-S2090.
[0086] S2010, collecting the liquid surface image in the closed space, and performing grayscale conversion processing and histogram equalization processing on the collected liquid surface image in sequence.
[0087] S2020, the images processed by histogram equalization are subjected to denoising in sequence (i.e. Figure 3 The closing and opening operations in the process), median filtering and binarization processing.
[0088] S2030, performing validity detection on the binarized image to determine whether the image meets the preset quality requirements, and if it does not meet the quality requirements, executing step S2040. If it meets the preset quality requirements, executing step S2050.
[0089] S2040, calculate the quality deviation data between the binarized image and the preset quality requirement, adjust the auxiliary lighting equipment of the enclosed space according to the calculated quality deviation data, so as to achieve quality adjustment of the subsequently collected liquid surface image, and return to execute step S2010.
[0090] S2050, converting the binarized image into the HSV color space, extracting the target image data of the specified channel, and executing step S2060.
[0091] S2060, determine whether the process flag is greater than the set flag. If the process flag is greater than the set flag, it means that the image data that meets the quality requirement has met the preset quantity requirement, and then execute step S2070. If the process flag is less than or equal to the set flag, it means that the image data that meets the quality requirement is insufficient, the process flag is increased by 1, and the process returns to step S2010.
[0092] S2070, calculate the liquid level height corresponding to each target image, sort the calculated liquid level heights from small to large, and take out the liquid level height value in the middle of the sort as the final liquid level height calculation result (ie, the median filtering algorithm in the figure).
[0093] S2080, the detection times are increased by one, and the existing process flag is cleared.
[0094] S2090, exit the liquid level detection, and output the liquid level detection result, that is, the final liquid level in step S2070.
[0095] The specific calculation steps in this embodiment are as mentioned above and will not be repeated here.
[0096] The present disclosure provides a liquid level determination method, comprising: obtaining a liquid level image in a confined space; determining whether the quality of the liquid level image meets a preset quality requirement; and calculating the liquid level height in the confined space based on the liquid level image when the quality of the liquid level image is determined to meet the quality requirement. Since the liquid level height is calculated based on the liquid level image that meets the quality requirement in the present disclosure, the accuracy of the liquid level height calculation can be improved.
[0097] <Device Example>
[0098] Figure 4 FIG. 1 is a schematic block diagram of a liquid level determination device according to an embodiment of the present disclosure. Figure 4 As shown, the liquid level determination device 100 includes:
[0099] An image acquisition module 110 is used to acquire a liquid surface image in a confined space;
[0100] A quality judgment module 120, used to judge whether the quality of the liquid surface image meets a preset quality requirement;
[0101] The height calculation module 130 is used to calculate the height of the liquid level in the confined space based on the liquid surface image when it is determined that the quality of the liquid surface image meets the quality requirement.
[0102] <Equipment Embodiment>
[0103] Figure 5 FIG. 1 is a schematic block diagram of a liquid level determination device according to an embodiment of the present disclosure. Figure 5 As shown, the liquid level determination device 200 includes: a processor 210 and a memory 220 for storing executable instructions of the processor 210. The processor 210 is configured to implement any of the above-mentioned liquid level determination methods when executing the executable instructions.
[0104] Here, it should be noted that the number of processors 210 can be one or more. At the same time, in the liquid level judgment device 200 of the embodiment of the present disclosure, an input device 230 and an output device 240 may also be included. Among them, the processor 210, the memory 220, the input device 230 and the output device 240 may be connected through a bus or in other ways, which are not specifically limited here.
[0105] The memory 220 is a computer-readable storage medium that can be used to store software programs, computer executable programs, and various modules, such as the program or module corresponding to the liquid level determination method of the embodiment of the present disclosure. The processor 210 executes various functional applications and data processing of the liquid level determination device 200 by running the software programs or modules stored in the memory 220.
[0106] The input device 230 may be used to receive input numbers or signals. The signals may be key signals related to user settings and function control of the device / terminal / server. The output device 240 may include display devices such as display screens.
[0107] <Storage Medium Embodiment>
[0108] According to a fourth aspect of the present disclosure, a non-volatile computer-readable storage medium is further provided, on which computer program instructions are stored. When the computer program instructions are executed by the processor 210, any of the liquid level determination methods described above is implemented.
[0109] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A liquid level determination method, characterized in that: include: Acquire liquid surface images in confined spaces; Determining whether the quality of the liquid surface image meets a preset quality requirement; When it is determined that the quality of the liquid surface image meets the quality requirement, the liquid level height in the enclosed space is calculated based on the liquid surface image.
2. The method according to claim 1, characterized in that When judging whether the quality of the liquid surface image meets the preset quality requirements, it includes: Acquiring brightness data and contrast data of the liquid surface image; Based on the brightness data and the contrast data, it is determined whether the quality of the liquid surface image meets a preset quality requirement.
3. The method according to claim 2, characterized in that When acquiring the brightness data and contrast data of the liquid surface image, it includes: Converting the liquid surface image into HSV space; Based on the HSV space, brightness data and contrast data of the liquid surface image are acquired.
4. The method according to claim 1, characterized in that In the case where it is determined that the quality of the liquid surface image does not meet the quality requirement, the method further includes: Calculating quality deviation data between the liquid surface image quality and the quality requirement; adjusting the auxiliary lighting equipment in the confined space according to the quality deviation data; The quality deviation data includes at least one of brightness deviation data and contrast deviation data, and the auxiliary lighting device includes at least one of an auxiliary light source and a laser transmitter.
5. The method according to claim 4, characterized in that The quality deviation data includes brightness deviation data. When the auxiliary lighting equipment in the enclosed space is adjusted according to the brightness deviation data, it is implemented based on a preset brightness deviation threshold.
6. The method according to claim 4, characterized in that The quality deviation data includes contrast deviation data. When the auxiliary lighting equipment in the enclosed space is adjusted according to the contrast deviation data, it is implemented based on a preset contrast deviation threshold.
7. The method according to claim 1, characterized in that When calculating the liquid level height in the confined space based on the liquid surface image, the method includes: Using inverse perspective transformation to transform the liquid surface image into a target liquid surface image matching the actual space; Converting the target liquid surface image into HSV space; Extract target image data of a specified channel from the HSV space; Based on the preprocessed target image data, the height of the liquid level in the confined space is determined.
8. A liquid level determination device, characterized in that: include: An image acquisition module, used for acquiring a liquid surface image in a confined space; A quality judgment module, used to judge whether the quality of the liquid surface image meets the preset quality requirements; The height calculation module is used to calculate the height of the liquid level in the confined space based on the liquid surface image when it is determined that the quality of the liquid surface image meets the quality requirement.
9. A liquid level determination device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method described in any one of claims 1 to 7 when executing the executable instructions.
10. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Water level monitoring method based on image identification
CN107506798A
Liquid level control method based on visual analysis
CN111521245A
Liquid level recognition method based on image processing and related device
CN111814784A
Method, device and equipment for determining state of liquid level meter and medium
CN114494919A
Metering information reading method, system and device of liquid level meter
CN115273052A
Cited By
Method and system for intelligently collecting frosted granularity on surface of PET (Polyethylene Terephthalate) film
CN119762916A
A method and system for intelligently collecting frosted particle size on PET film surfaces
CN119762916B
Septic tank liquid level monitoring and early warning method and system based on image detection
CN122259004A
A septic tank liquid level monitoring and early warning method and system based on image detection
CN122259004B
