Detection method of two-dimensional code, detection device for the same, and storage medium storing detection program for the same
First Claim
1. A method for detecting a two-dimensional code of three position detection patterns provided in positions corresponding to respective apices of a right angled isosceles triangle, and a data region is provided in a region defined by the position detection patterns, the method comprising:
- detecting a plurality of position detection patterns included in an image;
identifying positions of the center points of the detected position detection patterns;
detecting groups of three center points, the three center points of each group constituting apices of a corresponding right angled isosceles triangle;
detecting, from among the groups of three center points, combinations of three center points, the three center points of each combination being included in a corresponding same two-dimensional code from among the identified center point positions, bydefining a candidate two-dimensional code region as a square formed by a combination of three center points,setting a virtual line that forms a square that is separated by a predetermined distance from an outer periphery of the candidate two-dimensional code region, anddetermining that a previously standardized blank region exists along the virtual line if the proportion of white pixels to the total number of pixels on the virtual line exceeds a threshold, anddetermining the combination of three center points that forms the candidate two-dimensional code region with the virtual line having the blank region being included in the corresponding same two-dimensional code; and
determining the candidate two-dimensional code region in the combination of three center points included in the corresponding same two-dimensional code as a two-dimensional code region to be decoded.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for detecting a two-dimensional code in which three position detection patterns are provided in positions corresponding to respective apices of a right angled isosceles triangle, and a data region is provided in a region defined by the position detection patterns is provided. The method includes detecting plural position detection patterns included in an image; identifying center points of the detected position detection patterns; selecting, from among the center points that positions are identified, three center points that constitute apices of a right angled isosceles triangle; extracting a feature as a two-dimensional code from a two-dimensional code region defined by the position detection patterns corresponding to the selected center points, or the peripheral region thereof; and in case where the feature as a two-dimensional code is extracted, determining that a two-dimensional code exists in the two-dimensional code region.
42 Citations
19 Claims
-
1. A method for detecting a two-dimensional code of three position detection patterns provided in positions corresponding to respective apices of a right angled isosceles triangle, and a data region is provided in a region defined by the position detection patterns, the method comprising:
-
detecting a plurality of position detection patterns included in an image; identifying positions of the center points of the detected position detection patterns; detecting groups of three center points, the three center points of each group constituting apices of a corresponding right angled isosceles triangle; detecting, from among the groups of three center points, combinations of three center points, the three center points of each combination being included in a corresponding same two-dimensional code from among the identified center point positions, by defining a candidate two-dimensional code region as a square formed by a combination of three center points, setting a virtual line that forms a square that is separated by a predetermined distance from an outer periphery of the candidate two-dimensional code region, and determining that a previously standardized blank region exists along the virtual line if the proportion of white pixels to the total number of pixels on the virtual line exceeds a threshold, and determining the combination of three center points that forms the candidate two-dimensional code region with the virtual line having the blank region being included in the corresponding same two-dimensional code; and determining the candidate two-dimensional code region in the combination of three center points included in the corresponding same two-dimensional code as a two-dimensional code region to be decoded. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for detecting a two-dimensional code of three position detection patterns provided in positions corresponding to respective apices of a right angled isosceles triangle, and a data region is provided in a region defined by the position detection patterns, the method comprising:
-
detecting a plurality of position detection patterns included in an image; identifying positions of the center points of the detected position detection patterns; detecting groups of three center points, the three center points of each group constituting apices of a corresponding right angled isosceles triangle; detecting, from among the groups of three center points, combinations of three center points, the three center points of each combination being included in a correspondence same two-dimensional code from among the identified center point positions, by defining a candidate two-dimensional code region as a square formed by a combination of three center points, setting a virtual region inside by a predetermined distance from the outer periphery of the candidate two-dimensional code region, determining a previously standardized blank region exists in the virtual region if the proportion of white pixels to the total number of pixels in the virtual region exceeds a threshold region, and determining the combination of three center points that forms the candidate two-dimensional code region with the virtual region having the blank region being included in the corresponding same two-dimensional code; and determining the candidate two-dimensional code region in the combination of three center points included in the correspondence same two-dimensional code as a two-dimensional code region to be decoded. - View Dependent Claims (9)
-
-
10. A two-dimensional code detection device for detecting a two-dimensional code of three position detection patterns provided in positions corresponding to respective apices of a right angled isosceles triangle, and a data region is provided in a region defined by the position detection patterns, the device comprising:
-
a reference position identification section that detects the position detection patterns included in an image, and identifies center points of the detected position detection patterns; detecting groups of three center points, the three center points of each group constituting apices of a corresponding right angled isosceles triangle; a feature extracting section that detects, from among the groups of three center points, combinations of three center points, the three center points of each combination being included in a corresponding same two-dimensional code from among the identified center point positions identified by the reference position identification section, by being configured to; define a candidate two-dimensional code region as a square formed by a combination of three center points, set a virtual line that forms a square that is separated by a predetermined distance from an outer periphery of the candidate two-dimensional code region, and determine that a previously standardized blank region exists along the virtual line if the proportion of white pixels to the total number of pixels on the virtual line exceeds a threshold, and determine the combination of three center points that forms the candidate two-dimensional code region with the virtual line having the blank region being included in the corresponding same two-dimensional code; and a determination section that determines the candidate two-dimensional code region in the combination of three center points included in the corresponding same two-dimensional code as a two-dimensional code region to be decoded by the feature extraction section. - View Dependent Claims (11, 12)
-
-
13. A non-transitory storage medium storing a program to detect, by a computer, a two-dimensional code of three position detection patterns provided in positions corresponding to respective apices of a right angled isosceles triangle, and a data region is provided in a region defined by the position detection patterns, the program causing the computer to perform a two-dimensional code detection process comprising:
-
detecting a plurality of position detection patterns included in a binary image; identifying positions of the center points of the detected position detection patterns; detecting groups of three center points, the three center points of each group constituting apices of a corresponding right angled isosceles triangle; detecting, from among the groups of three center points, combinations of three center points, the three center points of each combination being included in a corresponding same two-dimensional code from among the identified center point positions, by defining a candidate two-dimensional code region as a square formed by a combination of three center points, setting a virtual line that forms a square that is separated by a predetermined distance from an outer periphery of the candidate two-dimensional code region, and determining that a previously standardized blank region exists along the virtual line if the proportion of white pixels to the total number of pixels on the virtual line exceeds a threshold, and determining the combination of three center points that forms the candidate two-dimensional code region with the virtual line having the blank region being included in the corresponding same two-dimensional code; and determining the candidate two-dimensional code region in the combination of three center points included in the corresponding same two-dimensional code as a two-dimensional code region to be decoded.
-
-
14. A two-dimensional code detection method, comprising:
-
storing in a storage section in advance a contrast pattern of a position detection pattern that is disposed at three corners of a square; identifying all image regions that match the contrast pattern on the basis of read image data obtained by reading a document; and detecting groups of three image regions from all of the identified image regions, the three image regions of each group constituting apices of a corresponding right angled isosceles triangle figure by connecting the centers thereof to one another with a line; detecting, from among the groups of three image regions, combinations of three image regions, the three image regions of each combination being included in a corresponding same two-dimensional code, by defining a candidate two-dimensional code region as a square formed by a combination of three center points, setting a virtual line that forms a square that is separated by a predetermined distance from an outer periphery of the candidate two-dimensional code region, and determining that a previously standardized blank region exists along the virtual line if the proportion of white pixels to the total number of pixels on the virtual line exceeds a threshold, and determining the combination of three center points that forms the candidate two-dimensional code region with the virtual line having the blank region being included in the corresponding same two-dimensional code; and detecting, for each of the combinations, a region specified by the three position detection patterns as the two-dimensional code. - View Dependent Claims (15, 16, 17, 18)
-
-
19. A two-dimensional code detection device, comprising:
-
a storage section that stores in advance a contrast pattern of a position detection pattern that is disposed at three corners of a square; a position detection pattern identifying section that, on the basis of read image data obtained by reading a document, identifies all image regions that match the contrast pattern; and a group detection section that detects groups of three image regions, the three image regions of each group constituting apices of a corresponding right angled isosceles triangle figure by connecting the centers thereof to one another with a line; a combination detection section that detects, from among the groups of three image regions, combinations of three image regions, the three image regions of each combination being included in a corresponding same two-dimensional code, by being configured to; define a candidate two-dimensional code region as a square formed by a combination of three center points, set a virtual line that forms a square that is separated by a predetermined distance from an outer periphery of the candidate two-dimensional code region, and determine that a previously standardized blank region exists along the virtual line if the proportion of white pixels to the total number of pixels on the virtual line exceeds a threshold, and determine the combination of three center points that forms the candidate two-dimensional code region with the virtual line having the blank region being included in the corresponding same two-dimensional code;
wherein thedetect, for each of the combinations, a region specified by the three position detection patterns as the two-dimensional code.
-
Specification