Patent ID: 8016197
Filing Date: 2011-09-13
Classification: G06K

Abstract:
1. A code reading device comprising: an acquisition section that reads a two-dimensional code image and acquires image information representing the two-dimensional code image; a derivation section that derives an image characteristic quantity representing a ratio between a number of pixels of a white region and a number of pixels of a black region for a pre-specified region of the image information acquired by the acquisition section; a correction section that, on the basis of a result of comparison of the image characteristic quantity derived by the derivation section with a reference value corresponding to the pre-specified region, applies correction to the image information to at least one of increase or decrease the number of pixels of the white region or the number of pixels of the black region to bring the image characteristic quantity closer to the reference value; and a decoding section that decodes information which has been coded and recorded in the image information, wherein if decoding by the decoding section of the corrected image information by the correction section fails, the correction section repeatedly applies correction to at least one of increase or decrease the number of pixels of the white region or the number of pixels of the black region while changing an increase/decrease amount so as to bring the image characteristic quantity closer to the reference value with respect to the image information, and stops repeatedly applying the correction when the increase/decrease amount exceeds a pre-specified value.