A method and system for identifying electrical meter readings
By illuminating the electrical meter dial with preset light to generate a light and dark color map, identifying the pointer reflection pattern and the starting point reflection pattern, and constructing a baseline to calculate the reading, the problem of inaccurate readings caused by damage or blurring of the electrical meter dial is solved, and reading recognition with high accuracy and stability is achieved.
Patent Information
- Application Number
- CN202210091298.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2042-01-26
AI Technical Summary
Existing electrical meter dials are easily damaged, leading to inaccurate readings. Furthermore, broken glass or oxidation of the data can cause the dial to become blurred, making it difficult to accurately read the data using current methods.
The electrical meter panel is illuminated with preset light by the transmission and acquisition module to generate a brightness and darkness color map. The image generation module is used to identify the pointer reflection pattern and the starting point reflection pattern to construct a baseline. The electrical meter reading is then calculated based on OpenCV.
It enables accurate reading identification even when the electrical meter dial is damaged or blurred, improving the accuracy and stability of readings and reducing the workload of manual inspection.
Smart Images

Figure CN114581896B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of electrical meter readings, and more particularly to a method and system for identifying electrical meter readings. Background Technology
[0002] In recent years, the continuous development of the economy and the increasing demand for electricity have led to unstable power supply. As a result, the country has been building substations to meet the power supply needs of people's daily lives. However, with the increase in the number of substations, the requirements for daily inspection work have also increased. The workload of personnel is too heavy, and the requirements for the precision of the work have increased. In addition, it is not difficult to find that due to the long-term operation of equipment, especially the dials of electrical meters, they are very easy to be damaged. For example, the glass is broken, the data on the dial is unclear, and the data on the dial is oxidized due to the long-term use of electrical meters. As a result, the existing methods and manual inspections cannot accurately read the data. Summary of the Invention
[0003] The purpose of this section is to outline some aspects of embodiments of the present invention and to briefly describe some preferred embodiments. Simplifications or omissions may be made in this section, as well as in the abstract and title of this application, to avoid obscuring the purpose of these documents; however, such simplifications or omissions should not be construed as limiting the scope of the invention.
[0004] In view of the aforementioned existing problems, the present invention is proposed.
[0005] Therefore, the present invention provides a method and system for identifying electrical meter readings, which can avoid the problem of inaccurate readings caused by (1) blurred electrical meter dials;
[0006] (2) To avoid problems such as glass breakage of electrical meters leading to dial oxidation and water ingress.
[0007] To solve the above-mentioned technical problems, the present invention provides the following technical solution: including: irradiating the electrical meter panel with preset light through a transmission and acquisition module to obtain the reflected light from the electrical meter panel, and collecting the reflected light from the electrical meter panel;
[0008] The image generation module receives the reflected light from the electrical meter panel, generates a light and dark color map of the electrical meter, and obtains the pointer reflection pattern and the starting point reflection pattern based on the light and dark color map of the electrical meter.
[0009] The reading calculation module constructs a first baseline and a second baseline based on the pointer reflection pattern and the starting point reflection pattern. Angles are identified based on OpenCV, the first baseline, and the second baseline. The reading of the electrical meter is obtained by calculating the radians based on the angles and the length of the first baseline.
[0010] As a preferred embodiment of the electrical meter reading identification method of the present invention, the transmission and acquisition module includes a transmission unit and an acquisition unit;
[0011] The transmitting unit illuminates the electrical meter dial with a preset light, and then the collecting unit collects the reflected light from the electrical meter dial.
[0012] As a preferred embodiment of the electrical meter reading identification method of the present invention, the preset light includes: the light intensity of the preset light is greater than A, and the light angle is B.
[0013] In a preferred embodiment of the electrical meter reading identification method of the present invention, the first reference line includes: the center of the pointer reflection pattern is set as the first reference point, the starting point reflection pattern is set as the second reference point, the first reference point and the second reference point are connected to form the first reference line, and the first reference line and the second reference line intersect.
[0014] In a preferred embodiment of the electrical meter reading identification method of the present invention, the second reference line includes: the fingertip of the pointer reflection pattern is set as the third reference point, the first reference point and the third reference point are connected to form the second reference line, and the second reference line is within the pointer reflection pattern.
[0015] As a preferred embodiment of the electrical meter reading identification method of the present invention, it includes: the first reference line and the second reference line intersect and form an included angle θ.
[0016] As a preferred embodiment of the electrical meter reading identification method of the present invention, the identification angle includes: setting three reference points in the image based on OpenCV and connecting them to form a first reference line and a second reference line, the intersection of the first reference line and the second reference line is the origin of the coordinate system, the first reference line is the x-axis of the coordinate system, and the angle θ between the x-axis and the second reference line is obtained.
[0017] In a preferred embodiment of the electrical meter reading identification method of the present invention, the electrical meter reading D includes:
[0018]
[0019] Where L is the length of the first baseline, θ is the angle between the x-axis and the second baseline, and l is the arc length corresponding to one scale division.
[0020] As a preferred embodiment of the electrical meter reading recognition system of the present invention, it includes: a transmission and acquisition module for transmitting preset light and acquiring reflected light from the electrical meter panel; an image generation module connected to the transmission and reception module for receiving the reflected light from the electrical meter panel and generating a brightness and darkness map of the electrical meter; and a reading calculation module connected to the image generation module for calculating the electrical meter reading based on the brightness and darkness map of the electrical meter.
[0021] In a preferred embodiment of the electrical meter reading identification system of the present invention, the transmission and acquisition module includes a transmission unit and an acquisition unit; the transmission unit is used to irradiate the electrical meter panel with preset light; the acquisition unit is connected to the transmission unit and is used to acquire the reflected light from the electrical meter panel.
[0022] The beneficial effects of the present invention are as follows: The present invention can accurately identify whether the electrical meter dial is damaged based on the light and dark color map of the electrical meter, and can accurately obtain the reading of the electrical meter without relying on the dial reading. Attached Figure Description
[0023] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0024] Figure 1 This is a flowchart of the electrical meter reading identification method according to the first embodiment of the present invention;
[0025] Figure 2 This is a diagram illustrating the calculation of electrical meter readings in the electrical meter reading identification method described in the first embodiment of the present invention.
[0026] Figure 3 This is a schematic diagram of the electrical meter reading identification system according to the first embodiment of the present invention. Detailed Implementation
[0027] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.
[0028] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0029] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0030] This invention is described in detail with reference to the schematic diagrams. When detailing the embodiments of this invention, for ease of explanation, the cross-sectional views illustrating the device structure may be partially enlarged, not adhering to the usual scale. Furthermore, the schematic diagrams are merely examples and should not be construed as limiting the scope of protection of this invention. In actual fabrication, the three-dimensional spatial dimensions of length, width, and depth should be included.
[0031] Furthermore, in the description of this invention, it should be noted that the terms "upper," "lower," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. These terms are used solely for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. In addition, the terms "first," "second," or "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0032] Unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" in this invention should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; similarly, they can refer to mechanical connections, electrical connections, or direct connections, or indirect connections through an intermediate medium, or internal connections between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0033] Example 1
[0034] Reference Figures 1-2 This is the first embodiment of the present invention, which provides a method for identifying electrical meter readings, including:
[0035] S1: The transmitting and acquiring module 100 illuminates the electrical meter panel with preset light, obtains the reflected light from the electrical meter panel, and collects the reflected light from the electrical meter panel.
[0036] The emission and acquisition module 100 presets the light intensity to be greater than A and the light angle to be B.
[0037] Preferably, the present invention emits preset light through an emission and acquisition module and identifies the object by collecting the reflected light. Unlike traditional solutions, it does not require supplemental lighting for different situations; it is sufficient to ensure that the emitted light is strong enough.
[0038] S2: The image generation module 200 receives the reflected light from the electrical meter panel, generates a brightness and darkness map of the electrical meter, and obtains the pointer reflection pattern and the starting point reflection pattern based on the brightness and darkness map of the electrical meter.
[0039] Reference Figure 1 The image generation module 200 obtains the brightness and darkness image of the electrical meter based on the reflected light collected from the electrical meter panel; wherein, the brightness and darkness image of the electrical meter includes: pointer reflection pattern and starting point reflection pattern.
[0040] Preferably, the present invention identifies the pointer reflection pattern and the starting point reflection pattern by utilizing the different materials of the pointer and the starting point, which result in different degrees of reflectivity, thus making the method somewhat universal.
[0041] S3: The reading calculation module 300 constructs a first baseline and a second baseline based on the pointer reflection pattern and the starting point reflection pattern. It identifies the angle based on OpenCV, the first baseline, and the second baseline, and calculates the radian based on the angle and the length of the first baseline to obtain the electrical meter reading.
[0042] (1)Reference Figure 2 The first baseline includes: the center of the pointer reflection pattern is set as the first baseline point, the starting point reflection pattern is set as the second baseline point, the first baseline point and the second baseline point are connected to form the first baseline, and the first baseline and the second baseline intersect.
[0043] (2) The second baseline includes: the fingertip of the pointer reflection pattern is set as the third baseline point, the first baseline point and the third baseline point are connected to form the second baseline, and the second baseline is inside the pointer reflection pattern; the second baseline can be verified by the center point of the bottom edge of the triangular pointer reflection pattern.
[0044] (3) The first and second baselines intersect and form an angle θ, such as Figure 2 As shown.
[0045] The code for the part where the first and second baselines intersect and form an angle θ is shown below:
[0046]
[0047] (4) The recognition angle includes: Based on OpenCV, three reference points are set in the image: the center of the reflection pattern, the starting point of the reflection pattern, and the fingertip of the reflection pattern. A line is drawn to form the first reference line and the second reference line. The second reference line is verified by the center point of the bottom edge of the reflection pattern through the triangle pointer. The intersection of the first reference line and the second reference line is the origin of the coordinate system. The first reference line is the x-axis of the coordinate system. The angle θ between the x-axis and the second reference line is obtained.
[0048] (5) The reading D of the electrical meter is:
[0049]
[0050] Where L is the length of the first baseline, θ is the angle between the x-axis and the second baseline, and l is the arc length corresponding to one scale division.
[0051] Preferably, the present invention constructs a first baseline and a second baseline, and obtains the arc length traced by the pointer of the electrical meter by establishing a coordinate system, thereby obtaining the corresponding reading. The arc length calculation makes the method universal, and at the same time, the center point of the base of the triangle is added as a verification point, which increases the robustness of the present invention. If there are special cases, such as the upper part of the pointer breaking, the corresponding electrical meter reading can still be obtained through the verification point.
[0052] Example 2
[0053] Reference Figure 3 This is a second embodiment of the present invention, which differs from the first embodiment in that it provides an electrical meter reading identification system, including...
[0054] The transmission and acquisition module 100 is used to transmit preset light and acquire reflected light from the electrical meter panel. The transmission and acquisition module 100 includes a transmission unit 101 and an acquisition unit 102. The transmission unit 101 is used to irradiate the electrical meter panel with preset light A at an angle of B. The acquisition unit 102 is connected to the transmission unit 101 and is used to acquire the reflected light from the electrical meter panel.
[0055] The image generation module 200, connected to the transmitting and receiving module 100, is used to receive reflected light from the electrical meter panel and generate a brightness and darkness map of the electrical meter; the reading calculation module 300, connected to the image generation module 200, is used to calculate the electrical meter reading based on the brightness and darkness map of the electrical meter; wherein, the brightness and darkness map of the electrical meter includes: pointer reflection pattern and starting point reflection pattern, and the electrical meter reading is calculated based on the pointer reflection pattern and the starting point reflection pattern.
[0056] Example 3
[0057] To verify and illustrate the technical effects of this method, this embodiment selects traditional image processing methods and uses this method for comparative testing. The experimental results are compared using scientific demonstration methods to verify the real effect of this method.
[0058] Traditional technical solutions simply capture images of electrical meters for reading recognition. However, due to factors such as ambient light, oxidation of the meter dial, and broken upper pointers, readings can be inaccurate and inefficient. To verify that this method has a higher accuracy rate than traditional methods, this embodiment will use both traditional image processing methods and this method to measure and compare the accuracy of electrical meter readings in real time.
[0059] Test Environment: Twenty electrical meters were used as test samples, and tests were conducted using both traditional image processing methods and this method. In the brightness and darkness image of the electrical meters under a light intensity of 25000 LUX, it is clear that the higher the light intensity, the clearer the brightness and darkness image of the electrical meters; therefore, a light intensity greater than 25000 LUX is preferred. The traditional image processing method uses conventional image processing techniques to obtain the position of the dial and pointer, and then calculates the angle to obtain the reading. An automated testing device was activated, and the simulation test of this method was implemented using MATLAB software. The simulation data obtained from the experimental results are shown in the table below.
[0060] Table 1: Comparison of reading accuracy between this method and the traditional method.
[0061]
[0062] As can be seen, the accuracy of this method is significantly higher than that of traditional image processing methods, and the recognition is stable.
[0063] It should be recognized that embodiments of the present invention can be implemented or carried out by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable storage medium. The method can be implemented using standard programming techniques—including a non-transitory computer-readable storage medium configured with a computer program, wherein such a storage medium causes the computer to operate in a specific and predefined manner—according to the methods and drawings described in the specific embodiments. Each program can be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system. However, if desired, the program can be implemented in assembly or machine language. In any case, the language can be a compiled or interpreted language. Furthermore, for this purpose, the program can run on a programmed application-specific integrated circuit (ASIC).
[0064] Furthermore, the procedures described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by the context. The procedures described herein (or variations and / or combinations thereof) may be executed under the control of one or more computer systems configured with executable instructions, and may be implemented by hardware or a combination thereof as code (e.g., executable instructions, one or more computer programs, or one or more applications) that commonly executes on one or more processors. The computer program comprises a plurality of instructions executable by one or more processors.
[0065] Furthermore, the method can be implemented in any suitable type of computing platform, including but not limited to personal computers, minicomputers, mainframes, workstations, networked or distributed computing environments, standalone or integrated computer platforms, or in communication with charged particle tools or other imaging devices, etc. Aspects of the invention can be implemented as machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and / or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the processes described herein. Furthermore, the machine-readable code, or portions thereof, can be transmitted via wired or wireless networks. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media comprises instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. When programmed according to the methods and techniques described herein, the invention also includes the computer itself. A computer program can be applied to input data to perform the functions described herein, thereby transforming the input data to generate output data stored in non-volatile memory. The output information can also be applied to one or more output devices such as a display. In a preferred embodiment of the invention, the converted data represents physical and tangible objects, including specific visual depictions of physical and tangible objects generated on a display.
[0066] As used herein, the terms “component,” “module,” “system,” etc., are intended to refer to a computer-related entity, which may be hardware, firmware, a combination of hardware and software, software, or running software. For example, a component may be, but is not limited to, a process running on a processor, a processor, an object, an executable file, a running thread, a program, and / or a computer. As an example, an application running on a computing device and the computing device itself can both be components. One or more components may reside in a running process and / or thread, and components may be located in a single computer and / or distributed among two or more computers. Furthermore, these components are capable of execution from various computer-readable media having various data structures thereon. These components may communicate locally and / or remotely via signals, such as based on one or more data packets (e.g., data from a component that interacts with a local system, another component in a distributed system, and / or signals that interact with other systems via a network such as the Internet).
[0067] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A method for identifying electrical meter readings, characterized in that: include: The electrical meter panel is illuminated with a preset light by the transmission and acquisition module (100) to obtain the reflected light from the electrical meter panel, and the reflected light from the electrical meter panel is collected. The image generation module (200) receives the reflected light from the electrical meter panel, generates a light and dark color map of the electrical meter, and obtains the pointer reflection pattern and the starting point reflection pattern based on the light and dark color map of the electrical meter. The reading calculation module (300) constructs a first baseline and a second baseline based on the pointer reflection pattern and the starting point reflection pattern. Based on OpenCV, the first baseline and the second baseline identify the angle. The reading of the electrical meter is obtained by calculating the radian based on the angle and the length of the first baseline. The first baseline includes: the center of the pointer reflection pattern is set as the first baseline point, the starting point reflection pattern is set as the second baseline point, the first baseline point and the second baseline point are connected to form the first baseline, and the first baseline and the second baseline intersect. The second reference line includes: the fingertip of the pointer reflection pattern is set as the third reference point, the first reference point and the third reference point are connected to form the second reference line, and the second reference line is within the pointer reflection pattern; Electrical meter readings D include: Where L is the length of the first baseline, θ is the angle between the x-axis and the second baseline, and l is the arc length corresponding to one scale division.
2. The method for identifying electrical meter readings as described in claim 1, characterized in that: The transmission and acquisition module (100) includes a transmission unit (101) and an acquisition unit (102); The transmitting unit (101) illuminates the electrical meter dial with a preset light, and then the collecting unit (102) collects the reflected light from the electrical meter dial.
3. The electrical meter reading identification method as described in claim 2, characterized in that: The preset light includes: the light intensity of the preset light is greater than A, and the light angle is B.
4. The method for identifying electrical meter readings as described in any one of claims 3, characterized in that: include: The first baseline and the second baseline intersect and form an angle θ.
5. The method for identifying electrical meter readings as described in claim 4, characterized in that: The angle recognition method includes: based on OpenCV, setting three reference points in the image and connecting them to form a first reference line and a second reference line. The intersection of the first reference line and the second reference line is the origin of the coordinate system, and the first reference line is the x-axis of the coordinate system. The angle θ between the x-axis and the second reference line is obtained.
6. An electrical meter reading identification system, employing the electrical meter reading identification method as described in any one of claims 1 to 5, characterized in that: include: The transmission and acquisition module (100) is used to transmit preset light and acquire reflected light from the electrical meter panel; The image generation module (200) is connected to the transmission acquisition module (100) and is used to receive the reflected light from the electrical meter panel and generate a light and dark color image of the electrical meter. The reading calculation module (300) is connected to the image generation module (200) and is used to calculate the reading of the electrical meter based on the brightness and darkness of the electrical meter.
7. The electrical meter reading identification system as described in claim 6, characterized in that: The transmission and acquisition module (100) includes a transmission unit (101) and an acquisition unit (102); The transmitting unit (101) is used to illuminate the dial of an electrical meter with a preset light; The acquisition unit (102) is connected to the transmitting unit (101) and is used to acquire the reflected light from the electrical meter panel.
Citation Information
Patent Citations
Meter reading identification method and system
CN108182433A