CN106570549A - Coding pattern generation and identification methods and coding pattern generation and identification devices - Google Patents

Coding pattern generation and identification methods and coding pattern generation and identification devices Download PDF

Info

Publication number
CN106570549A
CN106570549A CN201610970102.5A CN201610970102A CN106570549A CN 106570549 A CN106570549 A CN 106570549A CN 201610970102 A CN201610970102 A CN 201610970102A CN 106570549 A CN106570549 A CN 106570549A
Authority
CN
China
Prior art keywords
coding
coding unit
mark
raadable mark
rotation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610970102.5A
Other languages
Chinese (zh)
Inventor
陈刚
谭伟
姚锦辉
肖云龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201610970102.5A priority Critical patent/CN106570549A/en
Publication of CN106570549A publication Critical patent/CN106570549A/en
Pending legal-status Critical Current

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/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
    • 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

Abstract

The invention provides coding pattern generation and identification methods. The coding pattern generation method comprises that coding units for analyzing coordinate information of positions of an object surface are obtained; and the coding units are presented in the object surface to form a coding pattern. The coding pattern identification method comprises that an object image of the object surface which presents the coding pattern is collected; the coding units in the coding pattern are determined; a reference line in the coding pattern is determined; and the reference line is taken as a datum line, and coding values of coding unit identifiers are determined according to the rotation angle of a readable mark in the coding unit relatively to a rotation mark in a predefined reference image. According to the methods, the computational complexity of coding pattern identification is reduced, and the coding pattern identification precision and speed are improved. In addition, the invention also provides coding pattern generation and identification devices.

Description

A kind of generation of coding pattern, recognition methodss 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 Plant generation, recognition methodss and the device of coding pattern.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein Description is not because be included in this part just recognize it is prior art.
In prior art, can be by the information of including (for example:Numerical information, website information, coordinate information, text message with And encryption information etc.) coding pattern print on body surface, when these information are needed, collection body surface can be passed through The image of coding pattern, parses to the image of coding pattern, it is possible to parse the information included in coding pattern.It is common Coding pattern can be Quick Response Code, bar code, can also be other coding patterns.When implementing, can be by information with spy Determine algorithm to be encoded, obtain digital coding, then digital coding is converted into into coding pattern with ad hoc rule, it is also possible to directly with Ad hoc rule converts the information into coding pattern.
In prior art, there is a kind of coding pattern for printing on body surface, the coding pattern is used to represent seat on object The coordinate information of cursor position, the raadable mark very little included in coding pattern is (for example:Raadable mark symbol is less than 0.5mm), people Eye is not obvious for the visual identity of the raadable mark included in coding pattern.At present, coding pattern mainly has following two Implementation is planted, specifically:
Scheme one, in coding pattern, encoded with the relative position of nominal position according to raadable mark.It is concrete next Say, 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 representing different numerical informations, a plurality of horizontal gridlines and vertical grid Line constitutes grid, and during identification raadable mark grid is identified first, then recognizes raadable mark 102 relative to nominal position 101 Four different orientation come obtain different raadable marks 102 representative numerical information.For example:Raadable mark 102 in a, b, c, d The numerical information of representative is respectively ' 1 ', ' 2 ', ' 3 ', and dotted line is not printed on a surface of an in ' 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) being encoded, when the numerical information that coding pattern is represented is parsed, need to calculate horizontal gridlines and vertical grid Line, and then calculate and determine grid, then according to raadable mark orientation within a grid obtaining the numerical value of coding pattern representative Information, identification process is complicated, and computationally intensive, False Rate is higher, the performance of processor, photographic head and hardware device is had compared with High requirement, the requirement to algorithm is also higher.
Scheme two, the different directions of the line segment constituted according to line between multiple raadable marks in coding pattern are being compiled Code.Specifically, as shown in Fig. 2 as a example by including two raadable marks in coding pattern, obtaining the number that coding pattern is represented During value information, the midpoint that two lines of raadable mark 202 are obtained first obtains nominal position 201, and then connects each nominal position Put 201 and obtain grid lines, then obtain the difference that coding pattern is represented according to the different directions of the line of two raadable marks 202 Numerical information.For example:The numerical information that four different directions of two 202 lines of readable mark represent in a, b, c, d is respectively Binary numeral 00b, 01b, 10b, 11b.
When scheme two carries out position encoded on a surface of an, according to the line structure in coding pattern between multiple raadable marks Into line segment different directions being encoded, when the numerical information that coding pattern is represented is parsed, need to calculate two it is readable The midpoint of line between labelling, and then go out horizontal gridlines and vertical gridlines, Ran Houji according to the multiple mid-point computations determined Line is constituted between two raadable marks line segment and the angle between horizontal gridlines or vertical gridlines are calculated, angle is calculated more It is complicated and error is larger.
Therefore, a kind of generation of coding pattern, recognition methodss are needed badly at present, to reduce the amount of calculation of coding pattern identification, Improve the accuracy of identification and recognition speed of coding pattern.
The content of the invention
In for 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), when the numerical information that coding pattern is represented is parsed, needs first to determine net Lattice, then according to raadable mark orientation within a grid obtaining the numerical information of coding pattern representative, identification process is complicated, meter Calculation amount is big, and False Rate is higher;And the different directions of the line segment constituted according to line between multiple raadable marks in coding pattern come The scheme for being encoded, when the numerical information that coding pattern is represented is parsed, needs first according to the multipair raadable mark determined Mid-point computation go out horizontal gridlines and vertical gridlines, then calculate the line segment that constituted of line and water between two raadable marks Angle between plain net ruling or vertical gridlines, calculating angle is complex and error is larger.
For this purpose, a kind of generation, the recognition methodss of improved coding pattern are highly desirable to, in terms of reducing 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 expected to provide a kind of generation of coding pattern, recognition methodss and dress Put.
In the first aspect of embodiment of the present invention, there is provided a kind of generation method of coding pattern, including:
Obtain the coding unit for parsing the coordinate information of body surface position;
Multiple coding units are presented on into the body surface, coding pattern is formed;
Wherein, the coding unit includes raadable mark, and the raadable mark relative in predefined reference picture The anglec of rotation of raadable mark is used to parse the encoded radio of coding unit mark.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, the raadable mark includes Any one or more in following figure:T-shaped and triangle.
In a kind of possible embodiment, in said 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 more than the second default gray scale Threshold value.
In the second aspect of embodiment of the present invention, there is provided a kind of recognition methodss of coding pattern, including:
Collection presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern;
Determine the reference line in the coding pattern;
The line on the basis of the reference line, according to raadable mark in coding unit relative to readable in predefined reference picture The anglec of rotation of labelling determines the encoded radio of the coding unit mark.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, further include:Judge institute Whether the reference line stated in coding pattern is parallel with the border wire of the target image, if it is determined that result is no, then rotates institute Target image is stated, makes the reference line in the coding pattern parallel with the border wire;Then determine the coding pattern In coding unit, including:In postrotational target image, the coding unit in the coding pattern is determined.
It is described to determine the coding in said method provided in an embodiment of the present invention in a kind of possible embodiment Reference line in pattern, including:Two target code units are determined in the coding pattern, and connects two target codes The reference position point of unit generates the reference line.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, two targets of the connection The reference position point of coding unit generates the reference line, including:Between two target code units determining of judgement away from From whether meeting the first preset standard;Distance between two target code units of judgement meets first preset standard Under the conditions of, the reference position point for connecting two target code units generates the reference line.
It is described to determine the coding in said method provided in an embodiment of the present invention in a kind of possible embodiment Coding unit in pattern, including:A raadable mark in coding pattern is defined as into a coding unit.
It is described with the reference line in said method provided in an embodiment of the present invention in a kind of possible embodiment On the basis of line, institute is determined according to the anglec of rotation of the raadable mark in coding unit relative to raadable mark in predefined reference picture The encoded radio of coding unit mark is stated, including:Intercept in the target image centered on the reference position point of the coding unit, Topography with the preset length on reference line direction and vertical reference line direction as the length of side;Using with default rule change The anglec of rotation of change rotates the topography, and postrotational topography and the predefined reference picture are carried out Match somebody with somebody, when matching result meets pre-conditioned using the difference of present rotation angel degree or round angle and present rotation angel degree as Local map The anglec of rotation of the raadable mark relative to raadable mark in predefined reference picture as in;According to the default anglec of rotation and encoded radio Corresponding relation and the topography in raadable mark relative to raadable mark in predefined reference picture the anglec of rotation, Determine the encoded radio of the coding unit mark included in the topography.
It is described by postrotational office in said method provided in an embodiment of the present invention in a kind of possible embodiment Portion's image is matched with the predefined reference picture, when matching result meets pre-conditioned by present rotation angel degree or The difference of round angle and present rotation angel degree is as raadable mark in topography relative to raadable mark in predefined reference picture The anglec of rotation, including:Postrotational topography is carried out and computing with the predefined reference picture, it is determined that with computing after Image in the raadable mark gray value identical pixel quantity more than under conditions of predetermined threshold value, by present rotation angel degree Or the difference of round angle and present rotation angel degree as raadable mark in topography relative to readable mark in predefined reference picture The anglec of rotation of note.
It is described with the reference line in said method provided in an embodiment of the present invention in a kind of possible embodiment On the basis of line, institute is determined according to the anglec of rotation of the raadable mark in coding unit relative to raadable mark in predefined reference picture The encoded radio of coding unit mark is stated, including:Intercept in the target image centered on the reference position point of the coding unit, Topography with the preset length on reference line direction and vertical reference line direction as the length of side;According to preset reference image with The corresponding relation of encoded radio and the topography, determine the coding of the coding unit mark included in the topography Value.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, the preset reference image Including multiple reference pictures, then the corresponding relation and the topography according to preset reference image and encoded radio, really The encoded radio of the coding unit mark included in the fixed topography, including:By topography and described multiple reference pictures Matched respectively, under conditions of the arbitrary reference picture in multiple reference pictures matches with the topography, by this The encoded radio that the corresponding encoded radio of reference picture is identified as the coding unit.
In the third aspect of embodiment of the present invention, there is provided a kind of generating means of coding pattern, including:
Acquisition module, for obtaining the coding unit for parsing the coordinate information of body surface position;
Module is presented, for multiple coding units to be presented on into the body surface, coding pattern is formed;
Wherein, the coding unit includes raadable mark, and the raadable mark relative in predefined reference picture The anglec of rotation of raadable mark is used to parse the encoded radio of coding unit mark.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the presentation module is presented Raadable mark include following figure in any one or more:T-shaped and triangle.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the presentation module is presented Raadable mark gray value and the body surface gray value difference absolute value it is less than the first default gray threshold and big In the second default gray threshold.
In the fourth aspect of embodiment of the present invention, there is provided a kind of identifying device of coding pattern, including:
Acquisition module, the target image of the body surface of coding pattern is presented for collection;
Coding unit determining module, for determining the coding pattern in coding unit;
Reference line determining module, for determining the coding pattern in reference line;
Parsing module, for the line on the basis of the reference line, according to raadable mark in coding unit relative to predefined The anglec of rotation of raadable mark determines the encoded radio of the coding unit mark in reference picture.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, further include:At image Reason module, for judging the coding pattern in reference line it is whether parallel with the border wire of the target image, if it is determined that As a result it is no, then rotates the target image, makes the reference line in the coding pattern parallel with the border wire;Then The parsing module determines the coding unit in the coding pattern, specifically for:In postrotational target image, really Coding unit in the fixed coding pattern.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the reference line determines mould Block, specifically for:Two target code units are determined in the coding pattern, and connects the ginseng of two target code units Examine location point and generate the reference line.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the reference line determines mould Block, including:Judging unit, for judging whether the distance between two target code units determined meet the first pre- bidding It is accurate;Determining unit, presets for judging that the distance between two target code units meets described first in the judging unit Under conditions of standard, the reference position point for connecting two target code units generates the reference line.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the coding unit determines Module, specifically for:A raadable mark in coding pattern is defined as into a coding unit.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the parsing module, bag Include:Interception unit, for intercepting in the target image centered on the reference position point of the coding unit, with reference line direction And the preset length on vertical reference line direction is the topography of the length of side;Angle determining unit, for using with default change The anglec of rotation for changing rule change rotates the topography, and postrotational topography is entered with the predefined reference picture Row matching, when matching result meets pre-conditioned using the difference of present rotation angel degree or round angle and present rotation angel degree as office The anglec of rotation of the raadable mark relative to raadable mark in predefined reference picture in portion's image;Encoded radio determining unit, is used for According to raadable mark in the corresponding relation and the topography of the default anglec of rotation and encoded radio relative to predefined reference The anglec of rotation of raadable mark in image, determines the encoded radio of the coding unit mark included in the topography.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the angle determining unit Postrotational topography is matched with the predefined reference picture, will be current when matching result meets pre-conditioned The difference of the anglec of rotation or round angle and present rotation angel degree is as raadable mark in topography relative to predefined reference picture The anglec of rotation of middle raadable mark, specifically for:Postrotational topography is carried out and fortune with the predefined reference picture Calculate, it is determined that with computing after image in the raadable mark gray value identical pixel quantity more than predetermined threshold value condition Under, using the difference of present rotation angel degree or round angle and present rotation angel degree as raadable mark in topography relative to predefined The anglec of rotation of raadable mark in reference picture.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the parsing module, bag Include:Interception unit, for intercepting in the target image centered on the reference position point of the coding unit, with reference line direction And the preset length on vertical reference line direction is the topography of the length of side;Encoded radio determining unit, for according to default ginseng Corresponding relation of the image with encoded radio and the topography are examined, the coding unit mark included in the topography is determined Encoded radio.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the preset reference image Under conditions of including multiple reference pictures, the encoded radio determining unit, specifically for:Topography is default with the plurality of Reference picture is matched respectively, the condition that the arbitrary reference picture in multiple reference pictures matches with the topography Under, the encoded radio that the corresponding encoded radio of the reference picture is identified as the coding unit.
In the 5th aspect of embodiment of the present invention, there is provided the generating means of another kind of coding pattern, for example, can be with Including memorizer and processor, wherein, processor can be used for reading the program in memorizer, perform following process:
Obtain the coding unit for parsing the coordinate information of body surface position;
Multiple coding units are presented on into the body surface, coding pattern is formed;
Wherein, the coding unit includes raadable mark, and the raadable mark relative in predefined reference picture The anglec of rotation of raadable mark is used to parse the encoded radio of coding unit mark.
In the 6th aspect of embodiment of the present invention, there is provided the identifying device of another kind of coding pattern, for example, can be with Including memorizer and processor, wherein, processor can be used for reading the program in memorizer, perform following process:
Collection presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern;
Determine the reference line in the coding pattern;
The line on the basis of the reference line, according to raadable mark in coding unit relative to readable in predefined reference picture The anglec of rotation of labelling determines the encoded radio of the coding unit mark.
In the 7th aspect of embodiment of the present invention, there is provided a kind of program product, it includes program code, when described When program product runs, described program code is used to perform procedure below:
Obtain the coding unit for parsing the coordinate information of body surface position;
Multiple coding units are presented on into the body surface, coding pattern is formed;
Wherein, the coding unit includes raadable mark, and the raadable mark relative in predefined reference picture The anglec of rotation of raadable mark is used to parse the encoded radio of coding unit mark.
In the eighth aspect of embodiment of the present invention, there is provided a kind of program product, it includes program code, when described When program product runs, described program code is used to perform procedure below:
Collection presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern;
Determine the reference line in the coding pattern;
The line on the basis of the reference line, according to raadable mark in coding unit relative to readable in predefined reference picture The anglec of rotation of labelling determines the encoded radio of the coding unit mark.
Generation, recognition methodss and device according to the coding pattern of embodiment of the present invention, enters on a surface of an line position When putting coding, compiled using the anglec of rotation of the raadable mark in coding unit relative to raadable mark in predefined reference picture Code, when the numerical information that coding pattern is represented is parsed, by raadable mark in recognition coding unit relative to predefined reference The anglec of rotation of raadable mark in image, according to raadable mark in coding unit relative to raadable mark in predefined reference picture Anglec of rotation parsing coding unit mark encoded radio, only need in recognition coding unit raadable mark relative to predefined reference The anglec of rotation of raadable mark in image, you can parse the encoded radio of coding unit mark, without the need for calculating grid position, identification Simply, accuracy of identification is high, and amount of calculation is little, and the speed of service is fast.
Description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to accompanying drawing , feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation Dry embodiment, wherein:
Fig. 1 schematically shows a kind of schematic diagram of coding pattern in prior art;
Fig. 2 schematically shows the schematic diagram of another kind of coding pattern in prior art;
Fig. 3 schematically shows the application scenarios schematic diagram according to embodiment of the present invention;
Fig. 4 schematically shows the schematic flow sheet of the generation method of coding pattern according to embodiments of the present invention;
Fig. 5 schematically shows the schematic diagram of a kind of predefined reference picture according to embodiments of the present invention;
Fig. 6 schematically shows a kind of schematic diagram of coding pattern according to embodiments of the present invention;
Fig. 7 schematically shows the schematic diagram of the predefined reference picture of another kind according to embodiments of the present invention;
Fig. 8 schematically shows the schematic diagram of another kind of coding pattern according to embodiments of the present invention;
Fig. 9 schematically shows the schematic flow sheet of the recognition methodss of coding pattern according to embodiments of the present invention;
Figure 10 schematically shows a kind of structural representation of the generating means of coding pattern according to embodiments of the present invention Figure;
Figure 11 schematically shows a kind of structural representation of the identifying device of coding pattern according to embodiments of the present invention Figure;
Figure 12 schematically shows the structure of the identifying device of another kind of coding pattern according to embodiments of the present invention and shows It is intended to;
Figure 13 schematically shows the structure of the generating means of another kind of coding pattern according to embodiments of the present invention and shows It is intended to;
Figure 14 schematically shows the structure of the identifying device of another coding pattern according to embodiments of the present invention and shows It is intended to;
Figure 15 schematically shows the program product of the generation method for coding pattern according to embodiments of the present invention Schematic diagram;
Figure 16 schematically shows the program product of the recognition methodss for coding pattern according to embodiments of the present invention Schematic diagram.
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Specific embodiment
The principle and spirit of the present invention are described below with reference to some illustrative embodiments.It should be appreciated that providing this A little embodiments are of the invention just for the sake of better understood when those skilled in the art and then realizing, and not with any Mode limits the scope of the present invention.Conversely, these embodiments are provided so that the disclosure is more thorough and complete, and energy It is enough that the scope of the present disclosure is intactly conveyed 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.Therefore, the disclosure can be implemented as following form, i.e.,:Completely hardware, completely software (including firmware, resident software, microcode etc.), or the form that hardware and software is combined.
According to the embodiment of the present invention, it is proposed that a kind of generation of coding pattern, recognition methodss and device.
Herein, it is to be understood that any number of elements in accompanying drawing is used to example and unrestricted and any Name is only used for distinguishing, not with any limitation.
Below with reference to some representative embodiments of the present invention, the in detail principle and spirit of the explaination present invention.
Summary of the invention
The inventors discovered that, in prior art, when carrying out position encoded on a surface of an, according to raadable mark with it is nominal The relative position (or direction) of position, when the numerical information that coding pattern is represented is parsed, needs elder generation come the scheme for being encoded Grid is determined, then according to raadable mark orientation within a grid obtaining the numerical information of coding pattern representative, was recognized Journey is complicated, and computationally intensive, False Rate is higher;And the line segment constituted according to line between multiple raadable marks in coding pattern is not The equidirectional scheme to be encoded, when the numerical information that coding pattern is represented is parsed, needs first multipair according to what is determined The mid-point computation of raadable mark goes out horizontal gridlines and vertical gridlines, then calculates what line between two raadable marks was constituted Angle between line segment and horizontal gridlines or vertical gridlines, calculating angle is complex and error is larger.In prior art Lack a kind of generation, the recognition methodss of improved coding pattern, to reduce the amount of calculation of coding pattern identification, improve coding pattern Accuracy of identification and recognition speed.
For this purpose, the invention provides a kind of generation of coding pattern, recognition methodss and device, the generation method of coding pattern Can include:Obtain the coding unit for parsing the coordinate information of body surface position;Multiple coding units are presented on into thing Body surface face, forms coding pattern;Wherein, coding unit includes raadable mark, and raadable mark relative to predefined with reference to figure The anglec of rotation of raadable mark is used to parse the encoded radio of coding unit mark as in;The recognition methodss of coding pattern can be wrapped Include:Collection presents the target image of the body surface of coding pattern;Determine the coding unit in coding pattern;Determine code pattern Reference line in case;The line on the basis of reference line, according to raadable mark in coding unit relative to can in predefined reference picture The anglec of rotation of read flag determines the encoded radio that coding unit is identified.
After the ultimate principle for describing the present invention, lower mask body introduces the various non-limiting embodiment party of the present invention Formula.
Application scenarios overview
With reference first to Fig. 3, as shown in figure 3, for 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 methodss of case, including:User 30, paper 301, intelligent writing equipment 302 and user terminal 303, wherein, the printout surface of paper 301 has coding pattern, and coding pattern is made up of multiple coding units, in each coding unit Including raadable mark, and raadable mark is used for parsing coding list relative to the anglec of rotation of raadable mark in predefined reference picture The encoded radio of unit's mark.
When user 30 is write using intelligent writing equipment 302 on paper 301, the collection paper 301 of intelligent writing equipment 302 Target image of the surface comprising coding pattern, determines in the target image the coding unit in coding pattern, in the target image Determine the reference line of coding pattern, the line on the basis of reference line, according to raadable mark in coding unit relative to predefined reference The anglec of rotation of raadable mark determines the encoded radio that coding unit is identified in image, and then according to the multiple coding units for identifying The encoded radio of mark determines the coordinate information of current writing position, and can will contain the coordinate information of multiple writing positions Handwriting trace synchronizing information transmission or asynchronous transmission in user terminal 303, user terminal 303 can be believed according to handwriting trace Breath, plays back handwriting trace.
Wherein, intelligent writing equipment 302 and user terminal 303 can pass through bluetooth, short haul connection, cellular mobile network, nothing Line LAN or other communication modes are communicated.Intelligent writing equipment 302 is included but is not limited to:Smart pen, user terminal 303 can be mobile phone, panel computer, PC etc..
Illustrative methods
With reference to the application scenarios of Fig. 3, the coding according to exemplary embodiment of the invention is described with reference to Fig. 4-Fig. 8 The generation method of pattern and recognition methodss.It should be noted that above-mentioned application scenarios are for only for ease of the essence for understanding the present invention God and principle and illustrate, embodiments of the present invention are unrestricted in this regard.Conversely, embodiments of the present invention can be with It is applied to applicable any scene.
Fig. 4 is a kind of schematic flow sheet of the generation method of coding pattern provided in an embodiment of the present invention, main to include 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, obtains the coding unit for parsing the coordinate information of body surface position.
In this step, for parsing the coding unit of the coordinate information of body surface position, can be according to body surface position The coordinate information put determines, it is also possible to which direct access is believed by the coordinate for parsing body surface position that miscellaneous equipment is determined The coding unit of breath.When being embodied as, determined for parsing body surface position according to the coordinate information of body surface position The coding unit of coordinate information, can in the following way, for example:Coordinate information is carried out into coding number with certain algorithm Word is encoded, then digital coding is converted to into coding unit with certain rule, or directly by coordinate information with certain rule Coding unit is converted to, the embodiment of the present invention is not limited this.One of coordinate information can be by one or more codings Unit is parsed.
Multiple coding units are presented on body surface by step 402, form coding pattern;Wherein, coding unit includes Raadable mark, and raadable mark relative to raadable mark in predefined reference picture the anglec of rotation be used for parse coding unit mark The encoded radio of knowledge.
In this step, multiple coding units are presented on into body surface, can be that multiple coding units are printed or printed In body surface herein, it is also possible to engrave multiple coding units in body surface, be not specifically limited.Coding unit includes Raadable mark is used to parse relative to the anglec of rotation of raadable mark in predefined reference picture in raadable mark, and coding unit The encoded radio of coding unit mark.Wherein, predefine reference picture, be present coding pattern when determine comprising raadable mark Reference picture, the length and width of predefined reference picture be equal in coding pattern between two adjacent encoder units away from From, and raadable mark and the angle of horizontal line (or vertical curve, predetermined datum line) they are 0 ° in predefined reference picture (degree).
Raadable mark refers to that coding is single relative to the anglec of rotation of raadable mark in predefined reference picture in coding unit In unit raadable mark with certain point (for example:The geometric center of raadable mark) rotate to and volume along preset rotation direction for center of rotation Anglec of rotation when raadable mark overlaps in code unit, in other words, the raadable mark in embodiment of the present invention coding unit can With by the raadable mark in predefined reference picture with certain point (for example:The geometric center of raadable mark) preset for center of rotation edge Direction of rotation rotates to be formed, in coding unit raadable mark relative to raadable mark in predefined reference picture the anglec of rotation, Namely the anglec of rotation that rotated when forming the raadable mark in coding unit.Wherein, preset rotation direction can be clockwise Direction, or counter clockwise direction, are not specifically limited herein.In the embodiment of the present invention be rotated in a clockwise direction as Example is illustrated, certainly, it will be apparent to a skilled person that showing in rotation and the embodiment of the present invention in the counterclockwise direction Turning clockwise for going out is similar.
The embodiment of the present invention utilizes rotation of the raadable mark relative to raadable mark in predefined reference picture in coding unit The encoded radio of gyration parsing coding unit mark, such that it is able to without the help of the boost line determined or relative to boost line The feature such as directional information can parsing coding unit mark encoded radio, reduce the difficulty of parsing, and need not determine auxiliary Index contour and coding unit reduce amount of calculation when coding unit is parsed relative to the directional information of boost line, and avoid The defect of the easy generation parsing mistake that inaccuracy when being determined due to boost line is brought.
Wherein, raadable mark can be any one or more in following figure:T-shaped and triangle.When being embodied as, Diversity factor before and after in order to when body surface prints full coding pattern, reduce body surface printing coding pattern, reduces coding Pattern is on the visual impact of user, while under the conditions of raadable mark is less, reducing the equipment to printing raadable mark Required precision, prioritizing selection T-shaped raadable mark.But what deserves to be explained is, it is relatively low in the equipment precision for printing raadable mark Under the conditions of, the T-shaped raadable mark for printing will present the effect of triangle.Wherein, T-shaped raadable mark is by two lines section group Into, the end points of a line segment connects or distance away with the midpoint of another line segment, and two lines section is mutually perpendicular to, The length of two lines section can be with identical, it is also possible to different.More preferably, T-shaped raadable mark is by the different line segment of two length Composition, the length value of longer line segment is 1.25 times of the length value of short segment.In the end points and short segment of longer line segment Point connects or distance away, and longer line segment is vertical with short segment.
Used as more specific embodiment, coding unit includes a raadable mark, and raadable mark is the readable mark of T-shaped Note, and it is different relative to the anglec of rotation mark of raadable mark in predefined reference picture using raadable mark in coding unit Encoded radio, it is 1 that the anglec of rotation is the encoded radio of 45 ° of marks, and it is 2 that the anglec of rotation is the encoded radio of 135 ° of marks, and the anglec of rotation is The encoded radio of 225 ° of marks is 3, and it is 4 that the anglec of rotation is the encoded radio of 315 ° of marks.As shown in figure 5, predefined reference picture 501 Middle raadable mark is 0 ° with the angle of horizontal direction, as shown in fig. 6, including a readable mark in coding unit 601~604 Note, the raadable mark in coding unit 601~604 is the readable mark of T-shaped with the raadable mark in predefined reference picture 501 Note, and the raadable mark in coding unit 601~604 can be by the raadable mark in predefined reference picture 501 with Fig. 5 The intersection point of horizontal dotted line and vertical dotted line is center of rotation, is rotated in a clockwise direction to be formed, specifically, coding unit 601 Can by the raadable mark in predefined reference picture 501 with the intersection point of horizontal dotted line and vertical dotted line in Fig. 5 as center of rotation, Be rotated in a clockwise direction 45 ° of formation, namely in coding unit 601 raadable mark relative to can in predefined reference picture 501 The anglec of rotation of read flag is 45 °, then the encoded radio that coding unit 601 is parsed is 1, and by that analogy, coding unit 602 is parsed The encoded radio for going out is 2, and the encoded radio that coding unit 603 is parsed is 3, and the encoded radio that coding unit 604 is parsed is 4.
Used as another more specific embodiment, coding unit includes a raadable mark, and raadable mark is triangle Raadable mark, and using raadable mark in coding unit relative in predefined reference picture raadable mark the anglec of rotation mark Different encoded radios, it is 1 that the anglec of rotation is the encoded radio of 45 ° of marks, and it is 2 that the anglec of rotation is the encoded radio of 135 ° of marks, rotation It is 3 that angle is the encoded radio of 225 ° of marks, and it is 4 that the anglec of rotation is the encoded radio of 315 ° of marks.As shown in fig. 7, predefined reference Raadable mark and the angle of horizontal direction are 0 ° in image 701, as shown in figure 8, including one in coding unit 801~804 Raadable mark, the raadable mark in coding unit 801~804 is triangle with the raadable mark in predefined reference picture 701 Raadable mark in shape raadable mark, and coding unit 801~804 can by predefined reference picture 701 in readable mark Note is rotated in a clockwise direction to be formed with the intersection point of horizontal dotted line in Fig. 7 and vertical dotted line as center of rotation, specifically, compiles Code unit 801 can be with the intersection point of horizontal dotted line and vertical dotted line in Fig. 7 by the raadable mark in predefined reference picture 701 Center of rotation, is rotated in a clockwise direction 45 ° of formation, namely in coding unit 801 raadable mark relative to predefined with reference to figure The anglec of rotation of raadable mark is 45 ° in picture 701, then the encoded radio that coding unit 801 is parsed is 1, and by that analogy, coding is single The encoded radio that unit 802 parses is 2, and the encoded radio that coding unit 803 is parsed is 3, the encoded radio that coding unit 804 is parsed For 4.
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, each coding unit correspondence setting reference position point, and reference position point can be with For predeterminated position point, for example:Can be the geometric center of raadable mark, or other predeterminated positions of the raadable mark Point, for example:The midpoint of T-shaped raadable mark short segment, certainly, reference position point can also be without being located on raadable mark, example Such as:Reference position point is located on the extended line of the longer line segment of T-shaped raadable mark;Preferably, raadable mark is T-shaped raadable mark Under the conditions of, reference position point can be the midpoint of short segment, and raadable mark is reference bit under conditions of triangle raadable mark Put can be a little triangle raadable mark shorter edge midpoint.
It should be noted that when the embodiment of the present invention is presented coding unit, with the reference of a line or same row coding unit Location point may be on same straight line, more preferably, with a line or the line of the reference position point of same row coding unit It is parallel with paper edge or vertical.Specifically, by taking Fig. 6 as an example, the coding unit illustrated in embodiment of the present invention Fig. 6, its The reference position point intersection point of horizontal dotted line and vertical dotted line (namely in Fig. 6) point-blank, namely figure 6 illustrates Horizontal dotted line on, in other embodiments of the present invention, with the reference position point of a line or same row coding unit at one When on straight line, the straight line can not also overlap with the horizontal dotted line illustrated in figure, but more preferably, with the water that illustrates in Fig. 6 Flat dotted line is parallel or vertical.
Certainly, it will be apparent to a skilled person that in coding unit raadable mark relative to predefined with reference to figure The anglec of rotation of raadable mark can be arbitrarily angled as in, and raadable mark can use n different anglec of rotation scale Know k value, wherein, n and k is the natural number more than 1.By raadable mark in coding unit relative to predefined with reference to figure The different rotary angle of raadable mark represents different coding units as in, will not enumerate herein.In addition, Fig. 6 and Fig. 8 The horizontal dotted line that illustrates in coding unit and vertical dotted line are being embodied as only for schematically illustrating the position of raadable mark When, horizontal dotted line and vertical dotted line need not be presented on body surface.Level in the predefined reference picture of Fig. 5 and Fig. 7 is empty Line and vertical dotted line also for the position for schematically illustrating raadable mark in predefined reference picture, horizontal dotted line and vertically Dotted line need not be presented in predefined reference picture.
What deserves to be explained is, when raadable mark is T-shaped raadable mark, the distance between adjacent encoder unit can more than T-shaped Longer line segment in read flag.For example:The length value of T-shaped raadable mark is 1/3 of distance between adjacent encoder unit, in the same manner, Raadable mark be triangle raadable mark when, the distance between adjacent encoder unit more than triangle raadable mark height or The length on base.In embodiments of the present invention, more preferably, the distance between adjacent encoder unit can be adjacent volume The distance between code cell geometry center, for example:Horizontal range between adjacent encoder cell geometry center, it is of course also possible to It is in adjacent encoder unit the distance between 2 points at same position, naturally it is also possible to be the corresponding reference bit of adjacent encoder unit Put the distance between a little;These embodiments are all within protection scope of the present invention.
Preferably, in order to further reduce body surface print coding pattern before and after diversity factor, can also be by code pattern The gray value of case is set as being closer to the gray value of body surface, but needs to ensure the gray value and object table of raadable mark The gray value in face has certain difference, to ensure that raadable mark can be identified.
When being embodied as, the absolute value of the difference of the gray value of raadable mark and the gray value of body surface is default less than first Gray threshold and more than the second default gray threshold, wherein, the first default gray threshold can freely set, the second default gray scale Threshold value can set according to the accuracy of identification of identification raadable mark equipment, for example:First default gray threshold is 50, and second presets Gray threshold is 20.Used as more specific embodiment, the gray value of body surface is 150, and the first default gray threshold is 50, Second default gray threshold is 20, then the gray value of raadable mark can it is interval (100,130) or (170,200) in choosing Select.
The generation method of coding pattern provided in an embodiment of the present invention is illustrated above in association with Fig. 4~Fig. 8, is connect down It is illustrated come the recognition methodss with reference to Fig. 9 to coding pattern provided in an embodiment of the present invention.
Fig. 9 is a kind of schematic flow sheet of the recognition methodss of coding pattern provided in an embodiment of the present invention, main to include compiling The identification process of code pattern, executive agent can be intelligent writing equipment 302 and/or user terminal in application scenarios overview 303, as shown in figure 9, a kind of recognition methodss of coding pattern provided in an embodiment of the present invention, comprise the steps:
Step 901, collection presents the target image of the body surface of coding pattern.
In this step, collection presents the target image of the body surface of coding pattern, can be by installed in intelligent writing Image capture device collection in equipment 302, it is also possible to gathered by the miscellaneous equipment being used in conjunction with intelligent writing equipment 302, When being embodied as, target image can be gathered by shooting the coding pattern of body surface.
Step 902, determines the coding unit in coding pattern.
When being embodied as, due in the embodiment of the present invention, the raadable mark in coding unit is T-shaped or triangle, and T Shape raadable mark and triangle raadable mark can be considered a raadable mark, namely each coding unit include one it is readable Labelling, accordingly, it is determined that during coding unit in coding pattern, a raadable mark can be defined as into a coding unit.
In a kind of possible embodiment, if the raadable mark in coding unit is T-shaped raadable mark, and T-shaped is constituted The two lines section of raadable mark in a distance, then due to constitute T-shaped raadable mark two lines section between distance Much smaller than the distance between adjacent encoder unit, therefore, it can by the two lines section of composition T-shaped raadable mark be considered as one it is readable Labelling.
Step 903, determines the reference line in coding pattern.
Step 904, the line on the basis of reference line, according to raadable mark in coding unit relative in predefined reference picture The anglec of rotation of raadable mark determines the encoded radio that coding unit is identified.
Rotation of the raadable mark relative to raadable mark in predefined reference picture in order to ensure the coding unit determined The accuracy of gyration, in coding unit raadable mark relative to raadable mark in predefined reference picture the anglec of rotation it Before, need to be that coding unit and predefined reference picture set a datum line, coding is then determined on the basis of datum line The anglec of rotation of the raadable mark relative to raadable mark in predefined reference picture in unit.With reference line in the embodiment of the present invention On the basis of line, certainly, in other embodiments of the present invention, it is also possible to using other lines as datum line, for example:The frame line of image.
Specifically, the horizontal dotted line illustrated in the horizontal dotted line that illustrates in Fig. 5 and Fig. 6 is horizontal direction, can be with Line on the basis of horizontal dotted line.When being embodied as, it is determined that raadable mark is relative in predefined reference picture in Fig. 6 coding units During the anglec of rotation of raadable mark, due to horizontal dotted line not shown in coding pattern and vertical dotted line, accordingly, it would be desirable to first in Fig. 6 In determine horizontal reference line, then the line on the basis of horizontal reference line, determines that raadable mark is relative to pre- in Fig. 6 coding units The anglec of rotation of raadable mark in reference picture is defined, so as to ensure the accuracy of the anglec of rotation determined.
The embodiment of the present invention, when carrying out position encoded on a surface of an, using raadable mark in coding unit relative to The anglec of rotation of raadable mark is encoded in predefined reference picture, when the numerical information that coding pattern is represented is parsed, is led to The anglec of rotation of raadable mark in recognition coding unit relative to raadable mark in predefined reference picture is crossed, according to coding unit The encoded radio that middle raadable mark is identified relative to the anglec of rotation parsing coding unit of raadable mark in predefined reference picture, only Need the anglec of rotation of the raadable mark relative to raadable mark in predefined reference picture in recognition coding unit, you can parse volume The encoded radio of code unit marks, without the need for calculating grid position, identification is simple, and accuracy of identification is high, and amount of calculation is little, and the speed of service is fast.
Certainly, it should be noted that after the reference line for determining coding pattern, determining the coding list in coding pattern When first, it is also possible to according to the coding unit having determined that, along reference line direction next coding unit is determined.
Certainly, the reference line in coding pattern except as datum line and for determine easily and fast coding unit it Outward, can be also used for shoot target image in coding pattern it is inclined in the case of, for carrying out at rotation to target image Reason, with improve coding unit identification accuracy rate and efficiency, more preferably, it is determined that in coding unit raadable mark relative to In predefined reference picture before the anglec of rotation of raadable mark, rotation processing is carried out to target image so that in coding pattern Reference line it is parallel with border wire.Wherein, according to the reference line determined, rotation processing is carried out to target image and is specifically wrapped Include:
Judge whether the reference line in coding pattern is parallel with the border wire of target image, if it is determined that result is no, then Rolling target image, makes the reference line in coding pattern parallel with border wire;Then determine the coding unit in coding pattern, bag Include:In postrotational target image, the coding unit in coding pattern is determined.Wherein, in coding pattern is judged When reference line is not parallel with the border wire of target image, rolling target image is referred to and protected in target image border wire part Under holding motionless scene, the image content portion in target image is rotated, so that the reference line and side in coding pattern Boundary's wire is parallel, if the image content portion through rotating falls outside the wire of target image border, can give up to fall in mesh This parts of images content outside the wire of logo image border.
If the reference line in coding pattern is parallel with the border wire of target image, target image need not be revolved Turn to process, if the reference line in coding pattern is not parallel with the border wire of target image, rolling target image makes code pattern Reference line in case is parallel with border wire.Wherein, the reference line in coding pattern is parallel with border wire is advantageous in that, When subsequently recognizing other rows or the coding unit on other row, can be in the reference line for currently calculating horizontally or vertically Add a side-play amount on the basis of coordinate figure, that is, obtain the approximate location of other rows or the reference lines of other row, it is possible thereby to The coding unit of other rows or other row in quick recognition target image, has thus saved operand.Wherein, coding is judged Whether reference line is parallel with the border wire of target image in pattern, can adopt method of the prior art, no longer goes to live in the household of one's in-laws on getting married herein State.
When being embodied as, the reference line in coding pattern is determined, can be in the following way:
Two target code units are determined in coding pattern, and connects the reference position point of two target code units Generate reference line.
When being embodied as, in order to improve the accuracy of the reference line of determination, in the reference for connecting two target code units Location point is generated before reference line, can also judge whether the distance between determine two target code units meet first Preset standard, if it is determined that result is yes, then the reference position point for connecting two target code units generates reference line, if it is determined that knot Fruit be no, then redefine two target code units, continue between two target code units that judgement is redefined away from From whether the first preset standard is met, until the distance between two target code units determined meet the first pre- bidding Standard, the reference position point for connecting two target code units generates reference line.
First preset standard can be n (n is natural number) times of distance between predefined two coding units, namely sentence Whether the distance between disconnected two target code units are equal to the n of distance between predefined two coding units, and (n is nature Number) times, certainly, when being embodied as, there can be certain range of error.Wherein, between predefined two coding units away from From, when can be that coding unit is presented on into body surface, an absolute growth value of setting, or according to photographing The calculated length value of image, for example:It is determined that after all coding units included in target image, retrieving all codings Unit distance between any two, and using all coding units between any two single as predefined two codings apart from minima The distance between unit.
More preferably, calculate between two target code units apart from when, calculate two target code units Air line distance between reference position point, certainly, in other embodiments of the present invention, it is also possible to calculate two target code units Air line distance at middle same position between 2 points, as long as can determine that the distance between two target code units.
In step 904 on the basis of reference line line, determine that raadable mark is relative to predefined reference picture in coding unit The anglec of rotation of middle raadable mark, and the encoded radio that coding unit is identified is determined according to the anglec of rotation, can pass through following two Mode realizes, specifically:
Embodiment one
Intercept in the target image centered on the reference position point of coding unit, with reference line direction and vertical reference Preset length on line direction is the topography of the length of side.
When being embodied as, centered on the reference position point of coding unit, in reference line direction (for example:In Fig. 6 and Fig. 8 The horizontal direction for illustrating) and perpendicular to reference line direction (for example:The vertical direction illustrated in Fig. 6 and Fig. 8) on intercept it is pre- If the image of length generates topography, wherein, the length of the length value of topography's length of side and the length of side of predefined reference picture Angle value is identical, and is equal to the distance between adjacent encoder unit value in coding pattern.
Using to preset the anglec of rotation rotation topography of rule change change, by postrotational topography with it is predetermined Adopted reference picture is matched, when matching result meets pre-conditioned by present rotation angel degree or round angle and present rotation angel Degree difference as raadable mark in topography relative to raadable mark in predefined reference picture the anglec of rotation.
In this step, after intercepting topography, using with the anglec of rotation for presetting rule change change Local map is rotated Picture, wherein, default rule change can be set according to practical situation, for example:1 degree of increase every time, namely:Rotate for the first time 1 degree, second 2 degree of rotation, the like.Certainly, if raadable mark is relative to predefined reference picture in known coded unit The anglec of rotation of middle raadable mark only have it is several under conditions of, in order to improve determine the anglec of rotation speed, preset change rule Then it can also be provided that increasing n (n is more than 0 degree and less than 360 degree) degree every time, for example:If raadable mark in known coded unit Only have 45 °, 135 °, 225 ° and 315 degree relative to the anglec of rotation of raadable mark in predefined reference picture, then preset change Rule can also be 45 degree of increase every time, namely:45 ° of rotation for the first time, and be rotated by 90 ° for the second time, the like, but need note Meaning, the angle of rotation is needed less than 360 °.
After rotating to topography, postrotational topography is matched with predefined reference picture, When matching result meets pre-conditioned using the difference of present rotation angel degree or round angle and present rotation angel degree as topography Middle raadable mark is specifically included relative to the anglec of rotation of raadable mark in predefined reference picture:By postrotational Local map As carrying out and computing with the pixel at predefined reference picture same position, it is then determined that with computing after image in it is readable Whether labelling gray value identical pixel quantity is more than predetermined threshold value, however, it is determined that with the image after computing with raadable mark gray scale Value identical pixel quantity is more than predetermined threshold value, then using the difference of present rotation angel degree or round angle and present rotation angel degree as office The anglec of rotation of the raadable mark relative to raadable mark in predefined reference picture in portion's image.
In other embodiments of the present invention, postrotational topography is matched with predefined reference picture, may be used also To realize otherwise, for example:Calculate the similarity of postrotational topography and predefined reference picture.Certainly, also Can be realized using alternate manner of the prior art, concrete restriction is not used to herein.
Wherein, predetermined threshold value is used to judge that raadable mark is readable with predefined reference picture in postrotational topography The coincidence degree of labelling, because the raadable mark in postrotational topography overlaps with raadable mark in predefined reference picture When, with computing after image in raadable mark gray value identical pixel quantity, the number of pixels phase included with raadable mark Together, therefore, in order to ensure the accuracy of the anglec of rotation determined, predetermined threshold value needs the lowest difference according to multiple anglecs of rotation The number of pixels that value and raadable mark include is set.For example:The number of pixels that raadable mark includes is 50, Duo Gexuan If 90 degree of the minimal difference of gyration, then predetermined threshold value could be arranged to 40, even if the anglec of rotation now determined is present Certain error, but because the minimal difference of multiple anglecs of rotation is 90 degree, and error can not possibly be 90 degree, therefore, Bu Huiying The accuracy of the anglec of rotation that sound is determined;Again for example:The number of pixels that raadable mark includes is 50, multiple anglecs of rotation If 5 degree of minimal difference, now the minimal difference of multiple anglecs of rotation is less, if predetermined threshold value arranges larger, it is determined that rotation Error during angle fully achieves even more than 5 degree, therefore, it is less that predetermined threshold value should be arranged, and such as predetermined threshold value can be with It is set to 48.
More preferably, by postrotational topography and predefined reference picture carry out with before computing, to rotation Topography and predefined reference picture afterwards carries out binary conversion treatment, for example:By gray value less than the picture for presetting gray value Vegetarian refreshments is defined as 1, and gray value is defined as into 0 more than the pixel of default gray value, and default gray value can arbitrarily set, and also may be used Average gray value in take image.For the embodiment of the present invention, when with computing, postrotational topography and predefined If the pixel black in reference picture, then be defined as 1 by the value of the pixel, if pixel is white, then by the pixel The value of point is defined as 0.Certainly, postrotational topography and predefined reference picture are carried out into binary conversion treatment, it is also possible to Using other methods of the prior art, concrete restriction is not used to herein.
As more specific embodiment, illustrate by taking Fig. 7 and Fig. 8 as an example, the gray value of raadable mark is 0, namely Raadable mark is black, and the number of pixels of raadable mark is 50, and the gray value of body surface is 255, namely body surface is White, predetermined threshold value is 40.Predefined reference picture 701 is shown in Fig. 7, then it is determined that in Fig. 8 coding unit 803 it is readable Labelling intercepts first the coding unit illustrated in Fig. 8 relative in predefined reference picture 701 during the anglec of rotation of raadable mark 803, as topography, then rotate to topography, for example:First time dextrorotation is turn 90 degrees (such as Fig. 8 after rotation Shown in middle coding unit 804), then postrotational topography for the first time is carried out and computing with predefined reference picture, count It is 20 with the pixel quantity of raadable mark gray value (black) in image after computing, because 20 are less than predetermined threshold value 40, then needs Continue to rotate topography, for example:135 degree are turned clockwise for the second time (as predefined reference picture 701 in Fig. 7 after rotation It is shown), then second postrotational topography is carried out and computing with predefined reference picture, because two images are weighed completely Close, therefore, the pixel quantity of raadable mark gray value (black) is 50 in image after statistics and computing, because 50 more than default Threshold value 40, thus using 135 degree or 225 degree of present rotation angel degree as raadable mark in topography relative to predefined with reference to figure The anglec of rotation of raadable mark as in.
When being embodied as, using present rotation angel degree as raadable mark in topography relative in predefined reference picture The anglec of rotation of raadable mark, or using the difference of round angle and present rotation angel degree as raadable mark in topography relative to pre- The anglec of rotation of raadable mark in reference picture is defined, depending on to the direction of rotation during image rotation of local and default rotation side To relation, wherein, preset rotation direction refers in predefined image that raadable mark rotation generates raadable mark in coding unit When direction of rotation.Specifically, if identical with preset rotation direction to the direction of rotation during image rotation of local, by round angle And the difference of present rotation angel degree as raadable mark in topography relative to raadable mark in predefined reference picture rotation Angle;Direction of rotation when to local image rotation with preset rotation direction conversely, if using present rotation angel degree as local The anglec of rotation of the raadable mark relative to raadable mark in predefined reference picture in image.
As more specific embodiment, if raadable mark is predefined in the coding unit 801~804 shown in Fig. 8 Raadable mark is rotated in a clockwise direction generation with the intersection point of horizontal dotted line and vertical dotted line as center of rotation in reference picture , then raadable mark is relative to the exact value of the anglec of rotation of raadable mark in predefined reference picture in coding unit 801 45 °, if intercepting out after the topography comprising coding unit 801, topography is rotated, then needed to topography Turning clockwise 315 ° can overlap with raadable mark in the predefined reference picture 701 illustrated in Fig. 7, therefore, if to cutting Take out the topography comprising coding unit 801 turned clockwise, then in coding unit 801 raadable mark relative to pre- 45 ° of the anglec of rotation for defining the raadable mark in reference picture 701 is the difference of round angle and present rotation angel degree (315 °), and is played a game 45 ° of portion image rotate counterclockwise can overlap with raadable mark in the predefined reference picture 701 illustrated in Fig. 7, therefore, if right The topography comprising coding unit 801 for intercepting out carries out rotate counterclockwise, then in coding unit 801 raadable mark relative to 45 ° of the anglec of rotation of the raadable mark in predefined reference picture 701 is present rotation angel degree (45 °).
According to raadable mark in the corresponding relation and topography of the default anglec of rotation and encoded radio relative to predefined The anglec of rotation of raadable mark in reference picture, determines the encoded radio of the coding unit mark included in topography.
In topography is determined raadable mark relative to raadable mark in predefined reference picture the anglec of rotation it Afterwards, can be according to raadable mark in the corresponding relation and topography of the default anglec of rotation and encoded radio relative to predefined ginseng The anglec of rotation of raadable mark in image is examined, the encoded radio of coding unit mark in topography is determined.When being embodied as, can be with The anglec of rotation relative to raadable mark in predefined reference picture and default rotation by raadable mark in the topography for determining Gyration is matched respectively or compared, the arbitrary anglec of rotation in the anglec of rotation determined with the default anglec of rotation With success or during the anglec of rotation determined equal with the arbitrary anglec of rotation in the default anglec of rotation, by the anglec of rotation pair The encoded radio answered is defined as the encoded radio of the coding unit mark included in topography.
Certainly, present embodiment it is determined that coding unit mark encoded radio when, first determine coding unit in raadable mark Relative to the anglec of rotation of raadable mark in predefined reference picture, then coding unit is determined according to the anglec of rotation determined The encoded radio of mark, can also not know in an alternative embodiment of the invention in coding unit raadable mark relative to predefined ginseng The anglec of rotation of raadable mark in image is examined, directly the raadable mark comprising all anglecs of rotation preset reference figure is stored as into Picture, it is determined that coding unit mark encoded radio when, directly will enter with preset reference image comprising the topography of coding unit Row matching, according to matching result the encoded radio that coding unit is identified is determined.Specifically:
Embodiment two
Intercept in the target image centered on the reference position point of coding unit, with reference line direction and vertical reference Preset length on line direction is the topography of the length of side.
According to the corresponding relation and topography of preset reference image and encoded radio, the volume included in topography is determined The encoded radio of code unit marks.Wherein, preset reference image includes multiple reference pictures, and at least one reference picture and one The anglec of rotation is corresponding.
Wherein, according to the corresponding relation and topography of preset reference image and encoded radio, topography Zhong Bao is determined The encoded radio of the coding unit mark for containing, including:Topography is matched respectively with multiple reference pictures, in multiple references Under conditions of arbitrary reference picture in image matches with topography, using the corresponding encoded radio of the reference picture as coding The encoded radio of unit marks.
When being embodied as, topography is matched with reference picture, judge topography and reference picture whether Match somebody with somebody, can be realized by way of similarity of the calculating topography with reference picture, for example:Topography and reference picture Similarity more than default similarity threshold when, determine that topography matches with reference picture, wherein, default similarity threshold Can be set according to computational accuracy, for example:When computational accuracy requires higher, it is 98% to preset similarity threshold.Certainly, exist In other embodiments of the present invention, it is also possible to be achieved by other means, for example:Topography and reference picture are carried out and fortune Calculate, judge whether be more than predetermined number threshold value with raadable mark gray value identical pixel quantity with the image after computing, if It is, it is determined that topography matches with reference picture, wherein, predetermined number threshold value can be according to computational accuracy and readable mark The number of pixels that note includes is set, for example:The number of pixels that raadable mark includes is 50, and computational accuracy requires higher When, predetermined number threshold value is 49.
During as more specifically implementing, preset reference image includes:Reference picture A, reference picture B and reference picture C, The corresponding encoded radios of reference picture A are 1, and the corresponding encoded radios of reference picture B are 2, and the corresponding encoded radios of reference picture C are 3, Determine include in topography coding unit mark encoded radio when, by topography respectively with reference picture A, reference picture B and reference picture C are matched, for example:Calculate respectively topography and reference picture A, reference picture B and reference picture C it Between similarity, if the similarity between topography and reference picture A be 100%, between topography and reference picture B Similarity is 60%, and the similarity between topography and reference picture C is 10%, it is determined that reference picture A and topography Match, therefore, the coding of the coding unit mark that the corresponding encoded radios 1 of reference picture A are defined as being included in topography Value.
During specific implementation step 902~904, the coding unit in coding pattern can be first determined, then select two completely The target code unit of the first preset standard of foot, determines the reference line in coding pattern, then parses the volume of coding unit mark Code value.In the encoded radio of coding unit mark in parsing coding pattern, can be parsed in the way of progressively or column by column, After the reference line of a line or string is determined in coding pattern, other rows or the coding list on other row are subsequently recognized When first, a side-play amount can be added on the basis of the horizontal or vertical coordinate figure of the reference line for calculating first, obtain it He manage it or other row reference lines approximate location, thus, it is possible to other rows in quick recognition coding pattern or other The coding unit of row.Wherein, it is determined that often after the reference line of row or each column, parsing coding unit mark in the row or the row Encoded radio when, identify the row or first coding unit of the row first, parse the volume of first coding unit mark Code value, then along reference line direction discernment next one coding unit, and parses the encoded radio that next coding unit is identified, with this Analogize, till the encoded radio of last coding unit mark of the row or the row is parsed.
Example devices
After the method for describing exemplary embodiment of the invention, next, describing this with reference to Figure 10~Figure 12 The generating means and identifying device of the coding pattern of bright illustrative embodiments.
Figure 10 is a kind of structural representation of the generating means of coding pattern provided in an embodiment of the present invention, such as Figure 10 institutes Show, can include such as lower module:
Acquisition module 1001, for obtaining the coding unit for parsing the coordinate information of body surface position;
Module 1002 is presented, for multiple coding units to be presented on into body surface, coding pattern is formed;
Wherein, coding unit includes raadable mark, and raadable mark relative to raadable mark in predefined reference picture The anglec of rotation be used for parse coding unit mark encoded radio.
Preferably, the raadable mark of the presentation of module 1002 is presented including any one or more in following figure:T-shaped and Triangle.
Preferably, the difference of the gray value of the gray value and body surface of the raadable mark that presentation module 1002 is presented is absolute Value is less than the first default gray threshold and more than the second default gray threshold.
Figure 11 is a kind of structural representation of the identifying device of coding pattern provided in an embodiment of the present invention, such as Figure 11 institutes Show, can include such as lower module:
Acquisition module 1101, the target image of the body surface of coding pattern is presented for collection;
Coding unit determining module 1102, for determining coding pattern in coding unit;
Reference line determining module 1103, for determining coding pattern in reference line;
Parsing module 1104, for the line on the basis of reference line, according to raadable mark in coding unit relative to predefined The anglec of rotation of raadable mark determines the encoded radio that coding unit is identified in reference picture.
In some embodiments of the present embodiment, optionally, the identifying device of the coding pattern also includes:
Image processing module 1105, for judging coding pattern in reference line whether put down with the border wire of target image OK, if it is determined that result is no, then rolling target image, makes the reference line in coding pattern parallel with border wire;
Then parsing module 1104 determines the coding unit in coding pattern, specifically for:
In postrotational target image, the coding unit in coding pattern is determined.
Preferably, reference line determining module 1103, specifically for:Two target code lists are determined in coding pattern Unit, and connect the reference position point generation determination reference line of two target code units.
Preferably, reference line determining module 1103, including:
Judging unit 11031, for judging whether the distance between two target code units determined meet first Preset standard;
Determining unit 11032, for judging that the distance between two target code units meets the in judging unit 11031 Under conditions of one preset standard, the reference position point for connecting two target code units generates reference line.
Preferably, coding unit determining module 1102, specifically for:A raadable mark in coding pattern is defined as One coding unit.
In some embodiments of the present embodiment, parsing module 1104, including:
Interception unit 11041, for intercepting in the target image centered on the reference position point of coding unit, to refer to Preset length on line direction and vertical reference line direction is the topography of the length of side;
Angle determining unit 11042, for rotating topography using with the anglec of rotation for presetting rule change change, will Postrotational topography is matched with predefined reference picture, when matching result meets pre-conditioned by present rotation angel The difference of degree or round angle and present rotation angel degree is as raadable mark in topography relative to readable in predefined reference picture The anglec of rotation of labelling;
Encoded radio determining unit 11043, for according to the corresponding relation and Local map of the default anglec of rotation and encoded radio Raadable mark determines the coding included in topography relative to the anglec of rotation of raadable mark in predefined reference picture as in The encoded radio of unit marks.
Preferably, angle determining unit 11042 is matched postrotational topography with predefined reference picture, When matching result meets pre-conditioned using the difference of present rotation angel degree or round angle and present rotation angel degree as in topography Raadable mark relative to raadable mark in predefined reference picture the anglec of rotation, specifically for:
Postrotational topography is carried out and computing with predefined reference picture, it is determined that with computing after image in Raadable mark gray value identical pixel quantity more than under conditions of predetermined threshold value, by present rotation angel degree or round angle with it is current The difference of the anglec of rotation as raadable mark in topography relative to raadable mark in predefined reference picture the anglec of rotation.
In other embodiments of the present embodiment, as shown in figure 12, parsing module 1104, including:
Interception unit 11041, for intercepting in the target image centered on the reference position point of coding unit, to refer to Preset length on line direction and vertical reference line direction is the topography of the length of side;
Encoded radio determining unit 11043, for according to the corresponding relation and Local map of preset reference image and encoded radio Picture, determines the encoded radio of the coding unit mark included in topography.
Preferably, preset reference image include multiple reference pictures under conditions of, encoded radio determining unit 11043, specifically For:
Topography is matched respectively with multiple preset reference images, it is arbitrary with reference to figure in multiple reference pictures Under conditions of as matching with topography, the encoded radio that the corresponding encoded radio of the reference picture is identified as coding unit.
Certainly, although it will be apparent to a skilled person that Figure 11 and Figure 12 respectively illustrate two kinds of realities of the invention Apply the structural representation of the identifying device of coding pattern under example, but in the specific implementation, all units in Figure 11 and Figure 12 In may be at the identifying device of same coding pattern, and title identical unit in Figure 11 and Figure 12, can be using same hard Part or equipment are realized, it would however also be possible to employ different hardware or equipment realize that the present invention is not limited this.
Example devices
In the generating means and the identifying device of coding pattern of the coding pattern for describing exemplary embodiment of the invention Afterwards, next, introducing the generating means and coding pattern of the coding pattern of another exemplary embodiment of the invention Identifying 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 implemented as following form, i.e.,:Completely hardware embodiment, complete Full Software Implementation (including firmware, microcode etc.), or the embodiment that hardware and software aspect is combined, can unite here Referred to as " circuit ", " module " or " system ".
In some possible embodiments, the generating means of coding pattern of the invention can at least include at least One processing unit and at least one memory element.Wherein, the memory element has program stored therein code, works as described program When code is performed by the processing unit so that the processing unit is performed to be retouched in above-mentioned " illustrative methods " part of this specification Step in the generation method of the coding pattern according to various illustrative embodiments of the invention stated.For example, it is described to process single The step of unit can perform as shown in Figure 4 401, obtains the coding unit for parsing the coordinate information of body surface position; Multiple coding units are presented on body surface by step 402, form coding pattern;Wherein, coding unit includes readable mark Remember, and raadable mark is used to parse the volume of coding unit mark relative to the anglec of rotation of raadable mark in predefined reference picture Code value.
The generating means 130 of the coding pattern of this embodiment of the invention are described referring to Figure 13.Figure The generating means 130 of 13 coding patterns for showing are only an example, to the function of the embodiment of the present invention and should not use model Shroud carrys out any restriction.
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 Component into device 130 can be including but not limited to:Above-mentioned at least one processing unit 1301, above-mentioned at least one memory element 1302nd, the bus 1303 of different system component (including processing unit 1301 and memory element 1302) is connected.
Bus 1303 represents one or more in a few class bus structures, including memory bus or memorizer control Device, peripheral bus, processor or using various bus structures in any bus-structured local bus.
Memory element 1302 can include the computer-readable recording medium of form of volatile memory, such as random access memory (RAM) 13021 and/or cache memory 13022, can further include read only memory (ROM) 13023.
Memory element 1302 can also include the program/utility with one group of (at least one) program module 13024 13025, such program module 13024 is included but is not limited to:Operating system, one or more application program, other programs Module and routine data, potentially include the realization of network environment in each or certain combination in these examples.
The generating means 130 of coding pattern can also be with one or more external equipment 1304 (such as keyboards, sensing equipment Deng) communication, can also enable a user to the equipment communication that interacts with the generating means 130 of coding pattern with one or more, and/ Or with any equipment that the generating means 130 of the coding pattern are communicated with one or more of the other computing device (such as router, modem etc.) communicates.This communication can be carried out by input/output (I/O) interface 1305.And And, the generating means 130 of coding pattern can also be by network adapter 1306 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as the Internet) communication.As shown in figure 13, network adapter 1306 passes through Bus 1303 communicates with other modules of the generating means 130 of coding pattern.It will be appreciated that though not shown in 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 identifying device of the coding pattern of another exemplary embodiment of the 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 implemented as following form, i.e.,:Completely hardware embodiment, complete Full Software Implementation (including firmware, microcode etc.), or the embodiment that hardware and software aspect is combined, can unite here Referred to as " circuit ", " module " or " system ".
In some possible embodiments, the identifying device of coding pattern of the invention can at least include at least One processing unit and at least one memory element.Wherein, the memory element has program stored therein code, works as described program When code is performed by the processing unit so that the processing unit is performed to be retouched in above-mentioned " illustrative methods " part of this specification Step in the recognition methodss of the coding pattern according to various illustrative embodiments of the invention stated.For example, it is described to process single The step of unit can perform as shown in Figure 9 901, collection presents the target image of the body surface of coding pattern;Step 902, determine the coding unit in coding pattern;Step 903, determines the reference line in coding pattern;Step 904, with reference line On the basis of line, according to raadable mark in coding unit relative in predefined reference picture raadable mark the anglec of rotation determine compile The encoded radio of code unit marks.
The identifying device 140 of the coding pattern of this embodiment of the invention is described referring to Figure 14.Figure The identifying device 140 of 14 coding patterns for showing is only an example, to the function of the embodiment of the present invention and should not use model Shroud carrys out any restriction.
As shown in figure 14, the identifying 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 be including but not limited to:Above-mentioned at least one processing unit 1401, above-mentioned at least one memory element 1402nd, the bus 1403 of different system component (including processing unit 1401 and memory element 1402) is connected.
Bus 1403 represents one or more in a few class bus structures, including memory bus or memorizer control Device, peripheral bus, processor or using various bus structures in any bus-structured local bus.
Memory element 1402 can include the computer-readable recording medium of form of volatile memory, such as random access memory (RAM) 14021 and/or cache memory 14022, can further include read only memory (ROM) 14023.
Memory element 1402 can also include the program/utility with one group of (at least one) program module 14024 14025, such program module 14024 is included but is not limited to:Operating system, one or more application program, other programs Module and routine data, potentially include the realization of network environment in each or certain combination in these examples.
The identifying device 140 of coding pattern can also be with one or more external equipment 1404 (such as keyboards, sensing equipment Deng) communication, can also enable a user to the equipment communication that interacts with the identifying device 140 of coding pattern with one or more, and/ Or with any equipment that the identifying device 140 of the coding pattern is communicated with one or more of the other computing device (such as router, modem etc.) communicates.This communication can be carried out by input/output (I/O) interface 1405.And And, the identifying device 140 of coding pattern can also be by network adapter 1406 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as the Internet) communication.As shown in figure 14, network adapter 1406 passes through Bus 1403 communicates with other modules of the identifying device 140 of coding pattern.It will be appreciated that though not shown in figure, Ke Yijie The identifying 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 the coding pattern that the present invention is provided can be with It is embodied as a kind of form of program product, it includes program code, when described program product runs on a computing device, institute State program code for make the computer equipment perform described in above-mentioned " illustrative methods " part of this specification according to this Step in the generation method of the coding pattern for inventing various illustrative embodiments, for example, the computer equipment can be held The step of going as shown in Figure 4 401, obtains the coding unit for parsing the coordinate information of body surface position;Step 402, Multiple coding units are presented on into body surface, coding pattern is formed;Wherein, coding unit includes raadable mark, and readable Labelling is used to parse the encoded radio of coding unit mark relative to the anglec of rotation of raadable mark in predefined reference picture.
Said procedure product can adopt the combination in any of one or more computer-readable recording mediums.Computer-readable recording 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 quasiconductor, device or device, or arbitrarily more than combination.The more specifically example of readable storage medium storing program for executing (non exhaustive list) includes:Electrical connection with one or more 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 memorizer (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 15, the program product 150 generated for coding pattern according to the embodiment of the present invention is described, It can be using portable compact disc read only memory (CD-ROM) and including program code, it is possible to transport on the terminal device OK.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be it is any comprising or storage The tangible medium of program, the program can be commanded execution system, device, and either device is used or in connection.
Readable signal medium can include the data signal propagated in a base band or as a carrier wave part, 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 beyond readable storage medium storing program for executing it is any can Read medium, the computer-readable recording medium can send, propagate either transmit for by instruction execution system, device either device use or Program in connection.
The program code included on computer-readable recording medium can be with any appropriate medium transmission, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
The program for performing present invention operation can be write with the combination in any of one or more programming language Code, described program design language includes object oriented program language-Java, C++ etc., also including routine Procedural programming language-such as " C " language or similar programming language.Program code can fully in user Perform in computing device, partly perform on a user device, calculating as an independent software kit execution, partly in user Its upper side point is performed on a remote computing or performed in remote computing device or server completely.It is being related to far In the situation of journey computing device, remote computing device can be by the network of any kind --- including LAN (LAN) or wide Domain net (WAN)-be connected to user's computing device, or, it may be connected to external computing device is (such as using Internet service Provider comes by Internet connection).
In other possible embodiments, the various aspects of the recognition methodss of the coding pattern that the present invention is provided may be used also In the form of to be embodied as a kind of program product, it includes program code, when described program product runs on a computing device, Described program code is used to make the computer equipment perform the basis described in above-mentioned " illustrative methods " part of this specification Step in the recognition methodss of the coding pattern of the various illustrative embodiments of the present invention, for example, the computer equipment can be with The step of performing as shown in Figure 9 901, collection presents the target image of the body surface of coding pattern;Step 902, it is determined that Coding unit in coding pattern;Step 903, determines the reference line in coding pattern;Step 904, the line on the basis of reference line, Coding unit mark is determined according to the anglec of rotation of the raadable mark in coding unit relative to raadable mark in predefined reference picture The encoded radio of knowledge.
Said procedure product can adopt the combination in any of one or more computer-readable recording mediums.Computer-readable recording 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 quasiconductor, device or device, or arbitrarily more than combination.The more specifically example of readable storage medium storing program for executing (non exhaustive list) includes:Electrical connection with one or more 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 memorizer (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 according to the embodiment of the present invention is described, It can be using portable compact disc read only memory (CD-ROM) and including program code, it is possible to transport on the terminal device OK.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be it is any comprising or storage The tangible medium of program, the program can be commanded execution system, device, and either device is used or in connection.
Readable signal medium can include the data signal propagated in a base band or as a carrier wave part, 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 beyond readable storage medium storing program for executing it is any can Read medium, the computer-readable recording medium can send, propagate either transmit for by instruction execution system, device either device use or Program in connection.
The program code included on computer-readable recording medium can be with any appropriate medium transmission, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
The program for performing present invention operation can be write with the combination in any of one or more programming language Code, described program design language includes object oriented program language-Java, C++ etc., also including routine Procedural programming language-such as " C " language or similar programming language.Program code can fully in user Perform in computing device, partly perform on a user device, calculating as an independent software kit execution, partly in user Its upper side point is performed on a remote computing or performed in remote computing device or server completely.It is being related to far In the situation of journey computing device, remote computing device can be by the network of any kind --- including LAN (LAN) or wide Domain net (WAN)-be connected to user's computing device, or, it may be connected to external computing device is (such as using Internet service Provider comes by Internet connection).
Although it should be noted that be referred to some modules or submodule of device in above-detailed, this stroke What is point be merely exemplary is not enforceable.In fact, according to the embodiment of 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.
Although additionally, describe the operation of the inventive method with particular order in the accompanying drawings, this do not require that or Hint must perform according to the particular order these operation, or the operation having to carry out shown in whole could realize it is desired As a result.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into into a step to perform, and/or by one Step is decomposed into execution of multiple steps.
Although describing spirit and principles of the present invention by reference to some specific embodiments, it should be appreciated that, this Invention is not limited to disclosed specific embodiment, and the division to each side does not mean that the feature in these aspects can not yet Combination is this to divide merely to the convenience of statement to be benefited.It is contemplated that cover claims spirit and In the range of included various modifications and equivalent arrangements.

Claims (14)

1. a kind of generation method of coding pattern, including:
Obtain the coding unit for parsing the coordinate information of body surface position;
Multiple coding units are presented on into the body surface, coding pattern is formed;
Wherein, the coding unit includes raadable mark, and the raadable mark relative to readable in predefined reference picture The anglec of rotation of labelling is used to parse the encoded radio of coding unit mark.
2. method according to claim 1, wherein, the raadable mark includes any one in following figure or many Kind:T-shaped and triangle.
3. method according to claim 1 and 2, wherein, the ash of the gray value of the raadable mark and the body surface The absolute value of the difference of angle value is less than the first default gray threshold and more than the second default gray threshold.
4. a kind of recognition methodss of coding pattern, including:
Collection presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern;
Determine the reference line in the coding pattern;
The line on the basis of the reference line, according to raadable mark in coding unit relative to raadable mark in predefined reference picture The anglec of rotation determine the encoded radio of coding unit mark.
5. method according to claim 4, further includes:
Judge whether the reference line in the coding pattern is parallel with the border wire of the target image, if it is determined that result is It is no, then the target image is rotated, make the reference line in the coding pattern parallel with the border wire;
Then determine the coding unit in the coding pattern, including:
In postrotational target image, the coding unit in the coding pattern is determined.
6. method according to claim 4, wherein, the reference line determined in the coding pattern, including:
Two target code units are determined in the coding pattern, and connects the reference position point of two target code units Generate the reference line.
7. method according to claim 6, wherein, the reference position point of described two target code units of connection generates institute Reference line is stated, including:
Whether the distance between two target code units that judgement is determined meet the first preset standard;
Under conditions of judging that the distance between two target code units meets first preset standard, connect two targets The reference position point of coding unit generates the reference line.
8. method according to claim 4, wherein, the coding unit determined in the coding pattern, including:To compile A raadable mark in code pattern is defined as a coding unit.
9. the method according to any one of claim 4-8, wherein, the line on the basis of the reference line, according to volume Raadable mark determines the coding unit mark relative to the anglec of rotation of raadable mark in predefined reference picture in code unit Encoded radio, including:
Intercept in the target image centered on the reference position point of the coding unit, with reference line direction and vertical reference Preset length on line direction is the topography of the length of side;
Rotate the topography using with the anglec of rotation for presetting rule change change, by postrotational topography with it is described Predefined reference picture is matched, when matching result meets pre-conditioned by present rotation angel degree or round angle and current rotation The difference of gyration as raadable mark in topography relative to raadable mark in predefined reference picture the anglec of rotation;
According to raadable mark in the corresponding relation and the topography of the default anglec of rotation and encoded radio relative to predefined The anglec of rotation of raadable mark in reference picture, determines the encoded radio of the coding unit mark included in the topography.
10. method according to claim 9, wherein, it is described that postrotational topography is predefined with reference to figure with described As being matched, the difference of present rotation angel degree or round angle and present rotation angel degree is made when matching result meets pre-conditioned For raadable mark in topography relative to raadable mark in predefined reference picture the anglec of rotation, including:
Postrotational topography is carried out and computing with the predefined reference picture, it is determined that with computing after image in The raadable mark gray value identical pixel quantity more than under conditions of predetermined threshold value, by present rotation angel degree or round angle with The difference of present rotation angel degree as raadable mark in topography relative to raadable mark in predefined reference picture the anglec of rotation Degree.
11. methods according to any one of claim 4-8, wherein, the line on the basis of the reference line, according to volume Raadable mark determines the coding unit mark relative to the anglec of rotation of raadable mark in predefined reference picture in code unit Encoded radio, including:
Intercept in the target image centered on the reference position point of the coding unit, with reference line direction and vertical reference Preset length on line direction is the topography of the length of side;
According to the corresponding relation and the topography of preset reference image and encoded radio, determine and included in the topography Coding unit mark encoded radio.
12. methods according to claim 11, wherein, the preset reference image includes multiple reference pictures, then described According to the corresponding relation and the topography of preset reference image and encoded radio, the volume included in the topography is determined The encoded radio of code unit marks, including:
Topography is matched respectively with described multiple reference pictures, the arbitrary reference picture in multiple reference pictures with Under conditions of the topography matches, the coding that the corresponding encoded radio of the reference picture is identified as the coding unit Value.
A kind of 13. generating means of coding pattern, including:
Acquisition module, for obtaining the coding unit for parsing the coordinate information of body surface position;
Module is presented, for multiple coding units to be presented on into the body surface, coding pattern is formed;
Wherein, the coding unit includes raadable mark, and the raadable mark relative to readable in predefined reference picture The anglec of rotation of labelling is used to parse the encoded radio of coding unit mark.
A kind of 14. identifying devices of coding pattern, including:
Acquisition module, the target image of the body surface of coding pattern is presented for collection;
Coding unit determining module, for determining the coding pattern in coding unit;
Reference line determining module, for determining the coding pattern in reference line;
Parsing module, for the line on the basis of the reference line, according to raadable mark in coding unit relative to predefined reference The anglec of rotation of raadable mark determines the encoded radio of the coding unit mark in image.
CN201610970102.5A 2016-10-28 2016-10-28 Coding pattern generation and identification methods and coding pattern generation and identification devices Pending CN106570549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610970102.5A CN106570549A (en) 2016-10-28 2016-10-28 Coding pattern generation and identification methods and coding pattern generation and identification devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610970102.5A CN106570549A (en) 2016-10-28 2016-10-28 Coding pattern generation and identification methods and coding pattern generation and identification devices

Publications (1)

Publication Number Publication Date
CN106570549A true CN106570549A (en) 2017-04-19

Family

ID=58541457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610970102.5A Pending CN106570549A (en) 2016-10-28 2016-10-28 Coding pattern generation and identification methods and coding pattern generation and identification devices

Country Status (1)

Country Link
CN (1) CN106570549A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194299A (en) * 2017-07-11 2017-09-22 余军辉 A kind of label recognition system classified for heparin tube
CN107229960A (en) * 2017-07-11 2017-10-03 余军辉 A kind of label classified for heparin tube and its recognition methods
CN107644183A (en) * 2017-09-01 2018-01-30 福建联迪商用设备有限公司 One-dimension code CMOS images the coding/decoding method and terminal of engine
CN108449627A (en) * 2018-03-16 2018-08-24 北京视觉世界科技有限公司 Video processing, the recognition methods of source video sequence, device, equipment and medium
CN108985421A (en) * 2018-08-14 2018-12-11 上海掌门科技有限公司 The generation method and recognition methods of encoded information
CN110598605A (en) * 2019-09-02 2019-12-20 广东虚拟现实科技有限公司 Positioning method, positioning device, terminal equipment and storage medium
CN110969041A (en) * 2018-09-30 2020-04-07 北京京东尚科信息技术有限公司 Method and device for identifying graphic code

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063836A (en) * 2006-04-28 2007-10-31 富士施乐株式会社 Image forming apparatus and electronic document management method
US20080095440A1 (en) * 2006-10-24 2008-04-24 Fuji Xerox Co., Ltd. Image processing apparatus, computer readable medium and computer data signal
CN102650934A (en) * 2012-04-01 2012-08-29 李卫伟 Method, device and system for printing variable data coded pattern
CN103020689A (en) * 2013-01-16 2013-04-03 重庆大学 Method for recognizing hole-shaped codes of articles on basis of geometric figures
US20130242289A1 (en) * 2012-03-19 2013-09-19 Sanyo Denki Co., Ltd. Encoder
CN105243551A (en) * 2015-10-12 2016-01-13 上海应用技术学院 Anti-counterfeiting dot matrix graphic encoding and decoding method applicable to commodity packaging

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063836A (en) * 2006-04-28 2007-10-31 富士施乐株式会社 Image forming apparatus and electronic document management method
US20080095440A1 (en) * 2006-10-24 2008-04-24 Fuji Xerox Co., Ltd. Image processing apparatus, computer readable medium and computer data signal
US20130242289A1 (en) * 2012-03-19 2013-09-19 Sanyo Denki Co., Ltd. Encoder
CN102650934A (en) * 2012-04-01 2012-08-29 李卫伟 Method, device and system for printing variable data coded pattern
CN103020689A (en) * 2013-01-16 2013-04-03 重庆大学 Method for recognizing hole-shaped codes of articles on basis of geometric figures
CN105243551A (en) * 2015-10-12 2016-01-13 上海应用技术学院 Anti-counterfeiting dot matrix graphic encoding and decoding method applicable to commodity packaging

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194299A (en) * 2017-07-11 2017-09-22 余军辉 A kind of label recognition system classified for heparin tube
CN107229960A (en) * 2017-07-11 2017-10-03 余军辉 A kind of label classified for heparin tube and its recognition methods
CN107644183A (en) * 2017-09-01 2018-01-30 福建联迪商用设备有限公司 One-dimension code CMOS images the coding/decoding method and terminal of engine
CN108449627A (en) * 2018-03-16 2018-08-24 北京视觉世界科技有限公司 Video processing, the recognition methods of source video sequence, device, equipment and medium
CN108449627B (en) * 2018-03-16 2021-08-10 北京视觉世界科技有限公司 Video processing method, video source identification method, video processing device, video source identification device and video source identification medium
CN108985421A (en) * 2018-08-14 2018-12-11 上海掌门科技有限公司 The generation method and recognition methods of encoded information
WO2020034981A1 (en) * 2018-08-14 2020-02-20 上海掌门科技有限公司 Method for generating encoded information and method for recognizing encoded information
CN108985421B (en) * 2018-08-14 2021-05-07 上海掌门科技有限公司 Method for generating and identifying coded information
CN110969041A (en) * 2018-09-30 2020-04-07 北京京东尚科信息技术有限公司 Method and device for identifying graphic code
CN110969041B (en) * 2018-09-30 2023-09-01 北京京东振世信息技术有限公司 Identification method and device for graphic codes
CN110598605A (en) * 2019-09-02 2019-12-20 广东虚拟现实科技有限公司 Positioning method, positioning device, terminal equipment and storage medium
CN110598605B (en) * 2019-09-02 2022-11-22 广东虚拟现实科技有限公司 Positioning method, positioning device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106570549A (en) Coding pattern generation and identification methods and coding pattern generation and identification devices
CN106529635B (en) A kind of generation of coding pattern, recognition methods and device
Salomon et al. Deep learning for image-based automatic dial meter reading: Dataset and baselines
CN109614944A (en) A kind of method for identifying mathematical formula, device, equipment and readable storage medium storing program for executing
CN112418216B (en) Text detection method in complex natural scene image
JP2019505872A (en) Method and apparatus for generating a two-dimensional code image having a dynamic effect
CN110008956A (en) Invoice key message localization method, device, computer equipment and storage medium
CN104169965A (en) Systems, methods, and computer program products for runtime adjustment of image warping parameters in a multi-camera system
CN111832449A (en) Engineering drawing display method and related device
CN107832794A (en) A kind of convolutional neural networks generation method, the recognition methods of car system and computing device
CN103870799A (en) Character direction judging method and device
CN109766891A (en) Obtain the method and computer readable storage medium of installations and facilities information
CN112766027A (en) Image processing method, device, equipment and storage medium
CN112464798A (en) Text recognition method and device, electronic equipment and storage medium
CN110457025A (en) The display methods and device of bar code, storage medium and electronic device
CN110443317A (en) A kind of method, apparatus and electronic equipment of paper shelves electronic data processing
CN106548499A (en) A kind of generation of coding pattern, recognition methodss and device
CN106570546A (en) Method and device for generating coding pattern and method and device for recognizing coding pattern
Rice et al. Cantag: an open source software toolkit for designing and deploying marker-based vision systems
CN106570547A (en) Code pattern generation method, encoding pattern recognition method and devices
CN111931771A (en) Bill content identification method, device, medium and electronic equipment
CN110163095B (en) Loop detection method, loop detection device and terminal equipment
CN107220689A (en) Position encoded method for generating pattern, device, equipment and readable storage medium storing program for executing
CN111062262B (en) Invoice recognition method and invoice recognition device
JP4247190B2 (en) Two-dimensional code recognition device and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170419