摘要 |
Disclosed is a technology for specifying each area to be identified in an image. Specifically disclosed are a two-dimensional code reader and program that generate (S108) edge images based on obtained images (original images), extract (S110) candidate regions within these edge images, determine (S120, S122) whether or not the extracted candidate regions are valid, determine (S128) whether or not characteristic patterns are included in each corresponding region in the original image that corresponds to the candidate region that was determined to be valid, and then detects (S130) two-dimensional code regions within original images. In addition, the two-dimensional code reader and program repeatedly implement (S108-S290) generation of edge images based on conversion conditions that correspond to the applicable order among a plurality of conversion condition types in a pre-set order, detection of candidate regions among the generated edge images, determination of whether or not the extracted candidate regions are valid, determination of whether or not characteristic patterns are included in the corresponding regions in the original images that correspond to valid candidate regions, and detection of two-dimensional code regions.
|