Meter key point identification model construction method, meter reading method and related devices
Through the construction of the key point identification model of the meter and the training of the yolov8-pose network model, the problems of low meter reading efficiency and susceptibility to environmental influences in the existing technology are solved, and higher reading accuracy and stability are achieved.
Patent Information
- Application Number
- CN202410670748.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-23
AI Technical Summary
Existing meter reading methods are inefficient and susceptible to environmental factors, resulting in unstable readings. It is especially difficult to identify under different lighting, angles, postures and occlusion conditions, and it is easy to introduce errors.
Using the meter key point identification model construction method, by obtaining and labeling meter image samples, using the yolov8-pose network model training, the optimal meter key point identification model is obtained, and meter reading is performed based on important parameters to reduce the risk of environmental factors. Influence.
It improves the accuracy and stability of meter reading, reduces errors, can effectively identify key points of the meter under different environmental conditions, and improves the reliability of readings.
Smart Images

Figure CN118537846A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of meter reading, and is a method for constructing a key point recognition model of a meter, a meter reading method and related devices. Background Art
[0002] It is very important to read various meters such as barometers, ammeters, and thermometers. Existing meter reading methods include manual reading and automatic reading. The two existing methods have the following problems:
[0003] (1) The manual reading method is inefficient, has a long reading cycle, and may cause harm to workers in some special environments;
[0004] (2) Existing automatic reading mostly adopts the traditional method of reading meters based on visual detection. Traditional visual detection is to extract contours, skeletons, fitting straight lines and other traditional algorithms to complete meter recognition. This method is affected by factors such as lighting conditions, lens quality, lens dirt, camera fixation and environmental noise. It is difficult to recognize meter images under different lighting, angles and postures, and it is difficult to recognize under harsh conditions such as partial occlusion, blurred imaging and image tilt. It is easy to introduce errors and cause unstable readings. Summary of the invention
[0005] The present invention provides a method for constructing a meter key point recognition model, a meter reading method and related devices, which overcome the shortcomings of the above-mentioned prior art and can effectively solve the problems that the existing method of meter reading based on visual detection is greatly affected by the environment, easily introduces errors and causes unstable readings.
[0006] One of the technical solutions of the present invention is achieved by the following measures: A method for constructing a key point identification model of a meter, comprising:
[0007] A number of samples are obtained, and the samples are divided into a training sample set and a test sample set in proportion, wherein each of the number of samples includes a meter image and annotations of important parameters in the image, wherein the important parameters include a meter category, a meter scale key point, a pointer key point, and a circle center key point;
[0008] The yolov8-pose network model is trained using the training sample set and the test sample set to obtain the optimal meter key point recognition model.
[0009] The following are further optimizations and / or improvements to the above technical solutions:
[0010] The above-mentioned samples include:
[0011] Obtain several meter images collected at various fixed points in the substation under different environments, and each meter image must contain a complete instrument dial;
[0012] Use the labelme annotation tool to annotate the important parameters in each meter image, and save the annotation information of each meter image in the corresponding json file. The important parameters include meter category, meter scale key points, pointer key points and circle center key points.
[0013] Calling the sample amplification tool library to amplify the sample;
[0014] Convert the json file corresponding to each meter image in the sample into a yolo file.
[0015] The above training sample set and test sample set are used to train the yolov8-pose network model to obtain the optimal meter key point recognition model, including:
[0016] Input the training sample set into the yolov8-pose network model for training, and output the meter key point recognition model;
[0017] The key point recognition model is verified using the verification sample set, and the verification results are evaluated based on the loss function;
[0018] In response to the evaluation result being unqualified, the various parameters of the key point recognition model of the meter are reversely adjusted, and the training sample set is reused for training;
[0019] In response to the evaluation result being qualified, the meter key point recognition model is tested using the test sample set. In response to the test result being qualified, the meter key point recognition model is the optimal meter key point recognition model. Otherwise, the various parameters of the meter key point recognition model are adjusted in reverse, and the training sample set is reused for training.
[0020] The second technical solution of the present invention is achieved by the following measures: a meter reading method, comprising:
[0021] Acquire an image of a meter to be identified;
[0022] Input the meter image to be identified into the meter key point recognition model, and output important parameters, wherein the important parameters include meter category, meter scale key point, pointer key point and circle center key point;
[0023] Meter reading based on important parameters.
[0024] The following are further optimizations and / or improvements to the above technical solutions:
[0025] The above-mentioned meter reading is based on important parameters, including:
[0026] Match the corresponding dial scale information and range information according to the meter type;
[0027] Determine a nearest scale key point on both sides of the pointer key point, and sort them from small to large according to the distance between them and the pointer key point, namely the first scale key point and the second scale key point;
[0028] Calculate the angles between the pointer key point and the first scale key point and the second scale key point, which are the first angle and the second angle respectively;
[0029] Determine the ratio of the first angle to the second angle, and add the ratio to the scale value of the first scale point as the pointer reading.
[0030] The obtaining of the first angle and the second angle includes:
[0031] Determine the scale starting point according to the dial scale information;
[0032] Construct the general equation of the line based on the scale starting point and the key point of the circle center;
[0033] Substitute the pointer key point into the general equation of the straight line and determine whether the solution of the equation is less than 0;
[0034] In response to this, the angles between the pointer key point and the first scale key point and the second scale key point are calculated using a vector angle method as the first angle and the second angle;
[0035] In response to no, the angles between the pointer key point and the first scale key point and the second scale key point are calculated using the vector angle method, and then 360° is subtracted from the first scale key point and the second scale key point to obtain the first angle and the second angle.
[0036] The third technical solution of the present invention is achieved by the following measures: a device for constructing a key point recognition model of a meter, comprising:
[0037] A sample acquisition unit, which acquires a number of samples and divides them into a training sample set and a test sample set in proportion, wherein each of the number of samples includes a meter image and annotations of important parameters in the image, wherein the important parameters include meter category, meter scale key points, pointer key points and circle center key points;
[0038] The training unit trains the yolov8-pose network model using the training sample set and the test sample set to obtain the optimal meter key point recognition model.
[0039] The fourth technical solution of the present invention is achieved by the following measures: a meter reading device, comprising:
[0040] A data acquisition unit, which acquires an image of a meter to be identified;
[0041] an identification unit, inputting the meter image to be identified into a meter key point identification model, and outputting important parameters, wherein the important parameters include meter category, meter scale key points, pointer key points and circle center key points, and the meter key point identification model is constructed by using the meter key point identification model construction method according to any one of claims 1 to 3;
[0042] Meter reading unit reads the meter based on important parameters.
[0043] The following are further optimizations and / or improvements to the above technical solutions:
[0044] The above-mentioned meter reading unit comprises:
[0045] A mapping module matches the corresponding dial scale information and range information according to the meter type;
[0046] The scale key point determination module determines a nearest scale key point on both sides of the pointer key point, and sorts them from small to large according to the distance between them and the pointer key point, which are the first scale key point and the second scale key point respectively;
[0047] An angle calculation module calculates the angles between the pointer key point and the first scale key point and the second scale key point, which are the first angle and the second angle respectively;
[0048] The reading module determines the ratio of the first angle to the second angle, and adds the ratio to the scale value of the first scale point as the pointer reading.
[0049] The present invention utilizes a meter key point recognition model to identify important parameters, determines a nearest scale key point on both sides of a pointer key point, respectively calculates the angles between the pointer key point and a first scale key point and a second scale key point as the first angle and the second angle, determines the ratio of the first angle to the second angle, and adds the ratio to the scale value of the first scale point as the pointer reading. Compared with the existing traditional visual detection, the present invention can effectively extract important features of the meter image, effectively reduce the influence of environmental factors, and make the meter reading more accurate. In addition, the present embodiment takes into account the angle range (0, 2π) of the meter scale, and further reduces the meter reading error. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Attached Figure 1 The present invention is a flow chart of the method for constructing a key point identification model for a meter.
[0051] Attached Figure 2 The figure is a flow chart of a method for obtaining several samples in the present invention.
[0052] Attached Figure 3 The present invention is a flow chart of the meter reading method.
[0053] Attached Figure 4 The present invention is a flow chart of the method for meter reading.
[0054] Attached Figure 5 The flowchart of the method for calculating the angle between the pointer key point and the key point in the present invention.
[0055] Attached Figure 6 The figure is a schematic diagram of the key point position of a pointer according to the present invention.
[0056] Attached Figure 7 This is another schematic diagram of the position of key points of a pointer according to the present invention.
[0057] Attached Figure 8 The figure is a schematic diagram of the structure of the key point recognition model building device of the present invention.
[0058] Attached Fig. 9 It is a schematic diagram of the structure of the meter reading device of the present invention. DETAILED DESCRIPTION
[0059] The present invention is not limited by the following embodiments, and specific implementation methods can be determined based on the technical solution of the present invention and actual conditions.
[0060] The present invention will be further described below in conjunction with embodiments and drawings:
[0061] Embodiment 1: As attached Figure 1 As shown, an embodiment of the present invention discloses a method for constructing a key point recognition model of a meter, comprising:
[0062] Step S110, obtaining a plurality of samples and dividing them into a training sample set and a test sample set in proportion, wherein each of the plurality of samples includes a meter image and annotations of important parameters in the image, wherein the important parameters include meter category, meter scale key points, pointer key points and circle center key points.
[0063] As attached Figure 2 As shown, the above steps specifically include:
[0064] Step S111, obtaining a number of meter images collected at various fixed points in the substation under different environments, and each meter image must have a complete instrument dial;
[0065] In this step, after obtaining several meter images collected in different environments at various fixed points in the substation, they need to be screened and preprocessed. The screening includes removing meter images without instrument dials or incomplete instrument dials, removing unclear meter images, etc. The preprocessing includes filtering, sharpening, cropping, etc., so that the final samples are convenient for training the model and improving the recognition accuracy of the model.
[0066] Step S112, using the labelme annotation tool to annotate important parameters in each meter image, and save the annotation information of each meter image in a corresponding json file, wherein the important parameters include meter category, meter scale key points, pointer key points, and circle center key points;
[0067] In this step, important parameters are labeled so that the positions of these key points can be identified and predicted when training the model. In this embodiment, the labelme labeling tool can be used for labeling. Different meter categories can be divided in the labeling, and important parameters of meters of the same category can be labeled at the same time, and the digital range can be recorded while marking.
[0068] Step S113, calling the sample amplification tool library to amplify the sample;
[0069] The sample augmentation tool library used in this step includes rotation, sharpening, gamma transformation, brightness increase
[0070] Step S114, converting the json file corresponding to each meter image in the sample into a yolo file.
[0071] In this step, when converting, it is necessary to determine the maximum number of key points in all meter images, filter out meter images with less than the maximum number of key points, and fill [0,0,0] for the representation method where the key points do not exist. The first two digits are the x,y position information of the image, and the last digit is the visibility parameter of the key point, 0 means invisible, 1 means occluded, and 2 means visible. The occluded key point is [x,y,1], and the visible key point is [x,y,2]. The key point filling and sample format conversion are performed in the above manner.
[0072] Step S120, training the yolov8-pose network model using the training sample set and the test sample set to obtain an optimal meter key point recognition model.
[0073] The above steps specifically include:
[0074] (1) Input the training sample set into the yolov8-pose network model for training, and output the meter key point recognition model;
[0075] (2) Use the validation sample set to validate the key point recognition model and evaluate the validation results based on the loss function;
[0076] (3) in response to the evaluation result being unqualified, the parameters of the key point recognition model of the meter are adjusted in reverse, and the training sample set is re-used for training;
[0077] (4) In response to the evaluation result being qualified, the meter key point recognition model is tested using the test sample set. In response to the test result being qualified, the meter key point recognition model is the optimal meter key point recognition model. Otherwise, the various parameters of the meter key point recognition model are adjusted in reverse, and the training sample set is used again for training.
[0078] The present invention discloses a method for constructing a key point recognition model for a meter. On the basis of marking important parameters of a meter image, a Yolov8-pose network model is trained. The Yolov8-pose network model is a key point detection algorithm based on deep learning. A convolutional neural network is used to extract features of an image, and then the position of the key point is predicted by a regression algorithm. Compared with the traditional key point detection method, the Yolov8-pose network model has the characteristics of fast speed, high precision and strong generalization ability, so that the key point recognition effect of the key point recognition model of the meter obtained by training is better, and strong data support can be provided for meter reading.
[0079] Embodiment 2: As attached Figure 3 As shown, an embodiment of the present invention discloses a meter reading method, comprising:
[0080] Step S210, obtaining an image of a meter to be identified;
[0081] Step S220, inputting the meter image to be identified into the meter key point recognition model, outputting important parameters, wherein the important parameters include meter type, meter scale key points, pointer key points and circle center key points, and the meter key point recognition model is constructed by using the meter key point recognition model construction method disclosed in the above embodiment;
[0082] Step S230, reading the meter based on the important parameters.
[0083] As attached Figure 4 As shown, the above step S230 specifically includes:
[0084] Step S231, matching corresponding dial scale information and range information according to meter type;
[0085] Here, a match can be made based on the dictionary mapping relationship between the recorded meter category and the digital range.
[0086] Step S232, determining a nearest scale key point on both sides of the pointer key point, and sorting them from small to large according to the distance between them and the pointer key point, and respectively determining the first scale key point and the second scale key point;
[0087] Step S233, respectively calculating the angles between the pointer key point and the first scale key point and the second scale key point, which are the first angle and the second angle respectively;
[0088] The above step S233 is as shown in the attached Figure 5 As shown, including:
[0089] Step S2331, determining the scale starting point P2 according to the dial scale information;
[0090] Step S2332, constructing a general equation of a straight line based on the scale starting point P2 and the key point of the circle center P1, the general equation of the straight line is as follows:
[0091] value=A*x+B*y+C
[0092] Step S2333, insert the pointer key point P3 into the general equation of the straight line, and determine whether the value of the solution of the equation is less than 0;
[0093] Step S2334, in response to yes, using the vector angle method to calculate the angles between the pointer key point and the first scale key point and the second scale key point as the first angle and the second angle;
[0094] If the value is less than 0, it means that the pointer key point P3 is above the straight line constructed by the scale starting point P2 and the circle center key point P1, as shown in the following figure. Figure 6 As shown, at this time, the vector angle method is used to calculate the angles between the pointer key point and the first scale key point and the second scale key point as the first angle and the second angle.
[0095] Step S2335, in response to no, the angle between the pointer key point and the first scale key point and the second scale key point is calculated using the vector angle method, and then 360° is subtracted from the first scale key point and the second scale key point respectively to obtain the first angle and the second angle.
[0096] If the value is not less than 0, it means that the pointer key point P3 is below the straight line constructed by the scale starting point P2 and the circle center key point P1, as shown in the following figure. Figure 7 As shown, the angle between the pointer key point P3 and the scale starting point P2 is w, w = 360-θ. Therefore, after using the vector angle method to calculate the angle between the pointer key point and the first scale key point and the second scale key point, it is necessary to subtract 360° from the first scale key point and the second scale key point to obtain the first angle and the second angle.
[0097] The general equation of the straight line constructed using the scale starting point P2 and the center key point P1 determines whether the pointer key point P3 is above or below it, thereby adapting to the angle range (0,2π) of the meter scale to avoid errors in meter reading.
[0098] It is also described above that the method of calculating the angle between the pointer key point and the first scale key point and the second scale key point using the vector angle method specifically includes:
[0099] (1) Calculate the angle between the pointer key point and the scale key point by the cosine of the vector;
[0100]
[0101] (2) Use the inverse trigonometric function to solve the cosine radian α, and then use the radian to angle formula to solve θ, and record the angle between the pointer key point and the scale key point;
[0102]
[0103] Step S234, determine the ratio of the first angle to the second angle, and add the ratio to the scale value of the first scale point as the pointer reading.
[0104] In the embodiment of the present invention, a meter key point recognition model is used to identify important parameters, and a nearest scale key point is determined on both sides of the upper and lower sides of the pointer key point. The angles between the pointer key point and the first scale key point and the second scale key point are calculated as the first angle and the second angle respectively, and the ratio of the first angle to the second angle is determined. The ratio is added to the scale value of the first scale point as the pointer reading. Compared with the existing traditional visual inspection, it can effectively extract important features of the meter image, effectively reduce the influence of environmental factors, and make the meter reading more accurate. In addition, this embodiment takes into account the angle range (0, 2π) of the meter scale, and further reduces the meter reading error.
[0105] Embodiment 3: As attached Figure 8 As shown, the embodiment of the present invention discloses a device for constructing a key point recognition model of a meter, comprising:
[0106] A sample acquisition unit, which acquires a number of samples and divides them into a training sample set and a test sample set in proportion, wherein each of the number of samples includes a meter image and annotations of important parameters in the image, wherein the important parameters include meter category, meter scale key points, pointer key points and circle center key points;
[0107] The training unit trains the yolov8-pose network model using the training sample set and the test sample set to obtain the optimal meter key point recognition model.
[0108] Embodiment 4: As attached Fig. 9 As shown, an embodiment of the present invention discloses a meter reading device, which is characterized by comprising:
[0109] A data acquisition unit, which acquires an image of a meter to be identified;
[0110] an identification unit, inputting the meter image to be identified into a meter key point identification model, and outputting important parameters, wherein the important parameters include meter category, meter scale key points, pointer key points and circle center key points, and the meter key point identification model is constructed by using the meter key point identification model construction method described in the above embodiment;
[0111] Meter reading unit reads the meter based on important parameters.
[0112] The meter reading unit includes:
[0113] A mapping module matches the corresponding dial scale information and range information according to the meter type;
[0114] The scale key point determination module determines a nearest scale key point on both sides of the pointer key point, and sorts them from small to large according to the distance between them and the pointer key point, which are the first scale key point and the second scale key point respectively;
[0115] An angle calculation module calculates the angles between the pointer key point and the first scale key point and the second scale key point, which are the first angle and the second angle respectively;
[0116] The reading module determines the ratio of the first angle to the second angle, and adds the ratio to the scale value of the first scale point as the pointer reading.
[0117] Embodiment 5: The embodiment of the present invention discloses an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement a meter reading method.
[0118] The processor may be a central processing unit (CPU), a general purpose processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. It may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The memory may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory, a mobile hard disk, a magnetic disk or an optical disk.
[0119] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0120] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0122] The above technical features constitute the best embodiment of the present invention, which has strong adaptability and best implementation effect. Non-essential technical features can be added or reduced according to actual needs to meet the requirements of different situations.
Claims
1. A method for constructing a key point recognition model for a meter, characterized in that: include: A number of samples are obtained, and the samples are divided into a training sample set and a test sample set in proportion, wherein each of the number of samples includes a meter image and annotations of important parameters in the image, wherein the important parameters include a meter category, a meter scale key point, a pointer key point, and a circle center key point; The yolov8-pose network model is trained using the training sample set and the test sample set to obtain the optimal meter key point recognition model.
2. The method for constructing a key point identification model of a meter according to claim 1, characterized in that: The obtaining of several samples comprises: Obtain several meter images collected at various fixed points in the substation under different environments, and each meter image must contain a complete instrument dial; Use the labelme annotation tool to annotate the important parameters in each meter image, and save the annotation information of each meter image in the corresponding json file. The important parameters include meter category, meter scale key points, pointer key points and circle center key points. Calling the sample amplification tool library to amplify the sample; Convert the json file corresponding to each meter image in the sample into a yolo file.
3. The method for constructing a key point identification model for a meter according to claim 1 or 2, characterized in that: The method of training the yolov8-pose network model using the training sample set and the test sample set to obtain the optimal meter key point recognition model includes: Input the training sample set into the yolov8-pose network model for training, and output the meter key point recognition model; The key point recognition model is verified using the verification sample set, and the verification results are evaluated based on the loss function; In response to the evaluation result being unqualified, the various parameters of the key point recognition model of the meter are reversely adjusted, and the training sample set is reused for training; In response to the evaluation result being qualified, the meter key point recognition model is tested using the test sample set. In response to the test result being qualified, the meter key point recognition model is the optimal meter key point recognition model. Otherwise, the various parameters of the meter key point recognition model are adjusted in reverse, and the training sample set is reused for training.
4. A meter reading method, characterized in that: include: Acquire an image of a meter to be identified; Inputting the meter image to be identified into the meter key point recognition model, outputting important parameters, wherein the important parameters include meter category, meter scale key points, pointer key points and circle center key points, and the meter key point recognition model is constructed by using the meter key point recognition model construction method according to any one of claims 1 to 3; Meter reading based on important parameters.
5. The meter reading method according to claim 4, characterized in that: The meter reading based on important parameters includes: Match the corresponding dial scale information and range information according to the meter type; Determine a nearest scale key point on both sides of the pointer key point, and sort them from small to large according to the distance between them and the pointer key point, namely the first scale key point and the second scale key point; Calculate the angles between the pointer key point and the first scale key point and the second scale key point, which are the first angle and the second angle respectively; Determine the ratio of the first angle to the second angle, and add the ratio to the scale value of the first scale point as the pointer reading.
6. The meter reading method according to claim 5, characterized in that: The obtaining of the first angle and the second angle comprises: Determine the scale starting point according to the dial scale information; Construct the general equation of the line based on the scale starting point and the key point of the circle center; Substitute the pointer key point into the general equation of the straight line and determine whether the solution of the equation is less than 0; In response to this, the angles between the pointer key point and the first scale key point and the second scale key point are calculated using a vector angle method as the first angle and the second angle; In response to no, the angles between the pointer key point and the first scale key point and the second scale key point are calculated using the vector angle method, and then 360° is subtracted from the first scale key point and the second scale key point to obtain the first angle and the second angle.
7. A device for constructing a key point identification model for a meter using the method as claimed in any one of claims 1 to 3, characterized in that: include: A sample acquisition unit, which acquires a number of samples and divides them into a training sample set and a test sample set in proportion, wherein each of the number of samples includes a meter image and annotations of important parameters in the image, wherein the important parameters include meter category, meter scale key points, pointer key points and circle center key points; The training unit trains the yolov8-pose network model using the training sample set and the test sample set to obtain the optimal meter key point recognition model.
8. A meter reading device using the method according to any one of claims 4 to 6, characterized in that: include: A data acquisition unit, which acquires an image of a meter to be identified; an identification unit, inputting the meter image to be identified into a meter key point identification model, and outputting important parameters, wherein the important parameters include meter category, meter scale key points, pointer key points and circle center key points, and the meter key point identification model is constructed by using the meter key point identification model construction method according to any one of claims 1 to 3; Meter reading unit reads the meter based on important parameters.
9. The meter reading device according to claim 8, characterized in that: The meter reading unit comprises: A mapping module matches the corresponding dial scale information and range information according to the meter type; The scale key point determination module determines a nearest scale key point on both sides of the pointer key point, and sorts them from small to large according to the distance between them and the pointer key point, which are the first scale key point and the second scale key point respectively; An angle calculation module calculates the angles between the pointer key point and the first scale key point and the second scale key point, which are the first angle and the second angle respectively; The reading module determines the ratio of the first angle to the second angle, and adds the ratio to the scale value of the first scale point as the pointer reading.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the meter reading method according to any one of claims 4 to 6.
Citation Information
Patent Citations
Pointer type instrument reading identification method and device
CN109558871A
Reading identification method and related device
CN114519852A
Ammeter reading identification method, storage medium and computer equipment
CN117994771A
