Apparatus for optically reading information stored in graphic symbol
Granted 12 Aug 2014 · 2 office actions
Current assignee: DENSO WAVE INCORPORATED · originally Denso Corporation
Law firm: Law firm · Log in to unlock
Attorney: Attorney · Log in to unlock
Inventors: Kunihiko Ito, Koji Konosu, Masami Tanaka, Hiroshi Ota +1 · Examiner: Daniel Walsh · AU 2887 · TC 2800
Life of the application
12 dated eventsAbstract
In an apparatus for optically reading a graphic symbol composed of a plurality of optically identifiable unit sections of information, a first image pickup unit has a first photodetector and picks up a first optical image of the graphic symbol based on light detected by the first photodetector. A second image pickup unit has a second photodetector and configured to pick up a second optical image of the graphic symbol based on light detected by the second photodetector. A correcting unit corrects a light intensity level of at least one section of one of the first and second optical images based on a light intensity level of at least one section of the other of the first and second optical images. The at least one section corresponds to at least one of the unit sections of information of the graphic symbol.
Description
29 parts›CROSS REFERENCE TO RELATED APPLICATIONS
This application is based on Japanese Patent Applications 2006-172957, 2006-241504, and 2007-075345 which were respectively filed on Jun. 22, 2006, Sep. 6, 2006, and Mar. 22, 2007. This application aims the benefit of priority from the Japanese Patent Applications, so that the descriptions of which are all incorporated herein by reference.
›FIELD OF THE INVENTION
The present invention relates to apparatuses capable of optically reading graphic symbols, such as barcodes, QR Codes®, and the like, used to be attached to targets, such as commercial goods.
›BACKGROUND OF THE INVENTION · 1 of 2
Optical information readers that aim at optically reading information symbols, such as barcodes, QR codes, and the like, attached to goods and documents have been well known.
Such optical information readers are each made up of a handheld body case provided at its one end portion with a reading window; a photodetector, such as a CCD (Charge-Coupled Device) area sensor; an imaging unit with an imaging lens; and a light illuminating device, such as a LED (Light Emitting Diode). The photodetector, the imaging unit, and the light illuminating device are installed in the body case.
In this structure of the optical information reader, when a user wants to read an information symbol attached to a goods, the user for example locates the optical information reader so that the reading window is opposite to the goods and away therefrom at an arbitrary distance.
While the optical information reader is arranged in such a state, the light illuminating device works to supply illumination light through the reading window toward an information symbol to be irradiated thereto. Light reflected from the information symbol based on the irradiated illumination light enters through the reading window into the imaging unit.
The light entered into the imaging unit is focused on the photodetector by the imaging lens to be imaged thereon, so that an image corresponding to the information symbol is picked up by the photodetector. Based on the contrast pattern between light (white) pixels and dark (black) pixels in the picked-up image, information stored in the information symbol can be decoded.
When such an optical information reader is used to read an information symbol printed on a calendered paper, the illumination light irradiated on the information symbol on the calendered paper may be specularly reflected depending on an incident angle of the illumination light with respect to the calendered paper. The incident angle of the illumination light with respect to a surface of a target for reading means an angle of the illumination light with respect to the normal of the surface. The incident angle will also be referred to as a reading angle hereinafter.
This specular reflection (mirror reflection) may cause at least part of the information symbol to be picked up as light pixels (white pixels) independently of the light and dark information stored in the corresponding at least part of the information symbol. This may cause improper reading of the information stored in the information symbol
Particularly, in reading an information symbol directly marked on a metal surface of goods in direct marking, such specular reflection may likely appear, making it difficult to properly read the information stored in the information symbol.
In such cases where the information stored in an information symbol is improperly read by an optical information reader, the optical information reader is designed to determine that a target for reading is abnormal. For this reason, a user periodically tries to:
rearrange the optical information reader in front of the target information symbol while changing the position of the optical information reader relative to the target information symbol and/or the reading angle of the optical information reader with respect thereto; and
perform the image reading operations every rearranging.
This may deteriorate the efficiency of reading the information stored in the information symbol.
In order to reduce the influence of specular reflection, some conventional optical information readers have been prepared.
As a first example, U.S. Pat. Publication No. 6,394,349 corresponding to Japanese Unexamined Patent Publication No. H11-120284 discloses an optical information reader.
The optical information reader as the first example is designed to:
irradiate a target information code by using one combination of a plurality of illumination light beams whose irradiating directions with respect to the information code are different from each other;
read a first image of the information code using light reflected by the information code based on the one combination of the plurality of illumination light beams being irradiated on the information code;
determine whether a specular reflection region exists in the first image;
irradiate the target information code by using another combination of the plurality of illumination light beams when it is determined that a specular reflection region exists in the first image;
read a second image of the information code using light reflected by the information code based on another combination of the plurality of illumination light beams being irradiated on the information code; and
combine the first image and the second image, thus reading the combined image.
As a second example, Japanese Unexamined Patent Publication No. S59-41088 discloses an optical information reader designed to mechanically change the incident angle of an illumination light with respect to an information code when optically detecting the occurrence of specular reflection.
However, in the optical information reader of the second example, the structure of the mechanical change of the incident angle may increase in complexity.
As a third example, Japanese Unexamined Patent Publication No. H02-98789 discloses an image reader with first and second image pickup devices. The first and second image pickup devices are disposed opposing to a calendered surface of a target plate on which a character string has been printed such that whose optical axes are orthogonal thereto and parallel to each other. When the first and second image pickup devices work to respectively pick up corresponding first and second images of the target, the first and second images are written into corresponding first and second memories, respectively.
Thereafter, an image superimposing circuit of the image reader is designed to carry out image superimposing tasks to:
associate all addresses of the first memory with those of the second memory such that a part of the first image of the same part of the target corresponds to that of the second image thereof;
›BACKGROUND OF THE INVENTION · 2 of 2
compare the light intensity data of each pixel of the first image data with that of a corresponding one pixel of the second image data;
select the light intensity data of some pixels of the first image data to write it into a superimposing image memory when it is determined that the light intensity of some pixels of the first image data is lower than that of corresponding some pixels of the second image data based on the comparison result; and
select the light intensity data of the remaining pixels of the second image data to write it into the superimposing image memory when it is determined that the light intensity of the remaining pixels of the first image data is lower than that of the corresponding remaining pixels of the second image data based on the comparison result.
However, in the image reader of the third example, because the image superimposing task is carried out pixel by pixel of each of the first and second images of the target, it may increase in complexity.
In addition, in direct marking, an information symbol is directly printed on a surface of a target part. For this reason, there are many information symbols to be used for directly marking, whose unit section of information contained therein, such as a cell in QR codes, is smaller in size than that of information contained in another information symbol to be used except for the directly marking.
In order to read an information symbol consisting of a plurality of unit sections of information having a comparatively small size, the angle of view of an imaging unit of an optical information reader is set to be narrow. This allows the number of pixels of a photodetector to be allocated to each unit section of information of the information symbol to increase. Note that, in this specification, the angle of view of an imaging unit means the angle of visible field of view measured from the center of an imaging lens. In other words, the angle of view of an imaging unit means the angle of a field of view of a photodetector to be imaged thereby.
However, the narrower the angle of view of an imaging lens is, the narrower the field of view of a photodetector is. For this reason, an information reader with an imaging unit having a narrow angle of view can pick up an image of an information symbol consisting of a plurality of comparatively small-sized unit sections of information. However, it may be difficult for an information reader with an imaging unit having a narrow angle of view to pick up an image of an information symbol consisting of a plurality of comparatively large-sized unit sections of information. This is because the information symbol consisting of a plurality of comparatively large-sized unit sections of information may extend off the filed of view of the photodetector.
›SUMMARY OF THE INVENTION
In view of the background, an object of at least one aspect of the present invention is to provide optical information reading apparatuses, which are capable of simply reading information stored in a graphic symbol with either little or no influence of at least one of specular reflection and the size of each unit section of information contained in the graphic symbol.
According to one aspect of the present invention, there is provided an apparatus for optically reading a graphic symbol composed of a plurality of optically identifiable unit sections of information. The apparatus includes a first image pickup unit having a first photodetector and configured to pick up a first optical image of the graphic symbol based on light detected by the first photodetector. The apparatus includes a second image pickup unit having a second photodetector and configured to pick up a second optical image of the graphic symbol based on light detected by the second photodetector. The apparatus includes a correcting unit configured to correct a light intensity level of at least one section of one of the first and second optical images based on a light intensity level of at least one section of the other of the first and second optical images. The at least one section corresponds to at least one of the unit sections of information of the graphic symbol.
According to another aspect of the present invention, there is provided an apparatus for optically reading a graphic symbol composed of a plurality of optically identifiable unit sections of information. The apparatus includes a first image pickup unit having a first imaging optics and a first photodetector optically coupled thereto. The first imaging optics and the first photodetector have a predetermined first field of view. The first image pickup unit is configured to pick up a first optical image of the graphic symbol based on light transferred from the graphic symbol located within the first field of view. The apparatus includes a second image pickup unit having a second imaging optics and a second photodetector optically coupled thereto. The second imaging optics and the second photodetector have a predetermined second field of view. The second image pickup unit is configured to pick up a second optical image of the graphic symbol based on light transferred from the graphic symbol located within the second field of view. The first imaging optics, the first photodetector, the second imaging optics, and the second photodetector are optically arranged such that the first field of view and the second field of view are substantially overlapped with each other. The apparatus includes a correcting unit configured to correct a light intensity level of at least one section of one of the first and second optical images based on a light intensity level of at least one section of the other of the first and second optical images.
According to a further aspect of the present invention, there is provided an apparatus for optically reading a graphic symbol composed of a plurality of optically identifiable unit sections of information, at least one of the unit sections represents a position detecting pattern. The apparatus includes a first image pickup unit having a first imaging optics and a first photodetector optically coupled thereto. The first imaging optics has a predetermined first angle of view. The first image pickup unit is configured to pick up a first optical image of the graphic symbol based on light transferred from the graphic symbol via the first imaging optics and detected by the first photodetector. The apparatus includes a second image pickup unit having a second imaging optics and a second photodetector optically coupled thereto. The second imaging optics has a predetermined second angle of view different in size from the first angle of view. The second image pickup unit is configured to pick up a second optical image of the graphic symbol based on light transferred from the graphic symbol via the second angle of view and detected by the second photodetector. The first imaging optics, the first photodetector, the second imaging optics, and the second photodetector are optically arranged such that a first field of view of the first photodetector and a second field of view of the second photodetector are substantially overlapped with each other. The apparatus includes a decoding unit configured to select one of the first optical image and the second optical image based on a difference between the position detecting pattern contained in the first optical image and the position detecting pattern contained in the second optical image, and to decode information of the unit sections of the graphical symbol based on the selected one of the first optical image and the second optical image.
›BRIEF DESCRIPTION OF THE DRAWINGS · 1 of 2
Other objects and aspects of the invention will become apparent from the following description of embodiments with reference to the accompanying drawings in which:
FIG. 1 is a cross sectional view schematically illustrating an example of the structure of an optical information reader according to a first embodiment of the present invention;
FIG. 2 is a view as viewed from the direction of arrow A of FIG. 1 ;
FIG. 3 is a block diagram schematically illustrating an example of the circuit structure of the optical information reader illustrated in FIG. 1 ;
FIG. 4 is a perspective view schematically illustrating field of views of first and second photodetectors illustrated in FIG. 3 ;
FIG. 5 is a view schematically illustrating an example of the structure of a QR code according to the first embodiment;
FIG. 6 is a flowchart schematically illustrating flow of reading operations of a QR code executable by the optical information reader illustrated in FIG. 1 ;
FIG. 7A is a view schematically illustrating the positional relationships between orientations of a positioning symbol of the QR code and a horizontal scanning line of a photodetector according to the first embodiment;
FIG. 7B is a view schematically illustrating signal waveforms corresponding to light and dark patterns respectively detectable along horizontal scanning lines (a), (b), and (c) illustrated in FIG. 7A ;
FIG. 8A is a view schematically illustrating clipped first and second QR code images and first and second image data respectively based on the first and second QR code images according to the first embodiment;
FIG. 8B is a view schematically illustrating digital values indicative of light intensity levels of some of cells of each of the first and second image data according to the first embodiment;
FIG. 9 is a view schematically illustrating a specular reflection region contained in each of a first image and a second image and a QR code image from which the specular reflection region is eliminated according to the first embodiment;
FIG. 10 is a view schematically illustrating misalignment between a specular reflection region contained in the first image and that contained in the second image;
FIG. 11 is a cross sectional view schematically illustrating an example of the structure of a barcode reader according to a first embodiment of the present invention;
FIG. 12 is a flowchart schematically illustrating flow of reading operations of a QR code executable by the barcode reader illustrated in FIG. 11 ;
FIG. 13 is a view schematically illustrating a part of a barcode as a reading target of the barcode reader, and waveforms of a first image and a second image respectively picked up by first and second photodetectors illustrated in FIG. 11 ;
FIG. 14 is a flowchart schematically illustrating flow of reading operations of a QR code executable by an optical information reader according to a third embodiment of the present invention;
FIG. 15 is a view schematically illustrating clipped first and second QR code images and first and second binary data respectively based on the first and second QR code images according to the third embodiment;
FIG. 16 is a view schematically illustrating binary digits assigned to cells in the first binary data, binary digits assigned to the same cells in the second binary data, and binary digits assigned to the same cells of combined image data according to the third embodiment;
FIG. 17 is a view schematically illustrating a specular reflection region contained in each of a first image and a second image and a QR code image from which the specular reflection region is eliminated according to the third embodiment;
FIG. 18 is a table schematically illustrating a logical combination rule used by the optical information reader according to the third embodiment;
FIG. 19 is a flowchart schematically illustrating flow of reading operations of a QR code executable by an optical information reader according to a fourth embodiment of the present invention;
FIG. 20 is a view schematically illustrating originally reversal first and second QR code images and black-and-white inverted first and second QR code images based on the originally reversal first and second QR code images according to the fourth embodiment;
FIG. 21 is a view schematically illustrating clipped first and second QR code images and first and second binary data respectively based on the first and second QR code images according to the fourth embodiment;
FIG. 22 is a view schematically illustrating binary digits assigned to cells in the first binary data, binary digits assigned to the same cells in the second binary data, and binary digits assigned to the same cells of combined image data according to the third embodiment;
FIG. 23 is a table schematically illustrating a logical combination rule used by the optical information reader according to the fourth embodiment;
FIG. 24 is a perspective view schematically illustrating an example of part of the structure of a reading unit according to a fifth embodiment of the present invention;
FIG. 25 is a flowchart schematically illustrating flow of reading operations of a QR code executable by an optical information reader according to the fifth embodiment of the present invention;
FIG. 26 is a view schematically illustrating clipped first to third binary data according to the fifth embodiment;
FIG. 27 is a view schematically illustrating binary digits assigned to cells in the first binary data, binary digits assigned to the same cells in the second binary data, binary digits assigned to the same cells in the third binary data, and binary digits assigned to the same cells of combined image data according to the fifth embodiment;
FIG. 28 is a block diagram schematically illustrating an example of the circuit structure of an optical information reader according to a sixth embodiment of the present invention;
FIG. 29 is a perspective view schematically illustrating field of views of first and second photodetectors illustrated in FIG. 28 ;
FIG. 30 is a view schematically illustrating first QR code images of different QR codes in size being picked up by the field of view of the first photodetector, and second QR code images of the different QR codes in size being picked up by the second of view of the second photodetector;
›BRIEF DESCRIPTION OF THE DRAWINGS · 2 of 2
FIG. 31 is a view schematically illustrating a relationship between horizontal scanning lines of a photodetector and a QR code to be read according to the sixth embodiment;
FIG. 32 is a flowchart schematically illustrating flow of reading operations of a QR code executable by an optical information reader according to the sixth embodiment of the present invention; and
FIG. 33 is a flowchart schematically illustrating a pixel counting subroutine illustrated in FIG. 32 .
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 1 of 22
Embodiments of the present invention will be described hereinafter with reference to the accompanying drawings.
First Embodiment
Referring to FIGS. 1 to 3 , an optical information reader 10 according to a first embodiment of the present invention, referred to simply as “information reader 10 ”, is designed to read graphic symbols including two-dimensional codes, such as QR codes, barcodes, or other various types of graphic symbols.
The graphic symbols have been attached to targets, such as commercial goods or the like, by directly or indirectly marking, printing, or using other methods. The target R includes a label that is a piece of paper or another media. The target R can be attached on goods, which is the same as general barcodes. For example, such a graphic symbol includes information, such as a manufacturer serial number, a name, a unique identification number, a date of manufacture of the corresponding target, and the like.
In recent years, the screen of a display (e.g. a liquid crystal display) in computer terminals including a cellular phone, a PDA (Personal Digital Assistant), or the like, can be used as one of the targets. Specifically, in this case, a graphic symbol is displayed on the screen of the display.
Specifically, the information reader 10 is equipped with a substantially rectangular-parallelepiped housing 11 . The housing 11 is made of synthetic resin, such as ABS resin and formed at its one lateral end with a substantially rectangular shaped reading window 11 a communicated with the inner hollow space of the housing 11 . For example, the reading window 11 a can be designed as an opening wall or translucent surface. The size of the reading window 11 a can be designed to allow the apparatus 10 to read various types of information symbols as targets of the information reader 10 .
The housing 11 includes one and the other opposing long sidewalls 11 S 1 and 11 S 2 . The one long side wall 11 S 1 is formed at its one lateral end side (reading-window side) with an opening or a translucent display window DW.
The information reader 10 is provided with operation switches 12 and 14 mounted on the one long sidewall 11 S 1 to be operable by users. For example, the operation switches 12 and 14 allow a user to enter various instructions to the information reader 10 .
The information reader 10 is equipped with a circuit unit 20 installed in the housing 11 . The circuit unit 20 is composed of a plurality of circuit components 20 a described hereinafter, a substantially rectangular-shaped first circuit board 15 , and a substantially rectangular-shaped second circuit board 16 . Some of the circuit components are mounted on either the first circuit board 15 or second circuit board 16 to be electrically connected to each other thereon/therein.
The first circuit board 15 is supported to, for example, the other long sidewall 11 S 2 to be arranged in the longitudinal direction of the information reader 10 . Similarly, the second circuit board 16 is supported to, for example, the one long sidewall 11 S 1 to be arranged in the longitudinal direction of the information reader 10 .
The information reader 10 is provided with an optical system 17 mounted on one surface of one lateral end (reading-window side end) of the second circuit board 16 opposing one lateral end of the first circuit board 15 . The information reader 10 is also provided with a reading unit 18 mounted on one surface of the first circuit board 15 opposing the one lateral end of the second circuit board 16 .
As illustrated in FIGS. 2 and 3 , the optical system 17 is composed of a pair of first and second illuminating red LEDs (Light Emitting Diodes) 21 A and 21 B and a pair of first and second collective lenses 52 A and 52 B.
For example, in the first embodiment, the first and second LEDs 21 A and 21 B are symmetrically disposed both sides of a center axis XC of the information reader 10 in parallel to the longitudinal direction of the reading window 11 a (see “Y direction” in FIG. 2 ). The center axis XC of the information reader 10 is defined to pass the center of the reading window 11 a in the longitudinal direction of the information reader 10 orthogonal to the reading-window surface (see “X direction” in FIG. 2 ).
The first and second LEDs 21 A and 21 B are arranged such that their optical axes are directed to the center area of the reading window 11 a while intersect with each other.
Each of the collective lens 52 A and 52 B consists of a diffusing lens and a convex lens. Each of the collective lens 52 A and 52 B is coaxially aligned with a corresponding one of the first and second LEDs 21 A and 21 B.
The arrangement of the optical system 17 permits red illumination light Lf emitted from each of the LEDs 21 A and 21 B via a corresponding one of the collective lens 52 A and 52 B to be transferred through the reading window 11 a toward the exterior thereof (see FIG. 3 ).
In addition, as illustrated in FIGS. 2 and 3 , the reading unit 18 is composed of a pair of first and second photodetectors 23 A and 23 B and a pair of first and second imaging lenses 27 A and 27 B, which are examples of various types of imaging optics.
Each of the first and second photodetectors 23 A and 23 B is for example composed of a two-dimensional image sensor, such as a CMOS image sensor, a CCD (Charge Coupled Device) image sensor, or the like. Specifically, each of the first and second photodetectors 23 A and 23 B is provided at its one surface with a light-sensitive pixel area 23 Aa and 23 Ba. The light-sensitive pixel area of each of the first and second photodetectors 23 A and 23 B has a substantially rectangular or square shape, and is composed of optoelectric transducers (pixels) vertically and horizontally arranged in matrix (in height and width). Each of the optoelectric transducers of each of the first and second photodetectors 23 A and 23 B is operative to sense light, convert the sensed light to an electric signal (image), and output it.
Each of the first and second imaging lenses 27 A and 27 B is for example composed of a body tube and a plurality of collective lenses disposed coaxially therein.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 2 of 22
For example, in the first embodiment, the first and second imaging lenses 27 A and 27 B are mounted on the one surface of the first circuit board 15 to be symmetrically disposed both sides of the center axis XC of the information reader 10 in parallel to the direction Y of the reading window 11 a.
The first and second imaging lenses 27 A and 27 B are arranged such that their optical axes Xa and Xb are parallel to the center axis XC of the information reader 10 .
As illustrated in FIG. 2 , the first and second photodetectors 23 A and 23 B are respectively mounted on the first circuit board 15 such that:
their pixel areas respectively face the first and second imaging lenses 27 A and 27 B;
their other surfaces are located on a virtual plane VP disposed orthogonal to their optical axes (center axes) XA and XB of their pixel areas; and
their optical axes XA and XB are arranged with a predetermined interval d 1 therebetween to be shifted laterally from and parallely to the optical axes Xa and Xb of the first and second imaging lenses 27 A and 27 B.
The arrangement of the first and second photodetectors 23 A and 23 B and the first and second imaging lenses 27 A and 27 B allow predetermined FOVs (Field Of Views) FA and FB of the first and second photodetectors 23 A and 23 B to be superimposed on a virtual plane P 1 (see FIG. 4 ).
As illustrated in FIGS. 2 and 4A , the virtual plane P 1 is located externally close to and parallel to the reading window 11 a of the information reader 10 at a constant distance D 1 from a virtual plane P 2 in the direction X of the information reader 10 . The virtual plane P 2 contains the pixel areas of the first and second photodetectors 23 A and 23 B.
Specifically, in starting to read a QR code Q attached onto one surface of a target R, the information reader 10 is located so that the reading window 11 a is opposite to the target R and that the QR code Q is positioned within the FOVs FA and FB.
Next, for example, turning ON of the operation switch 12 permits each of the LEDs 21 A and 21 B to emit red illumination light Lf toward the target R. The red illumination light emitted from each of the LEDs 21 A and 21 B is transferred via a corresponding one of the first and second collective lenses 52 A and 52 B and the reading window 11 a to be irradiated on the target R and the QR code Q.
Light reflected from the target R containing the QR code Q based on the red illumination light is entered through the reading window 11 a into each of the imaging lenses 27 A and 27 B. The reflected light entered into each of the imaging lenses 27 A and 27 B is focused on the pixel area of a corresponding one of the first and second photodetectors 23 A and 23 B.
At that time, turning ON of the operation switch 14 allows the optoelectric transducers of each of the first and second photodetectors 23 A and 23 B to be driven so that an image corresponding to the target R containing the QR code Q is picked up by each of the first and second photodetectors 23 A and 23 B.
Specifically, a charge in each optoelectric transducer of the pixel area of the first photodetector 23 A based on the reflected light imaged on the pixel area constituting a first image is scanned horizontal-line by horizontal-line so that the first image corresponding to a light intensity of each optoelectric transducer of the pixel area of the first photodetector 23 A is output. Similarly, a charge in each optoelectric transducer of the pixel area of the second photodetector 23 B based on the reflected light imaged on the pixel area constituting a second image is scanned horizontal-line by horizontal-line so that the second image corresponding to a light intensity of each optoelectric transducer of the pixel area of the second photodetector 23 B is output.
Next, the structure of the QR code Q to be readable by the information reader 10 will be described hereinafter with reference to FIG. 5 .
The QR code Q has a substantially square shape with four apexes at its corners. The QR code Q is composed of three isolated positioning marks (finding patterns) QP, QP, QP disposed respectively at three corners of the QR code Q.
The QR code Q is also composed of an apex detecting cell QT located at the remaining corner of the QR code Q, and of a data region QG arranged among the three isolated positioning marks QP, QP, QP and the apex detecting cell QT.
The QR code Q is constituted by the same number of vertical and horizontal cells C, for example, 13×13 cells.
Each cell C is selected from optically identifiable two kinds of cells. For example, in the first embodiment, one of the optically identifiable two kinds of cells is printed in black (dark) color whereas the other thereof is printed in white (light) color whose light reflectance is different from that of the black (dark) color (see FIG. 5 ). For example, the white color of one cell C shows a bit of “0”, and the black color of another one cell C shows a bit of “1”.
The three isolated positioning marks QP, QP, QP and the apex detecting cell QT allow the total QR code area to be identified.
For example, the black or white colored cells C of the QR code Q except for the positioning marks QP, the cell QT, timing patterns (not shown), and the like show information consisting of a plurality of bits arranged in matrix (rows and columns).
In addition, the QR code Q contains a Reed Solomon code that allows correction of errors included in the QR code Q based on the Reed Solomon code, even if the code area thereof is dirty or damaged up to, for example, 30% that represents the error correction level (capability) of QR codes.
The number of cells (13×13 cells) of the QR code Q is set to be extremely lower than the number of pixels (optoelectric transducers), for example, 525×525 pixels, of each of the first and second photodetectors 23 A and 23 B.
As schematically illustrated in FIG. 5 and FIG. 7A shown thereafter, each of the positioning marks QP includes a first pattern QPa having a large square annular shape and consisting essentially of black (dark) cells. The first pattern QPa has a width of one cell and constitutes the outer periphery of each of the positioning marks QP.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 3 of 22
Each of the positioning marks QP also includes a second pattern QPb having a middle square annular shape and consisting essentially of white (light) cells. The second pattern QPb has a width of one cell and is similarly smaller in size than the first pattern QPa. The second pattern QPb is concentrically and adjacently arranged with respect to the first pattern QPa.
Each of the positioning marks QP further includes a third pattern QPc consisting essentially of vertical 3 black cells×horizontal 3 black cells in shape of square. The third pattern QPc is concentrically and adjacently arranged with respect to the second pattern QPb so that the combination of the first to third patterns QPa to QPc constitutes the square mark QP.
Referring to FIGS. 1 and 3 , the circuit unit 20 includes, as the circuit components 20 a , the operation switches 12 and 14 , a control circuit 40 , a power switch 41 , an LED (light emitting device) 43 , a beeper 44 , a liquid crystal display 46 , a communication interface 48 , and a battery 49 .
The control circuit 40 for example consists of a microcomputer. The microcomputer is composed of, for example, a CPU (Central Processing Unit), an internal memory unit including a ROM (Read Only Memory), a RAM (Random Access Memory) and the like, an I/O (Input/Output) interface, and a system bus to which the CPU, the internal memory unit, and the I/O interface are electrically connected to be communicable therebetween.
The control circuit 40 is electrically connected to the battery 49 via a switch 49 a electrically connected to the control circuit 40 . The control circuit 40 is also electrically connected through the I/O interface to the power switch 41 . Upon the power switch 41 being turned on by a user, the switch 49 a is turned on so that electrical power is supplied to the optical devices 21 A, 21 B, 23 A, and 23 B, the control circuit 40 , and the remaining electrical components 20 a of the circuit unit 20 to thereby activate them.
The control circuit 40 is configured to operate in accordance with at least one program stored in, for example, the ROM to control the overall of the information reader 10 and to perform decoding processes and other processes. The program can be loaded from a signal bearing media to the memory unit. Examples of suitable signal bearing media include recordable type media such as floppy disks and CD (Compact Disk)-ROM, and transmission type media such as digital and analog communications links.
The control circuit 40 is electrically connected via the I/O interface to, the operation switches 12 and 14 so that instructions sent from the switches 12 and 14 are input to the control circuit 40 . The control circuit 40 is electrically connected via the I/O interface to each of the first and second LEDs 21 A and 21 B and operative to control the first and second LEDs 21 A and 21 B to execute reading processes of the QR code Q.
The control circuit 40 is also electrically connected via the I/O interface to the LED 43 , the beeper 44 , and the liquid crystal display 46 to control them. Moreover, the control circuit 40 is electrically connected via the I/O interface to the communication interface 48 to communicate with external devices including a host system, such as a management computer, through the communication interface 48 .
For example, the liquid crystal display 46 is mounted on the other surface of the one lateral end of the second circuit board 16 to be disposed closely opposing the display window DW. Moreover, the beeper 44 is mounted on the other lateral end of the one surface of the first circuit board 15 .
The LED 43 is operative to visually indicate information to send notice to a user under control of the control circuit 40 . The beeper 44 is operative to emit a series of beeps to send notice to a user under control of the control circuit 40 . The liquid crystal display 46 is operative to display, in a visible format, information sent from the control circuit 40 under control thereof.
The control circuit 40 is operative to control the exposure time (the shutter speed) of each of the first and second photodetectors 23 A and 23 B.
In addition, the circuit unit 20 includes, as the circuit components 20 a , first and second amplifiers (AMP) 31 A and 31 B, first and second clipping circuit 32 A and 32 B, and first and second analog to digital (A/D) converters 33 A and 33 B.
The circuit unit 20 also includes, as the circuit components 20 a , a memory 35 , first and second address generators 36 A and 36 B, and first and second synchronous signal generators 38 A and 38 B. The circuit components 31 A, 31 B, 32 A, 32 B, 33 A, 33 B, 35 , 36 A, 36 B, 38 A, and 38 B are electrically connected to the control circuit 40 so that they are controllable by the control circuit 40 .
The first amplifier 31 A is electrically connected to the first photodetector 23 A and operative to amplify a first image outputted from the first photodetector 23 A at a predetermined gain based on a gain control signal sent from the control circuit 40 .
The first clipping circuit 32 A is electrically connected to the first amplifier 31 A and the first A/D converter 33 A and operative to clip a first QR code image QI 1 corresponding to the QR code Q from the amplified first image outputted from the first amplifier 31 A.
The first A/D converter 33 A is electrically connected to the first clipping circuit 32 A and operative to convert the first QR code image QI 1 cell by cell into first image data DQ 1 of the QR code Q.
The first synchronous signal generator 38 A is electrically connected to the first photodetector 23 A and the first address generator 36 A. The first synchronous signal generator 38 A is operative to, for example, periodically generate a synchronous signal (timing signal) to periodically output it to the first photodetector 23 A and the first address generator 36 A under control of the control circuit 40
The first address generator 36 A is electrically connected to the memory 35 . The first address generator 36 A is operative to, for example, count the number of the periodically inputted timing signals so as to generate a unique address signal corresponding to each of the count values in synchronization with a corresponding one of the timing signals, thus outputting the unique address signals to the memory 35 .
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 4 of 22
For example, a light intensity of each cell of the first QR code image QI 1 is sequentially read out as a first image in accordance with a corresponding one of the timing signals periodically transmitted from the first synchronous signal generator 38 A. The first image of each cell of the first QR code image QI 1 is converted into a corresponding digital value of each cell of the first image data DQ 1 by the first A/D converter 33 A.
The digital value of each cell of the first image data DQ 1 is sequentially sent from the first A/D converter 33 A to the memory 35 to be stored in its corresponding unique address. The unique address of the memory 35 in which the digital value of each cell of the first image data DQ 1 is stored is indicated by an address signal generated by the first address generator 36 A based on a corresponding one of the count values.
Similarly, the second amplifier 31 B is electrically connected to the second photodetector 23 B and operative to amplify a second image outputted from the second photodetector 23 B at a predetermined gain based on a gain control signal sent from the control circuit 40 .
The second clipping circuit 32 B is electrically connected to the second amplifier 31 B and the second A/D converter 33 B and operative to clip a second QR code image QI 2 corresponding to the QR code Q from the amplified second image outputted from the second amplifier 31 B.
The second A/D converter 33 B is electrically connected to the second clipping circuit 32 B and operative to convert the second QR code image QI 2 cell by cell into second image data DQ 2 of the QR code Q.
The second synchronous signal generator 38 B is electrically connected to the second photodetector 23 B and the second address generator 36 B. The second synchronous signal generator 38 B is operative to, for example, periodically generate a synchronous signal (timing signal) to periodically output it to the second photodetector 23 B and the second address generator 36 B under control of the control circuit 40
The second address generator 36 B is electrically connected to the memory 35 . The second address generator 36 B is operative to, for example, count the number of the periodically inputted timing signals so as to generate a unique address signal corresponding to each of the count values in synchronization with a corresponding one of the timing signals, thus outputting the unique address signals to the memory 35 .
For example, a light intensity of one cell of the second QR code image QI 2 is sequentially read out as a second image in accordance with a corresponding one of the timing signals periodically transmitted from the second synchronous signal generator 38 B. The second image of one cell of the second QR code image QI 2 is converted into a corresponding digital value of each cell of the second image data DQ 2 by the second A/D converter 33 B.
The digital value of each cell of the second image data DQ 2 is sequentially sent from the second A/D converter 33 B to the memory 35 to be stored in its corresponding unique address. The unique address of the memory 35 in which the digital value of each cell of the second image data DQ 2 is stored is indicated by an address signal generated by the second address generator 36 B based on a corresponding one of the count values.
Next, operations of the information reader 10 will be described hereinafter.
When a user wants to read the QR code Q attached to the target R, the user locates the information reader 10 so that the reading window 11 a is opposite to the target R and that the QR code Q is positioned within the FOVs FA and FB (see FIG. 4 ).
In this state, the user operates the operation switch 12 to turn it on. An instruction indicative of the turning on of the operation switch 12 is sent to the control circuit 40 .
The control circuit 40 controls each of the first and second LEDs 21 A and 21 B to emit the red illumination light Lf toward the target R in step S 12 of FIG. 6 . This allows the target R containing the QR code Q to be exposed to the red illumination light emitted from each of the LEDs 21 A and 21 B via a corresponding one of the first and second collective lenses 52 A and 52 B and the reading window 11 a.
While the target R containing the QR code Q is exposed to the red illumination light, light reflected from the target R containing the QR code Q based on the red illumination light is entered through the reading window 11 a into each of the imaging lenses 27 A and 27 B. The reflected light entered into each of the imaging lenses 27 A and 27 B is focused on the pixel area of a corresponding one of the first and second photodetectors 23 A and 23 B.
During the reflected light being focused on the pixel area of each of the first and second photodetectors 23 A and 23 B, the optoelectric transducers of each of the first and second photodetectors 23 A and 23 B are simultaneously driven in step S 14 . As a result, first and second images of the target R containing the QR code Q are simultaneously picked up by the optoelectric transducers of the first and second photodetectors 23 A and 23 B, respectively.
A corresponding one of the first and second images is scanned horizontal-line by horizontal-line in each of the photodetectors 23 A and 23 B so that a corresponding one of the first and second images is sequentially output horizontal-line by horizontal-line.
The first and second image signals outputted from each of the first and second photodetectors 23 A and 23 B is amplified by a corresponding one of the first and second amplifiers 31 A and 31 B to be transferred to a corresponding one of the first and second clipping circuits 32 A and 32 B.
Next, the control circuit 40 controls the first clipping circuit 32 A to clip a first QR code image QI 1 corresponding to the QR code Q from the amplified first image outputted from the first amplifier 31 A in step S 16 . Simultaneously, the control circuit 40 controls the second clipping circuit 32 B to clip a second QR code image QI 2 corresponding to the QR code Q from the amplified second image outputted from the second amplifier 31 B in step S 16 .
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 5 of 22
Specifically, in step S 16 , when clipping the first QR code image QI 1 from the amplified first image outputted from the first amplifier 31 A, the control circuit 40 controls the first clipping circuit 32 A to compare a light intensity level of each pixel in the first image with a predetermined threshold level in step S 16 a . This allows the light intensity level of each pixel in the first image to be binarized to a binary signal of each pixel.
In the first embodiment, the predetermined threshold level corresponds to an intermediate level in the 256 levels of light intensity.
The control circuit 40 controls the first clipping circuit 32 A to store therein the binarized first image in step S 16 b.
For example, when the light intensity level of one pixel in the first image is equal to or higher than the predetermined threshold level, the first image of the one pixel is binarized to a white (light) pattern corresponding to a binary digit of 0. In contrast, when the light intensity level of one pixel in the first image is lower than the predetermined threshold level, the light intensity of the one pixel in the first image is binarized to a black (dark) pattern corresponding to a binary digit of 1.
As a result, a binarized image of the target R containing the QR code Q is obtained.
Next, the control circuit 40 controls the first clipping circuit 32 A to execute a positioning mark detecting task based on the binarized image stored in the first clipping circuit 32 A.
Specifically, under control of the control circuit 40 , the first clipping circuit 32 A searches the binarized image (the dark and light patterns) for a specified ratio in length in step S 16 c.
Specifically, FIG. 7A shows the positional relationships between the orientations of the positioning mark QP (the QR code Q) and the horizontal scanning line of the first photodetector 23 A.
In FIG. 7A , if the QR code Q (each of the positioning marks QP) is oriented so that its one pair of opposing sides is parallel to the horizontal scanning line passing through the center of one of the marks QP, the horizontal scanning line is shown as reference character (a).
If the QR code Q (each of the positioning marks QP) is oriented so that its one pair of opposing sides is inclined with respect to the horizontal scanning line passing through the center of one of the marks QP at an angle of, for example, 45 degrees, the horizontal scanning line is shown as reference character (b).
If the QR code Q (each of the positioning marks QP) is oriented so that its one pair of opposing sides is inclined with respect to the horizontal scanning line passing through the center of one of the marks QP at an angle of, for example, 90 degrees, the horizontal scanning line is shown as reference character (c).
FIG. 7B shows signal waveforms W(a), W(b), and W(c) corresponding to the light and dark patterns respectively detectable along the horizontal scanning lines (a), (b), and (c). As clearly illustrated in FIG. 7B , the frequency component ratios of the signal waveforms W(a), W(b), and W(c) are equivalent to each other.
Specifically, the frequency component ratio obtainable from each of the horizontal scanning lines (a), (b), and (c) passing through the center of the positioning mark QP is represented as follows:
dark:light:dark:light:dark=1:1:3:1:1
That is, as clearly illustrated in FIG. 7A , the ratio in length among the dark and light patterns of the positioning mark QP is constantly set to the ratio of 1 (dark):1 (light):3 (dark):1 (light):1 (dark) independently of any orientations of the QR code Q with respect to the horizontal scanning line.
Accordingly, the first clipping circuit 32 A searches the binarized image (the dark and light patterns) for a specified ratio of 1 (dark):1 (light):3 (dark):1 (light):1 (dark) in length in step S 16 c.
Because the first image picked up by the first photodetector 23 A corresponds to the target R containing the QR code Q, the first clipping circuit 32 A easily retrieves the specified ratio of 1 (dark):1 (light):3 (dark):1 (light):1 (dark) in length, which corresponds each of the positioning marks QP, in the continuous dark patterns and light patterns (the binarized image) in step S 16 c.
Thus, under control of the control circuit 40 , the first clipping circuit 32 A identifies the location of the remaining apex detecting cell QT based on the identified locations of the three positioning marks QP in step S 16 d.
Thereafter, under control of the control circuit 40 , the first clipping circuit 32 A clips, from the amplified first image outputted from the first amplifier 31 A, an area surrounded by the identified locations of the three marks QP, QP, QP, and one cell QT as the first QR code image QI 1 consisting of 13×13 cells in step S 16 e.
Similarly, when clipping the second QR code image QI 2 from the amplified second image outputted from the second amplifier 31 B, the control circuit 40 and the second clipping circuit 32 B execute the tasks in steps S 16 a to S 16 e . This allows an area surrounded by the identified locations of the three marks QP, QP, QP, and one cell QT to be clipped from the amplified second image outputted from the second amplifier 31 B as the second QR code image QI 2 consisting of 13×13 cells.
(A 1 ) and (B 1 ) of FIG. 8A schematically illustrate the clipped first QR code image QI 1 and the clipped second QR image Q 2 , respectively. As illustrated in FIG. 2 and (A 1 ) of FIG. 8A , the clipped first QR code image QI 1 becomes distorted such that its one side (Y 1 side, such as right side) in the Y direction is wider than its other side (Y 2 side, such as left side) therein. This is because the first photodetector 23 A is arranged such that its center axis XA is shifted toward the Y 1 side from the center axis XC in the Y direction.
Similarly, as illustrated in (B 1 ) of FIG. 8A , the clipped second QR code image QI 2 becomes distorted such that its one side (Y 2 side, such as left side) in the Y direction is wider than its other side (Y 1 side, such as right side) in the Y direction. This is because the second photodetector 23 B is arranged such that its center axis XB is shifted toward the Y 2 side from the center axis XC in the Y direction.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 6 of 22
Next, the control circuit 40 controls the first A/D converter 33 A to execute a mapping task to thereby convert the first QR code image QI 1 cell by cell into first image data DQ 1 of the QR code Q in step S 18 .
In the first embodiment, a digital value of each cell of the first image data DQ 1 has 8 bits corresponding to 256 levels (0 level to 255 level) of light intensity.
Specifically, as the first image data DQ 1 , the digital values of 13×13 cells each corresponding to one level of light intensity within the range from 0 level to 255 level can be obtained by the first A/D converter 33 A.
As in the case of the first A/D converter 33 A, the control circuit 40 controls the second A/D converter 33 B to execute a mapping task to thereby convert the second QR code image QI 2 cell by cell into second image data DQ 2 of the QR code Q.
In the first embodiment, a digital value of each cell of the second image data DQ 2 has 8 bits corresponding to 256 levels (0 level to 255 level) of light intensity.
Specifically, as the second image data DQ 2 , the digital values of 13×13 cells each corresponding to one level of light intensity within the range from 0 level to 255 level can be obtained by the second A/D converter 33 B.
Note that, if the QR code Q has 21×21 cells, as the first image data DQ 1 , the digital values of 21×21 cells each corresponding to one level of light intensity within the range from 0 level to 255 level can be obtained by the first A/D converter 33 A. This can be effected as in the case of the second A/D converter 33 B.
(A 2 ) and (B 2 ) of FIG. 8A schematically illustrate the first image data DQ 1 of 13×13 cells in rows and columns and the second image data DQ 2 of 13×13 cells in rows and columns, respectively. In addition, (A 3 ) and (B 3 ) of FIG. 8B schematically illustrate part of cells in the first image data DQ 1 and that of cells in the second image data DQ 2 , respectively.
In the first embodiment, the top-left corner cell of the first image data DQ 1 , which is located in the first row and the first column thereof, is labeled with 1-1, and the rest cells in the first column are sequentially labeled with 1-2, 1-3, . . . , 1-13.
Similarly, the cells in the second column are labeled with 2-1, 2-2, . . . , 2-13, the cells in the third column are labeled with 3-1, 3-2, . . . , 3-13, the cells in the twelfth column are labeled with 12-1, 12-2, . . . , 2-13, and the cells in the thirteenth column are labeled with 13-1, 13-2, 13-13.
In the same manner as the first image data DQ 1 , the cells of the second image data DQ 2 are labeled.
In the first embodiment, for example, it is assumed that a first image I 1 is picked up by the first photodetector 23 A, and a second image I 2 is picked up by the second photodetector 23 B (see [a] and [b] of FIG. 9 ).
Specifically, as illustrated in [a] of FIG. 9 , the first image I 1 contains a specular reflection region Ma positioned at its left side, and the second image I 2 contains a specular reflection region Mb positioned at its right side, which is shifted from the specular reflection region Ma.
The reason why the specular reflection region Ma and the specular reflection region Mb are misaligned from each other will be described hereinafter with reference to FIG. 10 .
Referring to FIG. 10 , it is assumed that the one surface of the target R to which the QR code Q is attached is inclined by an angle of θ away from a virtual plane Vv intersecting the target R and orthogonal to the center axes XA and XB of the first and second photodetectors 23 A and 23 B.
In this assumption, part of light emitted from, for example, the first LED 21 A, is reflected directly from different points Pa and Pb of the target R. Light reflected directly from the points Pa and Pb of the target R based on the part of light is entered into the first and second photodetectors 23 A and 23 B via the first and second imaging lenses 27 A and 27 B, respectively. For example, the points Pa and Pb are different from each other by a distance of d 2 along the target R.
In this situation, if the incident angle of the part of light with respect to the target R and the reflection angle thereof are substantially identical to each other, the part of light to be entered into each of the first and second photodetectors 23 A and 23 B may become a specular reflection component.
As described above, the points Pa and Pb of the target R, which cause part of light emitted from the first LED 21 A to be specularly reflected thereat so as to be respectively entered into the first and second photodetectors 23 A and 23 B are different from each other by the distance d 2 . This can be effected by part of light emitted from the second LED 21 B.
For this reason, as illustrated in, for example, [a] and [b] of FIG. 9 , the specular reflection region Ma appearing in the first image I 1 and the specular reflection region Mb appearing in the second image I 2 are different in position from each other.
In the first embodiment, as illustrated in (A 2 ) and (A 3 ) of FIGS. 8A and 8B , it is assumed that the first image data DQ 1 is generated based on the first image I 1 containing the specular reflection region Ma so that cells 1 - 6 , 2 - 6 , 1 - 7 , and 2 - 7 in the image data DQ 1 correspond to the specular reflection region Ma.
Similarly, as illustrated in (B 2 ) of FIG. 8A , it is assumed that the second image data DQ 2 is generated based on the second image I 2 containing the specular reflection region Mb so that cells 12 - 6 , 13 - 6 , 12 - 7 , and 13 - 7 in the image data DQ 2 correspond to the specular reflection region Mb.
Note that a reference numeral assigned to each of the cells in (A 3 ) and (B 3 ) of FIG. 8B shows a digital value indicative of a level of light intensity of a corresponding one of the cells.
For example, “36” assigned to the cell 1 - 5 illustrated in (A 3 ) shows a digital value “36” corresponding to a level 36 in the 256 levels of light intensity, and “78” assigned to the cell 1 - 6 illustrated in (B 3 ) shows a digital value “78” corresponding to a level 78 in the 256 levels of light intensity.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 7 of 22
As described above, because the cells 1 - 6 , 2 - 6 , 1 - 7 , and 2 - 7 in the first image data DQ 1 correspond to the specular reflection region Ma, the digital values respectively assigned to the cells 1 - 6 , 2 - 6 , 1 - 7 , and 2 - 7 represent “255” level (maximum level) in the 256 levels of light intensity.
Similarly, because the cells 12 - 6 , 13 - 6 , 12 - 7 , and 13 - 7 in the second image data DQ 2 correspond to the specular reflection region Mb, the digital values respectively assigned to the cells 12 - 6 , 13 - 6 , 12 - 7 , and 13 - 7 represent the 255 level (maximum level) in the 256 levels of light intensity.
Specifically, the specular reflection region Ma is different in position from the specular reflection region Mb. For this reason, the cells 1 - 6 , 2 - 6 , 1 - 7 , and 2 - 7 in the second image data DQ 2 , which are the same as the cells 1 - 6 , 2 - 6 , 1 - 7 , and 2 - 7 in the first digital image DQ 1 corresponding to the specular reflection region Ma, do not correspond to the specular reflection region Mb. Thus, digital values except for the digital value corresponding to the maximum level of light intensity are assigned to the cells 1 - 6 , 2 - 6 , 1 - 7 , and 2 - 7 in the second image data DQ 2 , respectively.
The digital value of each cell of each of the first and second image data DQ 1 and DQ 2 is stored in its corresponding unique address of the memory 35 , this unique address is supplied from a corresponding one of the address generators 36 A and 36 B.
Returning to FIG. 6 , after completion of the mapping task in step S 18 , the control circuit 40 searches one of the first and second image data DQ 1 and DQ 2 stored in the memory 35 for the existence of cells each with the 255 level (maximum level) in step S 20 .
Then, in step S 20 , the control circuit 40 determines whether at least one specular reflection region is contained in one of the first and second image data DQ 1 and DQ 2 based on the search result.
Specifically, in step S 20 , because the cells 1 - 6 , 1 - 7 , 2 - 6 , and 2 - 7 each with the 255 level are contained in the first image data DQ 1 , the control circuit 40 identifies the cells 1 - 6 , 1 - 7 , 2 - 6 , and 2 - 7 in the first image data DQ 1 as a specular reflection region (the determination in step S 20 is YES). Then, the control circuit 40 proceeds to step S 22 .
Otherwise, when no cells with the 255 level are contained in the first image data DQ 1 , the control circuit 40 determines that no specular reflection regions are contained in the first image data DQ 1 based on the search result (the determination in step S 20 is NO). Then, the control circuit 40 goes to step S 24 .
In step S 22 , the control circuit 40 corrects the first image data DQ 1 at the cells 1 - 6 , 1 - 7 , 2 - 6 , and 2 - 7 based on the digital values “78”, “78”, “25”, and “24” in the corresponding cells 1 - 6 , 1 - 7 , 2 - 6 , and 2 - 7 in the second image data DQ 2 .
For example, the control circuit 40 replaces the digital values “255” in the cells 1 - 6 , 1 - 7 , 2 - 6 , and 2 - 7 in the first image data DQ 1 identified as the specular reflection region into the digital values “78”, “78”, “25”, and “24” in the corresponding cells 1 - 6 , 1 - 7 , 2 - 6 , and 2 - 7 in the second image data DQ 2 (see (A 4 ) in FIG. 8B ).
The correcting task in step S 22 allows the specular reflection region to be eliminated from the first image data DQ 1 (see [c] in FIG. 9 ).
After completion of the correcting task in step S 22 , the control circuit 40 executes a task of decoding the corrected first image data DQ 1 in step S 24 .
Specifically, in step S 24 , the control circuit 40 compares the digital value of each cell in the corrected first image data DQ 1 with a predetermined threshold digital value, thus determining whether the digital value of each cell in the corrected first image data DQ 1 shows black (dark) color or white color.
For example, the control circuit 40 compares the digital value of each cell in the corrected first image data DQ 1 with a predetermined threshold digital value of “50”.
When the digital value of one of the cells in the corrected first image data DQ 1 is higher than the predetermined threshold digital value of “50”, the control circuit 40 determines that the one of the cells in the corrected first image data DQ 1 shows light color corresponding to a bit of “0”.
In addition, when the digital value of another one of the cells in the corrected first image data DQ 1 is equal to or lower than the predetermined threshold digital value of “50”, the control circuit 40 determines that another one of the cells in the corrected first image data DQ 1 shows dark color corresponding to a bit of “1”.
Therefore, the control circuit 40 can decode information stored in the QR code Q and indicated as the light (white) or dark (black) colored cells C thereof.
Next, the control circuit 40 determines whether the ratio (percent) of the number of cells whose colors are unidentified in step S 24 to the total number of cells in the first image data DQ 1 exceeds the error correction level in step S 26 . Note that, when a cell of the QR code Q is dirty or damaged, the color of the cell may be unidentified by the information reader 10 . Note that the ratio of the number of cells whose colors are unidentified in step S 24 to the total number of cells in the first image data DQ 1 will be referred to as “error ratio” hereinafter.
When the error ratio exceeds the error correction level, the control circuit 40 determines that the decoding of the first image data DQ 1 is unsuccessfully completed (the determination in step S 26 is NO). Then, the control circuit 40 returns to step S 12 , so that the tasks in steps S 12 to S 26 are repeated until the determination in step S 26 is affirmative.
Otherwise, when the error ratio is equal to or lower than the error correction level, the control circuit 40 determines that the decoding of the first image data DQ 1 is successfully completed (the determination in step S 26 is YES).
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 8 of 22
Thereafter, the control circuit 40 sends the decoded information stored in the QR code Q to the host system as an example, exiting the operations of the information reader 10 in step S 28 .
As described above, in the information reader 10 according to the first embodiment, the first and second photodetectors 23 A and 23 B are configured to simultaneously pick up an image of the QR code Q under control of the control circuit 40 . Next, the first and second clipping circuits 32 A and 32 B are configured to respectively clip the first and second QR code images QI 1 and QI 2 from the picked-up image under control of the control circuit 40 .
In addition, the first and second A/D converters 33 A and 33 B are configured to respectively convert the first and second QR code images QI 1 and QI 2 cell by cell into the first and second image data DQ 1 and DQ 2 .
Specifically, the first A/D converter 33 A is configured to obtain, as the first image data DQ 1 , the digital values of 13×13 cells each corresponding to one level of light intensity within the range from 0 level to 255 level. Similarly, the second A/D converter 33 B is configured to obtain, as the second image data DQ 2 , the digital values of 13×13 cells each corresponding to one level of light intensity within the range from 0 level to 255 level.
Moreover, the control circuit 40 is configured to determine whether at least one specular reflection region with the maximum light-intensity level is contained in, for example, the first image data DQ 1 .
When it is determined that the specular reflection region Ma with the maximum light-intensity level is contained in the first image data DQ 1 , the control circuit 40 replaces the digital values in the cells of the specular reflection region in the first image data DQ 1 into those in the corresponding same cells in the second image data DQ 2 .
The correcting task of the control circuit 40 makes it possible to eliminate the specular reflection region from the first image data DQ 1 .
That is, in the first embodiment, the number of cells of the QR code Q is set to be extremely lower than the number of pixels (optoelectric transducers) of each of the first and second photodetectors 23 A and 23 B. Therefore, in the first embodiment, the converting task using the first and second QR code images QI 1 and QI 2 , and the specular-reflection region correcting task using one of the first and second image data DQ 1 and DQ 2 obtained by the converting tasks can be carried out cell by cell.
For this reason, as compared with the image superimposing tasks being carried out pixel by pixel of each of first and second images of a target disclosed in the Patent Publication No. H02-98789 (third example), it is possible to simply eliminate a specular reflection region contained in the first image data DQ 1 , thus rapidly decoding information stored in the QR code Q.
Moreover, in the first embodiment, as illustrated in FIG. 2 , the first and second photodetectors 23 A and 23 B are respectively mounted on the first circuit board 15 such that:
their pixel areas face the first and second imaging lenses 27 A and 27 B;
their other surfaces are located on a virtual plane VP disposed orthogonal to their center axes XA and XB of their pixel areas; and
their center axes XA and XB are arranged with the interval d 1 therebetween to be shifted laterally from and parallely to the optical axes Xa and Xb of the first and second imaging lenses 27 A and 27 B.
The arrangement of the first and second photodetectors 23 A and 23 B and the first and second imaging lenses 27 A and 27 B allow predetermined FOVs FA and FB of the first and second photodetectors 23 A and 23 B to be superimposed on a virtual plane P 1 (see FIG. 4 ). The virtual plane P 1 is located at the constant distance D 1 from the virtual plane P 2 in the direction X of the information reader 10 ; this virtual plane P 2 contains the pixel areas of the first and second photodetectors 23 A and 23 B.
Specifically, while the information reader 10 is located such that the QR code Q is positioned within the FOVs FA and FB (see FIG. 4 ) with the reflected light being focused on the pixel area of each of the first and second photodetectors 23 A and 23 B, the optoelectric transducers of the first photodetector 23 A and those of the second photodetector 23 B are simultaneously driven.
This allows the first and second images of the optoelectric transducers of the first and second photodetectors 23 A and 23 B corresponding to the target R containing the QR code Q to be simultaneously picked up by the first and second photodetectors 23 A and 23 B, respectively.
Therefore, the first QR code image obtained by the first photodetector 23 A and the first clipping circuit 32 A and the second QR code image obtained by the second photodetector 23 B and the second clipping circuit 32 B can be substantially identical in size and orientation to each other.
This makes it possible to easily match the positions of the cells in the first QR code image and those of the same cells in the second QR code image without associating addresses of a region of the memory 35 in which the first image is stored with those of another region thereof in which the second QR code image is stored.
In addition, the first and second photodetectors 23 A and 23 B are configured such that their center axes XA and XB are arranged with the interval d 1 therebetween to be shifted laterally from and parallely to the optical axes Xa and Xb of the first and second imaging lenses 27 A and 27 B. The arrangement of the first and second photodetectors 23 A and 23 B allows a specular reflection region contained in the first QR code image to be shifted in position from a specular reflection region contained in the second QR code image.
Accordingly, digital values in the cells of a specular reflection region contained in one of the first and second QR code images can be replaced into those in the same cells of a corresponding region contained in the other of the first and second QR code images. This makes it possible to eliminate the impact of specular reflection from the one of the first and second QR code images, thus properly reading the QR code Q even if a positional relationship between the target R and each of the first and second photodetectors 23 A and 23 B causes a specular reflection component to be contained in at least one of the first and second QR code images.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 9 of 22
Second Embodiment
Referring to FIGS. 11 and 12 , a barcode reader 110 as an example of optical information readers according to a second embodiment of the present invention is designed to read graphic symbols including barcodes.
The barcode reader 110 is provided with a substantially gun-shaped housing (case) 111 , a reading unit 114 , and a data processing unit 116 .
The case 111 consists of an upper case part 111 U and a lower case part 111 L. The upper case part 111 U has an elongated hollow box structure with one opening surface, and the lower case part 111 L has the symmetrical structure as the upper case part 111 U. The case 111 is assembled such that the upper case part 111 U is mounted at its opening-surface side edge on the opening-surface side edge of the lower case part 111 L.
One end portion H of the case 111 in its longitudinal direction is bent to be directed diagonally to the longitudinal direction. The bent portion H of the case 111 will be referred to as “head portion H” hereinafter. The remaining portion of the case 111 serves as a grip portion 115 that allows a user to easily grip the barcode reader 110 in one hand and handle it.
The rectangular-shaped tip end of the head portion H is wholly formed with a substantially rectangular-shaped reading window 111 a communicated with the inner hollow space of the head portion H, the inner hollow space of the head portion H is also communicated with the inner hollow space of the grip portion 115 . The inner hollow spaces of the head portion H and the grip portion 115 provide a light channel.
The size of the reading window 111 a is designed to allow the barcode reader 110 to read various types of barcodes as targets of the barcode reader 110 .
The barcode reader 110 is provided with a circuit board 118 constituting part of the reading unit 114 and the most part of the data processing unit 116 and arranged in the longitudinal direction of the grip portion 115 .
The circuit board 118 is supported from both sides by a pair of mounting bosses MB such that one end is located at the rear side of the inner hollow portion of the head portion H and the other end is located at that of the grip portion 115 .
Components of the reading unit 114 are mainly disposed in the rear side of the inner hollow space of the head portion H and in the inner hollow space of the grip portion 115 . Similarly, components of the data processing unit 116 are mainly disposed in the inner hollow space of the grip portion 115 .
The barcode reader 110 is provided with a substantially plate-like dustproof member 150 located in the inner hollow space of the head portion H at a predetermined position allowing the components of the reading unit 114 and those of the data processing unit 116 to be shielded from particles, such as dusts, entering through the reading window 111 a from the outside thereof. In other words, the dustproof member 150 is configured to block flow of particles into the reading unit and data processing unit side in the case 111 .
The dustproof member 150 also allows red illumination light to be transmissive therethrough; this red illumination light is used for reading various types of barcodes in the second embodiment.
Any type of barcodes basically consists of a graphic symbol, in block form, of alternating black bars and white spaces corresponding to digital data.
The reading unit 114 is composed of a pair of first and second illuminating red LEDs 121 corresponding to the first and second LEDs 21 A and 21 B. The reading unit 114 is also composed of a light emission driver 125 , a illumination lens 152 , and a reflector 132 f . The reading unit 114 is composed of a pair of first and second imaging lenses 127 A and 127 B corresponding to the first and second imaging lenses 27 A and 27 B, and a pair of first and second photodetectors 123 A and 123 B.
In the second embodiment, the dustproof member 150 is integrally composed of the illumination lens 152 , a light-transmissive plate 154 as an example of light-transmissive members, and a holder 156 .
Each of the first and second LEDs 121 serving as an illumination light source is supported by the holder 156 , and is electrically connected to the emission driver 125 .
The dustproof member 150 is arranged in the inner hollow portion of the head portion H such that:
each of the first and second LEDs 121 supported by the holder 156 is disposed close to the surface wall of the lower case part 111 L;
optical axes of the first and second LEDs 121 supported by the holder 156 are directed to one line passing through the center of the reading window 111 a along the longitudinal direction thereof;
the illumination lens 152 is coaxially disposed between the reading window 111 a and each LED 121 ; and
the peripheral portion of the dustproof member 150 is gas-tightly contacted respectively on the inner wall of the upper case part 111 U and that of the lower case part 111 L to block the light channel formed in the head portion H.
The alignment of each of the LEDs 121 and the illumination lens 152 permits the lower half of the light channel formed in the head portion H to be allocated as an illumination light channel; this lower half is the half of the light channel on the lower case part side thereof.
In addition, note that the remaining half of the light channel formed in the head portion H is allocated as a reflected-light channel.
Specifically, in preparation for reading a barcode B attached to a goods as an example of a target, the reading window 111 a of the barcode reader 110 is positioned to be opposite to (e.g. substantially in contact with) the barcode B such that the long side direction of the reading window 111 a is substantially parallel to the length direction across the bars of the barcode B.
After the preparation, when the light emission driver 125 causes each of the first and second LEDs 121 to emit red illumination light, the red illumination light emitted from each of the first and second LEDs 121 through the illumination light channel is focused by the illumination lens 152 of the dustproof member 150 to be irradiated via the reading window 111 a onto the barcode B.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 10 of 22
Light reflected from the barcode B via the reading window 111 a based on the red illumination light is transferred through the reflected-light channel in the head portion H, and passes through the light-transmissive plate 154 of the dustproof member 150 ; this reflected light from the barcode B has an intensity pattern corresponding to the bar and space pattern (black and white pattern) of the barcode B.
Each of the first and second photodetectors 123 A and 123 B is for example composed of a one-dimensional image sensor, such as a CMOS image sensor, a CCD image sensor, or the like. Specifically, each of the first and second photodetectors 123 A and 123 B is provided at its one surface with a light-sensitive pixel area.
The light-sensitive pixel area of each of the first and second photodetectors 123 A and 123 B has a substantially rectangular shape allowing various barcodes to be scanned, and is composed of optoelectric transducers (pixels) horizontally arranged in parallel to the longitudinal directin of the reading window 1 a . Each of the optoelectric transducers of each of the first and second photodetectors 123 A and 123 B is operative to sense light, convert the sensed light to an electric signal (image), and output it.
The structures of the first and second imaging lenses 127 A and 127 B are substantially identical to those of the first and second imaging lenses 27 A and 27 B, so descriptions of which are omitted.
The first and second imaging lenses 127 A and 127 B are mounted on the inner surface of the upper case part 111 U to be symmetrically disposed both sides of the center axis of the barcode reader 110 in parallel to the direction Y of the reading window 111 a as in the case of the information reader 10 (see FIG. 2 ).
The first and second imaging lenses 127 A and 127 B are arranged such that their optical axes Xa and Xb are parallel to the center axis XC of the reader 110 as in the case of the information reader 10 (see FIG. 2 ).
The first and second photodetectors 123 A and 123 B are respectively mounted on the circuit board 118 through a holder 137 with a substantially L-shape in the longitudinal direction of the barcode reader 110 such that:
their pixel areas face the first and second imaging lenses 127 A and 127 B;
their other surfaces are located on a virtual plane 137 L disposed orthogonal to their optical axes (center axes) XA and XB of their pixel areas; and
their optical axes XA and XB are arranged with a predetermined interval therebetween to be shifted laterally from and parallely to the optical axes Xa and Xb of the first and second imaging lenses 127 A and 127 B.
Specifically, as compared with the first and second imaging lenses 27 A and 27 B, the first and second imaging lenses 127 A and 127 B are arranged to have an interval therebetween longer than that between the first and second imaging lenses 27 A and 27 B. The interval between the lenses 127 A and 127 B is determined depending on the length of various barcodes as target of the barcode reader 110 .
Similarly, as compared with the first and second photodetectors 23 A and 23 B, the first and second photodetectors 123 A and 123 B are arranged to have an interval therebetween longer than the interval d 1 between the photodetectors 23 A and 23 B. The interval between the photodetectors 123 A and 123 B is determined depending on the length of various barcodes as target of the barcode reader 110 .
As in the case of the first embodiment, the arrangement of the first and second photodetectors 123 A and 123 B and the first and second imaging lenses 127 A and 127 B allow predetermined FOVs of the first and second photodetectors 123 A and 123 B to be superimposed on a first virtual plane. The first virtual plane is located externally close to and parallel to the reading window 111 a of the reader 110 at a constant distance from a second virtual plane in the longitudinal direction of the reader 110 ; this second virtual plane contains the pixel areas of the first and second photodetectors 123 A and 123 B.
Specifically, in starting to read a barcode B attached onto one surface of a target R, the barcode reader 110 is located so that the reading window 111 a is opposite to be close to the target R and that the barcode B is positioned within the FOVs of the first and second photodetectors 123 A and 123 B.
For example, when each of the first and second LEDs 121 is activated, it emits red illumination light toward the target R. The red illumination light emitted from each of the LEDs 121 is transferred via the illumination lens 152 and the reading window 111 a to be irradiated on the target R and the barcode B.
Light reflected from the target R containing the barcode B based on the red illumination light is entered through the reading window 111 a into each of the imaging lenses 127 A and 127 B. The reflected light entered into each of the imaging lenses 127 A and 127 B is focused on the pixel area of a corresponding one of the first and second photodetectors 123 A and 123 B.
At that time, the optoelectric transducers of each of the first and second photodetectors 123 A and 123 B are simultaneously driven so that an image corresponding to the target R containing the barcode B is picked up by each of the first and second photodetectors 123 A and 123 B.
Specifically, a charge in each optoelectric transducer of the pixel area of the first photodetector 123 A based on the reflected light imaged on the pixel area is scanned horizontal-line by horizontal-line so that a first image corresponding to a light intensity of each optoelectric transducer of the pixel area of the first photodetector 123 A is picked up. Similarly, a second image corresponding to a light intensity of each optoelectric transducer of the pixel area of the second photodetector 123 B can be picked up.
The data processing unit 116 is mainly installed in the inner hollow space of the grip portion 115 to be supported by the mounting bosses MB.
The data processing unit 116 is composed of a plurality of circuit components 120 a including a waveform shaping unit 140 , a memory unit 142 , a decoding circuit 144 , and an output circuit 146 , each of which is mounted on the circuit board 118 to be arranged in accordance with a predetermined circuit design.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 11 of 22
The waveform shaping unit 140 is electrically connected to each of the first and second photodetectors 123 A and 123 B and to the decoding circuit 144 . The first and second images detected by the optoelectric transducers of the first and second photodetectors 123 A and 123 B are sent to the waveform shaping unit 140 .
The waveform shaping unit 140 is operative to carry out waveform shaping of the sent first and second images and to supply the waveform-shaped first and second images to the decoding circuit 144 .
Specifically, the intensity level of the first and second images outputted from the photodetectors 123 A and 123 B represents the bar and space pattern (symbology) of the barcode B.
The decoding circuit 144 is operative to digitize at least one of the first and second images based on their intensity levels, thereby decoding the barcode B. The decoding circuit 144 is operative to store, in the memory unit 42 , the decoded data (information) to be stored on the barcode B. The microcomputer 44 is operative to send information stored in the memory unit 42 via the output circuit 146 to a host system at given timing.
In addition, the beeper 148 is electrically connected to the decoding circuit 144 . Upon success of decoding the barcode B, the decoding circuit 144 causes the beeper 148 to beep.
Specifically, in starting to read a barcode B attached onto one surface of a target R, the barcode reader 110 is located so that the reading window 111 a is opposite to be close to the target R and that the barcode B is positioned within the FOVs of the first and second photodetectors 123 A and 123 B.
For example, when each of the first and second LEDs 121 is activated under control of the control circuit 40 , it emits red illumination light toward the target R in step S 32 of FIG. 12 . The red illumination light emitted from each of the LEDs 121 is transferred via the illumination lens 152 and the reading window 111 a to be irradiated on the target R and the barcode B.
Light reflected from the target R containing the barcode B based on the red illumination light is entered through the reading window 111 a into each of the imaging lenses 127 A and 127 B. The reflected light entered into each of the imaging lenses 127 A and 127 B is focused on the pixel area of a corresponding one of the first and second photodetectors 123 A and 123 B.
At that time, the control circuit 40 controls the optoelectric transducers of each of the first and second photodetectors 123 A and 123 B to, for example, simultaneously drive the corresponding optoelectric transducers thereof based on a corresponding shutter speed. This allows first and second images of the optoelectric transducers of the first and second photodetectors 123 A and 123 B corresponding to the target R containing the barcode B to be simultaneously picked up by the first and second photodetectors 123 A and 123 B, respectively in step S 34 .
Next, the decoding circuit 144 caries out a decoding task including a specular reflection determining task based on the first and second images in step S 36 .
Specifically, in step S 36 a , the decoding circuit 144 compares the intensity level of the first image of each pixel with a first predetermined threshold level L 1 and a second predetermined threshold level L 2 higher than the first threshold level L 1 .
For example, as illustrated in (B) of FIG. 13 , when the intensity levels of the first image of some pixels are higher than the first threshold level L 1 , and equal to or lower than the second threshold level L 2 , the decoding circuit 144 digitizes the first image of some pixels to a white image corresponding to a binary digit of 0 in steps S 36 b and S 36 c.
In contrast, when the intensity levels of the first image of some pixels are equal to or lower than the first threshold level L 1 , the decoding circuit 144 digitizes the first image of some pixels to a black image corresponding to a binary digit of 1 in steps S 36 d and S 36 e.
Otherwise, as illustrated in (B) of FIG. 13 , when the intensity levels of the first image of some pixels corresponding to a bar Ba of the barcode B are higher than the second threshold level L 2 , the decoding circuit 144 determines that the first image contains a specular reflection region located at the bar Ba and thereabout in steps S 36 f and 36 g.
The processes in steps S 36 (S 36 a to S 36 g ) are carried out for the second image in the same manner as the first image.
In cases where a specular reflection region appears in the first image data at a portion corresponding to the bar Ba in steps S 36 f and 36 g , the processes in steps S 36 f and S 36 g are carried out for the second image. This allows the decoding circuit 144 to determine that the second image contains a specular reflection region located at a bar Bb and thereabout (see (C) of FIG. 13 , which is misaligned with the bar Ba for the same reasons as the first embodiment (see FIG. 10 ).
Thus, in cases where a specular reflection region appears in the first image data at a portion corresponding to the bar Ba in steps S 36 f and 36 g , the decoding circuit 144 proceeds to step S 36 h.
In step S 36 h , the decoding circuit 144 corrects the first image by replacing the first image of some pixels corresponding to the bar Ba of the barcode B identified as the specular reflection region into the second image of the same pixels corresponding to the bar Ba (see (B) and (C) of FIG. 13 ). Thereafter, the decoding circuit 144 decodes the replaced second image of some pixels corresponding to the bar Ba of the barcode B using the first and second threshold levels L 1 and L 2 .
As described above, like the first embodiment, the arrangement of the first and second photodetectors 123 A and 123 B and the first and second imaging lenses 127 A and 127 B allow predetermined FOVs of the first and second photodetectors 123 A and 123 B to be superimposed on the first virtual plane. The first virtual plane is located at a constant distance from the second virtual plane in the longitudinal direction of the barcode reader 110 ; this second virtual plane contains the pixel areas of the first and second photodetectors 123 A and 123 B.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 12 of 22
Specifically, while the barcode reader 110 is located such that the barcode B is positioned within the FOVs of the photodetectors 123 A and 123 B with the reflected light being focused on the pixel area of each of the photodetectors 123 A and 123 B, the optoelectric transducers of the first photodetector 123 A and those of the second photodetector 123 B are simultaneously driven.
This allows the first and second images of the optoelectric transducers of the first and second photodetectors 123 A and 123 B corresponding to the target R containing the barcode B to be simultaneously picked up by the first and second photodetectors 123 A and 123 B, respectively.
Therefore, the first image obtained by the first photodetector 123 A and the second image obtained by the second photodetector 123 B can be substantially identical in size and orientation to each other.
This makes it possible to easily match the positions of the bars (spaces) in the first image and those of the bars (spaces) in the second image without associating addresses of a region of the memory unit 142 in which the first image is stored with those of another region thereof in which the second image is stored.
In addition, the first and second photodetectors 123 A and 123 B are configured such that their center axes XA and XB are arranged with the interval therebetween to be shifted laterally from and parallely to the optical axes Xa and Xb of the first and second imaging lenses 127 A and 127 B. The arrangement of the first and second photodetectors 123 A and 123 B allows a specular reflection region contained in the first image to be shifted in position from a specular reflection region contained in the second image.
Accordingly, intensity levels in a bar and/or space corresponding to a specular reflection region in one of the first and second images can be replaced into those in the same bar and/or space in the other of the first and second images. This makes it possible to eliminate the impact of specular reflection from the one of the first and second images, thus properly reading the barcode B even if a positional relationship between the target R and each of the first and second photodetectors 123 A and 123 B causes a specular reflection component to be contained in at least one of the first and second images.
Third Embodiment
An optical information reader according to a third embodiment of the present invention will be described hereinafter. The structure of the optical information reader according to the third embodiment is substantially identical to that of the optical information reader 10 according to the first embodiment.
Thus, like reference characters are assigned to like parts in the optical information readers according to the first and third embodiments, and therefore, descriptions of the structure of the optical information reader according to the third embodiment are omitted.
Operations of the information reader 10 according to the third embodiment, which are different from those of the reader according to the first embodiment, will be described hereinafter with reference to FIGS. 14 to 17 hereinafter.
In the information reader 10 according to the third embodiment, the tasks in steps S 112 and S 114 of FIG. 14 , which are identical to those in steps S 12 and S 14 of FIG. 6 , are carried out by the control circuit 40 , each of the first and second LEDs 21 A and 21 B, and each of the first and second photodetectors 23 A and 23 B.
Thus, first and second images of the target R containing the QR code Q are simultaneously picked up by the optoelectric transducers of the first and second photodetectors 23 A and 23 B, respectively.
A corresponding one of the first and second images outputted from each of the first and second photodetectors 23 A and 23 B is amplified by a corresponding one of the first and second amplifiers 31 A and 31 B to be transferred to a corresponding one of the first and second clipping circuits 32 A and 32 B.
Next, the control circuit 40 controls the first clipping circuit 32 A to clip a first QR code image QI 1 corresponding to the QR code Q from the amplified first image outputted from the first amplifier 31 A in step S 116 in which the operations in step S 16 (S 16 a to S 16 e ) are carried out.
(A 1 ) of FIG. 15 schematically illustrates the first QR code image QI 1 . As illustrated in FIG. 2 and (A 1 ) of FIG. 15 , the clipped first QR code image QI 1 becomes distorted such that its one side (Y 1 side, such as right side) in the Y direction is wider than its other side (Y 2 side, such as left side) therein closer to the center axis XC than the one side of the image QI 1 . This is because the first photodetector 23 A is arranged such that its center axis XA is shifted toward the Y 1 side from the center axis XC in the Y direction.
Subsequently, the control circuit 40 controls the first A/D converter 33 A to execute a mapping task to thereby convert the first QR code image QI 1 cell by cell into first binary data BQ 1 of the QR code Q.
In the third embodiment, like the first embodiment, as first image data DQ 1 , the digital values of 13×13 cells each corresponding to one level of light intensity within the range from 0 level to 255 level can be obtained by the first A/D converter 33 A.
In addition, in step S 117 , the control circuit 40 compares the digital value of each cell in the first image data DQ 1 with a predetermined threshold value corresponding to an intermediate level, such as 50 level in the 256 levels of light intensity. This allows the digital value of each cell in the first image data DQ 1 to be binarized so that the first binary data BQ 1 is generated.
Specifically, when the digital value of one cell in the first image data DQ 1 is equal to or higher than the predetermined threshold value, the digital value of the one cell in the first image data DQ 1 is binarized to a bit of 0 as the one cell of the first binary data BQ 1 corresponding to a white (light) pattern.
In contrast, when the digital value of one cell in the first image data DQ 1 is lower than the predetermined threshold value, the digital value of the one cell in the first image data DQ 1 is binarized to a bit of 1 of the one cell of the first binary data BQ 1 corresponding to a black (dark) pattern.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 13 of 22
As well as the first image, the control circuit 40 controls the second clipping circuit 32 B to clip a second QR code image QI 2 corresponding to the QR code Q from the amplified second image outputted from the second amplifier 31 B in step S 118 in which the operations in step S 16 (S 16 a to S 16 e ) are carried out.
As illustrated in (B 1 ) of FIG. 15 , the clipped second QR code image QI 2 becomes distorted such that its one side (Y 2 side, such as left side) in the Y direction is wider than its other side (Y 1 side, such as right side) in the Y direction closer to the center axis XC than the one side of the image QI 2 . This is because the second photodetector 23 B is arranged such that its center axis XB is shifted toward the Y 2 side from the center axis XC in the Y direction.
Subsequently, the control circuit 40 controls the second A/D converter 33 B to execute a mapping task to thereby convert the second QR code image QI 2 cell by cell into second binary data BQ 2 of the QR code Q.
Like the first image data DQ 1 , as the second image data DQ 2 , the digital values of 13×13 cells each corresponding to one level of light intensity within the range from 0 level to 255 level can be obtained by the second A/D converter 33 B.
In addition, in step S 119 , the control circuit 40 compares the digital value of each cell in the second image data DQ 2 with the predetermined threshold value. This allows the digital value of each cell in the second image data DQ 2 to be binarized so that the second binary data BQ 2 is generated.
Specifically, when the digital value of one cell in the second image data DQ 2 is equal to or higher than the predetermined threshold value, the digital value of the one cell in the second image data DQ 2 is binarized to a bit of 0 as the one cell of the second binary data BQ 2 corresponding to a white (light) pattern.
In contrast, when the digital value of one cell in the second image data DQ 2 is lower than the predetermined threshold value, the digital value of the one cell in the second image data DQ 2 is binarized to a binary bit of 1 of the one cell of the second binary data BQ 2 corresponding to a black (dark) pattern.
The binary data of 1 or 0 of each cell of each of the first and second binary data BQ 1 and BQ 2 is stored in its corresponding unique address of the memory 35 , this unique address is supplied from a corresponding one of the address generators 36 A and 36 B.
Note that, if the QR code Q has 21×21 cells, as the first binary data BQ 1 , the binary data of 1 or 0 of each of 21×21 cells can be obtained by the control circuit 40 . Similarly, as the second binary data BQ 2 , the binary data of 1 or 0 of each of 21×21 cells can be obtained by the control circuit 40 .
(A 2 ) and (B 2 ) of FIG. 15 schematically illustrate the first binary data BQ 1 of 13×13 cells in rows and columns and the second binary data BQ 2 of 13×13 cells in rows and columns, respectively. In addition, (A 1 ) and (B 1 ) of FIG. 16 schematically illustrate part of cells in the first binary data BQ 1 and that of cells in the second binary data BQ 2 , respectively.
The cells of each of the first and second binary data BQ 1 and BQ 2 are labeled in the same manner as the first and second image data DQ 1 and DQ 2 .
A bit of 0 to be assigned to some of cells in each of the first and second binary data BQ 1 and BQ 2 is illustrated in (A 2 ) and (B 2 ) of FIG. 15 and (A 1 ) and (B 1 ) of FIG. 16 as “W”. Similarly, a bit of 1 to be assigned to some of cells in each of the first and second binary data BQ 1 and BQ 2 is illustrated in (A 2 ) and (B 2 ) of FIG. 15 and (A 1 ) and (B 1 ) of FIG. 16 as “B”.
In the third embodiment, for example, it is assumed that a first image I 1 is picked up by the first photodetector 23 A, and a second image I 2 is picked up by the second photodetector 23 B (see [a] and [b] of FIG. 17 ).
Specifically, as illustrated in [a] of FIG. 17 , the first image I 1 contains a specular reflection region Ma positioned at its left side, and the second image I 2 contains a specular reflection region Mb positioned at its right side, which is shifted from the specular reflection region Ma.
The reason why the specular reflection region Ma and the specular reflection region Mb are misaligned from each other have been described hereinbefore with reference to FIG. 10 .
Specifically, as illustrated in, for example, [a] and [b] of FIG. 17 , the specular reflection region Ma appearing in the first image I 1 and the specular reflection region Mb appearing in the second image I 2 are different in position from each other.
In the third embodiment, as illustrated in (A 2 ) of FIG. 15 and (A 1 ) of FIG. 16 , it is assumed that the first binary data BQ 1 is generated based on the first image I 1 containing the specular reflection region Ma so that cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 in the binary data BQ 1 correspond to the specular reflection region Ma. As illustrated in (A 1 ) of FIG. 16 , a bit of 0 (W) is assigned to each of the cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 in the binary data BQ 1 correspond to the specular reflection region Ma.
Similarly, as illustrated in (B 2 ) of FIG. 15 and (B 2 ) of FIG. 16 , it is assumed that the second binary data BQ 2 is generated based on the second image I 2 containing the specular reflection region Mb so that cells 11 - 6 , 12 - 6 , 13 - 6 , 11 - 7 , 12 - 7 , 13 - 7 , 11 - 8 , 12 - 8 , and 13 - 8 in the binary data BQ 2 correspond to the specular reflection region Mb. As illustrated in (B 2 ) of FIG. 16 , a bit of 0 (W) is assigned to each of the cells 11 - 6 , 12 - 6 , 13 - 6 , 11 - 7 , 12 - 7 , 13 - 7 , 11 - 8 , 12 - 8 , and 13 - 8 in the binary data BQ 2 correspond to the specular reflection region Mb.
In contrast, as illustrated in (B 1 ) of FIG. 16 , bits of cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 of a region Ma′ in the second binary data BQ 2 corresponding to the specular reflection region Ma are properly binarized.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 14 of 22
Similarly, as illustrated in (A 2 ) of FIG. 16 , bits of cells 11 - 6 , 12 - 6 , 13 - 6 , 11 - 7 , 12 - 7 , 13 - 7 , 11 - 8 , 12 - 8 , and 13 - 8 of a region Mb′ in the first binary data BQ 1 corresponding to the specular reflection region Mb are properly binarized.
Thus, the control circuit 40 carries out logical combination between the bit of each cell in the first binary data BQ 1 and the bit of a corresponding one of the cells in the second binary data BQ 2 row by row and column by column in accordance with a logical combination rule T 1 (see FIG. 18 ) indicative of logical OR in steps S 120 , S 121 , and S 123 .
For example, logical OR between the bit (W) of each of the cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 in the first binary data BQ 1 corresponding to the specular reflection region Ma and the bit of a corresponding one of the cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 in the second binary data BQ 2 provide bits of cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 in combined data CB illustrated (C 1 ) of FIG. 16 .
These bits of the cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 in the combined data CB are equivalent to the bits of the cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 of the region Ma′ in the second binary data BQ 2 , which include no specular reflection regions.
Similarly, logical OR between the bit (W) of each of the cells 11 - 6 , 12 - 6 , 13 - 6 , 11 - 7 , 12 - 7 , 13 - 7 , 11 - 8 , 12 - 8 , and 13 - 8 in the second binary data BQ 2 corresponding to the specular reflection region Mb and the bit of a corresponding one of the cells 11 - 6 , 12 - 6 , 13 - 6 , 11 - 7 , 12 - 7 , 13 - 7 , 11 - 8 , 12 - 8 , and 13 - 8 in the first binary data BQ 1 provide bits of cells 11 - 6 , 12 - 6 , 13 - 6 , 11 - 7 , 12 - 7 , 13 - 7 , 11 - 8 , 12 - 8 , and 13 - 8 in the combined data CB illustrated (C 2 ) of FIG. 16 .
These bits of the cells 11 - 6 , 12 - 6 , 13 - 6 , 11 - 7 , 12 - 7 , 13 - 7 , 11 - 8 , 12 - 8 , and 13 - 8 in the combined data CB are equivalent to the bits of the cells 11 - 6 , 12 - 6 , 13 - 6 , 11 - 7 , 12 - 7 , 13 - 7 , 11 - 8 , 12 - 8 , and 13 - 8 of the region Mb′ in the first binary data BQ 1 , which include no specular reflection regions.
Specifically, in the third embodiment, the combination of the first binary data BQ 1 and the second binary data BQ 2 cell by cell allows at least one specular reflection region to be eliminated without detecting the at least one specular reflection region.
When the logical OR between the bit of each cell in the first binary data BQ 1 and the bit of a corresponding one of the cells in the second binary data BQ 2 is completed in all rows and all columns (the determinations in steps S 120 and S 121 are affirmative), the control circuit 40 proceeds to step S 126 .
In step S 126 , the control circuit 40 decodes information stored in the QR code Q and indicated as the light (white) or dark (black) colored cells C thereof based on the bit 1 or 0 of each cell of the combined data CB.
Thereafter, the control circuit 40 sends the decoded information stored in the QR code Q to the host system as an example, exiting the operations of the information reader 10 in step S 128 .
As described above, in the information reader 10 according to the third embodiment, the first and second photodetectors 23 A and 23 B are configured to simultaneously pick up an image of the QR code Q under control of the control circuit 40 . Next, the first and second clipping circuits 32 A and 32 B are configured to respectively clip the first and second QR code images QI 1 and QI 2 from the picked-up image under control of the control circuit 40 .
The first A/D converter 33 A is configured to obtain, as the first image data DQ 1 , the digital values of 13×13 cells each corresponding to one level of light intensity within the range from 0 level to 255 level. Similarly, the second A/D converter 33 B is configured to obtain, as the second image data DQ 2 , the digital values of 13×13 cells each corresponding to one level of light intensity within the range from 0 level to 255 level.
The control circuit 40 is configured to binarize:
the digital value of each cell in the first image data DQ 1 corresponding to the light intensity of each cell to thereby generate the first binary data BQ 1 ; and
the digital value of each cell in the second image data DQ 2 corresponding to the light intensity of each cell to thereby generate the second binary data BQ 2 .
Moreover, the control circuit 40 carries out logical combination between the bit of each cell in the first binary data BQ 1 and the bit of a corresponding one of the cells in the second binary data BQ 2 row by row and column by column in accordance with the logical combination rule T 1 indicative of logical OR. This allows at least one specular reflection region contained in each of the first and second binary data BQ 1 and BQ 2 to be eliminated.
That is, in the third embodiment, the number of cells of the QR code Q is set to be extremely lower than the number of pixels (optoelectric transducers) of each of the first and second photodetectors 23 A and 23 B. Therefore, in the third embodiment, the combination task using the first and second binary data BQ 1 and BQ 2 can be carried out cell by cell.
For this reason, as compared with the image superimposing tasks being carried out pixel by pixel of each of first and second images of a target disclosed in the Patent Publication No. H02-98789 (third example), it is possible to simply eliminate a specular reflection region contained in each of the first and second images QI 1 and QI 2 , thus rapidly decoding information stored in the QR code Q.
In addition, the first and second photodetectors 23 A and 23 B are configured such that their center axes XA and XB are arranged with the interval d 1 therebetween to be shifted laterally from and parallely to the optical axes Xa and Xb of the first and second imaging lenses 27 A and 27 B. The arrangement of the first and second photodetectors 23 A and 23 B allows a specular reflection region contained in the first QR code image to be shifted in position from a specular reflection region contained in the second QR code image.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 15 of 22
Accordingly, logical OR between the bit of each cell in the first binary data BQ 1 and the bit of a corresponding one of the cells in the second binary data BQ 2 cell by cell allows bits in the cells of a specular reflection region contained in one of the first and second binary data BQ 1 and BQ 2 to be replaced into those in the same cells of a corresponding region contained in the other of the first and second binary data BQ 1 and BQ 2 .
This makes it possible to eliminate the impact of specular reflection from the one of the first and second QR code images, thus properly reading the QR code Q even if a positional relationship between the target R and each of the first and second photodetectors 23 A and 23 B causes a specular reflection component to be contained in at least one of the first and second QR code images.
Fourth Embodiment
An optical information reader according to a fourth embodiment of the present invention will be described hereinafter. The structure of the optical information reader according to the fourth embodiment is substantially identical to that of the optical information reader 10 according to the first embodiment.
Thus, like reference characters are assigned to like parts in the optical information readers according to the first and fourth embodiments, and therefore, descriptions of the structure of the optical information reader according to the fourth embodiment are omitted.
Operations of the information reader 10 according to the fourth embodiment, which are different from those of the reader according to the first embodiment or the third embodiment, will be described hereinafter with reference to FIGS. 19 to 23 hereinafter.
In the information reader 10 according to the fourth embodiment, the tasks in steps S 112 and S 119 of FIG. 19 , which are identical to those in steps S 112 to S 119 of FIG. 14 , are carried out by the information reader 10 .
Note that, in the fourth embodiment, a QR code Q 5 is directly marked on a metal surface of a target R.
Specifically, as illustrated in (A 1 ) of FIG. 20 , dot-marked portions in the QR code Q 5 are colored in white (light) in a first image I 1 A, and dot-unmarked portions are colored in black (dark) in the first image I 1 A. When a specular reflection region Mc is contained in the first image I 1 A, the specular reflection region Mc is colored in white (light).
In contrast, a normal QR code Q has dot-marked portions colored in black (dark), and dot-unmarked portions colored in white (light). That is, the directly marked QR code Q 5 is designed such that black cells of a normal QR code Q are turned to white cells, and white cells of the normal QR code Q are turned to black cells. Such a first image I 1 A of the QR code Q 5 will be referred to as an originally reversal first image I 1 A.
Similarly, as illustrated in (B 1 ) of FIG. 20 , dot-marked portions in the QR code Q 5 are colored in white (light) in a second image I 2 A, and the dot-unmarked portions colored in black (dark) in the second image I 2 A. When a specular reflection region Md corresponding to the specular reflection region Mc is contained in the second image I 2 A, the specular reflection region Md is colored in white (light).
(A 2 ) of FIG. 20 illustrates a first image I 1 B of the QR code Q 5 whose originally black cells are inverted to white cells and originally white cells are inverted to black cells. Similarly, (B 2 ) of FIG. 20 illustrates a second image I 2 B of the QR code Q 5 whose originally black cells are inverted to white cells and originally white cells are inverted to black cells.
In the black-and-white inverted first image I 2 A illustrated in (A 2 ) of FIG. 20 , however, the specular reflection region Mc is inverted in color from white to black. Similarly, in the black-and-white inverted second image I 2 B illustrated in (B 2 ) of FIG. 20 , however, the specular reflection region Md is inverted in color from white to black.
Logical OR between the black-and-white inverted first and second binary data cannot eliminate the specular reflection region Mc because the specular reflection region Mc is colored black corresponding to a bit of 1.
Thus, in the fourth embodiment, logical AND is used to combine the black and white inverted first and second binary data.
(A 1 ) of FIG. 21 schematically illustrates the black-and-white inverted first QR code image QI 1 A clipped by the first clipping circuit 32 A. As illustrated in FIG. 2 and (A 1 ) of FIG. 21 , the clipped first QR code image QI 1 A becomes distorted such that its one side (Y 1 side, such as right side) in the Y direction is wider than its other side (Y 2 side, such as left side) therein. This is because the first photodetector 23 A is arranged such that its center axis XA is shifted toward the Y 1 side from the center axis XC in the Y direction.
Similarly, (B 1 ) of FIG. 21 schematically illustrates the black-and-white inverted second QR code image QI 2 A clipped by the second clipping circuit 32 B.
As illustrated in (B 1 ) of FIG. 21 , the clipped second QR code image QI 2 A becomes distorted such that its one side (Y 2 side, such as left side) in the Y direction is wider than its other side (Y 1 side, such as right side) in the Y direction closer to the center axis XC than the one side of the image QI 2 A. This is because the second photodetector 23 B is arranged such that its center axis XB is shifted toward the Y 2 side from the center axis XC in the Y direction.
(A 2 ) and (B 2 ) of FIG. 21 schematically illustrate the first binary data BQ 1 A of 13×13 cells in rows and columns obtained based on the clipped first QR code image QI 1 A and the second binary data BQ 2 A of 13×13 cells in rows and columns obtained based on the clipped second QR code image QI 2 A, respectively. In addition, (A 1 ) and (B 1 ) of FIG. 22 schematically illustrate part of cells in the first binary data BQ 1 A and that of cells in the second binary data BQ 2 A, respectively.
A bit of 0 to be assigned to some of cells in each of the first and second binary data BQ 1 A and BQ 2 A is illustrated in (A 2 ) and (B 2 ) of FIG. 21 and (A 1 ) and (B 1 ) of FIG. 22 as “W”. Similarly, a bit of 1 to be assigned to some of cells in each of the first and second binary data BQ 1 A and BQ 2 A is illustrated in (A 2 ) and (B 2 ) of FIG. 21 and (A 1 ) and (B 1 ) of FIG. 22 as “B”.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 16 of 22
In the fourth embodiment, as illustrated in (A 2 ) of FIG. 21 and (A 1 ) of FIG. 22 , it is assumed that the first binary data BQ 1 A is generated based on the black-and-white inverted first image I 1 B containing the specular reflection region Mc so that cells 1 - 1 , 2 - 1 , 3 - 1 , 1 - 2 , 2 - 2 , 3 - 2 , 1 - 3 , 2 - 3 , and 3 - 3 in the binary data BQ 1 A correspond to the specular reflection region Mc. As illustrated in (A 1 ) of FIG. 22 , a bit of 1 (B) is assigned to each of the cells 1 - 1 , 2 - 1 , 3 - 1 , 1 - 2 , 2 - 2 , 3 - 2 , 1 - 3 , 2 - 3 , and 3 - 3 in the binary data BQ 1 A correspond to the specular reflection region Mc.
Similarly, as illustrated in (B 2 ) of FIG. 21 and (B 2 ) of FIG. 22 , it is assumed that the second binary data BQ 2 A is generated based on the black-and-white inverted second image I 2 B containing the specular reflection region Md so that cells 1 - 4 , 2 - 4 , 3 - 4 , 1 - 5 , 2 - 5 , 3 - 5 , 1 - 6 , 2 - 6 , and 3 - 6 in the binary data BQ 2 A correspond to the specular reflection region Md. As illustrated in (B 2 ) of FIG. 22 , a bit of 1 (B) is assigned to each of the cells 1 - 4 , 2 - 4 , 3 - 4 , 1 - 5 , 2 - 5 , 3 - 5 , 1 - 6 , 2 - 6 , and 3 - 6 in the binary data BQ 2 correspond to the specular reflection region Md.
In contrast, as illustrated in (B 1 ) of FIG. 22 , bits of cells 1 - 1 , 2 - 1 , 3 - 1 , 1 - 2 , 2 - 2 , 3 - 2 , 1 - 3 , 2 - 3 , and 3 - 3 of a region Mc′ in the second binary data BQ 2 A corresponding to the specular reflection region Mc are properly binarized.
Similarly, as illustrated in (A 2 ) of FIG. 22 , bits of cells 1 - 4 , 2 - 4 , 3 - 4 , 1 - 5 , 2 - 5 , 3 - 5 , 1 - 6 , 2 - 6 , and 3 - 6 of a region Md′ in the first binary data BQ 1 A corresponding to the specular reflection region Md are properly binarized.
Thus, the control circuit 40 determines whether the first and second binary data are generated based on originally reversal first and second images 11 A and 12 A illustrated in (A 1 ) (B 1 ) of FIG. 20 .
When the first and second binary data are not generated based on the originally reversal first and second images 11 A and 12 A, the determination in step S 122 is negative. Then, the control circuit 40 carries out logical OR between the bit of each cell in the first binary data BQ 1 and the bit of a corresponding one of the cells in the second binary data BQ 2 row by row and column by column in steps S 120 , S 121 , and S 123 .
Otherwise, when the first and second binary data are generated based on the originally reversal first and second images 11 A and 12 A, the determination in step S 122 is affirmative.
Then, the control circuit 40 inverts the first binary data BQ 1 such that black cells are turned to white cells and vice versa to generate the first binary data BQ 1 A. Similarly, the control circuit 40 inverts the second binary data BQ 2 such that black cells are turned to white cells and vice versa to generate the second binary data BQ 2 A in step S 124 (see (A 2 ) and (B 2 ) of FIG. 20 and (A 2 ) and (B 2 ) of FIG. 21 ).
Thereafter, the control circuit 40 carries out logical combination between the bit of each cell in the first binary data BQ 1 A and the bit of a corresponding one of the cells in the second binary data BQ 2 A row by row and column by column in accordance with a logical combination rule T 2 (see FIG. 23 ) indicative of logical AND in steps S 120 , S 121 , and S 125 .
For example, logical AND between the bit (B) of each of the cells 1 - 1 , 2 - 1 , 3 - 1 , 1 - 2 , 2 - 2 , 3 - 2 , 1 - 3 , 2 - 3 , and 3 - 3 in the first binary data BQ 1 A corresponding to the specular reflection region Mc and the bit of a corresponding one of the cells 1 - 1 , 2 - 1 , 3 - 1 , 1 - 2 , 2 - 2 , 3 - 2 , 1 - 3 , 2 - 3 , and 3 - 3 in the second binary data BQ 2 A provide bits of cells 1 - 1 , 2 - 1 , 3 - 1 , 1 - 2 , 2 - 2 , 3 - 2 , 1 - 3 , 2 - 3 , and 3 - 3 in combined data CB 1 illustrated (C 1 ) of FIG. 22 .
These bits of the cells 1 - 1 , 2 - 1 , 3 - 1 , 1 - 2 , 2 - 2 , 3 - 2 , 1 - 3 , 2 - 3 , and 3 - 3 in the combined data CB 1 are equivalent to the bits of the cells 1 - 1 , 2 - 1 , 3 - 1 , 1 - 2 , 2 - 2 , 3 - 2 , 1 - 3 , 2 - 3 , and 3 - 3 of the region Mc′ in the second binary data BQ 2 A, which include no specular reflection regions.
Similarly, logical AND between the bit (B) of each of the cells 1 - 4 , 2 - 4 , 3 - 4 , 1 - 5 , 2 - 5 , 3 - 5 , 1 - 6 , 2 - 6 , and 3 - 6 in the second binary data BQ 2 A corresponding to the specular reflection region Md and the bit of a corresponding one of the cells 1 - 4 , 2 - 4 , 3 - 4 , 1 - 5 , 2 - 5 , 3 - 5 , 1 - 6 , 2 - 6 , and 3 - 6 in the first binary data BQ 1 A provide bits of cells 1 - 4 , 2 - 4 , 3 - 4 , 1 - 5 , 2 - 5 , 3 - 5 , 1 - 6 , 2 - 6 , and 3 - 6 in the combined data CB 1 illustrated (C 2 ) of FIG. 22 .
These bits of the cells 1 - 4 , 2 - 4 , 3 - 4 , 1 - 5 , 2 - 5 , 3 - 5 , 1 - 6 , 2 - 6 , and 3 - 6 in the combined data CB 1 are equivalent to the bits of the cells 1 - 4 , 2 - 4 , 3 - 4 , 1 - 5 , 2 - 5 , 3 - 5 , 1 - 6 , 2 - 6 , and 3 - 6 of the region Md′ in the first binary data BQ 1 A, which include no specular reflection regions.
Specifically, in the fourth embodiment, the combination of the first binary data BQ 1 A and the second binary data BQ 2 A cell by cell allows at least one specular reflection region to be eliminated without detecting the at least one specular reflection region.
When the logical AND or logical OR operation between the bit of each cell in the first binary data and the bit of a corresponding one of the cells in the second binary data is completed in all rows and all columns (the determinations in steps S 120 and S 121 are affirmative), the control circuit 40 proceeds to step S 126 .
In step S 126 , the control circuit 40 decodes information stored in the QR code Q 5 and indicated as the light (white) or dark (black) colored cells C thereof based on the bit 1 or 0 of each cell of the combined data CB or CB 1 .
Thereafter, the control circuit 40 sends the decoded information stored in the QR code Q 5 to the host system as an example, exiting the operations of the information reader 10 in step S 128 .
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 17 of 22
As described above, in the information reader 10 according to the fourth embodiment, the control circuit 40 carries out logical combination between the bit of each cell in the first binary data BQ 1 A and the bit of a corresponding one of the cells in the second binary data BQ 2 A row by row and column by column in accordance with the logical combination rule T 2 indicative of logical AND. This allows at least one specular reflection region contained in each of the first and second binary data BQ 1 A and BQ 2 A to be eliminated.
That is, in the fourth embodiment, the number of cells of the QR code Q 5 is set to be extremely lower than the number of pixels (optoelectric transducers) of each of the first and second photodetectors 23 A and 23 B. Therefore, in the fourth embodiment, the combination task using the first and second binary data BQ 1 A and BQ 2 A can be carried out cell by cell.
For this reason, as compared with the image superimposing tasks being carried out pixel by pixel of each of first and second images of a target disclosed in the Patent Publication No. H02-98789 (third example), it is possible to simply eliminate a specular reflection region contained in each of the first and second images QI 1 A and QI 2 A, thus rapidly decoding information stored in the QR code Q 5 .
In addition, the first and second photodetectors 23 A and 23 B are configured such that their center axes XA and XB are arranged with the interval d 1 therebetween to be shifted laterally from and parallely to the optical axes Xa and Xb of the first and second imaging lenses 27 A and 27 B. The arrangement of the first and second photodetectors 23 A and 23 B allows a specular reflection region contained in the first QR code image to be shifted in position from a specular reflection region contained in the second QR code image.
Accordingly, logical AND between the bit of each cell in the first binary data BQ 1 A and the bit of a corresponding one of the cells in the second binary data BQ 2 A cell by cell allows bits in the cells of a specular reflection region contained in one of the first and second binary data BQ 1 A and BQ 2 A to be replaced into those in the same cells of a corresponding region contained in the other of the first and second binary data BQ 1 A and BQ 2 A.
This makes it possible to eliminate the impact of specular reflection from the one of the first and second QR code images, thus properly reading the QR code Q 5 even if a positional relationship between the target R and each of the first and second photodetectors 23 A and 23 B causes a specular reflection component to be contained in at least one of the first and second QR code images.
Note that, in the fourth embodiment, logical AND is carried out cell by cell between the bit of each cell in the black-and-white inverted first binary data BQ 1 A and the bit of a corresponding one of the cells in the black-and-white inverted second binary data BQ 2 A. The present invention is however not limited to the structure.
Specifically, logical AND is carried out cell by cell between the bit of each cell in the first binary data BQ 1 obtained by the first image I 1 A and the bit of a corresponding one of the cells in the second binary data BQ 2 obtained thereby, thus generating combined data. Thereafter, the black cells are turned into white cells and vice versa. This allows bits in the cells of a specular reflection region contained in one of the first and second binary data BQ 1 and BQ 2 to be replaced into those in the same cells of a corresponding region contained in the other of the first and second binary data BQ 1 and BQ 2 .
Fifth Embodiment
An optical information reader according to a fifth embodiment of the present invention will be described hereinafter. Like reference characters are assigned to like parts in the optical information readers according to the first and fifth embodiments.
In the fifth embodiment, as schematically illustrated in FIG. 24 , a reading unit 18 A is composed of first, second, and third photodetectors 23 A, 23 B, and 23 C, and first, second, and third imaging lenses 27 A, 27 B, and 27 C.
For example, in the fifth embodiment, like the first embodiment, the first to third imaging lenses 27 A to 27 C are mounted on the one surface of the first circuit board 15 to be symmetrically disposed with reference to the center axis XC of the information reader 10 in parallel to the direction Y of the reading window 11 a.
The first to third imaging lenses 27 A to 27 C are arranged such that their optical axes Xa to Xc are parallel to the center axis XC of the information reader 10 .
The first to third photodetectors 23 A to 23 C are respectively mounted on the first circuit board 15 such that:
their pixel areas respectively face the first to third imaging lenses 27 A to 27 C;
their other surfaces are located on a virtual plane VP disposed orthogonal to their optical axes (center axes) of their pixel areas; and
their optical axes are arranged with a predetermined interval therebetween to be shifted laterally from and parallely to the optical axes Xa to Xc of the first to third imaging lenses 27 A to 27 C.
The arrangement of the first to third photodetectors 23 A to 23 C and the first to third imaging lenses 27 A to 27 C allow predetermined FOVs FA to FC of the first to third photodetectors 23 A to 23 C to be superimposed on a virtual plane P 1 (see FIG. 24 ).
In addition, a third amplifier 31 C, a third clipping circuit 32 C, a third A/D converter 33 C, a third address generator 36 C, and a third synchronous signal generator 38 C are provided for the set of the third photodetector 23 C and the third imaging lens 27 C. The operations of the third amplifier 31 C, third clipping circuit 32 C, third A/D converter 33 C, third address generator 36 C, and third synchronous signal generator 38 C are substantially identical to those of the first ampler 31 A, first clipping circuit 32 A, first A/D converter 33 A, first address generator 36 A, and first synchronous signal generator 38 A.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 18 of 22
Other structures of the optical information reader according to the fifth embodiment are substantially identical to those of the optical information reader 10 according to the first embodiment.
Operations of the information reader 10 according to the fifth embodiment, which are different from those of the reader according to the first embodiment, the third embodiment, or the fourth embodiment will be described hereinafter with reference to FIGS. 25 to 27 hereinafter.
In the information reader 10 according to the fifth embodiment, the tasks in steps S 112 and S 114 of FIG. 25 , which are identical to those in steps S 112 to S 119 of FIG. 14 , are carried out by the information reader 10 .
Especially, first to third images of the target R containing the QR code Q are simultaneously picked up by the optoelectric transducers of the first to third photodetectors 23 A to 23 C, respectively.
A corresponding one of the first to third images outputted from each of the first to third photodetectors 23 A to 23 C is amplified by a corresponding one of the first to third amplifiers 31 A and 31 C to be transferred to a corresponding one of the first to third clipping circuits 32 A to 32 C.
Moreover, the tasks in steps S 116 to S 119 of FIG. 25 , which are identical to those in steps S 116 to S 119 of FIG. 14 , are carried out by the information reader 10 .
In addition, as well as the first image, the control circuit 40 controls the third clipping circuit 32 C to clip a third QR code image QI 3 corresponding to the QR code Q from the amplified third image outputted from the third amplifier 31 C in step S 138 in which the operations in step S 16 (S 16 a to S 16 e ) are carried out.
Subsequently, the control circuit 40 controls the third A/D converter 33 C to execute a mapping task to thereby convert the third QR code image Q 13 cell by cell into third binary data BQ 3 of the QR code Q.
Like the first and second image data DQ 1 and DQ 2 , as the third image data DQ 3 , the digital values of 13×13 cells each corresponding to one level of light intensity within the range from 0 level to 255 level can be obtained by the third A/D converter 33 C.
In addition, in step S 139 , the control circuit 40 compares the digital value of each cell in the third image data DQ 3 with the predetermined threshold value. This allows the digital value of each cell in the third image data DQ 3 to be binarized so that the third binary data BQ 3 is generated.
Specifically, when the digital value of one cell in the third image data DQ 3 is equal to or higher than the predetermined threshold value, the digital value of the one cell in the third image data DQ 3 is binarized to a bit of 0 as the one cell of the third binary data BQ 3 corresponding to a white (light) pattern.
In contrast, when the digital value of one cell in the third image data DQ 3 is lower than the predetermined threshold value, the digital value of the one cell in the third image data DQ 3 is binarized to a binary bit of 1 of the one cell of the third binary data BQ 3 corresponding to a black (dark) pattern.
The binary data of 1 or 0 of each cell of each of the first to third binary data BQ 1 to BQ 3 is stored in its corresponding unique address of the memory 35 , this unique address is supplied from a corresponding one of the address generators 36 A to 36 C.
(A) to (C) of FIG. 26 schematically illustrate the first binary data BQ 1 of 13×13 cells in rows and columns obtained based on the clipped first QR code image QI 1 to the third binary data BQ 3 of 13×13 cells in rows and columns obtained based on the clipped third QR code image QI 3 , respectively. In addition, (A) to (C) of FIG. 27 schematically illustrate part of cells in the first binary data BQ 1 to that of cells in the third binary data BQ 3 , respectively.
A bit of 0 to be assigned to some of cells in each of the first to third binary data BQ 1 to BQ 3 is illustrated in (A) to (C) of FIG. 26 and (A) to (C) of FIG. 27 as “W”. Similarly, a bit of 1 to be assigned to some of cells in each of the first to third binary data BQ 1 to BQ 3 is illustrated in (A) to (C) of FIG. 26 and (A) to (C) of FIG. 27 as “B”.
In the fifth embodiment, as illustrated in (A) of FIG. 26 and (A) of FIG. 27 , it is assumed that the first binary data BQ 1 is generated based on the first image I 1 containing a specular reflection region Me so that cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 in the binary data BQ 1 correspond to the specular reflection region Me. As illustrated in (A) of FIG. 27 , a bit of 0 (W) is assigned to each of the cell 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 in the binary data BQ 1 correspond to the specular reflection region Me.
In contrast, as illustrated in (B) of FIG. 27 , bits of cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 of a region Me′ in the second binary data BQ 2 corresponding to the specular reflection region Me are properly binarized.
Similarly, as illustrated in (C) of FIG. 27 , bits of cells 1 - 6 , 2 - 6 , 3 - 6 , 1 - 7 , 2 - 7 , 3 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 of a region Me″ in the third binary data BQ 3 corresponding to the specular reflection region Me are properly binarized.
Thus, the control circuit 40 executes logical combination between the bit of each cell in the first binary data BQ 1 , the bit of a corresponding one of the cells in the second binary data BQ 2 , and the bit of a corresponding one of the cells in the third binary data BQ 3 row by row and column by column based on majority rule in steps S 120 , S 121 , and S 140 .
For example, in each of the cells 1 - 6 , 2 - 6 , 1 - 7 , 2 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 among the first to third binary data BQ 1 to BQ 3 , the bit (W) is decided based on majority rule. In contrast, in each of the remaining cells 3 - 6 and 3 - 7 among the first to third binary data BQ 1 to BQ 3 , the bit (B) is decided based on majority rule.
Therefore, the cells 1 - 6 , 2 - 6 , 1 - 7 , 2 - 7 , 1 - 8 , 2 - 8 , and 3 - 8 to which the bit (W) is assigned and the remaining cells 3 - 6 and 3 - 7 to which the bit (B) is assigned are generated as combined data CB 2 .
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 19 of 22
Specifically, in the fifth embodiment, the combination of the first binary data BQ 1 to the third binary data BQ 3 cell by cell allows at least one specular reflection region to be eliminated without detecting the at least one specular reflection region.
When the logical combination between the bit of each cell in the first binary data BQ 1 , the bit of a corresponding one of the cells in the second binary data BQ 2 , and the bit of a corresponding one of the cells in the third binary data BQ 3 based on majority rule is completed in all rows and all columns (the determinations in steps S 120 and S 121 are affirmative), the control circuit 40 proceeds to step S 126 .
In step S 126 , the control circuit 40 decodes information stored in the QR code Q and indicated as the light (white) or dark (black) colored cells C thereof based on the bit 1 or 0 of each cell of the combined data CB 2 .
Thereafter, the control circuit 40 sends the decoded information stored in the QR code Q to the host system as an example, exiting the operations of the information reader 10 in step S 128 .
As described above, in the information reader 10 according to the fifth embodiment, the control circuit 40 carries out logical combination between the bit of each cell in the first binary data BQ 1 , the bit of a corresponding one of the cells in the second binary data BQ 2 , and the bit of a corresponding one of the cells in the third binary data BQ 3 row by row and column by column in accordance with the majority rule. This allows at least one specular reflection region contained in at least one of the first to third binary data BQ 1 to BQ 3 to be eliminated.
That is, in the fifth embodiment, the number of cells of the QR code Q is set to be extremely lower than the number of pixels (optoelectric transducers) of each of the first to third photodetectors 23 A to 23 C. Therefore, in the fifth embodiment, the combination task using the first to third binary data BQ 1 to BQ 3 can be carried out cell by cell.
For this reason, as compared with the image superimposing tasks being carried out pixel by pixel of each of first and second images of a target disclosed in the Patent Publication No. H02-98789 (third example), it is possible to simply eliminate a specular reflection region contained in each of the first to third images QI 1 to QI 3 , thus rapidly decoding information stored in the QR code Q.
In the fifth embodiment, logical combination between the bit of each cell in the first binary data BQ 1 , the bit of a corresponding one of the cells in the second binary data BQ 2 , and the bit of a corresponding one of the cells in the third binary data BQ 3 based on the majority rule cell by cell allows bits in the cells of a specular reflection region contained in one of the first to third binary data BQ 1 to BQ 3 to be replaced into those in the same cells of a corresponding region contained in another one of the first to third binary data BQ 1 and BQ 3 .
This makes it possible to eliminate the impact of specular reflection from the one of the first to third QR code images, thus properly reading the QR code Q even if a positional relationship between the target R and each of the first to third photodetectors 23 A to 23 C causes a specular reflection component to be contained in at least one of the first to third QR code images.
Especially, calculation of the bit 1 or 0 of each cell of the combined data CB 2 is carried out in accordance with majority rule using the first to third binary data BQ 1 to BQ 3 generated based on the first to third images picked up by the first to third photodetectors 23 A to 23 C, respectively. This makes it possible to further reliably read the QR code Q.
Sixth Embodiment
An optical information reader 10 A according to a sixth embodiment of the present invention will be described hereinafter. The structure of the optical information reader 10 A according to the sixth embodiment is substantially identical to that of the optical information reader 10 according to the first embodiment except for the structure of a reading unit and that of a circuit unit.
Thus, like reference characters are assigned to like parts in the optical information readers according to the first and sixth embodiments, and therefore, descriptions of the structure of the optical information reader according to the sixth embodiment are omitted.
As illustrated in FIGS. 2 , 28 and 29 , the reading unit 18 B is composed of a pair of first and second photodetectors 223 A and 223 B and a pair of first and second imaging lenses 227 A and 227 B.
Each of the first and second photodetectors 223 A and 223 B is for example composed of a common two-dimensional image sensor, such as a CMOS image sensor, a CCD (Charge Coupled Device) image sensor, or the like. The structure of each the first and second photodetectors 223 A and 223 B is substantially identical to that of a corresponding one of the first and second photodetectors 23 A and 23 B, and therefore descriptions of which are omitted.
The structure of each of the first and second imaging lenses 227 A and 227 B is substantially identical to that of a corresponding one of the first and second imaging lenses 27 A and 27 B except for the angle of view thereof.
Specifically, the angle of view of the second imaging lens 227 B is wider than that of view of the first imaging lens 227 A.
Arrangement of the first and second photodetectors 223 A and 223 B and the first and second imaging lenses 227 A and 227 B is substantially identical to that of the first and second photodetectors 23 A and 23 B and the first and second imaging lenses 27 A and 27 B (see FIG. 2 ).
Thus, because the angle of view of the second imaging lens 227 B is wider than that of view of the first imaging lens 227 A, a predetermined FOV FB 1 of the second photodetector 223 B via the second imaging lens 227 B is larger in size than a predetermined FOV FA 1 of the first photodetector 223 A via the first imaging lens 227 A.
Specifically, as illustrated in FIG. 29 , the arrangement of the first and second photodetectors 223 A and 223 B and the first and second imaging lenses 227 A and 227 B allow the FOV FA 1 to be contained in the FOV FB 1 of the second photodetector 223 B on a virtual plane P 1 .
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 20 of 22
(A) of FIG. 30 schematically illustrates a first QR code image QI 11 A of a QR code Q 1 being picked up by the FOV FA 1 of the first photodetector 223 A and first imaging lens 227 A of the reading apparatus 10 A. (B) of FIG. 30 schematically illustrates a first QR code image QI 12 A of a QR code Q 2 being picked up by the first FOV FA 1 of the first photodetector 223 A and first imaging lens 227 A of the reading apparatus 10 A. The QR code Q 2 is larger in size of each cell than the QR code Q 1 .
(C) of FIG. 30 schematically illustrates a second QR code image I 11 B of the QR code Q 1 being picked up by the FOV FB 1 of the second photodetector 223 B and second imaging lens 227 B of the reading apparatus 10 A. (D) of FIG. 30 schematically illustrates a second QR code image I 12 B of the QR code Q 2 being picked up by the FOV FB 1 of the second photodetector 223 B and second imaging lens 227 B of the reading apparatus 10 A.
As understood by comparison between (A) and (C) of FIG. 30 , the number of pixels of the first photodetector 223 A to which each cell of the first QR code image QI 11 A is assigned is greater than the number of pixels of the second photodetector 223 B to which each cell of the second QR code image QI 11 B is assigned. This allows the whole of the QR code Q 1 to be imaged without blurring occurring.
However, as illustrated in (B) of FIG. 30 , because the area of the QR code image QI 12 A is larger than the FOV FA 1 of the first photodetector 223 A, it is difficult to properly read the QR code Q 2 .
As understood by comparison between (A) and (C) of FIG. 30 , the QR code image QI 11 B is relatively smaller in size than the FOV FB 1 . For this reason, the number of pixels of the second photodetector 223 B to which each cell of the second QR code image QI 11 B is assigned is lower than the number of pixels of the first photodetector 223 A to which each cell of the first QR code image QI 11 A is assigned.
In contrast, as illustrated in (D) of FIG. 30 , because the area of the QR code image QI 12 B is smaller than the FOV FB 1 of the second photodetector 223 B, it is properly and rapidly read the QR code Q 2 .
Accordingly, when the information reader 10 A reads such a QR code Q 1 , the control circuit 40 is configured to use the first image data DQ 1 of the QR code Q 1 to be decoded.
In contrast, when the information reader 10 A reads such a QR code Q 2 , the control circuit 40 is configured to use the second image data DQ 2 of the QR code Q 2 to be decoded.
The structure of a QR code Q 10 to be readable by the information reader 10 A is illustrated in FIG. 31 .
The QR code Q 10 has a substantially square shape with four apexes at its corners. The QR code Q 10 is composed of three isolated positioning marks (finding patterns) QP, QP, QP disposed respectively at three corners of the QR code Q 10 .
The QR code Q 10 is also composed of an apex detecting cell QT located at the remaining corner of the QR code Q, and of a data region QG arranged among the three isolated positioning marks QP, QP, QP and the apex detecting cell QT.
The QR code Q 10 is constituted by the same number of vertical and horizontal cells C, for example, 21×21 cells.
Each cell C is selected from optically identifiable two kinds of cells. For example, in the sixth embodiment, one of the optically identifiable two kinds of cells is printed in black (dark) color whereas the other thereof is printed in white (light) color whose light reflectance is different from that of the black (dark) color (see FIG. 31 ).
Reference character SL denotes horizontal scanning lines, such as 512 scanning lines, of each of the first and second photodetectors 223 A and 223 B of the information reader 10 A.
Specifically, the first scanning line SLF corresponds to the first row of the pixels in each of the first and second photodetectors 223 A and 223 B. The last scanning line SLL corresponds to the last row of the pixels in each of the first and second photodetectors 223 A and 223 B. The remaining horizontal scanning lines corresponds to the remaining rows of the pixels in each of the first and second photodetectors 223 A and 223 B, respectively.
In addition, the circuit unit 20 A includes first and second decode image selectors 37 A and 37 B in place of the first and second clipping circuit 32 A and 32 B. Specifically, the first decode image selector 37 A is electrically connected to the first amplifier 31 A and the first A/D converter 33 A and operative to select, as a target of decoding, at least one of the first and second images picked up by the first and second photodetectors 223 A and 223 B.
Next, operations of the information reader 10 A according to the sixth embodiment will be described hereinafter.
When a user wants to read the QR code Q 10 attached to the target R, the user locates the information reader 10 A so that the reading window 11 a is opposite to the target R and that the QR code Q 10 is positioned within at least the FOV FB 1 (see FIG. 29 ).
In this state, the user operates the operation switch 12 to turn it on. An instruction indicative of the turning on of the operation switch 12 is sent to the control circuit 40 .
The control circuit 40 controls each of the first and second LEDs 21 A and 21 B to emit the red illumination light Lf toward the target R in step S 212 of FIG. 32 . This allows the target R containing the QR code Q 10 to be exposed to the red illumination light emitted from each of the LEDs 21 A and 21 B via a corresponding one of the first and second collective lenses 52 A and 52 B and the reading window 11 a in step S 212 .
While the target R containing the QR code Q 10 is exposed to the red illumination light, light reflected from the target R containing the QR code Q 10 based on the red illumination light is entered through the reading window 11 a into each of the imaging lenses 227 A and 227 B. The reflected light entered into each of the imaging lenses 227 A and 227 B is focused on the pixel area of a corresponding one of the first and second photodetectors 223 A and 223 B.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 21 of 22
During the reflected light being focused on the pixel area of each of the first and second photodetectors 223 A and 223 B, the optoelectric transducers of each of the first and second photodetectors 223 A and 223 B are simultaneously driven in step S 214 . As a result, first and second images of the target R containing the QR code Q 10 are simultaneously picked up by the optoelectric transducers of the first and second photodetectors 223 A and 223 B, respectively.
A corresponding one of the first and second images is scanned horizontal-line by horizontal-line in each of the photodetectors 223 A and 223 B so that a corresponding one of the first and second images is sequentially output horizontal-line by horizontal-line.
The first and second image signals outputted from each of the first and second photodetectors 223 A and 223 B is amplified by a corresponding one of the first and second amplifiers 31 A and 31 B to be transferred to a corresponding one of the first and second decode image selectors 37 A and 37 B.
Next, under control of the control circuit 40 , each of the first and second decode image selectors 37 A and 37 B executes a pixel counting subroutine in step S 300 .
FIG. 33 schematically illustrates the pixel counting subroutine.
Specifically, the first decode image selector 37 A counts every time a pixel of the first image whose intensity level is higher than a predetermined threshold level appears in the first horizontal scanning line SLF in step S 302 ; this pixel corresponds to a white (light) pixel.
In addition, the first decode image selector 37 A counts every time a pixel of the first image whose intensity level is equal to or lower than the predetermined threshold level appears in the first horizontal scanning line SLF in step S 303 ; this pixel corresponds to a black (dark) pixel.
Then, the first decode image selector 37 A determines whether a ratio between the count value of first black pixels, the count value of first white pixels adjacent to the first black pixels, the count value of second black pixels adjacent to the first white pixels, the count value of second white pixels adjacent to the second black pixels, and the count value of third black pixels adjacent to the second white pixels of the first image in the first horizontal scanning line is equal to the specified ratio of 1:1:3:1:1 in step S 304 (see FIGS. 7A and 7B ).
When it is determined that the ratio in step S 304 is not equal to the specified ratio of 1:1:3:1:1 over the first horizontal scanning line (the determination in step S 304 is NO), the first decode image selector 37 A proceeds to step S 310 .
Otherwise, when it is determined that the ratio in step S 304 is equal to the specified ratio of 1:1:3:1:1 (the determination in step S 304 is YES), the first decode image selector 37 A identifies that a pixel area corresponding to the specified ratio of 1:1:3:1:1 in the first horizontal scanning line belongs to one of the positioning marks QP. Then, the first decode image selector 37 A calculates the total number of pixels in the pixel area corresponding to the specified ratio of 1:1:3:1:1 in the first horizontal scanning line and adds the calculated total number of pixels to a criterion count value representing the number of pixels of at least part of the positioning makes QP appearing in the first image in step S 305 , going to step S 310 . Note that an initial value of the criteria count value is zero.
In step S 310 , the first decode image selector 37 A goes to the next horizontal scanning line in step S 310 .
Next, in step S 312 , the first decode image selector 37 A determines whether the tasks in steps S 301 to S 305 are completed in the last horizontal scanning line SLL. When it is determined that the tasks in steps S 301 to S 305 are not completed in the last horizontal scanning line SLL (the determination in step S 312 is NO), the first decode image selector 37 A returns to step S 301 and repeats the tasks in step S 301 to S 305 in the next horizontal scanning line.
When it is determined that the tasks in steps S 301 to S 305 are completed in the last horizontal scanning line SLL (the determination in step S 312 is YES), the first decode image selector 37 A exits the pixel counting subroutine.
Simultaneously, the second decode image selector 37 B executes the pixel counting subroutine illustrated in FIG. 33 for the second image sent thereto.
Returning to the main routine illustrated in FIG. 32 after completion of the pixel counting subroutine of each of the first and second decode image selectors, the control circuit 40 determines whether to select the first image to be decoded by determining whether the criterion count value for the first image is greater than that for the second image in step S 218 .
When it is determined that the criterion count value for the first image is greater than that for the second image (the determination in step S 218 is YES), the control circuit 40 proceeds to step S 220 . In step S 220 , the control circuit 40 carries out the mapping task, the decoding task, and data output task illustrated in steps S 18 , S 24 , S 26 , and S 28 using the first image picked up by the first photodetector 223 A and the first imaging lens 227 A.
Otherwise, when it is determined that the criterion count value for the first image is not greater than that for the second image (the determination in step S 218 is NO), the control circuit 40 proceeds to step S 222 . In step S 222 , the control circuit 40 carries out the mapping task, the decoding task, and data output task illustrated in steps S 18 , S 24 , S 26 , and S 28 using the second image picked up by the second photodetector 223 B and the second imaging lens 227 B.
As described above, the optical information reader 10 A according to the sixth embodiment is configured to count the number of pixels belonging to at least one positioning mark QP appearing in each of the first and second images.
In addition, the optical information reader 10 A is configured to select one of the first image and second image when the number of pixels belonging to at least one positioning mark QP appearing in one of the first and second images is greater than that of pixels belonging to at least one positioning mark QP appearing in the other of the first and second images.
›DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION · 22 of 22
This allows selection of one of the first and second photodetectors with a corresponding one of the first and second imaging lenses. The angle of view of the selected one of the first and second imaging lenses allows the finding patterns of the QR code Q 10 to be properly imaged and the total area of the QR code Q 10 to be properly imaged.
Thus, it is possible to reliably read both QR codes greater in size than normal QR codes and QR codes smaller in size than normal QR codes.
Especially, the optical information reader 10 A according to the sixth embodiment is configured to count the number of pixels belonging to at least one positioning mark QP in each of the horizontal scanning lines; this at least one positioning mark QP appears in each of the first and second images.
This can identity the size of at least one finding pattern QP appearing in each of the first and second images without clipping at least one finding pattern, making it possible to rapidly select one of the first and second photodetectors with a corresponding one of the first and second imaging lenses having the angle of view suitable for reading QR codes with various sizes.
In the first embodiment, the pair of first and second photodetectors 23 A and 23 B are used, and in the second embodiment, the pair of first and second photodetectors 123 A and 123 B are used, but the present invention is not limited to the structure. Specifically a three or more photodetectors can be used in each of the first and second embodiments. In the fifth embodiment, a four or more photodetectors can be used.
In the sixth embodiment, the optical information reader 10 A is designed to count the number of pixels belonging to at least one positioning mark QP in each of the horizontal scanning lines; this at least one positioning mark QP appears in each of the first and second images. The present invention is however limited to the structure.
Specifically, the optical information reader 10 A can be designed to count the number of pixels belonging to at least one positioning mark QP in at least one of specified horizontal scanning lines; this at least one positioning mark QP appears in each of the first and second images. For example, the optical information reader 10 A can be designed to count the number of pixels belonging to at least one positioning mark QP in every three scanning lines; this at least one positioning mark QP appears in each of the first and second images.
In the sixth embodiment, a three or more photodetectors can be used.
In the sixth embodiment, each of the first and second decode image selectors 37 A and 37 B are configured to count the number of pixels belonging to at least one positioning mark QP appearing in a corresponding one of the first and second images amplified by a corresponding one of the first and second amplifiers 31 A and 31 B.
However, the present invention is not limited to the structure.
Specifically, the control circuit 40 can be programmed to:
carry out the operations of the first image selector 37 A based on first image data A/D converted from the first image by the first A/D converter 33 A and stored in the memory 35 ; and
carry out the operations of the second image selector 37 B based on second image data A/D converted from the second image by the second A/D converter 33 B.
While there has been described what is at present considered to be these embodiments and modifications of the present invention, it will be understood that various modifications which are not described yet may be made therein, and it is intended to cover in the appended claims all such modifications as fall within the true spirit and scope of the invention.
Claims as granted
20 claimsLog in to read the claims of this application.
Log in to unlockClassifications
14 codes- G06V30/224
- G06K7/14
- G06K19/08
- G06K21/00
- G06K19/06
- G06K5/04
- G06K7/10
Claim changes
SoonSee which claims were amended, added or cancelled during examination, with every added and removed word marked.
The published claims of this application are not paired with the granted ones in what we hold.
File wrapper
See the full prosecution history — every USPTO and applicant action on this file, in order.
Log in to unlockDocuments
Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.
Log in to unlockChain of title
See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.
Log in to unlock