Two-dimensional code reading method, two-dimensional code reading program, recording medium with two-dimensional code reading program, two-dimentional code reading device, digital camera and portable terminal with digital camera
First Claim
1. A two-dimensional code reading method comprising processing steps of acquiring an image of a matrix type two-dimensional code composed of a number of cells arranged in vertical and horizontal directions to form a matrix of the cells each representing binary coded data, deciding a two-dimensional code area in the image, setting inspection lines identifying a center position of each of the cells, said inspection lines each joining two paired opposites of four sides defining the boundary of the decided two-dimensional code area and reproducing information of the two-dimensional code based on the inspection lines set by the inspection line setting processing, wherein coefficients in image position calculating equations for calculating coordinate positions of center positions of respective cells in the two-dimensional code compensated for image inclination by adding inclination information for the two-dimensional code are calculated for setting the inspection lines on the two-dimensional code image based on coordinate positions of 4 points within the two-dimensional code area decided by the two-dimensional code area deciding step.
1 Assignment
0 Petitions
Accused Products
Abstract
Coordinate positions of four points including three position detecting element patterns and an indexing pattern are detected from a two-dimensional code image captured, the two-dimensional code size is determined, coefficients of equations for determining coordinate positions corresponding to center positions of respective cells compensated for inclination of the image by adding depth information are determined, the coordinate positions of respective cell center positions are determined according to the calculation equations by applying the determined coefficients, brightness/darkness is discriminated from image data corresponding to the respective cell center positions and binary data (0 or 1) for respective cells are generated, information of the two-dimensional code is reproduced based on the binary data. The equations are expressed by recurrence formulas. The coefficients determined from the coordinate positions of 4 points of the two-dimensional code are divided by the same constant to make them integers.
-
Citations
13 Claims
- 1. A two-dimensional code reading method comprising processing steps of acquiring an image of a matrix type two-dimensional code composed of a number of cells arranged in vertical and horizontal directions to form a matrix of the cells each representing binary coded data, deciding a two-dimensional code area in the image, setting inspection lines identifying a center position of each of the cells, said inspection lines each joining two paired opposites of four sides defining the boundary of the decided two-dimensional code area and reproducing information of the two-dimensional code based on the inspection lines set by the inspection line setting processing, wherein coefficients in image position calculating equations for calculating coordinate positions of center positions of respective cells in the two-dimensional code compensated for image inclination by adding inclination information for the two-dimensional code are calculated for setting the inspection lines on the two-dimensional code image based on coordinate positions of 4 points within the two-dimensional code area decided by the two-dimensional code area deciding step.
-
5. A two-dimensional code reading method comprising processing steps of acquiring an image of a stack type two-dimensional code composed of a number of bar codes arranged in multiple layers in a direction perpendicular to a direction of arrangement of bars in each bar code representing data, deciding a two-dimensional code area in the image;
- setting an inspection line identifying a center position of each of the bar codes, said inspection line joining one of two pairs of opposites of four sides representing the boundary of the decided two-dimensional code area, said pair opposite to each other in the direction of arrangement of bars in each bar code; and
reproducing information of the two-dimensional code based on the inspection lines set in the inspection line setting step, wherein coefficients in image position calculating equations for calculating coordinate positions of center positions of respective cells in the two-dimensional code compensated for image inclination by adding inclination information for the two-dimensional code are calculated for setting the inspection lines on the two-dimensional code image based on coordinate positions of 4 points within the two-dimensional code area decided by the two-dimensional code area deciding step.
- setting an inspection line identifying a center position of each of the bar codes, said inspection line joining one of two pairs of opposites of four sides representing the boundary of the decided two-dimensional code area, said pair opposite to each other in the direction of arrangement of bars in each bar code; and
- 8. A two-dimensional code reading device comprising an image capturing portion for capturing an image of a matrix type two-dimensional code composed of a number of cells arranged in vertical and horizontal directions to form a matrix of the cells each representing binary coded data, a two-dimensional code area deciding portion for deciding a two-dimensional code area in the two-dimensional code image, an inspection line setting portion for setting inspection lines identifying a center position of each of the cells, said inspection lines each joining two paired opposites of four sides defining the boundary of the decided two-dimensional code area and a decoding portion for reproducing information of the two-dimensional code based on the inspection lines, wherein the inspection line setting portion based on coordinate positions of 4 points within the two-dimensional code area decided by the two-dimensional code area deciding portion calculates coefficients for image position calculating equations for determining coordinate positions of center positions of respective cells in the two-dimensional code compensated for the inclination of the image by adding inclination information for the two-dimensional code.
Specification