This application claims benefit of Japanese Patent Application No. 2002-063655 filed on Mar. 8, 2002, the contents of which are incorporated by the reference.
The present invention relates to image input apparatuses and, more particularly, to image input apparatuses for inputting monochromatic or color images of parts of mails illuminated from an illumination light source for sorting the mails with image recognition.
This type of image input apparatus is in actual use in a state that it is mounted in apparatuses for sorting out letters (such as postal cards and standard-size mails) and also postal matter called flat mails (the apparatuses being called letter sorter and flat mail sorter, respectively). In these sorters, an image input apparatus reads out images of mails, and succeeding stage recognition processor reads out destination names written on the mail surfaces. As a result of this reading, the mails are sorted out and accommodated in sorting boxes for respective distribution areas. Prior art techniques of this kind, for automatically reading out names of postal matter or the like, are disclosed in Japanese Patent Laid-Open No. 2001-243458, Japanese Patent Laid-Open No. 63-189978, Japanese Patent Laid-Open No. 2-171883, Japanese Patent Laid-Open No. 9-131573 and Japanese Patent Laid-Open No. 10-187952.
Compared to letters, flat mails are in a wide thickness range from small thickness to large thickness (of 50 mm at maximum), and are also in a wide area range up to a maximum size of 400 mm vertical and 300 mm horizontal. Accordingly, in image input apparatuses for flat mails, the optical system is designed such as to ensure broader field of view and greater depth compared to those in the case of letters.
Postal matter called pack mails are of sizes greater than those of flat mails, for instance one of 600 mm maximum height, 500 mm vertical and 600 mm horizontal. In view of the sorting of mails with image recognition, a sorter for pack mails (hereinafter referred to as pack mail sorter) has to meet ten or more times the thickness requirement for the flat mail sorter.
With extension of the prior art techniques concerning the image input apparatuses for flat mails, therefore, it is difficult to meet the above thickness requirement due to limitation posed by illumination depth and scene object depth of camera (i.e., range of scene object position viewed to be in focus).
An object of the present invention is to provide an image input apparatus, which is for use with postal matter sorter for dealing with various size postal matter including pack mails and permits fast and high performance sorting in image recognition processing like those in the letter sorter and flat mail sorter.
According to an aspect of the present invention, there is provided an image input apparatus for illuminating a scene object moved in a predetermined direction by a transport means from an illuminating means, imaging the scene object with an imaging means and discriminating data of the scene object from the imaged data, wherein: an imaging distance up to the scene object is detected before the imaging, and auto-focusing is made according to the detected distance data at the time of the imaging.
In the present invention, the imaging distance is preliminarily measured by an imaging distance detecting means, which is disposed on the upstream side of the imaging position in the mail transport direction, and for imaging an auto-focusing means does auto-focusing according to the measured imaging distance, thus realizing great object scene depth of the camera.
In the detection of the imaging distance, the height of a mail is measured for reading out the mail top surface. This measure is also applied to the case of reading out the front (or rear) side surface of the mail at the same time. Specifically, for the imaging and illumination an angle (for instance 45 degrees) is set forwardly downward with respect to the transport direction in the case of reading out both the front side surface and the top surface and rearwardly downward in the case of reading out both the rear side surface and the top surface.
In the reading of mail side surface, the imaging distance is detected by measuring the position of mail in the direction perpendicular to the mail transport direction. This measure is also applied in the case of reading out the front (or rear) surface at the same time. Specifically, for the imaging and illumination an angle (for instance 45 degrees) is set forwardly downward with respect to the mail transport direction in the case of reading out the front surface and side surface and rearwardly downward in the case of reading out the rear surface and side surface.
The auto-focusing is made by causing back-and-forth movement of a printed board with linear array CCD mounted thereon with a commercially available linear stepping motor. For the auto-focusing, such an optical design is made that a sensor side focus range (i.e., focus depth), which is obtainable without auto-focusing, is several 10 μm with respect to a stepping motor positioning accuracy of 10 μm. Accurate auto-focusing is thus possible, which is inexpensive and can sufficiently provide for the aim.
The positioning is normally made as relative positioning. However, when the inter-mail interval is more than positioning movement time inclusive of initial state restoration time, the initial state restoration is always made to prevent continual positioning deviation in the event of positioning deviation caused by an external shock or the like.
For the auto-focusing operation, only part of the full movable range is used, and it is possible that the pertinent part is deteriorated sooner due to grease use-up. Accordingly, right after the power turning-on the full stroke operation is always caused several times to provide grease sufficiently uniformly, thus realizing longer life of maintenance-free duty service.
The auto-focusing is made by moving the sensor. Therefore, when the ratio of the line scan direction (i.e., main scanning direction) and the mail transport direction (i.e., auxiliary scanning direction) is set to 1:1, for instance, at the position of the maximum imaging distance from the sensor side, with reducing imaging distance the field of view becomes narrower to increase the ratio of the scan direction to the mail transport direction, resulting in deviation of the vertical-to-horizontal ratio. Accordingly, scan direction thin-out process according to the imaging distance is made for compensation for providing stable vertical-to-horizontal ratio at all times.
Furthermore, a plurality of mirrors are used to provide as long optical path as possible in a limited space and suppress field-of-side variations due to imaging distance variations as much as possible. Mirrors which have sufficient surface accuracy and are sufficiently thick to avoid distortion at the time of the mounting, are selected for use.
As for the illumination, as high intensity and uniform illumination as possible in the above depth width and imaging width are required. High illumination intensity does not merely lead to signal-to-noise ratio improvement of signal but also leads improvement of the camera depth free from mechanical auto-focusing based on lens top operation, and also it permits imaging with increased focus accuracy with respect to irregularities of the scene object in the scan direction. Uniformity reduces load on subsequent stage analog gain compensation, and leads to improvement of the image quality.
The present device accordingly uses orange-color high-voltage sodium lamps, which provide high brightness and are excellent in long life and stability, as illumination light source. A plurality of high-voltage sodium lamp tubes are used, and the shape of an illumination light reflector is contrived such as to permit as high intensity and uniform illumination with the above depth width and imaging width.
In the case of color imaging, it is necessary to make coarse color balance compensation with sharp-cut color filters. Doing so results in corresponding light dose reduction, imposing limitation on the resolution or rate of imaging. Accordingly, for particularly high resolution color imaging, white metal halide lamps are used, which are inferior in light dose to the sodium lamps but permit more light dose to be obtained as a result.
As for the angle of imaging and illumination, such a disposition is adopted as to avoid incidence of right reflection light from a vinyl seal or the like on the imaging system as much as possible.
Moreover, generation of envelope follow-up signal subsequent to analog-to-digital conversion, is contrived such as to suppress contrast deterioration due to right reflection light.
Other objects and features will be clarified from the following description with reference to attached drawings.
Preferred embodiments of the present invention will now be described in detail with reference to the drawings. In the first place, a first embodiment of the present invention will be described with reference to drawings. Referring to
An illumination unit 6 does linear illumination of the mails 2. The construction of the illumination unit 6 will now be described with reference to
In dependence on whether the lamp tubes 14 are high-voltage sodium lamps or metal halide lamps, the reflectors 17 and the auxiliary reflector 20 are designed and mounted such as to illuminate the field of view of the camera as uniformly and with as high illumination intensity as possible in the necessary scene object depth and field of view. Also, in dependence on the characteristics of the individual lamps, the lamp tube surfaces and the front glass member 19 have a coating for cutting off heat rays and ultraviolet rays, thus suppressing heat ray and ultraviolet ray illumination as much as possible and realizing high intensity illumination based on the visible light range.
The circuit construction of the first embodiment of the present invention will now be described with reference to
The electric part is constituted by a CCD circuit 30 for performing photo-electric conversion, a CCD drive circuit 32 for generating CCD drive signal, a video signal processing circuit 33 for digitally converting electric signal from the CCD circuit 30 by amplification and normalization and performing compensation of each digital image, an image data transfer circuit 34 for performing parallel-to-serial conversion of video signal and outputting the resultant signal to an image recognition processor 35 in a recognition unit 7, a control circuit 36 for communicating with a parameter controller 37 in the recognition unit 7 by receiving signals from the photo-electric sensor 3, the area sensor 4 and the rotary encoder 9 and setting parameters in an auto-focusing module 31 and a video signal processing circuit 33.
The construction of the auto-focusing module 31 will be described in detail with reference to
A CCD board securing member 43 is mounted on the end of the shaft of the linear stepping motor 38. A CCD board 44, which supports the linear array CCD 29, a shelter 28 for partly sheltering light therefrom and the CCD circuit 30 shown in
The recognition unit 7 is constituted by the image recognition processor 35, which performs an image recognition process on image data from the image data transfer circuit 34, and a parameter controller 36, which transfers various parameters at a certain timing of the photoelectric sensor 3 to the auto-focusing module 31 and the video signal processing circuit 33 according to the values of data from the area sensor 4.
The operation of the first embodiment for the present invention will now be described.
Referring to
The illumination unit 6 also performs illumination as uniformly and with as high illumination intensity as possible in the necessary scene object depth and field of view range of the camera.
As shown in
The control circuit 37 in the camera unit 5 takes out area sensor data by using the pulse signal from the rotary encoder 9 and causing delay of the signal from the photoelectric sensor 3 to an extent corresponding to the distance between the photoelectric sensor 3 and the area sensor 4. The control circuit 37 detects the inter-mail interval from the signal of the photoelectric sensor 3.
The data of the area sensor 4 is transferred via the control circuit 37 to the parameter controller 36. According to the area sensor data, the parameter controller 36 presets gain compensation parameter and thinning-out parameter in LUT form in the video signal processing circuit 33 right before the start of imaging upon appearance of a mail in the field 11 of sight of the camera.
As shown in
Where the optical axis 10 of the camera is at an angle with respect to the transport conveyor 1, the timing of appearance of the mail in the field 11 of sight of the camera, is varied according to the height of the mail, i.e., the area sensor data. For example, where the optical axis angle 51 of the camera is 18 degrees, the position of start of imaging is different by about 16 cm with a difference of height of 50 cm (50 cm×tan (10 degrees)). Thus, the imaging start timing delay is preliminarily calculated from the optical axis angle 51 of the camera and tabulated in the parameter controller 36, and delay parameter corresponding to the area sensor data is read out in the LUT and preset in the control circuit 37.
The parameter controller 36 presets the step number of the linear stepping motor 38 in the auto-focusing module 31. The timing of this presetting has to take the operation time of the auto-focusing module 31 into considerations. When the inter-mail interval of adjacent mails is longer than the positioning motion time (about 1880 msec. at the most) after the restoration to the origin, absolute positioning is made.
In the absolute positioning, the step number of the linear stepping motor 38 is set as the step number preset in the parameter controller 36. The presetting is made 180 msec. before the imaging, and at the same time the operation of restoration to the origin is started. After the restoration to the origin, positioning motion is caused by the automatically preset step number.
When the inter-mail interval of adjacent mails is shorter than the above time, relative positioning is made. In the relative positioning, the step number of the linear stepping motor 38 is set as the difference of the step number from the step number preset in the parameter controller 36 to the step number corresponding to the immediately preceding mail. The sign of the difference represents the direction of motion. Specifically, the stepping motor is moved by the absolute value step number in the direction to cause the CCD to move toward the lens (i.e., scene object) in the negative difference case and to move away from the lens in the positive difference case. The presetting is made before the start of imaging by a time, which is a sum of a time proportional to the step number and an off-set of acceleration or deceleration, and at the same time the motion of that step number is started.
When the inter-mail interval is so short as to be shorter than the relative positioning time, preference is given to the next mail. That is, the motion of the stepping motor is started during imaging of the present mail as above-described, so as to be in time for the imaging of the next mail. This happens in a case as shown in
As for the step number of movement, as shown in
The offset adjustment may be made by setting a focus adjustment chart in the field 11 of sight of the camera at a height of 0 mm, fixing the CCD 29 in position by moving the same by the step number before the height of 0 mm and turning the lens focusing ring. Alternatively, the offset adjustment may be made without moving the lens but by causing automatic step-by-step movement of the CCD 29 while taking out image and resetting the step number at the sharpest image position as the value of this time at the height of 0 mm.
When the mail height is constant with respect to the transport direction 8, the stepping motor is moved only for the above relative or absolute positioning. When the mail height is varying, it is also possible to cause follow-up movement of the stepping motor for auto-focusing in relation to a height profile obtained in the area sensor. In this case, the stepping motor is moved step by step by the step number corresponding to the height profile by matching its follow-up movement speed with the transport speed.
As shown in
The mirrors 22 should be large in size and elongate in the direction of the field 11 of sight of the camera, and those which have a high surface accuracy of λ/4 and a thickness of 100 mm or above are used lest distortion should result at the mounting time. The use of a plurality of mirrors is adopted in order to provide as long optical path length in a limited space and suppress image magnification variations with height variation of mails 2 as much as possible.
However, magnification variations as shown in
As shown in
Of the mirrors 22, two are mounted on a movable mirror block 23, on which the two mirrors can reflect the optical path at an angle of 45 degrees, have plane normal at right angles to each other and can be moved in unison with each other. The movable mirror block 23 permits, when moved back and forth, changing the optical path length to an extent corresponding to double the movement, and it is thus particularly advantageous for optical path adjustment in a long optical path case as noted above.
As shown in
Particularly, where high voltage sodium lamp of orange color is used for color imaging, a sharp-cut filter is provided for coarse balance adjustment by transmitting blue to green color components without any light intensity reduction and transmitting the sole red color components in reduced light intensity.
The lens 27 is selectively adapted such as to take out a field of view of 512 mm in a magnification of 8.0 lines per mm as scan direction resolution. In this case, the number of pixels actually used in the CCD 29 is 4096 (=8.0 (pixels per mm)×512 (mm)).
The CCD 29 converts the light beam signal focused by the lens 27 to electric signal. For cost reduction, as the CCD is used a versatile one with a pixel number more than the above pixel number. For providing improved resolution in the transport direction, the exposure time is preset to be shorter than the full pixel data transfer time. In this case, for avoiding image quality deterioration due to overlap of the next exposure light during transfer of pixel data after the exposure, the light shield plate 28 is used to prohibit exposure to pixels other than those in actual use.
In this connection, it should be taken into considerations that light leaks due to diffraction take place from between the light shelter and the CCD, resulting in slight exposure in an end part of the shielding plate as well. Accordingly, in addition to the data of pixels in actual use, part of the data of continuous pixels are transferred as idle data. Consequently, the actual exposure time is the sum of the exposure time for the pixels in actual use and that of the idle transfer data pixels.
As shown in
The image compensation circuit 60 first detects the envelopes of the linear array CCD in the forward and reverse directions for gradation conversion and light dispersion compensation, and then performs a thinning-out process.
In the process, the digital signal output of the A/D converter 59 is written in the output order of the linear array CCD in the original image memory 66, which has a capacity of holding a plurality of times. Then, image data for one line is subjected to a smoothing process 67, then the image data is read out in the direction of the output order of the CCD and also in the reverse direction for the envelope detection process, and the resultant data are written in a forward and a reverse direction envelope memory 68 and 69.
Principles underlying the envelope detection will now be described with reference to
As the values for subtraction in both the envelope detection processes, those which are best suited for the intended image recognition process have to be used and are determined by adjustment.
Considering compensation, in which gradation conversion is made with the forward direction envelope follow-up signal 78 as white reference light level, in the case of a sufficiently small width with respect to black level 76 which is lower than paper surface light level 75, contrast between the forward direction envelope follow-up signal 78 and the black level 76 can be held. On the other hand, in the case of presence of right reflection light level 89 higher than the paper surface light level, irrespective of the right reflection light, the level of the forward direction envelope follow-up signal 78 is not lowered as soon as the restoration of the image line signal 77 to the paper surface level 75, but a contrast is generated. This is also the case when the sole reverse direction envelope follow-up signal 78 is taken into consideration.
It is now assumed that light level comparison of individual pixels of the two calculated envelop signals is made and that the smaller one of these signals used as paper surface light level follow-up signal for illumination non-uniformity correction.
The forward and reverse envelope follow-up signals 78 and 81 are compared in a comparison process 70. As a result, envelope line follow-up signals 82 is fed as upper address to a ROM 71. The original image line signal which has been the basis of the envelope signal, is fed as lower signal from the original image memory 66.
Calculation of:
(illumination non-uniformity correction data)=(white reference level)÷(paper surface level follow-up value)×(image value),
is preliminarily done with respect to all values capable of being taken as paper surface light level follow-up value and also all values capable of being taken up as image value, and the result of the calculation is written in the ROM 71 with the paper surface light level follow-up value and the image value as upper and lower ROM addresses, respectively. However, if the paper surface level follow-up value is no greater than a certain threshold value, it is regarded as the paper surface light level, and the level presetting is done such as not to irrationally raise it to the white reference level.
With the presetting of the calculated envelope follow-up signals 82 to the white reference level as the paper surface level follow-up value, it is possible to compensate for illumination irregularities and also irregularities due to lens shading and the like in one line scan while holding optimum gradation, as well as absorbing time variations from the illumination light source turn-on time and long-term deterioration variations, thus obtaining uniformly bright images at all times.
The equation noted above is purely linear with respect to the image value, but it is also possible to make compensation operation by multiplying the equation by a normalized weight constant varying which is variable according to the image value.
The illumination non-uniformity correction data 73 as the above calculation result is calculated in the parameter controller 36 in the recognition unit 7, and is written via the control circuit 36 at the time of adjustment for shipment or like timing.
The output of the ROM 71, having been gradation converted and illumination non-uniformity correction, is subjected to a thinning-out process 72 according to the area sensor value, and is then fed to the image data transfer circuit 34.
The image data transfer circuit 34 transfers image data as image via optical fiber or in the form of LVDS signal to the image recognition processor 35 in the image recognition unit 7. As the image recognition process, such processes as letter or character recognition process for recognizing postal number, address, ISBN code number of book, etc. and indetia or like detection process may be done. Particularly, as the ISBN code number there are many colorful ones, and in this case recognition by color imaging is advantageous.
The above numerical values of the field of view, resolution, etc. are given as mere examples, and are thus by no means limitative.
A second embodiment of the present invention will now be described in detail with reference to the drawings.
In this embodiment, as shown in
With the perpendicular axis of the camera to the transport direction, unlike the first embodiment, the timing of imaging is not varied according to the value of the area sensor value. Also, unlike the case of
A third embodiment of the present invention will now be described in detail with reference to the drawings. In this embodiment, unlike the first or second embodiment, camera unit 5 is provided with both high resolution monochromatic imaging and low resolution color imaging functions.
A light beam 101 for monochromatic imaging and a light beam 102 for color imaging are reflected by mirror 22 while they are held parallel and spaced apart a predetermined distance. The construction of the optical paths of the monochromatic and color light beams up to the CCD are substantially the same in construction as in the above embodiments except for the provision of a sharp-cut color filter 103. The two optical paths are basically the same in the subsequent stage as well. However, in video signal processing circuit 33 of the color imaging system, white level compensation is further added in a monochromatic illumination non-uniformity correction. Also, the difference of resolution leads to a difference of the step number of the stepping motor, i.e., a difference of a delay parameter for presetting the image take-out timing from the difference of the position under notice.
Low color resolution images are transferred to an image recognition region detector 104 in recognition unit 7 to be used for finding a region, in which image recognition is actually caused, in image taken out as high resolution monochromatic image. Thus, high resolution image recognition in the full field of view is not made, thus permitting processing rate improvement.
For example, where subject areas for image recognition are always written in blue frames or provided with red heart marks, they are detected as low resolution color images and added to an area including a certain margin from the detected position for image recognition in high resolution monochromatic images.
A fourth embodiment of the present invention will now be described.
In this embodiment, unlike the first embodiment, optical axis angle 5 of the camera is preset to 45 degrees for imaging not only the top surface of the scene object but also the rear surface (or front surface) thereof.
Where camera unit 5 is installed as shown in
Where the camera unit 5 is disposed such that the optical axis of the camera is directed downward from an obliquely forward position in the transport direction, the front surface is first imaged with auto-focusing follow-up from a height of 0 mm up to the height of mail, and then the top surface is imaged as in the first embodiment.
Where camera unit 5 and illumination unit 6 disposed such as to read out the side surface of mail as shown in
The area sensor 111 for position detection, like the photoelectric sensor 3 and the area sensor 4 for height detection, is vertically disposed forwardly of the field 10 of sight of the camera in the transport conveyor at a conveyor seam.
Where the optical axis 10 of the camera is directed obliquely forward in the transport direction, the front surface is first imaged with auto-focusing follow-up, and then a side surface is imaged with fixed auto-focusing.
A fifth embodiment of the present invention will now be described in detail with reference to the drawings. In this embodiment, a plurality of camera units as that in the first embodiment are used and disposed differently in the fashion as in the fourth embodiment for imaging mails in a total of six different directions.
As shown in
Regarding the camera unit 122 for reading out the bottom surface, auto-focusing is not particularly needed.
With the above disposition of the four camera units, it is possible to image mails in a total of six different directions.
As described before, with the image input apparatus according to the present invention the following pronounced effects are obtainable.
(1) It is possible to take out in-focus images by using auto-focusing. It is thus possible to automatically sort out mails by causing an image recognition process on the taken-out images.
(2) By forming an integral unit including a high resolution monochromatic imaging system and a low resolution color imaging system, it is possible to improve the rate of sorting process by causing recognition subject region position detection in low resolution color and image recognition process in high resolution color.
(3) It is possible to suppress contrast deterioration of images in the event of occurrence of right reflection from a mail with polarization filter, envelope detection means and position relation of the optical axis of the camera and illumination optical axis.
(4) By using only the necessary part of CCD by shielding the out-of-use part thereof with shielding means, it is possible to improve the rate of operation and use a versatile and inexpensive CCD.
(5) By using a plurality of image input apparatuses according to the present invention it is possible to do a full surface image recognition process on mails by imaging the mails in full six directions. It is thus not necessary to take image recognition process surfaces of mails into considerations when putting the mails on the transport conveyor.
Changes in construction will occur to those skilled in the art and various apparently different modifications and embodiments may be made without departing from the scope of the present invention. The matter set forth in the foregoing description and accompanying drawings is offered byway of illustration only. It is therefore intended that the foregoing description be regarded as illustrative rather than limiting.
Number | Date | Country | Kind |
---|---|---|---|
2002-063655 | Mar 2002 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
4446485 | Bardl | May 1984 | A |
4553193 | Evans | Nov 1985 | A |
4575248 | Horwitz et al. | Mar 1986 | A |
4578749 | Kuno et al. | Mar 1986 | A |
4725879 | Eide et al. | Feb 1988 | A |
4734612 | Sasaki et al. | Mar 1988 | A |
4755044 | Thorn | Jul 1988 | A |
4972494 | White et al. | Nov 1990 | A |
5255088 | Thompson | Oct 1993 | A |
5276530 | Siegel | Jan 1994 | A |
5319462 | Haruki et al. | Jun 1994 | A |
5610654 | Parulski et al. | Mar 1997 | A |
5684530 | White | Nov 1997 | A |
5699161 | Woodworth | Dec 1997 | A |
5841881 | Iwakawa et al. | Nov 1998 | A |
5912698 | Graulich et al. | Jun 1999 | A |
6040677 | Oono et al. | Mar 2000 | A |
6104427 | Stein et al. | Aug 2000 | A |
6115147 | Mizumoto et al. | Sep 2000 | A |
6122001 | Micaletti et al. | Sep 2000 | A |
6421451 | Shiratsuchi et al. | Jul 2002 | B1 |
6484066 | Riess et al. | Nov 2002 | B1 |
6704501 | Washisu | Mar 2004 | B1 |
6750435 | Ford | Jun 2004 | B2 |
6971578 | Tsikos | Dec 2005 | B2 |
7053953 | Belz et al. | May 2006 | B2 |
20010019619 | Watanabe et al. | Sep 2001 | A1 |
Number | Date | Country |
---|---|---|
0647479 | Apr 1995 | EP |
52-143824 | Nov 1977 | JP |
02-254001 | Nov 1987 | JP |
63-189978 | Aug 1988 | JP |
2-171883 | Jul 1990 | JP |
04-198929 | Jul 1992 | JP |
9-131573 | May 1997 | JP |
10-187952 | Jul 1998 | JP |
2001-174695 | Jun 2001 | JP |
2001-243458 | Sep 2001 | JP |
9524278 | Sep 1995 | WO |
9832545 | Jul 1998 | WO |
Number | Date | Country | |
---|---|---|---|
20030169364 A1 | Sep 2003 | US |