CN113591910A - Nixie tube display instrument identification method - Google Patents

Nixie tube display instrument identification method Download PDF

Info

Publication number
CN113591910A
CN113591910A CN202110706868.3A CN202110706868A CN113591910A CN 113591910 A CN113591910 A CN 113591910A CN 202110706868 A CN202110706868 A CN 202110706868A CN 113591910 A CN113591910 A CN 113591910A
Authority
CN
China
Prior art keywords
instrument
real
nixie tube
preset
pair
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.)
Pending
Application number
CN202110706868.3A
Other languages
Chinese (zh)
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.)
Guizhou Guozhi Technology Co ltd
Original Assignee
Guizhou Guozhi Technology 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 Guizhou Guozhi Technology Co ltd filed Critical Guizhou Guozhi Technology Co ltd
Priority to CN202110706868.3A priority Critical patent/CN113591910A/en
Publication of CN113591910A publication Critical patent/CN113591910A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering

Abstract

The invention discloses a method for identifying a nixie tube display instrument, which relates to the technical field of identifying a nixie tube and aims to realize intelligent identification of a nixie tube display type instrument, and comprises the following steps of: acquiring an RGB image, an instrument real-time image and a preset instrument image, and matching and transforming; cutting a real-time diagram of the instrument and a preset instrument diagram; performing K-Means clustering; assigning values to the instrument real-time graph; carrying out morphological transformation on the instrument real-time graph; extracting connected regions and subsets of the instrument real-time graph; identifying a single nixie tube number; splicing character strings; the string is converted to a floating point number. The intelligent high-accuracy nixie tube display instrument identification method is realized.

Description

Nixie tube display instrument identification method
Technical Field
The invention relates to the technical field of digital display tube identification, in particular to a method for identifying a digital display instrument.
Background
In industrial production today, more and more meters are installed and put into service in factories due to the automation of production and the more comprehensive monitoring of the production process. At present, reading and recording are mostly carried out on an instrument panel manually.
However, in many factories, the environment is severe, for example, radiation exists, and the project of reading data by entering the factory at regular time by workers is cumbersome and still may cause harm to human bodies, and meanwhile, the situation of too large error may occur in manual reading. The applications of the nixie tube display instrument are more and more extensive, and different from a pointer instrument, the identification of the nixie tube display instrument needs to judge aiming at the display of numbers.
The intelligent identification mode is used for replacing manual reading of the pointer instrument, so that the accuracy and the working efficiency can be improved.
Disclosure of Invention
The invention discloses a method for identifying a nixie tube display instrument, and aims to realize intelligent identification of a nixie tube display type instrument.
In order to achieve the purpose, the invention adopts the following technical scheme:
a nixie tube display instrument identification method comprises the following steps:
step 1: acquiring RGB (red, green and blue) graph and instrument real-time graph { I (real-time) of instrument scenei,j} and obtaining a preset instrument map { I'i,jMatching with preset image characteristic points to perform projection transformation, solving a perspective matrix A, and combining the { I }i,jThe coordinates of the { i } are mapped to { i ″ }using the perspective matrix Ai,j};
Step 2: according to the pre-transferred meter area information { x, y, w, h }, the result is passed { I ″ "i,jCutting out, using the cutting out area as new { I }i,jAre simultaneously paired with { I'i,jClipping is carried out, and the clipping area is used as new { I'i,j};
And step 3: to { Ii,jPerforming K-Means clustering, wherein the number of clustering categories is 2;
and 4, step 4: according to each Ii,jClass of belonged and Preset Meter information, pair Ii,jAnd carrying out assignment according to the following assignment criteria:
Figure BDA0003131683130000021
and 5: to { Ii,jPerforming morphological transformation with Ii,jFor a center of 5X5 pixels, consider Ii,jPixel values in the neighborhood 5x5 range when there is a non-zero imageElement, then Ii,j=255;
Step 6: extraction of { Ii,jCommunicated area of }
Figure BDA0003131683130000022
Take its subset Si},{SiThe following conditions are satisfied:
(1)
Figure BDA0003131683130000023
Sj∈{Sj},
Figure BDA0003131683130000024
(2)
Figure BDA0003131683130000025
and 7: identifying a single nixie tube number, for each SiCarrying out identification;
and 8: sequentially splicing and identifying the obtained non-empty characters to a character string Str from left to right;
and step 9: and converting Str into floating point number as the identification result of the nixie tube display instrument.
Preferably, the step 1 comprises the steps of:
step 11: obtaining a real-time view of the meter { Ii,j};
Step 12: obtain preset instrument diagram { I'i,j};
Step 13: respectively extracting real-time graphs { I of metersi,jAnd preset gauge chart { I'i,jExtracting main direction and then performing rotation invariance processing, and then extracting BRIEF feature descriptors;
step 14: comparing instrument real-time graphs { I }respectivelyi,jAnd preset gauge chart { I'i,jObtaining the minimum Hamming distance distH of each corresponding feature point descriptor in the Chinese charactermin
Step 15: extracting characteristic points p from the instrument real-time image and the preset instrument image respectivelyiAnd qiGroup (u) }Hamming distance less than 2 times distHminI is the serial number of the characteristic point, and the serial numbers in p and q are consistent to form a characteristic point pair, wherein
Figure BDA0003131683130000026
Step 16: PA ≈ Q, solving perspective matrix
Figure BDA0003131683130000031
Wherein
Figure BDA0003131683130000032
Solving the optimal solution of A;
and step 17: will { Ii,jThe coordinates of the { are mapped to { I ″ } with Ai,j}。
Preferably, the step 16 finds the optimal solution by a least square method.
Preferably, said step 7 comprises the steps of:
(a) take its rectangular envelope region rectiIts height and width are denoted row and col, respectively;
(b) if rectiAn aspect ratio greater than a threshold of 5 is identified as "1";
(c) if rectiPixel mean over range
Figure BDA0003131683130000033
Greater than a threshold value of 128, the character is recognized ".
(d) If rectiPixel mean over range
Figure BDA0003131683130000034
Less than threshold 50, then empty is identified
(e) To pair
Figure BDA0003131683130000035
Traversing the row, recording the turnover times of the pixel values, and recording the turnover times ascM, i.e.:
Figure BDA0003131683130000036
(f) to pair
Figure BDA0003131683130000037
Is traversed, the number of flips is noted as cUL
(g) To pair
Figure BDA0003131683130000038
The pixel row of (2) is traversed, and the number of turns is recorded as cUR;
(h) to pair
Figure BDA0003131683130000039
Traversing the pixel rows, and recording the turnover times as cDL;
(i) to pair
Figure BDA00031316831300000310
The pixel row of (2) is traversed, and the number of turns is recorded as cDR;
(j) calculating the value of the code representing the numerical value:
code=10000cM+1000cUL+100cUR+10cDL+cDR
(k) and judging the number according to the code value-number reference table.
The invention realizes the intelligent identification of the instrument by reading and mapping the image displayed by the nixie tube to carry out digital identification; mapping is carried out through a perspective matrix, wherein the perspective matrix adopts a least square method to obtain an optimal solution, so that the calculation and mapping precision is improved; the envelope and the code are taken one by one for single number, and the specific numerical value identification is carried out by referring to the comparison table, the identification accuracy is high, the burden of workers is lightened,
drawings
Fig. 1 is a schematic flow chart of a high-precision pointer instrument identification method in embodiment 1.
Detailed Description
Example 1
The invention discloses a method for identifying a nixie tube display instrument, which is shown in a flow chart of figure 1 and comprises the following steps:
step 1: acquiring RGB (red, green and blue) graph and instrument real-time graph { I (real-time) of instrument scenei,j} and obtaining a preset instrument map { I'i,jMatching with preset image characteristic points to perform projection transformation, solving a perspective matrix A, and combining the { I }i,jThe coordinates of { I } are mapped to { I ″ } using the perspective matrix Ai,j}。
To implement step 1, the following steps are preferably taken:
step 11: obtaining a real-time view of the meter { Ii,j};
Step 12: obtain preset instrument diagram { I'i,j};
Step 13: respectively extracting real-time graphs { I of metersi,jAnd preset gauge chart { I'i,jExtracting main direction and then performing rotation invariance processing, and then extracting BRIEF feature descriptors;
step 14: comparing instrument real-time graphs { I }respectivelyi,jAnd preset gauge chart { I'i,jObtaining the minimum Hamming distance distH of each corresponding feature point descriptor in the Chinese charactermin
Step 15: extracting characteristic points p from the instrument real-time image and the preset instrument image respectivelyiAnd qiThe Hamming distance is less than 2 times distHminI is the serial number of the characteristic point, and the serial numbers in p and q are consistent to form a characteristic point pair, wherein
Figure BDA0003131683130000041
Step 16: PA ≈ Q, solving perspective matrix
Figure BDA0003131683130000042
Wherein
Figure BDA0003131683130000043
Solving the optimal solution of A; preferably, a least square method is used as a method for obtaining the optimal solution.
And step 17: will { Ii,jThe coordinates of the { are mapped to { I ″ } with Ai,j}。
And (5) entering the step 2 after the image acquisition and mapping are finished.
Step 2: according to the pre-transferred instrument area information { x, y, w, h }, passing
Figure BDA0003131683130000051
Cutting is carried out, and the cutting area is used as a new { Ii,jAre simultaneously paired with { I'i,jClipping is carried out, and the clipping area is used as new { I'i,jSpecifically, x and y in the instrument area information are respectively an x coordinate and a y coordinate of a breakpoint at the upper left corner of the cutting frame, and w and h are respectively the width and the height of the cutting frame;
and step 3: to { Ii,jPerforming K-Means clustering, wherein the number of clustering categories is 2;
and 4, step 4: according to each Ii,jClass of belonged and Preset Meter information, pair Ii,jAnd carrying out assignment according to the following assignment criteria:
Figure BDA0003131683130000052
and 5: to { Ii,jPerforming morphological transformation with Ii,jFor a center of 5X5 pixels, consider Ii,jPixel values in the neighborhood 5x5 range, when there are non-zero pixels, then Ii,j=255;
Step 6: extraction of { Ii,jCommunicated area of }
Figure BDA0003131683130000053
Take its subset Si},{SiThe following conditions are satisfied:
(1)
Figure BDA0003131683130000054
Sj∈{Sj},
Figure BDA0003131683130000055
(2)
Figure BDA0003131683130000056
and 7: identifying a single nixie tube number, for each SiCarrying out identification; in this embodiment, the following steps are respectively performed:
(a) take its rectangular envelope region rectiThe height and width of the pattern are respectively marked as row and col, and the rectangular envelope is the minimum envelope capable of laying down the target pattern;
(b) if rectiAn aspect ratio greater than a threshold of 5 is identified as "1";
(c) if rectiPixel mean over range
Figure BDA0003131683130000057
Greater than a threshold value of 128, the character is recognized ".
(d) If rectiPixel mean over range
Figure BDA0003131683130000058
Less than threshold 50, then empty is identified
(e) To pair
Figure BDA0003131683130000059
Traversing the columns, recording the turnover times of the pixel values, and recording the turnover times as cM, namely:
Figure BDA0003131683130000061
(f) to pair
Figure BDA0003131683130000062
Is traversed, the number of flips is noted as cUL
(g) To pair
Figure BDA0003131683130000063
The pixel row of (2) is traversed, and the number of turns is recorded as cUR;
(h) to pair
Figure BDA0003131683130000064
Traversing the pixel rows, and recording the turnover times as cDL;
(i) to pair
Figure BDA0003131683130000065
The pixel row of (2) is traversed, and the number of turns is recorded as cDR;
(j) calculating the value of the code representing the numerical value:
code=10000cM+1000cUL+100cUR+10cDL+cDR
(k) the number is determined from a code value-number reference table as shown in the following table, particularly in the case where both codes 2020 and 202 correspond to the identification number 1:
code value-number reference table
Figure BDA0003131683130000066
Figure BDA0003131683130000071
And 8: sequentially splicing and identifying the obtained non-empty characters to a character string Str from left to right;
and step 9: and converting Str into floating point number as the identification result of the nixie tube display instrument.

Claims (4)

1. A nixie tube display instrument identification method is characterized by comprising the following steps:
step 1: acquiring RGB (red, green and blue) graph and instrument real-time graph { I (real-time) of instrument scenei,j} and obtaining a preset instrument map { I'i,jMatching with preset image characteristic points to perform projection transformation, solving a perspective matrix A, and combining the { I }i,jThe coordinates of { I } are mapped to { I ″ } using the perspective matrix Ai,j};
Step 2: according to the pre-transferred instrument area information { x, y, w, h }, the { I' is comparedi,jCutting out, using the cutting out area as new { I }i,jAre simultaneously paired with { I'i,jClipping is carried out, and the clipping area is used as new { I'i,j};
And step 3: to { Ii,jPerforming K-Means clustering, wherein the number of clustering categories is 2;
and 4, step 4: according to each Ii,jClass of belonged and Preset Meter information, pair Ii,jAnd carrying out assignment according to the following assignment criteria:
Figure FDA0003131683120000011
and 5: to { Ii,jPerforming morphological transformation with Ii,jFor a center of 5X5 pixels, consider Ii,jPixel values in the neighborhood 5x5 range, when there are non-zero pixels, then Ii,j=255;
Step 6: extraction of { Ii,jCommunicated area of }
Figure FDA0003131683120000012
Take its subset Si},{SiThe following conditions are satisfied:
(1)
Figure FDA0003131683120000013
(2)
Figure FDA0003131683120000014
and 7: identifying a single nixie tube number, for each SiCarrying out identification;
and 8: sequentially splicing and identifying the obtained non-empty characters to a character string Str from left to right;
and step 9: and converting Str into floating point number as the identification result of the nixie tube display instrument.
2. The nixie tube display instrument recognition method as claimed in claim 1, wherein the step 1 comprises the steps of:
step 11: obtaining a real-time view of the meter { Ii,j};
Step 12: obtain preset instrument diagram { I'i,j};
Step 13: respectively extracting real-time graphs { I of metersi,jAnd preset gauge chart { I'i,jExtracting main direction and then performing rotation invariance processing, and then extracting BRIEF feature descriptors;
step 14: comparing instrument real-time graphs { I }respectivelyi,jAnd preset gauge chart { I'i,jObtaining the minimum Hamming distance distH of each corresponding feature point descriptor in the Chinese charactermin
Step 15: extracting characteristic points p from the instrument real-time image and the preset instrument image respectivelyiAnd qiThe Hamming distance is less than 2 times distHminI is the serial number of the characteristic point, and the serial numbers in p and q are consistent to form a characteristic point pair, wherein
Figure FDA0003131683120000021
Step 16: PA ≈ Q, solving perspective matrix
Figure FDA0003131683120000022
Wherein
Figure FDA0003131683120000023
Solving the optimal solution of A;
and step 17: will { Ii,jThe coordinates of the { are mapped to { I ″ } with Ai,j}。
3. The method as claimed in claim 2, wherein said step 16 is performed by a least square method to obtain the optimal solution.
4. The nixie tube display instrument recognition method as recited in claim 1, wherein the step 7 comprises the steps of:
(a) take its rectangular envelope region rectiTheir height and width are denoted row and co/;
(b) if rectiAn aspect ratio greater than a threshold of 5 is identified as "1";
(c) if rectiPixel mean over range
Figure FDA0003131683120000024
Greater than a threshold value of 128, the character is recognized ".
(d) If rectiPixel mean over range
Figure FDA0003131683120000025
Less than threshold 50, then empty is identified
(e) To pair
Figure FDA0003131683120000026
Traversing the columns, recording the turnover times of the pixel values, and recording the turnover times as cM, namely:
Figure FDA0003131683120000027
(f) to pair
Figure FDA0003131683120000028
Is traversed, the number of flips is noted as cUL
(g) To pair
Figure FDA0003131683120000031
The pixel row of (2) is traversed, and the number of turns is recorded as cUR;
(h) to pair
Figure FDA0003131683120000032
Traversing the pixel rows, and recording the turnover times as cDL;
(i) to pair
Figure FDA0003131683120000033
The pixel row of (2) is traversed, and the number of turns is recorded as cDR;
(j) calculating the value of the code representing the numerical value:
code=10000cM+1000cUL+100cUR+10cDL+cDR
(k) and judging the number according to the code value-number reference table.
CN202110706868.3A 2021-06-24 2021-06-24 Nixie tube display instrument identification method Pending CN113591910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110706868.3A CN113591910A (en) 2021-06-24 2021-06-24 Nixie tube display instrument identification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110706868.3A CN113591910A (en) 2021-06-24 2021-06-24 Nixie tube display instrument identification method

Publications (1)

Publication Number Publication Date
CN113591910A true CN113591910A (en) 2021-11-02

Family

ID=78244548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110706868.3A Pending CN113591910A (en) 2021-06-24 2021-06-24 Nixie tube display instrument identification method

Country Status (1)

Country Link
CN (1) CN113591910A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636309A (en) * 2015-02-06 2015-05-20 南京理工大学 Matrix calculator based on machine vision and matrix identification method
CN105303168A (en) * 2015-10-14 2016-02-03 南京第五十五所技术开发有限公司 Multi-view pointer type instrument identification method and device
CN105574531A (en) * 2015-12-11 2016-05-11 中国电力科学研究院 Intersection point feature extraction based digital identification method
CN108573261A (en) * 2018-04-17 2018-09-25 国家电网公司 A kind of read out instrument recognition methods suitable for Intelligent Mobile Robot
CN110197455A (en) * 2019-06-03 2019-09-03 北京石油化工学院 Acquisition methods, device, equipment and the storage medium of two-dimensional panoramic image
CN112232344A (en) * 2020-09-21 2021-01-15 广东电网有限责任公司广州供电局 Digital multimeter reading identification method
CN112613506A (en) * 2020-12-23 2021-04-06 金蝶软件(中国)有限公司 Method and device for recognizing text in image, computer equipment and storage medium
CN112699876A (en) * 2021-03-24 2021-04-23 中海油能源发展股份有限公司采油服务分公司 Automatic reading method for various meters of gas collecting station

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636309A (en) * 2015-02-06 2015-05-20 南京理工大学 Matrix calculator based on machine vision and matrix identification method
CN105303168A (en) * 2015-10-14 2016-02-03 南京第五十五所技术开发有限公司 Multi-view pointer type instrument identification method and device
CN105574531A (en) * 2015-12-11 2016-05-11 中国电力科学研究院 Intersection point feature extraction based digital identification method
CN108573261A (en) * 2018-04-17 2018-09-25 国家电网公司 A kind of read out instrument recognition methods suitable for Intelligent Mobile Robot
CN110197455A (en) * 2019-06-03 2019-09-03 北京石油化工学院 Acquisition methods, device, equipment and the storage medium of two-dimensional panoramic image
CN112232344A (en) * 2020-09-21 2021-01-15 广东电网有限责任公司广州供电局 Digital multimeter reading identification method
CN112613506A (en) * 2020-12-23 2021-04-06 金蝶软件(中国)有限公司 Method and device for recognizing text in image, computer equipment and storage medium
CN112699876A (en) * 2021-03-24 2021-04-23 中海油能源发展股份有限公司采油服务分公司 Automatic reading method for various meters of gas collecting station

Similar Documents

Publication Publication Date Title
CN106529537A (en) Digital meter reading image recognition method
JP5997545B2 (en) Signal processing method and signal processing apparatus
CN106339707B (en) A kind of gauge pointer image-recognizing method based on symmetric characteristics
CN108764234B (en) Liquid level meter reading identification method based on inspection robot
CN108573511B (en) Point-distributed cooperative coding mark and identification and positioning method thereof
CN103984930A (en) Digital meter recognition system and method based on vision
CN105574161B (en) A kind of brand logo key element recognition methods, device and system
CN115713694B (en) Land mapping information management method
CN111046881B (en) Pointer type instrument reading identification method based on computer vision and deep learning
CN112613429A (en) Machine vision-based reading method suitable for multi-view image pointer instrument
CN110704649B (en) Method and system for constructing flow image data set
CN103488965B (en) Waybill typing and colored color lump coding/decoding system
WO2021253633A1 (en) Recognition method and terminal for batch of qr codes
CN111368906A (en) Pointer type oil level indicator reading identification method based on deep learning
CN110659637A (en) Electric energy meter number and label automatic identification method combining deep neural network and SIFT features
WO2022148396A1 (en) Collection method for chip, and positioning method for chip
CN115294317A (en) Pointer type instrument reading intelligent detection method for industrial production factory
CN115457556A (en) Reading method for disc pointer type instrument of nuclear power plant
CN110569774B (en) Automatic line graph image digitalization method based on image processing and pattern recognition
CN102831428A (en) Method for extracting quick response matrix code region in image
CN113762070A (en) Surface coverage classification sample collection method for deep learning
CN110634131A (en) Crack image identification and modeling method
CN113591910A (en) Nixie tube display instrument identification method
CN113591875B (en) High-precision pointer type instrument identification method
CN116109933B (en) Dynamic identification method for ecological restoration of abandoned mine

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