A method, system, device, and medium for processing gas data in a diaphragm gas meter.
By acquiring the characters and interval lengths of the diaphragm gas meter, calculating the central angle and rotation volume, and combining this with machine vision to identify boundary information, the problem of inaccurate gas compensation at the beginning or end of the diaphragm gas meter was solved, thus improving the accuracy of gas metering.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2026-04-03
AI Technical Summary
Existing diaphragm gas meters do not accurately measure the gas compensation amount at the beginning or end of use, resulting in low gas metering accuracy.
By obtaining the character length and character interval length of the diaphragm gas meter, the central angle of the character circle and the central angle of the character interval are determined, the rotation volume and the character interval compensation amount are calculated, and the compensation gas amount is calculated by combining the boundary information identified by machine vision.
It enables accurate measurement of the gas compensation amount at the beginning or end of the diaphragm gas meter, thus improving the accuracy of gas metering.
Smart Images

Figure CN116295692B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of gas technology, and in particular to a gas data processing method, system, device, and medium for a diaphragm gas meter. Background Technology
[0002] Diaphragm gas meters are the primary devices for measuring residential gas consumption. They use digits to count and display gas usage. The internal size of a diaphragm gas meter is fixed. For every unit increase in gas consumption, the digit count increments by one, thus recording the gas volume. The digit counting is achieved through an encoder. When the digit rotates to a specific position, the encoder recognizes one revolution and increments the count by one.
[0003] Currently, diaphragm gas meters can measure gas volume using character recognition technology on the digit wheel. However, because the characters on the digit wheel of a diaphragm gas meter have a certain length and there are certain intervals between the characters, the existing metering method cannot accurately measure the gas compensation amount at the beginning or end of the use of the diaphragm gas meter, resulting in low accuracy.
[0004] Therefore, the problems existing in the current technology still need to be solved and optimized. Summary of the Invention
[0005] The purpose of this invention is to at least partially solve one of the technical problems existing in the related art.
[0006] Therefore, one objective of this invention is to provide a gas data processing method for a diaphragm gas meter, which can accurately measure the gas compensation amount at the beginning or end of the diaphragm gas meter, thereby improving the accuracy of gas metering.
[0007] Another objective of this application is to provide a gas data processing system for a diaphragm gas meter.
[0008] To achieve the above-mentioned technical objectives, the technical solutions adopted in the embodiments of this application include:
[0009] In a first aspect, embodiments of this application provide a gas data processing method for a diaphragm gas meter, including:
[0010] Obtain the character length and character interval length of the diaphragm gas meter, and determine the character central angle and character interval central angle of the diaphragm gas meter based on the character length and character interval length;
[0011] Obtain the rotation volume of the diaphragm gas meter, and determine the character interval compensation amount of the diaphragm gas meter based on the rotation volume and the central angle of the character interval.
[0012] Determine the metering time and the diameter of the digit wheel of the diaphragm gas meter;
[0013] The boundary information and boundary distance of the diaphragm gas meter are obtained based on the metering time, wherein the boundary distance is used to characterize the perpendicular distance between the boundary line in the boundary information of the diaphragm gas meter and the center line of the field of view.
[0014] The compensation gas quantity of the diaphragm gas meter is determined based on the character interval compensation amount, the digit wheel diameter, the rotation volume, and the boundary distance.
[0015] In addition, the gas data processing method according to the above embodiments of this application may also have the following additional technical features:
[0016] Furthermore, in one embodiment of this application, determining the metering time of the diaphragm gas meter includes:
[0017] A first metering time and a second metering time are determined for the diaphragm gas meter, wherein the first metering time is used to characterize the time when the diaphragm gas meter begins metering, and the second metering time is used to characterize the time when the diaphragm gas meter ends metering.
[0018] Furthermore, in one embodiment of this application, obtaining the boundary information and boundary distance of the diaphragm gas meter based on the metering time includes:
[0019] The boundary information of the diaphragm gas meter at the first metering moment is identified using machine vision recognition technology.
[0020] If the boundary information is an upper boundary, obtain the first boundary distance, wherein the first boundary distance is used to characterize the vertical distance between the upper boundary line of the diaphragm gas meter and the center line of the field of view at the first metering time;
[0021] Alternatively, if the boundary information is the lower boundary, obtain the second boundary distance, wherein the second boundary distance is used to characterize the vertical distance between the lower boundary line of the diaphragm gas meter and the center line of the field of view at the first metering time;
[0022] as well as,
[0023] The boundary information of the diaphragm gas meter at the second metering moment is identified using machine vision recognition technology.
[0024] If the boundary information is an upper boundary, obtain the third boundary distance, wherein the third boundary distance is used to characterize the vertical distance between the upper boundary line of the diaphragm gas meter and the center line of the field of view at the second metering time.
[0025] Alternatively, if the boundary information is the lower boundary, a fourth boundary distance is obtained, wherein the fourth boundary distance is used to characterize the vertical distance between the lower boundary line of the diaphragm gas meter and the center line of the field of view at the second metering time.
[0026] Furthermore, in one embodiment of this application, before the step of determining the compensated gas quantity of the diaphragm gas meter based on the character interval compensation amount, the digit wheel diameter, the rotation volume, and the boundary distance, the gas data processing method further includes:
[0027] The first boundary compensation information at the first metering time is determined based on the boundary information at the first metering time, wherein the first boundary compensation information is used to characterize the upper boundary compensation amount or lower boundary compensation amount that the diaphragm gas meter needs to measure at the first metering time.
[0028] The second boundary compensation information at the second metering time is determined based on the boundary information at the second metering time. The second boundary compensation information is used to characterize the upper boundary compensation amount or lower boundary compensation amount that the diaphragm gas meter needs to measure at the second metering time.
[0029] Furthermore, in one embodiment of this application, the upper boundary compensation amount is obtained by the following formula:
[0030]
[0031] The lower boundary compensation amount is obtained by the following formula:
[0032]
[0033] Wherein, V is the rotational volume, and D is the diameter of the character wheel; The number of characters at the upper boundary. The distance is either the first boundary distance or the third boundary distance; The lower boundary compensation amount, The central angle of the character, The distance is either the second boundary distance or the fourth boundary distance.
[0034] Furthermore, in one embodiment of this application, the character spacing compensation amount is obtained by the following formula:
[0035]
[0036] in, V is the character spacing compensation amount, and V is the rotation volume. The central angle of the character spacing circle.
[0037] Furthermore, in one embodiment of this application, determining the compensation gas quantity of the diaphragm gas meter includes:
[0038] Obtain the boundary compensation amount at the first metering time and the boundary compensation amount at the second metering time;
[0039] The boundary compensation amount at the first metering time and the boundary compensation amount at the second metering time are added together to obtain the compensated gas amount of the diaphragm gas meter.
[0040] Secondly, embodiments of this application provide a gas data processing system for a diaphragm gas meter, comprising:
[0041] The first acquisition module is used to acquire the character length and character interval length of the diaphragm gas meter, and determine the character central angle and character interval central angle of the diaphragm gas meter based on the character length and the character interval length.
[0042] The second acquisition module is used to acquire the rotation volume of the diaphragm gas meter and determine the character interval compensation amount of the diaphragm gas meter based on the rotation volume and the character interval central angle.
[0043] The first determining module is used to determine the metering time and the diameter of the digit wheel of the diaphragm gas meter;
[0044] The third acquisition module is used to acquire the boundary information and boundary distance of the diaphragm gas meter according to the metering time, wherein the boundary distance is used to characterize the perpendicular distance between the boundary line in the boundary information of the diaphragm gas meter and the center line of the field of view.
[0045] The second determining module is used to determine the compensation gas quantity of the diaphragm gas meter based on the character interval compensation amount, the character wheel diameter, the rotation volume, and the boundary distance.
[0046] Thirdly, embodiments of this application also provide a gas data processing device for a diaphragm gas meter, comprising:
[0047] At least one processor;
[0048] At least one memory for storing at least one program;
[0049] When the at least one program is executed by the at least one processor, the at least one processor implements the gas data processing method for a diaphragm gas meter described in the first aspect above.
[0050] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a processor-executable program, which, when executed by the processor, is used to implement the gas data processing method for a diaphragm gas meter described in the first aspect.
[0051] The advantages and beneficial effects of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application:
[0052] This application discloses a gas data processing method, system, device, and medium for a diaphragm gas meter. The method involves: acquiring the character length and character interval length of the diaphragm gas meter; determining the central angle of the character circle and the central angle of the character interval based on the character length and character interval length; acquiring the rotational volume of the diaphragm gas meter; determining the character interval compensation amount based on the rotational volume and the central angle of the character interval; determining the metering time and the diameter of the digit wheel of the diaphragm gas meter; acquiring the boundary information and boundary distance of the diaphragm gas meter based on the metering time, wherein the boundary distance characterizes the perpendicular distance between the boundary line in the boundary information of the diaphragm gas meter and the center line of the field of view; and determining the compensated gas quantity of the diaphragm gas meter based on the character interval compensation amount, the diameter of the digit wheel, the rotational volume, and the boundary distance. This gas data processing method can accurately measure the gas compensation amount of the diaphragm gas meter at the beginning or end, improving the accuracy of gas metering. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following description is provided with accompanying drawings of the relevant technical solutions in the embodiments of this application or the prior art. It should be understood that the accompanying drawings described below are only for the purpose of clearly illustrating some embodiments of the technical solutions in this application. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0054] Figure 1 A schematic flowchart illustrating a gas data processing method for a diaphragm gas meter provided in this application embodiment;
[0055] Figure 2 A schematic diagram of the structure of a gas data processing system for a diaphragm gas meter provided in this application embodiment;
[0056] Figure 3 This is a schematic diagram of the structure of a gas data processing device for a diaphragm gas meter provided in an embodiment of this application. Detailed Implementation
[0057] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application. The step numbers in the following embodiments are set only for ease of explanation, and there is no limitation on the order between the steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.
[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0059] Currently, diaphragm gas meters can measure gas volume using character recognition technology on the digit wheel. However, because the characters on the digit wheel of a diaphragm gas meter have a certain length and there are certain intervals between the characters, the existing metering method cannot accurately measure the gas compensation amount at the beginning or end of the use of the diaphragm gas meter, resulting in low accuracy.
[0060] In view of this, embodiments of the present invention provide a gas data processing method for a diaphragm gas meter, which can accurately measure the gas compensation amount at the beginning or end of the diaphragm gas meter, thereby improving the accuracy of gas metering.
[0061] Reference Figure 1 In this embodiment of the application, a gas data processing method for a diaphragm gas meter includes:
[0062] Step 110: Obtain the character length and character interval length of the diaphragm gas meter, and determine the character central angle and character interval central angle of the diaphragm gas meter based on the character length and character interval length;
[0063] In this step, the diaphragm gas meter has ten characters on its dial: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Each character is the same size, and the spacing between them is uniform. Specifically, the central angle of each character... It can be derived from the following formula:
[0064]
[0065] Character spacing center angle It can be derived from the following formula:
[0066]
[0067] Among them, the central angle of the character And the central angle of the character spacing In the two formulas For character length, Character spacing length, character central angle The central angle of a single character on the character wheel, and the central angle of the character spacing. The central angle of the character interval on the character wheel.
[0068] Step 120: Obtain the rotation volume of the diaphragm gas meter, and determine the character interval compensation amount of the diaphragm gas meter based on the rotation volume and the character interval central angle.
[0069] The character spacing compensation amount is obtained by the following formula:
[0070]
[0071] in, V is the character spacing compensation amount, and V is the rotation volume. The central angle of the character spacing circle.
[0072] In this step, the rotation volume is the volume of gas passing through the diaphragm gas meter during one revolution of the digit wheel. Specifically, the rotation volume can be derived from the standard parameters of the diaphragm gas meter. It is understandable that when a digit on the diaphragm gas meter rotates to the next digit, it needs to pass through a character interval area, which has a certain length. Although the length of this character interval area is small, due to the inherent characteristics of the diaphragm gas meter, the reading at the beginning or end of gas usage measurement will ignore the gas usage within the character interval area.
[0073] Step 130: Determine the metering time and the diameter of the digit wheel of the diaphragm gas meter;
[0074] Specifically, in some embodiments, step 130 may include:
[0075] Step 131: Determine the first metering time and the second metering time of the diaphragm gas meter, wherein the first metering time is used to characterize the time when the diaphragm gas meter starts metering, and the second metering time is used to characterize the time when the diaphragm gas meter ends metering.
[0076] In this embodiment, the diameter of the digit wheel can be directly determined from the parameters of the diaphragm gas meter. The diaphragm gas meter has a first measurement time and a second measurement time. The first measurement time is the time when the diaphragm gas meter begins measurement, and the second measurement time is the time when the diaphragm gas meter ends measurement. Because the diaphragm gas meter displays the user's gas consumption based on the digit wheel, each digit has two adjacent digit intervals, and the user's gas consumption varies each time, the starting position of the reading at the first measurement time and the starting position of the reading at the second measurement time often change.
[0077] Step 140: Obtain the boundary information and boundary distance of the diaphragm gas meter according to the metering time, wherein the boundary distance is used to characterize the perpendicular distance between the boundary line in the boundary information of the diaphragm gas meter and the center line of the field of view;
[0078] Specifically, in some embodiments, step 140 may include:
[0079] Step 141: Identify the boundary information of the diaphragm gas meter at the first metering moment using machine vision recognition technology;
[0080] Step 142: If the boundary information is an upper boundary, obtain the first boundary distance, wherein the first boundary distance is used to characterize the vertical distance between the upper boundary line of the diaphragm gas meter and the center line of the field of view at the first metering time.
[0081] Step 143, or, if the boundary information is the lower boundary, obtain the second boundary distance, wherein the second boundary distance is used to characterize the vertical distance between the lower boundary line of the diaphragm gas meter and the center line of the field of view at the first metering time;
[0082] as well as,
[0083] Step 144: Identify the boundary information of the diaphragm gas meter at the second metering time using machine vision recognition technology;
[0084] Step 145: If the boundary information is an upper boundary, obtain the third boundary distance, wherein the third boundary distance is used to characterize the vertical distance between the upper boundary line of the diaphragm gas meter and the center line of the field of view at the second metering time.
[0085] Step 146, or, if the boundary information is the lower boundary, obtain the fourth boundary distance, wherein the fourth boundary distance is used to characterize the vertical distance between the lower boundary line of the diaphragm gas meter and the center line of the field of view at the second metering time.
[0086] In this embodiment, the boundary information and boundary distance of the diaphragm gas meter can be obtained based on the metering time. Specifically, the boundary information of the diaphragm gas meter at the first metering time and the boundary information of the diaphragm gas meter at the second metering time can be identified using machine vision recognition technology. Furthermore, when using machine vision recognition technology to identify boundary information, it is necessary to ensure that the camera acquiring the image information of the diaphragm gas meter remains relatively stable with respect to the diaphragm gas meter, avoiding relative displacement to ensure the accuracy of the identified information.
[0087] It is understandable that, since each user's gas consumption varies, the location of the boundary between the characters and the character spacing area is not fixed at the first metering moment when the diaphragm gas meter begins metering. When the boundary between the characters and the character spacing area is above the center line of the field of view, the boundary between the characters and the character spacing area is the upper boundary; when the boundary between the characters and the character spacing area is below the center line of the field of view, the boundary between the characters and the character spacing area is the lower boundary. It is also understood that, in this embodiment, the center line of the field of view can be the horizontal bisector of the display area of the diaphragm gas meter. The boundary information of the diaphragm gas meter at the second metering moment is similar to the aforementioned content, and will not be repeated here.
[0088] Step 160: Determine the first boundary compensation information at the first metering time based on the boundary information at the first metering time, wherein the first boundary compensation information is used to characterize the upper boundary compensation amount or lower boundary compensation amount that the diaphragm gas meter needs to measure at the first metering time.
[0089] Step 161: Determine the second boundary compensation information at the second metering time based on the boundary information at the second metering time, wherein the second boundary compensation information is used to characterize the upper boundary compensation amount or lower boundary compensation amount that the diaphragm gas meter needs to measure at the second metering time.
[0090] The upper boundary compensation amount is obtained by the following formula:
[0091]
[0092] The lower boundary compensation amount is obtained by the following formula:
[0093]
[0094] Wherein, V is the rotational volume, and D is the diameter of the character wheel; The number of characters at the upper boundary. The distance is either the first boundary distance or the third boundary distance; The lower boundary compensation amount, The central angle of the character, The distance is either the second boundary distance or the fourth boundary distance.
[0095] It is understandable that the boundary information at the first metering moment can determine the location of the boundary between the characters and the character intervals. Based on this boundary, the upper or lower boundary compensation amount that the diaphragm gas meter needs to measure at the first metering moment can be obtained. It is also understandable that at the first metering moment, when the boundary information is the upper boundary, the upper boundary compensation amount that the diaphragm gas meter needs to measure is the character compensation amount; when the boundary information is the lower boundary at the first metering moment, the lower boundary compensation amount that the diaphragm gas meter needs to measure is the character compensation amount. The relevant content regarding the upper or lower boundary compensation amount at the second metering moment is similar, and will not be elaborated further here.
[0096] Step 150: Determine the compensated gas quantity of the diaphragm gas meter based on the character interval compensation amount, the diameter of the character wheel, the rotation volume, and the boundary distance.
[0097] Specifically, in some embodiments, step 150 may include:
[0098] Step 151: Obtain the boundary compensation amount at the first measurement time and the boundary compensation amount at the second measurement time;
[0099] Step 152: Add the boundary compensation amount at the first metering time and the boundary compensation amount at the second metering time to obtain the compensated gas amount of the diaphragm gas meter.
[0100] It is understood that, in the embodiments of this application, the compensated gas quantity of the diaphragm gas meter may include the character compensation quantity and the character interval compensation quantity at the metering time. Specifically, the compensated gas quantity of the diaphragm gas meter includes the boundary compensation quantity at the first metering time and the boundary compensation quantity at the second metering time; the boundary compensation quantity at the first metering time includes the character interval compensation quantity and the character compensation quantity, the character compensation quantity being the upper boundary compensation quantity or lower boundary compensation quantity determined based on the first boundary compensation information; the boundary compensation quantity at the second metering time is similarly calculated, and will not be elaborated further here. It is also understood that the character compensation quantity at the first metering time is determined by the digit wheel diameter, rotation volume, and first boundary distance, and the character compensation quantity at the second metering time is determined by the digit wheel diameter, rotation volume, and second boundary distance. It is also understood that, after obtaining the compensated gas quantity of the diaphragm gas meter, the gas flow of the diaphragm gas meter at the first metering time or the second metering time can be compensated based on the obtained compensated gas quantity, thereby improving the accuracy of gas metering.
[0101] The following describes in detail, with reference to the accompanying drawings, a gas data processing system for a diaphragm gas meter according to an embodiment of this application.
[0102] Reference Figure 2 The gas data processing system for a diaphragm gas meter proposed in this application includes:
[0103] The first acquisition module 101 is used to acquire the character length and character interval length of the diaphragm gas meter, and determine the character central angle and character interval central angle of the diaphragm gas meter based on the character length and the character interval length.
[0104] The second acquisition module 102 is used to acquire the rotation volume of the diaphragm gas meter and determine the character interval compensation amount of the diaphragm gas meter based on the rotation volume and the character interval central angle.
[0105] The first determining module 103 is used to determine the metering time and the diameter of the digit wheel of the diaphragm gas meter;
[0106] The third acquisition module 104 is used to acquire the boundary information and boundary distance of the diaphragm gas meter according to the metering time, wherein the boundary distance is used to characterize the perpendicular distance between the boundary line in the boundary information of the diaphragm gas meter and the center line of the field of view.
[0107] The second determining module 105 is used to determine the compensation gas quantity of the diaphragm gas meter based on the character interval compensation amount, the character wheel diameter, the rotation volume, and the boundary distance.
[0108] It is understood that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0109] Reference Figure 3 This application also provides a gas data processing device for a diaphragm gas meter, comprising:
[0110] At least one processor 201;
[0111] At least one memory 202 is used to store at least one program;
[0112] When the at least one program is executed by the at least one processor 201, the at least one processor 201 implements the above-described embodiment of a gas data processing method.
[0113] Similarly, it can be understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0114] This application also provides a computer-readable storage medium storing a program executable by a processor 201, which, when executed by the processor 201, is used to implement the above-described embodiment of a gas data processing method.
[0115] Similarly, the content of the above method embodiments is applicable to the present computer-readable storage medium embodiments. The specific functions implemented by the present computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0116] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this application are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.
[0117] Furthermore, although this application is described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding this application. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of conventional technology for an engineer. Therefore, those skilled in the art can implement the application set forth in the claims using ordinary techniques without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of this application, which is determined by the full scope of the appended claims and their equivalents.
[0118] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0119] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0120] More specific examples (a non-exhaustive list) of computer-readable media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0121] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0122] In the foregoing description of this specification, the references to terms such as "one embodiment," "another embodiment," or "some embodiments," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0123] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
[0124] The above is a detailed description of the preferred embodiments of this application, but this application is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application, and these equivalent modifications or substitutions are all included within the scope defined by the claims of this application.
Claims
1. A method for processing gas data in a diaphragm gas meter, characterized in that, include: Obtain the character length and character interval length of the diaphragm gas meter, and determine the character central angle and character interval central angle of the diaphragm gas meter based on the character length and character interval length; Obtain the rotation volume of the diaphragm gas meter, and determine the character interval compensation amount of the diaphragm gas meter based on the rotation volume and the central angle of the character interval. Determine the metering time and the diameter of the digit wheel of the diaphragm gas meter; The boundary information and boundary distance of the diaphragm gas meter are obtained based on the metering time. The compensation gas quantity of the diaphragm gas meter is determined based on the character interval compensation amount, the digit wheel diameter, the rotation volume, and the boundary distance. The step of determining the metering time of the diaphragm gas meter includes: A first metering time and a second metering time are determined for the diaphragm gas meter, wherein the first metering time is used to characterize the time when the diaphragm gas meter begins metering, and the second metering time is used to characterize the time when the diaphragm gas meter ends metering. The step of obtaining the boundary information and boundary distance of the diaphragm gas meter based on the metering time includes: The boundary information of the diaphragm gas meter at the first metering moment is identified using machine vision recognition technology. If the boundary information is an upper boundary, obtain the first boundary distance, wherein the first boundary distance is used to characterize the vertical distance between the upper boundary line of the diaphragm gas meter and the center line of the field of view at the first metering time; Alternatively, if the boundary information is the lower boundary, obtain the second boundary distance, wherein the second boundary distance is used to characterize the vertical distance between the lower boundary line of the diaphragm gas meter and the center line of the field of view at the first metering time; as well as, The boundary information of the diaphragm gas meter at the second metering moment is identified using machine vision recognition technology. If the boundary information is an upper boundary, obtain the third boundary distance, wherein the third boundary distance is used to characterize the vertical distance between the upper boundary line of the diaphragm gas meter and the center line of the field of view at the second metering time. Alternatively, if the boundary information is the lower boundary, a fourth boundary distance is obtained, wherein the fourth boundary distance is used to characterize the vertical distance between the lower boundary line of the diaphragm gas meter and the center line of the field of view at the second metering time; when the boundary between the characters and the character spacing area is above the center line of the field of view, the boundary between the characters and the character spacing area is the upper boundary; when the boundary between the characters and the character spacing area is below the center line of the field of view, the boundary between the characters and the character spacing area is the lower boundary.
2. The gas data processing method according to claim 1, characterized in that, Before the step of determining the compensated gas quantity of the diaphragm gas meter based on the character interval compensation amount, the digit wheel diameter, the rotation volume, and the boundary distance, the gas data processing method further includes: The first boundary compensation information at the first metering time is determined based on the boundary information at the first metering time, wherein the first boundary compensation information is used to characterize the upper boundary compensation amount or lower boundary compensation amount that the diaphragm gas meter needs to measure at the first metering time. The second boundary compensation information at the second metering time is determined based on the boundary information at the second metering time. The second boundary compensation information is used to characterize the upper boundary compensation amount or lower boundary compensation amount that the diaphragm gas meter needs to measure at the second metering time.
3. The gas data processing method according to claim 2, characterized in that, The upper boundary compensation amount is obtained by the following formula: The lower boundary compensation amount is obtained by the following formula: Wherein, V is the rotational volume, and D is the diameter of the character wheel; This is the compensation amount for the upper boundary. The distance is either the first boundary distance or the third boundary distance; The lower boundary compensation amount, The central angle of the character. It is the second boundary distance or the fourth boundary distance.
4. The gas data processing method according to claim 1, characterized in that, The character spacing compensation amount is obtained by the following formula: in, V is the character spacing compensation amount, and V is the rotation volume. The central angle of the character spacing circle.
5. The gas data processing method according to claim 3, characterized in that, Determining the compensation gas quantity of the diaphragm gas meter includes: Obtain the boundary compensation amount at the first metering time and the boundary compensation amount at the second metering time; The boundary compensation amount at the first metering time and the boundary compensation amount at the second metering time are added together to obtain the compensated gas amount of the diaphragm gas meter. Wherein, the boundary compensation amount at the first measurement time includes the character interval compensation amount and the first character compensation amount, wherein the first character compensation amount is the upper boundary compensation amount or the lower boundary compensation amount determined according to the first boundary compensation information; the boundary compensation amount at the second measurement time includes the character interval compensation amount and the second character compensation amount, wherein the second character compensation amount is the upper boundary compensation amount or the lower boundary compensation amount determined according to the second boundary compensation information.
6. A gas data processing system for a diaphragm gas meter, characterized in that, include: The first acquisition module is used to acquire the character length and character interval length of the diaphragm gas meter, and determine the character central angle and character interval central angle of the diaphragm gas meter based on the character length and the character interval length. The second acquisition module is used to acquire the rotation volume of the diaphragm gas meter and determine the character interval compensation amount of the diaphragm gas meter based on the rotation volume and the character interval central angle. The first determining module is used to determine the metering time and the diameter of the digit wheel of the diaphragm gas meter; The third acquisition module is used to acquire the boundary information and boundary distance of the diaphragm gas meter based on the metering time. The second determining module is used to determine the compensation gas quantity of the diaphragm gas meter based on the character interval compensation amount, the character wheel diameter, the rotation volume, and the boundary distance. Determining the metering time of the diaphragm gas meter includes: A first metering time and a second metering time are determined for the diaphragm gas meter, wherein the first metering time is used to characterize the time when the diaphragm gas meter begins metering, and the second metering time is used to characterize the time when the diaphragm gas meter ends metering. The step of obtaining the boundary information and boundary distance of the diaphragm gas meter based on the metering time includes: The boundary information of the diaphragm gas meter at the first metering moment is identified using machine vision recognition technology. If the boundary information is an upper boundary, obtain the first boundary distance, wherein the first boundary distance is used to characterize the vertical distance between the upper boundary line of the diaphragm gas meter and the center line of the field of view at the first metering time; Alternatively, if the boundary information is the lower boundary, obtain the second boundary distance, wherein the second boundary distance is used to characterize the vertical distance between the lower boundary line of the diaphragm gas meter and the center line of the field of view at the first metering time; as well as, The boundary information of the diaphragm gas meter at the second metering moment is identified using machine vision recognition technology. If the boundary information is an upper boundary, obtain the third boundary distance, wherein the third boundary distance is used to characterize the vertical distance between the upper boundary line of the diaphragm gas meter and the center line of the field of view at the second metering time. Alternatively, if the boundary information is the lower boundary, a fourth boundary distance is obtained, wherein the fourth boundary distance is used to characterize the vertical distance between the lower boundary line of the diaphragm gas meter and the center line of the field of view at the second metering time; when the boundary between the characters and the character spacing area is above the center line of the field of view, the boundary between the characters and the character spacing area is the upper boundary; when the boundary between the characters and the character spacing area is below the center line of the field of view, the boundary between the characters and the character spacing area is the lower boundary.
7. A gas data processing device for a diaphragm gas meter, characterized in that, include: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements a gas data processing method for a diaphragm gas meter as described in any one of claims 1-5.
8. A computer-readable storage medium storing a processor-executable program, characterized in that, The program executable by the processor, when executed by the processor, is used to implement a gas data processing method for a diaphragm gas meter as described in any one of claims 1-5.
Citation Information
Patent Citations
Image direct-read method for character barcode computation indicated character wheel
CN101059364A
Water meter image angle correction and accurate positioning method
CN114140795A