CN117606587A - Electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC - Google Patents

Electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC Download PDF

Info

Publication number
CN117606587A
CN117606587A CN202410097029.XA CN202410097029A CN117606587A CN 117606587 A CN117606587 A CN 117606587A CN 202410097029 A CN202410097029 A CN 202410097029A CN 117606587 A CN117606587 A CN 117606587A
Authority
CN
China
Prior art keywords
electromagnetic
liquid level
test
value
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410097029.XA
Other languages
Chinese (zh)
Other versions
CN117606587B (en
Inventor
池泉
诸星龙
王诗璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panda Wisdom Water Business Co ltd
Original Assignee
Panda Wisdom Water Business Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panda Wisdom Water Business Co ltd filed Critical Panda Wisdom Water Business Co ltd
Priority to CN202410097029.XA priority Critical patent/CN117606587B/en
Publication of CN117606587A publication Critical patent/CN117606587A/en
Application granted granted Critical
Publication of CN117606587B publication Critical patent/CN117606587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/22Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water
    • G01F23/28Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring the variations of parameters of electromagnetic or acoustic waves applied directly to the liquid or fluent solid material
    • G01F23/284Electromagnetic waves
    • G01F23/292Light, e.g. infrared or ultraviolet
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/80Arrangements for signal processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Fluid Mechanics (AREA)
  • Electromagnetism (AREA)
  • Data Mining & Analysis (AREA)
  • Human Resources & Organizations (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Tourism & Hospitality (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Water Supply & Treatment (AREA)
  • Thermal Sciences (AREA)
  • Public Health (AREA)
  • Signal Processing (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

The invention provides an electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC, which comprises the following steps: determining electromagnetic properties of an electromagnetic liquid level sensor according to an application scene of water affair monitoring, and acquiring an electromagnetic liquid level relation curve of each water affair measuring point in intelligent water affair based on the electromagnetic properties and a curve test storage module; identifying the configured dynamic restriction table to obtain a dynamic restriction liquid level corresponding to each water service measurement point, and converting the dynamic restriction liquid level based on the electromagnetic liquid level relation curve to obtain a corresponding electromagnetic restriction interval; loading the electromagnetic limit interval into a coordinate system where the electromagnetic liquid level relation curve is located to obtain background electromagnetic monitoring data; and determining a corresponding conversion mode according to the interactive selected information of the water affair measuring points, and dynamically classifying and measuring the corresponding water affair measuring points based on the background electromagnetic monitoring data and the conversion mode.

Description

Electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC
Technical Field
The invention relates to a data processing technology, in particular to an electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC.
Background
The liquid level measurement in the intelligent water service scene is an important link. The electromagnetic liquid level sensor is a liquid level measuring instrument commonly used for intelligent water affairs, and utilizes an electromagnetic induction principle to measure the liquid level of liquid, and the working principle is realized based on Faraday induction law.
As is well known, the intelligent water affairs have more scenes, so that the water affair monitoring has more application scenes for measuring the liquid level, and the electromagnetic data corresponding to the same liquid level are different in different scenes. For example, in a water service scene with an application scene of about 100 meters, the data output at the same liquid level is different from that in a water service scene with an application scene of about 1 meter. In the prior art, manual measurement and debugging are often carried out manually, the accuracy of measured data cannot be guaranteed, and the electromagnetic liquid level sensor is low in accuracy.
Therefore, how to combine the scene demand of wisdom water affair to carry out the customization measurement of dynamic data, improve the accuracy of measured data to improve electromagnetic liquid level sensor's precision has become the urgent problem that needs to solve.
Disclosure of Invention
The embodiment of the invention provides an electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC, which can be used for carrying out customized measurement of dynamic data in combination with the scene requirement of intelligent water service, and improves the accuracy of measurement data, thereby improving the accuracy of an electromagnetic liquid level sensor.
The embodiment of the invention provides an electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC, which comprises the following steps:
determining electromagnetic properties of an electromagnetic liquid level sensor according to an application scene of water affair monitoring, and acquiring an electromagnetic liquid level relation curve of each water affair measuring point in intelligent water affair based on the electromagnetic properties and a curve test storage module, wherein each electromagnetic property has a pre-trained electromagnetic liquid level relation curve;
identifying the configured dynamic restriction table to obtain a dynamic restriction liquid level corresponding to each water service measurement point, and converting the dynamic restriction liquid level based on the electromagnetic liquid level relation curve to obtain a corresponding electromagnetic restriction interval;
loading the electromagnetic limit interval into a coordinate system where the electromagnetic liquid level relation curve is located to obtain background electromagnetic monitoring data;
and determining a corresponding conversion mode according to the interactive selected information of the water affair measuring points, wherein the conversion mode comprises an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode, and dynamically classifying, measuring and processing the corresponding water affair measuring points based on background electromagnetic monitoring data and the conversion mode.
Optionally, acquiring an electromagnetic liquid level relation curve of the water service measurement point corresponding to each electromagnetic attribute includes the following steps:
An actual test scene of a pipeline corresponding to each water service measurement point is pre-constructed, and the actual test scene corresponds to scene specifications of an electromagnetic liquid level sensor and parameter specifications of the electromagnetic liquid level sensor installed in an application scene of water service monitoring;
the electromagnetic liquid level sensor is used for monitoring the liquid level in the test cavity;
and changing the scene specification, and acquiring test electromagnetic information output by the electromagnetic liquid level sensor under different scene specifications by using a curve test storage module, and generating a corresponding electromagnetic liquid level relation curve by using the test liquid level information of the test cavity.
Optionally, the changing the scene specification, the curve test storage module obtaining test electromagnetic information output by the electromagnetic liquid level sensor under different scene specifications, and the test liquid level information of the test cavity generating a corresponding electromagnetic liquid level relation curve, includes:
the temperature adjusting module is adjusted based on the scene specification, so that the water body of the test water tank detected by the temperature detecting module reaches the temperature corresponding to the scene specification;
The test cavity is a transparent water tank with scales, and the liquid in the test cavity is liquid with preset color;
controlling the test pump to work according to a first mode so as to enable the water body in the test cavity to reach a preset reference test liquid level;
and after judging that the reference test liquid level is reached, controlling the test pump to work according to a second mode, and generating a corresponding electromagnetic liquid level relation curve by the curve test storage module based on the test electromagnetic information output by the electromagnetic liquid level sensor and the test liquid level information detected by the liquid level detection module.
Optionally, after the reference test liquid level is reached, the test pump is controlled to operate according to a second mode, and the curve test storage module generates a corresponding electromagnetic liquid level relation curve based on test electromagnetic information output by the electromagnetic liquid level sensor and test liquid level information detected by the liquid level detection module, including:
the curve test storage module acquires test electromagnetic information output by the electromagnetic liquid level sensor in real time to obtain an electromagnetic information sequence with a time sequence;
the liquid level detection module comprises an image acquisition device, wherein the image acquisition device acquires cavity images of a test cavity in real time to obtain a cavity image sequence with a time sequence, and identifies the cavity images to obtain test liquid level information corresponding to each cavity image;
And the curve test storage module correspondingly processes the electromagnetic information sequence, the test electromagnetic information and the test liquid level information of the corresponding time sequences in the cavity image sequence to generate a corresponding electromagnetic liquid level relation curve.
Optionally, the identifying the cavity image to obtain the test liquid level information corresponding to each cavity image includes:
taking the pixel value of the color corresponding to the liquid in the cavity image as a first target pixel value, and taking the pixel value of the color corresponding to the scale as a second target pixel value;
carrying out coordinate processing on the cavity image, and obtaining first coordinates of all first pixel points corresponding to a first target pixel value, wherein the first target pixel value is an RGB value of a corresponding color of liquid;
determining an ordinate maximum value and an abscissa intermediate value in all the first pixel points, generating a corresponding secondary amplification extraction frame based on the ordinate maximum value, and setting the pixel points corresponding to the ordinate maximum value and the abscissa intermediate value as extraction points and the secondary amplification extraction frame in a calibration mode;
and acquiring an amplified image in the secondary amplified extraction frame, and identifying the amplified image to obtain the test liquid level information corresponding to each cavity image.
Optionally, the obtaining an enlarged image in the secondary enlarged extraction frame, and identifying the enlarged image to obtain the test liquid level information corresponding to each cavity image includes:
acquiring third coordinates of all third pixel points corresponding to the first target pixel value, and determining the maximum value of the ordinate in all third pixel points;
performing OCR (optical character recognition) on the amplified image to obtain corresponding text information, and acquiring a ordinate section corresponding to each text information;
and comparing the maximum value of the ordinate in the third pixel point with the intermediate value of the ordinate interval to obtain a comparison result, and calculating the test liquid level information corresponding to the cavity image based on the text information determined by the comparison result.
Optionally, the comparing the maximum value of the ordinate in the third pixel with the intermediate value of the ordinate interval to obtain a comparison result, and calculating based on the text information determined by the comparison result to obtain the test liquid level information corresponding to the cavity image, including:
determining a middle value which is larger than the minimum value in the maximum value of the ordinate in the comparison result as a first middle value, and determining a middle value which is smaller than the maximum value in the maximum value of the ordinate in the comparison result as a second middle value;
Taking the text information corresponding to the second intermediate value as a first basic value, and acquiring a first integer scale value of the text information corresponding to the first intermediate value and a second integer scale value of the text information corresponding to the second intermediate value;
acquiring a first scale ordinate and a second scale ordinate which correspond to a first integer scale value and a second integer scale value respectively, acquiring a difference value of the first scale ordinate and the second scale ordinate to obtain a total scale section, and obtaining a dynamic scale section based on the difference value of the maximum value of the ordinate and the second scale ordinate;
and multiplying the proportion of the dynamic scale section and the total scale section by the actual section value to obtain a second non-integer value, and adding the first basic value and the second non-integer value to obtain the test liquid level information.
Optionally, determining the electromagnetic attribute of the electromagnetic liquid level sensor according to the application scenario of water affair monitoring, acquiring an electromagnetic liquid level relation curve of each water affair measurement point in intelligent water affair based on the electromagnetic attribute and the curve test storage module, wherein each electromagnetic attribute has a pre-trained electromagnetic liquid level relation curve, and the method comprises the following steps:
determining a corresponding actual test scene based on the application scene of water affair monitoring to obtain electromagnetic properties corresponding to the parameter specification of the electromagnetic liquid level sensor;
Acquiring an electromagnetic liquid level relation curve of each water service measurement point in intelligent water service based on electromagnetic properties and a curve test storage module, wherein the electromagnetic liquid level relation curve comprises a plurality of electromagnetic liquid level relation curves under different temperature scenes;
and determining an electromagnetic liquid level relation curve under the corresponding temperature scene based on the current temperature of the application scene.
Optionally, the determining a corresponding conversion mode according to the interactive selected information of the water affair measurement point, where the conversion mode includes an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode, and dynamically classifying and measuring the corresponding water affair measurement point based on background electromagnetic monitoring data and conversion modes includes:
if any water service measuring point is selected, determining that the conversion mode of the corresponding water service measuring point is an electromagnetic quantity active conversion mode;
if any water service measuring point is not selected, determining that the conversion mode of the corresponding water service measuring point is an electromagnetic quantity passive conversion mode;
and acquiring background electromagnetic monitoring data of a water service measurement point corresponding to an electromagnetic quantity active conversion mode, and converting the background electromagnetic monitoring data into corresponding detection liquid level information based on the electromagnetic liquid level relation curve for dynamic display processing.
Optionally, the determining a corresponding conversion mode according to the interactive selected information of the water affair measurement point, where the conversion mode includes an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode, and dynamically classifying and measuring the corresponding water affair measurement point based on background electromagnetic monitoring data and conversion modes includes:
obtaining background electromagnetic monitoring data of a water service measurement point corresponding to an electromagnetic quantity passive conversion mode, and placing monitoring electromagnetic information corresponding to the background electromagnetic monitoring data in a corresponding electromagnetic liquid level relation curve;
and if the monitored electromagnetic information is judged not to be positioned in the electromagnetic limit section of the electromagnetic liquid level relation curve, converting the monitored electromagnetic information into corresponding detected liquid level information based on the electromagnetic liquid level relation curve for dynamic display processing.
The beneficial effects are that:
1. the scheme can combine the application scene of water affair monitoring to confirm the electromagnetic attribute of electromagnetic liquid level sensor, then customize the test scene. The system comprises a scene specification and an electromagnetic liquid level sensor, wherein the scene specification and the parameter specification of the electromagnetic liquid level sensor are determined by the conference, and the electromagnetic liquid level sensor is customized by combining a plurality of dimensions, so that the electromagnetic liquid level sensor is close to an actual scene. In the process, the scheme can be combined with image processing to identify the liquid level in real time, and a curve test storage module is combined to construct an electromagnetic liquid level relation curve. Through the scheme, the customization measurement of dynamic data can be carried out by combining the scene requirement of intelligent water affairs, and the accuracy of the measurement data is improved, so that the accuracy of the electromagnetic liquid level sensor is improved.
2. The present disclosure automatically recognizes the measurement in conjunction with image processing when measuring liquid level data. The method comprises the steps of positioning required data according to different colors, obtaining an amplified image according to a secondary amplification extraction frame, and calculating liquid level data according to the proportion of a dynamic scale section and a total scale section. According to the method and the device, the liquid level sensor is not used for measuring the liquid level, the image processing is used for automatically identifying the liquid level, and errors possibly exist in the measurement of the liquid level sensor.
3. According to the scheme, more electromagnetic quantity data are considered in the intelligent water service scene, and when the intelligent water service scene is displayed, all electromagnetic quantities cannot be displayed simultaneously. The corresponding conversion modes are determined by combining the user demands and the limited interval, and the conversion modes comprise an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode. It will be appreciated that the active presentation may be required to be presented when there is a need for active presentation by the user. The passive display can be performed by combining the limited interval, and through the mode, the data processing amount can be reduced.
Drawings
FIG. 1 is a schematic flow chart of an electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC according to an embodiment of the invention;
fig. 2 is a schematic diagram of a secondary amplifying extraction frame according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein.
It should be understood that, in various embodiments of the present invention, the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present invention, "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements that are expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present invention, "plurality" means two or more. "and/or" is merely an association relationship describing an association object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. "comprising A, B and C", "comprising A, B, C" means that all three of A, B, C comprise, "comprising A, B or C" means that one of the three comprises A, B, C, and "comprising A, B and/or C" means that any 1 or any 2 or 3 of the three comprises A, B, C.
It should be understood that in the present invention, "B corresponding to a", "a corresponding to B", or "B corresponding to a" means that B is associated with a, from which B can be determined. Determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information. The matching of A and B is that the similarity of A and B is larger than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to detection" depending on the context.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Referring to fig. 1, a flow chart of an electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC according to an embodiment of the present invention is shown, and the method includes S1-S4:
s1, determining electromagnetic properties of an electromagnetic liquid level sensor according to an application scene of water affair monitoring, and acquiring an electromagnetic liquid level relation curve of each water affair measuring point in intelligent water affair based on the electromagnetic properties and a curve test storage module, wherein each electromagnetic property has a pre-trained electromagnetic liquid level relation curve.
The disclosure relates to an electromagnetic liquid level sensor, which is a liquid level measuring instrument, which measures the liquid level of liquid by utilizing an electromagnetic induction principle, wherein the working principle is realized based on Faraday induction law, and the description is omitted. It is worth mentioning that, because the water affair monitoring is used in many situations where the liquid level is measured, the electromagnetic data corresponding to the same liquid level is different in different situations. For example, in a water service scene with an application scene of about 100 meters, the data output at the same liquid level is different from that in a water service scene with an application scene of about 1 meter. In the prior art, manual measurement and debugging are often carried out manually, the accuracy of measured data cannot be guaranteed, and the electromagnetic liquid level sensor is low in accuracy.
Therefore, the electromagnetic properties of the electromagnetic liquid level sensor can be determined according to the application scene of water affair monitoring, wherein each electromagnetic property has a pre-trained electromagnetic liquid level relation curve, and the electromagnetic properties can be, for example, the model, specification, installation mode and the like of the electromagnetic liquid level sensor. And then combining the electromagnetic attribute and the curve test storage module to obtain an electromagnetic liquid level relation curve of each water service measurement point in intelligent water service. The manner in which the electromagnetic level relationship is obtained will be described in the following schemes. In the scheme, the electromagnetic liquid level sensor and the curve test storage module are required to be connected with the PLC module, and corresponding data processing is performed through the PLC module.
In some embodiments, the electromagnetic liquid level relation curve of the water service measurement point corresponding to each electromagnetic attribute is obtained through the following steps of:
s11, an actual test scene of the pipeline corresponding to each water service measuring point is pre-constructed, and the actual test scene corresponds to the scene specification of the electromagnetic liquid level sensor and the parameter specification of the electromagnetic liquid level sensor installed in the application scene of water service monitoring.
Firstly, the scheme establishes an actual test scene of the pipeline corresponding to each water service measurement point, and it can be understood that the scheme establishes a measurement scene in combination with an application scene of water service monitoring, and performs automatic test of data under the measurement scene.
S12, a corresponding test cavity, a test pump and a test water tank are arranged in the actual test scene, the test pump is used for filling the test cavity with liquid, the test pump is used for introducing the liquid in the test water tank into the test cavity, and the electromagnetic liquid level sensor is used for monitoring the liquid level in the test cavity.
The actual test scene is provided with a corresponding test cavity, and the test cavity is a cylindrical container of 1 meter, for example. Meanwhile, the scheme is also required to be provided with a test pump and a test water tank for filling the test cavity with liquid. It will be appreciated that the test pump is used to introduce liquid in the test tank into the test cavity and the electromagnetic level sensor is used to monitor the liquid level in the test cavity.
S13, changing the scene specification, and obtaining test electromagnetic information output by the electromagnetic liquid level sensor under different scene specifications by the curve test storage module and generating a corresponding electromagnetic liquid level relation curve by the test liquid level information of the test cavity.
It should be noted that the scene specification can be changed, and the scene specification can be a temperature specification, and it is understood that, because the output information of the electromagnetic liquid level sensor is based on a semiconductor, the information of the same liquid level output is different at different temperatures, that is, the temperature has an influence on the accuracy of the data. The following schemes will be described in detail.
The curve test storage module can acquire test electromagnetic information output by the electromagnetic liquid level sensor under different scene specifications and generate a corresponding electromagnetic liquid level relation curve according to the test liquid level information of the test cavity.
It will be appreciated that the electromagnetic fluid level relationship is generated from test electromagnetic information and fluid level information obtained from the test.
The curve test storage module obtains test electromagnetic information output by the electromagnetic liquid level sensor under different scene specifications, and the test liquid level information of the test cavity generates a corresponding electromagnetic liquid level relation curve, and the curve test storage module comprises S131-S134:
S131, a temperature adjusting module and a temperature detecting module are arranged in the test water tank, and the temperature adjusting module is adjusted based on the scene specification, so that the water body of the test water tank detected by the temperature detecting module reaches the temperature corresponding to the scene specification.
In order to change the scene specification, the temperature adjustment module is adjusted by combining the scene specification, so that the water body of the test water tank detected by the temperature detection module reaches the temperature corresponding to the scene specification. For example, the temperature is adjusted to 20 ℃.
S132, the test cavity is a transparent water tank with scales, and the liquid in the test cavity is liquid with preset color.
It should be noted that the test cavity of the present disclosure needs to be a transparent water tank with a scale, where the liquid in the test cavity is a liquid with a preset color, for example, a blue liquid. In this scenario, subsequent image recognition may be performed.
S133, controlling the test pump to work according to a first mode so as to enable the water body in the test cavity to reach a preset reference test liquid level.
After the configuration of the test scene is completed, the test pump can be controlled to work according to the first mode so as to enable the water body in the test cavity to reach the preset reference test liquid level. Wherein the reference test level may be 0 meter, 1 meter, 2 meters, etc. The first mode refers to the fact that the water body in the test cavity is added to the required reference test liquid level, and the electromagnetic quantity is not required to be measured before the water body is added to the reference test liquid level.
And S134, after judging that the reference test liquid level is reached, controlling the test pump to work according to a second mode, and generating a corresponding electromagnetic liquid level relation curve by the curve test storage module based on the test electromagnetic information output by the electromagnetic liquid level sensor and the test liquid level information detected by the liquid level detection module.
During testing, the test pump of the present disclosure can continuously add water in the test water tank into the test cavity, that is, in the second mode, and then the curve test storage module generates a corresponding electromagnetic liquid level relation curve based on the test electromagnetic information output by the electromagnetic liquid level sensor and the test liquid level information detected by the liquid level detection module.
In some embodiments, the curve test storage module generates a corresponding electromagnetic liquid level relation curve based on the test electromagnetic information output by the electromagnetic liquid level sensor and the test liquid level information detected by the liquid level detection module after judging that the reference test liquid level is reached, and the curve test storage module comprises:
the curve test storage module acquires test electromagnetic information output by the electromagnetic liquid level sensor in real time to obtain an electromagnetic information sequence with a time sequence.
It can be understood that, since the test electromagnetic information is measured in real time and has a time sequence relationship, the output test electromagnetic information can be combined to obtain an electromagnetic information sequence with time sequence.
The liquid level detection module comprises an image acquisition device, wherein the image acquisition device acquires cavity images of the test cavity in real time to obtain a cavity image sequence with time sequence, and the cavity images are identified to obtain test liquid level information corresponding to each cavity image.
The liquid level detection module comprises an image acquisition device, namely, liquid level data are identified in real time through image processing. The image acquisition device can acquire cavity images of the test cavity in real time to obtain a cavity image sequence with a time sequence, and then the cavity images are identified to obtain the test liquid level information corresponding to each cavity image. Specific ways of identifying the liquid level are described below.
And the curve test storage module correspondingly processes the electromagnetic information sequence, the test electromagnetic information and the test liquid level information of the corresponding time sequences in the cavity image sequence to generate a corresponding electromagnetic liquid level relation curve.
It can be understood that after the electromagnetic information sequence and the cavity image sequence are obtained, the curve test storage module can combine the obtained data to generate a corresponding electromagnetic liquid level relation curve. Specifically, the data at the same moment can be correspondingly formed into a group of data, and then a plurality of groups of data are combined to generate a corresponding electromagnetic liquid level relation curve.
In the foregoing embodiment, the identifying the cavity image to obtain the test liquid level information corresponding to each cavity image includes:
and taking the pixel value of the color corresponding to the liquid in the cavity image as a first target pixel value, and taking the pixel value of the color corresponding to the scale as a second target pixel value.
In order to identify liquid level data, the present disclosure uses a pixel value of a color corresponding to a liquid as a first target pixel value and uses a pixel value of a color corresponding to a scale as a second target pixel value. It will be appreciated that the test cavity may be pre-calibrated with a plurality of scales, for example 7 meters, 8 meters, 9 meters, etc.
And carrying out coordinate processing on the cavity image, and obtaining first coordinates of all first pixel points corresponding to a first target pixel value, wherein the first target pixel value is an RGB value of a corresponding color of liquid.
The method comprises the steps of carrying out coordinate processing on a cavity image, and obtaining first coordinates of all first pixel points corresponding to a first target pixel value after the coordinate processing. It is understood that the first pixel point is a pixel point corresponding to the liquid, that is, the first target pixel value is an RGB value of the liquid corresponding to the color.
And determining an ordinate maximum value and an abscissa intermediate value in all the first pixel points, generating a corresponding secondary amplification extraction frame based on the ordinate maximum value, and setting the pixel points corresponding to the ordinate maximum value and the abscissa intermediate value as extraction points and the secondary amplification extraction frame in a calibration mode.
Referring to fig. 2, the present disclosure may obtain an ordinate maximum value, an abscissa intermediate value, among all the first pixel points, where the ordinate maximum value represents the highest position of the liquid, and the abscissa intermediate value represents the intermediate position of the liquid level in the lateral direction.
Then, the disclosure may generate a corresponding secondary enlarged extraction frame in combination with the ordinate maximum, where the secondary enlarged extraction frame may be a rectangular frame, and the width of the rectangular frame needs to be greater than the test cavity, so as to collect the scale of the required area on the test cavity.
And taking pixel points corresponding to the ordinate maximum value and the abscissa intermediate value as extraction points and calibrating and setting the extraction frame with the secondary amplification.
In order to position the secondary amplification extraction frame, the disclosure uses pixel points corresponding to the maximum value of the ordinate and the intermediate value of the abscissa as extraction points, namely the intermediate point of the liquid level line, and then the extraction points are used for calibrating and setting the secondary amplification extraction frame. For example, the center point of the secondary enlarged extraction frame may be aligned with the extraction point.
And acquiring an amplified image in the secondary amplified extraction frame, and identifying the amplified image to obtain the test liquid level information corresponding to each cavity image.
The method and the device can obtain the amplified image in the secondary amplified extraction frame, and then the amplified image is identified to obtain the test liquid level information corresponding to each cavity image.
The step of obtaining the amplified image in the secondary amplified extraction frame, and identifying the amplified image to obtain the test liquid level information corresponding to each cavity image comprises the following steps:
and acquiring third coordinates of all third pixel points corresponding to the first target pixel value, and determining the maximum value of the ordinate in all third pixel points.
The third pixel point corresponding to the first target pixel value refers to a third coordinate of the water body in the amplified image. The present disclosure will result in the ordinate maxima in all third pixels. It will be appreciated that the ordinate maxima in all third pixel points correspond to the highest liquid level.
And performing OCR (optical character recognition) on the amplified image to obtain corresponding text information, and acquiring an ordinate section corresponding to each text information.
In order to identify the liquid level, the present disclosure performs OCR recognition on the enlarged image to obtain corresponding text information, where the text information is liquid level information, for example, 7, 8, 9, etc. Meanwhile, an ordinate section corresponding to each text message needs to be acquired.
And comparing the maximum value of the ordinate in the third pixel point with the intermediate value of the ordinate interval to obtain a comparison result, and calculating the test liquid level information corresponding to the cavity image based on the text information determined by the comparison result.
The comparison result of the ordinate maximum value in the third pixel point and the intermediate value of the ordinate interval is obtained, and then the test liquid level information corresponding to the cavity image is obtained through calculation by using the text information corresponding to the comparison result.
Comparing the maximum value of the ordinate in the third pixel point with the intermediate value of the ordinate interval to obtain a comparison result, and calculating test liquid level information corresponding to the cavity image based on text information determined by the comparison result, wherein the method comprises the following steps:
and determining the middle value which is larger than the minimum value in the maximum value of the ordinate as a first middle value in the comparison result, and determining the middle value which is smaller than the maximum value in the maximum value of the ordinate as a second middle value in the comparison result. Firstly, the disclosure can obtain the intermediate value of each ordinate interval, namely the intermediate position of the text information in the longitudinal direction.
And comparing the ordinate maximum value in the third pixel point with the intermediate value of the ordinate interval to obtain a comparison result, and specifically, determining the minimum intermediate value larger than the ordinate maximum value as a first intermediate value, namely, finding the minimum intermediate value which is larger than the liquid level and is closest to the liquid level as the first intermediate value. At the same time, an intermediate value smaller than the largest of the ordinate maxima is determined as a second intermediate value. I.e. find the largest intermediate value that is smaller than the liquid level and closest to the liquid level as the second intermediate value.
And taking the text information corresponding to the second intermediate value as a first basic value, and acquiring a first integer scale value of the text information corresponding to the first intermediate value and a second integer scale value of the text information corresponding to the second intermediate value.
The second intermediate value corresponds to the text information as a first basic value, and the first basic value is 7.5 meters, for example. Meanwhile, a first integer scale value of the text information corresponding to the first intermediate value is obtained, wherein the first integer scale value is 8 meters, for example, and a second integer scale value of the text information corresponding to the second intermediate value is 7 meters, for example.
And acquiring a first scale ordinate and a second scale ordinate which correspond to the first integer scale value and the second integer scale value respectively, acquiring a difference value of the first scale ordinate and the second scale ordinate to obtain a total scale section, and obtaining a dynamic scale section based on the difference value of the maximum value of the ordinate and the second scale ordinate.
The method and the device can obtain a first scale ordinate and a second scale ordinate corresponding to the first integer scale value and the second integer scale value respectively, and then obtain a total scale section by utilizing the difference value of the first scale ordinate and the second scale ordinate, wherein the total scale section is the distance between the first scale ordinate and the second scale ordinate in the enlarged image, and the total scale section is 1cm for example. Meanwhile, the dynamic scale segment is obtained by combining the difference value of the ordinate maximum value and the ordinate of the second scale. The dynamic scale segment is the distance between the liquid level in the magnified image and the ordinate of the second scale.
And multiplying the proportion of the dynamic scale section and the total scale section by the actual section value to obtain a second non-integer value, and adding the first basic value and the second non-integer value to obtain the test liquid level information.
Finally, the present disclosure combines the ratios of the dynamic scale segment and the total scale segment to obtain a duty ratio, and multiplies the duty ratio by the actual segment value to obtain a second non-integer value, where it is understood that the second non-integer value is the non-integer value corresponding to the liquid level. It can be appreciated that the first base value and the second non-integer value are added to obtain the test liquid level information.
It should be noted that, the present disclosure does not use a liquid level sensor to measure a liquid level, but uses image processing to automatically identify the liquid level, because there may be an error in the measurement of the liquid level sensor, and the present scheme is to obtain more accurate data, so as to configure the data of the sensor, and the accuracy of data identification can be improved by accurate identification of the image, so as to improve the measurement accuracy.
In some embodiments, the determining the electromagnetic attribute of the electromagnetic liquid level sensor according to the application scenario of water affair monitoring, obtaining an electromagnetic liquid level relation curve of each water affair measurement point in intelligent water affair based on the electromagnetic attribute and the curve test storage module, wherein each electromagnetic attribute has a pre-trained electromagnetic liquid level relation curve, includes:
And determining a corresponding actual test scene based on the application scene of water affair monitoring to obtain electromagnetic properties corresponding to the parameter specification of the electromagnetic liquid level sensor.
The method and the device can determine the corresponding actual test scene according to the application scene of water affair monitoring, and obtain the electromagnetic attribute of the corresponding electromagnetic liquid level sensor parameter specification.
And acquiring an electromagnetic liquid level relation curve of each water service measurement point in intelligent water service based on the electromagnetic attribute and the curve test storage module, wherein the electromagnetic liquid level relation curve comprises a plurality of electromagnetic liquid level relation curves under different temperature scenes.
And determining an electromagnetic liquid level relation curve under the corresponding temperature scene based on the current temperature of the application scene.
It is understood that the intelligent water service has a plurality of water service measurement points, and the scenes corresponding to different water service measurement points may be different. The electromagnetic liquid level relation curve of each water service measuring point in intelligent water service can be obtained by combining electromagnetic properties and a curve test storage module. The electromagnetic liquid level relation curves can be multiple and respectively correspond to different temperature scenes.
S2, identifying the configured dynamic restriction table to obtain dynamic restriction liquid levels corresponding to each water service measurement point, and converting the dynamic restriction liquid levels based on the electromagnetic liquid level relation curve to obtain corresponding electromagnetic restriction intervals.
The dynamic restriction table may be preconfigured by the configuration end, and the dynamic restriction table has a dynamic restriction liquid level corresponding to each water service measurement point, where the dynamic restriction liquid level may be a liquid level interval. The method and the device can be used for converting the dynamic limit liquid level into a corresponding electromagnetic limit interval by combining an electromagnetic liquid level relation curve.
And S3, loading the electromagnetic limit section into a coordinate system where the electromagnetic liquid level relation curve is located, and obtaining background electromagnetic monitoring data.
The method loads the electromagnetic limit interval into a coordinate system where the electromagnetic liquid level relation curve is located, and background electromagnetic monitoring data are obtained. It will be appreciated that the electromagnetic fluid level relationship curve will have an electromagnetic confinement region configured at the configuration end.
S4, determining a corresponding conversion mode according to the interactive selected information of the water affair measuring points, wherein the conversion mode comprises an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode, and dynamically classifying and measuring the corresponding water affair measuring points based on background electromagnetic monitoring data and conversion modes.
The method and the system can determine corresponding conversion modes by combining interaction selected information of the water affair measuring points, and dynamically classify, measure and process the corresponding water affair measuring points by utilizing background electromagnetic monitoring data and the conversion modes.
The conversion mode comprises an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode. It can be understood that in the smart water scenario, a large number of electromagnetic wave liquid level sensors are connected, and if the data of each electromagnetic wave liquid level sensor is configured to be converted into liquid level data and sent to the background, a data conversion module is required, and the conversion amount is larger, and the data processing amount is larger. In the scheme, only the electromagnetic quantity is measured and then sent to the background.
It is worth mentioning that, because the electromagnetic quantity data is more, when carrying out the show, need not to carry out the simultaneous show to all electromagnetic quantity. It will be appreciated that the active presentation may be required, for example, when there is a need for active presentation by the user. If the electromagnetic quantity is not exceeded, the user does not have the requirement of active display, and at the moment, only the electromagnetic quantity of the analog quantity is needed to be displayed, and the electromagnetic quantity is not needed to be displayed after being converted into the liquid level. By the above way, the data processing amount can be reduced.
In some embodiments, the determining a corresponding conversion mode according to the interactive selected information of the water affair measurement point, where the conversion mode includes an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode, and dynamically classifying and measuring the corresponding water affair measurement point based on the background electromagnetic monitoring data and the conversion mode includes S41-S43:
S41, if any water service measuring point is judged to be selected, determining that the conversion mode of the corresponding water service measuring point is an electromagnetic quantity active conversion mode.
Under the above circumstances, it is stated that the user has a requirement for active display, and at this time, an electromagnetic quantity active conversion mode is required to be utilized to convert the electromagnetic quantity into a liquid level for display to the user.
S42, if any water service measuring point is judged not to be selected, determining that the conversion mode of the corresponding water service measuring point is an electromagnetic quantity passive conversion mode.
Under the condition of the step, the requirement that the user does not have active display is indicated, at the moment, the electromagnetic quantity is required to be utilized in a passive conversion mode, and liquid level conversion display is carried out when the electromagnetic quantity exceeds an electromagnetic limit interval.
S43, background electromagnetic monitoring data of a water service measuring point corresponding to an electromagnetic quantity active conversion mode are obtained, and the electromagnetic liquid level relation curve is converted into corresponding detection liquid level information dynamic display processing.
The background electromagnetic monitoring data of the water service measuring point corresponding to the electromagnetic quantity active conversion mode can be obtained, and then the electromagnetic liquid level relation curve is utilized to convert the background electromagnetic monitoring data into corresponding detection liquid level information for dynamic display processing.
In some embodiments, the determining a corresponding conversion mode according to the interactive selected information of the water affair measurement point, where the conversion mode includes an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode, and dynamically classifying and measuring the corresponding water affair measurement point based on the background electromagnetic monitoring data and the conversion mode includes S44-S45:
S44, obtaining background electromagnetic monitoring data of the water service measuring point corresponding to the electromagnetic quantity passive conversion mode, and placing monitoring electromagnetic information corresponding to the background electromagnetic monitoring data in a corresponding electromagnetic liquid level relation curve.
When the conversion mode is an electromagnetic quantity passive conversion mode, background electromagnetic monitoring data of a water service measuring point corresponding to the electromagnetic quantity passive conversion mode is required to be obtained, and monitoring electromagnetic information corresponding to the background electromagnetic monitoring data is placed in a corresponding electromagnetic liquid level relation curve.
And S45, if the monitored electromagnetic information is judged not to be located in the electromagnetic limit section of the electromagnetic liquid level relation curve, converting the monitored electromagnetic information into corresponding detected liquid level information based on the electromagnetic liquid level relation curve for dynamic display processing.
If the monitored electromagnetic information is judged not to be located in the electromagnetic limit section of the electromagnetic liquid level relation curve, the electromagnetic liquid level relation curve is used for dynamically displaying the monitored electromagnetic information converted into corresponding detected liquid level information, namely, passive conversion is carried out.
In still other embodiments, the present disclosure may further bind the above-mentioned test data with a corresponding electromagnetic liquid level sensor, so as to invoke the corresponding test data to view and trace when a user has a test verification requirement.
The present invention also provides a storage medium having stored therein a computer program for implementing the methods provided by the various embodiments described above when executed by a processor.
The storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). In addition, the ASIC may reside in a user device. The processor and the storage medium may reside as discrete components in a communication device. The storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tape, floppy disk, optical data storage device, etc.
The present invention also provides a program product comprising execution instructions stored in a storage medium. The at least one processor of the device may read the execution instructions from the storage medium, the execution instructions being executed by the at least one processor to cause the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the server, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (10)

1. An electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC is characterized by comprising the following steps:
determining electromagnetic properties of an electromagnetic liquid level sensor according to an application scene of water affair monitoring, and acquiring an electromagnetic liquid level relation curve of each water affair measuring point in intelligent water affair based on the electromagnetic properties and a curve test storage module, wherein each electromagnetic property has a pre-trained electromagnetic liquid level relation curve;
identifying the configured dynamic restriction table to obtain a dynamic restriction liquid level corresponding to each water service measurement point, and converting the dynamic restriction liquid level based on the electromagnetic liquid level relation curve to obtain a corresponding electromagnetic restriction interval;
loading the electromagnetic limit interval into a coordinate system where the electromagnetic liquid level relation curve is located to obtain background electromagnetic monitoring data;
and determining a corresponding conversion mode according to the interactive selected information of the water affair measuring points, wherein the conversion mode comprises an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode, and dynamically classifying, measuring and processing the corresponding water affair measuring points based on background electromagnetic monitoring data and the conversion mode.
2. The electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC according to claim 1, wherein,
The electromagnetic liquid level relation curve of the water service measurement point corresponding to each electromagnetic attribute is obtained through the following steps:
an actual test scene of a pipeline corresponding to each water service measurement point is pre-constructed, and the actual test scene corresponds to scene specifications of an electromagnetic liquid level sensor and parameter specifications of the electromagnetic liquid level sensor installed in an application scene of water service monitoring;
the electromagnetic liquid level sensor is used for monitoring the liquid level in the test cavity;
and changing the scene specification, and acquiring test electromagnetic information output by the electromagnetic liquid level sensor under different scene specifications by using a curve test storage module, and generating a corresponding electromagnetic liquid level relation curve by using the test liquid level information of the test cavity.
3. The electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC according to claim 2, wherein,
the curve test storage module obtains test electromagnetic information output by the electromagnetic liquid level sensor under different scene specifications, and the test liquid level information of the test cavity generates a corresponding electromagnetic liquid level relation curve, and the curve test storage module comprises:
The temperature adjusting module is adjusted based on the scene specification, so that the water body of the test cavity detected by the temperature detecting module reaches the temperature corresponding to the scene specification;
the test cavity is a transparent water tank with scales, and the liquid in the test cavity is liquid with preset color;
controlling the test pump to work according to a first mode so as to enable the water body in the test cavity to reach a preset reference test liquid level;
and after judging that the reference test liquid level is reached, controlling the test pump to work according to a second mode, and generating a corresponding electromagnetic liquid level relation curve by the curve test storage module based on the test electromagnetic information output by the electromagnetic liquid level sensor and the test liquid level information detected by the liquid level detection module.
4. The electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC according to claim 3, wherein,
after judging that the reference test liquid level is reached, controlling the test pump to work according to a second mode, generating a corresponding electromagnetic liquid level relation curve by the curve test storage module based on test electromagnetic information output by the electromagnetic liquid level sensor and test liquid level information detected by the liquid level detection module, wherein the curve test storage module comprises the following components:
The curve test storage module acquires test electromagnetic information output by the electromagnetic liquid level sensor in real time to obtain an electromagnetic information sequence with a time sequence;
the liquid level detection module comprises an image acquisition device, wherein the image acquisition device acquires cavity images of a test cavity in real time to obtain a cavity image sequence with a time sequence, and identifies the cavity images to obtain test liquid level information corresponding to each cavity image;
and the curve test storage module correspondingly processes the electromagnetic information sequence, the test electromagnetic information and the test liquid level information of the corresponding time sequences in the cavity image sequence to generate a corresponding electromagnetic liquid level relation curve.
5. The method for dynamically measuring electromagnetic wave liquid level based on intelligent water service PLC according to claim 4, wherein,
the step of identifying the cavity images to obtain the test liquid level information corresponding to each cavity image comprises the following steps:
taking the pixel value of the color corresponding to the liquid in the cavity image as a first target pixel value, and taking the pixel value of the color corresponding to the scale as a second target pixel value;
carrying out coordinate processing on the cavity image, and obtaining first coordinates of all first pixel points corresponding to a first target pixel value, wherein the first target pixel value is an RGB value of a corresponding color of liquid;
Determining an ordinate maximum value and an abscissa intermediate value in all the first pixel points, generating a corresponding secondary amplification extraction frame based on the ordinate maximum value, and setting the pixel points corresponding to the ordinate maximum value and the abscissa intermediate value as extraction points and the secondary amplification extraction frame in a calibration mode;
and acquiring an amplified image in the secondary amplified extraction frame, and identifying the amplified image to obtain the test liquid level information corresponding to each cavity image.
6. The method for dynamically measuring electromagnetic wave liquid level based on intelligent water service PLC according to claim 5, wherein,
the obtaining the amplified image in the secondary amplified extraction frame, and identifying the amplified image to obtain the test liquid level information corresponding to each cavity image comprises the following steps:
acquiring third coordinates of all third pixel points corresponding to the first target pixel value, and determining the maximum value of the ordinate in all third pixel points;
performing OCR (optical character recognition) on the amplified image to obtain corresponding text information, and acquiring a ordinate section corresponding to each text information;
and comparing the maximum value of the ordinate in the third pixel point with the intermediate value of the ordinate interval to obtain a comparison result, and calculating the test liquid level information corresponding to the cavity image based on the text information determined by the comparison result.
7. The method for dynamically measuring electromagnetic wave liquid level based on intelligent water service PLC according to claim 6, wherein,
comparing the maximum value of the ordinate in the third pixel point with the intermediate value of the ordinate interval to obtain a comparison result, and calculating test liquid level information corresponding to the cavity image based on the text information determined by the comparison result, wherein the method comprises the following steps:
determining a middle value which is larger than the minimum value in the maximum value of the ordinate in the comparison result as a first middle value, and determining a middle value which is smaller than the maximum value in the maximum value of the ordinate in the comparison result as a second middle value;
taking the text information corresponding to the second intermediate value as a first basic value, and acquiring a first integer scale value of the text information corresponding to the first intermediate value and a second integer scale value of the text information corresponding to the second intermediate value;
acquiring a first scale ordinate and a second scale ordinate which correspond to a first integer scale value and a second integer scale value respectively, acquiring a difference value of the first scale ordinate and the second scale ordinate to obtain a total scale section, and obtaining a dynamic scale section based on the difference value of the maximum value of the ordinate and the second scale ordinate;
and multiplying the proportion of the dynamic scale section and the total scale section by the actual section value to obtain a second non-integer value, and adding the first basic value and the second non-integer value to obtain the test liquid level information.
8. The electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC according to claim 3, wherein,
the electromagnetic property of the electromagnetic liquid level sensor is determined according to the application scene of water affair monitoring, an electromagnetic liquid level relation curve of each water affair measuring point in intelligent water affair is obtained based on the electromagnetic property and a curve test storage module, and each electromagnetic property has a pre-trained electromagnetic liquid level relation curve and comprises the following steps:
determining a corresponding actual test scene based on the application scene of water affair monitoring to obtain electromagnetic properties corresponding to the parameter specification of the electromagnetic liquid level sensor;
acquiring an electromagnetic liquid level relation curve of each water service measurement point in intelligent water service based on electromagnetic properties and a curve test storage module, wherein the electromagnetic liquid level relation curve comprises a plurality of electromagnetic liquid level relation curves under different temperature scenes;
and determining an electromagnetic liquid level relation curve under the corresponding temperature scene based on the current temperature of the application scene.
9. The method for dynamically measuring electromagnetic wave liquid level based on intelligent water service PLC according to claim 8, wherein,
the method for determining the corresponding conversion mode according to the interactive selected information of the water affair measuring points comprises an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode, dynamically classifying and measuring the corresponding water affair measuring points based on background electromagnetic monitoring data and conversion modes, and comprises the following steps:
If any water service measuring point is selected, determining that the conversion mode of the corresponding water service measuring point is an electromagnetic quantity active conversion mode;
if any water service measuring point is not selected, determining that the conversion mode of the corresponding water service measuring point is an electromagnetic quantity passive conversion mode;
and acquiring background electromagnetic monitoring data of a water service measurement point corresponding to an electromagnetic quantity active conversion mode, and converting the background electromagnetic monitoring data into corresponding detection liquid level information based on the electromagnetic liquid level relation curve for dynamic display processing.
10. The method for dynamically measuring electromagnetic wave liquid level based on intelligent water service PLC according to claim 9, wherein,
the method for determining the corresponding conversion mode according to the interactive selected information of the water affair measuring points comprises an electromagnetic quantity active conversion mode and an electromagnetic quantity passive conversion mode, dynamically classifying and measuring the corresponding water affair measuring points based on background electromagnetic monitoring data and conversion modes, and comprises the following steps:
obtaining background electromagnetic monitoring data of a water service measurement point corresponding to an electromagnetic quantity passive conversion mode, and placing monitoring electromagnetic information corresponding to the background electromagnetic monitoring data in a corresponding electromagnetic liquid level relation curve;
And if the monitored electromagnetic information is judged not to be positioned in the electromagnetic limit section of the electromagnetic liquid level relation curve, converting the monitored electromagnetic information into corresponding detected liquid level information based on the electromagnetic liquid level relation curve for dynamic display processing.
CN202410097029.XA 2024-01-24 2024-01-24 Electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC Active CN117606587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410097029.XA CN117606587B (en) 2024-01-24 2024-01-24 Electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410097029.XA CN117606587B (en) 2024-01-24 2024-01-24 Electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC

Publications (2)

Publication Number Publication Date
CN117606587A true CN117606587A (en) 2024-02-27
CN117606587B CN117606587B (en) 2024-04-02

Family

ID=89944733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410097029.XA Active CN117606587B (en) 2024-01-24 2024-01-24 Electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC

Country Status (1)

Country Link
CN (1) CN117606587B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117804575A (en) * 2024-02-29 2024-04-02 熊猫智慧水务有限公司 Intelligent water affair measuring method and system suitable for SIS

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102798434A (en) * 2011-05-27 2012-11-28 Vega格里沙贝两合公司 Evaluation device and method for determining a characteristic variable for the position of a boundary surface in a container
RU2473056C1 (en) * 2011-08-30 2013-01-20 Учреждение Российской академии наук Институт проблем управления им. В.А. Трапезникова РАН Method of determining level of liquid in container
CN109419315A (en) * 2018-03-28 2019-03-05 佛山市顺德区美的电热电器制造有限公司 Liquid overflow detection method and device, cookware, electromagnetic heating component
CN110823315A (en) * 2019-12-12 2020-02-21 深圳市腾盛精密装备股份有限公司 Non-contact high-precision liquid level detection system and detection method thereof
CN112508374A (en) * 2020-11-27 2021-03-16 熊猫智慧水务有限公司 Peak regulation control method and device based on water use curve
CN112581077A (en) * 2020-12-04 2021-03-30 贵州昱清浩瑞科技有限公司 Intelligent water affair management platform
CN112857514A (en) * 2021-01-27 2021-05-28 广东智源机器人科技有限公司 Liquid level detection method, device and system and electronic equipment
CN114895060A (en) * 2022-04-21 2022-08-12 中山大学 Municipal drainage pipeline flow speed and flow intelligent assessment method and system
CN116543540A (en) * 2023-05-04 2023-08-04 贵州新思维科技有限责任公司 Online intelligent monitoring and sensing system and sensing method for pool liquid level based on Internet of things
CN117437519A (en) * 2023-11-06 2024-01-23 北京市智慧水务发展研究院 Water level identification method and device for water-free ruler

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102798434A (en) * 2011-05-27 2012-11-28 Vega格里沙贝两合公司 Evaluation device and method for determining a characteristic variable for the position of a boundary surface in a container
RU2473056C1 (en) * 2011-08-30 2013-01-20 Учреждение Российской академии наук Институт проблем управления им. В.А. Трапезникова РАН Method of determining level of liquid in container
CN109419315A (en) * 2018-03-28 2019-03-05 佛山市顺德区美的电热电器制造有限公司 Liquid overflow detection method and device, cookware, electromagnetic heating component
CN110823315A (en) * 2019-12-12 2020-02-21 深圳市腾盛精密装备股份有限公司 Non-contact high-precision liquid level detection system and detection method thereof
CN112508374A (en) * 2020-11-27 2021-03-16 熊猫智慧水务有限公司 Peak regulation control method and device based on water use curve
CN112581077A (en) * 2020-12-04 2021-03-30 贵州昱清浩瑞科技有限公司 Intelligent water affair management platform
CN112857514A (en) * 2021-01-27 2021-05-28 广东智源机器人科技有限公司 Liquid level detection method, device and system and electronic equipment
CN114895060A (en) * 2022-04-21 2022-08-12 中山大学 Municipal drainage pipeline flow speed and flow intelligent assessment method and system
CN116543540A (en) * 2023-05-04 2023-08-04 贵州新思维科技有限责任公司 Online intelligent monitoring and sensing system and sensing method for pool liquid level based on Internet of things
CN117437519A (en) * 2023-11-06 2024-01-23 北京市智慧水务发展研究院 Water level identification method and device for water-free ruler

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
卫开夏等: ""非满管电磁流量计液位测量方法研究"", 《传感技术学报》, vol. 21, no. 12, 31 December 2008 (2008-12-31), pages 2106 - 2110 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117804575A (en) * 2024-02-29 2024-04-02 熊猫智慧水务有限公司 Intelligent water affair measuring method and system suitable for SIS
CN117804575B (en) * 2024-02-29 2024-05-03 熊猫智慧水务有限公司 Intelligent water affair measuring method and system suitable for SIS

Also Published As

Publication number Publication date
CN117606587B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN117606587B (en) Electromagnetic wave liquid level dynamic measurement method based on intelligent water service PLC
Zheng et al. A robust and automatic recognition system of analog instruments in power system by using computer vision
JP7228585B2 (en) Method and apparatus for making analytical measurements
CN107478382B (en) Automatic detection device and detection method for pressure instrument
CN111372005B (en) Automatic exposure compensation method and system for TOF camera module
US20110127256A1 (en) Method and circuit for automatic calibration of the power of electromagnetic oven
CN112864037A (en) Wafer measuring method, device, medium and electronic equipment
CN113065538A (en) Pressure sensor detection method, device and equipment based on image recognition
CN115047322B (en) Method and system for identifying fault chip of intelligent medical equipment
CN105303511A (en) Image processing apparatus and light source identification method
CN109374697A (en) A kind of batch scaling method of electrochemistry formaldehyde sensor detection
CN105021220A (en) Pointer type instrument calibration method, system and device thereof
CN115063342A (en) Lens dead pixel detection method and device, electronic equipment and storage medium
US8333876B2 (en) Ion concentration measurement system and methods thereof
CN113776787A (en) Screen uniformity testing method and system of virtual reality equipment and related device
CN111912974B (en) Immune reagent calibration method
US20100303306A1 (en) Method and system for measuring text-rendering quality
CN110007068B (en) Urine leakage detection method
CN115588196A (en) Pointer type instrument reading method and device based on machine vision
CN115035481A (en) Image object distance fusion method, device, equipment and storage medium
US7961931B2 (en) Positioning measurement apparatus and method
CN114111846A (en) Compensation method and device suitable for Hall sensor and storage medium
CN112365833A (en) Method for detecting and correcting brightness adjustment value of light sensation under screen
CN111579102A (en) Body temperature reporting management method based on APP module
CN106713907A (en) Display HDR image display performance evaluation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant