CN103699869B - Method and device for recognizing two-dimension codes - Google Patents

Method and device for recognizing two-dimension codes Download PDF

Info

Publication number
CN103699869B
CN103699869B CN201310742473.4A CN201310742473A CN103699869B CN 103699869 B CN103699869 B CN 103699869B CN 201310742473 A CN201310742473 A CN 201310742473A CN 103699869 B CN103699869 B CN 103699869B
Authority
CN
China
Prior art keywords
position sensing
tlv triple
quick response
response code
dimension code
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
CN201310742473.4A
Other languages
Chinese (zh)
Other versions
CN103699869A (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.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN201310742473.4A priority Critical patent/CN103699869B/en
Publication of CN103699869A publication Critical patent/CN103699869A/en
Application granted granted Critical
Publication of CN103699869B publication Critical patent/CN103699869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method and a device for recognizing two-dimension codes. The method comprises the following steps of: recognizing all position detection graphics from an acquired picture; searching out position detection graphic triples conforming to the composition characteristics of the two-dimension codes from all the position detection graphics, wherein the composition characteristics of the two-dimension codes comprise the fact that two shortest connecting lines in the three connecting lines formed among the position detection graphics in the position detection graphic triples are vertical to each other and equal in length; determining the areas of the two-dimension codes on the basis of the searched-out position detection graphic triples; recognizing information of the two-dimension codes from the determined areas of the two-dimension codes. The method and the device for recognizing the two-dimension codes provided by the invention have the advantages that fast and batch recognition of the information contained by the multiple two-dimension codes can be realized under the condition without the help of a camera.

Description

A kind of two-dimensional code identification method and device
Technical field
The present invention relates to mobile communication technology field, more specifically, it is related to a kind of two-dimensional code identification method and device.
Background technology
Qr (quick response, fast reaction) Quick Response Code is in 1994 by subsidiary of Japanese Toyota denso wave A kind of matrix two-dimensional code sign invented and begin to use.Not only information capacity is big, reliability is high for qr Quick Response Code, low cost, also Can represent that the kinds of words information such as Chinese character and image, its security and antiforge purpose are strong and very easy to use.Therefore, alive soon Start a large amount of use in the range of boundary.
At present, the information analysis of this Quick Response Code commonly used photographic head scanning two-dimension code image, thus obtain Quick Response Code In the information that comprises;This traditional Quick Response Code analysis mode, need to by scanning device in handss (typically mobile phone etc. movement sets Standby) photographic head be aligned two-dimension code image go scanning, parsing could obtain the information comprising in two-dimension code image, parse 2 D code information can be shown in scanning device.With the extensive application of Quick Response Code, the probability Quick Response Code in picture is also got over Come more, or even in a webpage, sometimes can comprise multiple Quick Response Codes.When this, if by the photographic head of scanning device Some problems occur: need using photographic head, Quick Response Code to be carried out if scanning is shot one by one to the Quick Response Code in webpage Scanning needs repeatedly adjustment to make shooting frame be directed at Quick Response Code could to identify Quick Response Code, operate be not very convenient and Needing to expend certain time, when there is multiple Quick Response Code in the page in addition it is also necessary to be scanned one by one, being inconvenient.Example As user passes by billboard, has multiple Quick Response Codes above, if user wants to obtain these 2 D code informations, needs to stop Singly scan to take out mobile phone, take considerable time.
Content of the invention
It is an object of the invention to proposing a kind of two-dimensional code identification method and device, can be in the not situation by photographic head Under, realize rapidly batch identification and go out the information that in picture, multiple Quick Response Codes are comprised.
According to an aspect of the invention, it is provided a kind of two-dimensional code identification method, comprising: know from acquired picture Do not go out each position sensing figure;The position spy meeting Quick Response Code component characteristic is searched out from each position sensing figure described Mapping shape tlv triple, described Quick Response Code component characteristic includes: the position sensing figure in described position sensing figure tlv triple it Between two the shortest lines of length are vertical in three lines being formed and equal length;Based on the position sensing figure being searched out Tlv triple, determines two-dimension code area;Parse 2 D code information from the two-dimension code area determined, wherein, determined There are multiple position sensing figure tlv triple being based in the two-dimension code area going out and comprise the two dimension that same position detects figure Code region and when one of two-dimension code area parses 2 D code information, not to untreated in the plurality of two-dimension code area Two-dimension code area is parsed.
According to an aspect of the invention, it is provided a kind of two-dimension code recognition device, comprising: position sensing Figure recognition mould Block, for identifying each position sensing figure from acquired picture;Search module, for from each position sensing described The position sensing figure tlv triple meeting Quick Response Code component characteristic is searched out, described Quick Response Code component characteristic includes: institute in figure State two the shortest lines of length in three lines being formed between the position sensing figure in position sensing figure tlv triple to hang down Straight and equal length;Quick Response Code determining module, for based on the position sensing figure tlv triple being searched out, determining Quick Response Code area Domain;Quick Response Code parsing module, for parsing 2 D code information from the two-dimension code area determined, wherein, is being determined There are multiple position sensing figure tlv triple being based in the two-dimension code area going out and comprise the two dimension that same position detects figure Code region and when one of two-dimension code area parses 2 D code information, not to untreated in the plurality of two-dimension code area Two-dimension code area is parsed.
Said method proposed by the present invention and device, identify all position sensing figures from picture;Obtain satisfaction two The position sensing figure tlv triple of dimension code component characteristic, can determine two dimension according to position sensing figure tlv triple from picture The representative region of code;The representative region of the Quick Response Code determining is carried out parsing the information obtaining that Quick Response Code comprises;The present invention proposes Two-dimensional code identification method and device do not need the auxiliary of photographic head, and rapidly batch identification can go out multiple Quick Response Code institutes The information comprising.
In order to realize above-mentioned correlation purpose, one or more aspects of the present invention include will be explained in and in right below The feature particularly pointing out in requirement.Description below and accompanying drawing are described in detail some illustrative aspects of the present invention.However, Some modes in the various modes of principle that the present invention only can be used of these aspects instruction.Additionally, it is contemplated that Including all these aspects and their equivalent.
Brief description
According to following detailed descriptions carrying out referring to the drawings, the above and other objects, features and advantages of the present invention will become Must become apparent from.In the accompanying drawings:
The flow chart that Fig. 1 shows the two-dimensional code identification method of embodiments of the invention;
Fig. 2 to Fig. 5 shows the schematic diagram of Quick Response Code component characteristic;
Fig. 6 shows the schematic diagram determining two-dimension code area;
Fig. 7 a to Fig. 7 g shows the schematic diagram detecting figure using scan box scan position;
Fig. 8 shows that tlv triple meets Quick Response Code component characteristic, but can not possibly form the tlv triple schematic diagram of Quick Response Code;
Fig. 9 shows another flow chart of the two-dimensional code identification method of embodiments of the invention;
Figure 10 shows the block diagram of the two-dimension code recognition device of embodiments of the invention.
Figure 11 shows another block diagram of the two-dimension code recognition device of embodiments of the invention.
Identical label indicates similar or corresponding feature or function in all of the figs.
Specific embodiment
Various aspects of the disclosure is described below.It is to be understood that teaching herein can be had with varied form Body embodies, and any concrete structure disclosed herein, function or both are only representational.Religion based on this paper Lead, those skilled in the art it is to be understood that one aspect disclosed herein can be realized independent of any other aspect, And the two or more aspects in these aspects can combine in various manners.It is, for example possible to use it is described in this paper Any number of aspect, realizes device or puts into practice method.Further, it is possible to use other structures, function or except described here One or more aspects outside or be not one or more aspects described herein 26S Proteasome Structure and Function, realize this device Or put into practice this method.Additionally, any aspect described herein can include at least one element of claim.
Each embodiment of the present invention is described below with reference to accompanying drawings.
The present invention proposes a kind of two-dimensional code identification method, and Fig. 1 shows the two-dimensional code identification method of embodiments of the invention Flow chart, including step:
S1, identify each position sensing figure from acquired picture;Specifically, it is possible to use third-party software All position sensing figures on (the zxing software such as increased income, it is a java class libraries of increasing income) identifying purpose webpage capture;
In an example of the present invention, described picture can be the photo of photographic head shooting or cutting of webpage Figure, or the picture in other sources.
After identifying each position sensing figure, proceed to step s2.
S2, search out the position sensing figure tlv triple meeting Quick Response Code component characteristic from each position sensing figure; Wherein, Quick Response Code component characteristic includes: three lines being formed between the position sensing figure in position sensing figure tlv triple Two the shortest lines of middle length are vertical and equal length.Specifically, term " position sensing figure tlv triple " refers to by three The position sensing graphics combine of position sensing figure composition.
For being better understood from Quick Response Code component characteristic, may be referred to shown in accompanying drawing 2, position sensing figure a, b, c;Wherein, The line of position sensing figure a, b is d1;The line of position sensing figure a, c is d2;The line of position sensing figure c, b is d3;D1 and d2 is the shortest in three lines 2, wherein, d1 and d2 equal length, and and d1 is vertical with d2;Quick Response Code is acceptable It is to carry out rotating the state obtaining as shown in Figures 3 to 5 on the basis of Fig. 2, can also be other states, do not show one by one in figure Example.
Specifically, search out the position sensing figure tlv triple meeting Quick Response Code component characteristic step can using but not It is limited in the following manner:
Set up the level right angle coordinate system of display screen place plane;Obtain x, the y-coordinate value of each position sensing figure;
X based on the three position sensing figures found out, y-coordinate value, according to the coordinate figure of each position sensing figure, It is calculated the length of three lines formed between the position sensing figure in position sensing figure tlv triple, and wherein long Spend the angle of two the shortest lines;
The angle of two the shortest lines of the length according to three lines and wherein length, from the position sensing being grouped In figure tlv triple, search out the position sensing figure tlv triple meeting Quick Response Code component characteristic.
It is understood that being also based on other reference points, set up the coordinate system differing with the present embodiment.
Proceed to step s3 after searching out the position sensing figure tlv triple meeting Quick Response Code component characteristic.
S3, based on the position sensing figure tlv triple determined, determine two-dimension code area;Wherein it is determined that Quick Response Code area Can adopt during domain but be not limited to following manner and determine:
Fig. 6 shows the schematic diagram determining two-dimension code area, for purposes of illustration only, with the qr Quick Response Code of standard as an example; Wherein, a, b, c are position sensing figure;Determine that the method for two-dimension code area includes step:
1) center of acquisition position sensing figure a and position sensing figure b center, apart from k2, obtain position sensing figure The center of a and vertical dimension k1 of position sensing figure a left side edge;Obtain position sensing figure b center and position sensing figure Vertical dimension k3 of shape b right side edge;
2) and obtain position sensing figure a center and position sensing figure c center apart from l2;Obtain position sensing The center of figure a and vertical dimension l1 of position sensing figure a top edge;Obtain position sensing figure c center and position sensing Vertical dimension l3 of figure c lower limb;
3) because the shape of qr Quick Response Code is a square, i.e. k1+k2+k3=l1+l2+l3, then according to l1+l2+l3 Can determine the representative region of Quick Response Code;As shown in the black thick dashed line frame of Fig. 6.
After determining two-dimension code area, proceed to step s4.
S4, in pending two-dimension code area choose a two-dimension code area.By the position sensing figure determined Shape tlv triple may have multiple, then the two-dimension code area determined there is also multiple, during selection, can according to certain order according to Secondary selection, for example from left to right, from top to bottom.
Next, proceeding to step s5.
S5, to judge whether that the position sensing figure tlv triple being based on comprises identical with selected two-dimension code area Position sensing figure two-dimension code area.For example, the position sensing figure tlv triple that selected two-dimension code area q is based on Comprise position sensing figure a, b, c, another two-dimension code area q1 comprises position sensing figure c, d, e then it represents that there is institute's base In position sensing figure tlv triple comprise the Quick Response Code area with selected two-dimension code area q identical position sensing figure c Domain q1.If it is judged that being yes, then enter step s6;If it is judged that being no, then enter step s7.
S6, judge whether to parse 2 D code information from one of two-dimension code area.Specifically judging whether There is the two dimension of identical position sensing figure from the position sensing figure tlv triple being based on and selected two-dimension code area Code region parses 2 D code information.If it is, entering step s8;Otherwise enter step s7.
S7, from selected two-dimension code area, parse 2 D code information;Proceed to step s9.
S8, the parsing abandoning to selected two-dimension code area;Proceed to step s9.
S9, judge whether also untreated two-dimension code area.If it is, proceeding to step s4;If it is not, then flow process knot Bundle.
Said method proposed by the present invention, identifies all position sensing figures from picture;Obtain and meet two-dimentional code character Become the position sensing figure tlv triple of characteristic, the generation of Quick Response Code can be determined according to position sensing figure tlv triple from picture Table section;The representative region of the Quick Response Code determining is carried out parsing the information obtaining that Quick Response Code comprises;Two dimension proposed by the present invention Code recognition methodss and device do not need the auxiliary of photographic head, and rapidly batch identification can go out what multiple Quick Response Codes were comprised Information.
It will be appreciated by those skilled in the art that, term " comprising " and " having " and their any deformation, meaning Figure is to cover non-exclusive comprising, and for example, contains process, method, system, product or the equipment of series of steps or unit Be not necessarily limited to those steps or the unit clearly listed, but may include clearly not listing or for these processes, Method, product or the intrinsic other steps of equipment or unit.
Wherein, in step s2, search out the position spy meeting Quick Response Code component characteristic from each position sensing figure During mapping shape tlv triple, can with using but be not limited to following 2 kinds of modes and search out the position sensing meeting Quick Response Code component characteristic Figure tlv triple:
Mode one: each position sensing figure is grouped into multiple position sensing figures three according to often ternary mode Tuple;Search out the position sensing figure tlv triple meeting according to Quick Response Code component characteristic.
Mode two: utilize scan box, according to the mode scanning line by line, each position sensing figure is grouped into multiple Position sensing figure tlv triple;From the position sensing figure tlv triple being grouped, search out and meet Quick Response Code component characteristic Position sensing figure tlv triple.
When employing mode two, for ease of understanding, below elaborate;Specifically, referring to Fig. 7 a to Fig. 7 c, this three width Figure is the schematic diagram being carried out using scan box during tlv triple packet;The size being configured and dimensioned to Quick Response Code of scan box, wherein, The size of Quick Response Code can rule of thumb be worth to;It is understood that the size of scan box can be carried out according to actual needs Adjustment.As Fig. 7 a, scanning inframe has three position sensing figures, judges whether a combination thereof meets Quick Response Code component characteristic, if so, Then store, otherwise abandon this combining form, in a progressive way, enter Fig. 7 b;Scanning inframe has three position sensings Figure, judges whether a combination thereof meets Quick Response Code component characteristic, if so, then stores, and otherwise abandons this combining form, according to line by line The mode of scanning, enters Fig. 7 c.
It is understood that when scan box size is larger, scan box pass through the position sensing figure that obtains of scanning have multiple, As shown in figure 7d, to have numbering is 1 to scanning inframe, 2,3,4,55 position sensing figures altogether, can form 10 kinds of tlv triple, sentence Whether disconnected each group tlv triple meets Quick Response Code component characteristic, if so, then stores, and otherwise abandons this combining form, according to line by line by The mode of column scan, enters Fig. 7 e.In Fig. 7 e, scanning inframe has 5 position sensing figures, can form 10 kinds of tlv triple, can To form 10 kinds of tlv triple, judge whether each group tlv triple meets Quick Response Code component characteristic, if so, then store, otherwise abandoning should Combining form, according to the mode scanning line by line, enters Fig. 7 f.In Fig. 7 f, scanning inframe has 5 position sensing figures, can To form 10 kinds of tlv triple, 10 kinds of tlv triple can be formed, judge whether each group tlv triple meets Quick Response Code component characteristic, if It is then to store, otherwise abandons the combining form of this tlv triple, according to the mode scanning line by line, enter Fig. 7 g.With such Push away, until all position sensing graph scannings are finished.
In one or more above-mentioned embodiment, searching out the position sensing figure meeting Quick Response Code component characteristic After tlv triple, although because some tlv triple meet Quick Response Code component characteristic, this tlv triple can not possibly form Quick Response Code, As shown in Figure 8 although the tlv triple of position sensing figure 1,4,6 composition meets Quick Response Code component characteristic, but position sensing Figure 1,4,6 can not possibly form Quick Response Code, if be also carried out parsing to this kind of position sensing figure tlv triple can exist The not high enough problem of efficiency, in order to improve efficiency, the present embodiment has done following improvement: meets Quick Response Code component characteristic searching out Position sensing figure tlv triple after, whether deposit between two position sensing figures judging the arbitrary line in two lines Detect figure in other positions;Judge formation between the position sensing figure in searched out position sensing figure tlv triple Article three, between the two position sensing figures of arbitrary line in two the shortest lines of length in line, whether there is other positions Put detection figure, when it is present, delete corresponding position sensing figure tlv triple;When not existing, based on the position being searched out Put detection figure tlv triple, determine two-dimension code area.
In one embodiment, improved based on Fig. 1 embodiment, the reality of two-dimensional code identification method proposed by the present invention Apply flow process and refer to Fig. 9, Fig. 9 is another flow chart of the embodiment of the present invention, comprising:
As shown in figure 9, in s901, identifying each position sensing figure from acquired picture;Then walked Rapid s902.
In s902, search out the position sensing figure three meeting Quick Response Code component characteristic from each position sensing figure Tuple;Carry out step s903.
In s903, judge to whether there is other positions between two position sensing figures of the arbitrary line in two lines Put detection figure;Judge three lines being formed between the position sensing figure in searched out position sensing figure tlv triple Whether there is other positions between two position sensing figures of arbitrary line in two the shortest lines of middle length and detect figure Shape, when it is present, carries out step s904;When not existing, carry out step s905.
In s904, delete corresponding position sensing figure tlv triple;
In s905, based on the position sensing figure tlv triple being searched out, determine two-dimension code area;
In s906, two-dimension code area is carried out parsing the information obtaining that Quick Response Code comprises.
In an example of the present invention, the size of scan box can be arranged it is also possible to make system automatic manually by user Adjustment.Scan box, can also be moved manually, and when required, can change the position of scan box according to manual operation.
Present invention also offers a kind of two-dimension code recognition device, Figure 10 shows the two-dimension code recognition device 100 of the present invention Block diagram.
As illustrated, described two-dimension code recognition device 100 includes: position sensing pattern recognition module 101, for from being obtained Each position sensing figure is identified in the picture taking;Search module 102, for searching out symbol from each position sensing figure Close the position sensing figure tlv triple of Quick Response Code component characteristic;Wherein, Quick Response Code component characteristic includes: position sensing figure ternary In three lines being formed between position sensing figure in group, two the shortest lines of length are vertical and equal length;Quick Response Code Determining module 103, for based on the position sensing figure tlv triple determined, determining two-dimension code area;Quick Response Code parses mould Block 104, for parsing 2 D code information from the two-dimension code area determined;Judge module 105, for judge really Have in the two-dimension code area made whether multiple position sensing figure tlv triple being based on comprise same position detection figure Two-dimension code area and parse 2 D code information from one of two-dimension code area;When judged result is to be, described two dimension Code parsing module does not parse to the untreated two-dimension code area in the plurality of two-dimension code area.
Said method proposed by the present invention, identifies all position sensing figures from acquired picture;Obtain and meet The position sensing figure tlv triple of Quick Response Code component characteristic, can determine two according to position sensing figure tlv triple from picture The representative region of dimension code;The representative region of the Quick Response Code determining is carried out parsing the information obtaining that Quick Response Code comprises;The present invention carries The two-dimensional code identification method going out and device do not need the auxiliary of photographic head, and rapidly batch identification can go out multiple Quick Response Codes The information being comprised.
In one or more embodiment of the present invention, in order to reduce invalid tlv triple, improve Quick Response Code parsing effect Rate, invalid tlv triple refers to these tlv triple and can not possibly form Quick Response Code;Therefore, done following improvement, its block diagram Refer to Figure 11:
As shown in figure 11, two-dimension code recognition device 100 also includes removing module 106.Described removal module 106 is used in institute Two that in three lines being formed between position sensing figure in the position sensing figure tlv triple searching out, length is the shortest When there is other positions detection figure between two position sensing figures of the arbitrary line in line, remove this position sensing figure Shape tlv triple.
In one or more embodiment of the present invention, search module 102 is searched for from each position sensing figure Go out to meet Quick Response Code component characteristic position sensing figure tlv triple when, can with using but be not limited to following 2 kinds of modes and search out Meet the position sensing figure tlv triple of Quick Response Code component characteristic:
Each position sensing figure is grouped into multiple positions according to often ternary mode and visits by mode one, search module Mapping shape tlv triple;From the position sensing figure tlv triple being grouped, search out the position spy meeting Quick Response Code component characteristic Mapping shape tlv triple.
Each position sensing figure is grouped into multiple position sensing figure ternarys using scan box by mode two, search module Group;
From the position sensing figure tlv triple being grouped, search out the position sensing figure meeting Quick Response Code component characteristic Tlv triple.
In one or more embodiment of the present invention, search module 102 is from the position sensing figure three being grouped In tuple, when searching out the position sensing figure tlv triple meeting Quick Response Code component characteristic, obtain each position sensing figure X, y-coordinate value;
X based on the three position sensing figures found out, y-coordinate value, from the position sensing figure tlv triple being grouped In, search out the position sensing figure tlv triple meeting Quick Response Code component characteristic.
In one or more embodiment of the present invention, the size of scan box is arranged manually by user.
In one or more embodiment of the present invention, the size of scan box is selected according to Quick Response Code size.
Additionally, typically, the mobile terminal of the present invention can be the various hand-held terminal devices with Bluetooth function, for example, have There are mobile phone, the personal digital assistant (pda) of Bluetooth function.
Additionally, the method according to the invention is also implemented as by processor (such as cpu) execution in mobile terminal Computer program, and store in a memory in the mobile terminal.It is when executed by this computer program, execute basis The above-mentioned functions limiting in the method for invention.
Additionally, the method according to the invention is also implemented as a kind of computer program, this computer program Including computer-readable medium, it is stored with the computer-readable medium for executing limit in the method for the present invention above-mentioned The computer program of function.
Additionally, said method step and system unit can also utilize controller and make controller real for storage The computer readable storage devices of the computer program of existing above-mentioned steps or Elementary Function are realized.
Those skilled in the art will also understand is that, in conjunction with the various illustrative logical blocks described by disclosure herein, mould Block, circuit and algorithm steps may be implemented as electronic hardware, computer software or a combination of both.Hard in order to clearly demonstrate Part and this interchangeability of software, the function with regard to various exemplary components, square, module, circuit and step it is entered Go general description.This function is implemented as software and is also implemented as hardware depending on concrete application and applying Design constraint to whole system.Those skilled in the art can realize described in every way for every kind of concrete application Function, but this realize decision and should not be interpreted as causing a departure from the scope of the present.
Although content disclosed above shows the exemplary embodiment of the present invention, it should be noted that without departing substantially from power On the premise of profit requires the scope of the present invention limiting, may be many modifications and change.Real according to invention described herein Function, step and/or the action of applying the claim to a method of example are not required to execute with any particular order.Although additionally, the present invention Element with the description of individual form or can require, it is also contemplated that multiple, unless explicitly limited for odd number.
Although describing to be described according to each embodiment of the present invention above with reference to figure, people in the art Member should be appreciated that each embodiment that the invention described above is proposed, and can also do on the basis of without departing from present invention Go out various improvement.Therefore, protection scope of the present invention should be determined by the content of appending claims.

Claims (14)

1. a kind of two-dimensional code identification method, comprising:
Each position sensing figure is identified from acquired picture;
The position sensing figure tlv triple meeting Quick Response Code component characteristic is searched out from each position sensing figure described, described Quick Response Code component characteristic includes: in three lines being formed between the position sensing figure in described position sensing figure tlv triple Two the shortest lines of length are vertical and equal length;
Based on the position sensing figure tlv triple being searched out, determine two-dimension code area;
Parse 2 D code information from the two-dimension code area determined,
Wherein, there are multiple position sensing figure tlv triple being based in the two-dimension code area determined and comprise identical bits Put the two-dimension code area detecting figure, and when one of two-dimension code area has parsed 2 D code information, not many to this Untreated two-dimension code area in individual two-dimension code area is parsed.
2. two-dimensional code identification method according to claim 1, in the described step searching out position sensing figure tlv triple Afterwards, methods described also includes:
Between the position sensing figure in the position sensing figure tlv triple being searched out formed three lines in length When there is other positions detection figure between two position sensing figures of the arbitrary line in two short lines, remove this position Put detection figure tlv triple.
3. two-dimensional code identification method according to claim 1, wherein, searches out symbol from each position sensing figure described The position sensing figure tlv triple closing Quick Response Code component characteristic includes:
Each position sensing figure described is grouped into multiple position sensing figure tlv triple according to often ternary mode;
From the position sensing figure tlv triple being grouped, search out the position sensing figure ternary meeting Quick Response Code component characteristic Group.
4. two-dimensional code identification method according to claim 1, wherein, searches out symbol from each position sensing figure described The position sensing figure tlv triple closing Quick Response Code component characteristic includes:
Using scan box, each position sensing figure described is grouped into multiple position sensing figure tlv triple;
From the position sensing figure tlv triple being grouped, search out the position sensing figure ternary meeting Quick Response Code component characteristic Group.
5. the two-dimensional code identification method according to claim 3 or 4, wherein, described from the position sensing figure three being grouped In tuple, the step searching out the position sensing figure tlv triple meeting Quick Response Code component characteristic includes:
Obtain x, the y-coordinate value of each position sensing figure;
X based on the three position sensing figures found out, y-coordinate value, from the position sensing figure tlv triple being grouped, search Rope goes out to meet the position sensing figure tlv triple of Quick Response Code component characteristic.
6. two-dimensional code identification method according to claim 4, wherein, the size of described scan box is arranged manually by user.
7. two-dimensional code identification method according to claim 4, wherein, the size of described scan box is selected according to Quick Response Code size Fixed.
8. a kind of two-dimension code recognition device, comprising:
Position sensing pattern recognition module, for identifying each position sensing figure from acquired picture;
Search module, for searching out, from each position sensing figure described, the position sensing figure meeting Quick Response Code component characteristic Shape tlv triple, described Quick Response Code component characteristic includes: shape between the position sensing figure in described position sensing figure tlv triple In three lines becoming, two the shortest lines of length are vertical and equal length;
Quick Response Code determining module, for based on the position sensing figure tlv triple being searched out, determining two-dimension code area;
Quick Response Code parsing module, for parsing 2 D code information from the two-dimension code area determined,
Judge module, for judging to whether there is multiple position sensing figures being based in the two-dimension code area determined Tlv triple comprises same position and detects the two-dimension code area of figure and parsed Quick Response Code from one of two-dimension code area Information;Wherein, when judged result is to be, described Quick Response Code parsing module is not to untreated two in the plurality of two-dimension code area Dimension code region is parsed.
9. two-dimension code recognition device according to claim 8, described two-dimension code recognition device also includes:
Remove module, for three formed between the position sensing figure in the position sensing figure tlv triple being searched out There is other positions detection figure between two position sensing figures of arbitrary line in two the shortest lines of length in line During shape, remove this position sensing figure tlv triple.
10. two-dimension code recognition device according to claim 8, wherein, described search module is by each position sensing described Figure is grouped into multiple position sensing figure tlv triple according to often ternary mode;
From the position sensing figure tlv triple being grouped, search out the position sensing figure ternary meeting Quick Response Code component characteristic Group.
11. two-dimension code recognition devices according to claim 8, wherein, described search module will be described each using scan box Individual position sensing figure is grouped into multiple position sensing figure tlv triple;
From the position sensing figure tlv triple being grouped, search out the position sensing figure ternary meeting Quick Response Code component characteristic Group.
12. two-dimension code recognition devices according to claim 10 or 11, wherein, described search module is from the position being grouped Detect in figure tlv triple, when searching out the position sensing figure tlv triple meeting Quick Response Code component characteristic, obtain each position Detect x, the y-coordinate value of figure;
X based on the three position sensing figures found out, y-coordinate value, from the position sensing figure tlv triple being grouped, search Rope goes out to meet the position sensing figure tlv triple of Quick Response Code component characteristic.
13. two-dimension code recognition devices according to claim 11, wherein, the size of described scan box is set manually by user Put.
14. two-dimension code recognition devices according to claim 11, wherein, the size of described scan box is according to Quick Response Code size Select.
CN201310742473.4A 2013-12-30 2013-12-30 Method and device for recognizing two-dimension codes Active CN103699869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310742473.4A CN103699869B (en) 2013-12-30 2013-12-30 Method and device for recognizing two-dimension codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310742473.4A CN103699869B (en) 2013-12-30 2013-12-30 Method and device for recognizing two-dimension codes

Publications (2)

Publication Number Publication Date
CN103699869A CN103699869A (en) 2014-04-02
CN103699869B true CN103699869B (en) 2017-02-01

Family

ID=50361393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310742473.4A Active CN103699869B (en) 2013-12-30 2013-12-30 Method and device for recognizing two-dimension codes

Country Status (1)

Country Link
CN (1) CN103699869B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182712B (en) * 2014-08-22 2017-09-29 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104268498B (en) * 2014-09-29 2017-09-19 杭州华为数字技术有限公司 A kind of recognition methods of Quick Response Code and terminal
CN104363400A (en) * 2014-10-29 2015-02-18 广东欧珀移动通信有限公司 Method and device for scanning local two-dimensional codes
CN104848858B (en) * 2015-06-01 2018-07-20 北京极智嘉科技有限公司 Quick Response Code and be used for robotic vision-inertia combined navigation system and method
CN105184203A (en) * 2015-06-29 2015-12-23 努比亚技术有限公司 Method and device for mobile terminal to scan two-dimension code
CN105046186B (en) * 2015-08-27 2018-06-29 北京恒华伟业科技股份有限公司 A kind of recognition methods of Quick Response Code and device
CN105303148B (en) * 2015-12-08 2019-04-02 深圳天珑无线科技有限公司 Bar code scanning method and device
CN107194301A (en) * 2016-03-15 2017-09-22 中兴通讯股份有限公司 A kind of recognition methods of Quick Response Code and device
CN107704793A (en) * 2016-07-07 2018-02-16 立德高科(昆山)数码科技有限责任公司 According to the size of Quick Response Code with automatically adjust recognition area size method and device
CN106156685A (en) * 2016-07-07 2016-11-23 立德高科(昆山)数码科技有限责任公司 The method of multiple Quick Response Codes, device and the terminal that recognition is in the same area
CN106326802B (en) * 2016-08-19 2018-07-27 腾讯科技(深圳)有限公司 Quick Response Code bearing calibration, device and terminal device
CN106446737B (en) * 2016-08-30 2019-07-09 西安小光子网络科技有限公司 A kind of method for quickly identifying of multiple optical labels
CN107832652A (en) * 2017-09-28 2018-03-23 努比亚技术有限公司 Two-dimensional code identification method, terminal and computer-readable recording medium
CN107818282B (en) * 2017-09-30 2020-04-28 努比亚技术有限公司 Two-dimensional code identification method, terminal and computer readable storage medium
CN108510266A (en) * 2018-03-21 2018-09-07 维沃移动通信有限公司 A kind of Digital Object Unique Identifier recognition methods and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100380393C (en) * 2006-09-26 2008-04-09 福建榕基软件开发有限公司 Precise location method of QR code image symbol region at complex background
TW201113815A (en) * 2009-10-09 2011-04-16 Primax Electronics Ltd QR code processing method and apparatus thereof
CN103177235A (en) * 2013-04-18 2013-06-26 河海大学常州校区 Chinese-sensible code recognition device and Chinese-sensible code recognition method under complicated background

Also Published As

Publication number Publication date
CN103699869A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN103699869B (en) Method and device for recognizing two-dimension codes
KR101469398B1 (en) Text-based 3d augmented reality
CN103714313B (en) Two-dimensional code identification method and device
US8391615B2 (en) Image recognition algorithm, method of identifying a target image using same, and method of selecting data for transmission to a portable electronic device
AU2014321165B2 (en) Image searching method and apparatus
US9245043B2 (en) Embedded media markers and systems and methods for generating and using them
US11288307B2 (en) Method, electronic device, and computer readable medium for photo organization
CN110738207A (en) character detection method for fusing character area edge information in character image
JP4727614B2 (en) Image processing apparatus, control program, computer-readable recording medium, electronic apparatus, and control method for image processing apparatus
JP4790653B2 (en) Image processing apparatus, control program, computer-readable recording medium, electronic apparatus, and control method for image processing apparatus
CN104239909B (en) A kind of recognition methods of image and device
RU2697649C1 (en) Methods and systems of document segmentation
US8917957B2 (en) Apparatus for adding data to editing target data and displaying data
KR20100134079A (en) Automatic face detection and identity masking in images, and applications thereof
JP2008250950A5 (en)
JP2017535891A (en) Method and apparatus for detecting text
CN110210480A (en) Character recognition method, device, electronic equipment and computer readable storage medium
CN110210467A (en) A kind of formula localization method, image processing apparatus, the storage medium of text image
CN104598289B (en) A kind of recognition methods and a kind of electronic equipment
Santos et al. Recognizing and exploring azulejos on historic buildings' facades by combining computer vision and geolocation in mobile augmented reality applications
CN112532884A (en) Identification method and device and electronic equipment
JP5964078B2 (en) Character recognition device, character recognition method and program
KR101761641B1 (en) Device and method for obtaining edge line by detecting outline
JP2010061409A (en) Image processing program and image processing system
JP2017062584A (en) Electronic apparatus and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083, Haidian District, Beijing, Fu Cheng Road, No. 28 excellent building, block A, floor 12

Applicant after: Excelle View Technology Co., Ltd.

Address before: 100080 Beijing City, Haidian District Suzhou Street No. 29 building 16 room 10-20 Scandinavia

Applicant before: Excelle View Technology Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201230

Address after: 310052 room 508, 5th floor, building 4, No. 699 Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 100083 12 / F, block a, Yousheng building, 28 Chengfu Road, Haidian District, Beijing

Patentee before: UC MOBILE Ltd.