Two-dimensional code reader
First Claim
Patent Images
1. A two-dimensional code reader comprising:
- conversion means for receiving light reflected from two-dimensional code and converting the light into an image signal;
storage means for storing the image signal as an image memory;
code detection means for providing from the image memory a detected two-dimensional code; and
cell binarization means for binarizing values of predetermined pixels for respective cells on the detected two-dimensional code, said cell binarization means comprising;
cell gray level extraction means for finding respective gray levels of the predetermined pixels based on image signals obtained from the predetermined pixels of the cells on the detected two-dimensional code;
local threshold value determination means for finding a local threshold value from the gray levels determined by said cell gray level extraction means; and
cell binary determination means for comparing each of the gray levels found by said cell gray level extraction means with the threshold value found by said local threshold value determination means to find binary data for a corresponding cell;
wherein said local threshold value determination means defines a plurality of small areas, finds an average value and amplitude of maximum and minimum values of the gray levels of the predetermined pixels of the cells located in each of the small areas, compares adjacent small areas in terms of amplitude, and if one of the small areas has an amplitude of a predetermined value or less as compared with the other, determines a threshold value of the former small area based on the latter small area.
1 Assignment
0 Petitions
Accused Products
Abstract
A two-dimensional code reader for precisely and fast reading a two-dimensional code image containing luminance unevenness caused by variations in illumination, etc. To binarize cells, first the gray levels of the pixels at the center points of the cells are extracted, a local threshold value is found only from the extracted gray levels, and the gray levels are compared with the local threshold value, thereby binarizing the cells.
-
Citations
2 Claims
-
1. A two-dimensional code reader comprising:
-
conversion means for receiving light reflected from two-dimensional code and converting the light into an image signal; storage means for storing the image signal as an image memory; code detection means for providing from the image memory a detected two-dimensional code; and cell binarization means for binarizing values of predetermined pixels for respective cells on the detected two-dimensional code, said cell binarization means comprising; cell gray level extraction means for finding respective gray levels of the predetermined pixels based on image signals obtained from the predetermined pixels of the cells on the detected two-dimensional code; local threshold value determination means for finding a local threshold value from the gray levels determined by said cell gray level extraction means; and cell binary determination means for comparing each of the gray levels found by said cell gray level extraction means with the threshold value found by said local threshold value determination means to find binary data for a corresponding cell; wherein said local threshold value determination means defines a plurality of small areas, finds an average value and amplitude of maximum and minimum values of the gray levels of the predetermined pixels of the cells located in each of the small areas, compares adjacent small areas in terms of amplitude, and if one of the small areas has an amplitude of a predetermined value or less as compared with the other, determines a threshold value of the former small area based on the latter small area. - View Dependent Claims (2)
-
Specification