CN104573600B - A kind of recognition methods based on static wheeled coding - Google Patents

A kind of recognition methods based on static wheeled coding Download PDF

Info

Publication number
CN104573600B
CN104573600B CN201310504146.5A CN201310504146A CN104573600B CN 104573600 B CN104573600 B CN 104573600B CN 201310504146 A CN201310504146 A CN 201310504146A CN 104573600 B CN104573600 B CN 104573600B
Authority
CN
China
Prior art keywords
code
coding
encoded
static
continuous
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
CN201310504146.5A
Other languages
Chinese (zh)
Other versions
CN104573600A (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.)
CHENGDU SANYU INSTRUMENT TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
CHENGDU SANYU INSTRUMENT TECHNOLOGY DEVELOPMENT 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 CHENGDU SANYU INSTRUMENT TECHNOLOGY DEVELOPMENT Co Ltd filed Critical CHENGDU SANYU INSTRUMENT TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201310504146.5A priority Critical patent/CN104573600B/en
Publication of CN104573600A publication Critical patent/CN104573600A/en
Application granted granted Critical
Publication of CN104573600B publication Critical patent/CN104573600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The high recognition methods based on static wheeled coding of simple and precision is decoded the invention discloses a kind of;The recognition methods includes coding step S and decoding step P, namely character wheel is currently presented in the continuous programming code information of scanning area by this method using static surface sweeping mode again by being encoded on character wheel, and coding information is converted to by square-wave signal using photo electric scanning, the width of square-wave signal is converted to by continuous data signal by single-chip microcomputer again, so as to realize accurate measurement, suitable for the angular surveying of wheeled target rotation, and this method has the advantages of decoding is simple, and the degree of accuracy is high.

Description

A kind of recognition methods based on static wheeled coding
Technical field
The invention belongs to Bar Code field, specifically disclose it is a kind of decode accurately and non-blind area based on static wheel The recognition methods of formula coding.
Background technology
In the prior art, character wheel coding information is generally acquired with barcode scanner, wherein barcode scanner principle System by scanner system, signal shaping, decoding three parts form.Scanning system is by optical system and optical-electrical converter group Into to complete optical scanner to bar code symbol, and by photodetector, the optical signal of bar code-bar null pattern being converted into Electric signal;Signal shaping part is amplified by signal, filtered, waveform shaping forms, and its function is the optoelectronic scanning of bar code Signal transacting turns into the square-wave signal of normal potential, and the width of its low and high level and the bar sky size of bar code symbol are corresponding; Decoding portion is typically made up of embedded microprocessor, and its function is exactly to enter row decoding to the square-wave signal of bar code, and it is tied Fruit is output to the data terminal in bar code application system by interface circuit.
In actual use, the scanner employs one-dimension code technology, and can not be realized for existing wheeled one-dimension code Decoding.As a patent document discloses a kind of circumference code channel decoding method judged based on absolute position(Publication No. CN103134532A), this method by rotating character wheel, then being scanned and corresponding code section character and then being added up with this, So as to obtain the cumulative code progress location determination in position by calculating.But the coding code channel described in this method is in practical application Middle detection " blind area " to be present, there is the imperfect problem of initial code in decoding when removing initial code.So as to can not character wheel accomplish that decoding is accurate Phenomenon that is true and avoiding non-blind area.
The content of the invention
In view of this, object of the present invention is to provide it is a kind of decode accurately and non-blind area based on the wheeled coding of static state Recognition methods, be directed to wheeled target rotation so as to solve and can not realize and completely decode and decode accurate technical problem.
In order to achieve the above object, the invention provides a kind of recognition methods based on static wheeled coding, including coding Step S and decoding step P, wherein, the decoding step P includes:
P1, with photoelectric scanner scanning continuous programming code containing black and white strip on the static character wheel, and the continuous volume Code has m positions code, and is converted to square-wave signal, wherein each code actual scanning width isWherein n is the sequence number of code each encoded, and 0<N≤a, a are each coding Code number, BW is theoretical sweep length;
P2, the width of square-wave signal is scaled by continuous data signal by single-chip microcomputer again, its specific steps includes:
P21, from middle part, selection left and right either direction finds code of continuous two codes for binary one successively, wherein, It is assumed that the end code of a upper coding and the initial code of this coding;
P22, step back again(a-2)Position area code, and judge whether the code that continuous two codes are binary one;
If P23, step P22 judged result are yes, described to step back(a-2)Position area code is the effective digital of coding Code;Otherwise step P21 is continued;
P24, the effective digital code in step P23 compared with the digital code numbering stored in single-chip microcomputer, it is final to read Go out current character wheel reading.
Preferably, the coding step S includes:
S1, the circumferential edges of character wheel are divided into ten equal portions, represent a coding per decile, " 0 " to " 9 " ten numerals according to Secondary correspondence each encodes, wherein the radian each encoded is 36 °;
S2, each coding is set to be made up of initial code, digital code and end code, wherein initial code and end generation Code is binary code " 1 ", is had between initial code and end code(a-2)Individual digital code, a are the code each encoded Number;
S3, each coding is divided into a equidistant region again, wherein radian corresponding to per region is 36 °/a, and every Black streaking is printed on individual region or informal voucher line to form coding information to combine, and wherein black and white bar code represents binary code respectively " 0 " and " 1 ".
Preferably, the width of the square-wave signal is the center zw according to each code actual scanning widthnCome It is determined that it calculates zwnFormula it is as follows:
Wherein n is the sequence number of the code each encoded, and m is the code number of the continuous programming code.
Preferably, the theoretical scanning overall width is the π R/ (10a) of BW=2, and R is the radius of character wheel, and a is the generation each encoded Yardage.
Further, the code of the sequence number n of the code each encoded, the code number a that each encodes and continuous programming code Number m meets:0 < n≤a≤m, and a > 2.
The beneficial effect of the present invention compared with prior art:By being encoded on character wheel to use static surface sweeping mode again Character wheel is currently presented in the continuous programming code information of scanning area, and coding information is converted to by rectangle using photo electric scanning Ripple signal, then the width of square-wave signal is converted to by continuous data signal by single-chip microcomputer, so as to realize accurate measurement, fit For the angular surveying of wheeled target rotation, and this method has the advantages of decoding is simple, and the degree of accuracy is high.
Brief description of the drawings
Fig. 1 is the flow chart of the recognition methods of the present invention based on static wheeled coding.
Fig. 2 is the particular flow sheet of the coding step of the recognition methods of the present invention based on static wheeled coding.
Fig. 3 is that the continuous programming code schematic diagram on character wheel is scanned described in Fig. 1.
Fig. 4 is the number axis schematic diagram of square wave information described in Fig. 1.
Fig. 5 is the particular flow sheet of step P2 in Fig. 1.
Fig. 6 is the scanning area schematic diagram of the embodiments of Fig. 5 mono-.
Fig. 7 is the scanning area schematic diagram of another embodiments of Fig. 5.
In figure, 100- character wheels, 101- codes, Q- scanning areas.
Embodiment
There is further understanding with understanding for ease of the technological means to the present invention and operation, hereby match somebody with somebody for embodiment Schema is closed, is described in detail as follows.
As depicted in figs. 1 and 2, the invention provides a kind of recognition methods based on static wheeled coding, including coding step Rapid S and decoding step P.Wherein, the coding step S includes:
S1, the circumferential edges of character wheel 100 are divided into ten equal portions, a coding, " 0 " to " 9 " ten numbers are represented per decile Word is corresponding in turn to each coding, wherein the radian each encoded is 36 °.
S2, each coding is set to be made up of initial code, digital code and end code, wherein initial code and end generation Code is binary code " 1 ", is had between initial code and end code(a-2)Individual digital code, a are the code each encoded Number.
S3, each coding is divided into a equidistant region again, wherein radian corresponding to per region is 36 °/a, and every Black streaking is printed on individual region or informal voucher line to form coding information to combine, and wherein black and white bar code represents binary code respectively " 0 " and " 1 ".
As shown in Figure 3 and Figure 4, the decoding step P includes:
P1, with photoelectric scanner scanning continuous programming code containing black and white strip on the static character wheel 100, and this is continuous Coding has m positions code 101, and is converted to square-wave signal, wherein each code actual scanning width isWherein n is the sequence number of code each encoded, and 0<N≤a, a are each coding Code number, BW is theoretical sweep length.Such as:The code number a each encoded is 6, each code actual scanning width For:
rw1=BW×cos(36°)≈BW×0.809,
rw2=BW × cos (30 °) ≈ BW × 0.866,
……
It can similarly obtain:
rw7=BW ... ..., rw12≈ BW × 0.866, rw13≈BW×0.809。
As shown in figure 4, the feature for the square-wave signal width that the scanner actual scanning comes out is narrow for middle wide both sides.
The width of the square-wave signal is the center zw according to each code actual scanning widthnTo determine, its Calculate zwnFormula it is as follows:
Wherein n is the sequence number of the code each encoded, and m is the code number of the continuous programming code.Such as:The generation each encoded Yardage a is 6, and the code number m for scanning the continuous programming code of gained is 13, and assumes the theoretical sweep length for the π R/ of BW=2 (10a)=1, then after single-chip microcomputer computing, the center of each code actual scanning width is drawn, shown in table 1 specific as follows.
Table 1 is the center distribution table of each code actual scanning width
P2, the width of square-wave signal is scaled by continuous data signal by single-chip microcomputer again, with reference to shown in Fig. 5, its Specific steps include:
P21, from middle part, selection left and right either direction finds code of continuous two codes for binary one successively, wherein, It is assumed that the end code of a upper coding and the initial code of this coding;
P22, step back again(a-2)Position area code, and judge whether the code that continuous two codes are binary one;
If P23, step P22 judged result are yes, described to step back(a-2)Position area code is the effective digital of coding Code;Otherwise step P21 is continued;
P24, the effective digital code in step P23 compared with the digital code numbering stored in single-chip microcomputer, it is final to read Go out current character wheel reading.Wherein table 2 is the digital code number table and is free of initial code and end code, table specific as follows Shown in 2.
Table 2 is the digital code(And be free of initial code and end code)Number table
Numeral Coding Numeral Coding Numeral Coding Numeral Coding Numeral Coding
0 1010 2 0100 4 0010 6 0001 8 0011
1 0101 3 1001 5 1100 7 1000 9 0110
Such as:The code number a each encoded is 6, and the code number m for scanning the continuous programming code of gained is 13, when character wheel turns When moving half, situation about enumerating between 0~1 numeral, specific verification process is as follows:
Citing 1:
Shown in reference picture 6, coding information generation after the scanning area Q is expressed as being close to wheel digital " 0 " on one side and read Code is 1110101101011, shown in table 1 specific as follows.
Table 3 is the code reordering table by taking 13 input bits as an example
Code 1 1 1 0 1 0 1 1 0 1 0 1 1
Sequence number D-6 D-5 D-4 D-3 D-2 D-1 D0 D1 D2 D3 D4 D5 D6
It is concretely comprised the following steps:
Step P21, D-4 and D-5 is simultaneously binary one, it is assumed that D-5 is the end code of upper one coding, and D-4 is this volume The initial code of code;
Step P22, postpone 4, be binary one during D1 with D2 differences;
Step P23, judge that coding information code " 0101 " corresponding to D-3~D0 is not valid code, then return to step P21 D-5 and D-6 are sought to the left while be binary one, it is assumed that D-5 is the end code of upper one coding, and D-4 is the starting generation of this coding Code;Step P22 is carried out again, be that is to say and is postponed 4 again, D0 and D1 are simultaneously binary one, and judge D3~D6 coding information generations Code " 1010 " is valid code.
Step P24, effective digital code compares with the digital code numbering shown in table 2, and final decoding obtains numeral 0.
Citing 2:
Shown in reference picture 7, coding information generation after the scanning area Q is expressed as deviateing wheel digital " 0 " on one side and read Code is 1101011010111, shown in table 4 specific as follows.
Table 4 is the code reordering table by taking 13 input bits as an example
Code 1 1 0 1 0 1 1 0 1 0 1 1 1
Sequence number D-6 D-5 D-4 D-3 D-2 D-1 D0 D1 D2 D3 D4 D5 D6
It is concretely comprised the following steps:
Step P21, D-1 and D0 is simultaneously binary one, it is assumed that D-1 is the end code of upper one coding, and D0 is this coding Initial code;
Step P22,4 are postponed, D5 and D6 are simultaneously binary one;
Step P23, judge that coding information code " 0101 " corresponding to D1~D4 is valid code;
Step P24, coding information code corresponding to D1~D4 and the digital code numbering shown in table 2 are compared, finally Decoding obtains numeral 1.
Can be seen that through the example above checking, the present invention can evade character wheel go between two numerals caused by misread or can not The phenomenon of reading.
Wherein, the theoretical sweep length is the π R/ (10a) of BW=2, and R is the radius of character wheel, and a is the code each encoded Number.
The sequence number n of the code each encoded, the code number a each encoded and continuous programming code code number m meet: 0 < n≤a≤m, and a > 2.
Character wheel is currently presented in scanning area by the present invention using static surface sweeping mode again by being encoded on character wheel Continuous programming code information, and coding information is converted to by square-wave signal using photo electric scanning, then by single-chip microcomputer by square The width of shape ripple signal is converted to continuous data signal, so as to realize accurate measurement, suitable for the angle of wheeled target rotation Measurement, and this method has the advantages of decoding is simple, and the degree of accuracy is high.
Only it is the preferred embodiment of the present invention in summary.It should be pointed out that come for one of ordinary skill in the art Say, under the premise without departing from the principles of the invention, some variations and modifications can also be made, these also should be regarded as belonging to the present invention Protection domain.

Claims (4)

1. a kind of recognition methods based on static wheeled coding, including coding step S and decoding step P, it is characterised in that described Decoding step P includes:
P1, with photoelectric scanner scanning continuous programming code containing black and white strip on the static character wheel (100), and the continuous volume Code has m positions code (102), and is converted to square-wave signal, wherein each code actual scanning width isWherein n is the sequence number of code each encoded, and 0<N≤a, a are each coding Code number, BW is theoretical sweep length;
P2, the width of square-wave signal is scaled by continuous data signal by single-chip microcomputer again, its specific steps includes:
P21, from middle part, selection left and right either direction finds code of continuous two codes for binary one successively, wherein it is assumed that The initial code of end code and this coding for upper one coding;
P22, (a-2) position code is stepped back again, and judge whether the code that continuous two codes are binary one;
It is described to step back effective digital code of (a-2) position code for coding if P23, step P22 judged result are yes;It is no Then continue step P21;
P24, the effective digital code in step P23 compared with the digital code numbering stored in single-chip microcomputer, final read is worked as Preceding character wheel reading;
The coding step S includes:
S1, the circumferential edges of character wheel (100) are divided into ten equal portions, a coding, " 0 " to " 9 " ten numerals are represented per decile Each coding is corresponding in turn to, wherein the radian each encoded is 36 °;
S2, each coding is set to be made up of initial code, digital code and end code, wherein initial code and end code is equal For binary code " 1 ", there is (a-2) individual digital code between initial code and end code, a is the code each encoded (101) number;
S3, each coding is divided into a equidistant region again, wherein radian corresponding to per region is 36 °/a, and in each area Black streaking or informal voucher line is printed on domain to form coding information to combine, wherein black and white bar code represent respectively binary code " 0 " and “1”。
2. the recognition methods according to claim 1 based on static wheeled coding, it is characterised in that the square-wave signal Width be center zw according to each code (101) actual scanning widthnTo determine, it calculates zwnFormula it is as follows:
Wherein n is the sequence number of the code each encoded, and m is the code of the continuous programming code Number.
3. the recognition methods according to claim 1 based on static wheeled coding, it is characterised in that the theoretical scanning is total Width is BW=2 π R/ (10a), and R is the radius of character wheel, and a is code (101) number each encoded.
4. the recognition methods based on static wheeled coding according to claims 1 to 3 any one, it is characterised in that institute State sequence number n, the code number a each encoded of the code (101) of each coding and code (101) number m of continuous programming code meets: 0 < n≤a≤m, and a > 2.
CN201310504146.5A 2013-10-24 2013-10-24 A kind of recognition methods based on static wheeled coding Active CN104573600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310504146.5A CN104573600B (en) 2013-10-24 2013-10-24 A kind of recognition methods based on static wheeled coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310504146.5A CN104573600B (en) 2013-10-24 2013-10-24 A kind of recognition methods based on static wheeled coding

Publications (2)

Publication Number Publication Date
CN104573600A CN104573600A (en) 2015-04-29
CN104573600B true CN104573600B (en) 2017-12-19

Family

ID=53089632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310504146.5A Active CN104573600B (en) 2013-10-24 2013-10-24 A kind of recognition methods based on static wheeled coding

Country Status (1)

Country Link
CN (1) CN104573600B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245535B (en) * 2016-11-19 2022-06-28 哈尔滨理工大学 Coding inner layer structure
CN110928996A (en) * 2019-11-29 2020-03-27 北大方正集团有限公司 Formula serial number checking system, method, device and computer readable storage medium
CN111368576B (en) * 2020-03-12 2023-04-21 成都信息工程大学 Global optimization-based Code128 bar Code automatic reading method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1493853A (en) * 2003-10-10 2004-05-05 杨俊志 Universal coding method of single loop absolute type angle coder
CN101476902A (en) * 2009-01-13 2009-07-08 常州大地测绘科技有限公司 Single-code channel absolute position encoding method
CN102003976A (en) * 2010-08-27 2011-04-06 中国科学院长春光学精密机械与物理研究所 Single-code channel absolute position coding method, decoding method and measuring device
CN202422192U (en) * 2011-12-30 2012-09-05 成都市三宇仪表科技发展有限公司 Coding print wheel for photoelectric direct-reading meter counter
CN103134532A (en) * 2013-02-07 2013-06-05 大连民族学院 Circumferential code channel coding and decoding method based on judgment to absolute position

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1493853A (en) * 2003-10-10 2004-05-05 杨俊志 Universal coding method of single loop absolute type angle coder
CN101476902A (en) * 2009-01-13 2009-07-08 常州大地测绘科技有限公司 Single-code channel absolute position encoding method
CN102003976A (en) * 2010-08-27 2011-04-06 中国科学院长春光学精密机械与物理研究所 Single-code channel absolute position coding method, decoding method and measuring device
CN202422192U (en) * 2011-12-30 2012-09-05 成都市三宇仪表科技发展有限公司 Coding print wheel for photoelectric direct-reading meter counter
CN103134532A (en) * 2013-02-07 2013-06-05 大连民族学院 Circumferential code channel coding and decoding method based on judgment to absolute position

Also Published As

Publication number Publication date
CN104573600A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104899630B (en) The coding/decoding method of colored QR codes
CN102999772B (en) A kind of decoding method of novel matrix formula Quick Response Code
JP5003225B2 (en) Code processing device
CN103778451B (en) The Quick Response Code of the specific pattern for carrying for designating unit position and distinguishing with background
CN101944187B (en) Two-dimensional micro code and processing method and device thereof
CN104573600B (en) A kind of recognition methods based on static wheeled coding
CN104732183A (en) One-dimensional barcode identification method based on image sampling line grey scale information analysis
CN107145810A (en) A kind of comprehensive bar code identifying device and method
CN103336938B (en) A kind of recognition methods based on one-dimensional bar code image
CN101093553A (en) 2D code system, and identification method
CN102799850A (en) Bar code recognition method and device
CN103870790A (en) Recognition method and device of two-dimensional bar code
CN102243712A (en) Generation method and system thereof for colored bar code, and analytic method and system thereof for colored bar code
CN104463059B (en) Reconstructing method when a detection figure is damaged in QR yards of identification
CN104715221A (en) Decoding method and system for ultra-low-contrast two-dimension code
CN102831373B (en) The data output method of multi-cascade coding
CN103034830B (en) Bar code decoding method and device
CN101916441B (en) Freeman chain code-based method for matching curves in digital image
CN114417904A (en) Bar code identification method based on deep learning and book retrieval system
CN109977715A (en) Two-dimensional code identification method and two dimensional code based on outline identification
AU2009202557A1 (en) QR code encoding method
CN101923632A (en) Maxi Code bar code decoding chip and decoding method thereof
CN102682293A (en) Method and system for identifying salient-point mould number of revolution-solid glass bottle based on images
CN110532826B (en) Bar code recognition device and method based on artificial intelligence semantic segmentation
CN101908133A (en) Method and device for decoding bar code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant