CN106570547B - A kind of generation of coding pattern, recognition methods and device - Google Patents

A kind of generation of coding pattern, recognition methods and device Download PDF

Info

Publication number
CN106570547B
CN106570547B CN201610906405.0A CN201610906405A CN106570547B CN 106570547 B CN106570547 B CN 106570547B CN 201610906405 A CN201610906405 A CN 201610906405A CN 106570547 B CN106570547 B CN 106570547B
Authority
CN
China
Prior art keywords
coding unit
raadable
mark
coding
unit
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
CN201610906405.0A
Other languages
Chinese (zh)
Other versions
CN106570547A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201610906405.0A priority Critical patent/CN106570547B/en
Publication of CN106570547A publication Critical patent/CN106570547A/en
Application granted granted Critical
Publication of CN106570547B publication Critical patent/CN106570547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • G06K19/06056Constructional details the marking comprising a further embedded marking, e.g. a 1D bar code with the black bars containing a smaller sized coding

Abstract

Embodiments of the present invention provide the generation method and recognition methods of a kind of coding pattern.Wherein, the generation method of coding pattern, comprising: obtain the coding unit for parsing the coordinate information of body surface position;Multiple coding units are presented on body surface, form coding pattern;It wherein, include one or more raadable marks in coding unit, and the area value of raadable mark is for parsing corresponding numerical value;The recognition methods of coding pattern, comprising: acquisition presents the target image of the body surface of coding pattern;It determines the coding unit in coding pattern, and determines the encoded radio of coding unit mark according to the area value for the one or more raadable marks for including in coding unit.Method of the invention reduces the calculation amount of coding pattern identification, improves the accuracy of identification and recognition speed of coding pattern.In addition, embodiment of the present invention provides the generating means and identification device of a kind of coding pattern.

Description

A kind of generation of coding pattern, recognition methods and device
Technical field
Embodiments of the present invention are related to image coding technology field, more specifically, embodiments of the present invention are related to one Generation, recognition methods and the device of kind coding pattern.
Background technique
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this section.
In the prior art, can will comprising information (such as: numerical information, website information, coordinate information, text information with And encryption information etc.) coding pattern print on body surface, when needing these information, acquisition body surface can be passed through The image of coding pattern parses the image of coding pattern, so that it may parse the information for including in coding pattern.It is common Coding pattern can be two dimensional code, bar code, can also be other coding patterns.It, can be by information with spy when specific implementation Determine algorithm to be encoded, obtain digital coding, then digital coding is converted into coding pattern with ad hoc rules, can also directly with Ad hoc rules converts the information into coding pattern.
In the prior art, there is a kind of coding pattern for printing on body surface, the coding pattern is for indicating to sit on object The coordinate information of cursor position, the raadable mark very little for including in coding pattern (such as: raadable mark symbol is less than 0.5mm), people Eye is not obvious the visual identity of raadable mark included in coding pattern.Currently, coding pattern mainly has following two Kind implementation, specifically:
Scheme one, in coding pattern, encoded according to the relative position of raadable mark and nominal position.It is specific next It says, as shown in Figure 1, the principle of the program is: according to raadable mark 102 relative to the (horizontal grid in Fig. 1 of nominal position 101 The intersection point of line and vertical gridlines) relative position represent different numerical informations, a plurality of horizontal gridlines and vertical grid Line constitutes grid, identifies grid first when identifying raadable mark, then identifies raadable mark 102 relative to nominal position 101 Four different orientation obtain the numerical information that different raadable marks 102 represent.Such as: raadable mark 102 in a, b, c, d The numerical information of representative is respectively ' 1 ', ' 2 ', and dotted line does not print on a surface of an in ' 3 ', ' 4 ', Fig. 1.
When scheme one carries out position encoded on a surface of an, according to the relative position of raadable mark and nominal position (or Direction) it is encoded, when parsing the numerical information that coding pattern represents, need to calculate horizontal gridlines and vertical grid Line, and then calculate and determine grid, the numerical value of coding pattern representative is then obtained according to raadable mark orientation within a grid Information, identification process are complicated, and computationally intensive, False Rate is higher, to the performance of processor, camera and hardware device have compared with High requirement, the requirement to algorithm are also higher.
Scheme two is compiled according to the different directions of the line segment of the line composition between raadable marks multiple in coding pattern Code.Specifically, as shown in Fig. 2, for including two raadable marks in coding pattern, in the number for obtaining coding pattern representative When value information, the midpoint for obtaining two 202 lines of raadable mark first obtains nominal position 201, and then connects each nominal position It sets 201 and obtains grid lines, then obtain the difference that coding pattern represents according to the different directions of the line of two raadable marks 202 Numerical information.Such as: the numerical information difference that the direction that four of two 202 lines of raadable mark are different in a, b, c, d represents For binary numeral 00b, 01b, 10b, 11b.
When scheme two carries out position encoded on a surface of an, according to the line structure between raadable marks multiple in coding pattern At the different directions of line segment encoded, when parsing the numerical information that coding pattern represents, need to calculate two it is readable The midpoint of line between label, and then go out horizontal gridlines and vertical gridlines according to the multiple mid-point computations determined, then count The angle between the line segment and horizontal gridlines or vertical gridlines that line between two raadable marks is constituted is calculated, calculates angle more Complicated and error is larger.
Therefore, generation, the recognition methods of a kind of coding pattern are needed at present, to reduce the calculation amount of coding pattern identification, Improve the accuracy of identification and recognition speed of coding pattern.
Summary of the invention
For in the prior art, when carrying out position encoded on a surface of an, according to the phase of raadable mark and nominal position The scheme encoded to position (or direction) needs first to determine net when parsing the numerical information that coding pattern represents Then lattice obtain the numerical information of coding pattern representative according to raadable mark orientation within a grid, identification process is complicated, meter Calculation amount is big, and False Rate is higher;And according between raadable marks multiple in coding pattern line constitute line segment different directions come The scheme encoded needs first when parsing the numerical information that coding pattern represents according to the multipair raadable mark determined Mid-point computation go out horizontal gridlines and vertical gridlines, then calculate the line line segment and water that are constituted between two raadable marks Angle between plain net ruling or vertical gridlines, calculating angle is complex and error is larger.
Thus, it is also very desirable to a kind of generation, the recognition methods of improved coding pattern, to reduce in terms of coding pattern identification Calculation amount improves the accuracy of identification and recognition speed of coding pattern.
In the present context, embodiments of the present invention are intended to provide the generation, recognition methods and dress of a kind of coding pattern It sets.
In the first aspect of embodiment of the present invention, a kind of generation method of coding pattern is provided, comprising:
Obtain the coding unit for parsing the coordinate information of body surface position;
Multiple coding units are presented on the body surface, form coding pattern;
It wherein, include one or more raadable marks in the coding unit, and the area value of the raadable mark is used for Parse corresponding numerical value.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, further comprise: with described The reference position point of coding unit is that rotation center carries out rotation process to coding unit;It is then described that the coding unit is presented In the body surface, comprising: the body surface will be presented on by the coding unit of rotation.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, further comprise: described Addition refers to raadable mark in coding unit, described to be used to determine the raadable mark mark that coding unit is included with reference to raadable mark The numerical value of knowledge;It is then described that the coding unit is presented on the body surface, comprising: by comprising described with reference to raadable mark Coding unit is presented on the body surface.
It is described to refer to raadable mark in the above method provided in an embodiment of the present invention in a kind of possible embodiment Area value by preset area value or preset quantity coding unit include all raadable marks centre plane product value.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, the raadable mark includes Any one or more in following figure: point, line segment, circle, rectangle, triangle and polygon.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, the ash of the raadable mark The absolute value of the difference of the gray value of angle value and the body surface is less than the first default gray threshold and is greater than the second default gray scale Threshold value.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, further comprise: encoding In the case where including multiple raadable marks in unit, by the combination of multiple raadable marks come the encoded radio of identification code unit.
In the second aspect of embodiment of the present invention, a kind of recognition methods of coding pattern is provided, comprising:
Acquisition presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern, and readable according to the one or more for including in the coding unit The area value of label determines the encoded radio of the coding unit mark.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, further comprise: determining institute State the reference line in coding pattern;Then determine the coding unit in the coding pattern, comprising: determine in the coding pattern Out after one or more coding units, next coding unit is determined along the direction of the reference line.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, further comprise: judging institute State reference line in coding pattern and whether the boundary wire of the target image parallel, if it is determined that result be it is no, then rotate institute Target image is stated, keeps the reference line in the coding pattern parallel with the boundary wire;It then determines in the coding pattern Coding unit, comprising: by determining the coding unit in the coding pattern in postrotational target image.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, the determination coding Reference line in pattern, comprising: determine two first object coding units in the coding pattern, and connect two first The reference position point of target code unit generates the reference line;It or include multiple raadable marks and institute in the coding unit Coding unit is stated without rotation processing, then the reference line in the determination coding pattern, comprising: in the coding pattern In determine a second target code unit, and connect the predeterminated position point of two raadable marks in the second target code unit Generate the reference line.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, the connection two first The reference position point of target code unit generates the reference line, comprising: judges determine two first object coding units The distance between whether meet first preset standard;Distance between two first object coding units of judgement meets institute Under conditions of stating the first preset standard, the reference position point for connecting two first object coding units generates the reference line.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, wrapped in the coding unit Containing a raadable mark, then the coding unit in the determination coding pattern, comprising: be determined as a raadable mark One coding unit;It or include N number of raadable mark, the then coding in the determination coding pattern in the coding unit Unit, comprising: select N number of raadable mark in the coding pattern, in the combination of two of selected N number of raadable mark, sentence Whether the distance between two raadable marks meet the second preset standard in disconnected default combination, if it is determined that result be it is yes, then by institute N number of raadable mark of selection is determined as a coding unit, wherein N is the natural number greater than 1.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, the coding unit includes One raadable mark, then it is described according to the determination of the area value for the one or more raadable marks for including in the coding unit The encoded radio of coding unit mark, comprising: the numerical value of raadable mark mark is determined according to the area value of a raadable mark, and The encoded radio that the numerical value that one raadable mark identifies is identified as the coding unit;Or the coding unit includes more A raadable mark, then the area value according to the one or more raadable marks for including in the coding unit determines the volume The encoded radio of code unit marks, comprising: the numerical value of each raadable mark mark is determined according to the area value of each raadable mark, and According to the numerical value of multiple raadable marks to put in order and each raadable mark identifies, the volume of the coding unit mark is determined Code value.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, wrapped in the coding unit Containing raadable mark is referred to, then the numerical value of raadable mark mark is determined according to the area value of raadable mark, comprising: be directed to coding unit In except it is described with reference to raadable mark in addition to each raadable mark, by the area value of raadable mark and described with reference to raadable mark Area value is compared, and the numerical value of raadable mark mark is determined according to comparison result;Or not comprising ginseng in the coding unit Raadable mark is examined, then determines the numerical value of raadable mark mark according to the area value of raadable mark, comprising: in coding unit The area value of raadable mark is compared with preset area threshold value, determines readable mark according to comparison result by each raadable mark Remember the numerical value of mark.
In the third aspect of embodiment of the present invention, a kind of generating means of coding pattern are provided, comprising:
Module is obtained, for obtaining the coding unit of the coordinate information for parsing body surface position;
Module is presented, for multiple coding units to be presented on the body surface, forms coding pattern;
It wherein, include one or more raadable marks in the coding unit, and the area value of the raadable mark is used for Parse corresponding numerical value.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, further comprise: at first Module is managed, for carrying out rotation process to coding unit using the reference position point of the coding unit as rotation center;It is then described Module is presented, is specifically used for: the body surface will be presented on by the coding unit of rotation.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, further comprise: at second Module is managed, refers to raadable mark for adding in the coding unit, the reference raadable mark is for determining coding unit The numerical value for the raadable mark mark for being included;The then presentation module, is specifically used for: will include the volume with reference to raadable mark Code unit is presented on the body surface.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the Second processing module The area value of the reference raadable mark added in the coding unit is preset area value or preset quantity coding unit It include the centre plane product value of all raadable marks.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the presentation module is presented Raadable mark include any one or more in following figure: point, line segment, circle, rectangle, triangle and polygon.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the presentation module is presented Raadable mark gray value and the body surface gray value absolute value of the difference less than the first default gray threshold and big In the second default gray threshold.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the presentation module is also used In: in the case where in coding unit including multiple raadable marks, by the combination of multiple raadable marks come identification code unit Encoded radio.
In the fourth aspect of embodiment of the present invention, a kind of identification device of coding pattern is provided, comprising:
Acquisition module, for acquiring the target image for presenting the body surface of coding pattern;
Parsing module includes for determining the coding unit in the coding pattern, and according in the coding unit The area value of one or more raadable marks determines the encoded radio of the coding unit mark.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, further comprise: reference line Determining module, for determining the reference line in the coding pattern;Then the parsing module determines the volume in the coding pattern Code unit, is specifically used for: after determining one or more coding units in the coding pattern, along the side of the reference line To the next coding unit of determination.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, further comprise: at image Module is managed, for judging whether the reference line in the coding pattern and the boundary wire of the target image are parallel, if it is determined that As a result be it is no, then rotate the target image, keep the reference line in the coding pattern parallel with the boundary wire;It is then described Parsing module determines the coding unit in the coding pattern, is specifically used for: by determining institute in postrotational target image State the coding unit in coding pattern.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the reference line determines mould Block is specifically used for: determining two first object coding units in the coding pattern, and connects two first object codings The reference position point of unit generates the reference line;Or comprising more than two raadable marks and described in the coding unit In the case that coding unit is without rotation processing, a second target code unit is determined in the coding pattern, and The predeterminated position point for connecting two raadable marks in the second target code unit generates the reference line.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the reference line determines mould Block, comprising: whether judging unit, the distance between two first object coding units for judging to determine meet described One preset standard;Determination unit, for determining that the distance between two first object coding units meets in the judging unit Under conditions of first preset standard, the reference position point for connecting two first object coding units generates the reference line.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the parsing module is determined Coding unit in the coding pattern, is specifically used for: it include a raadable mark in the coding unit, then it can by this Read flag is determined as a coding unit;Or it is selected in the coding pattern in the coding unit comprising N number of raadable mark N number of raadable mark is selected, in the combination of two of selected N number of raadable mark, is judged in default combination between two raadable marks Distance whether meet the second preset standard, if it is determined that result be it is yes, then by selected N number of raadable mark be determined as one volume Code unit, wherein N is the natural number greater than 1.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the parsing module according to The area value for the one or more raadable marks for including in the coding unit determines the encoded radio of the coding unit mark, tool Body is used for: the coding unit includes a raadable mark, then determines raadable mark according to the area value of a raadable mark The numerical value of mark, and the encoded radio that the numerical value that a raadable mark identifies is identified as the coding unit;Or it is described Coding unit includes multiple raadable marks, and the numerical value of each raadable mark mark is determined according to the area value of each raadable mark, And according to the numerical value of multiple raadable marks to put in order and each raadable mark identifies, the coding unit mark is determined Encoded radio.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the parsing module according to The area value of raadable mark determines the numerical value of raadable mark mark, is specifically used for: comprising referring to readable mark in the coding unit Note, then in coding unit except described with reference to raadable mark in addition to each raadable mark, by the area value of raadable mark with The area value with reference to raadable mark is compared, and the numerical value of raadable mark mark is determined according to comparison result;Or it is described Not comprising referring to raadable mark in coding unit, then for each raadable mark in coding unit, by the area of raadable mark Value is compared with preset area threshold value, and the numerical value of raadable mark mark is determined according to comparison result.
In the 5th aspect of embodiment of the present invention, the generating means of another coding pattern are provided, for example, can be with Including memory and processor, wherein processor can be used for reading the program in memory, execute following process:
Obtain the coding unit for parsing the coordinate information of body surface position;
Multiple coding units are presented on the body surface, form coding pattern;
It wherein, include one or more raadable marks in the coding unit, and the area value of the raadable mark is used for Parse corresponding numerical value.
In the 6th aspect of embodiment of the present invention, the identification device of another coding pattern is provided, for example, can be with Including memory and processor, wherein processor can be used for reading the program in memory, execute following process:
Acquisition presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern, and readable according to the one or more for including in the coding unit The area value of label determines the encoded radio of the coding unit mark.
In the 7th aspect of embodiment of the present invention, a kind of program product is provided comprising program code, when described When program product is run, said program code is for executing following procedure:
Obtain the coding unit for parsing the coordinate information of body surface position;
Multiple coding units are presented on the body surface, form coding pattern;
It wherein, include one or more raadable marks in the coding unit, and the area value of the raadable mark is used for Parse corresponding numerical value.
In the eighth aspect of embodiment of the present invention, a kind of program product is provided comprising program code, when described When program product is run, said program code is for executing following procedure:
Acquisition presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern, and readable according to the one or more for including in the coding unit The area value of label determines the encoded radio of the coding unit mark.
The generation, recognition methods of the coding pattern of embodiment and device according to the present invention, carry out position on a surface of an It when setting coding, is encoded using the area value of raadable mark, when parsing the numerical information that coding pattern represents, passes through identification The area value for the one or more raadable marks for including in coding unit, it is readable according to the one or more for including in coding unit The numerical value of the area value parsing raadable mark mark of label, and then coding unit mark is precipitated according to the numerical solution of raadable mark mark The encoded radio of knowledge need to only identify the area value of raadable mark, without calculating grid position, without between calculating raadable mark Angle, identification is simple, and accuracy of identification is high, and calculation amount is small, and the speed of service is fast.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention , feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention Dry embodiment, in which:
Fig. 1 schematically shows a kind of schematic diagram of coding pattern in the prior art;
Fig. 2 schematically shows the schematic diagrames of another coding pattern in the prior art;
Fig. 3 schematically shows the application scenarios schematic diagram of embodiment according to the present invention;
Fig. 4 schematically shows the flow diagrams of the generation method of coding pattern according to an embodiment of the present invention;
Fig. 5 schematically shows a kind of schematic diagram of coding pattern according to an embodiment of the present invention;
Fig. 6 schematically shows the schematic diagram of another coding pattern according to an embodiment of the present invention;
Fig. 7 schematically shows the schematic diagram of another coding pattern according to an embodiment of the present invention;
Fig. 8 schematically shows the schematic diagram of another coding pattern according to an embodiment of the present invention;
Fig. 9 schematically shows the schematic diagram of another coding pattern according to an embodiment of the present invention;
Figure 10 schematically shows the flow diagram of the recognition methods of coding pattern according to an embodiment of the present invention;
Figure 11 schematically shows a kind of structural representation of the generating means of coding pattern according to an embodiment of the present invention Figure;
Figure 12 schematically shows a kind of structural representation of the identification device of coding pattern according to an embodiment of the present invention Figure;
The structure that Figure 13 schematically shows the generating means of another coding pattern according to an embodiment of the present invention is shown It is intended to;
The structure that Figure 14 schematically shows the identification device of another coding pattern according to an embodiment of the present invention is shown It is intended to;
Figure 15 schematically shows the program product of the generation method according to an embodiment of the present invention for coding pattern Schematic diagram;
Figure 16 schematically shows the program product of the recognition methods according to an embodiment of the present invention for coding pattern Schematic diagram.
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program product.Therefore, the present disclosure may be embodied in the following forms, it may be assumed that complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
Embodiment according to the present invention proposes the generation, recognition methods and device of a kind of coding pattern.
Herein, it is to be understood that any number of elements in attached drawing be used to example rather than limit and it is any Name is only used for distinguishing, without any restrictions meaning.
Below with reference to several representative embodiments of the invention, the principle and spirit of the present invention are explained in detail.
Summary of the invention
The inventors discovered that in the prior art, when carrying out position encoded on a surface of an, according to raadable mark and nominally The relative position (or direction) of position needs elder generation when parsing the numerical information that coding pattern represents come the scheme encoded It determines grid, the numerical information of coding pattern representative is then obtained according to raadable mark orientation within a grid, was identified Journey is complicated, and computationally intensive, False Rate is higher;And not according to the line segment of the line composition between raadable marks multiple in coding pattern The equidirectional scheme to be encoded needs first multipair according to determining when parsing the numerical information that coding pattern represents The mid-point computation of raadable mark goes out horizontal gridlines and vertical gridlines, and line is constituted between then calculating two raadable marks Angle between line segment and horizontal gridlines or vertical gridlines, calculating angle is complex and error is larger.In the prior art Lack generation, the recognition methods of a kind of improved coding pattern, to reduce the calculation amount of coding pattern identification, improves coding pattern Accuracy of identification and recognition speed.
For this purpose, the present invention provides a kind of generation of coding pattern, recognition methods and device, the generation method of coding pattern It may include: the coding unit obtained for parsing the coordinate information of body surface position;Multiple coding units are presented on object Body surface face forms coding pattern;It wherein, include one or more raadable marks in coding unit, and the area value of raadable mark For parsing corresponding numerical value;The recognition methods of coding pattern may include: the body surface that acquisition presents coding pattern Target image;Determine the coding unit in coding pattern, and according to the one or more raadable marks for including in coding unit Area value determines the encoded radio of coding unit mark.
After introduced the basic principles of the present invention, lower mask body introduces various non-limiting embodiment party of the invention Formula.
Application scenarios overview
Referring initially to Fig. 3, as shown in figure 3, being the generation method and code pattern of coding pattern provided in an embodiment of the present invention The application scenarios schematic diagram of the recognition methods of case, comprising: user 30, paper 301, intelligent writing equipment 302 and user terminal 303, wherein 301 printout surface of paper has coding pattern, and coding pattern is made of multiple coding units, in each coding unit Including one or more raadable marks, the area value of each raadable mark is for parsing corresponding numerical value.
For user 30 using intelligent writing equipment 302 when writing on paper 301, intelligent writing equipment 302 acquires paper 301 Surface includes the target image of coding pattern, determines the coding unit in coding pattern in the target image, and single according to coding The area values of the one or more raadable marks for including in member determines the encoded radio of coding unit mark, and then according to identifying The encoded radio of multiple coding unit marks determines the coordinate information of current writing position, and can will contain multiple writing positions The handwriting trace synchronizing information for the coordinate information set transmits or asynchronous transmission is into user terminal 303, and user terminal 303 can root According to handwriting trace information, handwriting trace is played back.
Wherein, intelligent writing equipment 302 and user terminal 303 can pass through bluetooth, short haul connection, cellular mobile network, nothing Line local area network or other communication modes are communicated.Intelligent writing equipment 302 includes but is not limited to: smart pen, user terminal 303 can be mobile phone, tablet computer, PC etc..
Illustrative methods
Below with reference to the application scenarios of Fig. 3, the volume of illustrative embodiments according to the present invention is described with reference to Fig. 4-Figure 10 The generation method and recognition methods of code pattern.It should be noted that above-mentioned application scenarios be merely for convenience of understanding it is of the invention Spirit and principle and show, embodiments of the present invention are not limited in this respect.On the contrary, embodiments of the present invention can To be applied to applicable any scene.
Fig. 4 is a kind of flow diagram of the generation method of coding pattern provided in an embodiment of the present invention, and main includes compiling The product process of code pattern, as shown in figure 4, a kind of generation method of coding pattern provided in an embodiment of the present invention, including it is as follows Step:
Step 401, the coding unit for parsing the coordinate information of body surface position is obtained.
In this step, the coding unit of the coordinate information for parsing body surface position can be according to body surface position The coordinate information set determines, can also directly acquire the coordinate letter for parsing body surface position determined by other equipment The coding unit of breath.When it is implemented, being determined according to the coordinate information of body surface position for parsing body surface position The coding unit of coordinate information, can in the following way, such as: coordinate information is encoded with certain algorithm and is counted Word coding, then digital coding is converted into coding unit with certain rule, or directly by coordinate information with certain rule Coding unit is converted to, it is not limited in the embodiment of the present invention.One of coordinate information can be encoded by one or more Unit is parsed.
Step 402, multiple coding units are presented on body surface, form coding pattern;Wherein, include in coding unit One or more raadable marks, and the area value of raadable mark is for parsing corresponding numerical value.
In this step, multiple coding units are presented on body surface, can be and multiple coding units are printed or printed In body surface, multiple coding units can also be engraved in body surface, be not specifically limited herein.It can be in coding unit Including one or more raadable marks, and the area value of raadable mark is for parsing corresponding numerical value.Wherein, raadable mark can be with It is arbitrary shape, and can be arbitrary size, the shape of raadable mark includes but is not limited to: point, line segment, circle, rectangle, triangle Shape and polygon.More preferably, for the ease of being presented on body surface, raadable mark is using square.
The area value for one or more raadable marks that the embodiment of the present invention includes using coding unit parses coding unit The encoded radio of mark, i.e. so as to features such as directional informations without the help of the auxiliary line determined or relative to auxiliary line The encoded radio that coding unit mark can be parsed, reduces the difficulty of parsing, and do not need to determine auxiliary line and coding unit phase For the directional information of auxiliary line, calculation amount when coding unit parsing is reduced.
When it is implemented, the direction of multiple coding units can be with one when multiple coding units are presented on body surface Cause, under the direction unanimous circumstances of multiple coding unit, direction can be with body surface edge, such as: with paper The parallel or vertical direction in edge, naturally it is also possible to be any direction.
It include a raadable mark in coding unit, raadable mark is square, and is made as more specific embodiment 2 binary numerals 0 and 1 are identified with 2 different sides product value, the raadable mark of larger area value identifies binary numeral 1, smaller The raadable mark of area value identifies binary numeral 0, as shown in figure 5, including one in coding unit 501 and coding unit 502 A raadable mark, and coding unit 501 is different from the area value of raadable mark in coding unit 502, the numerical value parsed is not yet Identical, the numerical value that raadable mark parses in coding unit 501 is binary numeral 0, and raadable mark solution in coding unit 502 The numerical value of precipitation is binary numeral 1.
It include two raadable marks in coding unit as another more specific embodiment, raadable mark is square, And 2 binary numerals 0 and 1 are identified using 2 different sides product value, the raadable mark of larger area value identifies binary numeral 1, Raadable mark compared with facet product value identifies binary numeral 0, as shown in fig. 6, coding unit 601, coding unit 602, coding are single It include two raadable marks in member 603 and coding unit 604, the area value of raadable mark is different, and the numerical value parsed is not yet Together, the numerical value that two raadable marks parse in coding unit 601 is respectively binary numeral 0 and binary numeral 0, and coding is single The numerical value that parses of two raadable marks is respectively binary numeral 0 and binary numeral 1 in member 602, two in coding unit 603 The numerical value that a raadable mark parses is respectively binary numeral 1 and binary numeral 0, two readable marks in coding unit 604 Remember that the numerical value parsed is respectively binary numeral 1 and binary numeral 1.Therefore, the corresponding coding of coding unit 601~604 Value is respectively binary coded value 00,01,10 and 11.In one embodiment, pass through the assembly coding of multiple coding units Value parses the coordinate information for being printed on body surface position.
For convenience of explanation in the embodiment of the present invention in coding unit and coding unit raadable mark presentation mode, this Inventive embodiments introduce the concept of reference position point, and the corresponding setting reference position point of each coding unit is wrapped in coding unit When including a raadable mark, reference position point can be the predeterminated position point on a raadable mark in coding unit, such as: It can be the geometric center of the raadable mark, be also possible to other predeterminated position points of the raadable mark, such as: endpoint, certainly, Reference position point can not also be located on the raadable mark, such as: reference position point is located on the extended line of raadable mark;? When including multiple raadable marks in coding unit, reference position point can be some specific readable mark in multiple raadable marks Predeterminated position point on note, such as: it can be the geometric center of specific readable label, be also possible to specific readable label Other predeterminated position points, such as: endpoint, certainly, reference position point can not also be located at coding unit included by it is multiple readable On any one of label raadable mark, such as: when including two raadable marks in coding unit, reference position point is located at The midpoint of two raadable mark geometric center connection line formed sections.Preferably, reference position point can be corresponding coding unit Geometric center, so it is easy to understand that in the case where reference position point is the geometric center of corresponding coding unit, work as coding unit When including multiple raadable marks, which is likely located on some raadable mark in multiple raadable marks, can also It can not be located on any one raadable mark of multiple raadable marks included by coding unit, this depends on multiple raadable mark Size relationship and arrangement mode.
It should be noted that when coding unit is presented in the embodiment of the present invention, with the reference of a line or same row coding unit Location point may be on same straight line, more preferably, with the line of a line or the reference position point of same row coding unit It is parallel or vertical with paper edge.Specifically, by taking Fig. 6 as an example, coding unit shown in Fig. 6 of the embodiment of the present invention, The reference position point intersection point of horizontal dotted line and vertical dotted line (namely in Fig. 6) point-blank, namely is shown in FIG. 6 Horizontal dotted line on, in other embodiments of the present invention, with a line or the reference position point of same row coding unit at one When on straight line, which can not also be overlapped with horizontal dotted line shown in figure, but more preferably, with water shown in Fig. 6 Flat dotted line is parallel or vertical.
In addition, in the case where the reference position point of coding unit is the geometric center of coding unit, so it is easy to understand that In coding unit the size of multiple raadable marks perhaps length difference when coding unit in different size or different length Distance of the raadable mark apart from the reference position point may be different.
In addition, in the case where coding unit includes multiple raadable marks, inside a coding unit, multiple readable marks Note can be arranged with predeterminated position, it is preferred that multiple raadable marks can be arranged in same a line or same row, it is preferred that In the case where coding unit is without rotation, the orientation of multiple raadable marks can be with the reference bit of adjacent encoder unit The line direction set a little is identical.
Certainly, it will be apparent to a skilled person that can also include any raadable mark in coding unit, and And n different area value mark k number values can be used in raadable mark, wherein n and k is the natural number greater than 1.Pass through The various combination of raadable mark represents different coding units, will not enumerate herein.In addition, the coding unit of Fig. 5 and Fig. 6 Shown in horizontal dotted line and vertical dotted line only for schematically illustrating the position of raadable mark, it is in the specific implementation, horizontal empty Line and vertical dotted line do not need to be presented on body surface.
It is worth noting that, it is preferable that it is adjacent in each coding unit when in coding unit comprising multiple raadable marks Being equidistant between raadable mark, the distance between adjacent encoder unit is equal, and the distance between adjacent encoder unit is big The distance between raadable mark in coding unit.Such as: when in coding unit including two raadable marks, two readable marks The distance between note is 1/3 of distance between two neighboring coding unit.In embodiments of the present invention, more preferably, The distance between adjacent encoder unit can be the distance between adjacent encoder cell geometry center, it is of course also possible to be adjacent The distance between two o'clock at same position in coding unit, naturally it is also possible to be the corresponding reference position point of adjacent encoder unit it Between distance;Likewise, the distance between adjacent raadable mark can be the distance between adjacent raadable mark geometric center, it can also To be the distance between two o'clock at adjacent raadable mark same position, these embodiments all protection scope of the present invention it It is interior.
As can be seen from the above description, the coding of coding unit can be defined by the various combination of two or more raadable marks Value, i.e., by raadable mark combination come the encoded radio of identification code unit.
Preferably, in order to increase coding unit body surface randomness, make the color of body surface more uniform, Reduce coding pattern on the visual influence of user, before multiple coding units are presented on body surface in step 402, also Rotation process can be carried out to coding unit using the reference position point of coding unit as rotation center, be then presented on coding unit Body surface, comprising: body surface will be presented on by the coding unit of rotation.
When it is implemented, when including multiple raadable marks in coding unit, as a whole by multiple raadable marks, into Row rotation process.Specifically, rotation process can be carried out to all coding units, code segment unit can also be revolved Turn operation, and rotates angle and can be any angle.Wherein, in the case where rotating to coding unit, it is presented on object The direction of multiple coding units on surface can be not quite identical.
As more specific embodiment, as shown in fig. 7, the volume that coding unit 701 is shown in FIG. 6 shown in Fig. 7 Without rotation processing on the basis of code unit 601, coding unit 702 shown in Fig. 7 is to coding unit shown in Fig. 6 602 rotate 45 ° (degree) generations counterclockwise, and the coding unit 703 in Fig. 7 is to be rotated by 90 ° generation counterclockwise to coding unit 603 , the coding unit 704 in Fig. 7 is to carry out rotation behaviour to coding unit to the 135 ° of generations of rotation counterclockwise of coding unit 604 After work, coding unit is presented on body surface.
Above-mentioned rotation process at any angle is independently carried out as object using whole raadable marks in a coding unit Afterwards, the encoded radio identified due to relying on the gray value parsing coding unit of raadable mark in coding unit, it will not influence volume The code identification of unit or the encoded radio of coding unit, nor affect on the parsing result of location coordinate information.And by coding Unit is rotated at any angle, the print color of body surface (such as paper) can be made to be distributed relatively uniform.Due to being It is rotated using the reference position point of coding unit as rotation center, the reference position point position of the coding unit is constant, no It will affect the direction of line between the reference position point of multiple coding units.
Preferably, in order to improve raadable mark area value reading accuracy, reduce read area value False Rate, reduce The otherness of area value, reduction coding pattern are on the visual influence of user between raadable mark, in step 402 by multiple volumes Code unit is presented on before body surface, can also be added in coding unit with reference to raadable mark, is used for reference to raadable mark Determine the numerical value for the raadable mark mark that coding unit is included;Coding unit is then presented on body surface, comprising: will include Body surface is presented on reference to the coding unit of raadable mark.
When it is implemented, the area value with reference to raadable mark can be preset area value, and such as: preset area value is 0.01mm2(square millimeter) is also possible to the centre plane product value that preset quantity coding unit includes all raadable marks, or Person is the minimum value of raadable mark area value in preset quantity coding unit.Such as: it is all included in 6 coding units can The centre plane product value of read flag.In addition, with reference to raadable mark area value unit in addition to can be square measure such as mm2, It can also be the number of pixel, i.e. area value can also be characterized by the number of corresponding pixel, for example, if with reference to readable mark Note is the rectangle being made of 5*4 pixel, then the area value for referring to raadable mark is 20 pixels, in addition, with reference to readable mark The unit of the area value of note can also be square of the number of pixel, for example, if being by 5*4 pixel structure with reference to raadable mark At rectangle, then this with reference to raadable mark area value be 5 pixel *, 4 pixels.The same logic, the area of raadable mark The unit of value can also be square of the number of pixel or the number of pixel in addition to can be square measure.
It is worth noting that when it is implemented, whether can be pre-configured in coding unit comprising with reference to raadable mark, with It distinguishes comprising the coding unit with reference to raadable mark and not comprising the coding unit with reference to raadable mark.
As more specific embodiment, as shown in figure 8, coding unit 801 shown in Fig. 8 is shown in FIG. 6 Addition is generated with reference to raadable mark 80 in coding unit 601, and coding unit 802 shown in Fig. 8 is the volume being shown in FIG. 6 Addition is generated with reference to raadable mark 80 in code unit 602, and coding unit 803 shown in Fig. 8 is the coding being shown in FIG. 6 Addition is generated with reference to raadable mark 80 in unit 603, and coding unit 804 shown in Fig. 8 is the coding list being shown in FIG. 6 Addition is generated with reference to raadable mark 80 in member 604, and addition will be encoded with reference to after raadable mark 80 in each coding unit Unit is presented on body surface.It wherein, is two raadable mark area values in coding unit with reference to the area value of raadable mark 80 Average value.
In yet another embodiment, on a surface of an not in referring now to raadable mark.By obtaining multiple raadable marks Area value, and further calculate the centre plane product value of multiple raadable marks to determine the numerical value of raadable mark mark, such as: it is big It is 1 in the numerical value that the raadable mark of centre plane product value identifies, the numerical value less than the raadable mark mark of centre plane product value is 0.? In one embodiment, the area value by obtaining raadable mark directly determines the numerical value of raadable mark mark.
It should be noted that when it is implemented, before multiple coding units are presented on body surface in step 402, The step of rotation process is carried out to coding unit as rotation center using the reference position point of coding unit and add in coding unit Add with reference to the step of raadable mark, may be performed simultaneously, one of them can also be executed.
As more specific embodiment, as shown in figure 9, coding unit 901 shown in Fig. 9 is shown in FIG. 6 Addition is generated with reference to raadable mark in coding unit 601, and coding unit 902 shown in Fig. 9 is the coding being shown in FIG. 6 In unit 602 addition refer to raadable mark, and counterclockwise rotate 45 ° generation, coding unit 903 shown in Fig. 9 be Addition refers to raadable mark in coding unit 603 shown in Fig. 6, and is rotated by 90 ° generation counterclockwise, shown in Fig. 9 Coding unit 904 is that addition refers to raadable mark in the coding unit 604 being shown in FIG. 6, and rotates 135 ° of lifes counterclockwise At, after handling coding unit, coding unit is presented on body surface.
It preferably, can also be by the ash of coding pattern in order to reduce the diversity factor before and after body surface printing coding pattern Angle value is set as being closer to the gray value of body surface, but needs to guarantee the gray value of raadable mark and the ash of body surface Angle value has certain difference, to guarantee that raadable mark can be identified.
When it is implemented, the absolute value of the difference of the gray value of the gray value of raadable mark and the body surface is less than first It presets gray threshold and is greater than the second default gray threshold, wherein the first default gray threshold can freely be set, and second is default Gray threshold can be set according to the accuracy of identification of identification raadable mark equipment, such as: the first default gray threshold is 50, second Default gray threshold is 20.As more specific embodiment, the gray value of body surface is 150, the first default gray threshold It is 50, the second default gray threshold is 20, then the gray value of raadable mark can be in section (100,130) or (170,200) Middle selection.
It combines Fig. 4~Fig. 9 that the generation method of coding pattern provided in an embodiment of the present invention is illustrated above, connects down To combine Figure 10 that the recognition methods of coding pattern provided in an embodiment of the present invention is illustrated.
Figure 10 is a kind of flow diagram of the recognition methods of coding pattern provided in an embodiment of the present invention, and main includes compiling The identification process of code pattern, executing subject can be the intelligent writing equipment 302 and/or user terminal in application scenarios overview 303, as shown in Figure 10, a kind of recognition methods of coding pattern provided in an embodiment of the present invention includes the following steps:
Step 1001, acquisition presents the target image of the body surface of coding pattern;
In this step, acquisition presents the target image of the body surface of coding pattern, can be by being mounted on intelligent writing Image capture device acquisition in equipment 302 can also be acquired by the other equipment being used in conjunction with intelligent writing equipment 302, When it is implemented, target image can be acquired by shooting the coding pattern of body surface.
Step 1002, the coding unit in coding pattern is determined, and can according to the one or more for including in coding unit The area value of read flag determines the encoded radio of coding unit mark.
In this step, in collected target image, the coding unit in coding pattern is determined, according in coding unit The area value for the raadable mark for including determines the numerical value of raadable mark mark, then according to one or more for including in coding unit The numerical value of the mark of a raadable mark determines the encoded radio of coding unit mark.
The embodiment of the present invention when carrying out position encoded on a surface of an, is encoded using the area value of raadable mark, When parsing the numerical information that coding pattern represents, by the face for the one or more raadable marks for including in identification coding unit Product value parses the numerical value of raadable mark mark according to the area value for the one or more raadable marks for including in coding unit, into And the encoded radio of coding unit mark is precipitated according to the numerical solution of raadable mark mark, it need to only identify the area value of raadable mark, Without calculating grid position, without the angle calculated between raadable mark, identification is simple, and accuracy of identification is high, and calculation amount is small, fortune Scanning frequency degree is fast.
Preferably, for the coding unit in more convenient quick determining coding pattern, coding pattern can be first determined In reference line, the orientation of coding unit in reference line identification code pattern, such as: the horizontal dotted line in Fig. 5-Fig. 9 can With referred to as horizontal reference line, the vertical dotted line in Fig. 5-Fig. 9 is properly termed as vertical reference line, determines the reference line in coding pattern Later, when determining coding unit in coding pattern, after one or more coding units being determined in coding pattern, Next coding unit is determined along the direction of reference line.
Certainly, the reference line in coding pattern is other than it can be used for determining coding unit easily and fast, can be with For in the inclined situation of coding pattern in the target image of shooting, being used to carry out rotation processing to target image, to improve The accuracy rate and efficiency of coding unit identification, specifically:
Judge whether reference line in coding pattern and the boundary wire of target image parallel, if it is determined that result be it is no, then Rolling target image keeps the reference line in coding pattern parallel with boundary wire;Then determine the coding unit in coding pattern, packet It includes: by determining the coding unit in coding pattern in postrotational target image.Wherein, in determining coding pattern When the boundary wire of reference line and target image is not parallel, rolling target image refers to and protects in target image boundary wire part It holds under motionless scene, the image content portion in target image is rotated, so that reference line and side in coding pattern Boundary's wire is parallel, if the image content portion by rotation is fallen in except the wire of target image boundary, can give up and fall in mesh This parts of images content except the wire of logo image boundary.
If the reference line in coding pattern is parallel with the boundary wire of target image, do not need to revolve target image Turn processing, if the boundary wire of reference line and target image in coding pattern is not parallel, rolling target image makes code pattern Reference line in case is parallel with boundary wire.Wherein, the reference line in coding pattern is parallel with boundary wire is advantageous in that, When the subsequent coding unit identified on other rows or other column, can current calculated reference line horizontally or vertically Add an offset on the basis of coordinate value to get the approximate location of the reference line of other rows or other column is arrived, it is possible thereby to The coding unit of other rows or other column in quick recognition target image, has thus saved operand.Wherein, judge to encode Whether reference line and the boundary wire of target image are parallel in pattern, can use method in the prior art, no longer superfluous herein It states.
When it is implemented, determine the reference line in coding pattern, it can be in the following way:
Two first object coding units are determined in coding pattern, and connect the ginseng of two first object coding units It examines location point and generates reference line.
When it is implemented, in order to improve the accuracy of determining reference line, in two first object coding units of connection Before reference position point generates reference line, whether the distance between determine two first object coding units can also be judged Meet the first preset standard, if it is determined that result be it is yes, then the reference position point for connecting two first object coding units generates ginseng Examine line, if it is determined that result be it is no, then redefine two first object coding units, continue judgement redefine two first Whether the distance between target code unit meets the first preset standard, until two first object coding units determining it Between distance meet the first preset standard, connect two first object coding units reference position point generate reference line.
First preset standard can be n (n is natural number) times of distance between predefined two coding units, namely sentence The distance between disconnected two first object coding units whether be equal to distance between predefined two coding units n (n be from So number) times, certainly, when it is implemented, can have certain error range.Wherein, between predefined two coding units Distance can be when coding unit is presented on body surface, an absolute growth value of setting, be also possible to according to taking The length value that is calculated of image, such as: after all coding units for including in determining target image, retrieve all volumes Code unit distance between any two, and the encoding apart from minimum value as predefined two between any two using all coding units The distance between unit.
More preferably, calculate between two first object coding units apart from when, calculate two first objects and compile Linear distance between the reference position point of code unit in other embodiments of the present invention, can also calculate two first certainly Linear distance in target code unit at same position between two o'clock, as long as can determine that between two first object coding units Distance;It should be noted that part rotating encoding unit through rotation in the case where or different coding units In the case that the angle of rotation is inconsistent, when rotation center is reference position point, can by reference between location point away from From carrying out the distance between presentation code unit.
As more particular embodiment, if including a raadable mark in coding unit, a raadable mark is one A coding unit, it is determined that the reference line in coding pattern, comprising: select two raadable marks in coding pattern, judge institute Whether the distance between two raadable marks of selection meet the first preset standard, if it is determined that result be it is yes, then connect selected by Two raadable marks reference position point generate reference line.
As another more particular embodiment, if comprising multiple (comprising two and more than two) readable in coding unit Label, and coding unit is encoded since coding pattern is without rotation processing with a line or same row without rotation processing Raadable mark in unit arranges in the same direction (namely direction of reference line), accordingly, it is determined that the reference in coding pattern Line, comprising: determine a second target code unit in coding pattern, and connecting in the second target code unit two can The predeterminated position point of read flag generates reference line, the predeterminated position point of two raadable marks, can be located at two it is readable At the same position of label;More preferably, the geometric center for connecting two raadable marks in the second target code unit generates Reference line.
Wherein, when the predeterminated position point for connecting two raadable marks in the second target code unit generates reference line, Two raadable marks can be any two in multiple raadable marks included by coding unit, be not specifically limited herein.And And, it should be appreciated that the first object coding unit and the second target code unit being previously mentioned in the embodiment of the present invention be The coding unit determined in coding pattern, and the title of first object coding unit and the second target code unit, are only used The coding unit determined in two kinds of embodiments of differentiation.
Include two raadable marks in coding unit when it is implemented, situation as shown in Figure 6, and coding unit without Cross rotation processing, it is determined that when reference line in coding pattern, it is only necessary to determine a coding unit, then connection is determined The predeterminated position point of two raadable marks generates reference line in coding unit, more preferably, in order to enable coding unit is several What center is on reference line, and when generating reference line, the geometric center that can connect two raadable marks generates reference line.
Certainly, when including multiple raadable marks in coding unit, if coding unit without rotation processing, can be A coding unit is determined in coding pattern, then connects the default of any two raadable mark in the coding unit determined Location point generates reference line.
When it is implemented, the encoded radio of either parsing coding unit mark, or determine the reference line in coding pattern, It is required to first determine one or more coding units in coding pattern, and determines coding unit in coding pattern, including Several situations below:
It include a raadable mark in situation one, coding unit, as shown in Figure 5, it is determined that the coding list in coding pattern Member a, comprising: raadable mark is determined as a coding unit.
It include N number of raadable mark in situation two, coding unit, as shown in Fig. 6-Fig. 9, it is determined that the coding in coding pattern Unit, comprising: N number of raadable mark is selected in coding pattern, in the combination of two of selected N number of raadable mark, judgement is pre- If whether the distance between two raadable marks meet the second preset standard in combination, if it is determined that result be it is yes, then will selected by N number of raadable mark be determined as a coding unit, wherein N is natural number greater than 1.
After selecting N number of raadable mark, in the combination of two of selected N number of raadable mark, judge in default combination Whether the distance between two raadable marks meet the second preset standard, when it is implemented, default combination can freely be set, and Second preset standard can be different according to default combined difference, such as: default combination can be all N number of raadable marks Combination of two, the second preset standard can (n be no more than N-1's for the n equal to distance between predefined two raadable marks Natural number) times, judge in selected N number of raadable mark, it is predefined whether the distance between every two raadable mark is equal to Two raadable marks between n (n be no more than the natural number of N-1) times of distance (can have certain error when specific implementation Range), if so, selected N number of raadable mark is determined as a coding unit;Again for example: preset group is combined into N number of readable Mark the part combination in combination of two, preset group is combined into combination apart from maximum two raadable marks and two neighboring The combination of raadable mark, and the second preset standard can be equal to predefined two for the distance between two neighboring raadable mark Distance between raadable mark, and apart from the distance between maximum two raadable marks be equal to predefined two raadable marks it Between N-1 times of distance.Wherein, the distance between predefined two raadable marks, can be coding unit being presented on object When surface, an absolute growth value of setting, can also with the distance of all raadable marks between any two in searched targets image, and Using the minimum value of raadable marks all in searched targets image between any two as between predefined two raadable marks away from From.
Wherein, more preferably, the distance between two raadable marks are the linear distance between two raadable marks, can To be the linear distance between two raadable mark geometric centers, it is also possible at two raadable mark same positions between two o'clock Linear distance.
It include two raadable marks in coding unit, as shown in Figure 6 and Figure 7, in determination as more specific embodiment When coding unit in coding pattern, optional two raadable marks in coding pattern, it is preferable that select adjacent two readable Label, then judge the linear distance between selected two raadable marks whether be equal to predefined two raadable marks it Between distance, if it is determined that result be it is yes, then selected two raadable marks are determined as a coding unit, if it is determined that result Be it is no, then selected two raadable marks are not the raadable marks in a coding unit.
It include three raadable marks in coding unit as another more specific embodiment, as shown in Figure 8 and Figure 9, When determining the coding unit in coding pattern, optional three raadable marks in coding pattern, it is preferable that select adjacent three Raadable mark judges whether is linear distance between two neighboring raadable mark then in selected three raadable marks Equal to the distance between predefined two raadable marks, and judge the linear distance between maximum two raadable marks Whether 2 times of predefined two raadable mark between distance are equal to, if it is determined that result is to be, then it can by selected three Read flag is determined as a coding unit, if it is determined that result be it is no, then selected three raadable marks are not that coding is single Raadable mark in member.
In step 1002, coding unit is determined according to the area value for the one or more raadable marks for including in coding unit The encoded radio of mark can be divided into following situations, specifically:
Situation one, coding unit include a raadable mark, then readable according to the one or more for including in coding unit The area value of label determines the encoded radio of coding unit mark, comprising: is determined according to the area value of a raadable mark readable Mark the numerical value of mark, and the encoded radio that the numerical value that a raadable mark identifies is identified as coding unit.
Situation two, coding unit include multiple raadable marks, then readable according to the one or more for including in coding unit The area value of label determines the encoded radio of coding unit mark, comprising: each may be used according to the determination of the area value of each raadable mark The numerical value of read flag mark, and according to the numerical value of multiple raadable marks to put in order and each raadable mark identifies, it determines The encoded radio of coding unit mark.
When it is implemented, when in coding unit including multiple raadable marks, each raadable mark can be in coding unit Corresponding numerical value is parsed, then when determining the encoded radio of coding unit mark, it is also necessary to according to raadable mark in coding unit Put in order or coding unit in raadable mark combination.
As more specific embodiment, as shown in fig. 6, including two raadable marks in each coding unit, it is assumed that Larger area value raadable mark mark numerical value be binary numeral 1, compared with facet product value raadable mark mark numerical value be two into Numerical value 0 processed, when determining the encoded radio that coding unit 602 identifies, it is first determined the numerical value that raadable mark identifies in coding unit 602 Respectively binary numeral 0 and binary numeral 1, it is larger due to being arranged in coding unit 602 compared with the raadable mark of small area Before the raadable mark of area, therefore, the encoded radio that coding unit 602 identifies is binary numeral 01 namely coding unit 602 The encoded radio of mark is 1, and so on, the encoded radio that coding unit 601 identifies is 0, and the encoded radio that coding unit 603 identifies is 1, the encoded radio that coding unit 604 identifies is 3.
It should be noted that needing can when the area value according to raadable mark determines the numerical value of raadable mark mark The area value of read flag is compared with preset area threshold value, and then determines the numerical value of raadable mark mark, wherein if coding is single Comprising referring to raadable mark in member, then preset area threshold value is the area value with reference to raadable mark, if not including in coding unit With reference to raadable mark, then when preset area threshold value can be to be presented coding unit, an area value of setting, such as: default face Product threshold value is 0.01mm2, preset area threshold value is also possible to being averaged for raadable mark area value in preset quantity coding unit Value.
When it is implemented, then being determined according to the area value of raadable mark readable in coding unit comprising referring to raadable mark Mark the numerical value of mark, comprising: for each raadable mark in coding unit in addition to reference raadable mark, by raadable mark Area value be compared with reference to the area value of raadable mark, the numerical value of raadable mark mark is determined according to comparison result.Example Such as: the area value of raadable mark is greater than the area value with reference to raadable mark, and the numerical value of raadable mark mark is 1;Raadable mark Area value is less than the area value with reference to raadable mark, and the numerical value of raadable mark mark is 0.
Not comprising referring to raadable mark in coding unit, then raadable mark mark is determined according to the area value of raadable mark Numerical value, comprising: for each raadable mark in coding unit, the area value of raadable mark and preset area threshold value are compared Compared with, according to comparison result determine raadable mark mark numerical value.Such as: the area value of raadable mark is greater than preset area threshold value, The numerical value of raadable mark mark is 1;The area value of raadable mark is less than preset area threshold value, and the numerical value of raadable mark mark is 0.
When specific implementation step 1002, one or two coding unit can be first determined, according to one determined or two A coding unit determines the reference line in coding pattern, then based on one or two coding unit determined, along ginseng The other coding units of line direction discernment are examined, while parsing the encoded radio of each coding unit mark.In parsing coding pattern When the encoded radio of coding unit mark, it can be parsed in a manner of progressively or column by column, one is determined in coding pattern After the capable perhaps reference line of a column when the subsequent coding unit identified on other rows or other column, it can calculate first An offset is added on the basis of the horizontal or vertical coordinate value of reference line out, obtains the reference of other rows or other column The approximate location of line, thus, it is possible to quickly identify the coding unit of the other rows or other column in coding pattern.Wherein, exist When determining that every row perhaps parses the encoded radio that coding unit identifies in the row or the column after the reference line of each column, identify first First coding unit of the row or the column out, the encoded radio of parsing coding unit mark, then along reference line direction discernment Next coding unit, and the encoded radio of next coding unit mark is parsed, and so on, until parsing the row or being somebody's turn to do Until the encoded radio of the last one coding unit mark of column.
Example devices
After describing the method for exemplary embodiment of the invention, next, describing this hair with reference to Figure 11~Figure 12 The generating means and identification device of the coding pattern of bright illustrative embodiments.
Figure 11 is a kind of structural schematic diagram of the generating means of coding pattern provided in an embodiment of the present invention, such as Figure 11 institute Show, may include following module:
Module 1101 is obtained, for obtaining the coding unit of the coordinate information for parsing body surface position;
Module 1102 is presented, for multiple coding units to be presented on body surface, forms coding pattern;
It wherein, include one or more raadable marks in coding unit, and the area value of raadable mark is corresponding for parsing Numerical value.
In some embodiments of the present embodiment, optionally, the generating means of the coding pattern, further includes:
First processing module 1103, for being revolved using the reference position point of coding unit as rotation center to coding unit Turn operation;
Module 1102 is then presented, is specifically used for: body surface will be presented on by the coding unit of rotation.
In some embodiments of the present embodiment, optionally, the generating means of the coding pattern, further includes:
Second processing module 1104 refers to raadable mark for adding in coding unit, with reference to raadable mark for true Determine the numerical value for the raadable mark mark that coding unit is included;
Module 1102 is then presented, is specifically used for: the coding unit comprising reference raadable mark is presented on body surface.
Preferably, the area value for the reference raadable mark that Second processing module 1104 is added in coding unit is default face Product value or preset quantity coding unit include the centre plane product value of all raadable marks.
Preferably, it includes any one or more in following figure: point, line that the raadable mark that module 1102 is presented, which is presented, Section, circle, rectangle, triangle and polygon.
Preferably, the absolute of the difference of the gray value for the raadable mark that module 1102 is presented and the gray value of body surface is presented Value is less than the first default gray threshold and is greater than the second default gray threshold.
Preferably, module 1102 is presented, is also used to: in the case where including multiple raadable marks in coding unit, passing through The combination of multiple raadable marks carrys out the encoded radio of identification code unit.
Figure 12 is a kind of structural schematic diagram of the identification device of coding pattern provided in an embodiment of the present invention, such as Figure 12 institute Show, may include following module:
Acquisition module 1201, for acquiring the target image for presenting the body surface of coding pattern;
Parsing module 1202, for determining the coding unit in coding pattern, and according to one for including in coding unit Or the area value of multiple raadable marks determines the encoded radio of coding unit mark.
In some embodiments of the present embodiment, optionally, the identification device of the coding pattern, further includes:
Reference line determining module 1203, for determining the reference line in coding pattern;
Then parsing module 1202 determines the coding unit in coding pattern, is specifically used for:
After determining one or more coding units in coding pattern, next coding is determined along the direction of reference line Unit.
In some embodiments of the present embodiment, optionally, the identification device of the coding pattern, further includes:
Image processing module 1204, for judging whether the boundary wire of reference line and target image in coding pattern puts down Row, if it is determined that result be it is no, then rolling target image, keeps the reference line in coding pattern parallel with boundary wire;
Then parsing module 1202 determines the coding unit in coding pattern, is specifically used for:
By determining the coding unit in coding pattern in postrotational target image.
Preferably, reference line determining module 1203, is specifically used for: two first object codings are determined in coding pattern Unit, and the reference position point for connecting two first object coding units generates reference line;Or
In coding unit comprising multiple raadable marks and in the case that coding unit is without rotation processing, in code pattern A second target code unit is determined in case, and connects the predeterminated position of two raadable marks in the second target code unit Point generates reference line.
Preferably, reference line determining module 1203, comprising:
Whether judging unit 12031, the distance between two first object coding units for judging to determine meet First preset standard;
Determination unit 12032, for determining the distance symbol between two first object coding units in judging unit 12031 Under conditions of closing the first preset standard, the reference position point for connecting two first object coding units generates reference line.
Preferably, parsing module 1202 determines the coding unit in coding pattern, is specifically used for:
Include a raadable mark in coding unit, then a raadable mark is determined as a coding unit;Or
Include N number of raadable mark in coding unit, N number of raadable mark is selected in coding pattern, selected N number of readable In the combination of two of label, judge whether the distance between two raadable marks meet the second preset standard in default combination, if Determine result be it is yes, then selected N number of raadable mark is determined as a coding unit, wherein N is natural number greater than 1.
Preferably, parsing module 1202 is determined according to the area value for the one or more raadable marks for including in coding unit The encoded radio of coding unit mark, is specifically used for:
Coding unit includes a raadable mark, then determines that raadable mark identifies according to the area value of a raadable mark Numerical value, and the encoded radio that is identified as coding unit of numerical value that a raadable mark is identified;Or
Coding unit includes multiple raadable marks, determines that each raadable mark identifies according to the area value of each raadable mark Numerical value, and according to multiple raadable marks put in order and each raadable mark mark numerical value, determine coding unit mark The encoded radio of knowledge.
Preferably, parsing module 1202 determines the numerical value of raadable mark mark according to the area value of raadable mark, specific to use In:
Comprising referring to raadable mark in coding unit, then being directed to can each of in addition to reference raadable mark in coding unit The area value of raadable mark is compared with the area value with reference to raadable mark, is determined according to comparison result readable by read flag Mark the numerical value of mark;Or
Not comprising referring to raadable mark in coding unit, then for each raadable mark in coding unit, by readable mark The area value of note is compared with preset area threshold value, and the numerical value of raadable mark mark is determined according to comparison result.
Example devices
In the generating means for the coding pattern for describing exemplary embodiment of the invention and the identification device of coding pattern Later, next, introducing the generating means and coding pattern of the coding pattern of another exemplary embodiment according to the present invention Identification device.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
In some possible embodiments, the generating means of coding pattern according to the present invention can include at least at least One processing unit and at least one storage unit.Wherein, the storage unit is stored with program code, works as described program When code is executed by the processing unit, retouched in above-mentioned " illustrative methods " part of this specification so that the processing unit executes Step in the generation method of the coding pattern for the illustrative embodiments various according to the present invention stated.For example, the processing is single Member can execute step 401 as shown in Figure 4, obtain the coding unit for parsing the coordinate information of body surface position; Step 402, multiple coding units are presented on body surface, form coding pattern;It wherein, include one or more in coding unit A raadable mark, and the area value of raadable mark is for parsing corresponding numerical value.
The generating means 130 of the coding pattern of this embodiment according to the present invention are described referring to Figure 13.Figure The generating means 130 of the coding patterns of 13 displays are only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 13, the generating means 130 of coding pattern are showed in the form of universal computing device.The life of coding pattern It can include but is not limited at the component of device 130: at least one above-mentioned processing unit 1301, at least one above-mentioned storage unit 1302, the bus 1303 of different system components (including processing unit 1301 and storage unit 1302) is connected.
Bus 1303 indicates one of a few class bus structures or a variety of, including memory bus or memory control Device, peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Storage unit 1302 may include the readable medium of form of volatile memory, such as random access memory (RAM) 13021 and/or cache memory 13022, it can further include read-only memory (ROM) 13023.
Storage unit 1302 can also include program/utility with one group of (at least one) program module 13024 13025, such program module 13024 includes but is not limited to: operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.
The generating means 130 of coding pattern can also be with one or more external equipments 1304 (such as keyboard, sensing equipment Deng) communication, the equipment interacted with the generating means 130 of coding pattern can be also enabled a user to one or more to be communicated, and/ Or with enable the generating means 130 of the coding pattern and one or more of the other any equipment for being communicated of calculating equipment (such as router, modem etc.) communication.This communication can be carried out by input/output (I/O) interface 1305.And And the generating means 130 of coding pattern can also pass through network adapter 1306 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown in figure 13, network adapter 1306 passes through Bus 1303 is communicated with other modules of the generating means 130 of coding pattern.It will be appreciated that though being not shown in the figure, Ke Yijie The generating means 130 for closing coding pattern use other hardware and/or software module, including but not limited to: microcode, device drives Device, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Next, introducing the identification device of the coding pattern of another exemplary embodiment according to the present invention.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
In some possible embodiments, the identification device of coding pattern according to the present invention can include at least at least One processing unit and at least one storage unit.Wherein, the storage unit is stored with program code, works as described program When code is executed by the processing unit, retouched in above-mentioned " illustrative methods " part of this specification so that the processing unit executes Step in the recognition methods of the coding pattern for the illustrative embodiments various according to the present invention stated.For example, the processing is single Member can execute step 1001 as shown in Figure 10, and acquisition presents the target image of the body surface of coding pattern;Step 1002, determine the coding unit in coding pattern, and according to the area for the one or more raadable marks for including in coding unit It is worth the encoded radio for determining coding unit mark.
The identification device 140 of the coding pattern of this embodiment according to the present invention is described referring to Figure 14.Figure The identification device 140 of the coding patterns of 14 displays is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 14, the identification device 140 of coding pattern is showed in the form of universal computing device.The knowledge of coding pattern The component of other device 140 can include but is not limited to: at least one above-mentioned processing unit 1401, at least one above-mentioned storage unit 1402, the bus 1403 of different system components (including processing unit 1401 and storage unit 1402) is connected.
Bus 1403 indicates one of a few class bus structures or a variety of, including memory bus or memory control Device, peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Storage unit 1402 may include the readable medium of form of volatile memory, such as random access memory (RAM) 14021 and/or cache memory 14022, it can further include read-only memory (ROM) 14023.
Storage unit 1402 can also include program/utility with one group of (at least one) program module 14024 14025, such program module 14024 includes but is not limited to: operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.
The identification device 140 of coding pattern can also be with one or more external equipments 1404 (such as keyboard, sensing equipment Deng) communication, the equipment interacted with the identification device 140 of coding pattern can be also enabled a user to one or more to be communicated, and/ Or with enable the identification device 140 of the coding pattern and one or more of the other any equipment for being communicated of calculating equipment (such as router, modem etc.) communication.This communication can be carried out by input/output (I/O) interface 1405.And And the identification device 140 of coding pattern can also pass through network adapter 1406 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown in figure 14, network adapter 1406 passes through Bus 1403 is communicated with other modules of the identification device 140 of coding pattern.It will be appreciated that though being not shown in the figure, Ke Yijie The identification device 140 for closing coding pattern uses other hardware and/or software module, including but not limited to: microcode, device drives Device, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Exemplary process product
In some possible embodiments, the various aspects of the generation method of coding pattern provided by the invention can be with It is embodied as a kind of form of program product comprising program code, when described program product is run on a computing device, institute Program code is stated for executing the computer equipment described in above-mentioned " illustrative methods " part of this specification according to this The step in the generation method of the coding pattern of various illustrative embodiments is invented, for example, the computer equipment can be held Row step 401 as shown in Figure 4, obtains the coding unit for parsing the coordinate information of body surface position;Step 402, Multiple coding units are presented on body surface, form coding pattern;It wherein, include one or more readable marks in coding unit Note, and the area value of raadable mark is for parsing corresponding numerical value.
Above procedure product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 15, the program product 150 of embodiment according to the present invention generated for coding pattern is described, It can be using portable compact disc read only memory (CD-ROM) and including program code, and can transport on the terminal device Row.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing, which can be, any to be included or stores The tangible medium of program, the program can be commanded execution system, device or device use or in connection.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional mistake Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user It executes in equipment, partly execute on a user device, executing, as an independent software package partially in user calculating equipment Upper part executes on a remote computing or executes in remote computing device or server completely.It is being related to remotely counting In the situation for calculating equipment, remote computing device can pass through the network of any kind --- including local area network (LAN) or wide area network (WAN)-it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In other possible embodiments, the various aspects of the recognition methods of coding pattern provided by the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on a computing device, Said program code is for making the computer equipment execute basis described in above-mentioned " illustrative methods " part of this specification Step in the recognition methods of the coding pattern of the various illustrative embodiments of the present invention, for example, the computer equipment can be with Step 1001 as shown in Figure 10 is executed, acquisition presents the target image of the body surface of coding pattern;Step 1002, really Determine the coding unit in coding pattern, and is determined and compiled according to the area value for the one or more raadable marks for including in coding unit The encoded radio of code unit marks.
Above procedure product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 16, the program product 160 for coding pattern identification of embodiment according to the present invention is described, It can be using portable compact disc read only memory (CD-ROM) and including program code, and can transport on the terminal device Row.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing, which can be, any to be included or stores The tangible medium of program, the program can be commanded execution system, device or device use or in connection.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional mistake Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user It executes in equipment, partly execute on a user device, executing, as an independent software package partially in user calculating equipment Upper part executes on a remote computing or executes in remote computing device or server completely.It is being related to remotely counting In the situation for calculating equipment, remote computing device can pass through the network of any kind --- including local area network (LAN) or wide area network (WAN)-it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
It should be noted that although being referred to several modules or submodule of device in the above detailed description, this stroke It point is only exemplary not enforceable.In fact, embodiment according to the present invention, it is above-described two or more The feature and function of module can embody in a module.Conversely, the feature and function of an above-described module can It is to be embodied by multiple modules with further division.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and Included various modifications and equivalent arrangements in range.

Claims (34)

1. a kind of generation method of coding pattern, comprising:
Obtain the coding unit for parsing the coordinate information of body surface position;
Multiple coding units are presented on the body surface, form coding pattern;
It wherein, include one or more raadable marks in the coding unit, and the area value of the raadable mark is for parsing Corresponding numerical value.
2. according to the method described in claim 1, further comprising:
Rotation process is carried out to coding unit using the reference position point of the coding unit as rotation center;
It is then described that the coding unit is presented on the body surface, comprising:
The body surface will be presented on by the coding unit of rotation.
3. according to the method described in claim 1, further comprising:
Addition refers to raadable mark in the coding unit, described to be used to determine what coding unit was included with reference to raadable mark The numerical value of raadable mark mark;
It is then described that the coding unit is presented on the body surface, comprising:
The body surface will be presented on comprising the coding unit with reference to raadable mark.
4. according to the method described in claim 3, wherein, the area value with reference to raadable mark is for preset area value or in advance If quantity coding unit includes the centre plane product value of all raadable marks.
5. method according to any of claims 1-4, wherein the raadable mark includes any in following figure It is one or more: point, line segment, circle, rectangle, triangle and polygon.
6. method according to any of claims 1-4, wherein the gray value of the raadable mark and the object table The absolute value of the difference of the gray value in face is less than the first default gray threshold and is greater than the second default gray threshold.
7. method according to any of claims 1-4 further comprises:
In the case where including multiple raadable marks in coding unit, by the combination of multiple raadable marks come identification code unit Encoded radio.
8. a kind of recognition methods of coding pattern, comprising:
Acquisition presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern, and according to the one or more raadable marks for including in the coding unit Area value determine the encoded radio of coding unit mark.
9. according to the method described in claim 8, further comprising:
Determine the reference line in the coding pattern;
Then determine the coding unit in the coding pattern, comprising:
After determining one or more coding units in the coding pattern, determined along the direction of the reference line next Coding unit.
10. according to the method described in claim 9, further comprising:
Judge whether reference line in the coding pattern and the boundary wire of the target image are parallel, if it is determined that result is It is no, then the target image is rotated, keeps the reference line in the coding pattern parallel with the boundary wire;
Then determine the coding unit in the coding pattern, comprising:
By determining the coding unit in the coding pattern in postrotational target image.
11. according to the method described in claim 9, wherein,
Reference line in the determination coding pattern, comprising: determine that two first objects are compiled in the coding pattern Code unit, and the reference position point for connecting two first object coding units generates the reference line;Or
Comprising multiple raadable marks and the coding unit is without rotation processing in the coding unit, then described in the determination Reference line in coding pattern, comprising: determine a second target code unit in the coding pattern, and connect second The predeterminated position point of two raadable marks generates the reference line in target code unit.
12. according to the method for claim 11, wherein the reference position point of two first object coding units of the connection Generate the reference line, comprising:
Judge whether the distance between the two first object coding units determined meet the first preset standard;
Under conditions of determining that the distance between two first object coding units meets first preset standard, two are connected The reference position point of first object coding unit generates the reference line.
13. the method according to any one of claim 8-12, wherein
It include a raadable mark, the then coding unit in the determination coding pattern in the coding unit, comprising: will One raadable mark is determined as a coding unit;Or
It include N number of raadable mark, the then coding unit in the determination coding pattern in the coding unit, comprising: N number of raadable mark is selected in the coding pattern, in the combination of two of selected N number of raadable mark, is judged in default combination Whether the distance between two raadable marks meet the second preset standard, if it is determined that result be it is yes, then will be selected N number of readable Label is determined as a coding unit, wherein N is the natural number greater than 1.
14. the method according to any one of claim 8-12, wherein
The coding unit includes a raadable mark, then described readable according to the one or more for including in the coding unit The area value of label determines the encoded radio of the coding unit mark, comprising: is determined according to the area value of a raadable mark The numerical value of raadable mark mark, and the encoded radio that the numerical value that a raadable mark identifies is identified as the coding unit; Or
The coding unit includes multiple raadable marks, then described readable according to the one or more for including in the coding unit The area value of label determines the encoded radio of the coding unit mark, comprising: is determined according to the area value of each raadable mark every The numerical value of a raadable mark mark, and according to multiple raadable marks put in order and the numerical value of each raadable mark mark, Determine the encoded radio of the coding unit mark.
15. according to the method for claim 14, wherein
Comprising referring to raadable mark in the coding unit, then the number of raadable mark mark is determined according to the area value of raadable mark Value, comprising: in coding unit except described with reference to raadable mark in addition to each raadable mark, by the area value of raadable mark It is compared with the area value with reference to raadable mark, the numerical value of raadable mark mark is determined according to comparison result;Or
Not comprising referring to raadable mark in the coding unit, then raadable mark mark is determined according to the area value of raadable mark Numerical value, comprising: for each raadable mark in coding unit, the area value of raadable mark and preset area threshold value are compared Compared with, according to comparison result determine raadable mark mark numerical value.
16. a kind of generating means of coding pattern, comprising:
Module is obtained, for obtaining the coding unit of the coordinate information for parsing body surface position;
Module is presented, for multiple coding units to be presented on the body surface, forms coding pattern;
It wherein, include one or more raadable marks in the coding unit, and the area value of the raadable mark is for parsing Corresponding numerical value.
17. device according to claim 16, further comprises:
First processing module, for carrying out rotation behaviour to coding unit using the reference position point of the coding unit as rotation center Make;
The then presentation module, is specifically used for: will be presented on the body surface by the coding unit of rotation.
18. device according to claim 16, further comprises:
Second processing module refers to raadable mark for adding in the coding unit, and the reference raadable mark is for true Determine the numerical value for the raadable mark mark that coding unit is included;
The then presentation module, is specifically used for: will be presented on the object table comprising the coding unit with reference to raadable mark Face.
19. device according to claim 18, wherein the ginseng that the Second processing module is added in the coding unit It includes being averaged for all raadable marks that the area value of raadable mark, which is examined, by preset area value or preset quantity coding unit Area value.
20. device described in any one of 6-19 according to claim 1, wherein the raadable mark packet that module is presented and presents Include any one or more in following figure: point, line segment, circle, rectangle, triangle and polygon.
21. device described in any one of 6-19 according to claim 1, wherein the raadable mark that module presentation is presented The absolute value of the difference of the gray value of gray value and the body surface is less than the first default gray threshold and is greater than the second default ash Spend threshold value.
22. device described in any one of 6-19 according to claim 1, wherein the presentation module is also used to: single in coding In the case where including multiple raadable marks in member, by the combination of multiple raadable marks come the encoded radio of identification code unit.
23. a kind of identification device of coding pattern, comprising:
Acquisition module, for acquiring the target image for presenting the body surface of coding pattern;
Parsing module, for determining the coding unit in the coding pattern, and according to one for including in the coding unit Or the area value of multiple raadable marks determines the encoded radio of the coding unit mark.
24. device according to claim 23, further comprises:
Reference line determining module, for determining the reference line in the coding pattern;
Then the parsing module determines the coding unit in the coding pattern, is specifically used for:
After determining one or more coding units in the coding pattern, determined along the direction of the reference line next Coding unit.
25. device according to claim 24, further comprises:
Image processing module, for judging whether the reference line in the coding pattern and the boundary wire of the target image put down Row, if it is determined that result be it is no, then rotate the target image, put down reference line in the coding pattern and the boundary wire Row;
Then the parsing module determines the coding unit in the coding pattern, is specifically used for:
By determining the coding unit in the coding pattern in postrotational target image.
26. device according to claim 24, wherein
The reference line determining module, is specifically used for: two first object coding units are determined in the coding pattern, and The reference position point for connecting two first object coding units generates the reference line;Or
In the coding unit comprising more than two raadable marks and in the case that the coding unit is without rotation processing, A second target code unit is determined in the coding pattern, and connects two readable marks in the second target code unit The predeterminated position point of note generates the reference line.
27. device according to claim 26, wherein the reference line determining module, comprising:
Whether judging unit, the distance between two first object coding units for judging to determine meet the first pre- bidding It is quasi-;
Determination unit, for determining that the distance between two first object coding units meets described first in the judging unit Under conditions of preset standard, the reference position point for connecting two first object coding units generates the reference line.
28. the device according to any one of claim 23-27, wherein the parsing module determines the coding pattern In coding unit, be specifically used for:
Include a raadable mark in the coding unit, then a raadable mark is determined as a coding unit;Or
Include N number of raadable mark in the coding unit, N number of raadable mark is selected in the coding pattern, selected N number of In the combination of two of raadable mark, judge whether the distance between two raadable marks meet the second pre- bidding in default combination Standard, if it is determined that result be it is yes, then selected N number of raadable mark is determined as a coding unit, wherein N be greater than 1 from So number.
29. the device according to any one of claim 23-27, wherein the parsing module is according to the coding unit In include the area values of one or more raadable marks determine the encoded radio of coding unit mark, be specifically used for:
The coding unit includes a raadable mark, then determines that raadable mark identifies according to the area value of a raadable mark Numerical value, and the encoded radio that is identified as the coding unit of numerical value that a raadable mark is identified;Or
The coding unit includes multiple raadable marks, determines that each raadable mark identifies according to the area value of each raadable mark Numerical value, and according to multiple raadable marks put in order and the numerical value of each raadable mark mark, determine the coding singly The encoded radio of member mark.
30. device according to claim 29, wherein the parsing module determines readable according to the area value of raadable mark The numerical value for marking mark, is specifically used for:
Comprising referring to raadable mark in the coding unit, then in coding unit except described with reference to raadable mark in addition to it is every The area value of raadable mark is compared, according to comparison result by a raadable mark with the area value with reference to raadable mark Determine the numerical value of raadable mark mark;Or
Not comprising referring to raadable mark in the coding unit, then for each raadable mark in coding unit, by readable mark The area value of note is compared with preset area threshold value, and the numerical value of raadable mark mark is determined according to comparison result.
31. a kind of generating means of coding pattern, including at least one processing unit and at least one storage unit, wherein The storage unit is stored with program code, when said program code is executed by the processing unit, so that the processing is single First perform claim requires the step of any one of 1-7 the method.
32. a kind of identification device of coding pattern, including at least one processing unit and at least one storage unit, wherein The storage unit is stored with program code, when said program code is executed by the processing unit, so that the processing is single First perform claim requires the step of any one of 8-15 the method.
33. a kind of computer readable storage medium comprising program code, when said program code is run on a computing device When, said program code is used for the step of making the computer equipment perform claim require any one of 1-7 the method.
34. a kind of computer readable storage medium comprising program code, when said program code is run on a computing device When, said program code is used for the step of making the computer equipment perform claim require any one of 8-15 the method.
CN201610906405.0A 2016-10-18 2016-10-18 A kind of generation of coding pattern, recognition methods and device Active CN106570547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610906405.0A CN106570547B (en) 2016-10-18 2016-10-18 A kind of generation of coding pattern, recognition methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610906405.0A CN106570547B (en) 2016-10-18 2016-10-18 A kind of generation of coding pattern, recognition methods and device

Publications (2)

Publication Number Publication Date
CN106570547A CN106570547A (en) 2017-04-19
CN106570547B true CN106570547B (en) 2019-05-07

Family

ID=58533588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610906405.0A Active CN106570547B (en) 2016-10-18 2016-10-18 A kind of generation of coding pattern, recognition methods and device

Country Status (1)

Country Link
CN (1) CN106570547B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220689B (en) * 2017-05-27 2020-03-31 网易(杭州)网络有限公司 Position coding pattern generation method, device, equipment and readable storage medium
US10443787B2 (en) * 2017-09-26 2019-10-15 Saudi Arabian Oil Company System and method for encoding pipeline welds
CN110263895B (en) * 2019-06-25 2023-02-17 北京慧眼智行科技有限公司 Code graph generation method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217444A (en) * 2013-06-03 2014-12-17 支付宝(中国)网络技术有限公司 Card area positioning method and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7571864B2 (en) * 2005-12-16 2009-08-11 Pisafe, Inc. Method and system for creating and using barcodes

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217444A (en) * 2013-06-03 2014-12-17 支付宝(中国)网络技术有限公司 Card area positioning method and equipment

Also Published As

Publication number Publication date
CN106570547A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN106529635B (en) A kind of generation of coding pattern, recognition methods and device
US20200402305A1 (en) 3d hand shape and pose estimation
CN101882210B (en) Matrix two-dimensional barcode decoding chip and decoding method thereof
CN106570547B (en) A kind of generation of coding pattern, recognition methods and device
CN106570549A (en) Coding pattern generation and identification methods and coding pattern generation and identification devices
CN106570546B (en) A kind of generation of coding pattern, recognition methods and device
CN109308734B (en) 3D character generation method and device, equipment and storage medium thereof
US10027411B2 (en) Method of outputting color code for data communication to display screen and method of transmitting data using color code
CN111832449A (en) Engineering drawing display method and related device
CN113343958B (en) Text recognition method, device, equipment and medium
CN101908128B (en) Aztec Code bar code decoding chip and decoding method thereof
KR101690656B1 (en) Method and apparatus for generating media signal
CN101609372B (en) Two-dimensional point code as well as decoding device and decoding method thereof
CN106548499A (en) A kind of generation of coding pattern, recognition methodss and device
CN113177998A (en) Method and terminal device for generating three-dimensional model
CN107220689A (en) Position encoded method for generating pattern, device, equipment and readable storage medium storing program for executing
CN104850820B (en) A kind of recognition algorithms and device
CN111767889A (en) Formula recognition method, electronic device and computer readable medium
CN106778441A (en) A kind of graph image intelligent identifying system and its recognition methods
US20230297466A1 (en) Hardware-efficient pam-3 encoder and decoder
CN111724441A (en) Image annotation method and device, electronic equipment and storage medium
CN115031635A (en) Measuring method and device, electronic device and storage medium
EP4089583A1 (en) Model-independent confidence value prediction machine learned model
CN115860024A (en) Two-dimensional code identification method and identification device
CN109492068A (en) Object positioning method, device and electronic equipment in presumptive area

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
GR01 Patent grant
GR01 Patent grant