CN111695551B - Method and device for reading dial, computer equipment and readable storage medium - Google Patents

Method and device for reading dial, computer equipment and readable storage medium Download PDF

Info

Publication number
CN111695551B
CN111695551B CN202010459613.7A CN202010459613A CN111695551B CN 111695551 B CN111695551 B CN 111695551B CN 202010459613 A CN202010459613 A CN 202010459613A CN 111695551 B CN111695551 B CN 111695551B
Authority
CN
China
Prior art keywords
scale
value
dial
circle
pointer
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.)
Active
Application number
CN202010459613.7A
Other languages
Chinese (zh)
Other versions
CN111695551A (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.)
Agricultural Information Institute of CAAS
Original Assignee
Agricultural Information Institute of CAAS
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 Agricultural Information Institute of CAAS filed Critical Agricultural Information Institute of CAAS
Priority to CN202010459613.7A priority Critical patent/CN111695551B/en
Publication of CN111695551A publication Critical patent/CN111695551A/en
Application granted granted Critical
Publication of CN111695551B publication Critical patent/CN111695551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2411Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/50Extraction of image or video features by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
    • G06V10/507Summing image-intensity values; Histogram projection analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/63Scene text, e.g. street names
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/02Recognising information on displays, dials, clocks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention provides a dial reading method, a dial reading device, a computer device and a readable storage medium, wherein the method comprises the following steps: collecting an image of the front face of the dial plate; identifying the scale value of a long scale line nearest to the pointer in a preset range of the vertex position of the pointer in the dial and based on the edge image of the image; and reading the dial according to the position of the pointer and the identified scale value of the long scale line. The scheme is realized based on the identification analysis of the acquired front image of the dial plate, is irrelevant to whether the dial plate has a special appearance, can realize the readings of other dial plates except the electronic LED dial plate for displaying the digital readings, is beneficial to avoiding the applicable singleness and is beneficial to meeting the reading requirements of diversified dial plates.

Description

Method and device for reading dial, computer equipment and readable storage medium
Technical Field
The invention relates to the technical field of meters, in particular to a method and a device for reading a dial, computer equipment and a readable storage medium.
Background
At present, many devices still adopt the mode of instrument to show data, need the manual work to read the instrument dial plate, however, the mode of manual work reading dial plate data is consuming time and labor, and easily has human error, influences the accuracy of reading.
In the prior art, some reports of dial reading by adopting a machine vision method exist, however, some schemes can be realized only under the condition that the dial has a special appearance, and the applicable dial is single, so that the application range of the scheme is limited; the electronic LED dial plate capable of displaying digital readings can only be read by the aid of the scheme, the electronic LED dial plate is single in applicable dial plate, the application range of the scheme is limited, and the reading requirements of various dial plates cannot be met.
Disclosure of Invention
The embodiment of the invention provides a dial reading method, which aims to solve the technical problems that in the prior art, when a machine vision method is adopted to read a dial, the dial is single in applicable dial, and the reading requirement of various dials cannot be met.
The method comprises the following steps:
collecting an image of the front face of the dial plate;
identifying the scale value of a long scale line nearest to the pointer in a preset range of the vertex position of the pointer in the dial and based on the edge image of the image;
reading a dial according to the position of the pointer and the identified scale value of the long scale line;
the method for identifying the scale value of the long scale line closest to the pointer in the preset range of the vertex position of the pointer in the dial comprises the following steps:
In the edge image of the image, taking the center position of the dial as a circle center, taking the distance between the vertex of the pointer and the center position of the dial as a reference radius, and determining an inner circle of a scale ring, wherein the scale ring is an annular formed by scale lines, and the inner circle of the scale ring is a circle which is inside the scale ring and is intersected with only long scale lines;
determining the position of the long scale mark according to the intersection of the inner circle of the scale ring and the long scale mark;
identifying the position of a long scale mark nearest to the pointer within a preset range of the vertex position of the pointer in the dial according to the position of the pointer in the dial and the position of the long scale mark;
determining the scale value of the identified long scale line according to the identified position of the long scale line;
wherein, according to the position of the long scale mark identified, confirm the scale value of the long scale mark identified, include:
for each long tick mark, the inner circle of the tick ring is at a polar angle (p m +l m X and pole radius r c Establishing a rectangular coordinate system with the point of the (2) as the origin, the abscissa axis being the horizontal direction, the ordinate axis being the vertical direction, determining a square with q as the side length and the coordinate point (-q/2, 0) as the upper left corner point, the square calibrating the position of the long scale line corresponding to the scale value, wherein p m For the position ordinal number corresponding to the pixel value segment m corresponding to the long scale line in the position sequence of the inner circle of the scale ring, l m For the number value corresponding to the pixel value segment m corresponding to the long scale line in the length sequence of the inner circle of the scale ring, X is the preset polar coordinate angle, r c =g r -q*2 0.5 /2,g r The radius of the inner circle of the scale ring is given, and q is a constant;
and determining the identified scale value of the long scale line according to the identified position of the scale value of the long scale line.
The embodiment of the invention also provides a reading device of the dial plate, which aims to solve the technical problems that the dial plate is single and the reading requirement of various dial plates cannot be met when the dial plate is read by adopting a machine vision method in the prior art. The device comprises:
the image acquisition module is used for acquiring images of the front face of the dial;
the identification module is used for identifying the scale value of a long scale line nearest to the pointer in a preset range of the vertex position of the pointer in the dial based on the edge image of the image;
the reading module is used for reading the dial according to the position of the pointer and the identified scale value of the long scale line;
wherein, the identification module includes:
An inside circle determining unit, configured to determine, in an edge image of the image, an inside circle of a scale ring with a center position of a dial as a center of a circle and a distance between a vertex of the pointer and the center position of the dial as a reference radius, where the scale ring is a ring shape formed by scale lines, and the inside circle of the scale ring is a circle inside the scale ring and intersecting only long scale lines;
the scale mark position determining unit is used for determining the position of the long scale mark according to the intersection of the inner circle of the scale ring and the long scale mark, and identifying the position of the long scale mark closest to the pointer in the preset range of the vertex position of the pointer in the dial according to the position of the pointer in the dial and the position of the long scale mark;
the scale value determining unit is used for determining the scale value of the identified long scale line according to the identified position of the long scale line;
the scale value determining unit of the scale line comprises:
a scale value position determining subunit for determining, for each long scale line, a position of the scale ring on the inner circle of the scale ring at a polar coordinate angle (p m +l m X and pole radius r c Establishing a rectangular coordinate system with the point of the (2) as the origin, the abscissa axis being the horizontal direction, the ordinate axis being the vertical direction, determining a square with q as the side length and the coordinate point (-q/2, 0) as the upper left corner point, the square calibrating the position of the long scale line corresponding to the scale value, wherein p m For the position ordinal number corresponding to the pixel value segment m corresponding to the long scale line in the position sequence of the inner circle of the scale ring, l m For the number value corresponding to the pixel value segment m corresponding to the long scale line in the length sequence of the inner circle of the scale ring, X is the preset polar coordinate angle, r c =g r -q*2 0.5 /2,g r Is a scale ringRadius of the inner circle, q is a constant;
and the scale value determining subunit is used for determining the scale value of the identified long scale line according to the position of the scale value of the identified long scale line.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the reading method of any dial when executing the computer program, so as to solve the technical problems that the dial is suitable for single dial and the reading requirement of diversified dials cannot be met when the dial is read by adopting a machine vision method in the prior art.
The embodiment of the invention also provides a computer readable storage medium which stores a computer program for executing the random dial reading method, so as to solve the technical problems that the dial is single and the reading requirement of various dials cannot be met when the dial is read by adopting a machine vision method in the prior art.
In the embodiment of the application, the dial is read by a machine vision method according to the position of the pointer and the identified scale value of the long scale line, which is closest to the pointer in a preset range of the vertex position of the pointer in the dial, by acquiring the image on the front surface of the dial and carrying out identification analysis based on the edge image of the image, the scheme is realized by carrying out identification analysis based on the acquired image on the front surface of the dial, is irrelevant to whether the dial has a special appearance, can realize the readings of other dials except the electronic LED dial for displaying the digital readings, is beneficial to avoiding applicable singleness and is beneficial to meeting the reading requirement of diversified dials.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate and together with the description serve to explain the application. In the drawings:
FIG. 1 is a flow chart of a method for reading a dial provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of image graying according to an embodiment of the present application;
FIG. 3 is a schematic diagram of image binarization according to an embodiment of the present application;
FIG. 4 is a schematic diagram of image denoising according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an edge image according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of detecting the center positions of a pointer and a dial provided by an embodiment of the present invention;
FIG. 7 is a schematic illustration of an embodiment of the present invention defining an inside circle of a scale ring;
FIG. 8 is a schematic view of an inside circle of a scale ring according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of determining a position of a long scale line corresponding to a scale value according to an embodiment of the present invention;
FIG. 10 is a schematic illustration of a dial reading provided by an embodiment of the present invention;
FIG. 11 is a flow chart of a method for implementing the dial reading according to the embodiment of the present invention;
FIG. 12 is a block diagram of a computer device according to an embodiment of the present invention;
fig. 13 is a block diagram of a dial reading device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following embodiments and the accompanying drawings, in order to make the objects, technical solutions and advantages of the present invention more apparent. The exemplary embodiments of the present invention and the descriptions thereof are used herein to explain the present invention, but are not intended to limit the invention.
In an embodiment of the present invention, a method for reading a dial is provided, as shown in fig. 1, where the method includes:
step 102: collecting an image of the front face of the dial plate;
step 104: identifying the scale value of a long scale line nearest to the pointer in a preset range of the vertex position of the pointer in the dial and based on the edge image of the image;
step 106: and reading the dial according to the position of the pointer and the identified scale value of the long scale line.
As can be seen from the flow shown in fig. 1, in the embodiment of the present invention, it is proposed that the dial is read by a machine vision method by collecting an image on the front of the dial, and performing recognition analysis based on an edge image of the image to obtain the scale value of a long scale line closest to the pointer within a preset range of the pointer and the vertex position of the pointer in the dial, so as to further read the dial according to the position of the pointer and the recognized scale value of the long scale line.
In specific implementation, the image of the front face of the dial plate is collected by taking the right front of the dial plate as a visual angle, and the image comprises scale marks, scale values, pointers and the like of the dial plate.
In a specific implementation, in order to realize the identification of the pointer in the image, the method is realized by the following steps in the embodiment:
carrying out graying and binarization processing on the image; specifically, the image after the graying treatment is shown in fig. 2, and then the gray image is subjected to the binarization treatment according to the characteristic that the dial pointer and the scale mark have obvious color difference with the dial background, the image after the binarization treatment is shown in fig. 3, and the scale value, the scale mark, the dial center area and the like can be extracted from the binarized image. In addition, the binarized image can be subjected to denoising treatment, and the denoised image is shown in fig. 4, so that the scale values, the scale lines, the central area of the dial plate and the like in fig. 4 are clearer;
calculating an edge image based on the processed image; specifically, a canny operator can be used to calculate the edge, and the calculated edge image is shown in fig. 5;
detecting straight lines in the edge image, and determining the intersection point of the two detected straight lines as the vertex of the pointer; specifically, as shown in fig. 6, the detected intersection point of the 3 straight lines is the vertex of the pointer;
And (3) detecting a circle in a specified range at the center of the edge image, determining the center of the detected circle (as shown in fig. 6, namely, the center of the circle used for fixing the pointer on the center of the dial) as the center position of the dial, wherein the connecting line between the center position of the dial and the vertex of the pointer is the pointer, and recognizing the pointer can know the position of the pointer in the dial.
In the specific implementation, in the process of performing circle detection in the edge image, the specified range at the center of the edge image may be a circle in the dial center area, where the circle is formed by taking the center of the edge image as an origin and taking a preset length as a radius, and the size of the specified range may be determined according to practical situations, and the application is not limited specifically.
In specific implementation, the application provides a method for detecting straight lines by detecting the straight lines based on the characteristic that most of the pointers have all or part of the straight lines, wherein the method for detecting the straight lines by hough change can be adopted in the process of detecting the straight lines, and because the method for hough change is greatly influenced by environmental parameters, the method for automatic parameter correction can be adopted, automatic adjustment is carried out according to the number of detected straight lines until the number of detected straight lines is 2 or 3, and the intersection point of 2 or 3 straight lines is calculated, wherein the intersection point is the position of the peak point of the pointer. And detecting a hough circle in a preset range near the pointer and at the center of the edge image, wherein the detected circle is determined as the center position of the dial.
In particular, in order to realize the reading of the dial, in this embodiment, the scale value of the long scale line closest to the pointer within the preset range of the vertex position of the pointer in the dial is identified through the following steps:
in the edge image of the image, taking the center position of the dial as a circle center, taking the distance between the vertex of the pointer and the center position of the dial as a reference radius, and determining an inner circle of a scale ring, wherein the scale ring is an annular formed by scale lines, and the inner circle of the scale ring is a circle which is inside the scale ring and is intersected with only long scale lines;
determining the positions of long scale marks according to the intersection of an inner circle of a scale ring and the long scale marks, wherein the scale marks generally comprise long scale marks and short scale marks, the long scale marks and the short scale marks are uniformly distributed in a dial, and the short scale marks are uniformly distributed between adjacent long scale marks, namely when the scale marks with two lengths are distributed in the dial, the longer scale marks are confirmed to be the long scale marks; or only long scale marks are distributed in the dial, so that when only one length of scale marks are distributed in the dial, the scale marks are confirmed to be long scale marks;
identifying the position of a long scale mark nearest to the pointer within a preset range of the vertex position of the pointer in the dial according to the position of the pointer in the dial and the position of the long scale mark; specifically, the size of the preset range of the vertex position of the pointer can be determined according to actual calculation conditions, for example, the preset range can be a circle determined by taking the vertex of the pointer as a circle center and taking a certain length as a radius, and at least one long scale line is included in the preset range;
And determining the scale value of the identified long scale line according to the identified position of the long scale line.
In particular implementation, in order to improve accuracy of the reading, in this embodiment, the process of determining the inside circle of the scale ring may be implemented by the following steps:
in the edge image of the image, setting a plurality of candidate circles with different radiuses by taking the central position of the dial as a circle center and taking the distance between the vertex of the pointer and the central position of the dial as a reference radius; specifically, the present inventors propose to search the inside position of the scale ring (i.e., the inside circle of the scale ring) in the area near the pointer vertex based on the characteristic that the scale lines around the disk have obvious uniform width and uniform distribution, and further propose to use the center position of the dial plate as the center of a circleSetting a plurality of candidate circles with different radiuses by taking the distance between the vertex of the pointer and the central position of the dial as a reference radius, wherein the radius range of the candidate circles can be r min To r max Then, it is determined that the smaller the search width d, the higher the accuracy of the search. Will have a radius r min 、r min +d、r min +2d......r min +nd (where r) min +nd<=r max ,r min +(n+1)*d>r max ) As shown in fig. 7, a plurality of candidate circles with different radii are distributed on the dial plate.
For each candidate circle, establishing a polar coordinate system by taking the circle center as a pole and taking the horizontal direction as a polar axis, starting from the position where the polar coordinate angle of the candidate circle is 0, calculating pixel values at all positions on the candidate circle by taking a preset polar coordinate angle X as an interval, determining positions where the pixel values are a plurality of continuous 1 s as scale marks, and forming a dimension vector of the candidate circle by taking the pixel values at all positions as elements; for example, starting from a position where the polar coordinate angle on the candidate circle is 0, the radius length of the candidate circle is unchanged, sequentially calculating the pixel values at a plurality of positions, such as x (i.e., the preset polar coordinate angle), 2x, 3x, and mx (where mx < =2×pi and (m+1) ×2×pi, the larger the m value is, the more accurate the calculation is, the x represents the multiplier), where the pixel value is a plurality of continuous 1S, to determine the positions as scale marks, that is, each scale mark includes a plurality of continuous pixel values 1, and then the pixel value at each position is taken as an element to form a dimension vector S of the candidate circle, for example, the dimension vector S of one candidate circle is: 000111000011100000111000;
for each candidate circle, extracting pixel value segments comprising a plurality of continuous 1 s from a dimension vector of the candidate circle, taking a position ordinal number in a dimension vector of a first 1 in each pixel value segment as an element to form a position sequence of the candidate circle, taking a number value comprising 1 in each pixel value segment as an element to form a length sequence of the candidate circle, calculating a statistic value of the position sequence, and forming a statistic vector by the statistic value and the number of the pixel value segments; for example, the dimension vector S of one candidate circle is: 00011100001110111000. a plurality of 1S in the dimension vector S form a pixel value segment, namely three 1S in the dimension vector S form a pixel value segment, 3 pixel value segments in the dimension vector S are determined as scale lines at positions of the 1S, one pixel value segment corresponds to one scale line, for each pixel value segment, a position ordinal number of a first 1 in the dimension vector in each pixel value segment is determined, for example, the position ordinal number of the first 1 in the dimension vector in the first pixel value segment is 4, and then the position ordinal numbers corresponding to the pixel value segments are sequentially used as elements to form a position sequence of the candidate circle, for example, a position sequence p of the candidate circle is {4, 11, 17}; meanwhile, for each pixel value segment, determining the number value of 1 included in each pixel value segment, if the number value of 1 included in the first pixel value segment in the dimension vector S is 3, further sequentially taking the number value corresponding to each pixel value segment as an element to form a length sequence l of the candidate circle, if the length sequence l of the candidate circle is {3, 4}, and the number g of the pixel value segments is 3;
Screening candidate circles with statistical vectors conforming to a preset threshold, wherein the preset threshold indicates the width consistency degree and the distribution uniformity degree of scale marks corresponding to a plurality of elements on the candidate circles, and the candidate circles conforming to the preset threshold indicate the scale marks on the candidate circles to meet the characteristics of consistent width, uniform distribution and the like;
among the candidate circles selected, the candidate circle with the smallest radius is determined as the inner circle of the scale ring, as shown in fig. 8.
In the specific implementation, in order to finally determine the inner circle of the scale ring, in the embodiment, the statistical value of the position sequence is calculated by the following steps, and candidate circles with statistical vectors meeting a preset threshold are screened out; screening candidate circles with statistical vectors meeting a preset threshold value:
calculating the mean value and root mean square error of the position sequence;
and determining a circle with the average value meeting a first threshold value, the root mean square error being smaller than a second threshold value and the number g of the pixel value segments being larger than a third threshold value as a circle with the statistical vector meeting a preset threshold value.
Specifically, a pixel value segment composed of a plurality of continuous 1S is extracted from a dimension vector S of a candidate circle, so as to obtain a position sequence p of the candidate circle, for example, the position sequence p is {4, 11, 17}, a mean value p1 and a root mean square error p2 of the position sequence p are calculated, and a statistical vector (p 1, p2, g) is formed by combining g, so that candidate circles of p1> b, p1< c, p2< e, g > f are screened out, wherein b and c are the first threshold values, b and c are constants and are related to the width range of a single scale mark, b represents the lower limit of the width range of the single scale mark, and c represents the upper limit of the width range of the single scale mark; f is the third threshold, f is a constant, and f is related to the number of graduation marks; e is the second threshold, and e is a constant and is generally a value between 4 and 7. If the number of the candidate circles is greater than 1, the candidate circle with the smallest radius is the inner circle of the scale ring.
In a specific implementation, the position of the long scale line can be determined by determining the inner circle of the scale ring, for example, the position of the scale value of the long scale line can be determined according to the identified position of the long scale line, and the scale value of the long scale line is determined according to the identified position of the scale value of the long scale line through the following steps:
for example, the method of determining the position of the scale value of the long scale line identified above may be such that the scale value is determined on the inside circle of the scale ring at a polar coordinate angle (p m +l m X and pole radius r c Establishing a rectangular coordinate system with the point of (1) as the origin, the abscissa axis as the horizontal direction, and the ordinate axis as the vertical direction, determining a square with q as the side length and the coordinate point (-q/2, 0) as the upper left corner point, and calibrating the position of the long scale line corresponding to the scale value, as shown in fig. 9, wherein p m For the position ordinal number corresponding to the pixel value segment m corresponding to the long scale line in the position sequence of the inner circle of the scale ring, l m For the number value corresponding to the pixel value segment m corresponding to the long scale line in the length sequence of the inner circle of the scale ring, X is the preset polar coordinate angle, r c =g r -q*2 0.5 /2,g r Is the radius of the inner circle of the scale ring, q is a constant, r c Is a constant, r c The value of (2) is related to the size of the scale value font.
In particular, for example, for a long scale line, the long scale line corresponds to the mth pixel value segment in the dimension vector of the inner circle of the scale ring, the position ordinal number corresponding to the mth pixel value segment is the element p in the position sequence p of the inner circle of the scale ring m The number value corresponding to the mth pixel value segment is an element l in the length sequence l of the inner circle of the scale ring m Wherein, the value of m is 1, 2 and 3 and … … g. Further, when the position of the long scale line corresponding to the scale value is determined, the position of the long scale line is determined by the method (p m +l m X and pole radius r c A rectangular coordinate system is established by taking the point of the (2) as the origin, the abscissa axis is the horizontal direction, the ordinate axis is the vertical direction, a square taking q as the side length and taking the coordinate point (-q/2, 0) as the upper left corner point is determined, and the square marks the position of the long scale line corresponding to the scale value.
And then determining the identified scale value of the long scale line according to the identified position of the scale value of the long scale line.
In the specific implementation, the positions of the scale values of all the long scale lines on the dial plate can be identified, and the positions of the scale values of the long scale lines closest to the pointer in the preset range of the vertex position of the pointer can be identified.
When the method is specifically implemented, after the position of the long scale mark corresponding to the scale value is determined, the number can be identified according to the position of the scale value of the long scale mark so as to identify the scale value of the long scale mark, and the identified scale value of the long scale mark can be determined according to the position of the identified scale value of the long scale mark through the following steps in the embodiment:
inputting the identified hog characteristic of the position of the scale value of the long scale line into an SVM classifier, outputting the identified scale value of the long scale line by the SVM classifier, wherein training data of the SVM classifier are images marked with the scale value at each long scale line, extracting the hog characteristic of the position of the scale value of each long scale line in the images, the available SVM type is multi-classification type C_SVC, and a kernel function of the SVM classifier can be a linear kernel function.
In the implementation, the SVM classifier can output the scale values of all the long scale lines on the dial based on the position hog characteristics of the scale values of all the long scale lines on the dial, or can output the scale values of the long scale lines closest to the pointer in the preset range of the vertex position of the pointer based on the position hog characteristics of the scale values of the long scale lines closest to the pointer in the preset range of the vertex position of the pointer.
In particular, in order to ensure the accuracy of the reading, in this embodiment, the dial reading is performed by, for example, reading the dial according to the position of the pointer and the identified scale value of the long scale line, including:
acquiring a polar coordinate angle corresponding to the long scale line on the inner circle of the scale ring;
calculating a polar coordinate angle difference between the positions of the long scale marks and the pointer on the inner circle of the scale ring according to the polar coordinate angle corresponding to the long scale marks on the inner circle of the scale ring and the position of the pointer;
the method comprises the steps that pre-stored interval value information is obtained, the interval value information comprises polar coordinate angle intervals corresponding to adjacent scale values and scale value interval values corresponding to the polar coordinate angle intervals, specifically, the polar coordinate angle intervals and the scale value interval values corresponding to the polar coordinate angle intervals can be determined according to specific conditions, and the smaller the polar coordinate angle intervals and the scale value interval values are, the higher the reading accuracy is, for example, the polar coordinate angle intervals are 1 degree, and the scale value interval values corresponding to the polar coordinate angle intervals are 30 seconds or 1 minute;
calculating a scale value difference corresponding to the polar coordinate angle difference according to the pre-stored interval value information;
And calculating the reading of the dial according to the scale value of the long scale line and the scale value difference.
When the long scale mark is positioned on the left side of the pointer, the scale value of the long scale mark can be added with the scale value difference to obtain the reading of the dial plate; when the long tick mark is on the right side of the pointer, the tick mark value of the long tick mark may be subtracted by the tick mark difference.
In the specific implementation, the accuracy of the dial reading can be further improved, for example, the dial reading can be corrected, and the scale mark information can be prestored, wherein the scale mark information comprises a polar coordinate angle corresponding to each long scale mark on the inner circle of the scale ring and a scale value corresponding to each long scale mark; and correcting the reading according to the pre-stored scale mark information and the pre-stored interval value information.
Specifically, due to the influence of the external environment, the dial image may have some noise, so that the determined graduation line and the graduation value may have the problems of omission and repeated detection. To overcome this problem, a one-time correction is required after the tick marks and tick values are fully extracted. According to the characteristics that the scale marks are uniformly distributed in the dial plate and the scale values are uniformly increased and decreased, abnormal points are extracted, and the abnormal points are supplemented or removed. The polar coordinate angle list on the inner circle of the scale ring is al i (i=1..m1) with its corresponding scale value identification value set to kv j (j=1..m1), and calculating an angle interval list al1=al q -al q-1 (q=2..m1), scale value interval list kv1=kv z -kv z-1 (z=2..m1), calculating al 1 And kv 1 Data position point list a of highest frequency in (a) p And kp, calculate list j=a p ∩k p Gf=al j+1 -al j As the corresponding polar coordinate angular interval between adjacent scale values, kf=kv j+1 -kv j As the scale value interval value corresponding to the adjacent scale values. Calculating a correct position point set jf= (j+ {1 }) U.J, wherein the scale values and the scale positions are matched, if the position point set to be corrected is pj= {1,2,3 pj And kv1 pj And deleting and correcting, removing abnormal points and supplementing missing points.
List al of tick mark position points determined according to the position of pointer vertex and above i And scale value list kv j (i.e. the above-mentioned pre-stored scale mark information), the scale mark nearest to the pointer is determined, and then the nearest scale mark is determinedThe method comprises the steps of determining the corresponding scale value difference between the nearest scale line and the pointer according to the corresponding polar coordinate angle interval between the adjacent scale values and the scale value interval value (namely the pre-stored interval value information) corresponding to the polar coordinate angle interval, further determining the meter reading according to the scale value of the nearest scale line and the scale value difference, and correcting the reading obtained by the reading method of the dial by adopting the meter reading.
In specific implementation, as shown in fig. 11, the process of implementing the dial reading method includes the following steps:
collecting an image on the front of a dial, namely a color image, carrying out graying, binarizing and smoothing denoising treatment on the image, calculating an edge image based on the treated image, detecting the vertex of a pointer by a method of carrying out hough change detection straight line in the edge image, carrying out hough circle detection to determine the central position of the dial, and obtaining the position of the pointer by taking the connecting line between the central position of the dial and the vertex of the pointer as the pointer; in the edge image, taking the center position of the dial as the center of a circle, taking the distance between the vertex of the pointer and the center position of the dial as a reference radius, setting a plurality of candidate circles with different radiuses, calculating pixel values at all positions on the candidate circles by taking a preset polar coordinate angle as an interval, determining positions with the pixel values being a plurality of continuous 1 s as scale marks, taking the position information of each scale mark as an element to form a dimension vector of the candidate circle, calculating a statistical vector based on a plurality of continuous elements in each dimension vector, screening out candidate circles with the statistical vector meeting a preset threshold, and further determining the candidate circle with the smallest radius as an inner circle of a scale ring in the screened candidate circles; calibrating the position of each long scale mark based on the inner circle of the scale ring, and further determining the position of the scale value of the long scale mark; the hog feature of the position of the long scale mark corresponding to the scale value is extracted and input into the SVM classifier, the SVM classifier outputs the scale value corresponding to the long scale mark, the dial reading is calculated according to the position of the pointer and the scale value of the long scale mark nearest to the pointer by combining the pre-stored interval value information, the calculated dial reading can be corrected, and the corrected reading is the final dial reading, for example, the dial reading as shown in fig. 10.
In this embodiment, a computer device is provided, as shown in fig. 12, including a memory 1202, a processor 1204, and a computer program stored on the memory and executable on the processor, where the processor implements any of the dial reading methods described above when the computer program is executed.
In particular, the computer device may be a computer terminal, a server or similar computing means.
In the present embodiment, there is provided a computer-readable storage medium storing a computer program for executing the reading method of any dial as described above.
In particular, computer-readable storage media, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer-readable storage media include, but are not limited to, phase-change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable storage media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
Based on the same inventive concept, the embodiment of the invention also provides a dial reading device, as described in the following embodiment. The principle of the dial reading device for solving the problems is similar to that of the dial reading method, so that the dial reading device can be implemented by referring to the dial reading method, and repeated parts are omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 13 is a block diagram showing a structure of a dial reading device according to an embodiment of the present invention, and as shown in fig. 13, the device includes:
the image acquisition module 1302 is used for acquiring an image of the front surface of the dial;
an identifying module 1304, configured to identify, based on an edge image of the image, a scale value of a long scale line closest to the pointer within a preset range of a vertex position of the pointer in the dial;
and a reading module 1306, configured to read the dial according to the position of the pointer and the identified scale value of the long scale line.
In one embodiment, the identification module comprises:
an image processing unit for performing graying and binarization processing on the image;
an image calculation unit that calculates an edge image based on the processed image;
a straight line detection unit for detecting straight lines in the edge image, and determining the intersection point of the two detected straight lines as the vertex of the pointer;
the circle detection unit is used for detecting a circle in a preset range at the center of the edge image, determining the center of the detected circle as the center position of the dial, and connecting a line between the center position of the dial and the vertex of the pointer as the pointer.
In one embodiment, the identification module comprises:
an inside circle determining unit, configured to determine, in an edge image of the image, an inside circle of a scale ring with a center position of a dial as a center of a circle and a distance between a vertex of the pointer and the center position of the dial as a reference radius, where the scale ring is a ring shape formed by scale lines, and the inside circle of the scale ring is a circle inside the scale ring and intersecting only long scale lines;
the scale mark position determining unit is used for determining the position of the long scale mark according to the intersection of the inner circle of the scale ring and the long scale mark, and identifying the position of the long scale mark closest to the pointer in the preset range of the vertex position of the pointer in the dial according to the position of the pointer in the dial and the position of the long scale mark;
And the scale value determining unit is used for determining the scale value of the identified long scale line according to the identified position of the long scale line.
In one embodiment, the inside circle determination unit includes:
the circle setting subunit is used for setting a plurality of candidate circles with different radiuses in the edge image of the image by taking the central position of the dial as the center of a circle and taking the distance between the vertex of the pointer and the central position of the dial as a reference radius;
a pixel calculation subunit, configured to establish a polar coordinate system with a circle center as a pole and a horizontal direction as a polar axis for each candidate circle, calculate, from a position with a polar coordinate angle of 0 on the candidate circle and a preset polar coordinate angle as an interval, pixel values at each position on the candidate circle, determine positions with pixel values of a plurality of continuous 1 s as scale lines, and form a dimension vector of the candidate circle with the pixel values at the positions as elements;
a statistical vector calculation operator unit, configured to extract, for each candidate circle, a pixel value segment including a plurality of continuous 1 s from a dimension vector of the candidate circle, take a position ordinal number of a first 1 in the dimension vector in each pixel value segment as an element to form a position sequence of the candidate circle, take a number value of 1 included in each pixel value segment as an element to form a length sequence of the candidate circle, calculate a statistical value of the position sequence, and form a statistical vector by the statistical value and the number of the pixel value segments;
The screening subunit is used for screening candidate circles with statistical vectors conforming to a preset threshold, wherein the preset threshold indicates the width consistency degree and the distribution uniformity degree of scale marks corresponding to a plurality of elements on the candidate circles;
and the inner circle determining subunit is used for determining the candidate circle with the smallest radius as the inner circle of the scale ring in the screened candidate circles.
In one embodiment, the scale value determining unit of the scale line includes:
the statistical vector calculation operator unit is specifically used for calculating the mean value and the root mean square error of the position sequence;
and the screening subunit specifically determines candidate circles with average values meeting a first threshold value, root mean square errors smaller than a second threshold value and the number of the pixel value segments larger than a third threshold value as candidate circles with statistical vectors meeting a preset threshold value.
In one embodiment, the scale value determining unit of the scale line includes:
a scale value position determining subunit for determining, for each long scale line, a position of the scale ring on the inner circle of the scale ring at a polar coordinate angle (p m +l m X and pole radius r c Establishing a rectangular coordinate system with the point of the (2) as the origin, the abscissa axis being the horizontal direction, the ordinate axis being the vertical direction, determining a square with q as the side length and the coordinate point (-q/2, 0) as the upper left corner point, the square calibrating the position of the long scale line corresponding to the scale value, wherein p m For the position ordinal number corresponding to the pixel value segment m corresponding to the long scale line in the position sequence of the inner circle of the scale ring, l m For the number value corresponding to the pixel value segment m corresponding to the long scale line in the length sequence of the inner circle of the scale ring, X is the preset polar coordinate angle, r c =g r -q*2 0.5 /2,g r The radius of the inner circle of the scale ring is given, and q is a constant;
and the scale value determining subunit is used for determining the scale value of the identified long scale line according to the position of the scale value of the identified long scale line.
In one embodiment, the scale value determining subunit of the scale line is configured to input the hog feature of the identified position of the scale value of the long scale line into the SVM classifier, and the SVM classifier outputs the identified scale value of the long scale line.
In one embodiment, the reading module comprises:
the angle difference calculation unit is used for obtaining the polar coordinate angle corresponding to the long scale line on the inner circle of the scale ring, and calculating the polar coordinate angle difference between the long scale line and the position of the pointer on the inner circle of the scale ring according to the polar coordinate angle corresponding to the long scale line on the inner circle of the scale ring and the position of the pointer;
The information acquisition unit is used for acquiring pre-stored interval value information, wherein the interval value information comprises a polar coordinate angle interval corresponding to adjacent scale values and a scale value interval value corresponding to the polar coordinate angle interval;
the scale value difference calculation unit is used for calculating scale value differences corresponding to the polar coordinate angle differences according to the pre-stored interval value information;
and the reading unit is used for calculating the reading of the dial plate according to the scale value of the long scale line and the scale value difference.
The embodiment of the invention realizes the following technical effects: according to the method, the image on the front face of the dial plate is acquired, the image is identified and analyzed based on the image to obtain the index value of the long scale mark closest to the pointer in the preset range of the pointer and the peak position of the pointer in the dial plate, and then the dial plate is read according to the position of the pointer and the identified index value of the long scale mark, so that the dial plate is read by adopting a machine vision method.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, and various modifications and variations can be made to the embodiments of the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method of reading a dial, comprising:
collecting an image of the front face of the dial plate;
identifying the scale value of a long scale line nearest to the pointer in a preset range of the vertex position of the pointer in the dial and based on the edge image of the image;
reading a dial according to the position of the pointer and the identified scale value of the long scale line;
the method for identifying the scale value of the long scale line closest to the pointer in the preset range of the vertex position of the pointer in the dial comprises the following steps:
in the edge image of the image, the inner circle of the scale ring is determined by taking the center position of the dial plate as the center of a circle and taking the distance between the top point of the pointer and the center position of the dial plate as the reference radius, and the method comprises the following steps:
in the edge image of the image, setting a plurality of candidate circles with different radiuses by taking the central position of the dial as a circle center and taking the distance between the vertex of the pointer and the central position of the dial as a reference radius;
for each candidate circle, establishing a polar coordinate system by taking the circle center as a pole and taking the horizontal direction as a polar axis, calculating pixel values at each position on the candidate circle by taking a preset polar coordinate angle as an interval from the position where the polar coordinate angle on the candidate circle is 0, determining positions where the pixel values are continuous a plurality of 1 s as scale marks, and forming a dimension vector of the candidate circle by taking the pixel values at each position as elements;
For each candidate circle, extracting pixel value segments comprising a plurality of continuous 1 s from a dimension vector of the candidate circle, taking the position ordinal number of the first 1 in the dimension vector in each pixel value segment as an element to form a position sequence of the candidate circle, taking the number value of 1 in each pixel value segment as an element to form a length sequence of the candidate circle, calculating the statistic value of the position sequence, and forming a statistic vector by the statistic value and the number of the pixel value segments;
screening candidate circles with statistical vectors conforming to a preset threshold, wherein the preset threshold indicates the width consistency degree and the distribution uniformity degree of scale marks corresponding to a plurality of elements on the candidate circles;
determining a candidate circle with the smallest radius as an inner circle of the scale ring from the screened candidate circles;
the scale ring is an annular formed by scale marks, and an inner circle of the scale ring is a circle which is arranged at the inner side of the scale ring and is intersected with the long scale marks only;
determining the position of the long scale mark according to the intersection of the inner circle of the scale ring and the long scale mark;
identifying the position of a long scale mark nearest to the pointer within a preset range of the vertex position of the pointer in the dial according to the position of the pointer in the dial and the position of the long scale mark;
Determining the scale value of the identified long scale line according to the identified position of the long scale line;
wherein, according to the position of the long scale mark identified, confirm the scale value of the long scale mark identified, include:
for each long tick mark, the inner circle of the tick ring is at a polar angle (p m +l m X and pole radius r c Establishing a rectangular coordinate system by taking the point of the (E) as the origin, and transversely sittingThe scale axis is the horizontal direction, the ordinate axis is the vertical direction, a square with q as the side length and the coordinate point (-q/2, 0) as the upper left corner point is determined, the square marks the position of the long scale line corresponding to the scale value, wherein the pixel value segment m comprises a plurality of continuous 1 s, the pixel value segment m is extracted from the dimension vector of each candidate circle, and p m For the position ordinal number corresponding to the pixel value segment m corresponding to the long scale line in the position sequence of the inner circle of the scale ring, l m For the number value of the pixel value segment m corresponding to the long scale line corresponding to the length sequence of the inner circle of the scale ring, X is the preset polar coordinate angle, r c =g r -q*2 0.5 /2,g r The radius of the inner circle of the scale ring is given, and q is a constant;
and determining the identified scale value of the long scale line according to the identified position of the scale value of the long scale line.
2. The method of reading a dial of claim 1, wherein identifying a pointer based on the image comprises:
carrying out graying and binarization processing on the image;
calculating an edge image based on the processed image;
detecting straight lines in the edge image, and determining the intersection point of the two detected straight lines as the vertex of the pointer;
and detecting a circle in a specified range at the center of the edge image, determining the center of the detected circle as the center position of the dial, and taking the connecting line between the center position of the dial and the vertex of the pointer as the pointer.
3. The method of claim 1, wherein calculating the statistics of the sequence of positions and screening candidate circles whose statistics vectors meet a predetermined threshold value comprises:
calculating the mean value and root mean square error of the position sequence;
and determining candidate circles with the average value meeting a first threshold value, the root mean square error being smaller than a second threshold value and the number of the pixel value segments being larger than a third threshold value as candidate circles with the statistical vector meeting a preset threshold value.
4. The method of reading a dial of claim 1, wherein determining the identified scale value of the long scale line based on the identified location of the scale value of the long scale line comprises:
Inputting the identified hog characteristic of the position of the scale value of the long scale line into an SVM classifier, and outputting the identified scale value of the long scale line by the SVM classifier.
5. The method of reading a dial as in any one of claims 1, 4, wherein reading the dial based on the position of the pointer and the identified scale value of the long scale line comprises:
acquiring a polar coordinate angle corresponding to the long scale line on the inner circle of the scale ring;
calculating a polar coordinate angle difference between the positions of the long scale marks and the pointer on the inner circle of the scale ring according to the polar coordinate angle corresponding to the long scale marks on the inner circle of the scale ring and the position of the pointer;
acquiring pre-stored interval value information, wherein the interval value information comprises a polar coordinate angle interval corresponding to adjacent scale values and a scale value interval value corresponding to the polar coordinate angle interval;
calculating a scale value difference corresponding to the polar coordinate angle difference according to the pre-stored interval value information;
and calculating the reading of the dial according to the scale value of the long scale line and the scale value difference.
6. A dial reading device, comprising:
The image acquisition module is used for acquiring images of the front face of the dial;
the identification module is used for identifying the scale value of a long scale line nearest to the pointer in a preset range of the vertex position of the pointer in the dial based on the edge image of the image;
the reading module is used for reading the dial according to the position of the pointer and the identified scale value of the long scale line;
wherein, the identification module includes:
an inside circle determining unit for determining an inside circle of a scale ring in an edge image of the image with a center position of a dial as a center of a circle and a distance between a vertex of the pointer and the center position of the dial as a reference radius, comprising:
in the edge image of the image, setting a plurality of candidate circles with different radiuses by taking the central position of the dial as a circle center and taking the distance between the vertex of the pointer and the central position of the dial as a reference radius;
for each candidate circle, establishing a polar coordinate system by taking the circle center as a pole and taking the horizontal direction as a polar axis, calculating pixel values at each position on the candidate circle by taking a preset polar coordinate angle as an interval from the position where the polar coordinate angle on the candidate circle is 0, determining positions where the pixel values are continuous a plurality of 1 s as scale marks, and forming a dimension vector of the candidate circle by taking the pixel values at each position as elements;
For each candidate circle, extracting pixel value segments comprising a plurality of continuous 1 s from a dimension vector of the candidate circle, taking the position ordinal number of the first 1 in the dimension vector in each pixel value segment as an element to form a position sequence of the candidate circle, taking the number value of 1 in each pixel value segment as an element to form a length sequence of the candidate circle, calculating the statistic value of the position sequence, and forming a statistic vector by the statistic value and the number of the pixel value segments;
screening candidate circles with statistical vectors conforming to a preset threshold, wherein the preset threshold indicates the width consistency degree and the distribution uniformity degree of scale marks corresponding to a plurality of elements on the candidate circles;
determining a candidate circle with the smallest radius as an inner circle of the scale ring from the screened candidate circles;
the scale ring is an annular formed by scale marks, and an inner circle of the scale ring is a circle which is arranged at the inner side of the scale ring and is intersected with the long scale marks only;
the scale mark position determining unit is used for determining the position of the long scale mark according to the intersection of the inner circle of the scale ring and the long scale mark, and identifying the position of the long scale mark closest to the pointer in the preset range of the vertex position of the pointer in the dial according to the position of the pointer in the dial and the position of the long scale mark;
The scale value determining unit is used for determining the scale value of the identified long scale line according to the identified position of the long scale line;
the scale value determining unit of the scale line comprises:
a scale value position determining subunit for determining, for each long scale line, a position of the scale ring on the inner circle of the scale ring at a polar coordinate angle (p m +l m X and pole radius r c Establishing a rectangular coordinate system by taking the point of the long scale line as an origin, taking the abscissa axis as the horizontal direction, taking the ordinate axis as the vertical direction, determining a square taking q as the side length and taking the coordinate point (-q/2, 0) as the upper left corner point, and calibrating the position of the long scale line corresponding to the scale value by the square, wherein a pixel value segment m comprises a plurality of continuous 1 s, the pixel value segment m is extracted from a dimension vector of each candidate circle, and p m For the position ordinal number corresponding to the pixel value segment m corresponding to the long scale line in the position sequence of the inner circle of the scale ring, l m For the number value of the pixel value segment m corresponding to the long scale line corresponding to the length sequence of the inner circle of the scale ring, X is the preset polar coordinate angle, r c =g r -q*2 0.5 /2,g r The radius of the inner circle of the scale ring is given, and q is a constant;
and the scale value determining subunit is used for determining the scale value of the identified long scale line according to the position of the scale value of the identified long scale line.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of reading the dial of any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program that executes the dial reading method of any one of claims 1 to 5.
CN202010459613.7A 2020-05-27 2020-05-27 Method and device for reading dial, computer equipment and readable storage medium Active CN111695551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010459613.7A CN111695551B (en) 2020-05-27 2020-05-27 Method and device for reading dial, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010459613.7A CN111695551B (en) 2020-05-27 2020-05-27 Method and device for reading dial, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111695551A CN111695551A (en) 2020-09-22
CN111695551B true CN111695551B (en) 2023-09-01

Family

ID=72478322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010459613.7A Active CN111695551B (en) 2020-05-27 2020-05-27 Method and device for reading dial, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111695551B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245654A (en) * 2018-11-20 2019-09-17 浙江大华技术股份有限公司 Total indicator reading recognition methods and device, computer installation and readable storage medium storing program for executing
CN110378326A (en) * 2019-07-08 2019-10-25 宁波大学科学技术学院 A kind of mechanical indicating pointer pressure gauge reading recognition methods
CN111160337A (en) * 2019-12-12 2020-05-15 武汉工程大学 Automatic identification method, system, medium and equipment for reading of pointer instrument

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245654A (en) * 2018-11-20 2019-09-17 浙江大华技术股份有限公司 Total indicator reading recognition methods and device, computer installation and readable storage medium storing program for executing
CN110378326A (en) * 2019-07-08 2019-10-25 宁波大学科学技术学院 A kind of mechanical indicating pointer pressure gauge reading recognition methods
CN111160337A (en) * 2019-12-12 2020-05-15 武汉工程大学 Automatic identification method, system, medium and equipment for reading of pointer instrument

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Jiannan Chi等.Machine Vision Based Automatic Detection Method of Indicating Values of a Pointer Gauge.Mathematical Problems in Engineering.2015,第1-19页. *

Also Published As

Publication number Publication date
CN111695551A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN107609557B (en) Pointer instrument reading identification method
CN110659636B (en) Pointer instrument reading identification method based on deep learning
CN103759758B (en) A kind of method for detecting position of the automobile meter pointer based on mechanical angle and scale identification
CN103994786B (en) Image detecting method for arc ruler lines of pointer instrument scale
CN109558871B (en) Pointer instrument reading identification method and device
CN114549835B (en) Pointer instrument correction identification method and device based on deep learning
CN111488874A (en) Method and system for correcting inclination of pointer instrument
CN110009651B (en) Anti-interference method of instrument visual reading on-line monitoring system
CN110909640A (en) Method and device for determining water level line, storage medium and electronic device
CN112215060B (en) Hough transform-based high-precision mechanical instrument reading identification method
CN115330791A (en) Part burr detection method
EP3534334A1 (en) Method for identification of characteristic points of a calibration pattern within a set of candidate points derived from an image of the calibration pattern
CN111507186A (en) Substation pointer instrument reading identification method
CN112036409A (en) Reading identification method and device of liquid level meter
CN112836726A (en) Pointer instrument indication reading method and device based on video information
CN111695551B (en) Method and device for reading dial, computer equipment and readable storage medium
CN112560839A (en) Automatic identification method and system for reading of pointer instrument
CN117434568A (en) Intelligent positioning system based on remote sensing satellite
CN114742849B (en) Leveling instrument distance measuring method based on image enhancement
CN116958983A (en) Pointer type pressure gauge automatic calibrator indication reading method based on machine vision
CN114937037B (en) Product defect detection method, device and equipment and readable storage medium
CN116188960A (en) Instrument intelligent reading method, device, equipment and medium based on key point identification
CN108564571B (en) Image area selection method and terminal equipment
CN115588196A (en) Pointer type instrument reading method and device based on machine vision
CN115546143A (en) Method and device for positioning center point of wafer, storage medium and electronic equipment

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