A liquid level meter intelligent identification method, system, device and storage medium

Through the intelligent identification method of liquid level meters, the deep learning model is used to monitor the liquid level meters in real time, and automatically detect and alarm. This solves the efficiency and accuracy problems of traditional manual inspections and achieves safe and stable operation of the transformer.

CN118429974BActive Publication Date: 2024-10-29DONGFANG ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410888347.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-29
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

The traditional manual inspection of liquid level gauges has the problems of heavy workload, difficulty in ensuring quality, and difficulty in using manual records, which results in untimely detection of liquid level abnormalities and affects the safe operation of the transformer.

Method used

Using the intelligent identification method of liquid level meters, by obtaining pictures of oil level meter equipment, calling the deep learning model for area and scale detection, monitoring the liquid level in real time, dynamically adjusting the threshold according to the oil temperature value, automatically triggering the alarm, and achieving 24 hours of uninterrupted monitoring and remote alarming.

Benefits of technology

It improves the accuracy and reliability of liquid level detection, reduces false alarms and false alarms, enables timely detection of liquid level abnormalities, ensures the safe operation of the transformer, reduces maintenance costs, and enhances the stability and safety of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118429974B_ABST
    Figure CN118429974B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and storage medium for intelligent recognition of liquid level meter, which belongs to the technical field of image recognition, including obtaining an oil level meter device picture; calling an oil level meter area detection model from a preset database; inputting the oil level meter device picture into the oil level meter area detection model, detecting the oil level meter area, and determining an oil level meter area map; calling an oil level meter scale and liquid level line detection model from a preset database; inputting the oil level meter area map into the oil level meter scale and liquid level line detection model, and determining corresponding target detection frame data according to the first scale target, the second scale target and the liquid level line detected: obtaining the scale value of the scale target involved in the calculation according to the first scale target and the second scale target; and obtaining the oil level meter liquid level reading according to the liquid level line calculation formula. The present invention has the effect of automatically identifying the oil level meter reading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition, and in particular to a liquid level meter intelligent recognition method, system, device and storage medium. Background Art

[0002] Float-type oil level gauges are widely used in various containers and tanks, especially in industries such as electricity, chemical, petroleum, water treatment and food processing. In substation scenarios, float-type oil level gauges measure liquid levels based on the principle of buoyancy. It usually contains a buoy floating on the surface of the liquid, with a floating rod connected to the float, and the scale value printed on the floating rod. When the liquid level rises or falls, the scale value floats up and down with the floating rod, and the scale line is always fixed in the middle of the oil level gauge glass window.

[0003] The oil level indicator of the transformer oil storage cabinet is usually located on the side or bottom of the oil storage cabinet. Its function is to help the staff judge the level of the transformer liquid. Daily inspections should pay attention to the changes in the liquid level value. Correctly reading the liquid level indicator scale is an important part of ensuring the normal operation of the transformer. When the liquid level is abnormal, the staff should add or drain the oil in time to prevent safety hazards. The above process has the disadvantages of large workload of traditional manual inspections, difficult to ensure inspection quality, and difficult to use manual records. Summary of the invention

[0004] The present invention provides a liquid level meter intelligent identification method, system, device and storage medium using the following technical solutions:

[0005] In a first aspect, the present invention provides a liquid level meter intelligent identification method, comprising the following steps:

[0006] Get the oil level gauge equipment picture;

[0007] Call the oil level gauge area detection model from the preset database;

[0008] Inputting the oil level gauge device image into the oil level gauge area detection model, detecting the oil level gauge area, and determining the oil level gauge area map;

[0009] Call the oil level gauge scale and liquid level line detection model from the preset database;

[0010] Inputting the oil level gauge area map into the oil level gauge scale and liquid level line detection model to detect and obtain a first scale target, a second scale target and a liquid level line;

[0011] According to the detected first scale target, second scale target and liquid level line, the corresponding target detection frame data are determined respectively:

[0012] According to the first scale target and the second scale target, obtaining the scale value of the scale target involved in the calculation;

[0013] The oil level gauge liquid level reading is obtained according to the liquid level line calculation formula.

[0014] Furthermore, before the step of calling the oil level gauge area detection model from the preset database, the method includes:

[0015] Acquire training image data, wherein the training image data includes multiple oil level gauge device images of indoor and outdoor scenes;

[0016] Use the LabelImg annotation tool to manually annotate the oil level gauge target frame and construct an oil level gauge detection dataset;

[0017] According to the oil level gauge detection dataset, the YOLOv8 deep learning target detection algorithm is used to train an oil level gauge area detection model to locate the position of the oil level gauge in the image;

[0018] The oil level gauge area detection model is saved in a preset database.

[0019] Furthermore, before the step of calling the oil level gauge scale and liquid level line detection model from the preset database, it also includes:

[0020] Extracting a small image of the oil level gauge area according to the oil level gauge detection data set;

[0021] According to the oil level gauge area thumbnail, use the LabelImg annotation tool to manually annotate the target frame of the scale and liquid level line, and construct a scale and liquid level line detection dataset;

[0022] According to the scale and liquid level line detection dataset, the YOLOv8 deep learning target detection algorithm is used to train the oil level gauge scale and liquid level line detection model to obtain the detection frame area data of the liquid level line and scale target at the current moment;

[0023] The oil level gauge scale and liquid level line detection model are saved in a preset database.

[0024] Further, the oil temperature value t is obtained;

[0025] Obtain oil temperature curve data from a preset database;

[0026] According to the oil temperature value t and the oil temperature curve data, a liquid level threshold value corresponding to the oil temperature value t is obtained;

[0027] When the oil level value of the oil level gauge exceeds the liquid level threshold, an alarm instruction is generated and executed.

[0028] Furthermore, before the step of obtaining the oil temperature curve data from the preset database, the method further includes:

[0029] Get the corresponding values ​​of two sets of oil level gauge liquid level value and oil temperature value t;

[0030] Substitute the corresponding values ​​of the two sets of oil level gauge liquid level value and oil temperature value t into the linear equation value=at+b, and calculate the values ​​of a and b;

[0031] The calculated value = at + b is stored in the database as the oil temperature curve data.

[0032] In a second aspect, the present invention provides a liquid level meter intelligent identification system, comprising:

[0033] The oil level gauge device image acquisition module is used to acquire the oil level gauge device image;

[0034] The oil level gauge area detection model calling module is used to call the oil level gauge area detection model from a preset database;

[0035] An oil level gauge area map detection module is used to input the oil level gauge device image into the oil level gauge area detection model, detect the oil level gauge area, and determine the oil level gauge area map;

[0036] The oil level gauge scale and liquid level line detection model calling module is used to call the oil level gauge scale and liquid level line detection model from a preset database;

[0037] An oil level gauge scale and liquid level line detection module is used to input the oil level gauge area map into the oil level gauge scale and liquid level line detection model to detect and obtain a first scale target, a second scale target and a liquid level line;

[0038] The target detection frame data determination module is used to determine the corresponding target detection frame data according to the detected first scale target, second scale target and liquid level line;

[0039] A scale target scale value calculation module, used for converting the first scale target and the second scale target to obtain the scale value of the scale target involved in the calculation;

[0040] The oil level gauge liquid level calculation module is used to calculate the oil level gauge liquid level according to the y coordinate of the center line of the liquid level line, the y coordinate of the bottom edge of the first scale target and the second scale target detection frame, and the scale value.

[0041] In a third aspect, the present invention provides an intelligent terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the above-mentioned liquid level meter intelligent identification method.

[0042] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute the above-mentioned liquid level meter intelligent identification method.

[0043] In summary, compared with the prior art, the above technical solution has the following beneficial effects:

[0044] The method, system, device and storage medium for intelligent identification of a liquid level meter described in the present invention can dynamically adjust the threshold of the liquid level alarm according to the actual operating conditions of the transformer, so as to more accurately reflect the liquid level status of the oil storage tank. This adaptive threshold setting mechanism reduces false alarms or missed alarms caused by fixed thresholds, and improves the accuracy and reliability of the alarm system. The intelligent identification function of the oil level gauge uses image processing technology to monitor and analyze the liquid level of the oil level gauge in real time. Compared with traditional manual inspection, the device can achieve 24-hour uninterrupted monitoring, timely detect liquid level abnormalities, and ensure the safe operation of the transformer. The development of the alarm system further enhances the practicality of the device. The system can automatically trigger an alarm based on the results of intelligent identification, and transmit the alarm information to the control center or maintenance personnel through the smart box, realizing the immediacy of the alarm and remote monitoring. This integrated alarm mechanism not only improves the fault response speed, but also provides maintenance personnel with convenient fault diagnosis and processing methods.

[0045] In summary, the device of the present invention significantly improves the monitoring level of the transformer oil conservator through its intelligent and automated characteristics, reduces maintenance costs, enhances the stability and safety of the system, and has significant technical effects and social and economic benefits. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 is a schematic diagram of an embodiment of the present invention.

[0047] Figure 2 It is a schematic diagram of a flow chart of calculating the oil level value of the oil level gauge in an embodiment of the present invention.

[0048] Figure 3 It is a schematic diagram of the process of training the oil level gauge area detection model in an embodiment of the present invention.

[0049] Figure 4 It is a schematic diagram of the process of training the oil level gauge scale and liquid level line detection model in an embodiment of the present invention.

[0050] Figure 5 It is a schematic diagram of a flow chart of generating and executing an alarm instruction in an embodiment of the present invention.

[0051] Figure 6 It is a schematic diagram of a flow chart for calculating and generating a straight line equation value=at+b in an embodiment of the present invention.

[0052] Figure 7 It is a module block diagram of an embodiment of the present invention.

[0053] Explanation of the accompanying drawings: 1. Oil level gauge equipment image acquisition module; 2. Oil level gauge area detection model calling module; 3. Oil level gauge area map detection module; 4. Oil level gauge scale and liquid level line detection model calling module; 5. Oil level gauge scale and liquid level line detection module; 6. Target detection frame data determination module; 7. Scale target scale value calculation module; 8. Oil level gauge liquid level calculation module. DETAILED DESCRIPTION

[0054] The present invention is further described in detail below in conjunction with all the accompanying drawings.

[0055] The embodiment of the present invention discloses a liquid level meter intelligent identification method, system, device and storage medium, referring to Figure 1 and Figure 2 , a liquid level instrument intelligent identification method includes:

[0056] S101. Obtain an image of an oil level gauge device.

[0057] Specifically, a camera is provided on the transformer oil storage cabinet, and the intelligent recognition system sets a minute-level shooting task to control the camera to capture an image every minute; and receives the captured image of the oil level gauge device by the camera.

[0058] S102, calling the oil level gauge area detection model from a preset database.

[0059] Specifically, the intelligent recognition system calls the oil level gauge area detection model from a preset database to detect the oil level gauge area map.

[0060] S103, inputting the oil level gauge device image into an oil level gauge area detection model, detecting the oil level gauge area, and determining an oil level gauge area map.

[0061] Specifically, the intelligent recognition system inputs the images captured every minute into the scale and liquid level line detection model to locate the oil level gauge area.

[0062] S104, calling the oil level gauge scale and liquid level line detection model from a preset database.

[0063] Specifically, the intelligent recognition system calls the oil level gauge scale and liquid level line detection model from the preset database to identify the oil level gauge scale and liquid level line. For example, there are 22 category labels, ["0", "0.5","1", "1.5","2", "2.5","3", "3.5","4", "4.5", "5", "5.5", "6", "6.5", "7", "7.5", "8", "8.5", "9", "9.5", "10", "rline"], among which the first 21 labels are the oil level gauge scale target labels and the 22nd label is the liquid level line label.

[0064] S105, detect the first scale target O1, the second scale target O2 and the liquid level line O line .

[0065] Specifically, the intelligent recognition system detects the scale and liquid level line in the oil level gauge area, and avoids misdetection of the scale and liquid level line detection due to the complex background of the substation through two-level detection. The oil level gauge area map is input into the oil level gauge scale and liquid level line detection model, and the first scale target O1, the second scale target O2 and the liquid level line O line .

[0066] Sometimes, there are more than two scales displayed in the oil level gauge, and some scales may be blocked, resulting in low confidence. In order to calculate more accurately, the intelligent recognition system selects two scale targets with higher confidence for liquid level calculation. All identified scale targets are sorted by confidence, and the two scale targets with the highest confidence are taken, recorded as the first scale target O1 and the second scale target O2, for calculating the oil level gauge liquid level. For example, three scale targets are detected, among which the middle scale 8 is blocked and the confidence is relatively low, so the scales 8.5 and 9.5 with higher confidence are taken to participate in the liquid level calculation.

[0067] S106: Determine corresponding target detection frame data.

[0068] Specifically, the intelligent recognition system detects the first scale target O1, the second scale target O2 and the liquid level line O line , respectively determine the corresponding target detection frame data:

[0069] O1: [x1, y1, w1, h1, label1, Score1];

[0070] O2: [x2, y2, w2, h2, label2, Score2];

[0071] O line :[x line , yline , w line , h line , label line , Score line ];

[0072] Among them, x1 and y1 together represent the coordinates of the upper left corner of the target detection frame of the first scale target O1, w1 and h1 respectively represent the width and height of the target detection frame of the first scale target O1, label1 represents the category label of the first scale target O1, and Score1 represents the confidence of the first scale target O1; x2 and y2 together represent the coordinates of the upper left corner of the target detection frame of the second scale target O2, w2 and h2 respectively represent the width and height of the target detection frame of the second scale target O2, label2 represents the category label of the second scale target O2, and Score2 represents the confidence of the second scale target O2; x line and line Together they represent the liquid level O line The coordinates of the upper left corner of the target detection box, w line and h line Represents the liquid level O line The width and height of the target detection box, label line Represents the liquid level O line Category label, Score line Represents the liquid level O line confidence level.

[0073] S107. Convert the string label into a numerical value.

[0074] Specifically, the category labels of the first scale target O1 and the second scale target O2 are string types, and the string labels are converted into numerical values ​​to obtain the scale values ​​k of the scale targets involved in the calculation. min and k max ;

[0075] ;

[0076] ;

[0077] Among them, f represents the function that converts a string into a floating point number, k min and k max They represent the scale values ​​of the first scale target O1 and the second scale target O2 involved in the calculation. For example, there are 22 category labels, and the first 21 labels are scale target labels of the oil level gauge. In this embodiment, the float() function of the python language can convert str type and int type data into floating point type, so the 21 categories of labels can be converted into floating point values.

[0078] S108, calculate the first scale target O1, the second scale target O2 and the liquid level line O line The coordinates of .

[0079] Specifically, in the pixel coordinate system, the origin of the pixel is in the upper left corner of the image, and the lower edge of the detection frame of the scale number is close to the scale line. Therefore, the y value of the bottom edge of the detection frame of the first scale target O1 and the second scale target O2 is selected for liquid level calculation. line Selecting the center line of the detection frame for liquid level calculation is more accurate.

[0080] The intelligent recognition system records the y values ​​of the bottom edges of the detection frames of the first scale target O1 and the second scale target O2 as y min and max , Liquid level O line The y-coordinate of the centerline is labeled y oline , the calculation formula is as follows:

[0081] ;

[0082] ;

[0083] ;

[0084] Among them, h1 represents the height of the target detection frame of the first scale target O1, h2 represents the height of the target detection frame of the second scale target O2, and h line Represents the liquid level O line The height of the target detection box;

[0085] S109, calculate and obtain the oil level gauge liquid level value.

[0086] Specifically, the intelligent recognition system is based on the liquid level line O line The y coordinate of the center line oline , the y coordinate of the bottom edge of the detection box of the first scale target O1 and the second scale target O2 min and max , and the scale value k min and k max , the liquid level calculation formula is listed:

[0087] ;

[0088] Calculate the oil level gauge value:

[0089] ;

[0090] Where value represents the calculated level reading of the liquid level line.

[0091] Reference Figure 3Before S102, the oil level gauge area detection model is trained according to the training image data, which specifically includes the following steps:

[0092] S201, obtaining training image data.

[0093] Specifically, the intelligent recognition system obtains training image data, which includes multiple oil level gauge equipment images in indoor and outdoor scenes. These images will be used as raw data for training the model. The diversity of image data helps improve the generalization ability of the model in different scenarios.

[0094] S202: Construct and generate an oil level gauge detection data set.

[0095] Specifically, the intelligent recognition system uses the LabelImg annotation tool to manually annotate the oil level gauge target frame and construct a data set for oil level gauge detection. Through manual annotation, the accuracy and reliability of the oil level gauge target frame can be ensured. These annotated data will serve as a benchmark for model training to help the model learn how to identify and locate the oil level gauge.

[0096] S203: training an oil level gauge area detection model.

[0097] Specifically, the intelligent recognition system uses the YOLOv8 deep learning target detection algorithm based on the oil level gauge detection dataset to train the oil level gauge area detection model for locating the oil level gauge in the picture; YOLOv8 is an advanced deep learning target detection algorithm with high precision and real-time performance. Using this algorithm to train the oil level gauge area detection model can ensure that the model has high accuracy and speed when identifying the oil level gauge. The YOLOv8 algorithm performs well in processing complex scenes and multiple targets, and is suitable for oil level gauge detection tasks. In addition, the algorithm also supports multi-scale prediction and feature fusion, which helps to improve the performance of the model.

[0098] S204: Save the oil level gauge area detection model into a preset database.

[0099] Specifically, the intelligent recognition system saves the oil level gauge area detection model into a preset database. The trained model is saved into the preset database for easy subsequent calling and use. This helps to realize the automation and intelligence of oil level gauge detection.

[0100] Reference Figure 4 Before S104, the oil level gauge detection data set generated by the construction is used to train the oil level gauge scale and liquid level line detection model, which specifically includes the following steps:

[0101] S301, extract a small picture of the oil level gauge area.

[0102] Specifically, the intelligent recognition system extracts a small image of the oil level gauge area based on the oil level gauge detection data set; by extracting a small image of the oil level gauge area from the oil level gauge detection data set, it can focus on the structure and details of the oil level gauge itself, and reduce the impact of background noise on subsequent scale and liquid level line detection. This approach improves the data quality and the training efficiency of the model, allowing the model to better learn and recognize the scale and liquid level line on the oil level gauge.

[0103] S302: Construct and generate a scale and liquid level line detection data set.

[0104] Specifically, the intelligent recognition system uses the LabelImg annotation tool to manually annotate the target frame of the scale and liquid level line according to the oil level gauge area small picture, and constructs a scale and liquid level line detection data set; using LabelImg and other annotation tools to manually annotate the scale and liquid level line in the oil level gauge area small picture is conducive to generating accurate target frame information. This information will serve as the benchmark for model training.

[0105] S303, training the oil level gauge scale and liquid level line detection model.

[0106] Specifically, the intelligent recognition system uses the YOLOv8 deep learning target detection algorithm based on the scale and liquid level line detection dataset to train the oil level gauge scale and liquid level line detection model, which is used to obtain the detection frame area data of the liquid level line and scale target at the current moment; the YOLOv8 deep learning target detection algorithm is used to train the oil level gauge scale and liquid level line detection model using the constructed scale and liquid level line detection dataset. This model will be used to obtain the detection frame area data of the liquid level line and scale target at the current moment. The efficiency and accuracy of the YOLOv8 algorithm enable the model to quickly and accurately identify the scale and liquid level line on the oil level gauge. This helps to realize the automatic monitoring and reading of the oil level gauge.

[0107] S304, saving the oil level gauge scale and liquid level line detection model into a preset database.

[0108] Specifically, the intelligent recognition system saves the trained oil level gauge scale and liquid level line detection model into the preset database for subsequent call and use, which helps to realize the automation and intelligence of oil level gauge detection.

[0109] Reference Figure 5 This embodiment discloses an alarm method, which specifically includes the following steps:

[0110] S401. Obtain oil temperature value t.

[0111] Specifically, the intelligent recognition system obtains the oil temperature value t; the acquisition of the oil temperature value t is the basis for subsequent steps, which reflects the current temperature state of the oil. The oil temperature has a direct impact on the volume, density and other physical properties of the oil, so it is an important parameter for determining the liquid level threshold.

[0112] S402: Obtain oil temperature curve data from a preset database.

[0113] Specifically, the intelligent recognition system obtains oil temperature curve data from a preset database; the oil temperature curve data usually contains liquid level threshold information at different oil temperatures. These data are obtained through experiments or historical data accumulation, reflecting the corresponding relationship between oil temperature and liquid level threshold. By querying these data, the liquid level threshold corresponding to the current oil temperature value t can be quickly obtained.

[0114] S403: Obtain a liquid level threshold corresponding to the oil temperature value t.

[0115] Specifically, the intelligent recognition system obtains the liquid level threshold corresponding to the oil temperature value t according to the oil temperature value t and the oil temperature curve data; and obtains the liquid level threshold corresponding to the current oil temperature by searching or interpolating the oil temperature value t in the oil temperature curve data. This liquid level threshold will be used as a standard for judging whether the liquid level exceeds the safety range.

[0116] S404: Generate an alarm instruction and execute it.

[0117] Specifically, when the oil level gauge liquid level value exceeds the liquid level threshold, the intelligent recognition system generates and executes an alarm instruction. By comparing the oil level gauge liquid level value with the calculated liquid level threshold, it can be determined whether the liquid level exceeds the safe range. If the liquid level exceeds the threshold, the system will generate an alarm instruction and execute corresponding alarm operations, such as making a sound, flashing lights, sending text messages or emails, etc., to alert the operator. This method can detect abnormal liquid levels in a timely manner, and remind the operator to take measures through an alarm to avoid potential safety risks. At the same time, due to the use of a liquid level threshold calculation method based on oil temperature, the alarm is more accurate and reliable.

[0118] Reference Figure 6 After S402, oil temperature curve data is generated according to the oil level value and the oil temperature value t of the oil level gauge, which specifically includes the following steps:

[0119] S501, obtaining corresponding values ​​of two sets of oil level gauge liquid level value and oil temperature value t.

[0120] Specifically, the intelligent recognition system obtains the corresponding values ​​of two sets of oil level gauge liquid level value and oil temperature value t; these data will be used for subsequent linear equation fitting.

[0121] S502, calculate and generate the straight line equation value=at+b.

[0122] Specifically, the intelligent identification system substitutes the corresponding values ​​of the two sets of oil level gauge liquid level value and oil temperature value t into the linear equation value=at+b, and calculates the values ​​of a and b; here, the substitution elimination method or addition and subtraction elimination method will be used to solve the parameters a and b in the linear equation value=at+b. By substituting the corresponding data of multiple sets of liquid level and oil temperature into the equation, the linear equation parameters a and b that best fit these data can be obtained. Parameter a reflects the degree of influence of oil temperature on the liquid level value, while parameter b represents the liquid level value when the oil temperature is 0 (theoretically).

[0123] S503, storing the calculated value=at+b as oil temperature curve data in a database.

[0124] Specifically, the intelligent recognition system stores the calculated value=at+b as oil temperature curve data in the database. The obtained linear equation value=at+b and its parameters a and b are stored in the preset database as oil temperature curve data. In this way, in the subsequent liquid level monitoring process, the corresponding liquid level value can be quickly calculated through the equation according to the real-time measured oil temperature value t, thereby realizing accurate prediction or estimation of the liquid level value.

[0125] Reference Figure 7 Based on the above method, the embodiment of the present invention further discloses a liquid level meter intelligent identification system, including:

[0126] The oil level gauge device image acquisition module 1 is used to acquire the oil level gauge device image.

[0127] The oil level gauge area detection model calling module 2 is used to call the oil level gauge area detection model from a preset database.

[0128] The oil level gauge area map detection module 3 is used to input the oil level gauge device image into the oil level gauge area detection model, detect the oil level gauge area, and determine the oil level gauge area map.

[0129] The oil level gauge scale and liquid level line detection model calling module 4 is used to call the oil level gauge scale and liquid level line detection model from a preset database.

[0130] The oil level gauge scale and liquid level line detection module 5 is used to detect the first scale target O1, the second scale target O2 and the liquid level line O according to the oil level gauge scale and liquid level line detection model and the oil level gauge area map. line .

[0131] The target detection frame data determination module 6 is used to determine the target detection frame data according to the first scale target O1, the second scale target O2 and the liquid level line O line , respectively determine the corresponding target detection box data.

[0132] The scale target scale value calculation module 7 is used to convert the class labels of the first scale target O1 and the second scale target O2 into numerical values ​​to obtain the scale value k of the scale target involved in the calculation. min and k max .

[0133] The y values ​​of the bottom edges of the detection boxes of the first scale target O1 and the second scale target O2 are respectively denoted as y min and max , Liquid level O line The y-coordinate of the centerline is labeled y oline .

[0134] The oil level gauge liquid level calculation module 8 is used to calculate the oil level gauge liquid level according to the liquid level line O line The y coordinate of the center line oline , the y coordinate of the bottom edge of the detection box of the first scale target O1 and the second scale target O2 min and max , and the scale value k min and k max , calculate the oil level gauge value.

[0135] The embodiment of the present invention further discloses an intelligent terminal, which includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes the above-mentioned intelligent identification method for a liquid level meter.

[0136] The embodiment of the present invention also discloses a computer-readable storage medium. The computer-readable storage medium stores a computer program that can be loaded by a processor and executes the above-mentioned liquid level meter intelligent identification method. The computer-readable storage medium includes, for example, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0137] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the scope of protection of the invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on these embodiments, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in this field can still combine, add, delete or make other adjustments to the features in the various embodiments of the present invention according to the circumstances without conflict, without making creative work, so as to obtain different other technical solutions that do not deviate from the concept of the present invention in essence, and these technical solutions also belong to the scope of protection of the present invention.

Claims

1. A liquid level meter intelligent identification method, characterized in that: The following steps are involved: Get the oil level gauge equipment picture; Call the oil level gauge area detection model from the preset database; Inputting the oil level gauge device image into the oil level gauge area detection model, detecting the oil level gauge area, and determining the oil level gauge area map; Call the oil level gauge scale and liquid level line detection model from the preset database; The oil level gauge area map is input into the oil level gauge scale and liquid level line detection model to detect all observable scale targets and liquid level line targets. , use the category label to filter the scale targets, sort all the detected scale targets by confidence, and take the two scale targets with the largest confidence as the first scale targets , Second scale target , used to calculate the oil level gauge level; according to the first scale target detected , Second scale target and level line target , respectively determine the corresponding target detection data: ; ; ; in, and Together represent the first scale target The coordinates of the upper left corner of the detection box. and Represents the first scale target The width and height of the detection box, Represents the first scale target The category label of Represents the first scale target confidence level; and Together they represent the second scale target The coordinates of the upper left corner of the detection box. and Represents the second scale target The width and height of the detection box, Represents the second scale target The category label of Represents the second scale target confidence level; and Commonly represents the liquid level target The coordinates of the upper left corner of the detection box. and Represents the liquid level target The width and height of the detection box, Represents the target level The category label of Represents the target level confidence level; Convert string labels to numeric values; according to the first scale target , Second scale target , get the first scale target The scale value and the second scale target The scale value ; ; ; Among them, f represents the function that converts a string into a floating point number. and Represents the first scale target involved in the calculation , Second scale target The scale value of According to the liquid level The calculation formula obtains the oil level gauge level reading; Calculate the first scale target , Second scale target And the liquid level line The coordinates of In the pixel coordinate system, the origin of the pixel is in the upper left corner of the image. The lower edge of the detection box of the scale target is close to the scale line, so the first scale target is selected. , Second scale target The y value of the bottom edge of the detection frame is used for liquid level calculation, and the liquid level line Selecting the center line of the detection frame for liquid level calculation is more accurate; Intelligent recognition system will be the first scale target , Second scale target The y values ​​of the bottom edge of the detection box are recorded as and , Liquid level line The y coordinate of the center line is labeled , the calculation formula is as follows: ; ; ; in, Represents the first scale target The height of the detection frame, Represents the second scale target The height of the detection frame, Represents the target level The height of the detection box; Calculate the oil level gauge value: Intelligent recognition system based on the level line The y coordinate of the center point , first scale target , Second scale target The y coordinate of the bottom edge of the detection box and , and the scale value and , the liquid level calculation formula is listed: ; Calculate the oil level gauge value: ; Where value represents the calculated level reading of the liquid level line; Get the oil temperature value t; Obtain oil temperature curve data from a preset database; According to the oil temperature value t and the oil temperature curve data, a liquid level threshold value corresponding to the oil temperature value t is obtained; When the oil level value of the oil level gauge exceeds the liquid level threshold, an alarm instruction is generated and executed; Before the step of obtaining the oil temperature curve data from the preset database, the method further includes: Get the corresponding values ​​of two sets of oil level gauge liquid level value and oil temperature value t; Substitute the corresponding values ​​of the two sets of oil level gauge liquid level value and oil temperature value t into the linear equation value=at+b, and calculate the values ​​of a and b; The calculated Stored in the database as oil temperature curve data.

2. The method for intelligently identifying a liquid level meter according to claim 1, characterized in that: Before the step of calling the oil level gauge area detection model from the preset database, the method includes: Acquire training image data, wherein the training image data includes multiple oil level gauge device images of indoor and outdoor scenes; Use the LabelImg annotation tool to manually annotate the oil level gauge target frame and construct an oil level gauge detection dataset; According to the oil level gauge detection dataset, the YOLOv8 deep learning target detection algorithm is used to train an oil level gauge area detection model to locate the position of the oil level gauge in the image; The oil level gauge area detection model is saved in a preset database.

3. The method for intelligently identifying a liquid level meter according to claim 2, characterized in that: Before the step of calling the oil level gauge scale and liquid level line detection model from the preset database, the method further includes: Extracting a small image of the oil level gauge area according to the oil level gauge detection data set; According to the oil level gauge area thumbnail, use the LabelImg annotation tool to manually annotate the target frame of the scale and liquid level line, and construct a scale and liquid level line detection dataset; According to the scale and liquid level line detection dataset, the YOLOv8 deep learning target detection algorithm is used to train the oil level gauge scale and liquid level line detection model to obtain the detection frame area data of the liquid level line and scale target at the current moment; The oil level gauge scale and liquid level line detection model are saved in a preset database.

4. A liquid level meter intelligent identification system, characterized in that: include: The oil level gauge device image acquisition module is used to acquire the oil level gauge device image; The oil level gauge area detection model calling module is used to call the oil level gauge area detection model from a preset database; The oil level gauge area map detection module is used to input the oil level gauge device image into the oil level gauge area detection model, detect the oil level gauge area, determine the oil level gauge area map; detect and obtain all observable scale targets and liquid level line targets , use the category label to filter the scale targets, sort all the detected scale targets by confidence, and take the two scale targets with the largest confidence as the first scale targets , Second scale target , used to calculate the oil level gauge level; according to the first scale target detected , Second scale target and level line target , respectively determine the corresponding target detection data: ; ; ; in, and Together they represent the first scale target The coordinates of the upper left corner of the detection box. and Represents the first scale target The width and height of the detection box, Represents the first scale target The category label of Represents the first scale target confidence level; and Together they represent the second scale target The coordinates of the upper left corner of the detection box. and Represents the second scale target The width and height of the detection box, Represents the second scale target The category label of Represents the second scale target confidence level; and Commonly represents the liquid level target The coordinates of the upper left corner of the detection box. and Represents the liquid level target The width and height of the detection box, Represents the target level The category label of Represents the target level confidence level; The oil level gauge scale and liquid level line detection model calling module is used to call the oil level gauge scale and liquid level line detection model from a preset database; Convert string labels to numeric values; according to the first scale target , Second scale target , get the first scale target The scale value and the second scale target The scale value ; ; ; Among them, f represents the function that converts a string into a floating point number. and Represents the first scale target involved in the calculation , Second scale target The scale value of According to the liquid level The calculation formula obtains the oil level gauge level reading; An oil level gauge scale and liquid level line detection module is used to input the oil level gauge area map into the oil level gauge scale and liquid level line detection model to detect and obtain a first scale target, a second scale target and a liquid level line; Calculate the first scale target , Second scale target And the liquid level line The coordinates of In the pixel coordinate system, the origin of the pixel is in the upper left corner of the image. The lower edge of the detection box of the scale target is close to the scale line, so the first scale target is selected. , Second scale target The y value of the bottom edge of the detection frame is used for liquid level calculation, and the liquid level line Selecting the center line of the detection frame for liquid level calculation is more accurate; The target detection frame data determination module is used to determine the corresponding target detection frame data according to the detected first scale target, second scale target and liquid level line; Intelligent recognition system will be the first scale target , Second scale target The y values ​​of the bottom edge of the detection box are recorded as and , Liquid level line The y coordinate of the center line is labeled , the calculation formula is as follows: ; ; ; in, Represents the first scale target The height of the detection frame, Represents the second scale target The height of the detection frame, Represents the target level The height of the detection box; A scale target scale value calculation module, used for converting the first scale target and the second scale target to obtain the scale value of the scale target involved in the calculation; The oil level gauge liquid level calculation module is used to calculate the oil level gauge liquid level according to the y coordinate of the center line of the liquid level line, the y coordinate of the bottom edge of the first scale target and the second scale target detection frame, and the scale value; Calculate the oil level gauge value: Intelligent recognition system based on the level line The y coordinate of the center point , first scale target , Second scale target The y coordinate of the bottom edge of the detection box and , and the scale value and , the liquid level calculation formula is listed: ; Calculate the oil level gauge value: ; Where value represents the calculated level reading of the liquid level line; Get the oil temperature value t; Obtain oil temperature curve data from a preset database; According to the oil temperature value t and the oil temperature curve data, a liquid level threshold value corresponding to the oil temperature value t is obtained; When the oil level value of the oil level gauge exceeds the liquid level threshold, an alarm instruction is generated and executed; Before the step of obtaining the oil temperature curve data from the preset database, the method further includes: Get the corresponding values ​​of two sets of oil level gauge liquid level value and oil temperature value t; Substitute the corresponding values ​​of the two sets of oil level gauge liquid level value and oil temperature value t into the linear equation value=at+b, and calculate the values ​​of a and b; The calculated Stored in the database as oil temperature curve data.

5. An intelligent terminal, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes any one of the methods according to claims 1 to 3.

6. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Control method and device, equipment and computer storage medium

    CN112015091A

  • Method and system for identifying oil level gauge of liquid level type transformer

    CN114022670A

  • Liquid level identification method and device, electronic equipment and computer readable storage medium

    CN116453104A