CN106874908A - Coding detection method - Google Patents
Coding detection method Download PDFInfo
- Publication number
- CN106874908A CN106874908A CN201710030303.1A CN201710030303A CN106874908A CN 106874908 A CN106874908 A CN 106874908A CN 201710030303 A CN201710030303 A CN 201710030303A CN 106874908 A CN106874908 A CN 106874908A
- Authority
- CN
- China
- Prior art keywords
- coding
- character
- coding image
- image
- product
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
- G06V30/148—Segmentation of character regions
- G06V30/153—Segmentation of character regions using recognition of characters or words
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- General Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a kind of coding detection method, by founding coding image template, entering edlin to the coding image in the coding image template, character is decomposited from the coding image to be preserved as Character mother plate, record the corresponding coding batch of the coding image, the coding image gathered on product to be detected simultaneously, if by its with the coding template in coding image carry out images match, 40% < images match degree < 99.9% and carry out the steps such as optical character identification completing.The present invention carries out coding detection by the scheme of double matchings, Detection accuracy is higher, greatly improve the recall rate of coding, reduce false drop rate, robustness is stronger, detection is no longer solely focused on the problem of similarity, more stresses local message, and " similarity " only is not returned again to, but directly inform that what the result of user's coding is, if it is consistent with predetermined.
Description
Technical field
The present invention relates to a kind of coding detection method.
Background technology
Common images match can only return to a similarity, but during actual coding, because coding effect is received
Ink jet numbering machine model, ink jet numbering machine font, coding height, the flowing water linear velocity of ink jet numbering machine etc. influence, and always have one with coding template picture
A little different places, by setting a similarity weights, are then considered qualified higher than the weights, low to be taken as not conforming to
Lattice.
For these reasons, common images match cannot detect segmental defect, can also judge some defects by accident.Such as water
Horizontal drawing it is long 6 and 8 the only poor point of dot matrix image, but its similarity is very high, may result in missing inspection;And level draws " fat "
8 to " it is thin " and 8 again less it is similar, cause the situation for flase drop occur;For another example, the oblique grade of the character font of the coding for typing it out lacks
Falling into cannot all obtain a good testing result.
The content of the invention
The purpose of the present invention is the easy missing inspection of coding images match detection method and the mistake that similarity is currently based on for solution
The technical problem of inspection.
In order to solve the above-mentioned technical problem, the present invention provides a kind of coding detection method, comprises the following steps:
(1)Found coding image template;
(2)Edlin is entered to the coding image in the coding image template, character conduct is decomposited from the coding image
Character mother plate is preserved, while recording the corresponding coding batch of the coding image;
(3)The coding image on product to be detected is gathered, it is carried out into images match with the coding image in the coding template;
(4)If images match degree the first preset values of >, judge that detection is qualified;If images match degree the second preset values of <, sentence
Regular inspection is surveyed unqualified;If second preset value < images match degree the first preset values of <, into next step;
(5)Enter edlin to the coding image on product to be detected, and according to the coding batch of coding image on product to be detected
Character is therefrom decomposited, the step of recalling corresponding to the coding batch(2)Described in Character mother plate, will be sprayed from product to be detected
The character that code picture breakdown goes out carries out optical character and matches with the Character mother plate;
(6)If all characters that coding image is included on product to be detected are with the Character mother plate, and the match is successful, inspection is judged
It is qualified to survey;Otherwise, then judge that detection is unqualified.
Further, the step(2)In also record character arrangements that coding image in the coding batch included into
Line number and columns.
Further, step(5)Described in optical character match when, the institute included to coding image on product to be detected
There is character to be matched one by one, matching result is obtained by returning to each character numerical value, if the character numerical value and the character that return
Character numerical value in template is consistent, then the match is successful.
Further, the step(3)In, the coding image on product to be detected is gathered in the following manner:
When product to be detected passes through the photoelectrical position sensor in production line, the camera of triggering alignment coding shoots to be treated
Coding image on detection product.
Further, step(4)Described in the first preset value be 99.9%, second preset value be 40%.
The present invention carries out coding detection by the scheme of double matchings, and Detection accuracy is higher, greatly improves the inspection of coding
Extracting rate, reduction false drop rate, robustness are stronger, and detection is no longer solely focused on the problem of similarity, more stresses local message, no longer
" similarity " only is returned, but directly informs that what the result of user's coding is, if be consistent with predetermined.
Although coding be usually to be combined by 52 letters (capital and small letter), 10 numerals and some basic symbol arrangements and
Into, but ink jet numbering machine species is a lot, and font type is more, and new font can be downloaded on the net, therefore directly takes a set of
Ready-made OCR is insecure as template, and ink jet numbering machine height, flowing water linear velocity are different, and coding is printed under identical font
The effect for going out is entirely different.The present invention generates a set of for OCR in real time according to the template image for collecting(Optical character identification)
Character mother plate, so as to avoid the problem that font is various, technique different band is come, this is that do not had in the past.
Brief description of the drawings
Fig. 1 is coding schematic layout pattern;
Fig. 2 is coding detects schematic diagram.
In figure:Product to be detected 1;Coding 2;Production line 3;Coding detector 4.
Specific embodiment
Presently in connection with drawings and Examples, the present invention is further detailed explanation.These accompanying drawings are simplified signal
Figure, only illustrates basic structure of the invention in a schematic way, therefore it only shows the composition relevant with the present invention, and it should not be managed
It is limitation of the present invention to solve.
As shown in Figure 1-2, coding detection method of the invention, comprises the following steps:
(1)Found coding image template;
(2)Edlin is entered to the coding image in coding image template, character is decomposited from coding image as Character mother plate
Preserved, while recording the corresponding coding batch of coding image;
(3)The coding image on product to be detected 1 is gathered, it is carried out into images match with the coding image in coding template;
(4)If images match degree the first preset values of >, such as 99.9%, then judge that detection is qualified;If images match degree < second presets
Value, such as 40%, then judge that detection is unqualified;If 40% < images match degree < 99.9%, into next step;And the first preset value
Concrete numerical value with the second preset value can be adjusted according to actually detected situation, it is not limited to 99.9% and 40%;
(5)Enter edlin to the coding image on product to be detected, and according to the coding batch of coding image on product to be detected
Character is therefrom decomposited, the step of recalling corresponding to the coding batch(2)Middle Character mother plate, will be from coding figure on product to be detected
Matched as the character for decompositing carries out optical character with Character mother plate;
(6)If the match is successful with Character mother plate for all characters that coding image is included on product to be detected, judge that detection is closed
Lattice;Otherwise, then judge that detection is unqualified.
Preferably, step(2)In also record character arrangements that coding image in coding batch included into line number and row
Number.
Preferably, step(5)When middle optical character is matched, all characters included to coding image on product to be detected
Matched one by one, matching result is obtained by returning to each character numerical value, if the word in the character numerical value for returning and Character mother plate
Symbol numerical value is consistent, then the match is successful.
Preferably, step(3)In, the coding image on product to be detected is gathered in the following manner:
When product to be detected passes through the photoelectrical position sensor in production line 3, the camera of triggering alignment coding 2 shoots
Coding image on product to be detected.
Coding detector 4 pairs in production line 3 is carried out in real time by the coding 2 on product to be detected 1 below
The double matching detections of image and optical character, the recall rate of coding 2 is high, false drop rate is low, strong robustness.
With above-mentioned according to desirable embodiment of the invention as enlightenment, by above-mentioned description, relevant staff is complete
Various changes and amendments can be carried out without departing from the scope of the technological thought of the present invention' entirely.The technology of this invention
Property scope is not limited to the content on specification, it is necessary to its technical scope is determined according to right.
Claims (5)
1. coding detection method, it is characterised in that comprise the following steps:
(1)Found coding image template;
(2)Edlin is entered to the coding image in the coding image template, character conduct is decomposited from the coding image
Character mother plate is preserved, while recording the corresponding coding batch of the coding image;
(3)The coding image on product to be detected is gathered, it is carried out into images match with the coding image in the coding template;
(4)If images match degree the first preset values of >, judge that detection is qualified;If images match degree the second preset values of <, sentence
Regular inspection is surveyed unqualified;If second preset value < images match degree the first preset values of <, into next step;
(5)Enter edlin to the coding image on product to be detected, and according to the coding batch of coding image on product to be detected
Character is therefrom decomposited, the step of recalling corresponding to the coding batch(2)Described in Character mother plate, will be sprayed from product to be detected
The character that code picture breakdown goes out carries out optical character and matches with the Character mother plate;
(6)If all characters that coding image is included on product to be detected are with the Character mother plate, and the match is successful, inspection is judged
It is qualified to survey;Otherwise, then judge that detection is unqualified.
2. coding detection method according to claim 1, it is characterised in that the step(2)In also record the coding
The character arrangements that coding image is included in batch into line number and columns.
3. coding detection method according to claim 2, it is characterised in that step(5)Described in optical character match when,
All characters that coding image on product to be detected is included are matched one by one, is matched by returning to each character numerical value
As a result, if the character numerical value for returning is consistent with the character numerical value in the Character mother plate, the match is successful.
4. the coding detection method according to claim any one of 1-3, it is characterised in that the step(3)In, by with
Under type gathers the coding image on product to be detected:
When product to be detected passes through the photoelectrical position sensor in production line, the camera of triggering alignment coding shoots to be treated
Coding image on detection product.
5. coding detection method according to claim 1, it is characterised in that step(4)Described in the first preset value be
99.9%, second preset value is 40%.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710030303.1A CN106874908A (en) | 2017-01-17 | 2017-01-17 | Coding detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710030303.1A CN106874908A (en) | 2017-01-17 | 2017-01-17 | Coding detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106874908A true CN106874908A (en) | 2017-06-20 |
Family
ID=59157543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710030303.1A Pending CN106874908A (en) | 2017-01-17 | 2017-01-17 | Coding detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106874908A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109543677A (en) * | 2018-11-08 | 2019-03-29 | 上海金啤包装检测科技有限公司 | The detection method and equipment of coding, production line, computer equipment, storage medium |
CN109559308A (en) * | 2018-11-29 | 2019-04-02 | 太原理工大学 | Liquid crystal display panel polaroid coding detection method and device based on machine vision |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103150564A (en) * | 2013-03-28 | 2013-06-12 | 冶金自动化研究设计院 | Plate surface code spraying character recognition device and method thereof |
CN203365344U (en) * | 2013-05-23 | 2013-12-25 | 广州弥特软件科技有限公司 | Image type spray code detection device |
EP2830024A1 (en) * | 2012-03-22 | 2015-01-28 | Glory Ltd. | System for reading paper sheet serial number, and method for reading paper sheet serial number |
CN106295456A (en) * | 2016-08-18 | 2017-01-04 | 河北省自动化研究所 | Edible oil vessel surface laser coding detection device and detection method |
-
2017
- 2017-01-17 CN CN201710030303.1A patent/CN106874908A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2830024A1 (en) * | 2012-03-22 | 2015-01-28 | Glory Ltd. | System for reading paper sheet serial number, and method for reading paper sheet serial number |
CN103150564A (en) * | 2013-03-28 | 2013-06-12 | 冶金自动化研究设计院 | Plate surface code spraying character recognition device and method thereof |
CN203365344U (en) * | 2013-05-23 | 2013-12-25 | 广州弥特软件科技有限公司 | Image type spray code detection device |
CN106295456A (en) * | 2016-08-18 | 2017-01-04 | 河北省自动化研究所 | Edible oil vessel surface laser coding detection device and detection method |
Non-Patent Citations (1)
Title |
---|
XIAOGUANFANX: "喷码在线检测系统", 《HTTPS://WENKU.BAIDU.COM/VIEW/5E7A1B6F561252D380EB6E9C.HTML》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109543677A (en) * | 2018-11-08 | 2019-03-29 | 上海金啤包装检测科技有限公司 | The detection method and equipment of coding, production line, computer equipment, storage medium |
CN109559308A (en) * | 2018-11-29 | 2019-04-02 | 太原理工大学 | Liquid crystal display panel polaroid coding detection method and device based on machine vision |
CN109559308B (en) * | 2018-11-29 | 2022-11-04 | 太原理工大学 | Machine vision-based liquid crystal panel polaroid code spraying detection method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106033544B (en) | Template matching-based test paper content area extraction method | |
CN104889063A (en) | Delivery sorting processing system | |
CN107862234A (en) | A kind of recognition methods of color bar code, electronic equipment and storage medium | |
CN109712162B (en) | Cable character defect detection method and device based on projection histogram difference | |
CN102332096A (en) | Video caption text extraction and identification method | |
CN109886978B (en) | End-to-end alarm information identification method based on deep learning | |
CN106611174A (en) | OCR recognition method for unusual fonts | |
CN109189965A (en) | Pictograph search method and system | |
CN110598566A (en) | Image processing method, device, terminal and computer readable storage medium | |
CN110414318A (en) | Container number recognition methods under large scene | |
CN106874908A (en) | Coding detection method | |
CN104331693A (en) | Symmetry detecting method and system of printing matter | |
CN106778717A (en) | A kind of test and appraisal table recognition methods based on image recognition and k nearest neighbor | |
CN112541504A (en) | Method for detecting single character target in text | |
CN106650696A (en) | Handwritten electrical element identification method based on singular value decomposition | |
CN106295620A (en) | Hair style recognition methods and hair style identification device | |
US20220051041A1 (en) | Method for processing image, electronic device, and storage medium | |
CN114187247A (en) | Ampoule bottle printing character defect detection method based on image registration | |
CN107958261B (en) | Braille point detection method and system | |
CN111931778B (en) | Method for recognizing print characters based on line and column segmentation | |
CN105138952A (en) | Answer sheet grading and paper marking system based on image mode | |
CN103605973B (en) | A kind of image character detection and identification method | |
CN116189212A (en) | Intelligent table identification and scoring method based on image | |
CN109034235A (en) | A kind of integrated SVM noise detection method based on multiple features | |
CN102262614A (en) | Longitudinal proofreading method and device |
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: 20170620 |
|
RJ01 | Rejection of invention patent application after publication |