CN110728279A - Water meter digital identification method based on embedded platform machine vision - Google Patents

Water meter digital identification method based on embedded platform machine vision Download PDF

Info

Publication number
CN110728279A
CN110728279A CN201910820836.9A CN201910820836A CN110728279A CN 110728279 A CN110728279 A CN 110728279A CN 201910820836 A CN201910820836 A CN 201910820836A CN 110728279 A CN110728279 A CN 110728279A
Authority
CN
China
Prior art keywords
digital
image
water meter
machine vision
embedded platform
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
CN201910820836.9A
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.)
Nanjing Tech University
Original Assignee
Nanjing Tech University
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 Nanjing Tech University filed Critical Nanjing Tech University
Priority to CN201910820836.9A priority Critical patent/CN110728279A/en
Publication of CN110728279A publication Critical patent/CN110728279A/en
Pending legal-status Critical Current

Links

Images

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/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • 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
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/751Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a water meter digital identification method based on embedded platform machine vision, which comprises the following steps: A. acquiring a gray image on an openMV platform; B. b, performing Gaussian filtering and binarization on the image obtained in the step A; C. intercepting a digital area from the picture preprocessed in the step B; D. accurately determining the position of the digital character in the obtained digital area by using a vertical projection and horizontal projection method, and segmenting the digital character; E. searching the optimal matching of the five digital characters in a template which is manufactured in advance respectively; F. determining the number of each digit according to the value of the area ordinate returned by template matching; G. the water meter digital identification method based on the embedded platform machine vision carries out the image identification step at the terminal, and reduces the transmission quantity of data compared with the method for realizing digital identification at the server side by returning the image.

Description

Water meter digital identification method based on embedded platform machine vision
Technical Field
The invention relates to the technical field of PCB (printed circuit board) manufacturing, in particular to a water meter digital identification method based on embedded platform machine vision.
Background
With the development of computer technology and image recognition technology, artificial intelligence technology is gradually applied in people's production and life. As is known, human senses external information, more than 80% of the external information is realized through a visual way, and an image is used as a main carrier of information, so that the key of information acquisition is an image technology, and therefore, the wide application of an image information processing technology is a necessary development trend. The development achievement of the image processing technology is remarkable, the intelligent tool with the image recognition technology is used, the safety of work can be guaranteed, and labor can be liberated from complicated physical labor, so that the production efficiency is greatly improved.
In order to manage the water consumption of urban residents conveniently, the urban water supply department installs an in-house mechanical water meter for each resident, monitors the water consumption of the resident, and collects the water fee according to the water consumption. At present, water supply departments or enterprises employ special meter readers to read the readings of the water meters, and the readings are taken once a month. The manual meter reading has natural defects, and firstly, for a large city, a large number of meter reading personnel need to be employed, so that the labor cost and the time cost are not small. Secondly, manual meter reading is inevitable, errors can occur, the phenomenon of error reading is difficult to stop, paper data needs to be sorted, and the method is a task which is time-consuming, labor-consuming and prone to errors. Finally, manual meter reading is not real-time enough, and water consumption conditions of residents or enterprises cannot be mastered in time, so that emergency conditions such as severe water leakage and water stealing cannot be handled in time, and serious loss is brought to water supply departments.
With the development of monitoring technology and computer technology, remote automatic meter reading becomes possible. The camera direct-reading water meter is one of the technical schemes, a miniature camera is additionally arranged on a traditional water meter, the dial plate of the water meter is shot at regular time and is transmitted to a server, then image analysis is carried out on the dial plate image at the server, the reading of the water meter is automatically identified, and thus remote automatic meter reading is completed. The scheme does not need to replace the original water meter, and the image data can be used as a reserved certificate, so that the scheme is widely popular in the market.
The template matching (Tempte Mactch) method is one of the most commonly used methods in image recognition methods, and is characterized by extracting a plurality of characteristic quantities in an image or an area of the image to be recognized, comparing the extracted characteristic quantities with corresponding characteristic quantities in a template one by one, and finding the one with the maximum correlation quantity by calculating normalized correlation quantities between the extracted characteristic quantities and the corresponding characteristic quantities, namely, the one with the maximum correlation quantity represents the highest similarity between the characteristic quantities, so that the image can be classified into the corresponding class. In the invention, only the digital characters need to be recognized, so the template matching recognition algorithm has the characteristics of high efficiency and high speed.
The template matching usually establishes a standard template library, the standard template in the library is usually a digital template and needs binarization processing, and the size of each character template in the library is uniform, and before the template matching, the character image is usually required to be standardized to be the same as the size of the template. At present, a template matching method is generally adopted to identify a general print character, and a template matching algorithm is to match a standardized digital character image with a template character one by one to obtain a corresponding matching similarity.
Template matching can be used for recognition of print characters because of the advantages of loss of character images, strong anti-interference capability of stains and high recognition rate when characters are regular. After the water meter digital character image is subjected to the series of processing, the character characteristics of the digital character image are well reserved and highlighted, the water meter digital characters are identified by using a template matching algorithm, and the digital characters of the water meter can be efficiently and accurately identified.
However, in addition to normal single-character image recognition, due to the structural characteristics of the water meter, half-character situations of different degrees often occur in the reading process. Half word recognition is one of the difficulties in water meter reading recognition, and a good recognition algorithm is not available all the time.
In order to be able to recognize halfwords, the following methods are often used in the research efforts that exist today: firstly, the digital area of the half word needs to be divided, and a block with larger occupied area is selected for continuous recognition. In the segmentation stage, firstly, the original image is subjected to binarization processing, the original image becomes two areas with obvious white intervals, and the image can be seen to contain obvious blank areas. And then, acquiring the optimal segmentation position by editing the image pixel points. After the segmentation, the part with larger area is selected for subsequent identification. In the identification process, the identification accuracy is reduced due to certain loss of the characteristic points of the half-word picture.
Therefore, the invention adopts a special template matching method: ten standard digital templates with uniform size are converted into a digital template with a continuous character wheel. And according to the positioning, intercepting a certain digit in the image acquired by the camera, matching in the template, and returning to the corresponding position if the matching is successful. According to the preset position class, the reading can be determined through the position information. The invention has the advantages that: the problem of low half-word recognition rate is better solved, and the whole word and the half word do not need to be distinguished in advance for recognition.
Disclosure of Invention
The invention aims to provide a water meter digital identification method based on embedded platform machine vision so as to solve the problems in the background technology.
In order to realize the purpose, the invention provides the following technical scheme:
a water meter digital identification method based on embedded platform machine vision comprises the following steps:
A. acquiring a gray image on an openMV platform;
B. b, performing Gaussian filtering and binarization on the image obtained in the step A;
C. intercepting a digital area from the picture preprocessed in the step B;
D. accurately determining the position of the digital character in the obtained digital area by using a vertical projection and horizontal projection method, and segmenting the digital character;
E. searching the optimal matching of the five digital characters in a template which is manufactured in advance respectively;
F. determining the number of each digit according to the value of the area ordinate returned by template matching;
G. and transmitting the identified numbers back to the server side.
As a further scheme of the invention: the step A is specifically as follows: in the module sensor, the functions reset (), set _ pixformat (), and set _ frame () are called to set the parameters of the camera as: grayscale, picture size QQVGA (160 × 120), turn off auto gain, turn off auto white balance.
As a still further scheme of the invention: the step B is specifically as follows: the acquired image is an image object, a gaussian () function in an image module is called to eliminate noise in the image, then a kernel _ filter () kernel filtering function is called to sharpen digital edges, wherein the kernel is
Figure BDA0002186578890000031
And determining a binarization threshold value according to the position of the LED lamp source in the internal space of the specific mounting box, and performing binarization processing on the image object.
As a still further scheme of the invention: the step C is specifically as follows: in the picture preprocessed in the step B, a copy () function in an image module is used for taking a proper ROI to cut out a digital area, and the digital area is assigned to a brand-new image object.
As a still further scheme of the invention: the step E is specifically as follows: and D, respectively taking the five image objects obtained in the step D as templates, and searching for the optimal matching in the picture made in advance.
As a still further scheme of the invention: the step E is specifically as follows: and E, determining the number of each digit according to the value of the area ordinate returned by the template matching in the step E, and combining the numbers into a five-digit number.
As a still further scheme of the invention: and G, finishing digital transmission through GPRS.
Compared with the prior art, the invention has the beneficial effects that: the water meter digital identification method based on the embedded platform machine vision carries out the image identification step at the terminal, reduces the transmission quantity of data compared with the method of realizing digital identification at the server side by returning the image, perfectly solves the problem of half words and is convenient to realize.
Drawings
Fig. 1 is a diagram of a digital remote water meter identification technology system based on embedded platform machine vision.
Fig. 2 is a program flow diagram.
Figure 3 is a water meter digital template corresponding to the sample graph.
FIG. 4 is a schematic illustration of identifying a template location.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Example 1: referring to fig. 1-4, to achieve the above object, the present invention provides the following technical solutions:
a water meter digital identification method based on embedded platform machine vision comprises the following steps:
A. and acquiring a gray image on an openMV platform.
In the module sensor, the functions of reset (), set _ pixformat (), set _ frame size () and the like are called to set the parameters of the camera head as follows: grayscale, picture size QQVGA (160 × 120), turn off auto gain, turn off auto white balance.
B. And B, performing Gaussian filtering and binarization on the image obtained in the step A:
and B, the image acquired in the step A is an image object, and a gaussian () function in an image module is called to eliminate noise in the image. Then, the kernel _ filter () kernel filter function is called to sharpen the digital edge, with kernel being. And determining a binarization threshold value according to the position of the LED lamp source in the internal space of the specific mounting box, and performing binarization processing on the image object.
C. In the picture preprocessed in the step B, a copy () function in an image module is used for taking a proper ROI to cut out a digital area, and the digital area is assigned to a brand-new image object.
D. And accurately determining the position of the digital character by utilizing a vertical projection method and a horizontal projection method for the obtained digital area, and segmenting the digital character.
E. Five accurate digital image objects are obtained in step D. The five image objects are respectively used as 'templates' to search for the optimal match in the picture (see figure 4) made in advance.
F. And E, determining the number of each digit according to the value of the area ordinate returned by template matching in the step E, and combining the numbers into a five-digit number.
G. And transmitting the identified numerical value back to the server side.
Embodiment 2, on the basis of embodiment 1, step G completes digital transmission through GPRS, and GPRS signals have high transmission speed, stable transmission, and convenient use.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (7)

1. A water meter digital identification method based on embedded platform machine vision is characterized by comprising the following steps:
A. acquiring a gray image on an openMV platform;
B. b, performing Gaussian filtering and binarization on the image obtained in the step A;
C. intercepting a digital area from the picture preprocessed in the step B;
D. accurately determining the position of the digital character in the obtained digital area by using a vertical projection and horizontal projection method, and segmenting the digital character;
E. searching the optimal matching of the five digital characters in a template which is manufactured in advance respectively;
F. determining the number of each digit according to the value of the area ordinate returned by template matching;
G. and transmitting the identified numbers back to the server side.
2. The digital identification method for the water meter based on the embedded platform machine vision as claimed in claim 1, wherein the step A is specifically as follows: in the module sensor, the functions reset (), set _ pixformat (), and set _ frame () are called to set the parameters of the camera as: grayscale, picture size QQVGA (160 × 120), turn off auto gain, turn off auto white balance.
3. The digital identification method for the water meter based on the embedded platform machine vision as claimed in claim 1, wherein the step B is specifically as follows: the acquired image is an image object, a gaussian () function in an image module is called to eliminate noise in the image, then a kernel _ filter () kernel filtering function is called to sharpen a digital edge, wherein the kernel is
Figure FDA0002186578880000011
And determining a binarization threshold value according to the position of the LED lamp source in the internal space of the specific mounting box, and performing binarization processing on the image object.
4. The digital identification method for the water meter based on the embedded platform machine vision according to claim 1, characterized in that the step C is specifically as follows: in the picture preprocessed in the step B, a copy () function in an image module is used for taking a proper ROI to cut out a digital area, and the digital area is assigned to a brand-new image object.
5. The digital identification method for the water meter based on the embedded platform machine vision according to claim 1, characterized in that the step E is specifically as follows: and D, respectively taking the five image objects obtained in the step D as templates, and searching for the optimal matching in the picture made in advance.
6. The digital identification method for the water meter based on the embedded platform machine vision according to any one of claims 1 to 5, characterized in that the step E is specifically as follows: and E, determining the number of each digit according to the value of the area ordinate returned by the template matching in the step E, and combining the numbers into a five-digit number.
7. The method for identifying the number of the water meter based on the embedded platform machine vision is characterized in that the step G completes the number transmission through GPRS.
CN201910820836.9A 2019-08-30 2019-08-30 Water meter digital identification method based on embedded platform machine vision Pending CN110728279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910820836.9A CN110728279A (en) 2019-08-30 2019-08-30 Water meter digital identification method based on embedded platform machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910820836.9A CN110728279A (en) 2019-08-30 2019-08-30 Water meter digital identification method based on embedded platform machine vision

Publications (1)

Publication Number Publication Date
CN110728279A true CN110728279A (en) 2020-01-24

Family

ID=69218807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910820836.9A Pending CN110728279A (en) 2019-08-30 2019-08-30 Water meter digital identification method based on embedded platform machine vision

Country Status (1)

Country Link
CN (1) CN110728279A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112149655A (en) * 2020-09-28 2020-12-29 怀化建南机器厂有限公司 Water meter reading identification method, device, equipment and storage medium
CN112818993A (en) * 2020-03-30 2021-05-18 深圳友讯达科技股份有限公司 Character wheel reading meter end identification method and equipment for camera direct-reading meter reader
CN113673486A (en) * 2021-10-21 2021-11-19 泰豪软件股份有限公司 Meter reading identification method and device, readable storage medium and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055619A (en) * 2007-05-11 2007-10-17 刘军海 Image identification method and device for mechanical instrument window display figure
CN109543676A (en) * 2018-11-08 2019-03-29 中国电力科学研究院有限公司 A kind of print-wheel type water meter Number character recognition method based on image procossing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055619A (en) * 2007-05-11 2007-10-17 刘军海 Image identification method and device for mechanical instrument window display figure
CN109543676A (en) * 2018-11-08 2019-03-29 中国电力科学研究院有限公司 A kind of print-wheel type water meter Number character recognition method based on image procossing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李乾坤: "基于模板匹配的水表读数识别方法研究", 《硕士电子期刊》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818993A (en) * 2020-03-30 2021-05-18 深圳友讯达科技股份有限公司 Character wheel reading meter end identification method and equipment for camera direct-reading meter reader
CN112149655A (en) * 2020-09-28 2020-12-29 怀化建南机器厂有限公司 Water meter reading identification method, device, equipment and storage medium
CN113673486A (en) * 2021-10-21 2021-11-19 泰豪软件股份有限公司 Meter reading identification method and device, readable storage medium and computer equipment

Similar Documents

Publication Publication Date Title
CN109829914B (en) Method and device for detecting product defects
AU2020103716A4 (en) Training method and device of automatic identification device of pointer instrument with numbers in natural scene
CN106960208B (en) Method and system for automatically segmenting and identifying instrument liquid crystal number
CN111931627A (en) Vehicle re-identification method and device based on multi-mode information fusion
CN110728279A (en) Water meter digital identification method based on embedded platform machine vision
CN105574161B (en) A kind of brand logo key element recognition methods, device and system
CN112149667A (en) Method for automatically reading pointer type instrument based on deep learning
CN110991437B (en) Character recognition method and device, training method and device for character recognition model
CN111079763A (en) Training sample generation, model training, character recognition method and device thereof
CN116758045B (en) Surface defect detection method and system for semiconductor light-emitting diode
CN111178282A (en) Road traffic speed limit sign positioning and identifying method and device
CN115880683B (en) Urban waterlogging ponding intelligent water level detection method based on deep learning
CN113657339A (en) Instrument pointer counting and reading method and medium based on machine vision
CN109241948A (en) A kind of NC cutting tool visual identity method and device
CN112528954A (en) Certificate image character extraction method
CN109508714B (en) Low-cost multi-channel real-time digital instrument panel visual identification method and system
CN109145912A (en) A kind of digital instrument reading automatic identifying method
CN108133213A (en) A kind of embedded digital recognition methods imaged towards shell of gas meter formula
CN113420684A (en) Report recognition method and device based on feature extraction, electronic equipment and medium
CN115410174B (en) Two-stage vehicle insurance anti-fraud image acquisition quality inspection method, device and system
CN112699841A (en) Traffic sign detection and identification method based on driving video
CN116958031A (en) Defect detection method and related device
CN113505776A (en) Intelligent identification method and device for gas meter reading
CN111126315A (en) Method for automatically identifying picture of mobile phone photographing meter reading
CN111626299A (en) Outline-based digital character recognition method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200124

RJ01 Rejection of invention patent application after publication