A method for identifying and reading pointer-type instruments of intelligent inspection robots
By introducing a reading environment monitoring and compensation mechanism into the intelligent inspection robot, the problem of instrument error and environmental impact is solved, the accuracy and reliability of pointer readings are improved, and the accuracy and representativeness of the readings are ensured.
Patent Information
- Application Number
- CN202410336998.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-03-22
AI Technical Summary
Existing intelligent inspection robots fail to effectively consider instrument errors and environmental effects during the recognition and reading process of pointer instruments, resulting in insufficient reliability and accuracy of readings, and possible misjudgments or inaccuracies.
By introducing reading environment monitoring data import, instrument image collection and preliminary evaluation into the intelligent inspection robot, it is judged whether reading compensation is needed, and the display compensation value and environmental compensation value are set according to the instrument and environmental monitoring data to ensure the accuracy and effectiveness of the readings. sex.
It greatly improves the accuracy and effectiveness of pointer readings, reduces errors in the measurement process, ensures the accuracy and representativeness of readings, reduces the probability of misjudgment, and provides maintenance personnel with clearer maintenance guidance.
Smart Images

Figure CN118196358B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image acquisition and recognition, and relates to a method for identifying and reading pointer-type instruments of an intelligent inspection robot. Background Art
[0002] With the development of visual recognition technology and the application of deep learning algorithms, machines can acquire images through cameras and learn and recognize the readings of pointer instruments through algorithms. The emergence of intelligent inspection robots meets the needs of industrial automation, improves inspection efficiency and data accuracy, and promotes the development of industrial intelligence.
[0003] At present, intelligent inspection robots mainly perform pointer meter recognition and reading by collecting images of pointer meters and reading according to the collected images. Prior art, such as the Chinese invention patent application with application publication number CN112488030A, discloses a pointer meter reading method based on machine vision, which uses machine vision to calibrate the instrument, collect and obtain the front view image, and perform grayscale processing, Gaussian noise reduction, edge detection, and then determine the pointer coordinates, and finally calculate the deflection angle of the pointer and give it in digital form, so that the reading algorithm is scientific and reasonable, and the accuracy is higher.
[0004] Another example of the prior art is a method for reading a pointer-type pressure meter based on machine vision disclosed in a Chinese invention patent application with application publication number CN111797909A, which uses a standard template image of a meter and an image of a meter to be read. A matching algorithm is used to match the image of the meter to be read with the standard template image of the meter, and the image of the meter to be read is corrected to perform denoising, threshold segmentation, expansion operations, etc., so as to confirm the meter reading and make the meter reading more accurate.
[0005] Regarding the above two technical solutions, it is obvious that they mainly improve the accuracy of readings by performing a series of processing on the collected images. Obviously, there are still the following deficiencies: 1. They do not take into account the errors and states of the instrument itself, such as the jitter of the pointer, which makes the readings insufficiently effective, and thus leads to certain deficiencies in the reliability and rationality of the instrument readings collected by the inspection machine. At the same time, the robot may not be able to accurately capture these errors when identifying the readings, resulting in misjudgment or inaccuracy in the reading recognition process, thereby affecting the accuracy of the readings.
[0006] 2. The impact of the specific instrument environment is not taken into account. For example, the smoothness of the robot's moving path will lead to deviations in the camera angle and changes in temperature and humidity in the environment, which in turn increases the probability of errors in the inspection robot's readings, resulting in certain deviations in the effectiveness and accuracy of the recognition results, and cannot ensure the improvement of the inspection robot's reading and recognition accuracy. Summary of the invention
[0007] In view of this, in order to solve the problems raised in the above background technology, a method for identifying and reading pointer-type meters of an intelligent inspection robot is now proposed.
[0008] The purpose of the present invention can be achieved through the following technical solutions: The present invention provides a method for identifying and reading pointer-type instruments of an intelligent inspection robot, the method comprising: step one, importing reading environment monitoring data: recording the current target inspection robot as the target inspection device, recording the current instrument to be identified as the target instrument, and importing the current working status and environmental monitoring data of the connected device corresponding to the target instrument.
[0009] Step 2: Import relevant data of inspection equipment: Import relevant data of the target inspection equipment, including the currently set camera angle and the corresponding vibration frequency monitored at each driving time point.
[0010] Step 3: Instrument image acquisition: Determine the target camera angle of the target inspection device, and perform multiple image acquisitions on the target instrument to obtain each acquired image, record the acquisition time point of each acquired image, and start the auxiliary camera of the target inspection device to acquire the target instrument video.
[0011] Step 4: Preliminary evaluation of instrument images: Based on the collected images and videos of the target instrument, determine whether the target instrument reading requires reading compensation. When the judgment result is no, start step 5; when the judgment result is yes, start step 6.
[0012] Step 5: Instrument image reading recognition: Take the last captured image as the target recognition image, recognize the target recognition image, and output the reading Z of the target recognition image. m .
[0013] Step 6: Confirm the display compensation value Z of the target instrument η .
[0014] Step 7: Confirmation of instrument image readings: used to set the target instrument environment compensation value Z according to the environmental monitoring data. ε , and calculate the confirmed display reading of the target meter.
[0015] Preferably, the determining of the target camera angle of the target inspection device comprises: recording the camera angle currently set by the target inspection device as
[0016] With the driving time point as the horizontal coordinate and the monitored vibration frequency as the vertical coordinate, the driving vibration change curve of the target inspection equipment is constructed, and the total length l of the curve segment located above the set interference driving vibration frequency is selected from it. g and the length of each curve segment, and at the same time select the maximum value from the length of each curve segment, recorded as lx .
[0017] The length of the driving vibration variation curve is denoted as l b , calculate the vibration interference trend index γ of the target inspection equipment,
[0018] If γ is less than or equal to the set reference vibration disturbance tendency index γ′, As the target camera angle of the target inspection device, As the target camera angle of the target inspection equipment, The compensation camera angle corresponds to the set unit vibration interference trend index difference.
[0019] Preferably, the determining whether the target instrument reading requires reading compensation comprises: extracting the calibration tracking log of the target instrument and the set accuracy and calibration interval days from the equipment information library.
[0020] The calibration date and calibration deviation value of each cumulative calibration are located from the calibration tracking log, and the current numerical error trend degree δ of the target instrument is calculated based on the calibration date and calibration deviation value of each cumulative calibration.
[0021] Each collected image is identified to obtain the indicated area position of the pointer of the target instrument in each collected image, and the rotation error trend degree β of the target instrument is statistically calculated according to the collection time point of each collected image.
[0022] According to the video of the target instrument, the consistency λ of the current indication state of the target instrument is analyzed.
[0023] Assume δ>δ′ as judgment condition A, β>β′ as judgment condition B, λ<λ′ as judgment condition C, δ′, β′, λ′ are respectively the numerical error trend, rotation error trend and indication state consistency of the set reference.
[0024] When judgment condition A, judgment condition B and judgment condition C are all not established, "no" will be used as the judgment result, otherwise "yes" will be used as the judgment result.
[0025] Preferably, the statistical target instrument's current numerical error trend includes: taking the cumulative calibration order as the horizontal coordinate and the calibration deviation value as the vertical coordinate, constructing a cumulative calibration deviation change curve, and extracting the slope from it, recorded as k p , and at the same time, the total length of the curve segment located above the target instrument setting accuracy J′ is selected and recorded as l p .
[0026] If l p = 0 and k p ≤k′ p , μ 0 As the current numerical error trend of the target instrument, k′p is the set reference deviation growth rate.
[0027] If l p = 0 and k p >k′ p , calculate the current expected deviation value of the target instrument, recorded as J a ,Will As the current numerical error trend of the target instrument, it is denoted as μ 1 .
[0028] If l p >0, the current numerical error trend of the target instrument is obtained by evaluating the instrument display deviation evaluation rule, which is recorded as μ 2 , and the current numerical error trend of the target instrument is obtained, where δ is taken as μ 0 or μ 1 or μ 2 , μ 2 >μ 1 >μ 0 .
[0029] Preferably, the statistical rotation error trend of the target instrument includes: if the current working state of the target instrument corresponding to the connected device is working, extracting the reference pointer deflection value X of the target instrument corresponding to the unit time point in the working state of the connected device from the device information library 0 ;
[0030] Based on the indicated area position of the corresponding pointer of the target instrument in each collected image, the pointer deflection value of the target instrument at each collection time point is obtained, which is recorded as X t , t represents the acquisition time point number, t=1,2,......u.
[0031] Will The rotation error trend of the target instrument is recorded as φ 0 , X t+1 It represents the pointer deflection value of the target instrument at the t+1th acquisition time point, u represents the number of acquisition time points, ΔX is the set allowable pointer deflection deviation value, The floor symbol.
[0032] If the current working state of the connected device corresponding to the target instrument is idle, the collected images of the target instrument are sorted in chronological order according to the collection time, the first-ranked image is used as the reference image, and the other collected images are used as comparison images.
[0033] If the position of the pointer in a comparison image is inconsistent with that in the reference image, the comparison image is recorded as a deviation image, and the number of deviation images M is counted. 0 , and at the same time count the number of collected images M′.
[0034] Will The rotation error trend of the target instrument is recorded as φ 1 , is the rounding symbol, ΔX′ is the set allowable fluctuation deflection value, and the rotation error trend β of the target instrument is obtained, and β is taken as φ 0 Or φ 1 .
[0035] Preferably, the analysis of the consistency of the current indication state of the target instrument includes: detecting and tracking the target instrument in its video through a target detection algorithm and a tracking algorithm, obtaining the motion trajectory of the pointer corresponding to the target instrument between consecutive frames, analyzing the number of jitters of the target instrument based on this, and extracting the motion trajectory and motion trajectory length of each jitter.
[0036] The average length of each jitter motion trajectory is calculated and the calculation result is recorded as The number of jitters of the target instrument and the duration of the corresponding video are recorded as C and T respectively, and the consistency of the current indication state of the target instrument is calculated as λ. l h , C′, k 0 The jitter track length, jitter times, and jitter frequency for setting the warning are respectively.
[0037] Preferably, the confirmation of the display compensation value of the target instrument includes: if the judgment condition A is met, (δ-δ′)*Z 0 As the display compensation value of the target instrument, it is recorded as Z a , Z 0 The corresponding compensation value for the unit numerical error trend deviation of the set target instrument.
[0038] If the judgment condition B is met, (β-β′)*Z 1 As the display compensation value of the target instrument, it is recorded as Z b , Z 1 The corresponding compensation value for the unit rotation error trend deviation of the set target instrument.
[0039] If the judgment condition C is met, analyze the display compensation value of the target instrument under the judgment condition C, recorded as Z c .
[0040] If the judgment conditions A and B are met, Z a +Z b As the display compensation value of the target instrument, it is recorded as Z d .
[0041] If the judgment conditions A and C are met, Z a +Z cAs the display compensation value of the target instrument, it is recorded as Z e .
[0042] If the judgment conditions B and C are met, Z b +Z c As the display compensation value of the target instrument, it is recorded as Z f .
[0043] If the judgment conditions A, B and C are all met, Z a +Z b +Z c As the display compensation value of the target instrument, it is recorded as Z g , thereby obtaining the display compensation value Z of the target instrument η , Z η The value is Z a or Z b or Z c or Z d or Z e or Z f or Z g .
[0044] Preferably, the analysis and judgment of the display compensation value of the target instrument under condition C includes: comparing the motion trajectories of each jitter with each other, and if the motion trajectories of each jitter are the same, As display compensation weight.
[0045] If the motion trajectory of a certain jitter is inconsistent with the motion trajectory of another jitter, the jitter trajectory deviation ψ is calculated. As the display compensation weight, denoted as In this way, the display compensation weight τ is obtained, and τ is taken as or ψ′ is the set allowable jitter trajectory deviation.
[0046] (λ′-λ)*Z 2 +τ*Z′ is used as the display compensation value Z of the target instrument under the analysis and judgment condition C c , Z 2 is the compensation value corresponding to the deviation of the indication state of the set target instrument corresponding to the unit, and Z′ is the increased compensation value of the display compensation weight of the set target instrument corresponding to the unit.
[0047] Preferably, the setting of the target instrument environment compensation value includes: extracting the temperature difference, the maximum humidity value and the average vibration frequency value of each monitoring day from the environmental monitoring data, and obtaining the number of temperature interference monitoring days R according to the environmental interference judgment rule. wd , humidity interference monitoring days number R sd and the number of vibration disturbance monitoring days Rzd .
[0048] The vibration frequency of each monitoring day is averaged to obtain the average vibration frequency f, and the number of monitoring days R is counted 0 .
[0049] Will As the target instrument environment compensation value Z ε , f′ is the set interference vibration frequency, Z υ It is the environmental compensation value of the unit environmental interference factor corresponding to the set target instrument.
[0050] Preferably, the calculation of the confirmation display reading of the target instrument includes: when the judgment result of step 4 is yes, m +Z η +Z ε Serves as confirmation display reading of the target meter.
[0051] When the judgment result of step 4 is no, Z m +Z ε Serves as confirmation display reading of the target meter.
[0052] Compared with the prior art, the beneficial effects of the present invention are as follows: (1) The present invention determines whether reading compensation is required based on each collected image of the target instrument, and when the judgment result is yes, confirms the displayed compensation value, and sets the environmental compensation value according to the environmental monitoring data of the target instrument. This effectively solves the current problem of not taking into account the error and status of the instrument itself and the specific instrument environment, greatly improves the accuracy of the pointer reading, and at the same time ensures the validity, reliability and rationality of the pointer reading, and reduces the error in the measurement process as much as possible, thereby improving the representativeness of the measured value and the subsequent actual reading value.
[0053] (2) The present invention improves the stability and clarity of image acquisition by confirming the target camera angle according to the vibration frequency monitored at each driving time point of the target, avoiding the need to spend extra time and effort on corrections due to poor image quality in the subsequent data processing and analysis stages, thereby ensuring the availability and efficiency of image acquisition, and is also conducive to accurately capturing the pointer position and reading of the instrument, which can reduce errors caused by angle problems and improve the accuracy of data acquisition.
[0054] (3) The present invention determines whether the target instrument reading requires reading compensation from three dimensions: numerical error during calibration, pointer rotation error, and indication state matching. This enables a comprehensive judgment on the need for target instrument reading compensation, which can reduce the probability of misjudgment caused by a single factor, and thus more objectively evaluate whether reading compensation is needed, avoiding unnecessary adjustments and interventions. At the same time, it can also provide a more comprehensive understanding of the accuracy of the target instrument's readings. On another level, it can also provide maintenance personnel with clearer guidance and formulate targeted instrument maintenance plans.
[0055] (4) The present invention compensates for the deficiency that the current robot may not be able to accurately capture subtle errors when identifying readings by confirming the target instrument display compensation value and the environmental compensation value, thereby minimizing the probability of misjudgment or inaccuracy in the reading recognition process, thereby ensuring the accuracy of the readings, and also reducing the error rate in the automatic reading process of the inspection equipment, ensuring the consistency between the recognition result and the actual value, thereby effectively ensuring the improvement of the accuracy of the inspection equipment reading recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0057] Figure 1 The present invention is a flowchart of the steps for implementing the method. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] See also Figure 1 As shown, the present invention provides a method for identifying and reading pointer-type instruments of an intelligent inspection robot, the method comprising: step one, importing reading environment monitoring data: recording the current target inspection robot as the target inspection device, recording the current instrument to be identified as the target instrument, and importing the current working status and environmental monitoring data of the connected device corresponding to the target instrument.
[0060] Specifically, the current working state is one of idle and working.
[0061] In yet another specific aspect, the environmental monitoring data includes, but is not limited to, the temperature difference, the maximum humidity value, and the average vibration frequency value of each monitoring day.
[0062] Step 2: Import relevant data of inspection equipment: Import relevant data of the target inspection equipment, including the currently set camera angle and the corresponding vibration frequency monitored at each driving time point.
[0063] Step 3: Instrument image acquisition: Determine the target camera angle of the target inspection device, and perform multiple image acquisitions on the target instrument to obtain each acquired image, record the acquisition time point of each acquired image, and start the auxiliary camera of the target inspection device to acquire the target instrument video.
[0064] Exemplarily, the step of determining the target camera angle of the target inspection device includes: F1, recording the currently set camera angle of the target inspection device as
[0065] F2. Use the driving time point as the horizontal coordinate and the monitored vibration frequency as the vertical coordinate to construct the driving vibration change curve of the target inspection equipment, and select the total length l of the curve segment located above the set interference driving vibration frequency. g and the length of each curve segment, and at the same time select the maximum value from the length of each curve segment, recorded as l x .
[0066] F3. The length of the driving vibration change curve is recorded as l b , calculate the vibration interference trend index γ of the target inspection equipment,
[0067] F4, if γ is less than or equal to the set reference vibration interference trend index γ′, As the target camera angle of the target inspection device, As the target camera angle of the target inspection equipment, The compensation camera angle corresponds to the set unit vibration interference trend index difference.
[0068] It should be added that the vibration frequency of the inspection equipment is monitored to evaluate the impact of the corresponding flatness of the inspection path where the inspection equipment is located on the shooting angle of the inspection equipment. That is, the vibration frequency monitored at each driving time point of the inspection equipment often refers to the vibration frequency of the chassis of the inspection equipment. When the inspection equipment is vibrated, the shooting angle of view will often be biased toward the direction of the chassis due to the influence of the vibration in the direction of the chassis, and the angle of view will be biased downward, resulting in a decrease in the camera angle. Therefore, the method of increasing the camera angle is adopted to adjust the shooting angle affected by the vibration.
[0069] The embodiment of the present invention improves the stability and clarity of image acquisition by confirming the target camera angle according to the vibration frequency monitored corresponding to each driving time point of the target, avoiding the need to spend extra time and effort on corrections due to poor image quality in the subsequent data processing and analysis stages, thereby ensuring the availability and efficiency of image acquisition, and is also conducive to accurately capturing the pointer position and reading of the instrument, which can reduce errors caused by angle problems and improve the accuracy of data acquisition.
[0070] Step 4: Preliminary evaluation of instrument images: Based on the collected images and videos of the target instrument, determine whether the target instrument reading requires reading compensation. When the judgment result is no, start step 5; when the judgment result is yes, start step 6.
[0071] Exemplarily, determining whether a target instrument reading requires reading compensation includes: H1, extracting a calibration tracking log of the target instrument and the set accuracy and calibration interval days from a device information library.
[0072] H2. Locate the calibration date and calibration deviation value of each cumulative calibration from the calibration tracking log, and calculate the current numerical error trend δ of the target instrument based on the calibration date and calibration deviation value.
[0073] H3. Identify each collected image, obtain the indication area position of the corresponding pointer of the target instrument in each collected image, and calculate the rotation error trend degree β of the target instrument according to the collection time point of each collected image.
[0074] It should be noted that image recognition technology is a relatively mature technology currently available, and its specific recognition process will not be described in detail here.
[0075] H4. Analyze the consistency λ of the current indication state of the target instrument based on the video of the target instrument.
[0076] H5. Take δ>δ′ as judgment condition A, β>β′ as judgment condition B, and λ<λ′ as judgment condition C. δ′, β′, and λ′ are respectively the numerical error trend, rotation error trend, and indication state consistency of the set reference.
[0077] H6. When judgment conditions A, B and C are all not true, "no" will be used as the judgment result, otherwise "yes" will be used as the judgment result.
[0078] The embodiment of the present invention determines whether the target instrument reading requires reading compensation from three dimensions: numerical error during calibration, pointer rotation error, and indication state matching. This achieves a comprehensive judgment on the target instrument reading compensation requirement, which can reduce the probability of misjudgment caused by a single factor, and further more objectively evaluate whether reading compensation is required, avoiding unnecessary adjustments and interventions. At the same time, it can also provide a more comprehensive understanding of the accuracy of the target instrument's readings. On another level, it can also provide maintenance personnel with clearer guidance and formulate instrument maintenance plans in a targeted manner.
[0079] Furthermore, in step H2, the current numerical error trend of the target instrument is calculated, including: H21, with the cumulative calibration order as the horizontal coordinate and the calibration deviation value as the vertical coordinate, a cumulative calibration deviation change curve is constructed, and the slope is extracted from it, recorded as k p , and at the same time, the total length of the curve segment located above the target instrument setting accuracy J′ is selected and recorded as l p .
[0080] It should be supplemented that the slope refers to the slope of the regression line corresponding to the curve.
[0081] H22, if l p = 0 and k p ≤k′ p , μ 0 As the current numerical error trend of the target instrument, k′ p is the set reference deviation growth rate.
[0082] H23, if l p = 0 and k p >k′ p , calculate the current expected deviation value of the target instrument, recorded as J a ,Will As the current numerical error trend of the target instrument, it is denoted as μ 1 .
[0083] It should be added that the specific statistical process of calculating the current expected deviation value of the target instrument is as follows: the calibration date of the last cumulative calibration is selected from the calibration dates of each cumulative calibration as the analysis calibration date.
[0084] The number of days between the current date and the analysis calibration date is taken as the remaining days to be calibrated D jz , the interval between the calibration date of the first cumulative calibration and the last cumulative calibration date is taken as
[0085] The calibration deviation value of the last cumulative calibration is selected from the calibration deviation values of each cumulative calibration, and is recorded as J θ ,Will As the current estimated deviation value J of the target instrument a .
[0086] H24, if l p >0, the current numerical error trend of the target instrument is obtained by evaluating the instrument display deviation evaluation rule, which is recorded as μ 2 , and the current numerical error trend of the target instrument is obtained, where δ is taken as μ 0 or μ 1 or μ 2 , μ 2 >μ 1 >μ 0 .
[0087] In a specific embodiment, μ 0 The value is 0.
[0088] It should be added that the current display error trend of the target instrument is evaluated by the instrument display deviation evaluation rule. The specific evaluation process is as follows: U1, when l p >0 and k p ≤k′ p , the total length exceeding the allowable deviation and the length of the cumulative calibration deviation change curve are recorded as l p and l w , (2) As the current display error trend of the target instrument, it is denoted as σ 0 .
[0089] U2, when l p >0 and k p >k′ p , (2) As the current display error trend of the target instrument, it is denoted as σ 1 , so as to obtain the current display error trend μ of the target instrument 2 , μ 2 The value is σ 0 Or 1 , σ 1 >σ 0 , It is the compensation error trend under the set deviation growth trend.
[0090] Furthermore, in step H3, the rotation error trend of the target instrument is counted, including: H31, if the current working state of the target instrument corresponding to the connected device is working, extracting the reference pointer deflection value X of the target instrument in the corresponding unit time point in the working state of the connected device from the device information library 0 ;
[0091] H32. Based on the indication area position of the corresponding pointer of the target instrument in each collected image, the pointer deflection value of the target instrument at each collection time point is obtained, which is recorded as X t , t represents the acquisition time point number, t=1,2,......u.
[0092] It should be added that the pointer deflection value of the target instrument at each acquisition time point is obtained by comparing the indicated area positions of the pointers of the target instrument in each acquisition image with each other, obtaining the pointer deflection angle corresponding to the target instrument at each acquisition time point, and using it as the pointer deflection value.
[0093] H33, will The rotation error trend of the target instrument is recorded as φ 0 , X t+1 It represents the pointer deflection value of the target instrument at the t+1th acquisition time point, u represents the number of acquisition time points, ΔX is the set allowable pointer deflection deviation value, The floor symbol.
[0094] H34. If the current working state of the connected device corresponding to the target instrument is idle, the acquired images of the target instrument are sorted in chronological order according to the acquisition time, the first-ranked image is used as the reference image, and the other acquired images are used as comparison images.
[0095] H35. If the position of the pointer area in a comparison image is inconsistent with that in the reference image, the comparison image is recorded as a deviation image, and the number of deviation images M is counted. 0 , and at the same time count the number of collected images M′.
[0096] H36, will The rotation error trend of the target instrument is recorded as φ 1 , is the rounding symbol, ΔX′ is the set allowable fluctuation deflection value, and the rotation error trend β of the target instrument is obtained, and β is taken as φ 0 Or φ 1 .
[0097] Furthermore, the current indication state consistency of the target instrument is analyzed in step H4, including: H41, detecting and tracking the target instrument in its video through the target detection algorithm and the tracking algorithm, obtaining the motion trajectory of the corresponding pointer of the target instrument between consecutive frames, analyzing the number of jitters of the target instrument based on this, and extracting the motion trajectory and motion trajectory length of each jitter.
[0098] In a specific embodiment, the target detection algorithm includes but is not limited to the YOLO algorithm and the SSD algorithm, which are used to detect the target on the preprocessed video frames to determine the position and bounding box of the target instrument in each frame. The target tracking algorithm includes but is not limited to the Kalman filter and the correlation filter, wherein the target tracking algorithm tracks the target to obtain the motion trajectory of the target between consecutive frames, wherein the target detection algorithm and the target tracking algorithm are relatively mature algorithms, and their specific detection and tracking processes are not described in detail here.
[0099] It should be added that the number of jitters of the target instrument is determined by the jitter determination rule, wherein the specific determination process of the jitter determination rule is as follows: according to the motion trajectory of the pointer corresponding to the target instrument between consecutive frames, the speed of the pointer corresponding to the target instrument in each video frame is calculated and compared with the set jitter limit speed.
[0100] If the speed of the pointer in a certain video frame is greater than the set jitter limit speed, it is determined that jitter occurs, and the number of jitters of the target instrument is counted.
[0101] It should also be added that, in a specific embodiment, the speed can be calculated by mathematical methods such as differential method, integration method, etc., and the specific calculation process will not be repeated.
[0102] H42, calculate the average value of the motion trajectory length of each jitter, and record the calculation result as The number of jitters of the target instrument and the duration of the corresponding video are recorded as C and T respectively, and the consistency of the current indication state of the target instrument is calculated as λ. l h , C′, k 0 The jitter track length, jitter times, and jitter frequency for setting the warning are respectively.
[0103] Step 5: Instrument image reading recognition: Take the last captured image as the target recognition image, recognize the target recognition image, and output the reading Z of the target recognition image. m .
[0104] In a specific embodiment, the output of the target recognition image reading is mainly achieved through image recognition technology, that is, the indication area position of the pointer corresponding to the target instrument and the overall indication value of the target instrument are identified through image recognition technology, and the angle between the pointer corresponding to the target instrument and the starting counting end corresponding to the target instrument is obtained as the target deflection angle.
[0105] Extract the maximum range of the target instrument from the device information database and As a readout of the target recognition image.
[0106] It should also be added that before target recognition image recognition is performed, operations such as image denoising, image enhancement and image segmentation are also included. The specific implementation process is a relatively mature method available and will not be described in detail here.
[0107] Step 6: Confirm the display compensation value Z of the target instrument η .
[0108] Exemplarily, confirming the display compensation value of the target instrument includes: Q1, if the judgment condition A is met, (δ-δ′)*Z 0 As the display compensation value of the target instrument, it is recorded as Z a , Z 0 The corresponding compensation value for the unit numerical error trend deviation of the set target instrument.
[0109] Q2. If the judgment condition B is met, (β-β′)*Z 1 As the display compensation value of the target instrument, it is recorded as Z b , Z 1 The corresponding compensation value for the unit rotation error trend deviation of the set target instrument.
[0110] Q3. If the judgment condition C is established, analyze the display compensation value of the target instrument under the judgment condition C, recorded as Z c .
[0111] Understandably, the display compensation value of the target instrument under the condition C is analyzed and determined, including: Q31, comparing the motion trajectories of each jitter with each other. If the motion trajectories of each jitter are the same, As display compensation weight.
[0112] Q32. If the motion trajectory of a certain jitter is inconsistent with the motion trajectory of another jitter, the jitter trajectory deviation ψ is calculated. As the display compensation weight, denoted as In this way, the display compensation weight τ is obtained, and τ is taken as or ψ′ is the set allowable jitter trajectory deviation.
[0113] In a specific embodiment, The value is 0.
[0114] It should be added that the specific statistical process of calculating the jitter trajectory deviation is as follows: N1. Calculate the variance of the motion trajectory length of each jitter, and use the calculation result as the jitter amplitude unevenness, recorded as χ.
[0115] N2. Extract the jitter trajectory of the first jitter from the motion trajectories of each jitter as a reference trajectory, and use the motion trajectories of the other jitters as analysis trajectories.
[0116] N3. Compare and overlap each analysis trajectory with the reference trajectory to obtain the overlap trajectory length between each analysis trajectory and the reference trajectory, and select the maximum overlap trajectory length and the minimum overlap trajectory length, and make a difference between the two to obtain the overlap trajectory length difference, which is recorded as Δl.
[0117] N4, statistical jitter trajectory deviation ψ, χ′ and Δl′ are the jitter amplitude unevenness and the overlap track length difference of the set reference respectively.
[0118] Q33, (λ′-λ)*Z 2 +τ*Z′ is used as the display compensation value Z of the target instrument under the analysis and judgment condition C c , Z 2 is the compensation value corresponding to the deviation of the indication state of the set target instrument corresponding to the unit, and Z′ is the increased compensation value of the display compensation weight of the set target instrument corresponding to the unit.
[0119] In a specific practical scenario, the display compensation value of the target instrument under judgment condition C can also be set by means of flat filtering, lag filtering, etc. The specific setting method is an existing relatively mature means and will not be elaborated here.
[0120] Q4. If the judgment conditions A and B are met, Z a +Z b As the display compensation value of the target instrument, it is recorded as Z d .
[0121] Q5. If the judgment conditions A and C are met, Z a +Z c As the display compensation value of the target instrument, it is recorded as Z e .
[0122] Q6. If the judgment conditions B and C are met, Z b +Z c As the display compensation value of the target instrument, it is recorded as Z f .
[0123] Q7. If the judgment conditions A, B and C are all met, Z a +Z b +Z c As the display compensation value of the target instrument, it is recorded as Z g , thereby obtaining the display compensation value Z of the target instrument η , Z η The value is Z a or Zb or Z c or Z d or Z e or Z f or Z g .
[0124] Step 7: Confirmation of instrument image readings: used to set the target instrument environment compensation value Z according to the environmental monitoring data. ε , and calculate the confirmed display reading of the target meter.
[0125] Exemplarily, setting the target instrument environment compensation value includes: L1, extracting the temperature difference, maximum humidity value and average vibration frequency value of each monitoring day from the environmental monitoring data, and obtaining the number of temperature interference monitoring days R according to the environmental interference judgment rule wd , humidity interference monitoring days number R sd and the number of vibration disturbance monitoring days R zd .
[0126] It should be noted that the specific determination process of the environmental interference judgment rule is as follows: if the temperature difference on a certain monitoring day is greater than the set instrument operation interference temperature difference, the monitoring day will be recorded as a temperature interference monitoring day.
[0127] If the highest humidity value on a monitoring day is greater than the set instrument operation interference humidity value, the monitoring day will be recorded as a humidity interference monitoring day.
[0128] If the vibration frequency of a monitoring day is greater than the set instrument operation interference vibration frequency, the monitoring day will be recorded as a vibration interference monitoring day, and the number of temperature interference monitoring days, humidity interference monitoring days and vibration interference monitoring days will be evaluated.
[0129] L2. Calculate the average vibration frequency of each monitoring day to obtain the average vibration frequency f, and count the number of monitoring days R 0 .
[0130] L3. As the target instrument environment compensation value Z ε , f′ is the set interference vibration frequency, Z υ It is the environmental compensation value of the unit environmental interference factor corresponding to the set target instrument.
[0131] In a specific embodiment, a high temperature environment may cause the pointer to deviate from the true value, while a low temperature environment may make the pointer insensitive. A high humidity environment may cause the internal parts of the instrument to rust or get damp, thereby affecting the movement flexibility and accuracy of the pointer. Continuous vibration may cause the pointer to shake or deviate from the correct position, affecting the indication accuracy. Therefore, environmental compensation settings are performed based on the three factors of temperature, humidity and vibration frequency.
[0132] The embodiment of the present invention compensates for the deficiency that the current robot may not be able to accurately capture subtle errors when identifying readings by confirming the target instrument display compensation value and the environmental compensation value, and minimizes the probability of misjudgment or inaccuracy in the reading recognition process, thereby ensuring the accuracy of the readings, and also reduces the error rate in the automatic reading process of the inspection equipment, ensuring the consistency between the recognition result and the actual value, thereby effectively ensuring the improvement of the accuracy of the inspection equipment reading recognition.
[0133] In another exemplary embodiment, the step of calculating the confirmation display reading of the target instrument includes: when the judgment result of step 4 is yes, m +Z η +Z ε Serves as confirmation display reading of the target meter.
[0134] When the judgment result of step 4 is no, Z m +Z ε Serves as confirmation display reading of the target meter.
[0135] The embodiment of the present invention determines whether reading compensation is required based on each collected image of the target instrument, and when the judgment result is yes, confirms the displayed compensation value, and sets the environmental compensation value according to the environmental monitoring data of the target instrument. This effectively solves the current problem of not taking into account the error and status of the instrument itself and the specific instrument environment, greatly improves the accuracy of the pointer reading, and at the same time ensures the validity, reliability and rationality of the pointer reading, and reduces the error in the measurement process as much as possible, thereby improving the representativeness of the measured value and the subsequent actual reading value.
[0136] The above contents are merely examples and explanations of the concept of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the present invention, they shall all fall within the protection scope of the present invention.
Claims
1. A method for identifying and reading pointer instruments of an intelligent inspection robot, characterized in that: The method includes: Step 1: Import reading environment monitoring data: record the current target inspection robot as the target inspection device, record the current instrument to be identified as the target instrument, and import the current working status and environmental monitoring data of the connected device corresponding to the target instrument; Step 2: Import relevant data of inspection equipment: Import relevant data of the target inspection equipment, including the currently set camera angle and the corresponding vibration frequency monitored at each driving time point; Step 3: Instrument image acquisition: determine the target camera angle of the target inspection equipment, and perform multiple image acquisitions on the target instrument to obtain each acquired image, record the acquisition time point of each acquired image, and start the auxiliary camera of the target inspection equipment to acquire the target instrument video; Step 4: Preliminary evaluation of instrument images: Based on the collected images and videos of the target instrument, determine whether the target instrument reading requires reading compensation. If the judgment result is no, start step 5; if the judgment result is yes, start step 6; Step 5: Instrument image reading recognition: Take the last captured image as the target recognition image, recognize the target recognition image, and output the reading Z of the target recognition image. m ; Step 6: Confirm the display compensation value Z of the target instrument η ; Step 7: Confirmation of instrument image readings: used to set the target instrument environment compensation value Z according to the environmental monitoring data. ε , and calculate the confirmed display reading of the target instrument; Determining the target camera angle of the target inspection device includes: The camera angle currently set by the target inspection device is recorded as θ0; With the driving time point as the horizontal coordinate and the monitored vibration frequency as the vertical coordinate, the driving vibration change curve of the target inspection equipment is constructed, and the total length l of the curve segment located above the set interference driving vibration frequency is selected from it. g and the length of each curve segment, and at the same time select the maximum value from the length of each curve segment, recorded as l x ; The length of the driving vibration variation curve is denoted as l b , calculate the vibration interference trend index γ of the target inspection equipment, If γ is less than or equal to the set reference vibration interference trend index γ′, θ0 is used as the target camera angle of the target inspection device. Otherwise, θ0+(γ-γ′)*θ′ is used as the target camera angle of the target inspection device, and θ′ is the compensation camera angle corresponding to the set unit vibration interference trend index difference. The step of judging whether the target instrument reading requires reading compensation includes: Extract the calibration tracking log of the target instrument and the set accuracy and calibration interval days from the device information library; Locate the calibration date and calibration deviation value of each cumulative calibration from the calibration tracking log, and calculate the current numerical error trend degree δ of the target instrument based on the calibration date and calibration deviation value; Identify each collected image, obtain the indication area position of the pointer corresponding to the target instrument in each collected image, and calculate the rotation error trend degree β of the target instrument according to the collection time point of each collected image; According to the video of the target instrument, the consistency λ of the current indication state of the target instrument is analyzed; δ>δ′ is used as judgment condition A, β>β′ is used as judgment condition B, and λ<λ′ is used as judgment condition C, where δ′, β′, and λ′ are respectively the numerical error trend, rotation error trend, and indication state consistency of the set reference; When judgment condition A, judgment condition B and judgment condition C are all not established, "no" will be used as the judgment result, otherwise "yes" will be used as the judgment result.
2. The method for identifying and reading pointer-type instruments of an intelligent inspection robot according to claim 1, characterized in that: The current numerical error trend of the statistical target instrument includes: With the cumulative calibration order as the horizontal axis and the calibration deviation value as the vertical axis, a cumulative calibration deviation change curve is constructed, and the slope is extracted from it, which is recorded as k p , and at the same time, the total length of the curve segment located above the target instrument setting accuracy J′ is selected and recorded as l p ; If l p = 0 and k p ≤k′ p , taking μ0 as the current numerical error trend of the target instrument, k′ p is the set reference deviation growth rate; If l p = 0 and k p >k′ p , calculate the current expected deviation value of the target instrument, recorded as J a ,Will As the current numerical error trend of the target instrument, it is denoted as μ1; If l p >0, the current numerical error trend of the target instrument is evaluated through the instrument display deviation evaluation rule, recorded as μ2, and the current numerical error trend δ of the target instrument is obtained, and the value of δ is μ0 or μ1 or μ2, μ2>μ1>μ0.
3. A method for identifying and reading pointer-type instruments of an intelligent inspection robot as claimed in claim 2, characterized in that: The statistical rotation error trend of the target instrument includes: If the current working state of the target instrument corresponding to the connected device is working, extract the reference pointer deflection value X0 of the target instrument corresponding to the unit time point in the working state of the connected device from the device information library; Based on the indicated area position of the corresponding pointer of the target instrument in each collected image, the pointer deflection value of the target instrument at each collection time point is obtained, which is recorded as X t , t represents the number of the acquisition time point, t=1,2,......u; Will The rotation error trend of the target instrument is recorded as φ0, X t+1 It represents the pointer deflection value of the target instrument at the t+1th acquisition time point, u represents the number of acquisition time points, ΔX is the set allowable pointer deflection deviation value, is the floor rounding symbol; If the current working state of the connected device corresponding to the target instrument is idle, the collected images of the target instrument are sorted in order of collection time, the image with the first order is used as the reference image, and the other collected images are used as comparison images; If the position of the pointer indicated area in a comparison image is inconsistent with that in the reference image, the comparison image is recorded as a deviation image, and the number of deviation images M0 is counted, and the number of collected images M′ is counted at the same time; Will As the rotation error trend of the target instrument, it is recorded as φ1. is the rounding sign, ΔX′ is the set allowable fluctuation deflection value, and the rotation error trend β of the target instrument is obtained, and the value of β is φ0 or φ1.
4. The method for identifying and reading pointer-type instruments of an intelligent inspection robot according to claim 2, characterized in that: The analysis of the consistency of the current indication status of the target instrument includes: The target instrument is detected and tracked in the video through the target detection algorithm and tracking algorithm, and the motion trajectory of the pointer of the target instrument between consecutive frames is obtained. Based on this, the number of jitters of the target instrument is analyzed, and the motion trajectory and length of each jitter are extracted; The average length of each jitter motion trajectory is calculated and the calculation result is recorded as The number of jitters of the target instrument and the duration of the corresponding video are recorded as C and T respectively, and the consistency of the current indication state of the target instrument is calculated as λ. l h , C′, and k0 are the jitter trajectory length, number of jitters, and jitter frequency set for warning respectively.
5. The method for identifying and reading pointer-type instruments of an intelligent inspection robot according to claim 4, characterized in that: The step of confirming the display compensation value of the target instrument includes: If the judgment condition A is met, (δ-δ′)*Z0 is used as the display compensation value of the target instrument, recorded as Z a , Z0 is the compensation value corresponding to the unit numerical error trend deviation of the set target instrument; If the judgment condition B is met, (β-β′)*Z1 is used as the display compensation value of the target instrument, recorded as Z b , Z1 is the compensation value corresponding to the unit rotation error trend deviation of the set target instrument; If the judgment condition C is met, analyze the display compensation value of the target instrument under the judgment condition C, recorded as Z c ; If the judgment conditions A and B are met, Z a +Z b As the display compensation value of the target instrument, it is recorded as Z d ; If the judgment conditions A and C are met, Z a +Z c As the display compensation value of the target instrument, it is recorded as Z e ; If the judgment conditions B and C are met, Z b +Z c As the display compensation value of the target instrument, it is recorded as Z f ; If the judgment conditions A, B and C are all met, Z a +Z b +Z c As the display compensation value of the target instrument, it is recorded as Z g , thereby obtaining the display compensation value Z of the target instrument η , Z η The value is Z a or Z b or Z c or Z d or Z e or Z f or Z g .
6. A method for identifying and reading pointer-type instruments of an intelligent inspection robot as claimed in claim 5, characterized in that: The display compensation value of the target instrument under the analysis and judgment condition C includes: Compare the motion trajectories of each jitter with each other. If the motion trajectories of each jitter are the same, As display compensation weight; If the motion trajectory of a certain jitter is inconsistent with the motion trajectory of another jitter, the jitter trajectory deviation ψ is calculated. As the display compensation weight, denoted as In this way, the display compensation weight τ is obtained, and τ is taken as or ψ′ is the set allowable jitter trajectory deviation; Take (λ′-λ)*Z2+τ*Z′ as the display compensation value Z of the target instrument under the analysis and judgment condition C c , Z2 is the compensation value corresponding to the deviation of the corresponding unit indication state of the set target instrument, and Z′ is the increased compensation value of the corresponding unit display compensation weight of the set target instrument.
7. The method for identifying and reading pointer-type meters of an intelligent inspection robot according to claim 1, characterized in that: The step of setting the target instrument environment compensation value includes: The temperature difference, maximum humidity value and average vibration frequency value of each monitoring day are extracted from the environmental monitoring data, and the number of temperature interference monitoring days R is obtained by judging the environmental interference judgment rule. wd , humidity interference monitoring days number R sd and the number of vibration disturbance monitoring days R zd ; The vibration frequency of each monitoring day is averaged to obtain the average vibration frequency f, and the number of monitoring days R0 is counted; Will As the target instrument environment compensation value Z ε , f′ is the set interference vibration frequency, Z υ It is the environmental compensation value of the unit environmental interference factor corresponding to the set target instrument.
8. The method for identifying and reading pointer-type instruments of an intelligent inspection robot according to claim 1, characterized in that: The calculation target meter confirms the displayed reading, including: When the judgment result of step 4 is yes, Z m +Z η +Z ε As confirmation display reading of target instrument; When the judgment result of step 4 is no, Z m +Z ε Serves as confirmation display reading of the target meter.
Citation Information
Patent Citations
Pointer type instrument reading method based on machine vision
CN111797909A
Pointer type instrument reading method based on machine vision
CN112488030A
Substation auxiliary monitoring system pointer reading identification compensation method and device
CN111860464A
Analyzing and processing method for multi-instrument synchronous acquisition data of large-scale equipment
CN116887077A
Instrument intelligent reading method and system based on inspection robot
CN117523575A
