Summary of the invention
The object of the present invention is to provide a kind of substrates based on dot matrix coding, will positioning by the first label and the second label
Unit and information unit are quickly distinguished, and encoding identification device is enable to obtain location information according to positioning unit, according to letter
Interest statement member obtains corresponding content information, and recognition speed is fast, and positioning unit occupied area is smaller in substrate, improves substrate
Information ratio value.
To achieve the above object, in a first aspect, the present invention provides a kind of substrates based on dot matrix coding, comprising:
The substrate has coding pattern, and the coding pattern includes multiple coding regions by default arrangement;The volume
Code region includes localization region and information area;
The localization region includes multiple positioning units, and the positioning unit is by multiple first dummy units according to default row
Column composition, each positioning unit are equipped with one first label, and described the first of different coding region marks described in place
First dummy unit is different, to indicate the location information of the coding region;
The information area includes multiple information units, described to indicate the encoded content information of the coding region
Information unit is rearranged by multiple second dummy units according to default, and each information unit includes at least one second mark
Note, second label are set in second dummy unit, and second dummy unit is second marker number
Integral multiple.
Preferably, the localization region is arranged along the boundary of the information area.
Preferably, first label is different from second label, described first be labeled as hollow circle, it is square or
Triangle, described second is labeled as solid circles, square or triangle.
Second aspect, the embodiment of the invention provides a kind of data processing method, the data processing method includes:
Obtain the coding pattern in substrate;
Parsing identification is carried out to the coding pattern, identification obtains multiple first labels and the second label;
It determines the positioning unit where first label, the positioning unit is spliced according to preset rules, is obtained
To localization region;
The coding pattern is divided according to the localization region, obtains multiple coding regions;
The location information of the coding region is determined according to multiple positioning units of the localization region;
Extract multiple information units in each coding region;
It determines the second label in each information unit, and determines second label in the second dummy unit
Position and quantity;
The content letter of the coding region is measured according to position sum number of second label in the second dummy unit
Breath;
The location information and content information of multiple coding regions are spliced, the coding letter of the substrate is obtained
Breath.
Preferably, multiple positioning units according to the localization region determine the location information tool of the coding region
Body are as follows:
First dummy unit where determining first label;
The value information of first label is determined according to first dummy unit of place;
The location information of the coding region is obtained according to the value information of the first of multiple positioning units the label.
Preferably, the multiple information units extracted in each coding region specifically:
Information area is determined according to the coding region and localization region;
According to the information unit in the arrangement mode of the information area, the information area is divided into multiple information
Unit.
Preferably, described that the code area is measured according to position sum number of second label in the second dummy unit
The content information in domain specifically:
Position and quantity in the second dummy unit is marked to determine the described second value information marked according to described second;
The content information of the corresponding coding region is obtained according to the value information of multiple second labels of information unit
Substrate provided in an embodiment of the present invention based on dot matrix coding is marked by the first label and second by positioning unit
It is quickly distinguished with information unit, encoding identification device is enable to obtain location information according to positioning unit, according to information list
Member obtains corresponding content information, and recognition speed is fast, and positioning unit occupied area is smaller in substrate, improves the information of substrate
Rate value.
Specific embodiment
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Fig. 1 is the schematic diagram of the substrate provided in an embodiment of the present invention based on dot matrix coding, as shown in Figure 1, substrate has
Coding pattern, coding pattern includes multiple coding regions 1 by default arrangement, specifically, each coding region 1 is N × N's
Grid structure is arranged in ranks, and wherein N is the integer greater than 4.
Coding region 1 specifically includes localization region 11 and information area 12, and the effect of localization region 11 is each volume of lattice
The location information of coding region 1 where code region 1 and mark, the effect of information area 12 are coding regions 1 where mark
The information content.
In order to enable encoding identification device quick demarcation of location region and information area 12, position when identifying coding
The first label 110 set in region is indicated from the second label 120 in information area 12 using different patterns, such as first
Label 110 is using hollow circle, square or triangle, and the second label 120 is using solid circle, square or triangle
Shape.
The positional relationship of localization region 11 and information area 12 can there are many set-up modes, in a specific example
In, information area 12 can use the grid structure of M × M, and wherein M is the integer greater than 1, and localization region 11 is along information area 12
Boundary setting, one is information area 12 is all surrounded, one is 12 part of information area is surrounded, it is specific such as Fig. 2 and
Shown in Fig. 3, the full setting advantage surrounded and partially surrounded is to go out code area by the acquisition Fast Segmentation to the first label 110
Domain 1.
In another specific example, in order to improve the information ratio value of coding region 1, expressed more on limited area
More content informations, in conjunction with shown in Fig. 1 and Fig. 4, each coding region 1 is the grid structure of N*N, and the band of position is set
Four apexes in coding region 1 are set, can recognize by four the first labels 110 and be partitioned into corresponding coding region 1,
To increase the area of information area 12, the information ratio value of coding region 1 is improved.
Lower mask body introduces the structure of localization region 11 and information area 12.
Specifically, localization region 11 includes multiple positioning units 111, and positioning unit 111 is by more in conjunction with shown in Fig. 4 and Fig. 5
A first dummy unit 1110 is rearranged according to default, and positioning unit 111 is preferably by a2A first dummy unit 1110 forms,
Wherein a is the integer greater than 1, and each positioning unit 111 is equipped with first label 110, as shown in figure 5, positioning unit 111
It is made of 4 the first dummy units 1110, the first label 110 can be there are four optional position, thus table in positioning unit 111
Show 4 different value informations, Fig. 5 is the structural schematic diagram of positioning unit provided in an embodiment of the present invention, as shown in figure 5, Fig. 5 A-
Fig. 5 D respectively indicates the first label 110 four the first dummy units of difference 1110 the case where, the value information of expression is respectively 00,
01,10,11.For coding region 1 shown in Fig. 4, encoding identification device identifies the first label 110 in each positioning unit 111
First dummy unit 1110 at place, obtains value information corresponding to each first label 110, then by four the first dummy units
1110 value information is spliced, thus the location information of coding region 1 where obtaining, shown in location information include but not
It is limited to position coordinates, the position coordinates of the coding region 1 of different location are different.
In conjunction with shown in Fig. 4 and Fig. 6, information area 12 includes multiple information units 121, the volume to presentation code region 1
Digital content information, information unit 121 are rearranged by multiple second dummy units 1210 according to default, each information unit 121
It is preferred that being made of 2b the second dummy units 1210, wherein b is the integer greater than 1, and each information unit 121 includes at least one
Second label 120, the second label 120 are set in the second dummy unit 1210, and the second dummy unit 1210 is the second label 120
The integral multiple of quantity can increase arrangement mode of second label 120 in the information unit 121 in this way, to indicate more
More content informations, and since the second dummy unit 1210 is the integral multiple of 120 quantity of the second label, it can guarantee
Dispersed distribution of two labels 120 in information unit 121 facilitates encoding identification device virtual to where the second label 120 second
Unit 1210 is identified.It recombines shown in Fig. 4 and Fig. 6, information area 12 is made of 12 information units 121, Mei Gexin
Interest statement member 121 is made of 4 the second dummy units 1210,120 quantity of the second label in each information unit 121 be one or
Two, the type of information unit 121 is increased in this way, so as to express more information contents.For coding shown in Fig. 4
Region 1, encoding identification device identify the quantity of the second label 120 in each information unit 121 and the second virtual list at place
Member 1210, obtain the corresponding value information of each information unit 121, again as shown in fig. 6, Fig. 6 A- Fig. 6 J respectively indicate one or
Two the second labels 120 four the second dummy units of difference 1210 the case where, the value information of expression is respectively 0000,0001,
0010,0011,0100,0101,0111,1000,1001,1011,1100, then the value information of 12 information units 121 is carried out
Splicing, to obtain the information content of the coding region 1.
In a preferred embodiment, in order to indicated in the case where 1 size of coding region is constant more location informations and
Content information can increase the second dummy unit 1210 in 111 first dummy unit 1110 of positioning unit and information unit 121
Quantity, for example set 6 for the first dummy unit 1110 of positioning unit 111, second in information unit 121 is virtual single
The quantity of member 1210 is set as 6, and 120 quantity of the second label in each information unit 121 is 1,2 or 3, in this way may be used
To increase arrangement mode of first label 110 in the positioning unit 111, and increase by the second label 120 in the information
Arrangement mode in unit 121, to indicate more location informations and content letter in the case where 1 size of coding region is constant
Breath.
Substrate provided in an embodiment of the present invention based on dot matrix coding is marked by the first label and second by positioning unit
It is quickly distinguished with information unit, encoding identification device is enable to obtain location information according to positioning unit, according to information list
Member obtains corresponding content information, and recognition speed is fast, and positioning unit occupied area is smaller in substrate, improves the information of substrate
Rate value.
Based on the substrate based on dot matrix coding that the embodiments of the present invention provide, the present invention also provides at a kind of data
Reason method, Fig. 7 are the data processing method flow chart of the substrate provided in an embodiment of the present invention based on dot matrix coding, the method
Include:
Step 101, the coding pattern in substrate is obtained;
Wherein, substrate may be considered a kind of medium, specifically can be writing paper, blank, electronic display etc., in substrate
With coding pattern, the specific structure of coding pattern is described in detail in the above-described embodiments, herein no longer into
Row repeats.
Specifically, can be by device or equipment with coded image acquisition and processing function to the code pattern in substrate
Case is acquired acquisition.
Step 102, parsing identification is carried out to coding pattern, identification obtains multiple first labels and the second label;
Step 103, it determines the positioning unit where the first label, positioning unit is spliced according to preset rules, is obtained
To localization region;
Specifically, encoding identification device in coding pattern first label extract, obtain it is multiple first label and
Second label divides the first all label processions, so that it is determined that the positioning unit where each first label;It will determine
Bit location is spliced according to preset rules, it should be noted that the difference of regional structure is encoded according to substrate, positioning unit is pressed
Spliced according to different preset rules, than as shown in figure 4, being spelled according to four first equal labels of adjacent pre-determined distance
It connects to obtain localization region, for another example shown in Fig. 2 or Fig. 3, carry out multiple first labels according to the equal square form of side length
Splicing obtains localization region, or is spliced to obtain localization region by multiple first labels according to inverted "L" shape.
Step 104, coding pattern is divided according to localization region, obtains multiple coding regions;
Specifically, after localization region has determined, so that it may according to the relationship of localization region and coding region to coding
Pattern is split, to obtain multiple coding regions.
Step 105, the location information of coding region is determined according to multiple positioning units of localization region;
Specifically, each positioning unit to be divided into the first dummy unit of preset quantity, the is determined where the first label
One dummy unit;The value information of the first label is determined according to the first dummy unit of place;According to the first of multiple positioning units the mark
The value information of note obtains the location information of coding region.
Step 106, multiple information units in each coding region are extracted;
Specifically, obtaining information area after removing localization region in coding region after determining coding region;
According to information unit in the arrangement mode of information area, information area is divided into multiple information units, for example, working as information unit
When information area is the grid arrangement according to M × M, information area is just divided into M × M information unit.
Step 107, it determines the second label in each information unit, and determines the second label in the second dummy unit
Position and quantity;
Specifically, being split to each information unit, multiple second dummy units are obtained, and be directed to each information list
Member determines the second dummy unit where the second marker number therein and the second label.
Step 108, believed according to the content that position sum number of second label in the second dummy unit measures coding region
Breath;
Specifically, determining the value information of the second label according to the second position of the label in the second dummy unit and quantity;
The content information of corresponding coding region is obtained according to the value information of multiple second labels of information unit.
Step 109, the location information of multiple coding regions and content information are spliced, obtains the coding letter of substrate
Breath.
Specifically, content information is spliced according to location information, so that corresponding encoded information in substrate is obtained,
The encoded information can be text, picture, video, audio or chained address etc..
Data processing method provided in an embodiment of the present invention is marked by the first label and second by positioning unit and information
Unit is quickly distinguished, and encoding identification device is enable to obtain location information according to positioning unit, is obtained according to information unit
Corresponding content information, recognition speed are fast.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure
Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate
The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description.
These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.
Professional technician can use different methods to achieve the described function each specific application, but this realization
It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor
The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include
Within protection scope of the present invention.