<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ep-patent-document PUBLIC "-//EPO//EP PATENT DOCUMENT 1.5//EN" "ep-patent-document-v1-5.dtd">
<!-- This XML data has been generated under the supervision of the European Patent Office -->
<ep-patent-document id="EP13787658B1" file="EP13787658NWB1.xml" lang="en" country="EP" doc-number="2849115" kind="B1" date-publ="20200708" status="n" dtd-version="ep-patent-document-v1-5">
<SDOBI lang="en"><B000><eptags><B001EP>ATBECHDEDKESFRGBGRITLILUNLSEMCPTIESILTLVFIROMKCYALTRBGCZEEHUPLSK..HRIS..MTNORS..SM..................</B001EP><B005EP>J</B005EP><B007EP>BDM Ver 1.7.2 (20 November 2019) -  2100000/0</B007EP></eptags></B000><B100><B110>2849115</B110><B120><B121>EUROPEAN PATENT SPECIFICATION</B121></B120><B130>B1</B130><B140><date>20200708</date></B140><B190>EP</B190></B100><B200><B210>13787658.7</B210><B220><date>20130510</date></B220><B240><B241><date>20141204</date></B241><B242><date>20181001</date></B242></B240><B250>zh</B250><B251EP>en</B251EP><B260>en</B260></B200><B300><B310>201210145746</B310><B320><date>20120511</date></B320><B330><ctry>CN</ctry></B330></B300><B400><B405><date>20200708</date><bnum>202028</bnum></B405><B430><date>20150318</date><bnum>201512</bnum></B430><B450><date>20200708</date><bnum>202028</bnum></B450><B452EP><date>20200131</date></B452EP></B400><B500><B510EP><classification-ipcr sequence="1"><text>G06K   7/10        20060101AFI20151211BHEP        </text></classification-ipcr><classification-ipcr sequence="2"><text>G06K   7/14        20060101ALI20151211BHEP        </text></classification-ipcr></B510EP><B540><B541>de</B541><B542>VERFAHREN ZUR DECODIERUNG EINES ZWEIDIMENSIONALEN MATRIXCODES</B542><B541>en</B541><B542>METHOD FOR DECODING MATRIX-TYPE TWO-DIMENSIONAL CODE</B542><B541>fr</B541><B542>PROCÉDÉ DE DÉCODAGE DE CODE BIDIMENSIONNEL DU TYPE MATRICE</B542></B540><B560><B561><text>EP-A2- 1 936 535</text></B561><B561><text>WO-A1-01/26034</text></B561><B561><text>CN-A- 1 963 843</text></B561><B561><text>CN-A- 101 587 556</text></B561><B561><text>CN-A- 101 882 210</text></B561><B561><text>CN-A- 101 978 380</text></B561><B561><text>CN-A- 102 708 349</text></B561><B561><text>US-A1- 2009 184 171</text></B561><B565EP><date>20151217</date></B565EP></B560></B500><B700><B720><B721><snm>LI, Zhengfang</snm><adr><str>Room 1004, 10th Floor, GDC Building,
No.9 GaoxinMiddle 3rd Road,
High-tech Zone Middle,
Science &amp; Technology Park,
Nanshan District,</str><city>Shenzhen,
Guangdong 518000,</city><ctry>CN</ctry></adr></B721><B721><snm>CHANG, Zhiguo</snm><adr><str>Room 1004, 10th Floor, GDC Building,
No.9 GaoxinMiddle 3rd Road,
High-tech Zone Middle,
Science &amp; Technology Park,
Nanshan District,</str><city>Shenzhen,
Guangdong 518000,</city><ctry>CN</ctry></adr></B721><B721><snm>LV, Yingfeng</snm><adr><str>Room 1004, 10th Floor, GDC Building,
No.9 GaoxinMiddle 3rd Road,
High-tech Zone Middle,
Science &amp; Technology Park,
Nanshan District,</str><city>Shenzhen,
Guangdong 518000,</city><ctry>CN</ctry></adr></B721></B720><B730><B731><snm>Shenzhen MPR Technology Co., Ltd</snm><iid>101422784</iid><irf>GPM/FP7090814</irf><adr><str>Room 1004 10th Floor GDC Building 
No.9 Gaoxin Middle 3rd Road 
High-Tech Zone Middle Science&amp;Technology Park 
Nanshan District</str><city>Shenzhen, Guangdong 518000</city><ctry>CN</ctry></adr></B731></B730><B740><B741><snm>Mewburn Ellis LLP</snm><iid>101783151</iid><adr><str>Aurora Building 
Counterslip</str><city>Bristol BS1 6BX</city><ctry>GB</ctry></adr></B741></B740></B700><B800><B840><ctry>AL</ctry><ctry>AT</ctry><ctry>BE</ctry><ctry>BG</ctry><ctry>CH</ctry><ctry>CY</ctry><ctry>CZ</ctry><ctry>DE</ctry><ctry>DK</ctry><ctry>EE</ctry><ctry>ES</ctry><ctry>FI</ctry><ctry>FR</ctry><ctry>GB</ctry><ctry>GR</ctry><ctry>HR</ctry><ctry>HU</ctry><ctry>IE</ctry><ctry>IS</ctry><ctry>IT</ctry><ctry>LI</ctry><ctry>LT</ctry><ctry>LU</ctry><ctry>LV</ctry><ctry>MC</ctry><ctry>MK</ctry><ctry>MT</ctry><ctry>NL</ctry><ctry>NO</ctry><ctry>PL</ctry><ctry>PT</ctry><ctry>RO</ctry><ctry>RS</ctry><ctry>SE</ctry><ctry>SI</ctry><ctry>SK</ctry><ctry>SM</ctry><ctry>TR</ctry></B840><B860><B861><dnum><anum>CN2013075517</anum></dnum><date>20130510</date></B861><B862>zh</B862></B860><B870><B871><dnum><pnum>WO2013166995</pnum></dnum><date>20131114</date><bnum>201346</bnum></B871></B870></B800></SDOBI>
<description id="desc" lang="en"><!-- EPO <DP n="1"> -->
<heading id="h0001"><b>BACKGROUND</b></heading>
<heading id="h0002"><b>Technical Field</b></heading>
<p id="p0001" num="0001">The present application relates to two-dimensional codes, and in particular, to a decoding method for a matrix two-dimensional code.</p>
<heading id="h0003"><b>Related Art</b></heading>
<p id="p0002" num="0002">People read traditional books, newspapers, and so on mainly with eyes. Such an information acquisition manner is relatively boring, and reading for a long time causes eyestrain easily. Moreover, people who are blind or have eye disease cannot read such traditional publications. Therefore, voice reading publications appear in recent years. For example, in the China invention patent of Patent Application No. <patcit id="pcit0001" dnum="CNZL200610156879" dnum-type="L"><text>ZL200610156879.4</text></patcit> and <patcit id="pcit0002" dnum="US20090184171A1"><text>US20090184171A1</text></patcit>, both of which disclose the same invention by the present applicant, for a multimedia print reader (MPR) publication, content in a voice reading publication can be decoded by using a two-dimensional code voice reading apparatus, so that a reader can listen to video content while reading the publication, thereby improving the reading or memorizing efficiency, and making it easier for children or people having eye or ear disease to learn. For MPR two-dimensional codes, refer to the MPR publication industry standard, including part 1 (Symbology Specifications for MPR Code, Standard No. CY/T 58.1-2009), part 2 (Encoding Rules for MPR Code, Standard No.: CY/T 58.2-2009), part 3 (General Production Specifications, Standard No.: CY/T 58.3-2009), part 4 (Printing Quality Requirement and Test Method for MPR Code, Standard No.: CY/T 58.4-2009) and part 5 (Basic Management Specifications, Standard No.: CY/T 58.5-2009) for MPR publications.</p>
<p id="p0003" num="0003">A code pattern array is printed in the voice reading publication in <patcit id="pcit0003" dnum="CNZL200610156879" dnum-type="L"><text>ZL200610156879.4</text></patcit> and <patcit id="pcit0004" dnum="US20090184171A1"><text>US20090184171A1</text></patcit>. Code pattern symbols in the code pattern array are rectangular, bar code cells in the code pattern symbol are solid points arranged at equal intervals, and cells located at four corners of the code pattern symbol are positioning points to define and recognize the border. The rest cells are data points, and the area of the positioning point is<!-- EPO <DP n="2"> --> larger than the area of the data point. The code pattern symbol is arranged repeatedly on a basement and seamlessly jointed as a code pattern array. The code pattern array at least includes two same code pattern symbols, and adjacent code pattern symbols share a same positioning point; the data point cells are all included in a rectangular frame formed by connecting the centers of the adjacent positioning point cells. A decoding method of <patcit id="pcit0005" dnum="CNZL200610156879" dnum-type="L"><text>ZL200610156879.4</text></patcit> and <patcit id="pcit0006" dnum="US20090184171A"><text>US20090184171</text></patcit>Alincludes: first selecting positioning points; then performing rectangle matching on positioning point cells; after a single code pattern symbol is selected, performing data point grouping to reconstruct a data point matrix. Specifically, the decoding method includes the following steps:
<ol id="ol0001" compact="compact" ol-style="">
<li>1) reading a code pattern by using a reading device to obtain a gray code pattern image;</li>
<li>2) performing binary processing on the gray code pattern image to obtain a binary image; 3) performing data analysis on the binary image and detecting the margin of each point to obtain a margin image; 4) performing data analysis on the margin image to track closed borders in the margin image and discard all non-closed borders in the margin image to obtain a closed border image; 5) performing data analysis on the closed border image, and calculating an area within every closed border to select positioning point cells; 6) performing rectangle matching on the positioning point cells to select one single image of the code pattern symbol; 7) grouping data points in the image of the code pattern symbol; 8) reconstructing a data point matrix; and 9) restoring code words.</li>
</ol></p>
<p id="p0004" num="0004">In the decoding method of this invention, because a complete unit code pattern that at least includes four positioning points needs to be selected for rectangle matching, a relatively large code pattern area needs to be obtained. <figref idref="f0001">FIG. 1</figref> shows minimum code pattern areas that need to be obtained in a worst case in the present invention and the prior art, where the outer larger rectangle is a minimum code pattern area that needs to be obtained in the prior art, that is, 6 times the area of a unit code pattern, and the smaller rectangle in a dashed box inside the larger rectangle is a minimum code pattern area that needs to be obtained in the present invention, that is, twice the area of a unit code pattern.</p>
<p id="p0005" num="0005"><patcit id="pcit0007" dnum="EP1936535A2"><text>EP1936535A2</text></patcit> disclosed a method of decoding a first barcode and a second barcode, different from<!-- EPO <DP n="3"> --> the first barcode. The barcodes have typically been printed on a page and are derived from image scanning. The first barcode comprises a plurality of marks modulated about a first grid to redundantly encode data and the second barcode comprising a plurality of marks modulated about a second grid. The method estimates the first grid from a bitmap representation of at least a portion of the page, using modulated marks contained therein. The method determines a first barcode region from the first grid, the first barcode region being a portion of the first barcode, followed by estimating a second grid from the bitmap representation, using modulated marks contained therein. The method determines a second barcode region from the second grid, the second barcode region being a portion of the second barcode, and then decodes the first and second barcode regions using the first and second grids respectively to derive the first and second barcodes.</p>
<p id="p0006" num="0006"><patcit id="pcit0008" dnum="WO0126034A1"><text>WO0126034A1</text></patcit> disclosed a method and a device for determining a virtual raster of a code pattern consisting of a plurality of marks with associated coordinates mn. Each mark is located at a nominal position but displaced from the nominal position in one of a plurality of directions, depending upon the value of the mark. The nominal positions form raster points gn of the virtual raster, and the raster points are situated on raster lines, which intersect at a first angle. In addition there is a device for determining an initial vector VI, 2 on the basis of the coordinates m1, m2 of one or more marks, which initial vector extends approximately between a first and a second adjacent raster point g1, g2. A calculation device determines a second vector V2,3, which forms said angle with the first vector and is the same length as the first vector and extends from the second raster point g2 approximately to a third raster point g3. The mark coordinate m3 which is associated with the third raster point g3 is determined. Subsequently the actual coordinates are calculated for the third raster point on the basis of the third mark's coordinates and its value. The actual coordinates for the third raster point are stored, after which the procedure is repeated taking the second vector as the starting point.<!-- EPO <DP n="4"> --></p>
<heading id="h0004"><b>SUMMARY</b></heading>
<p id="p0007" num="0007">In order to solve inconvenience caused by the fact that a reading device has to read a relatively large code pattern area in the prior art, the present application provides a decoding method in which a reading device only needs to read a relatively small code pattern area to implement decoding.</p>
<p id="p0008" num="0008">The technical solution of the present application is a decoding method for a matrix two-dimensional code, according to claim 1, where a matrix two-dimensional code image to be decoded is a code array of jointed matrix two-dimensional code symbols, formed by multiple identical code pattern units, and area of the image is bigger than area of the unit code pattern; wherein the unit code patterns in the code array are rectangular, and code cells in the code pattern are solid points comprising positioning points located at four corners of the code pattern to define and recognize the border, and data points, i.e. code points, and the area of the positioning point is larger than the area of the code point, wherein the unit code patterns are arranged repeatedly and seamlessly jointed as the code array, and adjacent unit code patterns share a same positioning point; the decoding method comprises a decoding process as follows: obtaining a binary image of a to-be-decoded code array of jointed matrix two-dimensional code symbols, locating each code point and positioning point in a unit code pattern that the code point and the positioning point belong to, so as to restore a complete unit code pattern, and then performing decoding; an image obtained by scanning does not need to include a complete unit code pattern,<br/>
wherein, the locating each code point and positioning point in a unit code pattern that the code point and the positioning point belong to refers to assigning coordinate values to each code point and positioning point, where each code point and positioning point determined by the coordinate values have a same relative position relationship as each code point and positioning point in the image obtained by scanning;<br/>
wherein, the assigning coordinate values to each code point and positioning point includes the following steps:
<ul id="ul0001" list-style="none">
<li>separately determining directions of a row line and a column line where each code<!-- EPO <DP n="5"> --> point is located, where the directions of the row line and column line are referred as a row direction and a column direction;</li>
<li>separately determining a point spacing in the row direction and a point spacing in the column direction; and</li>
<li>calibrating row coordinates of each code point and positioning point by using the point spacing in the row direction and a projection waveform in the row direction, and calibrating column coordinates of each code point and positioning point by using the point spacing in the column direction and a projection waveform in the column direction;</li>
<li>alternatively, the assigning coordinate values to each code point and positioning point includes the following steps:
<ul id="ul0002" list-style="none">
<li>determining a row direction and a column direction in the image;</li>
<li>separately drawing a group of parallel row lines and a group of parallel column lines according to the row direction and the column direction to form a grid, and distances between the parallel row lines and between the parallel column lines are the point spacing in a column line direction and the point spacing in a row line direction in the code pattern respectively; and</li>
<li>calculating coordinates of each cross point in the grid, so as to assign coordinate values to each code point in the image;</li>
<li>wherein, the determining a row direction and a column direction includes the following steps:
<ul id="ul0003" list-style="none">
<li>A1. recognizing the binary image, so as to determine barycenters of each code point and positioning point;</li>
<li>A2. projecting the barycenter of each code point in the obtained image to any straight line L, calculating the number of projections at each projection point and an average value of the numbers of projections at all projection points, and calculating a mean square error σ0;</li>
<li>A3. rotating the obtained image by a predetermined angle θ, and calculating a mean<!-- EPO <DP n="6"> --> square error σ1 according to the method of Step A1;</li>
<li>A4. rotating the obtained image by a predetermined angle θ again and calculating a mean square error σ2 according to the method of Step A1; repeating this process until the obtained image is rotated by a total of 180°, and calculating the last mean square error σn;</li>
<li>A5. drawing a line perpendicular to L at a position which is on the line L and has a maximum number of projections falling thereon in an image state corresponding to a maximum value of the mean square errors σ0 to σn, where the drawn line is the row direction; and</li>
<li>A6. rotating the image state corresponding to the row direction by ±(90°±21°), taking a maximum value of the mean square errors within this range, and drawing a line perpendicular to the line L at a position which is on the line L and has a maximum number of projections falling thereon in an image state corresponding to the maximum value, where the drawn line is the column direction.
<br/>
Preferably, the point spacing is determined by using a method of solving a discrete signal period by means of autocorrelation, which is specifically described as follows:
</li>
<li>B1. translating each code point in the image state corresponding to the maximum value of the mean square error in Step A5 by m pixels along the row direction, and calculating an autocorrelation coefficient Z1 according to projection values of the barycenter of each code point before and after the translation; translating each code point in the obtained image by m+1 pixels, and calculating an autocorrelation coefficient Z2 according to projection values of the barycenter of each code point before and after the translation; translating each code point in the obtained image by m+2 pixels, and calculating an autocorrelation coefficient Z3 according to projection values of the barycenter of each code point before and after the translation; and continuing to translate the obtained image in this manner, until each code point in the obtained image is translated by m+n pixels, and calculating an autocorrelation coefficient Zn+1;</li>
<li>B2. taking a maximum value of Z1 to Zn+1, where a code point translation amount corresponding to the maximum value is the point spacing e in the row direction; and<!-- EPO <DP n="7"> --></li>
<li>B3. in a same way, translating each code point in the image state corresponding to the maximum value of the mean square error in Step A6 for n' times along the column direction, and calculating a maximum autocorrelation coefficient, so as to obtain the point spacing f in the column direction;</li>
</ul>
where, e and f each are the number of pixels, m≥1, m is a natural number, m+n≈e, m+n'≈f, and m+n and m+n' each are the number of pixels corresponding to a predicted point spacing.</li>
</ul></li>
</ul></p>
<p id="p0009" num="0009">Further preferably, in the image rotation, a center point of the image is used as a rotation center.</p>
<p id="p0010" num="0010">The parallel row lines and parallel column lines are determined by using the following steps:
<ul id="ul0004" list-style="none">
<li>C1. separately calculating peak values of barycenter projections of code points in a·e±P areas along the row direction, and drawing the parallel column lines according to the peak value in each area; and</li>
<li>C2. separately calculating peak values of barycenter projections of code points in a·f±P areas along the column direction, and drawing the parallel row lines according to the peak value in each area;</li>
</ul>
where, P is a natural number not greater than the smaller one of e and f, and a is a natural number.</p>
<p id="p0011" num="0011">The method for restoring a two-dimensional code is described as follows:<br/>
with a positioning point as a reference point, marking each code point according to a code structure feature of the two-dimensional code, and restoring a complete unit two-dimensional code according to the mark of each code point.</p>
<p id="p0012" num="0012">Further preferably, the method for restoring a two-dimensional code is described as follows:
<ul id="ul0005" list-style="none">
<li>with a positioning point as a reference point, marking in sequence code points at a right side or a left side of the positioning point as 0, 1, 2..., 9 cyclically; marking in sequence<!-- EPO <DP n="8"> --> code points at a left side or a right side of the positioning point as 9, 8, 7..., 0 cyclically; marking in sequence code points at an upper side or a lower side of the positioning point as 0, 1, 2... 9 cyclically; and marking in sequence code points at a lower side or an upper side of the positioning point as 9, 8, 7..., 0 cyclically; and</li>
<li>restoring a complete unit two-dimensional code according to the foregoing marks.</li>
</ul></p>
<p id="p0013" num="0013">The present application has the following beneficial effects:<br/>
In the present application, a method of decoding after restoring least one complete unit code pattern by locating each code point in a unit code pattern that the code point belongs to only needs an area twice the area of a unit code pattern even if decoding is performed when the code pattern is rotated by a most severe degree, while a decoding method of the prior art at least needs an area six times the area of a unit code pattern. This is because that in the decoding method of the present application, a reading device does not need to read a complete unit code pattern, and decoding can be completed as long as obtained code pattern images can be combined to form a complete unit code pattern; decoding is not affected even if the obtained images are fragments belonging to different unit code patterns or the images are inclined in some degree. However, in the decoding method of the prior art, a code pattern image read by a reading device should directly include at least one complete code pattern, and therefore, a relatively large area needs to be obtained for decoding. Therefore, the decoding method of the present application significantly facilitates printing of code patterns and manufacturing of reading devices, that is, it is unnecessary to print large code patterns, and the reading devices can also be made smaller, so that the devices are easy to carry and use, and have lower costs. In addition, the present application is also applicable to a case in which a code pattern image is inclined, and has a smaller operation amount compared with the prior art, thereby saving resources.</p>
<heading id="h0005"><b>BRIEF DESCRIPTION OF THE DRAWINGS</b></heading>
<p id="p0014" num="0014">
<ul id="ul0006" list-style="none">
<li><figref idref="f0001">FIG. 1</figref> shows minimum code pattern areas that need to be obtained in a worst case in the present application and the prior art (an outer larger rectangle is a minimum code pattern area that needs to be obtained in the prior art, that is, 6 times the area of a unit code<!-- EPO <DP n="9"> --> pattern, and the smaller rectangle in a dashed box inside the larger rectangle is a minimum code pattern area that needs to be obtained in the present application, that is, twice the area of a unit code pattern);</li>
<li><figref idref="f0001">FIG. 2</figref> is a schematic diagram of a code pattern image obtained in an embodiment (in which the code pattern image is inclined and rotated by some degree as compared with <figref idref="f0001">FIG. 1</figref>);</li>
<li><figref idref="f0002">FIG. 3</figref> is a schematic diagram of the image in <figref idref="f0001">FIG. 2</figref> after being enhanced;</li>
<li><figref idref="f0002">FIG. 4</figref> is an enlarged schematic diagram of the image in <figref idref="f0002">FIG. 3</figref> after being binarized;</li>
<li><figref idref="f0003">FIG. 5</figref> is an enlarged schematic diagram of the image in <figref idref="f0002">FIG. 4</figref> after being recognized;</li>
<li><figref idref="f0004">FIG. 6</figref> is a schematic diagram of projection of the image in <figref idref="f0002">FIG. 4</figref> when the image is rotated by 53° (four triangle areas at dotted line positions in the figure indicate that when the image is rotated to this angle, four corners of the image are cut off during operation);</li>
<li><figref idref="f0005">FIG. 7</figref> is a schematic diagram of projection of the image in <figref idref="f0002">FIG. 4</figref> when the image is rotated by 90°;</li>
<li><figref idref="f0006">FIG. 8</figref> is a schematic diagram of projection of the image in <figref idref="f0002">FIG. 4</figref> when the image is rotated by 124° (four triangle areas at dotted line positions in the figure indicate that when the image is rotated to this angle, four corners of the image are cut off during operation);</li>
<li><figref idref="f0007">FIG. 9</figref> is a schematic diagram of projection of the image in <figref idref="f0002">FIG. 4</figref> when the image is rotated by 179°;</li>
<li><figref idref="f0007">FIG. 10</figref> is a schematic diagram of projection values of the image in <figref idref="f0002">FIG. 4</figref> when the image is rotated by 0° to 180° (four peak values separately correspond to 53°, 90°, 124°, and 179°);</li>
<li><figref idref="f0008">FIG. 11</figref> is a schematic diagram of a grid constructed in the embodiment of <figref idref="f0001">FIG. 2</figref>; and</li>
<li><figref idref="f0009">FIG. 12</figref> is a schematic diagram of a restored unit code pattern.</li>
</ul></p>
<heading id="h0006"><b>DETAILED DESCRIPTION</b></heading>
<p id="p0015" num="0015">For ease of comprehension, a comparison of decoding methods of the prior art and the<!-- EPO <DP n="10"> --> present application is described first; by using decoding of an MPR two-dimensional code (a type of matrix two-dimensional code) as an example, the method of the present application is described in further detail below with reference to the specific embodiments and accompanying drawings.</p>
<p id="p0016" num="0016">As shown in <figref idref="f0001">FIG. 1</figref>, in the decoding method of the prior art, to perform rectangle matching, a complete unit code pattern 2 (where a unit code pattern is equivalent to a code symbol in an MPR two-dimensional code) including four positioning points 3 and multiple code points 4 in a code array 1 should be read, and then, decoding is performed. That is, in the decoding method of the prior art, four parts, indicated by A, B, C, and D, of a code pattern need to be read; moreover, the four parts need to be in a same unit code pattern, and an arrangement order of the four parts must be absolutely correct. However, in the method of the present application, only four parts, indicated by A, B, C, and D, of a code pattern need to be read for restoring a unit code pattern, and there is neither requirement on the arrangement order nor requirement on whether the four parts belong to a same unit code pattern.</p>
<p id="p0017" num="0017">The code pattern of this embodiment includes multiple code symbols of the MPR two-dimensional code. The multiple code symbols of the MPR two-dimensional code are seamlessly jointed together, and adjacent symbols share a same positioning point (shown as a bar having marked start and end positions in the MPR code symbols, where the shape of the positioning point is a circle or a polygon), thereby forming a large-area tiled arrangement, where such an arrangement is referred to as a symbol joint. An example of an MPR code symbol joint diagram (that is, a code pattern printed in an MPR reading material) is shown in <figref idref="f0001">FIG. 2</figref>. In another matrix two-dimensional code, the positioning point may be replaced with a positioning line; the code also consists of multiple seamlessly-jointed unit code patterns, and can also implement the same function and be decoded by using the following method. Therefore, the positioning point in the present application also includes a module, such as a positioning line, having positioning information.</p>
<p id="p0018" num="0018"><figref idref="f0002">FIG. 3</figref> shows a schematic diagram of a code pattern image obtained in an embodiment.<!-- EPO <DP n="11"> --> Due to operation during reading, the accuracy of a reading device, and the like, the obtained code pattern image is inclined and rotated by some degree as compared with <figref idref="f0001">FIG. 2</figref>.</p>
<p id="p0019" num="0019">A schematic diagram of the obtained image after being enhanced is shown in <figref idref="f0002">FIG. 4</figref>, and a schematic diagram of the obtained image after being binarized is shown in <figref idref="f0003">FIG. 5</figref>.</p>
<p id="p0020" num="0020">Then, code points (bars that represent valid data information in the MPR code symbols, where the shape of the code point is a circle or a polygon) are recognized on the basis of <figref idref="f0003">FIG. 5</figref>, barycenters determined and marked of each code point and positioning point are shown in <figref idref="f0004">FIG. 6</figref>. The barycenters of the code point and positioning point are used in subsequent processing steps.</p>
<p id="p0021" num="0021">The decoding method mainly includes the following steps: after binarizing the obtained image, locating each code point and positioning point in a unit code pattern that the code point and the positioning point belong to, so as to restore a complete unit code pattern, and then performing decoding.</p>
<p id="p0022" num="0022">In this embodiment, the locating each code point and positioning point in a unit code pattern that the code point and the positioning point belong to includes the following steps:<br/>
separately determining directions of a row line and a column line where each code point is located, where the directions of the row line and column line are referred as a row direction and a column direction; separately determining a point spacing in the row direction and a point spacing in the column direction; and calibrating row coordinates of each code point by using the row direction and the point spacing in the row direction, and calibrating column coordinates of each code point and positioning point by using the column direction and the point spacing in the column direction.</p>
<p id="p0023" num="0023">The locating each code point and positioning point in a unit code pattern that the code point and the positioning point belong to may also include the following steps:<br/>
further recognizing the binarized image, so as to determine barycenters of each code point and positioning point; determining a row direction and a column direction in the image; separately drawing a group of parallel row lines and a group of parallel column lines along the row direction and the column direction to form a grid, where distances between<!-- EPO <DP n="12"> --> the parallel row lines and between the parallel column lines are the point spacing in a column line direction and the point spacing in a row line direction in the code pattern respectively, and the point spacing is a distance between barycenters of adjacent code points; and calculating coordinates of each cross point in the grid, so as to assign coordinate values to each code point and positioning point in the image, where the coordinate values indicate the locations of each code point and positioning point in the unit code pattern that the code point and the positioning point belong to.</p>
<p id="p0024" num="0024">The row direction and the column direction are preferably determined by using the following method:<br/>
projecting each code point in the image of <figref idref="f0004">FIG. 6</figref> to axis X, calculating the number of projections at each projection point and an average value of the numbers of projections at all projection points, and then calculating a mean square error σ0 of the numbers of projections at all the projection points; rotating the obtained image by a predetermined angle θ, and calculating a mean square error σ1 according to the foregoing method; rotating the obtained image by a predetermined angle θ again, and calculating a mean square error σ2 according to the foregoing method; and repeating this process until the obtained image is rotated by a total of 180°, and calculating the last mean square error σn; and taking an image state corresponding to a maximum value of σ0 to σn, and marking a direction of a line which is perpendicular to axis X and of which a projection point has a maximum number of projections in the image state as the row direction.</p>
<p id="p0025" num="0025">The center of the image is preferably used as a rotation center during image rotation, and in this case, the image rotation sweeps a minimum area and has a minimum operation amount; however, the objective of the present application can also be implemented when another point is used as the rotation center.</p>
<p id="p0026" num="0026"><figref idref="f0004 f0005 f0006 f0007">FIG. 6 to FIG. 9</figref> are schematic diagrams of projection of the image when the image is rotated by 53°, 90°, 124° and 179° in this embodiment.</p>
<p id="p0027" num="0027">A principle of determining the column direction is the same as the principle of determining the row direction, except that before projection and calculation of a mean<!-- EPO <DP n="13"> --> square error, an image state corresponding to the row line needs to be rotated by 90°±21°, and a maximum value of the mean square errors is taken within this range (that is, the image is rotated by 69° to 111° relative to the image state corresponding to the row line), and a direction of a line drawn perpendicular to L at a position which is on the line L and has a maximum number of projections falling thereon in the image state corresponding to the maximum value is the column direction.</p>
<p id="p0028" num="0028">Preferably, the point spacing is calculated by using the following method:
<ul id="ul0007" list-style="none">
<li>translating each code point in the image state corresponding to the maximum value of the foregoing σ0 to σn by m pixels along the row direction, and calculating an autocorrelation coefficient Z1 according to projection values of each code point before and after the translation; translating each code point in the obtained image by m+1 pixels, and calculating an autocorrelation coefficient Z2 according to projection values of each code point before and after the translation; translating each code point in the obtained image by m+2 pixels, and calculating an autocorrelation coefficient Z3 according to projection values of each code point before and after the translation; continuing to translate the obtained image in this manner, until an autocorrelation coefficient Zn+1 is calculated; and taking a maximum value of Z1 to Zn+1, where a translation amount corresponding to the maximum value is the point spacing e in the row direction; and</li>
<li>in a same way, translating, for n' times along the column direction, a state diagram corresponding to the maximum value of the mean square errors when the image is rotated by 69° to 111°, and calculating a maximum autocorrelation coefficient, so as to obtain the point spacing f in the column direction;</li>
<li>where e and f each are the number of pixels, m≥1, m is a natural number, m+n≈e, m+n'≈f, and m+n and m+n' each are the number of pixels corresponding to a predicted point spacing.</li>
</ul></p>
<p id="p0029" num="0029">The parallel row lines and parallel column lines are determined by using the following method:
<ul id="ul0008" list-style="none">
<li>separately calculating peak values of barycenter projections of code points in a·e±P<!-- EPO <DP n="14"> --> areas along the row direction, and drawing the parallel column lines according to the peak value in each area; and</li>
<li>separately calculating peak values of barycenter projections of code points in a·f±P areas along the column direction, and drawing the parallel row lines according to the peak value in each area;</li>
<li>where, P is a natural number not greater than the smaller one of e, f, and a is a natural number.</li>
</ul></p>
<p id="p0030" num="0030">The foregoing parallel row lines and parallel column lines construct a grid together, as shown in <figref idref="f0008">FIG. 11</figref>. A grid constructing method is to separately extend the parallel row lines and parallel column lines to so that the parallel row lines and parallel column lines cross each other, thereby forming the grid.</p>
<p id="p0031" num="0031">A method for assigning values to each code point and positioning point in the image is as follows:<br/>
with a center point of the image as a reference point, calculating coordinate values of each cross point in the grid, where coordinate values of each code point in the obtained image are coordinate values of a cross point that is in the grid and closest to the code point. The coordinate values of the positioning point are determined according to coordinate values of four code points adjacent to the positioning point. The reference point may not be the center point of the image, any point on the image can be selected as the reference point, and even a point outside the image can be used as the reference point.</p>
<p id="p0032" num="0032">The method for restoring a two-dimensional code is described in as follows (if the code is another matrix two-dimensional code, the code merely needs to be restored according to an encoding rule of the matrix two-dimensional code):<br/>
A module size of the positioning point should be twice a module size of the code point. During barycenter recognition of each code point and locating of each code point in a unit code pattern that the code point belongs to, barycenter recognition and locating are also performed on the positioning point, and area information of the positioning point is marked (for example, the area information of the positioning point is recorded), so that the<!-- EPO <DP n="15"> --> positioning point can be extracted as a reference point in subsequent two-dimensional code restoring. A specific locating method is that: coordinates of a projection of a barycenter neither fall on the row line nor fall on the column line, and a module size in a code pattern image corresponding to the barycenter is twice or more than twice a module size on the row line and the column line.</p>
<p id="p0033" num="0033">With the positioning point as a reference point, code points at a right side of the positioning point are marked in sequence as 0, 1, 2..., 9 cyclically; code points at a left side of the positioning point are marked in sequence as 9, 8, 7..., 0 cyclically; code points at an upper side of the positioning point are marked in sequence as 0, 1, 2..., 9 cyclically; code points at a lower side of the positioning point are marked in sequence as 9, 8, 7..., 0 cyclically; and a complete unit two-dimensional code is restored according to the foregoing marks, as shown in <figref idref="f0009">FIG. 12</figref>, where "+" in the figure represents the positioning point and each circle represents a code point.</p>
<p id="p0034" num="0034">In this embodiment, the positioning point has the following features:
<ol id="ol0002" compact="compact" ol-style="">
<li>1) coordinates of the barycenter are located between the row and column;</li>
<li>2) the area of the positioning point is greater than twice an average area of the code points; and</li>
<li>3) no code point exists at cross positions of an upper row line, a lower row line, a left column line and a right column line neighboring the positioning point.</li>
</ol></p>
<p id="p0035" num="0035">When row and column coordinate values of the code point are determined or coordinate values are assigned to the code point, the positioning point is also marked for reference use in subsequent steps.</p>
</description>
<claims id="claims01" lang="en"><!-- EPO <DP n="16"> -->
<claim id="c-en-01-0001" num="0001">
<claim-text>A decoding method for a matrix two-dimensional code, wherein: a matrix two-dimensional code image to be decoded is a code array (1) of jointed matrix two-dimensional code symbols, formed by multiple identical unit code patterns (2), and area of the image is bigger than area of the unit code pattern; wherein the unit code patterns (2) in the code array (1) are rectangular, and code cells in the code pattern (2) are solid points comprising positioning points (3) located at four corners of the code pattern (2) to define and recognize the border, and data points, i.e. code points (4), and area of the positioning point (3) is larger than area of the code point (4), wherein the unit code patterns (2) are arranged repeatedly and seamlessly jointed as the code array (1), and adjacent unit code patterns (2) share a same positioning point; the decoding method comprises a decoding process of the image as follows: obtaining a binary image of a to-be-decoded code array (1) of jointed matrix two-dimensional code symbols, locating each code point (4) and positioning point (3) in a unit code pattern (2) that the code point (4) and the positioning point (3) belong to, so as to restore a complete unit code pattern (2), and then performing decoding; <b>characterized in that</b> an image obtained by scanning does not need to comprise a complete unit code pattern<br/>
wherein, the locating each code point (4) and positioning point (3) in a unit code pattern (2) that the code point and the positioning point belong to refers to assigning coordinate values to each code point and positioning point, wherein each code point and positioning point determined by the coordinate values have a same relative location relationship as each code point and positioning point in the image obtained by scanning;<br/>
wherein the assigning coordinate values to each code point and positioning point comprises the following steps:
<claim-text>separately determining directions of a row line and a column line where each code point is located, wherein the determined directions are referred as a row direction and a column direction;<!-- EPO <DP n="17"> --></claim-text>
<claim-text>separately determining a point spacing in the row direction and a point spacing in the column direction; and</claim-text>
<claim-text>calibrating row coordinates of each code point and positioning point by using the point spacing in the row direction and a projection waveform in the row direction, and calibrating column coordinates of each code point and positioning point by using the point spacing in the column direction and a projection waveform in the column direction; or</claim-text>
<claim-text>wherein the assigning coordinate values to each code point and positioning point comprises the following steps:
<claim-text>determining a row direction and a column direction in the image;</claim-text>
<claim-text>separately drawing a group of parallel row lines and a group of parallel column lines according to the row direction and the column direction to form a grid, wherein distances between the parallel row lines and between the parallel column lines are the point spacing in a column line direction and the point spacing in a row line direction in the code pattern respectively; and</claim-text>
<claim-text>calculating coordinates of each cross point in the grid, so as to assign coordinate values to each code point and positioning point in the image;</claim-text></claim-text>
<claim-text>wherein the determining a row direction and a column direction comprises the following steps:
<claim-text>A1. recognizing the binary image, so as to determine barycenters of each code point and positioning point;</claim-text>
<claim-text>A2. projecting the barycenter of each code point in the obtained image to any straight line L, calculating the number of projections at each projection point and an average value of the numbers of projections at all projection points, and calculating a mean square error σ0;</claim-text>
<claim-text>A3. rotating the obtained image by a predetermined angle θ, and calculating a mean square error σ1 according to the method of Step A1;</claim-text>
<claim-text>A4. rotating the obtained image by a predetermined angle θ again, and calculating a<!-- EPO <DP n="18"> --> mean square error σ2 according to the method of Step A1; repeating the process until the image is rotated by a total of 180°, and calculating the last mean square error σn;</claim-text>
<claim-text>A5. drawing a line perpendicular to L at a position which is on the line L and has a maximum number of projections falling thereon in an image state corresponding to a maximum value of the mean square errors σ0 to σn, wherein the drawn line is the row direction; and</claim-text>
<claim-text>A6. rotating the image state corresponding to the row direction by ±(90°±21°), taking a maximum value of the mean square errors within this range, and drawing a line perpendicular to L at a position which is on the line L and has a maximum number of projection points falling thereon in an image state corresponding to the maximum value, wherein the drawn line is the column direction.</claim-text></claim-text></claim-text></claim>
<claim id="c-en-01-0002" num="0002">
<claim-text>The decoding method for a matrix two-dimensional code according to claim 1, wherein the point spacing is determined by using a method of solving a discrete signal period by means of autocorrelation, which is specifically described as follows:
<claim-text>B1. translating each code point in the image state corresponding to the maximum value of the mean square error in Step A5 by m pixels along the row direction, and calculating an autocorrelation coefficient Z1 according to projection values of the barycenter of each code point before and after the translation; translating each code point in the obtained image by m+1 pixels, and calculating an autocorrelation coefficient Z2 according to projection values of the barycenters of each code point before and after the translation; translating each code point in the obtained image by m+2 pixels, and calculating an autocorrelation coefficient Z3 according to projection values of the barycenter of each code point before and after the translation; and continuing to translate the obtained image in this manner, until each code point in the obtained image is translated by m+n pixels, and calculating an autocorrelation coefficient Zn+1;</claim-text>
<claim-text>B2. taking a maximum value of Z1 to Zn+1, wherein a code point translation amount corresponding to the maximum value is the point spacing e in the row direction; and</claim-text>
<claim-text>B3. in a same way, translating each code point in the image state corresponding to the<!-- EPO <DP n="19"> --> maximum value of the mean square errors in Step A6 for n' times along the column direction, and calculating a maximum autocorrelation coefficient, so as to obtain the point spacing f in the column direction;</claim-text>
<claim-text>wherein e and f are each the number of pixels, m≥1, m is a natural number, m+n≈e, m+n'≈f, and m+n and m+n' are each the number of pixels corresponding to a predicted point spacing.</claim-text></claim-text></claim>
<claim id="c-en-01-0003" num="0003">
<claim-text>The decoding method for a matrix two-dimensional code according to claim 1, wherein in the image rotation, a center point of the image is used as a rotation center.</claim-text></claim>
<claim id="c-en-01-0004" num="0004">
<claim-text>The decoding method for a matrix two-dimensional code according to claim 1, wherein the parallel row lines and parallel column lines are determined by the following steps:
<claim-text>C1. separately calculating peak values of barycenter projections of code points in a·e±P areas along the row direction, and drawing the parallel column lines according to the peak value in each area; and</claim-text>
<claim-text>C2. separately calculating peak values of barycenter projections of code points in a·f±P areas along the column direction, and drawing the parallel row lines according to the peak value in each area;</claim-text>
<claim-text>wherein, P is a natural number not greater than the smaller one of e, f, and a is a natural number.</claim-text></claim-text></claim>
<claim id="c-en-01-0005" num="0005">
<claim-text>The decoding method for a matrix two-dimensional code according to claim 1, wherein a method for restoring a complete unit code pattern is described as follows:<br/>
with a positioning point as a reference point, marking each code point according to a code structure feature of the two-dimensional code, and restoring a complete unit two-dimensional code according to the mark of each code point.</claim-text></claim>
<claim id="c-en-01-0006" num="0006">
<claim-text>The decoding method for a matrix two-dimensional code according to claim 5, wherein the method for restoring a complete unit code pattern is described as follows:
<claim-text>with a positioning point as a reference point, marking in sequence code points at a<!-- EPO <DP n="20"> --> right side or a left side of the positioning point as 0, 1, 2..., 9 cyclically; marking in sequence code points at a left side or a right side of the positioning point as 9, 8, 7..., 0 cyclically; marking in sequence code points at an upper side or a lower side of the positioning point as 0, 1, 2..., 9 cyclically; and marking in sequence code points at a lower side or an upper side of the positioning point as 9, 8, 7..., 0 cyclically; and</claim-text>
<claim-text>restoring a complete unit two-dimensional code according to the foregoing marks.</claim-text></claim-text></claim>
</claims>
<claims id="claims02" lang="de"><!-- EPO <DP n="21"> -->
<claim id="c-de-01-0001" num="0001">
<claim-text>Verfahren zum Dekodieren eines zweidimensionalen Matrixcodes, bei dem ein zu dekodierendes zweidimensionales Matrixcodebild ein aus mehreren identischen Einheitscodemustern (2) bestehendes Code-Array zusammengefügter zweidimensionaler Matrixcodesymbole (1) ist, wobei die Fläche des zweidimensionalen Codebildes größer als die Fläche des Einheitscodemusters ist, wobei das Einheitscodemuster (2) im Code-Array (1) rechteckförmig ist und als Barcodeeinheiten mehrere massive Punkte enthält, welche in den vier Ecken des Einheitscodemusters (2) befindliche Positionierungspunkte (3)zum Definieren und Erkennen von Begrenzungen sowie Datenpunkte bzw. Codepunkte (4) umfassen, wobei die Fläche des Positionierungspunkts (3) größer als die Fläche des Codepunkts (4) ist, wobei die Einheitscodemuster (2) wiederholt angeordnet sind und nahtlos zu dem Code-Array zusammengefügter zweidimensionaler Matrixcodesymbole (1) zusammengefügt werden, indem benachbarte Einheitscodemuster (2) einen Positionierungspunkt gemeinsam benutzen, wobei das Dekodierungsverfahren den folgenden Dekodierungsprozess umfasst: Ermitteln eines Binärbilds des zu dekodierenden Code-Arrays zusammengefügter zweidimensionaler Matrixcodesymbole (1) und Bestimmen der Positionen der einzelnen Codepunkte (4) und Positionierungspunkte (3) in dem dem jeweiligen Codepunkt (4) und Positionierungspunkt (3) zugeordneten Einheitscodemuster (2), um ein vollständiges Einheitscodemuster (2) wiederherzustellen und anschließend eine Dekodierung durchzuführen, <b>dadurch gekennzeichnet, dass</b> ein durch Abtasten ermitteltes Bild kein einzelnes vollständiges Einheitscodemuster enthalten muss,<br/>
wobei das Bestimmen der Positionen der einzelnen Codepunkte (4) und Positionierungspunkte (3) in dem dem jeweiligen Codepunkt und Positionierungspunkt zugeordneten Einheitscodemuster (2) eine Zuweisung von Koordinatenwerten zu den einzelnen Codepunkten und Positionierungspunkten betrifft, wobei die einzelnen durch die Koordinatenwerte bestimmten Codepunkte und Positionierungspunkte die gleiche relative Positionsbeziehung wie die einzelnen Codepunkte und Positionierungspunkte in dem durch Abtasten ermittelten Bild haben;<br/>
wobei die Zuweisung von Koordinatenwerten zu den einzelnen Codepunkten und Positionierungspunkten folgende Schritte umfasst:
<claim-text>Bestimmen der Richtungen der Zeilenlinien und Spaltenlinien, auf denen die einzelnen Codepunkte liegen, wobei die bestimmten Richtungen als Zeilenrichtung und Spaltenrichtung bezeichnet werden;<!-- EPO <DP n="22"> --></claim-text>
<claim-text>Bestimmen eines Punktabstands jeweils in der Zeilenrichtung und der Spaltenrichtung; und</claim-text>
<claim-text>Kalibrieren der Zeilenkoordinaten der einzelnen Codepunkte und Positionierungspunkte mit Hilfe des Punktabstands in der Zeilenrichtung und einer Projektionswellenform in dieser Richtung und Kalibrieren der Spaltenkoordinaten der einzelnen Codepunkte und Positionierungspunkte mit Hilfe des Punktabstands in der Spaltenrichtung und einer Projektionswellenform in dieser Richtung; oder</claim-text>
<claim-text>wobei die Zuweisung von Koordinatenwerten zu den einzelnen Codepunkten und Positionierungspunkten folgende Schritte umfasst:
<claim-text>Bestimmen einer Zeilenrichtung und einer Spaltenrichtung in dem Bild;</claim-text>
<claim-text>Zeichnen einer Gruppe von parallelen Zeilenlinien und einer Gruppe von parallelen Spaltenlinien jeweils in Abhängigkeit von der Zeilenrichtung bzw. der Spaltenrichtung, um ein Raster zu erzeugen, wobei die Abstände zwischen den parallelen Zeilenlinien und zwischen den parallelen Spaltenlinien jeweils der Punktabstand in einer Spaltenlinienrichtung und der Punktabstand in einer Zeilenlinienrichtung in dem Codemuster sind; und</claim-text>
<claim-text>Berechnen der Koordinaten der einzelnen Kreuzpunkte in dem Raster, um somit den einzelnen Codepunkten und Positionierungspunkten in dem Bild Koordinatenwerte zuzuweisen;</claim-text></claim-text>
<claim-text>wobei das Bestimmen einer Zeilenrichtung und einer Spaltenrichtung folgende Schritte umfasst:
<claim-text>A1. Erkennen des Binärbilds, um die Schwerpunkte der einzelnen Codepunkte und Positionierungspunkte zu bestimmen;</claim-text>
<claim-text>A2. Projizieren der Schwerpunkte der einzelnen Codepunkte in dem ermittelten Bild auf eine beliebige gerade Linie L, Berechnen der Anzahl der einzelnen Projektionspunkte und eines Mittelwerts der Anzahl aller Projektionspunkte und Berechnen eines mittleren quadratischen Fehlers α0;</claim-text>
<claim-text>A3. Drehen des ermittelten Bilds um einen vorbestimmten Winkel θ und Berechnen eines mittleren quadratischen Fehlers α1 nach dem Verfahren des Schritts A1;</claim-text>
<claim-text>A4. Drehen des ermittelten Bilds abermals um einen vorbestimmten Winkel θ, Berechnen eines mittleren quadratischen Fehlers σ2 nach dem Verfahren des Schritts A1, und so weiter, bis das Bild insgesamt um 180° gedreht wird, und Berechnen des letzten mittleren quadratischen Fehlers σn;<!-- EPO <DP n="23"> --></claim-text>
<claim-text>A5. Zeichnen einer senkrecht zu L verlaufenden Linie an einer Stelle, an der die maximale Anzahl von Projektionspunkten in einem dem Maximalwert der mittleren quadratischen Fehlerσ0 bis σn zugeordneten Bildzustand auf die Linie L fallen, wobei die gezeichnete Linie die Zeilenrichtung darstellt;</claim-text>
<claim-text>A6. Drehen des der Zeilenrichtung zugeordneten Bildzustands um ±(90°±21°), Annehmen eines Maximalwerts der mittleren quadratischen Fehler in diesem Bereich und Zeichnen einer senkrecht zu L verlaufenden Linie an einer Stelle, an der die maximale Anzahl von Projektionspunkten in einem dem Maximalwert zugeordneten Bildzustand auf die Linie L fallen, wobei die gezeichnete Linie die Spaltenrichtung darstellt.</claim-text></claim-text></claim-text></claim>
<claim id="c-de-01-0002" num="0002">
<claim-text>Verfahren zum Dekodieren eines zweidimensionalen Matrixcodes nach Anspruch 1, wobei der Punktabstand mit dem Autokorrelationsverfahren durch Ermitteln einer diskreten Signalperiode bestimmt wird, was durch Folgendes erfolgt:
<claim-text>B1. Verschieben der einzelnen Codepunkte in dem dem Maximalwert der mittleren quadratischen Fehler zugeordneten Bildzustand im Schritt A5 um m Pixel entlang der Zeilenrichtung und Berechnen eines Autokorrelationskoeffizienten Z1 in Abhängigkeit von den Projektionswerten der Schwerpunkte der einzelnen Codepunkte vor und nach der Verschiebung; Verschieben der einzelnen Codepunkte in dem ermittelten Bild um m+1 Pixel und Berechnen eines Autokorrelationskoeffizienten Z2 in Abhängigkeit von den Projektionswerten der Schwerpunkte der einzelnen Codepunkte vor und nach der Verschiebung, Verschieben der einzelnen Codepunkte in dem ermittelten Bild um m+2 Pixel und Berechnen eines Autokorrelationskoeffizienten Z3 in Abhängigkeit von den Projektionswerten der Schwerpunkte der einzelnen Codepunkte vor und nach der Verschiebung, und so weiter, bis die einzelnen Codepunkte in dem ermittelten Bild um m+n Pixel verschoben werden und ein Autokorrelationskoeffizient Zn+1 errechnet wird;</claim-text>
<claim-text>B2. Annehmen eines Maximalwerts aus Z1 bis Zn+1, wobei das dem Maximalwert zugeordnete Verschiebungsmaß der Codepunkte den Punktabstand e in der Zeilenrichtung darstellt; und</claim-text>
<claim-text>B3. Verschieben der einzelnen Codepunkte in dem dem Maximalwert der mittleren quadratischen Fehler zugeordneten Bildzustand im Schritt A6 für n' Male entlang der Spaltenrichtung und Berechnen des maximalen Autokorrelationskoeffizienten, um den Punktabstand f in der Spaltenrichtung zu ermitteln;</claim-text>
<claim-text>wobei e und f jeweils eine Pixelanzahl sind, m≥1, m eine natürliche Zahl ist und m+n≈e, m+n'≈f, m+n und m+n' jeweils eine einem vorhergesagten Punktabstand zugeordnete<!-- EPO <DP n="24"> --> Pixelanzahl sind.</claim-text></claim-text></claim>
<claim id="c-de-01-0003" num="0003">
<claim-text>Verfahren zum Dekodieren eines zweidimensionalen Matrixcodes nach Anspruch 1, wobei beim Drehen des Bilds dessen Mittelpunkt als Drehzentrum dient.</claim-text></claim>
<claim id="c-de-01-0004" num="0004">
<claim-text>Verfahren zum Dekodieren eines zweidimensionalen Matrixcodes nach Anspruch 1, wobei die parallelen Zeilenlinien und die parallelen Spaltenlinien durch folgende Schritte bestimmt werden:
<claim-text>C1. Berechnen der Spitzenwerte der Schwerpunktsprojektionen der Codepunkte in den Bereichen von a·e±P entlang der Zeilenrichtung und Zeichnen der parallelen Spaltenlinien anhand der Spitzenwerte in den einzelnen Bereichen;</claim-text>
<claim-text>C2. Berechnen der Spitzenwerte der Schwerpunktsprojektionen der Codepunkte in den Bereichen von a·f±P entlang der Spaltenrichtung und Zeichnen der parallelen Zeilenlinien anhand der Spitzenwerte in den einzelnen Bereichen;</claim-text>
<claim-text>wobei P eine natürliche Zahl, die nicht größer als die kleinere von e und f ist, und a eine natürliche Zahl ist.</claim-text></claim-text></claim>
<claim id="c-de-01-0005" num="0005">
<claim-text>Verfahren zum Dekodieren eines zweidimensionalen Matrixcodes nach Anspruch 1, wobei das Wiederherstellen eines vollständigen Einheitscodemusters dadurch erfolgt, dass die einzelnen Codepunkte in Abhängigkeit von den Codestrukturmerkmalen des zweidimensionalen Codes mit Bezug auf die Positionierungspunkte markiert werden und ein vollständiger zweidimensionaler Einheitscode in Abhängigkeit von den Markierungen der einzelnen Codepunkte wiederhergestellt wird.</claim-text></claim>
<claim id="c-de-01-0006" num="0006">
<claim-text>Verfahren zum Dekodieren eines zweidimensionalen Matrixcodes nach Anspruch 5, wobei das Wiederherstellen eines vollständigen Einheitscodemusters durch Folgendes erfolgt:
<claim-text>Zyklisches Markieren der einzelnen Codepunkte auf der rechten oder linken Seite eines Positionierungspunkts mit Bezug auf diesen Positionierungspunkt der Reihe nach mit 0, 1, 2 bis 9;Zyklisches Markieren der einzelnen Codepunkte auf der linken oder rechten Seite des Positionierungspunkts der Reihe nach mit 9, 8, 7 bis 0;Zyklisches Markieren der einzelnen Codepunkte auf der oberen oder unteren Seite des Positionierungspunkts der Reihe nach mit 0, 1, 2 bis 9;Zyklisches Markieren der einzelnen Codepunkte auf der unteren oder oberen Seite des Positionierungspunkts der Reihe nach mit 9, 8, 7 bis 0; und</claim-text>
<claim-text>Wiederherstellen eines vollständigen zweidimensionalen Einheitscodes in Abhängigkeit von den obenstehenden Markierungen.</claim-text></claim-text></claim>
</claims>
<claims id="claims03" lang="fr"><!-- EPO <DP n="25"> -->
<claim id="c-fr-01-0001" num="0001">
<claim-text>Procédé de décodage pour un code matriciel bidimensionnel, dans lequel une image de code matriciel bidimensionnel à décoder est une matrice combinée (1) de codes matriciels bidimensionnels composée de multiples motifs de code unitaire identiques (2), et la surface de l'image de code matriciel bidimensionnel est supérieure à la surface du motif de code unitaire ; dans lequel les motifs de code unitaire (2) de la matrice combinée (1) sont en forme rectangulaire, et les unités de code sur le motif de code unitaire (2) sont des points solides comprenant des points de positionnement (3) situés aux quatre coins du motif de code unitaire (2) pour déterminer et identifier les limites et des points de données, soit des points de code (4), la surface du point de positionnement (3) est supérieure à la surface du point de code (4), les motifs de code unitaire (2) sont disposés de manière répétée et combinés sans joint pour former une matrice combinée (1) de codes matriciels bidimensionnels, un même point de positionnement étant commun pour les motifs de code unitaire adjacents (2) ; le procédé de décodage comprend des étapes de décodage suivantes : obtenir une image binaire d'une matrice combinée (1) de codes matriciels bidimensionnels à décoder, localiser les positions de chaque point de code (4) et de chaque point de positionnement (3) dans les motifs de code unitaire (2) dans lesquels se trouvent respectivement ledit point de code (4) et ledit point de positionnement (3), afin de restaurer un motif de code unitaire complet (2), puis effectuer le décodage ; <b>caractérisé en ce qu'</b>une image obtenue par balayage n'a pas besoin de comprendre un motif de code unitaire complet,<br/>
dans lequel, par les positions de chaque point de code (4) et de chaque point de positionnement (3) dans les motifs de code unitaire (2) dans lesquels se trouvent respectivement ledit point de code et ledit point de positionnement, on entend l'attribution de valeurs de coordonnées à chaque point de code et à chaque point de positionnement, chaque code le point et chaque point de positionnement déterminés par les valeurs de coordonnées présentant une même relation de position relative que chaque point de code et chaque point de positionnement sur l'image obtenue par balayage ;<br/>
dans lequel l'attribution de valeurs de coordonnées à chaque point de code et à chaque point de positionnement comprend les étapes suivantes :
<claim-text>déterminer respectivement les directions de la ligne et de la colonne où se trouve chaque point de code, soit les directions de ligne et de colonne ;</claim-text>
<claim-text>déterminer respectivement un espacement des points dans les directions de ligne et de colonne ; et<!-- EPO <DP n="26"> --></claim-text>
<claim-text>étalonner les coordonnées de ligne de chaque point de code et de chaque point de positionnement en fonction de l'espacement des points dans la direction de ligne et une forme d'onde de projection dans la direction de ligne, et étalonner les coordonnées de colonne de chaque point de code et de chaque point de positionnement en fonction de l'espacement des points dans la direction de colonne et une forme d'onde de projection dans la direction de la colonne ; ou</claim-text>
<claim-text>dans lequel l'attribution de valeurs de coordonnées à chaque point de code et à chaque point de positionnement comprend les étapes suivantes :
<claim-text>déterminer respectivement les directions de ligne et de colonne sur l'image ;</claim-text>
<claim-text>tracer respectivement un groupe de lignes parallèles de ligne et un groupe de lignes parallèles de colonne en fonction des directions de ligne et de colonne, afin de former un réseau, les distances entre les lignes parallèles de ligne et les lignes parallèles de colonne correspondant à l'espacement des points dans les directions de ligne et de colonne sur le motif de code ; et</claim-text>
<claim-text>calculer les coordonnées de chaque point de croisement dans le réseau, afin d'attribuer des valeurs de coordonnées à chaque point de code et à chaque point de positionnement sur l'image ;</claim-text></claim-text>
<claim-text>dans lequel les directions de ligne et de colonne sont déterminées en suivant les étapes ci-dessous :
<claim-text>A1. identifier une image binaire, afin de déterminer des barycentres de chaque point de code et de chaque point de positionnement ;</claim-text>
<claim-text>A2. projeter le barycentre de chaque point de code obtenue sur l'image sur n'importe quelle ligne L, calculer chaque nombre de point de projection et une valeur moyenne des nombres de point de projection, et calculer un écart-type σ 0 ;</claim-text>
<claim-text>A3. faire tourner l'image obtenue d'un angle prévu θ et calculer un écart-type σ 1 selon l'étape A1 ;</claim-text>
<claim-text>A4. faire tourner à nouveau l'image obtenue d'un angle prévu θ et calculer un écart-type σ 2 selon l'étape A1, et ainsi de suite, jusqu'à ce que l'angle accumulé atteint 180°, et calculer le dernier écart-type σ n ;</claim-text>
<claim-text>A5. tracer une ligne perpendiculaire à L à une position qui se trouve sur la ligne L et a un nombre maximal de projections tombant sur elle à l'état d'image correspondant à une valeur maximum parmi les écart-type σ 0 à σn, où la ligne tracée est la direction de ligne ; et<!-- EPO <DP n="27"> --></claim-text>
<claim-text>A6. faire tourner l'image ± (90°±21°) correspondant à une position qui se trouve sur la ligne L et a un nombre maximal de projections tombant sur elle à l'état d'image correspondant à l'écart-type maximum, où la ligne tracée est la direction de colonne.</claim-text></claim-text></claim-text></claim>
<claim id="c-fr-01-0002" num="0002">
<claim-text>Procédé de décodage pour un code matriciel bidimensionnel selon la revendication 1, dans lequel l'espacement des points est déterminé en effectuer une résolution de période de signal discrète via l'autocorrélation, en particulier suivant les étapes ci-dessous :
<claim-text>B1. déplacer chaque point de code de m pixels dans direction de ligne, ladite point de code étant à l'état d'image correspondant à la valeur maximum de l'écart type à l'étape A5, et calculer un coefficient d'autocorrélation Z1 en fonction des valeurs de projection du barycentre de chaque point de code avant et après le déplacement ; déplacer chaque point de code sur l'image obtenue de m + 1 pixels, et calculer un coefficient d'autocorrélation Z2 en fonction des valeurs de projection du barycentre de chaque point de code avant et après le déplacement ; déplacer chaque point de code sur l'image obtenue de m + 2 pixels, et calculer un coefficient d'autocorrélation Z3 en fonction des valeurs de projection du barycentre de chaque point de code avant et après le déplacement ; et ainsi de suite jusqu'à déplacer chaque point de code sur l'image obtenue de m + n pixels, et calculer un coefficient d'autocorrélation Zn + 1 ;</claim-text>
<claim-text>B2. prendre une valeur maximum parmi Z1 à Zn + 1, le déplacement du point de code correspondant à ladite valeur maximum étant l'espacement des points e dans la direction de ligne ; et</claim-text>
<claim-text>B3. de la même manière, déplacer n' fois chaque point de code dans la direction de colonne, ledit point de code étant à l'état d'image correspondant à la valeur maximum de l'écart type à l'étape A6, et calculer un coefficient d'autocorrélation maximum, afin d'obtenir l'espacement des points f dans la direction de colonne ;</claim-text>
<claim-text>où e et f sont chacun le nombre de pixels, m≤1, m est un nombre naturel, m+n≈e, m+n'≈f, et m + n et m + n ' sont chacun le nombre de pixels correspondant à un espacement des points évalué.</claim-text></claim-text></claim>
<claim id="c-fr-01-0003" num="0003">
<claim-text>Procédé de décodage pour un code matriciel bidimensionnel selon la revendication 1, dans lequel le point central de rotation de l'image est le point de l'image.</claim-text></claim>
<claim id="c-fr-01-0004" num="0004">
<claim-text>Procédé de décodage pour un code matriciel bidimensionnel selon la revendication 1, dans lequel les lignes parallèles de ligne et les lignes parallèles de colonne sont déterminées en suivants les étapes ci-dessous :<!-- EPO <DP n="28"> -->
<claim-text>C1. calculer dans la direction de ligne les valeurs de pics des projections de barycentre des points de code dans les zones a·e±P, et tracer les lignes parallèles de colonne en fonction des valeurs de pics dans chaque zone ;</claim-text>
<claim-text>C2. calculer dans la direction de colonne les valeurs de pics des projections de barycentre des points de code dans les zones a·f±P, et tracer les lignes parallèles de ligne en fonction des valeurs de pics dans chaque zone ;</claim-text>
<claim-text>où P est un nombre naturel non supérieur au plus petit de e et f, et a est un nombre naturel.</claim-text></claim-text></claim>
<claim id="c-fr-01-0005" num="0005">
<claim-text>Procédé de décodage pour un code matriciel bidimensionnel selon la revendication 1, dans lequel un procédé pour restaurer un motif de code unitaire complet est comme suit :<br/>
prendre un point de positionnement comme point de référence, marquer chaque point de code selon les caractéristiques structurelles du code bidimensionnel, et restaurer un code unitaire bidimensionnel complet en fonction la marque de chaque point de code.</claim-text></claim>
<claim id="c-fr-01-0006" num="0006">
<claim-text>Procédé de décodage pour un code matriciel bidimensionnel selon la revendication 5, dans lequel un procédé pour restaurer un motif de code unitaire complet est comme suit :
<claim-text>prendre un point de positionnement comme point de référence, marquer en séquence les points de code aux côtés droit ou gauche du point de positionnement comme 0, 1, 2 ..., 9 cycliquement ; marquer en séquence les points de code aux côtés gauche ou droit du point de positionnement comme 9, 8, 7 ..., 0 cycliquement ; marquer en séquence des points de code aux côtés supérieur ou inférieur du point de positionnement comme 0, 1, 2 ..., 9 cycliquement ; et marquer en séquence des points de code aux côtés inférieur ou supérieur du point de positionnement comme 9, 8, 7 ..., 0 cycliquement ;</claim-text>
<claim-text>et restaurer un code unitaire bidimensionnel complet selon les marques ci-dessus.</claim-text></claim-text></claim>
</claims>
<drawings id="draw" lang="en"><!-- EPO <DP n="29"> -->
<figure id="f0001" num="1,2"><img id="if0001" file="imgf0001.tif" wi="119" he="177" img-content="drawing" img-format="tif"/></figure><!-- EPO <DP n="30"> -->
<figure id="f0002" num="3,4"><img id="if0002" file="imgf0002.tif" wi="113" he="183" img-content="drawing" img-format="tif"/></figure><!-- EPO <DP n="31"> -->
<figure id="f0003" num="5"><img id="if0003" file="imgf0003.tif" wi="113" he="123" img-content="drawing" img-format="tif"/></figure><!-- EPO <DP n="32"> -->
<figure id="f0004" num="6"><img id="if0004" file="imgf0004.tif" wi="103" he="206" img-content="drawing" img-format="tif"/></figure><!-- EPO <DP n="33"> -->
<figure id="f0005" num="7"><img id="if0005" file="imgf0005.tif" wi="94" he="173" img-content="drawing" img-format="tif"/></figure><!-- EPO <DP n="34"> -->
<figure id="f0006" num="8"><img id="if0006" file="imgf0006.tif" wi="103" he="208" img-content="drawing" img-format="tif"/></figure><!-- EPO <DP n="35"> -->
<figure id="f0007" num="9,10"><img id="if0007" file="imgf0007.tif" wi="76" he="211" img-content="drawing" img-format="tif"/></figure><!-- EPO <DP n="36"> -->
<figure id="f0008" num="11"><img id="if0008" file="imgf0008.tif" wi="155" he="164" img-content="drawing" img-format="tif"/></figure><!-- EPO <DP n="37"> -->
<figure id="f0009" num="12"><img id="if0009" file="imgf0009.tif" wi="126" he="136" img-content="drawing" img-format="tif"/></figure>
</drawings>
<ep-reference-list id="ref-list">
<heading id="ref-h0001"><b>REFERENCES CITED IN THE DESCRIPTION</b></heading>
<p id="ref-p0001" num=""><i>This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.</i></p>
<heading id="ref-h0002"><b>Patent documents cited in the description</b></heading>
<p id="ref-p0002" num="">
<ul id="ref-ul0001" list-style="bullet">
<li><patcit id="ref-pcit0001" dnum="CNZL200610156879" dnum-type="L"><document-id><country>CN</country><doc-number>ZL200610156879</doc-number></document-id></patcit><crossref idref="pcit0001">[0002]</crossref><crossref idref="pcit0003">[0003]</crossref><crossref idref="pcit0005">[0003]</crossref></li>
<li><patcit id="ref-pcit0002" dnum="US20090184171A1"><document-id><country>US</country><doc-number>20090184171</doc-number><kind>A1</kind></document-id></patcit><crossref idref="pcit0002">[0002]</crossref><crossref idref="pcit0004">[0003]</crossref></li>
<li><patcit id="ref-pcit0003" dnum="US20090184171A"><document-id><country>US</country><doc-number>20090184171</doc-number><kind>A</kind></document-id></patcit><crossref idref="pcit0006">[0003]</crossref></li>
<li><patcit id="ref-pcit0004" dnum="EP1936535A2"><document-id><country>EP</country><doc-number>1936535</doc-number><kind>A2</kind></document-id></patcit><crossref idref="pcit0007">[0005]</crossref></li>
<li><patcit id="ref-pcit0005" dnum="WO0126034A1"><document-id><country>WO</country><doc-number>0126034</doc-number><kind>A1</kind></document-id></patcit><crossref idref="pcit0008">[0006]</crossref></li>
</ul></p>
</ep-reference-list>
</ep-patent-document>
