CN106570547A - Code pattern generation method, encoding pattern recognition method and devices - Google Patents

Code pattern generation method, encoding pattern recognition method and devices Download PDF

Info

Publication number
CN106570547A
CN106570547A CN201610906405.0A CN201610906405A CN106570547A CN 106570547 A CN106570547 A CN 106570547A CN 201610906405 A CN201610906405 A CN 201610906405A CN 106570547 A CN106570547 A CN 106570547A
Authority
CN
China
Prior art keywords
coding unit
mark
raadable
coding
raadable mark
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.)
Granted
Application number
CN201610906405.0A
Other languages
Chinese (zh)
Other versions
CN106570547B (en
Inventor
陈刚
谭伟
姚锦辉
肖云龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201610906405.0A priority Critical patent/CN106570547B/en
Publication of CN106570547A publication Critical patent/CN106570547A/en
Application granted granted Critical
Publication of CN106570547B publication Critical patent/CN106570547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to a code pattern generation method and a code pattern recognition method. The code pattern generation method includes the following steps that: code units for analyzing the coordinate information of the position of an object surface are acquired; and the code units are presented on the object surface so as to form a code pattern, wherein each code unit comprises one or more readable marks, the area value of the readable mark being used for analyzing a corresponding numerical value. The code pattern recognition method includes the following steps that: the target image of an object surface presenting a code pattern is acquired; and code units in the code pattern are determined, and a code value indicated by each code unit is determined according to the area value of one or more readable marks contained in the corresponding code unit. With the code pattern generation method and the code pattern recognition method of the invention adopted, the computation amount of code pattern recognition is decreased, and the recognition accuracy and recognition speed of the code pattern can be improved. In addition, the present invention provides a code pattern generation device and a code pattern recognition device.

Description

A kind of generation of coding pattern, recognition methods and device
Technical field
Embodiments of the present invention are related to image coding technology field, more specifically, embodiments of the present invention are related to one Plant generation, recognition methods 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 rules, it is also possible to directly with Ad hoc rules 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, camera 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 difference that the direction that four of two lines of raadable mark 202 different in a, b, c, d represents For binary numeral 00b, 01b, 10b, 11b.
When scheme two carries out position encoded on a surface of an, according to the line structure 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 mark, 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 methods 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 methods 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 methods 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 one or more raadable marks, and the area value of the raadable mark is used for Parse corresponding numerical value.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, further include:With described The reference position point of coding unit carries out rotation process for pivot to coding unit;It is then described to be presented the coding unit In the body surface, including:The body surface will be presented on through the coding unit of rotation.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, further include:Described Addition in coding unit refers to raadable mark, and the reference raadable mark is used to determine the raadable mark mark that coding unit is included The numerical value of knowledge;It is then described that the coding unit is presented on into the body surface, including:The reference raadable mark will be included Coding unit is presented on the body surface.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, the reference raadable mark Area value by the centre plane product value of preset area value or predetermined number coding unit comprising all raadable marks.
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:Point, line segment, circle, rectangle, triangle and polygon.
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 a kind of possible embodiment, in said method provided in an embodiment of the present invention, further include:In coding In the case that unit includes multiple raadable marks, by the combination of multiple raadable marks come the encoded radio of identification code unit.
In the second aspect of embodiment of the present invention, there is provided a kind of recognition methods of coding pattern, including:
Collection presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern, and it is readable according to one or more included in the coding unit The area value of mark 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:Determine institute State the reference line in coding pattern;Then determine the coding unit in the coding pattern, including:Determine in the coding pattern After going out one or more coding units, along the direction of the reference line next coding unit is determined.
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;In then determining the coding pattern 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:Determine two first object coding units in the coding pattern, and connect two first The reference position point of target code unit generates the reference line;Or comprising multiple raadable marks and institute in the coding unit Coding unit is stated without rotation processing, then the reference line determined in the coding pattern, including:In the coding pattern In determine a second target code unit, and connect the predeterminated position point of two raadable marks in the second target code unit Generate the reference line.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, the connection two first The reference position point of target code unit generates the reference line, including:Two first object coding units that judgement is determined The distance between whether meet first preset standard;Distance between two first object coding units of judgement meets institute Under conditions of stating the first preset standard, the reference position point for connecting two first object coding units generates the reference line.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, wrap in the coding unit Containing a raadable mark, then the coding unit determined in the coding pattern, including:One raadable mark is defined as One coding unit;Or N number of raadable mark is included in the coding unit, then the coding determined in the coding pattern Unit, including:N number of raadable mark is selected in the coding pattern, in the combination of two of selected N number of raadable mark, is sentenced Whether the distance between two raadable marks meet the second preset standard in disconnected default combination, if it is determined that result is yes, then by institute The N number of raadable mark for selecting is defined as a coding unit, wherein, N is the natural number more than 1.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, the coding unit is included One raadable mark, then it is described according to the area value of one or more raadable marks included in the coding unit determines The encoded radio of coding unit mark, including:The numerical value that raadable mark is identified is determined according to the area value of a raadable mark, and The encoded radio that the numerical value of one raadable mark mark is identified as the coding unit;Or the coding unit is comprising more Individual raadable mark, then the area value according to one or more raadable marks included in the coding unit determine the volume The encoded radio of code unit marks, including:The numerical value of each raadable mark mark is determined according to the area value of each raadable mark, and According to multiple raadable marks put in order and each raadable mark mark numerical value, determine the volume of the coding unit mark Code value.
In a kind of possible embodiment, in said method provided in an embodiment of the present invention, wrap in the coding unit Containing raadable mark is referred to, then the numerical value that raadable mark is identified is determined according to the area value of raadable mark, including:For coding unit In each raadable mark in addition to the reference raadable mark, by the area value of raadable mark and the reference raadable mark Area value is compared, and according to comparative result the numerical value that raadable mark is identified is determined;Or not comprising ginseng in the coding unit Raadable mark is examined, then the numerical value that raadable mark is identified is determined according to the area value of raadable mark, including:For in coding unit Each raadable mark, the area value of raadable mark is compared with preset area threshold value, and according to comparative result readable mark is determined The numerical value of note mark.
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 one or more raadable marks, and the area value of the raadable mark is used for Parse corresponding numerical value.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, further include:At first Reason module, for carrying out rotation process to coding unit by pivot of the reference position point of the coding unit;It is then described Module is presented, specifically for:The body surface will be presented on through the coding unit of rotation.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, further include:At second Reason module, for the addition in the coding unit raadable mark is referred to, and the reference raadable mark is used to determine coding unit Comprising raadable mark mark numerical value;The then presentation module, specifically for:By the volume comprising the reference raadable mark Code unit is presented on the body surface.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the Second processing module The area value of the reference raadable mark added in the coding unit is preset area value or predetermined number coding unit Centre plane product value comprising all raadable marks.
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:Point, line segment, circle, rectangle, triangle and polygon.
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 a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the presentation module is also used In:In the case where coding unit includes multiple raadable marks, by the combination of multiple raadable marks come identification code unit Encoded radio.
In the fourth aspect of embodiment of the present invention, 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;
Parsing module, for determining the coding pattern in coding unit, and according to including in the coding unit The area value of one or more raadable marks determines the encoded radio of the coding unit mark.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, further include:Reference line Determining module, for determining the coding pattern in reference line;Then the parsing module determines the volume in the coding pattern Code unit, specifically for:After one or more coding units are determined in the coding pattern, along the side of the reference line To the next coding unit of determination.
In a kind of possible embodiment, in 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;It is then described Parsing module determines the coding unit in the coding pattern, specifically for:In postrotational target image, institute is determined State the coding unit in 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 first object coding units are determined in the coding pattern, and connects two first object codings The reference position point of unit generates the reference line;Or comprising two or more raadable mark and described in the coding unit In the case that coding unit is without rotation processing, a second target code unit is determined in the coding pattern, and The predeterminated position point for connecting two raadable marks in the second target code unit generates the reference line.
In a kind of possible embodiment, in 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 first object coding units determining meet described the One preset standard;Determining unit, for judging that the distance between two first object coding units meets in the judging unit Under conditions of first preset standard, the reference position point for connecting two first object coding units generates the reference line.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the parsing module determines Coding unit in the coding pattern, specifically for:A raadable mark is included in the coding unit, then can by this Read flag is defined as a coding unit;Or N number of raadable mark is included in the coding unit, select in the coding pattern N number of raadable mark is selected, in the combination of two of selected N number of raadable mark, in the default combination of judgement between two raadable marks Distance whether meet the second preset standard, if it is determined that result is yes, then selected N number of raadable mark is defined as into a volume Code unit, wherein, N is the natural number more than 1.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the parsing module according to The area value of one or more raadable marks included in the coding unit determines the encoded radio of the coding unit mark, tool Body is used for:The coding unit includes a raadable mark, then determine raadable mark according to the area value of a raadable mark The numerical value of mark, and the encoded radio that the numerical value of a raadable mark mark is identified as the coding unit;Or it is described Coding unit includes multiple raadable marks, and according to the area value of each raadable mark the numerical value of each raadable mark mark is determined, And according to multiple raadable marks put in order and each raadable mark mark numerical value, determine the coding unit mark Encoded radio.
In a kind of possible embodiment, in said apparatus provided in an embodiment of the present invention, the parsing module according to The area value of raadable mark determines the numerical value that raadable mark is identified, specifically for:Comprising with reference to readable mark in the coding unit Note, then for each raadable mark in coding unit in addition to the reference raadable mark, by the area value of raadable mark with The area value of the reference raadable mark is compared, and according to comparative result the numerical value that raadable mark is identified is determined;Or it is described Not comprising raadable mark is referred in coding unit, then for each raadable mark in coding unit, by the area of raadable mark Value is compared with preset area threshold value, and according to comparative result the numerical value that raadable mark is identified is determined.
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 memory and processor, wherein, processor can be used for reading the program in memory, 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 one or more raadable marks, and the area value of the raadable mark is used for Parse corresponding numerical value.
In the 6th aspect of embodiment of the present invention, there is provided the identifying device of another kind of coding pattern, for example, can be with Including memory and processor, wherein, processor can be used for reading the program in memory, perform following process:
Collection presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern, and it is readable according to one or more included in the coding unit The area value of mark 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 one or more raadable marks, and the area value of the raadable mark is used for Parse corresponding numerical value.
In the eighth aspect of embodiment of the present invention, 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, and it is readable according to one or more included in the coding unit The area value of mark determines the encoded radio of the coding unit mark.
Generation, recognition methods and device according to the coding pattern of embodiment of the present invention, enters on a surface of an line position When putting coding, encoded using the area value of raadable mark, when the numerical information that coding pattern is represented is parsed, by identification The area value of one or more raadable marks included in coding unit, it is readable according to one or more included in coding unit The numerical value of the area value parsing raadable mark mark of mark, and then coding unit mark is separated out according to the numerical solution of raadable mark mark The encoded radio of knowledge, need to only recognize the area value of raadable mark, without the need for calculating grid position, without between calculating raadable mark Angle, identification is simple, and 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 a kind of schematic diagram of coding pattern according to embodiments of the present invention;
Fig. 6 schematically shows the schematic diagram of another kind of coding pattern according to embodiments of the present invention;
Fig. 7 schematically shows the schematic diagram of another coding pattern according to embodiments of the present invention;
Fig. 8 schematically shows the schematic diagram of another coding pattern according to embodiments of the present invention;
Fig. 9 schematically shows the schematic diagram of another coding pattern according to embodiments of the present invention;
Figure 10 schematically shows the schematic flow sheet of the recognition methods of coding pattern according to embodiments of the present invention;
Figure 11 schematically shows a kind of structural representation of the generating means of coding pattern according to embodiments of the present invention Figure;
Figure 12 schematically shows a kind of structural representation of the identifying device of coding pattern according to embodiments of the present invention Figure;
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 kind of 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 methods 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 methods 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 methods 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 methods 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 one or more raadable marks, and the area value of raadable mark For parsing corresponding numerical value;The recognition methods of coding pattern can include:Collection presents the body surface of coding pattern Target image;Determine the coding unit in coding pattern, and according to one or more raadable marks included in coding unit Area value determines the encoded radio that coding unit is identified.
After the general 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 methods 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 one or more raadable marks, the area value of each raadable mark is used to parse corresponding numerical value.
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, and single according to coding The area value of one or more raadable marks included in unit determines the encoded radio that coding unit is identified, and then according to identifying The encoded radio of multiple coding units mark determines the coordinate information of current writing position, and can will contain and multiple write position To in user terminal 303, user terminal 303 can be with root for the handwriting trace synchronizing information transmission of the coordinate information put or asynchronous transmission According to handwriting trace information, handwriting trace is played back.
Wherein, intelligent writing equipment 302 and user terminal 303 can pass through bluetooth, short haul connection, cellular mobile network, nothing Line 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 volume according to exemplary embodiment of the invention is described with reference to Fig. 4-Figure 10 The generation method of code pattern and recognition methods.It should be noted that above-mentioned application scenarios are for only for ease of understands the present invention's Spirit and principle and illustrate, embodiments of the present invention are unrestricted in this regard.Conversely, embodiments of the present invention can To be 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 One or more raadable marks, and the area value of raadable mark be used for parse corresponding numerical value.
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.Can be with coding unit It is used to parse corresponding numerical value including one or more raadable marks, and the area value of raadable mark.Wherein, raadable mark can be with It is arbitrary shape, and can is arbitrary size, the shape of raadable mark is included but is not limited to:Point, line segment, circle, rectangle, triangle Shape and polygon.More preferably, for the ease of being presented on body surface, raadable mark is using square.
The area value parsing coding unit of one or more raadable marks that the embodiment of the present invention is included using coding unit The encoded radio of mark, such that it is able to features such as the directional informations without the help of the boost line determined or relative to boost line i.e. The encoded radio of coding unit mark can be parsed, the difficulty of parsing is reduced, and boost line and coding unit phase need not be determined For the directional information of boost line, amount of calculation when coding unit is parsed is reduced.
When being embodied as, when multiple coding units are presented on into body surface, the direction of multiple coding units can be with one Cause, in the case that the direction of the plurality of coding unit is consistent, its direction can be and body surface edge, for example:With paper The parallel or vertical direction in edge, naturally it is also possible to be any direction.
Used as more specific embodiment, coding unit includes a raadable mark, and raadable mark is square, and makes 2 binary numerals 0 and 1 are identified with 2 different area values, the raadable mark mark binary numeral 1 of larger area value is less The raadable mark mark binary numeral 0 of area value, as shown in figure 5, including one in coding unit 501 and coding unit 502 Individual raadable mark, and coding unit 501 is different from the area value of raadable mark in coding unit 502, the numerical value for parsing is not yet Identical, the numerical value that raadable mark is parsed in coding unit 501 is binary numeral 0, and raadable mark solution in coding unit 502 The numerical value of precipitation is binary numeral 1.
Used as another more specific embodiment, coding unit includes two raadable marks, and raadable mark is square, And 2 binary numerals 0 and 1 are identified using 2 different area values, the raadable mark of larger area value identifies binary numeral 1, Binary numeral 0 is identified compared with the raadable mark of facet product value, as shown in fig. 6, coding unit 601, coding unit 602, coding are single Include two raadable marks in unit 603 and coding unit 604, the area value of raadable mark is different, the numerical value for parsing is not yet Together, the numerical value that two raadable marks are parsed in coding unit 601 is respectively binary numeral 0 and binary numeral 0, and coding is single The numerical value that two raadable marks are parsed in unit 602 is respectively binary numeral 0 and binary numeral 1, two in coding unit 603 The numerical value that individual raadable mark is parsed is respectively binary numeral 1 and binary numeral 0, two readable marks in coding unit 604 The numerical value that note is parsed is respectively binary numeral 1 and binary numeral 1.Therefore, the corresponding coding of coding unit 601~604 Value is respectively binary coded value 00,01,10 and 11.In one embodiment, by the assembly coding of multiple coding units Value parsing is printed on the coordinate information of body surface position.
For convenience of explanation in the embodiment of the present invention in coding unit and coding unit raadable mark presentation mode, this Inventive embodiments introduce the concept of reference position point, each coding unit correspondence setting reference position point, wrap in coding unit When including a raadable mark, reference position point can be the predeterminated position point in coding unit on a raadable mark, for example: Can be the raadable mark geometric center, or the raadable mark other predeterminated position points, for example:End points, certainly, Reference position point can also be without being located on the raadable mark, for example:Reference position point is located on the extended line of raadable mark; When coding unit includes multiple raadable marks, reference position point can be located at certain specific readable mark in multiple raadable marks Predeterminated position point on note, for example:Can be the geometric center, or the specific readable mark of the specific readable mark Other predeterminated position points, for example:End points, certainly, reference position point can not also be located at multiple readable included by coding unit On any one raadable mark in mark, for example:When coding unit includes two raadable marks, reference position point is located at Two raadable mark geometric centers connect the midpoint of line formed section.Preferably, reference position point can be correspondence coding unit Geometric center, so it is easy to understand that in the case where reference position point is the geometric center of correspondence coding unit, work as coding unit During including multiple raadable marks, the reference position point is likely located on some raadable mark in multiple raadable marks, also may be used Can not be located on any one raadable mark of multiple raadable marks included by coding unit, this depends on the plurality of raadable mark Size relationship and arrangement mode.
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.
In addition, in the case where the reference position point of coding unit is the geometric center of coding unit, so it is easy to understand that When the size of multiple raadable marks or length are different in coding unit, different size or different length in coding unit Raadable mark may be different apart from the distance of the reference position point.
Additionally, in the case where coding unit includes multiple raadable marks, inside a coding unit, multiple readable marks Note can be arranged with predeterminated position, it is preferred that multiple raadable marks can be arranged in same a line or same row, it is preferred that In the case where coding unit is without rotation, the orientation of multiple raadable marks can be with the reference bit of adjacent encoder unit The line direction put a little is identical.
Certainly, it will be apparent to a skilled person that an arbitrarily raadable mark can also be included in coding unit, and And raadable mark can use n different area value mark k value, wherein, n and k is the natural number more than 1.Pass through The various combination of raadable mark represents different coding units, will not enumerate herein.In addition, the coding unit of Fig. 5 and Fig. 6 In the horizontal dotted line that illustrates and vertical dotted line only for schematically illustrating the position of raadable mark, in the specific implementation, level is empty Line and vertical dotted line need not be presented on body surface.
What deserves to be explained is, it is preferable that it is adjacent in each coding unit when including multiple raadable marks in coding unit Distance between raadable mark is equal, and the distance between adjacent encoder unit is equal, and the distance between adjacent encoder unit is big The distance between raadable mark in coding unit.For example:When two raadable marks are included in coding unit, two readable marks The distance between note is 1/3 of distance between two neighboring coding unit.In embodiments of the present invention, more preferably, The distance between adjacent encoder unit can be the distance between adjacent encoder cell geometry center, it is of course also possible to be adjacent In coding unit the distance between 2 points at same position, naturally it is also possible to be the corresponding reference position point of adjacent encoder unit it Between distance;Likewise, the distance between adjacent raadable mark can be the distance between adjacent raadable mark geometric center, also may be used To be the distance between 2 points at adjacent raadable mark same position, these embodiments all protection scope of the present invention it It is interior.
Knowable to foregoing description, the coding of coding unit can be defined by the various combination of two or more raadable marks Value, i.e., by raadable mark combination come the encoded radio of identification code unit.
Preferably, in order to increase coding unit body surface randomness, cause body surface color it is more uniform, Reduce coding pattern to the visual impact of user, multiple coding units are presented on before body surface in step 402, also Rotation process can be carried out to coding unit by pivot of the reference position point of coding unit, be then presented on coding unit Body surface, including:Body surface will be presented on through the coding unit of rotation.
When being embodied as, when coding unit includes multiple raadable marks, using multiple raadable marks as an entirety, enter Row rotation process.Specifically, rotation process can be carried out to all coding units, it is also possible to which code segment unit is revolved Turn operation, and the anglec of rotation can be arbitrarily angled.Wherein, in the case of rotating to coding unit, it is presented on object The direction of multiple coding units on surface can be with not quite identical.
As more specific embodiment, as shown in fig. 7, the volume that the coding unit 701 illustrated in Fig. 7 figure 6 illustrates Without rotation processing on the basis of code unit 601, the coding unit 702 illustrated in Fig. 7 is the coding unit to illustrating in Fig. 6 What 602 45 ° of rotate counterclockwises (degree) were generated, the coding unit 703 in Fig. 7 is to 603 rotate counterclockwise of coding unit, 90 ° of generations , the coding unit 704 in Fig. 7 is, to 604 rotate counterclockwise of coding unit, 135 ° of generations, to coding unit rotation behaviour to be carried out After work, coding unit is presented on into body surface.
Above-mentioned rotation process at any angle is independently carried out by object of the whole raadable marks in a coding unit Afterwards, due to the encoded radio of the gray value parsing coding unit mark of raadable mark in dependence coding unit, therefore, do not interfere with volume The identification of code unit or the encoded radio of coding unit, nor affect on the analysis result of location coordinate information.And by coding Unit is rotated at any angle, and the print color that can cause body surface (such as paper) is distributed than more uniform.Due to being Rotated as pivot with the reference position point of coding unit, the reference position point position of the coding unit is constant, no The direction of line between the reference position point of multiple coding units can be affected.
Preferably, the False Rate of area value is read to improve the accuracy of raadable mark area value reading, reduction, is reduced The otherness of area value between raadable mark, reduce coding pattern to the visual impact of user, in step 402 by multiple volumes Code unit is presented on before body surface, can refer to raadable mark with the addition in coding unit, is used for reference to raadable mark Determine the numerical value of the raadable mark mark that coding unit is included;Then coding unit is presented on into body surface, including:To include Body surface is presented on reference to the coding unit of raadable mark.
When being embodied as, with reference to raadable mark area value can be preset area value, for example:Preset area value is 0.01mm2(square millimeter), or predetermined number coding unit include the centre plane product value of all raadable marks, or Person is the minimum of a value of raadable mark area value in predetermined number coding unit.For example:It is all included in 6 coding units can The centre plane product value of read flag.In addition, with reference to raadable mark area value unit except being square measure such as mm2, Can also be that the number of pixel, i.e. area value can also be characterized by the number of corresponding pixel, if for example with reference to readable mark Note is the rectangle being made up of 5*4 pixel, then this is 20 pixels with reference to the area value of raadable mark, additionally, with reference to readable mark The unit of the area value of note can also be the number of pixel square, if being by 5*4 pixel structure for example with reference to raadable mark Into rectangle, then this with reference to raadable mark area value be 5 pixels *, 4 pixels.The same logic, the area of raadable mark The unit of value except can be square measure, can also be the number of pixel or the number of pixel square.
What deserves to be explained is, when being embodied as, whether can be pre-configured with coding unit comprising referring to raadable mark, with Distinguish comprising the coding unit with reference to raadable mark and not comprising the coding unit with reference to raadable mark.
As more specific embodiment, as shown in figure 8, the coding unit 801 illustrated in Fig. 8 figure 6 illustrates Addition in coding unit 601 is generated with reference to raadable mark 80, and the coding unit 802 illustrated in Fig. 8 is the volume that figure 6 illustrates Addition in code unit 602 is generated with reference to raadable mark 80, and the coding unit 803 illustrated in Fig. 8 is the coding that figure 6 illustrates Addition in unit 603 is generated with reference to raadable mark 80, and the coding unit 804 illustrated in Fig. 8 is the coding list that figure 6 illustrates Addition in unit 604 is generated with reference to raadable mark 80, and the addition in each coding unit will be encoded with reference to after raadable mark 80 Unit is presented on body surface.Wherein, the area value with reference to raadable mark 80 is two raadable mark area values in coding unit Mean value.
In yet another embodiment, it is not on a surface of an referring now to raadable mark.By obtaining multiple raadable marks Area value, and further calculate the centre plane product value of multiple raadable marks determining the numerical value that raadable mark is identified, for example:Greatly The numerical value identified in the raadable mark of centre plane product value is 1, and the numerical value identified less than the raadable mark of centre plane product value is 0. In one embodiment, by obtaining the area value of raadable mark the numerical value that raadable mark is identified directly is determined.
It should be noted that when being embodied as, multiple coding units are presented on before body surface in step 402, With the reference position point of coding unit as pivot rotation process is carried out to coding unit the step of and add in coding unit Plus with reference to the step of raadable mark, can perform simultaneously, it is also possible to perform one of which.
As more specific embodiment, as shown in figure 9, the coding unit 901 illustrated in Fig. 9 figure 6 illustrates Addition in coding unit 601 is generated with reference to raadable mark, and the coding unit 902 illustrated in Fig. 9 is the coding that figure 6 illustrates Addition in unit 602 refers to raadable mark, and rotate counterclockwise 45 ° of generations, the coding unit 903 illustrated in Fig. 9 be Add in the coding unit 603 illustrated in Fig. 6 and refer to raadable mark, and 90 ° of generations of rotate counterclockwise, illustrate in Fig. 9 Coding unit 904 is that addition refers to raadable mark, and 135 ° of lifes of rotate counterclockwise in the coding unit 604 that figure 6 illustrates Into, after processing coding unit, coding unit is presented on into body surface.
Preferably, in order to reduce body surface print coding pattern before and after diversity factor, can also be by the ash of coding pattern Angle value is set as being closer to the gray value of body surface, but needs to ensure the ash of the gray value with body surface of raadable mark Angle value 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 the gray value of raadable mark and the body surface is less than first Default gray threshold and more than the second default gray threshold, wherein, the first default gray threshold can freely set, and second presets Gray threshold can set according to the accuracy of identification of identification raadable mark equipment, for example:First default gray threshold is 50, second Default gray threshold is 20.Used as more specific embodiment, the gray value of body surface is 150, the first default gray threshold For 50, the second default gray threshold is 20, then the gray value of raadable mark can it is interval (100,130) or (170,200) Middle selection.
The generation method of coding pattern provided in an embodiment of the present invention is illustrated above in association with Fig. 4~Fig. 9, is connect down It is illustrated come the recognition methods with reference to Figure 10 to coding pattern provided in an embodiment of the present invention.
Figure 10 is a kind of schematic flow sheet of the recognition methods 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 10, a kind of recognition methods of coding pattern provided in an embodiment of the present invention comprises the steps:
Step 1001, 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 1002, determines the coding unit in coding pattern, and can according to one or more included in coding unit The area value of read flag determines the encoded radio that coding unit is identified.
In this step, in the target image for collecting, the coding unit in coding pattern is determined, according in coding unit Comprising raadable mark area value determine raadable mark identify numerical value, then according to included in coding unit or many The numerical value of the mark of individual raadable mark, determines the encoded radio that coding unit is identified.
The embodiment of the present invention, when carrying out position encoded on a surface of an, is encoded using the area value of raadable mark, When the numerical information that coding pattern is represented is parsed, the face of one or more raadable marks by including in recognition coding unit Product value, according to the area value of one or more raadable marks included in coding unit the numerical value of raadable mark mark is parsed, and is entered And the encoded radio of coding unit mark is separated out according to the numerical solution of raadable mark mark, the area value of raadable mark need to be only recognized, Grid position need not be calculated, without the angle calculated between raadable mark, identification is simple, and accuracy of identification is high, and amount of calculation is little, fortune Scanning frequency degree is fast.
Preferably, for the convenient quick coding unit determined in coding pattern, coding pattern can first be determined In reference line, the orientation of coding unit in reference line identification code pattern, for example:Horizontal dotted line in Fig. 5-Fig. 9 can To be referred to as horizontal reference line, the vertical dotted line in Fig. 5-Fig. 9 is properly termed as vertical reference line, determines the reference line in coding pattern Afterwards, when determining coding unit in coding pattern, you can after one or more coding units are determined in coding pattern, Determine next coding unit along the direction of reference line.
Certainly, the reference line in coding pattern is in addition to it can be used for determining coding unit easily and fast, can be with For shoot target image in coding pattern it is inclined in the case of, for carrying out rotation processing to target image, with improve The accuracy rate and efficiency of coding unit identification, specifically:
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 value, 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 first object coding units are determined in coding pattern, and connects the ginseng of two first object coding units Examine location point and generate reference line.
When being embodied as, in order to improve the accuracy of the reference line of determination, in two first object coding units of connection Reference position point is generated before reference line, whether can also judge the distance between two first object coding units determining Meet the first preset standard, if it is determined that result is yes, then the reference position point for connecting two first object coding units generates ginseng Line is examined, if it is determined that result is no, then two first object coding units is redefined, continues judge to redefine two first Whether the distance between target code unit meets the first preset standard, until the two first object coding units determined it Between distance meet the first preset standard, the reference position point for connecting two first object coding units generates reference line.
First preset standard can be n (n is natural number) times of distance between predefined two coding units, namely sentence The distance between disconnected two first object coding units whether be equal to distance between predefined two coding units n (n be from So count) times, certainly, when being embodied as, there can be certain error range.Wherein, between predefined two coding units Distance, 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 volumes Code unit distance between any two, and using all coding units between any two apart from minimum of a value as predefined two codings The distance between unit.
More preferably, calculate between two first object coding units apart from when, calculate two first objects and compile Air line distance between the reference position point of code unit, certainly, in other embodiments of the present invention, it is also possible to calculate two first Air line distance in target code unit at same position between 2 points, as long as can determine that between two first object coding units Distance;It should be noted that in part rotating encoding unit in the case of rotation, or different coding units In the case that the angle of rotation is inconsistent, pivot be reference position point when, can by reference between location point away from From carrying out the distance between presentation code unit.
Used as more particular embodiment, if including a raadable mark in coding unit, a raadable mark is one Individual coding unit, it is determined that the reference line in coding pattern, including:Two raadable marks are selected in coding pattern, institute is judged Whether the distance between two raadable marks for selecting meet the first preset standard, if it is determined that result is yes, then connect selected Two raadable marks reference position point generate reference line.
As another more particular embodiment, if readable comprising multiple (including two and two or more) in coding unit Mark, and coding unit is without rotation processing, because coding pattern is without rotation processing, with a line or same row coding Raadable mark in unit (namely direction of reference line) arrangement in the same direction, accordingly, it is determined that the reference in coding pattern Line, including:Determine a second target code unit in coding pattern, and connect in the second target code unit two can The predeterminated position point of read flag generates reference line, and the predeterminated position point of two raadable marks can be readable positioned at two respectively At the same position of mark;More preferably, the geometric center for connecting two raadable marks in the second target code unit is generated Reference line.
Wherein, when the predeterminated position point of two raadable marks in connecting the second target code unit generates reference line, Two raadable marks can be any two in multiple raadable marks included by coding unit, be not specifically limited herein.And And, it should be appreciated that the first object coding unit being previously mentioned in the embodiment of the present invention and the second target code unit, be The coding unit determined in coding pattern, and the title of first object coding unit and the second target code unit, only use The coding unit determined in two kinds of embodiments of differentiation.
When being embodied as, situation as shown in Figure 6, in coding unit include two raadable marks, and coding unit without Cross rotation processing, it is determined that during reference line in coding pattern, it is only necessary to determine a coding unit, then connection is determined The predeterminated position point of two raadable marks generates reference line in coding unit, more preferably, in order that coding unit is several On reference line, when reference line is generated, the geometric center that can connect two raadable marks generates reference line at what center.
Certainly, when including multiple raadable marks in coding unit, as long as coding unit is without rotation processing, can be A coding unit is determined in coding pattern, then connects the default of any two raadable mark in the coding unit determined Location point generates reference line.
When being embodied as, the encoded radio that either parsing coding unit is identified, the reference line being also to determine in coding pattern, It is required to first one or more coding units be determined in coding pattern, and coding unit is determined in coding pattern, including Several situations below:
A raadable mark is included in situation one, coding unit, as shown in Figure 5, it is determined that the coding list in coding pattern Unit, including:One raadable mark is defined as into a coding unit.
N number of raadable mark is included in situation two, coding unit, as shown in Fig. 6-Fig. 9, it is determined that the coding in coding pattern Unit, including:N number of raadable mark is selected in coding pattern, in the combination of two of selected N number of raadable mark, judges pre- If whether the distance between two raadable marks meet the second preset standard in combination, if it is determined that result is yes, then will be selected N number of raadable mark be defined as a coding unit, wherein, N is the natural number more than 1.
After N number of raadable mark is selected, in the combination of two of selected N number of raadable mark, in judging default combination Whether the distance between two raadable marks meet the second preset standard, and when being embodied as, default combination can freely set, and Second preset standard can be according to the different and different of default combination, such as:Default combination can be all N number of raadable marks Combination of two, the second preset standard can be that (n is no more than N-1 equal to the n of distance between predefined two raadable marks Natural number) times, in judging selected N number of raadable mark, it is predefined whether the distance between each two raadable mark is equal to Two raadable marks between n (n be no more than the natural number of N-1) times of distance (can have certain error when being embodied as Scope), if so, then selected N number of raadable mark is defined as into a coding unit;Again for example:It is default be combined as it is N number of readable Part combination in mark combination of two, the default combination for being combined as two maximum raadable marks of distance, and it is two neighboring The combination of raadable mark, and the second preset standard can be equal to predefined two for the distance between two neighboring raadable mark Distance between raadable mark, and the distance between two maximum raadable marks of distance be equal to predefined two raadable marks it Between N-1 times of distance.Wherein, the distance between predefined two raadable marks, can be that coding unit is presented on into object During surface, an absolute growth value of setting, it is also possible to all raadable marks distance between any two in searched targets image, and Using all raadable marks minimum of a value between any two in searched targets image as between predefined two raadable marks away from From.
Wherein, more preferably, the distance between two raadable marks are the air line distance between two raadable marks, can Be 2 points at the air line distance, or two raadable mark same positions between two raadable mark geometric centers between Air line distance.
As more specific embodiment, in coding unit include two raadable marks, as shown in Figure 6 and Figure 7, it is determined that During coding unit in coding pattern, optional two raadable marks in coding pattern, it is preferable that select adjacent two readable Mark, then judge air line distance between selected two raadable marks whether be equal to predefined two raadable marks it Between distance, if it is determined that result is yes, then selected two raadable marks are defined as into a coding unit, if it is determined that result It is no, then selected two raadable marks are not the raadable marks in a coding unit.
As another more specific embodiment, three raadable marks are included in coding unit, as shown in Figure 8 and Figure 9, When determining the coding unit in coding pattern, optional three raadable marks in coding pattern, it is preferable that select adjacent three Raadable mark, then in selected three raadable marks, judges whether is air line distance between two neighboring raadable mark Equal to the air line distance between the distance between predefined two raadable marks, and two maximum raadable marks of judging distance Whether 2 times of predefined two raadable mark between distance are equal to, if it is determined that be as a result be, then can by selected three Read flag is defined as a coding unit, if it is determined that result is no, then selected three raadable marks are not that a coding is single Raadable mark in unit.
In step 1002, coding unit is determined according to the area value of one or more raadable marks included in coding unit The encoded radio of mark, can be divided into situations below, specifically:
Situation one, coding unit includes a raadable mark, then readable according to one or more included in coding unit The area value of mark determines the encoded radio that coding unit is identified, including:Determined according to the area value of a raadable mark readable The numerical value of mark mark, and the encoded radio that the numerical value of a raadable mark mark is identified as coding unit.
Situation two, coding unit includes multiple raadable marks, then readable according to one or more included in coding unit The area value of mark determines the encoded radio that coding unit is identified, including:Determine that each can according to the area value of each raadable mark The numerical value of read flag mark, and according to multiple raadable marks put in order and each raadable mark mark numerical value, it is determined that The encoded radio of coding unit mark.
When being embodied as, when including multiple raadable marks in coding unit, each raadable mark can be with coding unit Parse corresponding numerical value, then it is determined that coding unit mark encoded radio when, in addition it is also necessary to according to raadable mark in coding unit Put in order or coding unit in raadable mark combination.
As more specific embodiment, as shown in fig. 6, including two raadable marks in each coding unit, it is assumed that The numerical value of larger area value raadable mark mark is binary numeral 1, is entered for two compared with the numerical value of facet product value raadable mark mark Numerical value processed 0, when determining the encoded radio that coding unit 602 is identified, it is first determined the numerical value of raadable mark mark in coding unit 602 Respectively binary numeral 0 and binary numeral 1, it is larger due to being arranged in compared with the raadable mark of small area in coding unit 602 Before the raadable mark of area, therefore, the encoded radio of the mark of coding unit 602 is binary numeral 01, namely coding unit 602 The encoded radio of mark is 1, and by that analogy, the encoded radio of the mark of coding unit 601 is 0, and the encoded radio of the mark of coding unit 603 is 1, the encoded radio of the mark of coding unit 604 is 3.
It should be noted that when the numerical value that raadable mark is identified is determined according to the area value of raadable mark, needs can The area value of read flag is compared with preset area threshold value, and then determines the numerical value of raadable mark mark, wherein, if coding is single Comprising raadable mark is referred in unit, then preset area threshold value is the area value with reference to raadable mark, if not including in coding unit With reference to raadable mark, then preset area threshold value can be to present during coding unit, an area value of setting, for example:Default face Product threshold value is 0.01mm2, preset area threshold value can also be the average of raadable mark area value in predetermined number coding unit Value.
When being embodied as, comprising raadable mark is referred in coding unit, then determined according to the area value of raadable mark readable The numerical value of mark mark, including:For each raadable mark in coding unit in addition to reference to raadable mark, by raadable mark Area value be compared with the area value with reference to raadable mark, according to comparative result determine raadable mark identify numerical value.Example Such as:More than the area value with reference to raadable mark, the numerical value of raadable mark mark is 1 to the area value of raadable mark;Raadable mark Less than the area value with reference to raadable mark, the numerical value of raadable mark mark is 0 to area value.
Not comprising raadable mark is referred in coding unit, then determine what raadable mark was identified according to the area value of raadable mark Numerical value, including:For each raadable mark in coding unit, the area value of raadable mark is compared with preset area threshold value Compared with, according to comparative result determine raadable mark identify numerical value.For example:The area value of raadable mark is more than preset area threshold value, The numerical value of raadable mark mark is 1;The area value of raadable mark is less than preset area threshold value, and the numerical value of raadable mark mark is 0.
During specific implementation step 1002, one or two coding unit can be first determined, according to one or two determined Individual coding unit, determines the reference line in coding pattern, then based on one or two coding unit determined, along ginseng Line direction discernment other coding units are examined, while parsing the encoded radio of each coding unit mark.In parsing coding pattern During the encoded radio of coding unit mark, can be parsed in the way of progressively or column by column, one is determined in coding pattern After the reference line of row or a row, when subsequently recognizing other rows or the coding unit on other row, can calculate first A side-play amount is added on the basis of the horizontal or vertical coordinate value of the reference line for going out, the reference of other rows or other row is obtained The approximate location of line, thus, it is possible to the coding unit of other rows or other row in quick recognition coding pattern.Wherein, exist It is determined that often after the reference line of row or each column, when parsing the encoded radio of coding unit mark in the row or the row, recognizing first Go out the row or first coding unit of the row, the encoded radio of coding unit mark is parsed, then along reference line direction discernment Next coding unit, and the encoded radio of next coding unit mark is parsed, by that analogy, until parsing the row or being somebody's turn to do Till the encoded radio of last coding unit mark of row.
Example devices
After the method for describing exemplary embodiment of the invention, next, describing this with reference to Figure 11~Figure 12 The generating means and identifying device of the coding pattern of bright illustrative embodiments.
Figure 11 is a kind of structural representation of the generating means 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, for obtaining the coding unit for parsing the coordinate information of body surface position;
Module 1102 is presented, for multiple coding units to be presented on into body surface, coding pattern is formed;
Wherein, coding unit includes one or more raadable marks, and the area value of raadable mark is used to parse accordingly Numerical value.
In some embodiments of the present embodiment, optionally, the generating means of the coding pattern also include:
First processing module 1103, revolves as pivot for the reference position point with coding unit to coding unit Turn operation;
Module 1102 is then presented, specifically for:Body surface will be presented on through the coding unit of rotation.
In some embodiments of the present embodiment, optionally, the generating means of the coding pattern also include:
Second processing module 1104, for the addition in coding unit raadable mark is referred to, and is used for reference to raadable mark true Determine the numerical value of the raadable mark mark that coding unit is included;
Module 1102 is then presented, specifically for:Body surface will be presented on comprising the coding unit with reference to raadable mark.
Preferably, the area value of the reference raadable mark that Second processing module 1104 is added in coding unit is default face Product value or predetermined number coding unit include the centre plane product value of all raadable marks.
Preferably, the raadable mark of the presentation of module 1102 is presented including any one or more in following figure:Point, line Section, circle, rectangle, triangle and polygon.
Preferably, the difference of the gray value of the gray value and body surface of the raadable mark that presentation module 1102 is presented is absolute Value is less than the first default gray threshold and more than the second default gray threshold.
Preferably, module 1102 is presented, is additionally operable to:In the case where coding unit includes multiple raadable marks, pass through The combination of multiple raadable marks carrys out the encoded radio of identification code unit.
Figure 12 is a kind of structural representation of the identifying device of coding pattern provided in an embodiment of the present invention, such as Figure 12 institutes Show, can include such as lower module:
Acquisition module 1201, the target image of the body surface of coding pattern is presented for collection;
Parsing module 1202, for determining coding pattern in coding unit, and according to included in coding unit Or the area value of multiple raadable marks determines the encoded radio that coding unit is identified.
In some embodiments of the present embodiment, optionally, the identifying device of the coding pattern also includes:
Reference line determining module 1203, for determining coding pattern in reference line;
Then parsing module 1202 determines the coding unit in coding pattern, specifically for:
After one or more coding units are determined in coding pattern, along the direction of reference line next coding is determined Unit.
In some embodiments of the present embodiment, optionally, the identifying device of the coding pattern also includes:
Image processing module 1204, 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 1202 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 1203, specifically for:Two first object codings are determined in coding pattern Unit, and connect the reference position point generation reference line of two first object coding units;Or
In coding unit comprising multiple raadable marks and coding unit without rotation processing in the case of, in code pattern A second target code unit is determined in case, and connects the predeterminated position of two raadable marks in the second target code unit Point generates reference line.
Preferably, reference line determining module 1203, including:
Judging unit 12031, for judging whether the distance between two first object coding units determined meet First preset standard;
Determining unit 12032, for judging the distance symbol between two first object coding units in judging unit 12031 Under conditions of closing the first preset standard, the reference position point for connecting two first object coding units generates reference line.
Preferably, parsing module 1202 determines the coding unit in coding pattern, specifically for:
A raadable mark is included in coding unit, then a raadable mark is defined as into a coding unit;Or
N number of raadable mark is included in coding unit, N number of raadable mark is selected in coding pattern, selected N number of readable In the combination of two of mark, judge in default combination whether the distance between two raadable marks meet the second preset standard, if Result of determination is yes, then selected N number of raadable mark is defined as into a coding unit, wherein, N is the natural number more than 1.
Preferably, parsing module 1202 determines according to the area value of one or more raadable marks included in coding unit The encoded radio of coding unit mark, specifically for:
Coding unit includes a raadable mark, then determine that raadable mark is identified according to the area value of a raadable mark Numerical value, and the encoded radio that the numerical value of raadable mark mark is identified as coding unit;Or
Coding unit includes multiple raadable marks, and according to the area value of each raadable mark each raadable mark mark is determined Numerical value, and according to multiple raadable marks put in order and each raadable mark mark numerical value, determine coding unit mark The encoded radio of knowledge.
Preferably, parsing module 1202 determines the numerical value that raadable mark is identified according to the area value of raadable mark, concrete to use In:
Comprising raadable mark is referred in coding unit, then can for each in coding unit in addition to reference to raadable mark Read flag, the area value of raadable mark is compared with the area value with reference to raadable mark, is determined according to comparative result readable The numerical value of mark mark;Or
Not comprising raadable mark is referred in coding unit, then for each raadable mark in coding unit, by readable mark The area value of note is compared with preset area threshold value, and according to comparative result the numerical value that raadable mark is identified is determined.
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 cell.Wherein, the memory cell 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 one or many Individual raadable mark, and the area value of raadable mark be used for parse corresponding numerical 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 cell 1302nd, the bus 1303 of different system component (including processing unit 1301 and memory cell 1302) is connected.
Bus 1303 represents one or more in a few class bus structures, including memory bus or memory control Device, peripheral bus, processor or using various bus structures in any bus-structured local bus.
Memory cell 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 storage (ROM) 13023.
Memory cell 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 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 cell.Wherein, the memory cell 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 methods of the coding pattern according to various illustrative embodiments of the invention stated.For example, it is described to process single Unit can perform step 1001 as shown in Figure 10, and collection presents the target image of the body surface of coding pattern;Step 1002, determine the coding unit in coding pattern, and according to the area of one or more raadable marks included in coding unit Value determines the encoded radio of coding unit mark.
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 cell 1402nd, the bus 1403 of different system component (including processing unit 1401 and memory cell 1402) is connected.
Bus 1403 represents one or more in a few class bus structures, including memory bus or memory control Device, peripheral bus, processor or using various bus structures in any bus-structured local bus.
Memory cell 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 storage (ROM) 14023.
Memory cell 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 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 one or more readable marks Remember, and the area value of raadable mark is used to parse corresponding numerical value.
Said procedure product can adopt any combination 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 semiconductor, 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 storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 15, the program product 150 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.
Program for performing present invention operation can be write with any combination of one or more programming language Code, described program design language includes object oriented program language-Java, C++ etc., also including conventional mistake Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user Perform on equipment, partly perform on a user device, perform as an independent software kit, partly in user's computing device Upper part performs on a remote computing or performs in remote computing device or server completely.It is being related to long-range meter In the situation of calculation equipment, remote computing device can be by the network of any kind --- including LAN (LAN) or wide area network (WAN)-user's computing device is connected to, or, it may be connected to external computing device is (such as using ISP Come by Internet connection).
In other possible embodiments, the various aspects of the recognition methods 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 methods of the coding pattern of the various illustrative embodiments of the present invention, for example, the computer equipment can be with Step 1001 as shown in Figure 10 is performed, collection presents the target image of the body surface of coding pattern;Step 1002, really Determine the coding unit in coding pattern, and volume is determined according to the area value of one or more raadable marks included in coding unit The encoded radio of code unit marks.
Said procedure product can adopt any combination 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 semiconductor, 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 storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 16, the program product 160 for coding pattern identification 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.
Program for performing present invention operation can be write with any combination of one or more programming language Code, described program design language includes object oriented program language-Java, C++ etc., also including conventional mistake Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user Perform on equipment, partly perform on a user device, perform as an independent software kit, partly in user's computing device Upper part performs on a remote computing or performs in remote computing device or server completely.It is being related to long-range meter In the situation of calculation equipment, remote computing device can be by the network of any kind --- including LAN (LAN) or wide area network (WAN)-user's computing device is connected to, or, it may be connected to external computing device is (such as using ISP Come 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 (17)

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 one or more raadable marks, and the area value of the raadable mark is used to parse Corresponding numerical value.
2. method according to claim 1, further includes:
Rotation process is carried out to coding unit by pivot of the reference position point of the coding unit;
It is then described that the coding unit is presented on into the body surface, including:
The body surface will be presented on through the coding unit of rotation.
3. method according to claim 1, further includes:
The addition in the coding unit refers to raadable mark, and the reference raadable mark is used to determine what coding unit was included The numerical value of raadable mark mark;
It is then described that the coding unit is presented on into the body surface, including:
Coding unit comprising the reference raadable mark is presented on into the body surface.
4. method according to claim 3, wherein, the area value of the reference raadable mark is preset area value or pre- If quantity coding unit includes the centre plane product value of all raadable marks.
5. the method according to any one of claim 1-4, wherein, the raadable mark includes any in following figure One or more:Point, line segment, circle, rectangle, triangle and polygon.
6. the method according to any one of claim 1-4, wherein, the gray value of the raadable mark and the object table The absolute value of the difference of the gray value in face is less than the first default gray threshold and more than the second default gray threshold.
7. the method according to any one of claim 1-4, further includes:
In the case where coding unit includes multiple raadable marks, by the combination of multiple raadable marks come identification code unit Encoded radio.
8. a kind of recognition methods of coding pattern, including:
Collection presents the target image of the body surface of coding pattern;
Determine the coding unit in the coding pattern, and according to one or more raadable marks included in the coding unit Area value determine the encoded radio of coding unit mark.
9. method according to claim 8, further includes:
Determine the reference line in the coding pattern;
Then determine the coding unit in the coding pattern, including:
After one or more coding units are determined in the coding pattern, determine along the direction of the reference line next Coding unit.
10. method according to claim 9, 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.
11. methods according to claim 9, wherein,
The reference line determined in the coding pattern, including:Determine that two first objects are compiled in the coding pattern Code unit, and connect the reference position point generation reference line of two first object coding units;Or
Multiple raadable marks are included in the coding unit and the coding unit is without rotation processing, then described in the determination Reference line in coding pattern, including:Determine a second target code unit in the coding pattern, and connect second The predeterminated position point of two raadable marks generates the reference line in target code unit.
12. methods according to claim 11, wherein, the reference position point of two first object coding units of the connection The reference line is generated, including:
Whether the distance between two first object coding units that judgement is determined meet first preset standard;
Under conditions of judging that the distance between two first object coding units meets first preset standard, connect two The reference position point of first object coding unit generates the reference line.
13. methods according to any one of claim 8-12, wherein,
A raadable mark is included in the coding unit, then the coding unit determined in the coding pattern, including:Will One raadable mark is defined as a coding unit;Or
N number of raadable mark is included in the coding unit, then the coding unit determined in the coding pattern, including: N number of raadable mark is selected in the coding pattern, in the combination of two of selected N number of raadable mark, in judging default combination Whether the distance between two raadable marks meet the second preset standard, if it is determined that result is yes, then will be selected N number of readable Mark is defined as a coding unit, wherein, N is the natural number more than 1.
14. methods according to any one of claim 8-12, wherein,
The coding unit includes a raadable mark, then described readable according to one or more included in the coding unit The area value of mark determines the encoded radio of the coding unit mark, including:Determined according to the area value of a raadable mark The numerical value of raadable mark mark, and the encoded radio that the numerical value of a raadable mark mark is identified as the coding unit; Or
The coding unit includes multiple raadable marks, then described readable according to one or more included in the coding unit The area value of mark determines the encoded radio of the coding unit mark, including:Determined according to the area value of each raadable mark every The numerical value of individual raadable mark mark, and according to multiple raadable marks put in order and each raadable mark mark numerical value, Determine the encoded radio of the coding unit mark.
15. methods according to claim 14, wherein,
Comprising raadable mark is referred in the coding unit, then the number that raadable mark is identified is determined according to the area value of raadable mark Value, including:For each raadable mark in coding unit in addition to the reference raadable mark, by the area value of raadable mark It is compared with the area value of the reference raadable mark, the numerical value that raadable mark is identified is determined according to comparative result;Or
Not comprising raadable mark is referred in the coding unit, then determine what raadable mark was identified according to the area value of raadable mark Numerical value, including:For each raadable mark in coding unit, the area value of raadable mark is compared with preset area threshold value Compared with, according to comparative result determine raadable mark identify numerical value.
A kind of 16. 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 one or more raadable marks, and the area value of the raadable mark is used to parse Corresponding numerical value.
A kind of 17. identifying devices of coding pattern, including:
Acquisition module, the target image of the body surface of coding pattern is presented for collection;
Parsing module, for determining the coding pattern in coding unit, and according to included in the coding unit Or the area value of multiple raadable marks determines the encoded radio of the coding unit mark.
CN201610906405.0A 2016-10-18 2016-10-18 A kind of generation of coding pattern, recognition methods and device Active CN106570547B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=58533588

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN106570547B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220689A (en) * 2017-05-27 2017-09-29 网易(杭州)网络有限公司 Position encoded method for generating pattern, device, equipment and readable storage medium storing program for executing
CN110263895A (en) * 2019-06-25 2019-09-20 北京慧眼智行科技有限公司 A kind of yard of drawing generating method and system
CN111066034A (en) * 2017-09-26 2020-04-24 沙特阿拉伯石油公司 System and method for coding a pipe weld

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120205454A1 (en) * 2005-12-16 2012-08-16 Overtouch Remote L.L.C. Method and system for creating and using barcodes
CN104217444A (en) * 2013-06-03 2014-12-17 支付宝(中国)网络技术有限公司 Card area positioning method and equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120205454A1 (en) * 2005-12-16 2012-08-16 Overtouch Remote L.L.C. Method and system for creating and using barcodes
CN104217444A (en) * 2013-06-03 2014-12-17 支付宝(中国)网络技术有限公司 Card area positioning method and equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220689A (en) * 2017-05-27 2017-09-29 网易(杭州)网络有限公司 Position encoded method for generating pattern, device, equipment and readable storage medium storing program for executing
CN107220689B (en) * 2017-05-27 2020-03-31 网易(杭州)网络有限公司 Position coding pattern generation method, device, equipment and readable storage medium
CN111066034A (en) * 2017-09-26 2020-04-24 沙特阿拉伯石油公司 System and method for coding a pipe weld
CN110263895A (en) * 2019-06-25 2019-09-20 北京慧眼智行科技有限公司 A kind of yard of drawing generating method and system
CN110263895B (en) * 2019-06-25 2023-02-17 北京慧眼智行科技有限公司 Code graph generation method and system

Also Published As

Publication number Publication date
CN106570547B (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN106529635B (en) A kind of generation of coding pattern, recognition methods and device
CN106570549A (en) Coding pattern generation and identification methods and coding pattern generation and identification devices
AU2006252025B2 (en) Recognition of parameterised shapes from document images
Harouni et al. Online Persian/Arabic script classification without contextual information
CN114641753A (en) Composite data generation and Building Information Model (BIM) element extraction from floor plan drawings using machine learning
CN100535928C (en) System and method for detecting a hand-drawn object in electronic ink input
CN112016638B (en) Method, device and equipment for identifying steel bar cluster and storage medium
CN111832449A (en) Engineering drawing display method and related device
CN110765891B (en) Engineering drawing identification method, electronic equipment and related product
CN106570547A (en) Code pattern generation method, encoding pattern recognition method and devices
CN106570546A (en) Method and device for generating coding pattern and method and device for recognizing coding pattern
CN112001383A (en) Water meter code intelligent identification method based on convolutional neural network technology
CN113343958B (en) Text recognition method, device, equipment and medium
CN109583367A (en) Image text row detection method and device, storage medium and electronic equipment
CN112119397A (en) Classification of pipe and meter flow chart information using machine learning
CN113887337A (en) Seal identification method and system with bent text and storage medium
CN106548499A (en) A kind of generation of coding pattern, recognition methodss and device
CN114240981A (en) Mark identification method and device
CN115147904A (en) Face recognition method, face recognition device, face recognition processing equipment and storage medium
WO2024055864A1 (en) Training method and apparatus for implementing ia classification model using rpa and ai
CN104850820B (en) A kind of recognition algorithms and device
CN115273177A (en) Method, device and equipment for recognizing face types of heterogeneous faces and storage medium
CN109934185A (en) Data processing method and device, medium and calculating equipment
CN113808192B (en) House pattern generation method, device, equipment and storage medium
CN112395834B (en) Brain graph generation method, device and equipment based on picture input and storage medium

Legal Events

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