CN113947720A - Method for judging working state of density meter - Google Patents

Method for judging working state of density meter Download PDF

Info

Publication number
CN113947720A
CN113947720A CN202111558015.6A CN202111558015A CN113947720A CN 113947720 A CN113947720 A CN 113947720A CN 202111558015 A CN202111558015 A CN 202111558015A CN 113947720 A CN113947720 A CN 113947720A
Authority
CN
China
Prior art keywords
picture
area
air pressure
pointer
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111558015.6A
Other languages
Chinese (zh)
Other versions
CN113947720B (en
Inventor
李方
钟小芳
付守海
贾绍春
薛家驹
邹霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Keystar Intelligence Robot Co ltd
Original Assignee
Guangdong Keystar Intelligence Robot Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Keystar Intelligence Robot Co ltd filed Critical Guangdong Keystar Intelligence Robot Co ltd
Priority to CN202111558015.6A priority Critical patent/CN113947720B/en
Publication of CN113947720A publication Critical patent/CN113947720A/en
Application granted granted Critical
Publication of CN113947720B publication Critical patent/CN113947720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L19/00Details of, or accessories for, apparatus for measuring steady or quasi-steady pressure of a fluent medium insofar as such details or accessories are not special to particular types of pressure gauges
    • G01L19/08Means for indicating or recording, e.g. for remote indication
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L19/00Details of, or accessories for, apparatus for measuring steady or quasi-steady pressure of a fluent medium insofar as such details or accessories are not special to particular types of pressure gauges
    • G01L19/08Means for indicating or recording, e.g. for remote indication
    • G01L19/10Means for indicating or recording, e.g. for remote indication mechanical
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N9/00Investigating density or specific gravity of materials; Analysing materials by determining density or specific gravity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Processing (AREA)

Abstract

A method for judging the working state of a density meter comprises the following steps: collecting a density meter picture; and B: establishing a training data set; and C: obtaining a detection model based on the training data set, wherein the detection model is used for detecting an air pressure critical area and a pointer area of a density meter picture; step D: inputting a to-be-detected densitometer picture into a detection model to obtain the coordinates and category information of the position rectangular frames of the air pressure critical area and the pointer area; step E: respectively cutting out an air pressure critical area picture and a pointer area picture according to the position rectangular frame coordinates; step F: judging whether the density meter is in the critical state of the air pressure at present according to the area intersection ratio; step G: when the density meter is in a non-air pressure critical state, respectively counting the number of corresponding pixels in the pointer area picture; step H: and judging the working state of the density table according to the number of the corresponding pixels. The invention solves the problems of large workload, low inspection efficiency and potential safety hazard existing in manual field inspection.

Description

Method for judging working state of density meter
Technical Field
The invention relates to the technical field of meter state detection, in particular to a method for judging the working state of a density meter.
Background
A large number of density meters are commonly arranged in a power distribution room, the appearance of the power distribution room is simple, and the power distribution room is composed of a colored pointer, a plurality of scale value numbers and two sections of arc scales with two different colors. The density meter can visually display the density value in the circuit breaker through a pointer and scales, and is an instrument device which needs to be checked when a power inspection worker goes to a site for inspection every time. Density table one has three states to judge: the first state is a normal air pressure state, and the pointer is positioned in the arc scale with the first color; the second state is an air pressure critical state, the pointer is located at the junction of the arc scale with the first color and the arc scale with the second color, and the routing inspection personnel needs to prepare for replacing the density relay corresponding to the density meter; the third state is the state that the air pressure is too low, and the pointer is located the scale arc of second colour this moment, and the personnel of patrolling and examining need change the density relay that this density table corresponds at once to patrol and examine and report on.
Because the number of power distribution rooms or switch stations of each power supply station is large, the current power distribution rooms are mainly inspected on site manually in daily life, and the problems of large workload, low inspection efficiency, potential safety hazards and the like exist.
Disclosure of Invention
The invention aims to provide a method for judging the working state of a density meter aiming at the defects in the background technology. According to the invention, the automatic judgment of three working states of normal air pressure, critical air pressure and low air pressure is automatically carried out according to the position relation between the critical air pressure region and the pointer region and the color of the pointer region by shooting the density meter picture by the robot, so that the method has the characteristics of simplicity in realization and high accuracy, can meet the performance requirement of the inspection machine, and perfectly solves the problems of large workload, low inspection efficiency and potential safety hazard in manual field inspection.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for judging the working state of a density meter comprises the following steps:
step A: collecting density meter pictures under different illumination and different angles;
and B: marking the density table pictures, storing the marking information of each density table picture into a corresponding marking information file, and establishing a training data set containing the density table pictures and the marking information file;
and C: training a target detection network based on the training data set to obtain a detection model, wherein the detection model is used for detecting an air pressure critical area and a pointer area of a density meter picture;
step D: inputting the picture of the density meter to be detected into the detection model to obtain the coordinates and the category information of the rectangular frames of the positions of the air pressure critical area and the pointer area in the picture of the density meter to be detected;
step E: respectively cutting an air pressure critical area picture and a pointer area picture from the to-be-detected density meter picture according to the position rectangular frame coordinates;
step F: acquiring an area intersection ratio of the atmospheric pressure critical region and the pointer region based on the atmospheric pressure critical region picture and the pointer region picture, judging whether a density meter is in an atmospheric pressure critical state currently according to the area intersection ratio, and executing the step G if the density meter is in a non-atmospheric pressure critical state;
step G: respectively counting the number of corresponding pixels in the pointer region picture;
step H: and judging the working state of the density table in a non-air pressure critical state according to the number of the corresponding pixels in the pointer region picture.
Preferably, in the step B, the following steps are performed:
step B1: respectively marking the position and the type name of an air pressure critical area and a pointer area in each density table picture;
step B2: correspondingly establishing a marking information file for each density table picture, and storing the marking information of each density table picture into the corresponding marking information file;
step B3: and establishing a training data set, wherein the training data set comprises all density table pictures and marking information files.
Preferably, in the step D, the following steps are performed:
step D1: inputting the to-be-detected density chart picture into a detection model;
step D2: the detection model respectively detects an air pressure critical area and a pointer area in the picture of the density meter to be detected;
step D3: and the detection model respectively returns the coordinates and the category information of the rectangular frames at the positions of the air pressure critical area and the pointer area in a first format.
Preferably, the first format comprises
Figure 982859DEST_PATH_IMAGE001
Wherein:
Figure 710644DEST_PATH_IMAGE002
representing rectangular boxes of positionsThe upper left-hand abscissa;
Figure 933815DEST_PATH_IMAGE003
the ordinate of the upper left corner of the position rectangular frame is represented;
Figure 139668DEST_PATH_IMAGE004
the horizontal coordinate of the lower right corner of the position rectangular frame is represented;
Figure 381163DEST_PATH_IMAGE005
the vertical coordinate of the lower right corner of the position rectangular frame is represented;
label indicates whether the region detected by the detection model is a pressure critical region or a pointer region.
Preferably, in the step F, an area intersection ratio of the air pressure critical region and the pointer region is obtained according to a formula one;
Figure 279848DEST_PATH_IMAGE006
-formula one;
wherein:
rato represents an area intersection ratio;
Figure 724736DEST_PATH_IMAGE007
the area of the air pressure critical region can be represented by the coordinate value
Figure 734281DEST_PATH_IMAGE008
Figure 191518DEST_PATH_IMAGE009
Indicating the area of the pointer region, and the coordinate value of the pointer region can be expressed as
Figure 995526DEST_PATH_IMAGE010
Figure 193289DEST_PATH_IMAGE011
Indicating the area of the intersection of the pointer region and the critical region of air pressure.
Preferably, the coordinate value of the intersection region is obtained according to the coordinate values of the air pressure critical region and the pointer region
Figure 740945DEST_PATH_IMAGE012
Wherein:
Figure 957032DEST_PATH_IMAGE013
the abscissa representing the upper left corner of the intersection region,
Figure 135203DEST_PATH_IMAGE014
Figure 820262DEST_PATH_IMAGE015
the vertical coordinate of the upper left corner of the intersection region is represented,
Figure 420877DEST_PATH_IMAGE016
Figure 242202DEST_PATH_IMAGE017
the abscissa representing the lower right corner of the intersection region,
Figure 653592DEST_PATH_IMAGE018
Figure 560368DEST_PATH_IMAGE019
the ordinate of the lower right corner of the intersection area is represented,
Figure 699095DEST_PATH_IMAGE020
preferably, the surface of the air pressure critical region is obtained based on the coordinate value of the air pressure critical regionProduct of large quantities
Figure 640506DEST_PATH_IMAGE021
Wherein the content of the first and second substances,
Figure 957218DEST_PATH_IMAGE022
acquiring the area of the pointer region according to the coordinate value of the pointer region
Figure 351290DEST_PATH_IMAGE023
Wherein the content of the first and second substances,
Figure 293707DEST_PATH_IMAGE024
obtaining the area of the intersection region according to the coordinate value of the intersection region
Figure 89625DEST_PATH_IMAGE025
Wherein the content of the first and second substances,
Figure 842817DEST_PATH_IMAGE026
if it is
Figure 989765DEST_PATH_IMAGE027
Or
Figure 204714DEST_PATH_IMAGE028
If so, then the intersection region does not exist,
Figure 855138DEST_PATH_IMAGE029
preferably, in the step F, judging whether the density meter is currently in the air pressure critical state according to the area intersection ratio includes:
if the area intersection ratio Rato is larger than the preset value, the density meter is judged to be in the air pressure critical state currently, and otherwise, the density meter is in the non-air pressure critical state currently.
Preferably, in the step G, when the density meter is in a non-air pressure critical state, the method respectively counts the number of corresponding pixels in the pointer region picture, and includes the following steps:
step G1: resetting the width and height of the pointer area picture to be pixels;
step G2: enhancing the contrast and saturation of the pointer region picture after the step G1 is executed;
step G3: extracting a first color channel picture and a second color channel picture of the pointer area picture;
step G4: carrying out binarization processing on the first color channel picture to obtain a binarized picture, and counting the number of pixels with the pixel values equal to 255 in the binarized picture, wherein the number is the number of first color pixels in the pointer region picture;
and carrying out binarization processing on the second color channel picture to obtain a binarized picture, and counting the number of pixels with the pixel values equal to 255 in the binarized picture, wherein the number is the number of second color pixels in the pointer region picture.
Preferably, in the step H, the following steps are performed:
when in use
Figure 44811DEST_PATH_IMAGE030
And is
Figure DEST_PATH_IMAGE031
When the pressure is normal, the density meter is in a normal state;
when in use
Figure 131585DEST_PATH_IMAGE032
And is
Figure 166537DEST_PATH_IMAGE033
When the pressure is too low, the density meter is in a state of too low air pressure;
when in use
Figure 405888DEST_PATH_IMAGE034
And is
Figure 766462DEST_PATH_IMAGE035
When, if
Figure 871691DEST_PATH_IMAGE036
The density meter is in a state of low air pressure, if
Figure 444754DEST_PATH_IMAGE037
If so, the density meter is in a normal air pressure state;
wherein:
gn represents the number of first color pixels;
rn denotes the number of second color pixels.
The beneficial effect that this application's technical scheme produced:
according to the invention, the automatic judgment of three working states of normal air pressure, critical air pressure and low air pressure is automatically carried out according to the position relation between the critical air pressure region and the pointer region and the color of the pointer region by shooting the density meter picture by the robot, so that the method has the characteristics of simplicity in realization and high accuracy, can meet the performance requirement of the inspection machine, and perfectly solves the problems of large workload, low inspection efficiency and potential safety hazard in manual field inspection.
Drawings
FIG. 1 is a flow diagram of a method of determining an operating state of a density table according to one embodiment of the present invention;
FIG. 2 is a schematic illustration of a sulfur hexafluoride density meter target detection scheme in accordance with one embodiment of the present invention;
FIG. 3 is a schematic illustration of the area intersection ratio Rato according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings.
A large number of density meters are commonly arranged in a power distribution room, the appearance of the power distribution room is simple, and the power distribution room is composed of a colored pointer, a plurality of scale value numbers and two sections of arc scales with two different colors. For example, the sulfur hexafluoride density meter can visually display the density value of sulfur hexafluoride in a sulfur hexafluoride breaker through a pointer and scales, and is an instrument device which needs to be checked by power inspection personnel when the power inspection personnel go to the site for inspection each time. Because the number of power distribution rooms or switch stations of each power supply station is large, the current power distribution rooms are mainly inspected on site manually in daily life, and the problems of large workload, low inspection efficiency, potential safety hazards and the like exist. In order to solve the problems, more and more intelligent power distribution room inspection robots are widely applied to power distribution rooms to replace manual work for daily inspection work, and aiming at judging the working state of a density meter, the method for judging the working state of the density meter is provided by the application, and is suitable for judging the working state of the meter with the following structure, wherein the meter structure consists of a colored pointer, a plurality of scale value numbers and two sections of arc scales with two different colors, including but not limited to a sulfur hexafluoride density meter, and as shown in fig. 2, one total three states of the sulfur hexafluoride density meter need to be judged: the first state is a normal state of air pressure, and the pointer is positioned in the green arc scale at the moment; the second state is an air pressure critical state, the pointer is positioned at the junction of the red arc scale and the green arc scale, and the routing inspection personnel needs to prepare for replacing a sulfur hexafluoride density relay corresponding to the sulfur hexafluoride density meter; the third state is a state with too low air pressure, at the moment, the pointer is positioned in the red scale arc, the inspector needs to immediately replace the sulfur hexafluoride density relay corresponding to the sulfur hexafluoride density meter and perform inspection and report, and the technical scheme of the invention is explained by taking the sulfur hexafluoride density meter as a specific embodiment.
As shown in fig. 1, the method specifically comprises the following steps:
step A: collecting density meter pictures under different illumination and different angles;
in this embodiment, the power distribution room inspection robot automatically inspects and collects 3000 sulfur hexafluoride density meter pictures containing various illumination and angles.
And B: marking the density table pictures, storing the marking information of each density table picture into a corresponding marking information file, and establishing a training data set containing the density table pictures and the marking information file;
preferably, in the step B, the following steps are performed:
step B1: respectively marking the position and the type name of an air pressure critical area and a pointer area in each density table picture;
step B2: correspondingly establishing a marking information file for each density table picture, and storing the marking information of each density table picture into the corresponding marking information file;
step B3: and establishing a training data set, wherein the training data set comprises all density table pictures and marking information files.
In this embodiment, the positions and type names of the air pressure critical region and the pointer region in each sulfur hexafluoride density table picture are marked by third-party marking software Labelimage, marking information is stored in an xml file corresponding to each picture, and finally a training data set including 3000 indicator light pictures and 3000 xml files is established.
And C: training a target detection network based on the training data set to obtain a detection model, wherein the detection model is used for detecting an air pressure critical area and a pointer area of a density meter picture;
in this embodiment, the YOLOv4 target detection network is trained by using the established training data set, so as to obtain a detection model Object _ detector capable of accurately detecting the air pressure critical area and the pointer area.
Step D: inputting the picture of the density meter to be detected into the detection model to obtain the coordinates and the category information of the rectangular frames of the positions of the air pressure critical area and the pointer area in the picture of the density meter to be detected;
preferably, in the step D, the following steps are performed:
step D1: inputting the to-be-detected density chart picture into a detection model;
step D2: the detection model respectively detects an air pressure critical area and a pointer area in the picture of the density meter to be detected;
step D3: and the detection model respectively returns the coordinates and the category information of the rectangular frames at the positions of the air pressure critical area and the pointer area in a first format.
Preferably, the first format comprises
Figure 69771DEST_PATH_IMAGE001
Wherein:
Figure 335667DEST_PATH_IMAGE002
the abscissa of the upper left corner of the position rectangle box is represented;
Figure 668471DEST_PATH_IMAGE003
the ordinate of the upper left corner of the position rectangular frame is represented;
Figure 310805DEST_PATH_IMAGE004
the horizontal coordinate of the lower right corner of the position rectangular frame is represented;
Figure 790328DEST_PATH_IMAGE005
the vertical coordinate of the lower right corner of the position rectangular frame is represented;
label indicates whether the region detected by the detection model is a pressure critical region or a pointer region.
Step E: respectively cutting an air pressure critical area picture and a pointer area picture from the to-be-detected density meter picture according to the position rectangular frame coordinates;
step F: acquiring an area intersection ratio of the atmospheric pressure critical region and the pointer region based on the atmospheric pressure critical region picture and the pointer region picture, judging whether a density meter is in an atmospheric pressure critical state currently according to the area intersection ratio, and executing the step G if the density meter is in a non-atmospheric pressure critical state;
in this embodiment, as shown in fig. 3, it is determined whether the sulfur hexafluoride density meter is in the air pressure critical state or the non-air pressure critical state by determining an area intersection ratio Rato of the air pressure critical region and the pointer region, and if the area intersection ratio Rato is greater than a preset value, it is determined that the density meter is currently in the air pressure critical state, otherwise, the density meter is currently in the non-air pressure critical state. The preset value in this embodiment is 0.7, and the size of the preset value is set according to actual operation and is not a fixed value.
Preferably, in the step F, an area intersection ratio of the air pressure critical region and the pointer region is obtained according to a formula one;
Figure 227126DEST_PATH_IMAGE006
-formula one;
wherein:
rato represents an area intersection ratio;
Figure 41367DEST_PATH_IMAGE007
the area of the air pressure critical region can be represented by the coordinate value
Figure 956233DEST_PATH_IMAGE008
Figure 555842DEST_PATH_IMAGE009
Indicating the area of the pointer region, and the coordinate value of the pointer region can be expressed as
Figure 163541DEST_PATH_IMAGE010
Figure 465078DEST_PATH_IMAGE011
Indicating the area of the intersection of the pointer region and the critical region of air pressure.
In this embodiment, the rectangle A is the critical area of air pressure and the coordinate value is
Figure 183635DEST_PATH_IMAGE008
(ii) a Rectangle B is the pointer area and the coordinate value is
Figure 637750DEST_PATH_IMAGE010
The rectangular area C is the intersection area of the air pressure critical area and the pointer area.
Preferably, the coordinate value of the intersection region is obtained according to the coordinate values of the air pressure critical region and the pointer region
Figure DEST_PATH_IMAGE039
Wherein:
Figure 134460DEST_PATH_IMAGE013
the abscissa representing the upper left corner of the intersection region,
Figure 674025DEST_PATH_IMAGE014
Figure 196274DEST_PATH_IMAGE015
the vertical coordinate of the upper left corner of the intersection region is represented,
Figure 504895DEST_PATH_IMAGE016
Figure 703664DEST_PATH_IMAGE017
the abscissa representing the lower right corner of the intersection region,
Figure 464947DEST_PATH_IMAGE018
Figure 790886DEST_PATH_IMAGE019
the ordinate of the lower right corner of the intersection area is represented,
Figure 954014DEST_PATH_IMAGE020
preferably, the area of the air pressure critical region is obtained according to the coordinate value of the air pressure critical region
Figure 323684DEST_PATH_IMAGE021
Wherein the content of the first and second substances,
Figure 837842DEST_PATH_IMAGE022
obtaining from the coordinate values of the pointer regionTaking the area of the pointer region
Figure 701893DEST_PATH_IMAGE023
Wherein the content of the first and second substances,
Figure 172058DEST_PATH_IMAGE024
obtaining the area of the intersection region according to the coordinate value of the intersection region
Figure 525679DEST_PATH_IMAGE025
Wherein the content of the first and second substances,
Figure 261553DEST_PATH_IMAGE026
if it is
Figure 866978DEST_PATH_IMAGE027
Or
Figure 253966DEST_PATH_IMAGE028
If so, then the intersection region does not exist,
Figure 981751DEST_PATH_IMAGE029
step G: respectively counting the number of corresponding pixels in the pointer region picture;
preferably, in the step G, when the density meter is in a non-air pressure critical state, the method respectively counts the number of corresponding pixels in the pointer region picture, and includes the following steps:
step G1: resetting the width and height of the pointer area picture to be pixels;
step G2: enhancing the contrast and saturation of the pointer region picture after the step G1 is executed;
step G3: extracting a first color channel picture and a second color channel picture of the pointer area picture;
step G4: carrying out binarization processing on the first color channel picture to obtain a binarized picture, and counting the number of pixels with the pixel values equal to 255 in the binarized picture, wherein the number is the number of first color pixels in the pointer region picture;
and carrying out binarization processing on the second color channel picture to obtain a binarized picture, and counting the number of pixels with the pixel values equal to 255 in the binarized picture, wherein the number is the number of second color pixels in the pointer region picture.
If the sulfur hexafluoride density table is in the non-atmospheric pressure critical state in step F, the number Gn of the green pixels and the number Rn of the red pixels in the picture of the pointer region are respectively counted, in this embodiment, three states of the sulfur hexafluoride density table are needed to be determined: the first state is a normal state of air pressure, and the pointer is positioned in the green arc scale at the moment; the second state is an air pressure critical state, the pointer is positioned at the junction of the red arc scale and the green arc scale, and the routing inspection personnel needs to prepare for replacing a sulfur hexafluoride density relay corresponding to the sulfur hexafluoride density meter; and the third state is a state that the air pressure is too low, the pointer is positioned in the red scale arc, and the inspector needs to replace the sulfur hexafluoride density relay corresponding to the sulfur hexafluoride density meter immediately and perform inspection and report.
Therefore, by judging the number Gn of green pixels and the number Rn of red pixels in the pointer region picture, it can be definitely known in which arc scale the current pointer is located.
The specific statistical method for the number of corresponding pixels of the pointer region picture comprises the following steps:
step G1: the width and height of the re-fix pointer region picture are both 30 pixels.
Step G2: and enhancing the contrast and the saturation of the pointer area picture with the fixed size, and increasing the color difference of the pixels.
Step G3: the green channel picture (G _ img) and the red channel picture (R _ img) of the pointer area map are extracted.
Step G4: and carrying out binarization processing on the G _ img picture to obtain a binarized picture, and counting the number of pixels with the pixel values equal to 255 in the binarized picture, wherein the number is the number Gn of green pixels in the pointer region picture.
Step G5: and similarly, carrying out binarization processing on the R _ img picture to obtain a binarized picture, and counting the number of pixels with the pixel values equal to 255 in the binarized picture, wherein the number is the number Rn of the red pixels in the pointer region picture.
Step H: and judging the working state of the density table in a non-air pressure critical state according to the number of the corresponding pixels in the pointer region picture.
Preferably, in the step H, the following steps are performed:
when in use
Figure 939342DEST_PATH_IMAGE030
And is
Figure 410775DEST_PATH_IMAGE040
When the pressure is normal, the density meter is in a normal state;
when in use
Figure 646410DEST_PATH_IMAGE032
And is
Figure 279517DEST_PATH_IMAGE033
When the pressure is too low, the density meter is in a state of too low air pressure;
when in use
Figure 989984DEST_PATH_IMAGE034
And is
Figure 999528DEST_PATH_IMAGE035
When, if
Figure 95529DEST_PATH_IMAGE036
The density meter is in a state of low air pressure, if
Figure 165116DEST_PATH_IMAGE037
If so, the density meter is in a normal air pressure state;
wherein:
gn represents the number of first color pixels;
rn denotes the number of second color pixels.
In this embodiment, taking a sulfur hexafluoride density table as an example, the first color pixel represents a green pixel, and the second color pixel represents a red pixel.
The method for judging the working state of the sulfur hexafluoride density meter according to the number of the pixels comprises the following steps:
(1)
Figure 362879DEST_PATH_IMAGE030
and is
Figure 176114DEST_PATH_IMAGE041
And then, the situation that no red pixel exists in the pointer area picture and only a green pixel exists is shown, and the sulfur hexafluoride density meter is judged to be in the normal state of the air pressure.
(2)
Figure 392201DEST_PATH_IMAGE032
And is
Figure 367110DEST_PATH_IMAGE033
And then, it is shown that no green pixel exists in the pointer area picture, only a red pixel exists, and the sulfur hexafluoride density meter is judged to be in a state of too low air pressure.
(3) When in use
Figure 52169DEST_PATH_IMAGE034
And is
Figure 403516DEST_PATH_IMAGE031
When, it is illustrated that there are both green and red pixels in the pointer region picture. When Rn is>And Gn, judging that the sulfur hexafluoride density meter is in a state of excessively low air pressure, and otherwise, judging that the sulfur hexafluoride density meter is in a state of normal air pressure.
The technical principle of the present invention is described above in connection with specific embodiments. The description is made for the purpose of illustrating the principles of the invention and should not be construed in any way as limiting the scope of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.

Claims (10)

1. A method of determining an operating state of a density meter, comprising: the method comprises the following steps:
step A: collecting density meter pictures under different illumination and different angles;
and B: marking the density table pictures, storing the marking information of each density table picture into a corresponding marking information file, and establishing a training data set containing the density table pictures and the marking information file;
and C: training a target detection network based on the training data set to obtain a detection model, wherein the detection model is used for detecting an air pressure critical area and a pointer area of a density meter picture;
step D: inputting the picture of the density meter to be detected into the detection model to obtain the coordinates and the category information of the rectangular frames of the positions of the air pressure critical area and the pointer area in the picture of the density meter to be detected;
step E: respectively cutting an air pressure critical area picture and a pointer area picture from the to-be-detected density meter picture according to the position rectangular frame coordinates;
step F: acquiring an area intersection ratio of the atmospheric pressure critical region and the pointer region based on the atmospheric pressure critical region picture and the pointer region picture, judging whether a density meter is in an atmospheric pressure critical state currently according to the area intersection ratio, and executing the step G if the density meter is in a non-atmospheric pressure critical state;
step G: respectively counting the number of corresponding pixels in the pointer region picture;
step H: and judging the working state of the density table in a non-air pressure critical state according to the number of the corresponding pixels in the pointer region picture.
2. The method of claim 1, wherein the step of determining the operating state of the density meter comprises:
in the step B, the following steps are performed:
step B1: respectively marking the position and the type name of an air pressure critical area and a pointer area in each density table picture;
step B2: correspondingly establishing a marking information file for each density table picture, and storing the marking information of each density table picture into the corresponding marking information file;
step B3: and establishing a training data set, wherein the training data set comprises all density table pictures and marking information files.
3. The method of claim 1, wherein the step of determining the operating state of the density meter comprises:
in the step D, the following steps are performed:
step D1: inputting the to-be-detected density chart picture into a detection model;
step D2: the detection model respectively detects an air pressure critical area and a pointer area in the picture of the density meter to be detected;
step D3: and the detection model respectively returns the coordinates and the category information of the rectangular frames at the positions of the air pressure critical area and the pointer area in a first format.
4. A method of determining the operating state of a density meter according to claim 3, characterized in that:
the first format comprises
Figure 575543DEST_PATH_IMAGE001
Wherein:
Figure 978842DEST_PATH_IMAGE002
the abscissa of the upper left corner of the position rectangle box is represented;
Figure 565682DEST_PATH_IMAGE003
the ordinate of the upper left corner of the position rectangular frame is represented;
Figure 788853DEST_PATH_IMAGE004
the horizontal coordinate of the lower right corner of the position rectangular frame is represented;
Figure 119340DEST_PATH_IMAGE005
the vertical coordinate of the lower right corner of the position rectangular frame is represented;
label indicates whether the region detected by the detection model is a pressure critical region or a pointer region.
5. The method of claim 1, wherein the step of determining the operating state of the density meter comprises:
in the step F, acquiring an area intersection ratio of the air pressure critical area and the pointer area according to a formula I;
Figure 439463DEST_PATH_IMAGE006
-formula one;
wherein:
rato represents an area intersection ratio;
Figure 338148DEST_PATH_IMAGE007
the area of the air pressure critical region can be represented by the coordinate value
Figure 438829DEST_PATH_IMAGE008
Figure 182794DEST_PATH_IMAGE009
Indicating the area of the pointer region, and the coordinate value of the pointer region can be expressed as
Figure 416810DEST_PATH_IMAGE010
Figure 220818DEST_PATH_IMAGE011
Indicating the area of the intersection of the pointer region and the critical region of air pressure.
6. The method of claim 5, wherein the step of determining the operating state of the density meter comprises:
obtaining the coordinate value of the intersection region according to the coordinate values of the air pressure critical region and the pointer region
Figure DEST_PATH_IMAGE012
Wherein:
Figure 339953DEST_PATH_IMAGE013
the abscissa representing the upper left corner of the intersection region,
Figure DEST_PATH_IMAGE014
Figure 481084DEST_PATH_IMAGE015
the vertical coordinate of the upper left corner of the intersection region is represented,
Figure DEST_PATH_IMAGE016
Figure 306958DEST_PATH_IMAGE017
the abscissa representing the lower right corner of the intersection region,
Figure DEST_PATH_IMAGE018
Figure 140921DEST_PATH_IMAGE019
the ordinate of the lower right corner of the intersection area is represented,
Figure DEST_PATH_IMAGE020
7. the method of claim 6, wherein the step of determining the operating state of the density meter comprises:
obtaining the area of the air pressure critical area according to the coordinate value of the air pressure critical area
Figure 357139DEST_PATH_IMAGE021
Wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE022
acquiring the area of the pointer region according to the coordinate value of the pointer region
Figure 301961DEST_PATH_IMAGE023
Wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE024
obtaining the area of the intersection region according to the coordinate value of the intersection region
Figure 985271DEST_PATH_IMAGE025
Wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE026
if it is
Figure 990136DEST_PATH_IMAGE027
Or
Figure DEST_PATH_IMAGE028
If so, then the intersection region does not exist,
Figure 490388DEST_PATH_IMAGE029
8. the method of claim 5, wherein the step of determining the operating state of the density meter comprises:
in the step F, judging whether the density table is currently in the air pressure critical state according to the area intersection ratio includes:
if the area intersection ratio Rato is larger than the preset value, the density meter is judged to be in the air pressure critical state currently, and otherwise, the density meter is in the non-air pressure critical state currently.
9. The method of claim 1, wherein the step of determining the operating state of the density meter comprises:
in the step G, when the density table is in the non-air pressure critical state, respectively counting the number of corresponding pixels in the pointer region picture, including the following steps:
step G1: resetting the width and height of the pointer area picture to be pixels;
step G2: enhancing the contrast and saturation of the pointer region picture after the step G1 is executed;
step G3: extracting a first color channel picture and a second color channel picture of the pointer area picture;
step G4: carrying out binarization processing on the first color channel picture to obtain a binarized picture, and counting the number of pixels with the pixel values equal to 255 in the binarized picture, wherein the number is the number of first color pixels in the pointer region picture;
and carrying out binarization processing on the second color channel picture to obtain a binarized picture, and counting the number of pixels with the pixel values equal to 255 in the binarized picture, wherein the number is the number of second color pixels in the pointer region picture.
10. The method of claim 9, wherein the step of determining the operating state of the density meter comprises:
in the step H, the following steps are performed:
when in use
Figure DEST_PATH_IMAGE030
And is
Figure 301218DEST_PATH_IMAGE031
When the pressure is normal, the density meter is in a normal state;
when in use
Figure DEST_PATH_IMAGE032
And is
Figure 836104DEST_PATH_IMAGE033
When the pressure is too low, the density meter is in a state of too low air pressure;
when in use
Figure DEST_PATH_IMAGE034
And is
Figure DEST_PATH_IMAGE036
When, if
Figure DEST_PATH_IMAGE038
The density meter is in a state of low air pressure, if
Figure 339767DEST_PATH_IMAGE039
If so, the density meter is in a normal air pressure state;
wherein:
gn represents the number of first color pixels;
rn denotes the number of second color pixels.
CN202111558015.6A 2021-12-20 2021-12-20 Method for judging working state of density meter Active CN113947720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111558015.6A CN113947720B (en) 2021-12-20 2021-12-20 Method for judging working state of density meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111558015.6A CN113947720B (en) 2021-12-20 2021-12-20 Method for judging working state of density meter

Publications (2)

Publication Number Publication Date
CN113947720A true CN113947720A (en) 2022-01-18
CN113947720B CN113947720B (en) 2022-05-20

Family

ID=79339180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111558015.6A Active CN113947720B (en) 2021-12-20 2021-12-20 Method for judging working state of density meter

Country Status (1)

Country Link
CN (1) CN113947720B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955907A (en) * 2014-04-17 2014-07-30 国家电网公司 Method for telemetering pointer type SF6 gas density meter
CN107038444A (en) * 2016-02-03 2017-08-11 上海慕荣电气有限公司 A kind of image-recognizing method of pointer dial plate
CN109447062A (en) * 2018-09-29 2019-03-08 南京理工大学 Pointer-type gauges recognition methods based on crusing robot
CN111950330A (en) * 2019-05-16 2020-11-17 杭州测质成科技有限公司 Pointer instrument indicating number detection method based on target detection
CN112115898A (en) * 2020-09-24 2020-12-22 深圳市赛为智能股份有限公司 Multi-pointer instrument detection method and device, computer equipment and storage medium
US20210142099A1 (en) * 2019-11-07 2021-05-13 Sap Se Pointer recognition for analog instrument image analysis
CN112949564A (en) * 2021-02-02 2021-06-11 电子科技大学 Pointer type instrument automatic reading method based on deep learning
CN113469178A (en) * 2021-07-05 2021-10-01 安徽南瑞继远电网技术有限公司 Electric power meter identification method based on deep learning

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955907A (en) * 2014-04-17 2014-07-30 国家电网公司 Method for telemetering pointer type SF6 gas density meter
CN107038444A (en) * 2016-02-03 2017-08-11 上海慕荣电气有限公司 A kind of image-recognizing method of pointer dial plate
CN109447062A (en) * 2018-09-29 2019-03-08 南京理工大学 Pointer-type gauges recognition methods based on crusing robot
CN111950330A (en) * 2019-05-16 2020-11-17 杭州测质成科技有限公司 Pointer instrument indicating number detection method based on target detection
US20210142099A1 (en) * 2019-11-07 2021-05-13 Sap Se Pointer recognition for analog instrument image analysis
CN112115898A (en) * 2020-09-24 2020-12-22 深圳市赛为智能股份有限公司 Multi-pointer instrument detection method and device, computer equipment and storage medium
CN112949564A (en) * 2021-02-02 2021-06-11 电子科技大学 Pointer type instrument automatic reading method based on deep learning
CN113469178A (en) * 2021-07-05 2021-10-01 安徽南瑞继远电网技术有限公司 Electric power meter identification method based on deep learning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄为民 等: "基于LoRa与机器视觉的SF6密度表读数采集***", 《计算机***应用》 *

Also Published As

Publication number Publication date
CN113947720B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
CN107392116A (en) A kind of indicator lamp recognition methods and system
CN109520706B (en) Screw hole coordinate extraction method of automobile fuse box
CN109358064A (en) Pole piece film-making winding defect global function detection method, equipment, medium and system
CN112713652A (en) Intelligent power distribution room comprehensive monitoring management system based on cloud computing platform
CN113325001A (en) Automatic distinguishing and detecting equipment and method for surface appearance flaws of copper foil
CN106971390A (en) A kind of detection method for labelling quality
CN111912850A (en) Slice cigarette debris detecting system based on artificial intelligence
CN113947720B (en) Method for judging working state of density meter
CN114581760B (en) Equipment fault detection method and system for machine room inspection
CN115908432A (en) Material output quality detection system and prediction method
CN111312023A (en) Device and method for automatically drawing middle school physics circuit experiment circuit diagram
CN114298557A (en) Community environment quality analysis method and device
CN113018725A (en) Intelligent fire fighting analysis and management integrated platform based on remote image analysis and processing technology
CN111649865A (en) Wind power and wind direction detection method based on image processing technology
CN114943915A (en) Whole fire control safety intelligent system of building
CN112418231A (en) System algorithm for collecting operation and maintenance and AI model
CN107607492A (en) The detection method and equipment of motor-vehicle tail-gas standard
CN107144244A (en) A kind of leaf area measurement method
CN204203109U (en) Coding automatic detection device
CN115165087A (en) Automatic test system for emergency evacuation indicating lamp
CN109632055A (en) A kind of mechanical water meter dynamic vision measurement method based on intelligent terminal
CN103234975B (en) A kind of detection and location method of cotton foreign fiber
CN115060323A (en) Smart city environment influence assessment device and method
CN114820461A (en) Surface flaw quality inspection platform and method based on image recognition algorithm
CN204204690U (en) Arc Distinguishing Device for Circuit Breakers and be provided with the circuit breaker of this Arc Distinguishing Device for Circuit Breakers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method for Judging the Working State of Density Tables

Effective date of registration: 20231107

Granted publication date: 20220520

Pledgee: Shunde Guangdong rural commercial bank Limited by Share Ltd. Daliang branch

Pledgor: GUANGDONG KEYSTAR INTELLIGENCE ROBOT Co.,Ltd.

Registration number: Y2023980064495

PE01 Entry into force of the registration of the contract for pledge of patent right