[go: up one dir, main page]

WO2003046804A1 - Code reading apparatus - Google Patents

Code reading apparatus Download PDF

Info

Publication number
WO2003046804A1
WO2003046804A1 PCT/JP2002/012328 JP0212328W WO03046804A1 WO 2003046804 A1 WO2003046804 A1 WO 2003046804A1 JP 0212328 W JP0212328 W JP 0212328W WO 03046804 A1 WO03046804 A1 WO 03046804A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
unit
code
image
predetermined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/JP2002/012328
Other languages
French (fr)
Japanese (ja)
Inventor
Akira Matsui
Seiji Tatsuta
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Olympus Corp
Original Assignee
Olympus Corp
Olympus Optical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Corp, Olympus Optical Co Ltd filed Critical Olympus Corp
Priority to AU2002349509A priority Critical patent/AU2002349509A1/en
Publication of WO2003046804A1 publication Critical patent/WO2003046804A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10851Circuits for pulse shaping, amplifying, eliminating noise signals, checking the function of the sensing device

Definitions

  • the present invention relates to a method for reading a code from a recording medium in which audio data, image data, text data, or various data that can be handled by a computer is recorded as an optically readable code. It relates to a code reader for reading.
  • US Pat. Nos. 5,866,895 disclose a system in which digital data is divided into blocks each having a predetermined information amount, recorded on a recording medium, and read.
  • each of the divided block data is read together with an address, and the information is reproduced by combining the block data based on the address. .
  • data is divided into blocks and recorded and played back, so data extensibility and readability are excellent, and data that does not fit in one imaging screen is excellent. Can also be read by scanning the code.
  • USP 5, 724, and 364 use the luminance information extracted from continuously captured frame images to set the amount of illumination for the next frame and the threshold for binarization.
  • To provide feedback to Such a system can set the optimal illumination light amount and binarization threshold value by following the luminance change of the image including the code that changes every moment during the code scanning. It is excellent in that defects are reduced. In this way, the effect of controlling the parameters related to imaging and image processing according to the luminance change of the image including the code that changes during the scanning of the code is great. However, care must be taken when the imaging state of the image containing the code is poor.
  • USP 6, 282, and 319 B1 determine the imaging state of the code and read the block from the side of the imaging screen where the imaging state is good.
  • the certainty factor corresponding to the imaging state is stored in association with the data stored in the block at the time of block reading, and a block having a higher certainty factor, that is, a block with a good imaging state is detected.
  • An information reproduction system has been disclosed that reduces the reading of invalid blocks and the reading of bad blocks in the imaging state by overwriting data that has already been read only when data is read. I have. As a result, it is possible to reduce data reproduction failure due to reading of a bad block.
  • the illumination light from the light source 1 is reflected on a recording medium 2 made of paper, plastic, metal, etc., and is observed by an image pickup device 4 via a lens 3. Is done.
  • the direct reflected light from the light source 1 illuminating the code 7 is transmitted to the image sensor 4. May be incident.
  • a code reading apparatus optically reads a code from a recording medium on which data is recorded as an optically readable code
  • a parameter extraction unit that extracts a parameter relating to luminance of the area
  • An image processing unit that performs image processing on the predetermined area corresponding to the image including the code by using the parameter extracted by the parameter extraction unit;
  • a data reading unit that reads the data from an image including the code processed by the image processing unit;
  • a specular reflection detection unit that detects specular reflection from the corresponding predetermined area of the image including the code based on the parameter set extracted by the parameter set extraction unit;
  • the code reading device can detect that specular reflection has occurred when the code is imaged in an improper imaging state in which specular reflection has occurred.
  • the code reading device can promote rescanning or correcting parameters, it is possible to prevent code from being imaged in an inappropriate imaging state, thereby preventing data reading errors from increasing. This is possible.
  • FIG. 1 is a diagram showing a regular reflection generation area in a normal state.
  • FIG. 2 is a diagram showing a specular reflection generation area when a flaw is present on the recording medium.
  • FIG. 3 is a block diagram of the code reader according to the first embodiment of the present invention.
  • Figure 4 shows the physical format of the code.
  • Figure 5 shows the parameters extracted for each subframe.
  • FIG. 6 is a diagram for explaining the size of the subframe.
  • Figure 7 is a diagram for explaining the change in the parameters between successive frames.
  • Figure 8 shows the area where specular reflection occurs due to a scratch generated below the imaging screen.
  • FIG. 9 is a block diagram for explaining a modification of the code reader according to the first embodiment of the present invention.
  • FIG. 10 is a block diagram of a code reader according to a second embodiment of the present invention.
  • FIG. 11 is a diagram showing code having an overlapping block.
  • FIG. 12 is a diagram showing another example of a code having an overlapping block.
  • FIG. 13 is a block diagram of a code reader according to a third embodiment of the present invention.
  • FIG. 14A is a diagram showing a luminance distribution before shading correction.
  • FIG. 14B is a diagram showing a luminance distribution after shading correction.
  • FIG. 15 is a block diagram of a code reader according to a fourth embodiment of the present invention.
  • FIG. 16 is a diagram for explaining the size of the subframe.
  • FIG. 17 is a diagram showing a luminance distribution in a cross section along line C-D in FIG.
  • Fig. 18 shows the binarization result of the subframe when there is no regular reflection.
  • Figure 19 is a diagram showing the binarization result of the subframe when specular reflection occurs.
  • FIG. 3 is a block diagram of the code reader 100 according to the first embodiment of the present invention.
  • the code reader 100 includes an imaging unit 101 and a It comprises a message extracting unit 102, an image processing unit 103, a data reading unit 104, and a regular reflection detecting unit 105.
  • the imaging unit 101 is configured to use paper, plastic, metal, or the like so as to be optically readable in a predetermined block array format.
  • chord 300 recorded on the recording medium 200 which consists of this is imaged with an imaging element, such as CCD, and is converted into an electric signal.
  • this code 300 divides information to be recorded into blocks 301 and gives each block 301 a mark index 302 or a block address which is a reading index. This is a form to which the address 303 is added. Then, the actual information to be recorded is each data dot 304 represented by the attributes of “black” and “white” corresponding to the “1” and “0”. Included in step 301.
  • This code format is described in detail in the above-mentioned USP5, 8666, 895.
  • the imaging unit 101 continuously captures the code 300 while relatively moving with respect to the recording medium 200, and corresponds to each of the imagings. Image information is output in chronological order.
  • the parameter overnight extraction unit 102 provides each imaging screen (frame) captured by the imaging unit 101.
  • the maximum luminance value is extracted as a parameter for each small area (subframe 107) obtained by dividing 106 into 24.
  • the image processing unit 103 binarizes each of these subframes 107 based on the maximum value of the luminance extracted in each area by the above-mentioned parameter overnight extraction unit 102.
  • the threshold value is determined, and the image captured by the image capturing section 101 is binarized for each subframe 107.
  • the optimum value of the binarization threshold varies depending on the characteristics of the code 300 to be imaged and the recording medium 200, it may be set to, for example, the maximum luminance value of 1 to 2.
  • the data reading unit 104 detects the block 301 from the code image binarized by the image processing unit 103 and reads the data. Known methods such as those disclosed in USP 5,896,403 and USP 5,866,895 can be used for block detection and overnight reading. .
  • raster scan of the code image is performed to detect a black run having a predetermined length. Detects markers 302 placed at the four corners of block 301. Then, the white Z black of the dots on the grid points where the four markers 302 are divided into grids according to the code format are read out in correspondence with the data 0 1.
  • the specular reflection detection unit 105 determines whether or not specular reflection is included in the captured image based on the parameters extracted from the imaging screen 106 in the parameter extraction unit 102. It is to detect whether or not.
  • the small region (subframe 107) for extracting a parameter (maximum brightness) in the parameter extraction unit 102 is, for example, as shown in FIG. Is set as a region that is sufficiently larger than the marker 302 that composes the subframe, and each small region (subframe 107) is divided so as to always include the code background (white).
  • the specular reflection detection unit 105 determines that small region (sub-frame 107). It is determined that the subframe 107) includes specular reflection.
  • the maximum value of the luminance extracted by the parameter overnight extraction unit 102 is a pattern as shown in FIG. 5, and a small region of m rows and n columns is represented by R [m] [n] Let the maximum value of the luminance be represented by L [m] [n].
  • the determination of the regular reflection can be made based on the ratio of the maximum value of the luminance of the adjacent small area (subframe 107). That is, if the ratio exceeds a predetermined value, specular reflection will occur. It is determined that it has been detected. In this case, even if the luminance of the entire imaging screen 106 changes, the ratio of the maximum value of the luminance is relatively constant, so that stable regular reflection determination is possible.
  • the comparison of the maximum value of the brightness is not only between the small areas (subframe 107) adjacent in the left and right direction, but also the small areas (subframe 107) adjacent in the vertical direction and 4 neighborhoods. ) Can be compared, and the accuracy of the judgment can be further improved.
  • the imaging unit 101 continuously captures a code image at a predetermined interval (frame rate)
  • the parameters extracted between consecutive frames are set. Specular reflection can also be detected based on
  • the nighttime extraction unit 102 extracts a nighttime parameter for each code image that is continuously captured.
  • the specular reflection detection unit 105 has a storage unit (not shown) for storing at least the parameter (the maximum value of the luminance) one frame before. Then, the specular reflection detecting unit 105 compares the parameter of the current frame extracted by the parameter extracting unit 102 with the value of the previous frame for each extracted region. Detects a temporal change in luminance, and determines that specular reflection has occurred when a predetermined condition is satisfied.
  • the maximum value of the luminance changes between successive frames, and the luminance changes to the k frame of the small region (subframe 107) R [m] [n].
  • the maximum value of the luminance to be set is L k [m].
  • Such initial parameters can be determined as follows. That is, for each individual code reader 100, a medium such as paper or card having a uniform reflectance similar to the background (white) of the code 300 is imaged, and the parameter extraction unit is used.
  • the parameter (the maximum value of luminance) extracted in 102 is set as the initial parameter. In other words, when the code 300 is picked up by the code reader 100 in an appropriate image pickup state, the maximum value of the luminance that will be extracted by the parameter extracting unit 102 is determined in advance. Please decide. If the code reader 100 has a non-volatile rewritable memory such as a flash memory, this value is stored in a non-volatile memory. At the start of scanning, Is used as the comparison value of the initial frame for specular reflection detection.
  • the initial parameters can be set up with a code reader.
  • the specular reflection detecting section 105 detects specular reflection in the captured image. Then, when the regular reflection is detected, the operator is notified of the fact by a display unit such as a buzzer or an LCD (not shown). That is, the operator scans the code 300 again by correcting the positional relationship between the recording medium 200 on which the code 300 is recorded and the code reader 100 0. Prompt.
  • regular reflection can be detected based on the parameters extracted from the captured image obtained by capturing the code 300. If the code 300 is read in an improper imaging state where specular reflection has occurred, the operator is informed that the code is read, and the scanning method is corrected again to perform scanning. It is possible to prevent the code 300 from being imaged in an improper imaging state, thereby preventing data reading defects from increasing.
  • the force described in the example of the code 300 in FIG. 4 is used as an example. Needless to say, the same processing can be performed for other one-dimensional or two-dimensional codes. .
  • the small area (sub-frame 107) for extracting the image need not be plural as shown in FIG. 7, but may be a predetermined area that may read the entire imaging screen 106 or the code.
  • the maximum luminance value may be extracted only from the area.
  • the imaging screen 10 6 For example, as shown in FIG. 8, if the light source 101A such as an illumination LED in the imaging unit 101 is mounted above the imaging screen 106, the imaging screen 10 6 The brightness at the top is high, and the scratches 400 generated above the imaging screen 106 tend to cause specular reflection (as shown in Fig. 8, the incidence angle is small above the imaging screen). (Close to vertical incidence), it is easy for specular reflection to occur even with shallow scratches, whereas the angle of incidence is large below the screen (close to horizontal incidence), and specular reflection is unlikely to occur for shallow scratches).
  • the most regular reflection is generated.
  • the parameter extraction can be performed only from a specific small area in the easily captured imaging screen 106. In this case, it is possible to reduce the processes involved in extracting the parameters and comparing them, thereby simplifying the apparatus.
  • the imaging unit 101 forms an image of the reflected light from the imaging device 101 B such as a CCD and the code 300 illuminated by the illumination unit 109 on the imaging device. It consists of an imaging lens 101C for the purpose.
  • the image sensor 101B is positioned at a predetermined interval (frame Continuously capture images of code 300 at the rate.
  • the noise extraction unit 102 extracts the maximum value of the brightness of the imaging screen 106 for each code image continuously imaged.
  • the illumination unit 109 includes a light source such as an LED, and illuminates the code 300 captured by the imaging unit 101.
  • the illumination light amount is controlled by the illumination control unit 108. That is, instead of providing a light source with a non-variable light amount in the imaging unit 101, a light source with a variable light amount is provided as the illumination unit 109. Needless to say, an illumination unit 109 may be provided in the imaging unit 101, and the light amount may be controlled by the illumination control unit 108.
  • the maximum luminance value is within a predetermined range based on the parameters (maximum luminance value) extracted by the luminance and luminance extraction unit 102.
  • the amount of illumination of the illumination unit 109 when the imaging unit 101 captures the next frame image is controlled such that That is, the amount of illumination is controlled so that the maximum value of the luminance is darker if it is larger than a predetermined range, and it is brighter if it is smaller than the predetermined range, so that an appropriate imaging state can be obtained in the imaging unit 101.
  • the illuminating unit 109 illuminates by pulse emission of the LED
  • the illumination light quantity can be controlled by controlling the emission pulse width.
  • the specular reflection detection unit 105 detects the specular reflection from the temporal change in the maximum value of the luminance of the code screen extracted by the parameter overnight extraction unit 102 as described above. Detection is performed, and if specular reflection is detected, the operator is notified of this by a buzzer (not shown) or a display such as an LCD, and the operator is notified of the scanning method of code 300 and the like. Corrects the positional relationship between the recording medium 200 on which the code 300 is recorded and the code reader 100 0, and prompts the user to scan again.
  • the maximum value of the luminance at that time may be invalidated so that the illumination control unit 108 does not control the illumination light amount.
  • FIG. 10 is a diagram showing a configuration of a code reading device 100 according to the second embodiment.
  • the code reading device 100 of the present embodiment includes an imaging unit 101, It consists of an evening extraction unit 102, an image processing unit 103, a data reading unit 104, a regular reflection detection unit 105, and a parameter invalidation unit 110.
  • components having the same reference numerals as those in the first embodiment and having no description are those having the same functions as those in the first embodiment.
  • components having the same reference numerals as those in the first embodiment and having no description are those having the same functions as those in the first embodiment.
  • the imaging section 101 continuously captures a code image at a predetermined interval (frame rate).
  • a predetermined interval frame rate
  • a plurality of duplicate blocks having the same contents in the code are scanned. Include step 3 2005. This is because, by having duplicate blocks, even if reading of a block fails on a certain image screen (frame) 106, blocks having the same content again during the same scan By making blocks appear, the probability of block reading failures is reduced, and data reading errors are reduced.
  • the numbers (1, 2, ..., n) in the blocks in Fig. 11 or Fig. 12 schematically represent the block addresses. As described above, it is obvious that the block address 303 and the data dot 304 are recorded.
  • the parameter extraction unit 102 extracts the maximum value of the luminance of the entire imaging screen 106.
  • the specular reflection detection unit 105 detects the specular reflection detection method as described in the first embodiment from the maximum value of the luminance extracted by the parameter overnight extraction unit 102.
  • the parameter setting unit 1100 detects the presence or absence of specular reflection.
  • the parameter (maximum luminance value) extracted by 02 is invalidated, and no image processing or data reading processing is performed after that frame.
  • the presence or absence of specular reflection is detected, and when specular reflection occurs, the parameter is invalidated and processing is not performed in the frame. Based on the erroneous parameters that occur Image processing, thereby preventing blocks from being read in an improper state.
  • FIG. 13 is a diagram showing a configuration of a code reading apparatus 100 according to the third embodiment.
  • the code reading apparatus 100 of the present embodiment includes an imaging unit 101, a NO, and a RAM. Overnight extraction unit 102, image processing unit 103, data overnight reading unit 104, regular reflection detection unit 105, parameter overnight invalidation unit 110, and parameter overnight unit It consists of 1 1 1.
  • components having the same reference numerals as those of the first embodiment and having no description will have the same functions as those of the first embodiment. .
  • the parameter overnight extraction unit 102 extracts the maximum value of the luminance for each small area (subframe 107) obtained by dividing the imaging screen 106 into 24, as shown in FIG. 5, for example.
  • the specular reflection detection unit 105 uses the specular reflection detection method described in the first embodiment from the maximum value of the luminance extracted by the parameter overnight extraction unit 102. The presence or absence of regular reflection is detected for each small area (subframe 107).
  • the white light disabling unit 110 is extracted from the detected small area (subframe 107). Disable the parameter (maximum brightness) and do not use it for subsequent image processing. Of course, the parameters (maximum brightness) extracted from the small area (subframe 107) where no regular reflection is detected It is output as it is to the subsequent parameter overnight section 1 1 1.
  • a parameter (subframe 107) of the small area (subframe 107) from which the parameter invalidated by the parameter invalidating unit 110 is extracted is extracted.
  • the parameter storage unit 111 stores an effective parameter storage unit that stores a parameter (maximum luminance value) that was valid immediately before a continuously input captured image.
  • the corresponding small area (subframe 107) is included. Set a valid parameter corresponding to the image, or prepare the maximum value of the average luminance that would be obtained when a code image is captured as a default value in advance. Note that this can be used in place of disabled parameters overnight.
  • the image processing unit 103 determines a binarization threshold for each subframe based on the parameter setting (maximum brightness) set by the parameter setting unit 111, The binarization of the code image captured by the imaging unit 101 is performed.
  • the maximum value of the luminance of the small area (subframe 107) where the regular reflection is detected is invalidated, and the maximum value of the luminance when the immediately preceding valid regular reflection is not included is included.
  • the binarization threshold based on the appropriate maximum luminance is set. Accordingly, appropriate binarization is performed, and block reading failure due to binarization failure ⁇ data evening reading error can be reduced.
  • the image processing unit 103 determines a binarization threshold based on the maximum value of the detected luminance, and binarizes the entire imaging screen 106 with a uniform binarization threshold. become.
  • the parameter overnight extraction unit 102 is configured to extract the parameters from a plurality of small regions (subframes 107) in the imaging screen 106, the parameters are extracted.
  • the overnight substituting unit 111 is composed of a plurality of sub-regions (sub-frame 107) adjacent to the sub-region (sub-frame 107) containing the invalidated parameter (maximum brightness). The average of the maximum values of the luminances extracted from the parameters may be used in place of the invalidated parameters.
  • binarization is performed by setting a binarization threshold based on the maximum value of luminance extracted from a predetermined area.
  • shading is performed in advance in the image processing unit 103.
  • a fixed threshold value For example, as shown in Fig. 14A, the maximum value of the brightness 5 per subframe 107 is obtained. 0 0 is detected and its luminescence is detected as shown in Figure 14B.
  • T By correcting the luminance of the pixels in the subframe so that the maximum value of the degree becomes a predetermined value T, binarization can be appropriately performed at a predetermined threshold value Th.
  • the pixel brightness will be corrected to be low, and a dark image will be obtained with respect to the shading correction image that is originally desired. Therefore, the maximum value of the luminance of the subframe 107 in which the specular reflection is detected can be substituted with the maximum value of the luminance of the surrounding subframe 107 or the maximum value of the luminance detected in the previous imaging frame. As a result, correct shading correction can be performed, and appropriate binarization can be performed [Fourth embodiment]
  • FIG. 15 is a block diagram of a code reader 100 according to the fourth embodiment.
  • the code reading device 100 of this embodiment includes an imaging unit 101, a non-linear image extraction unit 102, an image processing unit 103 a data reading unit 104, and a regular reflection detection unit 100. 5, It is composed of a part for invalidating the parameter and the part for parameter setting. Further, the image processing section 103 further includes a provisional binarization section 103A and a main binarization section 103B.
  • components having the same reference numerals as those of the third embodiment described above and having no description are those having the same functions as those of the third embodiment. And
  • the parameter overnight extractor 102 The maximum value of the luminance is extracted for each small region (subframe 107) divided into regions each having a sufficiently larger area than 302.
  • the provisional binarization unit 103A of the image processing unit 103 is based on the maximum luminance value extracted for each small region (subframe 107) in the parameter extraction unit 102.
  • a binarization threshold value is determined for each small region (subframe 107), and the code image captured by the imaging unit 101 is binarized.
  • the binarization threshold is set to a value higher than the threshold suitable for code reading, for example, a value of 80% of the maximum luminance.
  • the regular reflection detection unit 105 detects the ratio of black pixels to white pixels for each small area (subframe 107) binarized by the temporary binarization unit 103A, If the ratio of black pixels is equal to or greater than a predetermined ratio, it is determined that specular reflection exists in the subframe 107.
  • the ratio is about 85% for code 300 as shown in Fig. 4. For example, as shown in FIG. 19, it is determined that regular reflection has occurred in a small area (subframe 107) in which 85% or more are black pixels.
  • the parameter overnight extracting unit 1102 corresponding to the small area (subframe 107) in which the regular reflection is detected by the regular reflection detecting unit 105 is used. Invalidate the parameters (maximum brightness) extracted in step (1).
  • the parameter overnight substituting unit 111 substitutes for the method described in the third embodiment above in place of the maximum luminance value invalidated by the parameter overnight invalidating unit 110.
  • Set parameters maximum brightness
  • the binarizing section 103 B of the image processing section 103 sets each small area (sub-frame 107 b) based on the maximum luminance value set by the parameter substituting section 111. ), A binarization threshold (for example, the maximum luminance of 12) is set, and the code image captured by the imaging unit 101 is binarized.
  • a binarization threshold for example, the maximum luminance of 12
  • binarization is performed by substituting an appropriate maximum brightness value that would be obtained when the code 300 is normally captured. As a result, it is possible to prevent inappropriate binarization based on the maximum value of erroneous luminance due to the reflection, and to reduce data reading defects.
  • a parameter extraction unit for extracting a parameter related to the brightness of the region from a predetermined region of an image including the code captured by the imaging unit
  • An image processing unit that performs image processing on the predetermined area corresponding to an image including the code using the parameter extracted by the parameter extraction unit;
  • a data reading unit that reads the data from an image including the code processed by the image processing unit
  • a specular reflection detection unit configured to detect specular reflection from the predetermined area corresponding to the image including the code based on the parameter extracted by the parameter extraction unit;
  • the apparatus further comprises: a lane-overnight invalidation section for invalidating the parameter overtime from the predetermined area where the regular reflection is detected by the regular reflection detection section.
  • the parameter extracting unit extracts the parameter for each of the plurality of predetermined areas, and
  • the image processing unit applies the parameters extracted for each of the plurality of predetermined areas to the corresponding plurality of predetermined areas, and the plurality of predetermined areas.
  • the image processing unit applies the parameters extracted for each of the plurality of predetermined areas to the corresponding plurality of predetermined areas, and the plurality of predetermined areas.
  • the parameter replacement unit is configured to receive the parameter from the predetermined area where specular reflection is detected by the specular reflection detection unit.
  • the parameters of the specular reflection occurrence area are determined based on the parameters extracted from a predetermined peripheral area in the frame. It can be set appropriately.
  • the imaging unit continuously captures the code while relatively moving with the recording medium, and outputs time-series image information corresponding to each of the captures. Is composed of
  • the parameter / parameter extracting unit extracts the parameter / parameter from a predetermined area of each image information output in time series from the imaging unit, and
  • the image processing unit converts each parameter extracted from a predetermined area of the image information into a parameter corresponding to the image information input subsequent to the image information extracted as a parameter.
  • the above-mentioned parameter one-time substituting unit is configured such that the specular reflection is detected by the above-mentioned specular reflection detecting unit, and the above-mentioned parameter is extracted from the predetermined area.
  • the parameters of the frame can be appropriately set based on the parameters extracted from the image including the code captured in the past from the frame.
  • the imaging unit continuously captures the code while relatively moving with the recording medium, and outputs time-series image information corresponding to each of the captures. Is composed of
  • a plurality of the predetermined areas are set in advance in an image screen by the image pickup unit,
  • the parameter extracting unit extracts the parameter for each of the plurality of predetermined regions for each piece of image information output in time series from the imaging unit;
  • the image processing unit converts each of the parameters extracted for each of the plurality of predetermined regions into image information that is input subsequent to the image information from which the parameter was extracted.
  • image processing is performed for each of the plurality of predetermined areas.
  • the parameter change section is configured to include, before the parameter information from the predetermined area in which the specular reflection is detected by the specular reflection detection section, before the image information from which the parameter is extracted.
  • the parameters extracted from each small area of the image containing the code captured in the past from the frame are not affected. Based on The parameters of each small area of the frame can be set appropriately, and more appropriate image processing can be performed.
  • the imaging screen can be divided into a plurality of small areas and image processing can be performed based on the parameters extracted for each of the small areas, the illumination and the lens of the imaging unit can be used. Appropriate image processing can be performed even when the brightness of the image screen is uneven due to the sensor characteristics.
  • a plurality of the predetermined areas are set in advance in an image screen by the imaging unit,
  • the parameter extracting unit extracts the parameter for each of the plurality of predetermined areas, and
  • the image processing unit applies the parameters extracted for each of the plurality of predetermined areas to the corresponding plurality of predetermined areas, and the plurality of predetermined areas.
  • the specular reflection detecting section is configured to detect the specular reflection based on a comparison between parameters extracted for each of the plurality of predetermined regions. ) Code reader.
  • the imaging unit continuously captures the code while relatively moving with respect to the recording medium, and chronologically obtains image information corresponding to each of the captures. Is configured to output
  • the parameter extraction unit outputs time series from the imaging unit Extracting the above parameters from a predetermined area of each of the obtained image information;
  • the image processing unit converts each parameter extracted from a predetermined area of each image information into a corresponding one of the image information input subsequent to the image information from which the parameter was extracted.
  • the specular reflection detection unit detects the specular reflection based on a comparison of the parameters between the corresponding predetermined regions in a plurality of pieces of image information output in time series from the imaging unit.
  • the code reading device according to (1), wherein the code reading device is configured to detect the code.
  • regular reflection can be detected by detecting a change between parameters, that is, a temporal change of a parameter extracted from an image including a code.
  • the imaging unit continuously captures the code while relatively moving with the recording medium, and outputs time-series image information corresponding to each of the captures. Is composed of
  • a plurality of the predetermined areas are set in advance in an image screen by the imaging unit,
  • the parameter extracting unit extracts the parameter for each of the plurality of predetermined regions for each image information output in time series from the imaging unit, and
  • the image processing unit converts each of the parameters extracted for each of the plurality of predetermined areas into an image from which the parameter is extracted. It is configured to be applied to each of the plurality of predetermined areas corresponding to the image information input subsequent to the image information, and to perform image processing for each of the plurality of predetermined areas.
  • the specular reflection detection unit based on a comparison of the parameters between each of the plurality of corresponding predetermined regions in a plurality of pieces of image information output in time series from the imaging unit,
  • the code reader according to (1) wherein the code reader is configured to detect the regular reflection.
  • a plurality of the predetermined areas are set in advance in an image screen by the image pickup unit,
  • a parameter extracting unit that extracts the parameter for each of the plurality of predetermined areas
  • the image processing unit applies the parameters extracted for each of the plurality of predetermined areas to the corresponding plurality of predetermined areas, and the plurality of predetermined areas.
  • the specular reflection detection unit binarizes each of the plurality of predetermined regions corresponding to each of the parameters extracted from each of the plurality of predetermined regions and each of the thresholds set from each of the predetermined regions.
  • the code reader according to (1) wherein the specular reflection is detected based on a ratio of black pixels to white pixels.
  • An illumination unit for illuminating a code on the recording medium; an optical system for imaging reflected light from the recording medium illuminated by the illumination unit;
  • An image sensor that receives light imaged by the optical system and outputs a corresponding image signal in time series;
  • the code reader according to (1) further comprising: In other words, it is possible to take an image of the code in an always stable imaging state using the illumination.
  • the predetermined area is determined based on a positional relationship between the illumination unit, the imaging element, and the recording medium, and is most likely to cause regular reflection in an imaging screen of the imaging element.
  • regular reflection is detected reliably and easily by extracting a parameter for regular reflection detection from an area where regular reflection is likely to occur (usually, an area in the imaging area close to the illumination unit). be able to.
  • the imaging unit further includes an illumination control unit that controls the amount of illumination by the illumination unit based on the parameters extracted by the parameter extraction unit.
  • the image processing unit is configured to take an image A binarization unit that performs a binarization process for each predetermined region of the image including the code,
  • audio data, image data, text data, or data that can be handled by a computer can be optically readable. It can read the code from the recorded media and restore the data, so it can be used not only for general logistics but also for ID cards, games, education, etc. Various usage forms can be expected in various fields.

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Optical Recording Or Reproduction (AREA)
  • Image Input (AREA)

Abstract

An image pickup unit (101) images a code from a recording medium containing data recorded as optically readable codes and a parameter extraction unit (102) extracts a parameter relating to luminance of each predetermined area of an image containing the imaged code. A regular reflection detection unit (105) detects regular reflection for each predetermined area corresponding to the image containing the aforementioned code according to the aforementioned extracted parameters. Thus, when regular reflection is detected, it is reported to an operator prompting re-scan by correcting the scan direction, thereby preventing code imaging in an improper imaging state and increases of defective data reading.

Description

明 細 書  Specification

コー ド読取装置 Code reader

技術分野 Technical field

本発明は音声デ一夕、 画像データ、 テキス トデータあるい はコ ンピュータが取り扱う こ とのできる各種データが光学的 に読み取 り 可能なコー ド と して記録された記録媒体か らその コー ド を読み取る コー ド読取装置に関する ものである。  SUMMARY OF THE INVENTION The present invention relates to a method for reading a code from a recording medium in which audio data, image data, text data, or various data that can be handled by a computer is recorded as an optically readable code. It relates to a code reader for reading.

背景技術 Background art

U S P 5 , 8 6 6 , 8 9 5 に、 デジタルデータ を所定の情 報量のブロ ッ ク単位に分割 して記録媒体に記録し、 それを読 み取る システムが開示されている。 上記システムでは、 分割 された各ブロ ッ クデータ をァ ド レスデ一夕 と共に読み取 り 、 該ア ド レス に基づいてブロ ッ ク データ を結合する こ とによ り 情報を再生する よ う に して い る 。 こ の よ う に、 データ をブ ロ ッ ク毎に分割して記録 再生する構成となっ ているために、 データの拡張性、 読み取 り の柔軟性に優れ、 一撮像画面内に 収ま らないデータ もコー ド を走査する こ とによ り 読み取る こ とができる。  US Pat. Nos. 5,866,895 disclose a system in which digital data is divided into blocks each having a predetermined information amount, recorded on a recording medium, and read. In the above system, each of the divided block data is read together with an address, and the information is reproduced by combining the block data based on the address. . In this way, data is divided into blocks and recorded and played back, so data extensibility and readability are excellent, and data that does not fit in one imaging screen is excellent. Can also be read by scanning the code.

さ ら に、 U S P 5 , 7 2 4 , 3 6 4 は、 連続して撮像され る フ レーム画像か ら抽出される輝度情報を、 次フ レーム撮像 のための照明光量や 2 値化の閾値設定に フィ ー ドバッ クする こ と を開示している。 このよ う なシステムは、 コー ド走査中 に時々 刻々 と変化する コー ド を含む画像の輝度変化に追従し て最適な照明光量や 2 値化閾値を設定する こ とができるため、 データ読み取 り 不良が低減される と い う 点で優れている。 このよ う にコ一 ドの走査中に変化する コー ド を含む画像の 輝度変化に応 じて、 撮像や画像処理に関わるパラ メ一夕 を制 御する効果は大きい。 しか しながら 、 そのコー ド を含む画像 の撮像状態が悪い場合には注意を払う必要がある。 In addition, USP 5, 724, and 364 use the luminance information extracted from continuously captured frame images to set the amount of illumination for the next frame and the threshold for binarization. To provide feedback to Such a system can set the optimal illumination light amount and binarization threshold value by following the luminance change of the image including the code that changes every moment during the code scanning. It is excellent in that defects are reduced. In this way, the effect of controlling the parameters related to imaging and image processing according to the luminance change of the image including the code that changes during the scanning of the code is great. However, care must be taken when the imaging state of the image containing the code is poor.

この対策と して、 U S P 6 , 2 8 2 , 3 1 9 B 1 には、 コー ドの撮像状態を判定し、 撮像画面内の撮像状態の良好な 側か ら ブロ ッ ク を読み取っ た り 、 ブロ ッ ク 読み取 り 時に ブ ロ ッ ク に格納されたデータ と共に撮像状態に応じた確信度を 対応付けて記憶しておき、 よ り 確信度の高い即ち撮像状態の 良いブロ ッ クが検出された時のみ既に読み取 られたデータ に それを上書きするな どして、 無効なブロ ッ ク の読み取 り や、 撮像状態の不良なブロ ッ ク の読み取 り を削減 した情報再生シ ステムが開示さ れている。 これによ り 、 不良なブロ ッ ク の読 み取 り によ るデータ再生不良を低減する こ とができる。  As a countermeasure, USP 6, 282, and 319 B1 determine the imaging state of the code and read the block from the side of the imaging screen where the imaging state is good. At the time of block reading, the certainty factor corresponding to the imaging state is stored in association with the data stored in the block at the time of block reading, and a block having a higher certainty factor, that is, a block with a good imaging state is detected. An information reproduction system has been disclosed that reduces the reading of invalid blocks and the reading of bad blocks in the imaging state by overwriting data that has already been read only when data is read. I have. As a result, it is possible to reduce data reproduction failure due to reading of a bad block.

しか しなが ら 、 上記 U S P 6 , 2 8 2 , 3 1 9 B 1 に開 示の情報再生システムでは、 コー ドが記録された媒体表面の 状態と照明 との関係によ って生 じる正反射についてまでは、 十分な配慮がさ れていなかっ た。  However, in the information reproducing system disclosed in the above-mentioned USPs 6, 28, 2 and 319 B1, the information is generated by the relationship between the state of the medium surface on which the code is recorded and the illumination. Not enough consideration was given to specular reflection.

こ こで、 正反射について説明する。  Here, specular reflection will be described.

通常、 図 1 に示すよ う に、 光源 1 か ら の照明光は、 紙、 プ ラスチッ ク 、 金属、 等か らなる記録媒体 2 上で反射され、 レ ンズ 3 を介して撮像素子 4 で観測される。 こ の と き、 直接の 反射光 ( =正反射) は、 同図中 に示す正反射発生領域 5 に進 むため、 撮像素子 4 には入射しない。 従っ て、 撮像素子 4 は . 記録媒体 2 上で散乱した光のみを捕 ら えて撮像を行う 。 しかし、 図 2 に示すよ う に、 記録媒体 2 の表面に小さな傷 6 や凹凸な どが存在する と、 コー ド 7 を照明 している光源 1 か らの直接の反射光が撮像素子 4 に入射する場合がある。 こ のよ う な現象が生 じる と、 本来のコー ド 7 を含む画像か ら抽 出されるべき特徴量 (輝度情報) か らかけ離れた値が観測さ れる。 このため、 この情報に基づいて撮像や画像処理のパラ メータ を制御する と、 不適切な照明光量や 2 値化閾値が設定 されて、 データ読み取 り 不良が増大する恐れがあっ た。 Normally, as shown in Fig. 1, the illumination light from the light source 1 is reflected on a recording medium 2 made of paper, plastic, metal, etc., and is observed by an image pickup device 4 via a lens 3. Is done. At this time, the directly reflected light (= specular reflection) proceeds to the specular reflection generation area 5 shown in FIG. Therefore, the imaging element 4 captures only the light scattered on the recording medium 2 to perform imaging. However, as shown in FIG. 2, if small scratches 6 or irregularities are present on the surface of the recording medium 2, the direct reflected light from the light source 1 illuminating the code 7 is transmitted to the image sensor 4. May be incident. When such a phenomenon occurs, a value that is far from the feature (luminance information) to be extracted from the image containing the original code 7 is observed. For this reason, if the parameters of imaging and image processing are controlled based on this information, improper illumination light amount and a threshold for binarization may be set, and data reading failure may increase.

即ち、 画像に正反射が生じる と、 撮像状態に応 じた適切な データ読み取 り が行われない恐れがあ り 、 その点で改良すベ き余地があっ た。  That is, if specular reflection occurs in an image, data may not be properly read according to the imaging state, and there is room for improvement in that respect.

発明の開示 Disclosure of the invention

本発明の 目 的は、 コー ド を含む画像に正反射が生じた場合 にもデ一夕読み取 り 不良の低減を可能に したコー ド読取装置 を提供する こ と にある。  It is an object of the present invention to provide a code reading device which can reduce the number of defective readings even when specular reflection occurs in an image including the code.

本発明における コー ド読取装置は、 データが光学的に読み 取 り 可能なコー ド と して記録された記録媒体か ら、 上記コー ド を光学的に読み取る ものであって、  A code reading apparatus according to the present invention optically reads a code from a recording medium on which data is recorded as an optically readable code,

上記コー ド を撮像する撮像部と、  An imaging unit for imaging the code,

上記撮像部で撮像された上記コー ド を含む画像の所定の領 域か ら、 当該領域の輝度に関するパラ メ一夕 を抽出するパラ メ一夕抽出部と、  From a predetermined area of an image including the code captured by the imaging unit, a parameter extraction unit that extracts a parameter relating to luminance of the area,

上記パラ メ一夕抽出部で抽出されたパラ メ一夕 を用 いて、 上記コー ド を含む画像の対応する上記所定の領域に対して画 像処理を行 う 画像処理部と、 上記画像処理部で画像処理された上記コー ド を含む画像か ら、 上記データ を読み取るデータ読取部と、 An image processing unit that performs image processing on the predetermined area corresponding to the image including the code by using the parameter extracted by the parameter extraction unit; A data reading unit that reads the data from an image including the code processed by the image processing unit;

上記パラ メ一夕抽出部で抽出されたパラ メ一夕 に基づいて、 上記コー ド を含む画像の対応する上記所定の領域か ら正反射 を検出する正反射検出部と、  A specular reflection detection unit that detects specular reflection from the corresponding predetermined area of the image including the code based on the parameter set extracted by the parameter set extraction unit;

を具備するよ う に構成されている。  It is configured to have:

即ち、 本発明による コー ド読取装置は、 正反射が生じた不 適切な撮像状態でコー ドが撮像された場合には、 正反射が生 じたこ と を検出する こ とができ、 操作者に再走査を促した り 、 パ ラ メ ータ を補正 した り する こ とで、 不適切な撮像状態で コー ドが撮像されてデータ読み取 り 不良が増大 して しまう と い う こ と を防止する こ とが可能となる。  That is, the code reading device according to the present invention can detect that specular reflection has occurred when the code is imaged in an improper imaging state in which specular reflection has occurred. By promoting rescanning or correcting parameters, it is possible to prevent code from being imaged in an inappropriate imaging state, thereby preventing data reading errors from increasing. This is possible.

図面の簡単な説明 BRIEF DESCRIPTION OF THE FIGURES

図 1 は通常の状態での正反射発生領域を示す図である。  FIG. 1 is a diagram showing a regular reflection generation area in a normal state.

図 2 は記録媒体に傷な どが存在する場合の正反射発生領域 を示す図である。  FIG. 2 is a diagram showing a specular reflection generation area when a flaw is present on the recording medium.

図 3 は本発明の第 1 の実施例 に係る コ 一 ド読取装置のブ ロ ッ ク構成図である。  FIG. 3 is a block diagram of the code reader according to the first embodiment of the present invention.

図 4 はコー ドの物理フォーマツ ト構成を示す図である。  Figure 4 shows the physical format of the code.

図 5 はサブフ レーム毎に抽出されたパラ メ一夕 を示す図で ある。  Figure 5 shows the parameters extracted for each subframe.

図 6 はサブフ レームの大きさ を説明するための図である。 図 7 は連続する フ レーム間でのパラメ一夕の変化を説明す るため図である。  FIG. 6 is a diagram for explaining the size of the subframe. Figure 7 is a diagram for explaining the change in the parameters between successive frames.

図 8 は撮像画面下方に発生した傷によ る正反射発生領域を 示す図である。 Figure 8 shows the area where specular reflection occurs due to a scratch generated below the imaging screen. FIG.

図 9 は本発明の第 1 の実施例に係るコ一 ド読取装置の変形 例を説明するためのブロ ッ ク構成図である。  FIG. 9 is a block diagram for explaining a modification of the code reader according to the first embodiment of the present invention.

図 1 0 は本発明の第 2 の実施例に係るコー ド読取装置のブ ロ ッ ク構成図である。  FIG. 10 is a block diagram of a code reader according to a second embodiment of the present invention.

図 1 1 は重複ブロ ッ クを有するコー ドを示す図である。  FIG. 11 is a diagram showing code having an overlapping block.

図 1 2 は重複ブロ ッ クを有するコー ドの別の例を示す図で ある。  FIG. 12 is a diagram showing another example of a code having an overlapping block.

図 1 3 は本発明の第 3 の実施例に係るコー ド読取装置のブ ロ ッ ク構成図である。  FIG. 13 is a block diagram of a code reader according to a third embodiment of the present invention.

図 1 4 Aはシエーディ ング補正前の輝度分布を示す図であ る。  FIG. 14A is a diagram showing a luminance distribution before shading correction.

図 1 4 Bはシエーディ ング補正後の輝度分布を示す図であ る。  FIG. 14B is a diagram showing a luminance distribution after shading correction.

図 1 5 は本発明の第 4の実施例に係るコー ド読取装置のブ ロ ッ ク構成図である。  FIG. 15 is a block diagram of a code reader according to a fourth embodiment of the present invention.

図 1 6 はサブフ レームの大きさを説明するための図である。 図 1 7 は図 1 6 中の C 一 D線断面の輝度分布を示す図であ る。  FIG. 16 is a diagram for explaining the size of the subframe. FIG. 17 is a diagram showing a luminance distribution in a cross section along line C-D in FIG.

図 1 8 は正反射が無い場合のサブフ レームの 2値化結果を 示す図である。  Fig. 18 shows the binarization result of the subframe when there is no regular reflection.

図 1 9 は正反射が発生した場合のサブフ レームの 2値化結 果を示す図である。  Figure 19 is a diagram showing the binarization result of the subframe when specular reflection occurs.

発明を実施するための最良の形態 BEST MODE FOR CARRYING OUT THE INVENTION

以下、 本発明の実施例を図面を用いて説明する。 [第 1 の実施例 ] Hereinafter, embodiments of the present invention will be described with reference to the drawings. [First embodiment]

図 3 は、 本発明の第 1 の実施例に係る コー ド読取装置 1 0 0 のブロ ッ ク構成図であ り 、 該コー ド読取装置 1 0 0 は、 撮 像部 1 0 1 、 パ ラ メ一夕抽出部 1 0 2 、 画像処理部 1 0 3 、 データ読取部 1 0 4 、 及び正反射検出部 1 0 5 か ら構成され ている。  FIG. 3 is a block diagram of the code reader 100 according to the first embodiment of the present invention. The code reader 100 includes an imaging unit 101 and a It comprises a message extracting unit 102, an image processing unit 103, a data reading unit 104, and a regular reflection detecting unit 105.

こ こ で、 撮像部 1 0 1 は、 図 4 に示すよ う に、 所定の ブ ロ ッ ク配列フ ォーマ ツ 卜で光学的に読み取 り 可能に紙、 ブラ ス チ ッ ク 、 金属、 等か ら なる記録媒体 2 0 0 に記録さ れた コー ド 3 0 0 を、 C C Dな どの撮像素子によ り 撮像し、 電気 信号に変換する ものである。  In this case, as shown in FIG. 4, the imaging unit 101 is configured to use paper, plastic, metal, or the like so as to be optically readable in a predetermined block array format. The code | cord | chord 300 recorded on the recording medium 200 which consists of this is imaged with an imaging element, such as CCD, and is converted into an electric signal.

なお、 このコー ド 3 0 0 は、 記録すべき情報をブロ ッ ク 3 0 1 毎に分割して、 各ブロ ッ ク 3 0 1 に読取指標であるマー 力 3 0 2 やブロ ッ ク ア ド レス 3 0 3 を付加した形態の もので あ る 。 そ し て 、 実際 の 記録すべ き 情報 は、 そ の 「 1 」 、 「 0 」 に対応 して 「黒」 、 「 白」 の属性で表現 したデータ ド ッ ト 3 0 4 と して各ブロ ッ ク 3 0 1 に含まれる。 このコー ド フ ォーマ ッ ト については、 既述の U S P 5 , 8 6 6 , 8 9 5 に詳し く 記載されている。  Note that this code 300 divides information to be recorded into blocks 301 and gives each block 301 a mark index 302 or a block address which is a reading index. This is a form to which the address 303 is added. Then, the actual information to be recorded is each data dot 304 represented by the attributes of “black” and “white” corresponding to the “1” and “0”. Included in step 301. This code format is described in detail in the above-mentioned USP5, 8666, 895.

而 して、 上記撮像部 1 0 1 は、 上記記録媒体 2 0 0 との間 で相対的に移動しなが ら上記コー ド 3 0 0 を連続的に撮像し て、 当該各撮像に対応した画像情報を時系列にて出力する こ と となる。  Thus, the imaging unit 101 continuously captures the code 300 while relatively moving with respect to the recording medium 200, and corresponds to each of the imagings. Image information is output in chronological order.

パラ メ一夕抽出部 1 0 2 は、 例えば、 図 5 に示すよ う に、 上記撮像部 1 0 1 によ っ て撮像さ れた各撮像画面 ( フ レー ム) 1 0 6 を 2 4分割して得 られる小領域 (サブフ レーム 1 0 7 ) 毎に、 輝度の最大値をパラ メ一夕 と して抽出する。 As shown in FIG. 5, for example, as shown in FIG. 5, the parameter overnight extraction unit 102 provides each imaging screen (frame) captured by the imaging unit 101. The maximum luminance value is extracted as a parameter for each small area (subframe 107) obtained by dividing 106 into 24.

画像処理部 1 0 3 は、 これ らサブフ レーム 1 0 7 毎に、 上 記パラ メ一夕抽出部 1 0 2 によっ てそれぞれの領域で抽出さ れた輝度の最大値に基づいて 2値化閾値を決定し、 上記撮像 部 1 0 1 によ っ て撮像された撮像画像をサブフ レーム 1 0 7 毎に 2 値化する。 なお、 2 値化閾値は、 撮像される コー ド 3 0 0 や記録媒体 2 0 0 の特性などによ り 最適な値が異なるが 例えば輝度の最大値の 1 ノ 2 のよ う に設定する こ とができる , データ読取部 1 0 4 は、 上記画像処理部 1 0 3 で 2 値化さ れたコー ド画像か ら ブロ ッ ク 3 0 1 を検出 し、 データ を読み 取る。 ブロ ッ ク検出とデ一夕読み取 り は、 U S P 5 , 8 9 6 4 0 3 や U S P 5 , 8 6 6 , 8 9 5 に開示されている よ う な 公知の方法を利用する こ とができる。 即ち、 例えば図 4 に示 すコ ー ド 3 0 0 の よ う な場合に は、 コ ー ド 画像を ラ ス タ ス キャ ン して所定の長さ を持つ黒ラ ンを検出する こ とでブロ ッ ク 3 0 1 の四隅に配置されたマーカ 3 0 2 を検出する。 そし て、 4つのマーカ 3 0 2 間を コー ド フ ォーマ ツ 卜 に従っ て格 子状に区切っ た格子点上の ド ッ 卜 の白 Z黒をデータの 0 1 と対応させて読み出す。  The image processing unit 103 binarizes each of these subframes 107 based on the maximum value of the luminance extracted in each area by the above-mentioned parameter overnight extraction unit 102. The threshold value is determined, and the image captured by the image capturing section 101 is binarized for each subframe 107. Although the optimum value of the binarization threshold varies depending on the characteristics of the code 300 to be imaged and the recording medium 200, it may be set to, for example, the maximum luminance value of 1 to 2. The data reading unit 104 detects the block 301 from the code image binarized by the image processing unit 103 and reads the data. Known methods such as those disclosed in USP 5,896,403 and USP 5,866,895 can be used for block detection and overnight reading. . That is, for example, in the case of code 300 shown in FIG. 4, raster scan of the code image is performed to detect a black run having a predetermined length. Detects markers 302 placed at the four corners of block 301. Then, the white Z black of the dots on the grid points where the four markers 302 are divided into grids according to the code format are read out in correspondence with the data 0 1.

正反射検出部 1 0 5 は、 上記パ ラ メータ抽出部 1 0 2 にお いて撮像画面 1 0 6 から抽出されたパラ メ一夕 に基づいて、 当該撮像画像に正反射が含まれているかどう かを検出する も のである。  The specular reflection detection unit 105 determines whether or not specular reflection is included in the captured image based on the parameters extracted from the imaging screen 106 in the parameter extraction unit 102. It is to detect whether or not.

こ こで、 正反射の検出方法につ いて説明する。 ノ、 °ラ メータ抽出部 1 0 2 においてパラ メ一夕 (輝度の最大 値) を抽出する小領域 (サブフ レーム 1 0 7 ) は、 例えば、 図 6 に示すよ う に、 コー ド 3 0 0 を構成するマーカ 3 0 2 よ り も十分大きな領域と して設定され、 各小領域 (サブフ レー ム 1 0 7 ) には必ずコー ド背景 (白) が含まれるよ う に分割 される。 Here, a method for detecting regular reflection will be described. The small region (subframe 107) for extracting a parameter (maximum brightness) in the parameter extraction unit 102 is, for example, as shown in FIG. Is set as a region that is sufficiently larger than the marker 302 that composes the subframe, and each small region (subframe 107) is divided so as to always include the code background (white).

そ して、 正反射検出部 1 0 5 は、 隣接する小領域 (サブフ レーム 1 0 7 ) 間で抽出された輝度の最大値を比較した結果 が所定の条件を満た した時、 その小領域 (サブフ レーム 1 0 7 ) に正反射が含まれている と判定する。  Then, when the result of comparing the maximum luminance value extracted between adjacent small regions (sub-frames 107) satisfies a predetermined condition, the specular reflection detection unit 105 determines that small region (sub-frame 107). It is determined that the subframe 107) includes specular reflection.

例えば、 パ ラ メ一夕抽出部 1 0 2 において抽出された輝度 の最大値が図 5 に示すよ う なパターンであ り 、 m行 n列の小 領域を R [m] [ n ] 、 その輝度の最大値を L [m] [ n ] で表すとする。 この とき、 撮像画面 1 0 6 左右方向に隣接す る小領域 (サブフ レーム 1 0 7 ) 間の輝度の最大値の差が所 定の値 T Hを超えていた場合、 即ち 、 L [m ] [ n ] — L C m ] [ n _ l ] > T H、 も し く は、 L [m ] [ n ] - L [ m ] [ n + 1 ] > T Hの条件を満たす場合に、 小領域 R [m ] [ n ] に正反射が含まれている と判定する。  For example, the maximum value of the luminance extracted by the parameter overnight extraction unit 102 is a pattern as shown in FIG. 5, and a small region of m rows and n columns is represented by R [m] [n] Let the maximum value of the luminance be represented by L [m] [n]. At this time, if the difference in the maximum luminance value between the small areas (sub-frames 107) adjacent to each other in the imaging screen 106 in the horizontal direction exceeds the predetermined value TH, that is, L [m] [ n] — LC m] [n _ l]> TH, or if the condition of L [m] [n]-L [m] [n + 1]> TH is satisfied, the small region R [m ] It is determined that [n] includes specular reflection.

こ の所定の値 T Hを 「 2 0 」 とする と、 図 5 に示す例では, ハ ッ チ ングを付 して示す小領域 (サブフ レーム 1 0 7 ) R  Assuming that this predetermined value TH is “20”, in the example shown in FIG. 5, a small area (subframe 107) R indicated by hatching is added.

[ 2 ] [ 5 ] に正反射が検出される こ と になる。  Specular reflection is detected in [2] and [5].

また、 この正反射の判定は、 隣接する小領域 (サブフ レー ム 1 0 7 ) の輝度の最大値の比率に基づいて行う こ と も可能 である。 即ち、 比率が所定の値を超えていたな ら ば正反射を 検出した と判定する ものである。 こ の場合、 撮像画面 1 0 6 全体の輝度が変化したと しても輝度の最大値の比率は比較的 一定となるため、 安定した正反射の判定が可能となる。 Further, the determination of the regular reflection can be made based on the ratio of the maximum value of the luminance of the adjacent small area (subframe 107). That is, if the ratio exceeds a predetermined value, specular reflection will occur. It is determined that it has been detected. In this case, even if the luminance of the entire imaging screen 106 changes, the ratio of the maximum value of the luminance is relatively constant, so that stable regular reflection determination is possible.

さ ら に、 輝度の最大値の比較は、 左右方向に隣接する小領 域 (サブフ レーム 1 0 7 ) 間だけではな く 、 上下方向や 4 近 傍に隣接する小領域 (サブフ レーム 1 0 7 ) 間で比較する こ と も勿論可能であ り 、 判定の精度をよ り 向上する こ とができ る。  In addition, the comparison of the maximum value of the brightness is not only between the small areas (subframe 107) adjacent in the left and right direction, but also the small areas (subframe 107) adjacent in the vertical direction and 4 neighborhoods. ) Can be compared, and the accuracy of the judgment can be further improved.

また、 撮像部 1 0 1 が所定の間隔 (フ レーム レー ト) で連 続 して コ ー ド画像を撮像する も の と し た と き、 連続する フ レーム間で抽出 されたパラ メ一夕 に基づいて正反射の検出を 行う こ と もでき る。  In addition, when the imaging unit 101 continuously captures a code image at a predetermined interval (frame rate), the parameters extracted between consecutive frames are set. Specular reflection can also be detected based on

即ち 、 ノ ラ メ 一夕抽出部 1 0 2 は、 連続 して撮像さ れる コー ド画像毎にパラ メ一夕 を抽出する。 こ こで、 正反射検出 部 1 0 5 は、 少なく と も 1 フ レーム前のパラ メータ (輝度の 最大値) を記憶 してお く 記憶部 (図示せず) を持つ。 そして 正反射検出部 1 0 5 は、 パラ メ一夕抽出部 1 0 2 によ り 抽出 された現フ レームのパラ メ一夕 をその抽出領域毎に前フ レー ムの値と比較する こ とで時間的な輝度変化を検出 し、 所定の 条件を満た した と きに正反射が発生 した と判定する。  In other words, the nighttime extraction unit 102 extracts a nighttime parameter for each code image that is continuously captured. Here, the specular reflection detection unit 105 has a storage unit (not shown) for storing at least the parameter (the maximum value of the luminance) one frame before. Then, the specular reflection detecting unit 105 compares the parameter of the current frame extracted by the parameter extracting unit 102 with the value of the previous frame for each extracted region. Detects a temporal change in luminance, and determines that specular reflection has occurred when a predetermined condition is satisfied.

例えば、 連続する フ レーム間で図 7 に示すよ う に輝度の最 大値が変化 し 、 小領域 (サブ フ レ ー ム 1 0 7 ) R [ m ] [ n ] の k フ レ ー ム に お け る 輝度 の 最大値 を L k [ m ]For example, as shown in Fig. 7, the maximum value of the luminance changes between successive frames, and the luminance changes to the k frame of the small region (subframe 107) R [m] [n]. The maximum value of the luminance to be set is L k [m].

[ n ] とする。 こ う した とき、 連続する フ レーム間で小領域 (サブフ レーム 1 0 7 ) の輝度の最大値の差分が所定の値 T H を 超え た 場合 、 即ち 、 L k [ m ] [ n ] — L k— [ m ][n]. At this time, the difference between the maximum luminance values of the small areas (subframe 107) between consecutive frames is a predetermined value T. When H is exceeded, that is, L k [m] [n] — L k — [m]

[ n ] 〉 T H となっ た場合、 も し く は、 輝度の最大値の比率 が所定の値 R T H を超えた場合 ( L k [ m ] [ n ] / L k _ i[N]> If a TH, is also rather, if the ratio of the maximum value of the luminance exceeds a predetermined value RTH (L k [m] [ n] / L k _ i

[ m ] [ n ] > R T Hを満た した場合) に、 k フ レーム にお ける小領域 (サブフ レーム 1 0 7 ) R [ m ] [ n ] に正反射 が発生したと判定する。 図 7 の例では、 ハ ッ チングを付して 示す k フ レーム にお ける 小領域 (サブフ レーム 1 0 7 ) R When [m] [n]> RTH is satisfied), it is determined that specular reflection has occurred in the small region (subframe 107) R [m] [n] in the k frame. In the example of Fig. 7, the small region (subframe 107) R in the k frame shown with hatching

[ 2 ] [ 5 ] に正反射が発生した と判定する。  [2] It is determined that specular reflection has occurred in [5].

なお、 このよ う に所定の時間間隔で連続して撮像される フ レーム間での輝度の最大値を比較する こ とで正反射を検出す る場合、 撮像を 開始 し た最初の フ レームではそれ以前の フ レームの輝度情報が無い。 そのため、 この最初のフ レームに ついては、 その比較対象と して予め決め られたデフ ォール ト 値を初期パラ メ一夕 と して用 いる。  When regular reflection is detected by comparing the maximum value of luminance between frames continuously imaged at a predetermined time interval in this manner, in the first frame in which imaging is started, There is no luminance information for the previous frame. Therefore, for this first frame, a predetermined default value is used as an initial parameter for comparison.

また、 このよ う な初期パラ メ 一夕は次のよ う に して決定し てお く こ と も可能である。 即ち、 個々 のコー ド読取装置 1 0 0 毎にコー ド 3 0 0 の背景 (白) と同程度の一様な反射率を 持つ紙やカー ド等の媒体を撮像し、 パラメ一夕抽出部 1 0 2 で抽出さ れるパ ラ メ一夕 (輝度の最大値) を初期パラメ 一夕 とする。 つま り 、 当該コー ド読取装置 1 0 0 でコー ド 3 0 0 が適切な撮像状態で撮像された ときパ ラ メ一夕抽出部 1 0 2 で抽出されるであろ う輝度の最大値を予め決定してお く 。 そ して、 コ ー ド読取装置 1 0 0 がフ ラ ッ シュ メ モ リ のよ う な不 揮発性の書き換え可能なメモ リ を持つ場合、 こ の値を不揮発 性メモ リ に記憶しておき、 走査開始時に この初期パラメ一夕 を正反射検出の初期フ レームの比較値と して使用する。 Such initial parameters can be determined as follows. That is, for each individual code reader 100, a medium such as paper or card having a uniform reflectance similar to the background (white) of the code 300 is imaged, and the parameter extraction unit is used. The parameter (the maximum value of luminance) extracted in 102 is set as the initial parameter. In other words, when the code 300 is picked up by the code reader 100 in an appropriate image pickup state, the maximum value of the luminance that will be extracted by the parameter extracting unit 102 is determined in advance. Please decide. If the code reader 100 has a non-volatile rewritable memory such as a flash memory, this value is stored in a non-volatile memory. At the start of scanning, Is used as the comparison value of the initial frame for specular reflection detection.

こ のよ う にする こ とで、 初期パラ メ一夕 はコー ド読取装置 By doing so, the initial parameters can be set up with a code reader.

1 0 0 各々 の照明の発光効率、 撮像素子の感度、 レンズによ る周辺減光な どによ り 生 じる撮像画面 1 0 6 のシエーデイ ン グといっ た撮像特性のバラツキまでを考慮 した ものとな り 、 一様なデフオール ト値を使用する場合に比べて正反射検出を よ り 正確に行う こ とができる よ う になる。 100 Considering variations in imaging characteristics such as shading of the imaging screen 106 caused by the luminous efficiency of each illumination, the sensitivity of the image sensor, and vignetting by the lens, etc. As a result, specular reflection detection can be performed more accurately than when a uniform default value is used.

こ のよ う に して正反射検出部 1 0 5 は、 撮像画像中の正反 射を検出する。 そ して、 正反射が検出された場合には、 その 旨を不図示のブザーや L C Dなどの表示部によ り 操作者に報 知する。 即ち、 操作者にコー ド 3 0 0 のスキャ ン方法ゃコー ド 3 0 0 を記録した記録媒体 2 0 0 と コー ド読取装置 1 0 0 の位置関係を修正して再度スキヤ ンする こ と を促す。  In this way, the specular reflection detecting section 105 detects specular reflection in the captured image. Then, when the regular reflection is detected, the operator is notified of the fact by a display unit such as a buzzer or an LCD (not shown). That is, the operator scans the code 300 again by correcting the positional relationship between the recording medium 200 on which the code 300 is recorded and the code reader 100 0. Prompt.

このよ う に本実施例では、 コー ド 3 0 0 を撮像した撮像画 像か ら抽出されるパ ラ メ 一夕に基づいて正反射を検出する こ とができ る。 そ して、 正反射が生 じた不適切な撮像状態で コー ド 3 0 0 が読み取 られた場合にはその旨を操作者に伝え 再度スキャ ン方法を修正 してスキャ ンさせる こ とで、 不適切 な撮像状態でコ ー ド 3 0 0 が撮像されてデータ読み取 り 不良 が増大する と い う こ とを防止する こ とが可能となる。  As described above, in the present embodiment, regular reflection can be detected based on the parameters extracted from the captured image obtained by capturing the code 300. If the code 300 is read in an improper imaging state where specular reflection has occurred, the operator is informed that the code is read, and the scanning method is corrected again to perform scanning. It is possible to prevent the code 300 from being imaged in an improper imaging state, thereby preventing data reading defects from increasing.

なお、 こ こでは、 図 4 のよ う なコー ド 3 0 0 を例に説明 し た力 他の 1 次元又は 2 次元コー ド についても 当然、 全く 同 様の処理が行える こ とは勿論である。  In this case, the force described in the example of the code 300 in FIG. 4 is used as an example. Needless to say, the same processing can be performed for other one-dimensional or two-dimensional codes. .

また、 図 7 を用 いて輝度の最大値の時間的変化か ら正反射 を検出する方法について説明 したが、 こ の場合、 パラ メ一夕 を抽出する小領域 (サブフ レーム 1 0 7 ) は図 7 のよ う に複 数である必要はな く 、 撮像画面 1 0 6 全体、 も し く は、 コー ド を読み取る可能性のある所定の領域のみか ら 、 輝度の最大 値の抽出を行う ものと しても良い。 In addition, the method of detecting specular reflection from the temporal change of the maximum luminance value was described with reference to Fig. 7, but in this case, the parameter The small area (sub-frame 107) for extracting the image need not be plural as shown in FIG. 7, but may be a predetermined area that may read the entire imaging screen 106 or the code. The maximum luminance value may be extracted only from the area.

例えば、 図 8 に示すよ う に、 撮像部 1 0 1 における照明用 L E D等の光源 1 0 1 Aが撮像画面 1 0 6 上方に取 り 付けら れている場合であれば、 撮像画面 1 0 6 上方の輝度が高 く 、 さ ら に撮像画面 1 0 6 上方に発生した傷 4 0 0 は正反射を生 じ易い (図 8 に示すよ う に、 撮像画面上方では、 入射角が小 さ く (垂直入射に近い) 、 浅い傷でも正反射を起こ し易いの に対し、 画面下方では入射角が大き く (水平入射に近い) 、 浅い傷では正反射を生じ難い) 。  For example, as shown in FIG. 8, if the light source 101A such as an illumination LED in the imaging unit 101 is mounted above the imaging screen 106, the imaging screen 10 6 The brightness at the top is high, and the scratches 400 generated above the imaging screen 106 tend to cause specular reflection (as shown in Fig. 8, the incidence angle is small above the imaging screen). (Close to vertical incidence), it is easy for specular reflection to occur even with shallow scratches, whereas the angle of incidence is large below the screen (close to horizontal incidence), and specular reflection is unlikely to occur for shallow scratches).

こ のよ う な特定の条件があれば、 即ち、 光源 1 0 1 A と撮 像素子 1 0 1 B と記録媒体 2 0 0 との位置関係が所定の関係 を満たせば、 正反射の最も生 じ易い撮像画面 1 0 6 内の特定 の小領域か ら のみパラ メ一夕抽出を行う もの とする こ とがで きる。 このよ う に した場合、 パ ラ メ一夕抽出やその比較にか かる処理を軽減 し、 装置を簡略化する こ とが可能となる。  If there is such a specific condition, that is, if the positional relationship between the light source 101A, the imaging element 101B, and the recording medium 200 satisfies a predetermined relationship, the most regular reflection is generated. The parameter extraction can be performed only from a specific small area in the easily captured imaging screen 106. In this case, it is possible to reduce the processes involved in extracting the parameters and comparing them, thereby simplifying the apparatus.

また、 図 9 のブロ ッ ク構成図に示すよ う に、 さ ら に、 照明 制御部 1 0 8 及び照明部 1 0 9 を持つ構成とする こ と もでき る。  Further, as shown in the block diagram of FIG. 9, it is also possible to adopt a configuration having an illumination control unit 108 and an illumination unit 109.

このとき、 撮像部 1 0 1 は、 C C Dな どの撮像素子 1 0 1 B と、 照明部 1 0 9 によ り 照明されたコー ド 3 0 0 か ら の反 射光を上記撮像素子上に結像するための結像 レ ンズ 1 0 1 C と か ら なる 。 撮像素子 1 0 1 B は、 所定の間隔 ( フ レーム レー ト) で連続してコー ド 3 0 0 を撮像する。 At this time, the imaging unit 101 forms an image of the reflected light from the imaging device 101 B such as a CCD and the code 300 illuminated by the illumination unit 109 on the imaging device. It consists of an imaging lens 101C for the purpose. The image sensor 101B is positioned at a predetermined interval (frame Continuously capture images of code 300 at the rate.

ノ °ラ メ一夕抽出部 1 0 2 は、 連続して撮像される コー ド画 像毎に撮像画面 1 0 6 の輝度の最大値を抽出する。  The noise extraction unit 102 extracts the maximum value of the brightness of the imaging screen 106 for each code image continuously imaged.

照明部 1 0 9 は、 L E Dな どの光源か らな り 、 上記撮像部 1 0 1 によ り 撮像される コー ド 3 0 0 を照明する。 その照明 光量は、 照明制御部 1 0 8 によ っ て制御される。 即ち、 上記 撮像部 1 0 1 に光量非可変の光源を設ける代わ り に、 照明部 1 0 9 と して光量可変の光源を設ける。 勿論、 上記撮像部 1 0 1 内に照明部 1 0 9 を設け、 照明制御部 1 0 8 によっ て光 量制御を行う よ う に しても良い。  The illumination unit 109 includes a light source such as an LED, and illuminates the code 300 captured by the imaging unit 101. The illumination light amount is controlled by the illumination control unit 108. That is, instead of providing a light source with a non-variable light amount in the imaging unit 101, a light source with a variable light amount is provided as the illumination unit 109. Needless to say, an illumination unit 109 may be provided in the imaging unit 101, and the light amount may be controlled by the illumination control unit 108.

照明制御部 1 0 8 では、 ノ、 ラ メ一夕抽出部 1 0 2 によ り 抽 出されたパラ メ一夕 (輝度の最大値) に基づき、 輝度の最大 値が所定の範囲内の値 と な る よ う に、 撮像部 1 0 1 が次フ レーム画像を撮像する際の照明部 1 0 9 の照明光量を制御す る。 即ち、 輝度の最大値が所定範囲よ り 大きければよ り 暗く また、 小さ ければよ り 明る く なるよ う 、 照明光量を制御 し、 撮像部 1 0 1 において適切な撮像状態が得られる よ う にする 例え ば、 照明部 1 0 9 が L E D のパルス発光に よ り 照明 を 行っ ているのであれば、 その発光パルス幅を制御する こ とで 照明光量を制御する こ とができる。  In the lighting control unit 108, the maximum luminance value is within a predetermined range based on the parameters (maximum luminance value) extracted by the luminance and luminance extraction unit 102. Thus, the amount of illumination of the illumination unit 109 when the imaging unit 101 captures the next frame image is controlled such that That is, the amount of illumination is controlled so that the maximum value of the luminance is darker if it is larger than a predetermined range, and it is brighter if it is smaller than the predetermined range, so that an appropriate imaging state can be obtained in the imaging unit 101. For example, if the illuminating unit 109 illuminates by pulse emission of the LED, the illumination light quantity can be controlled by controlling the emission pulse width.

このよ う な場合、 正反射がある と、 極端に高い輝度が検出 されるため、 次フ レーム における照明光量を極端に暗く 制御 して、 照明光量不足となる。 そのため、 正反射検出部 1 0 5 では、 上述 したよ う にパ ラ メ 一夕抽出部 1 0 2 によっ て抽出 されたコ ー ド画面の輝度の最大値の時間的変化か ら正反射の 検出を行い、 正反射が検出さ れた場合には、 その旨を不図示 のブザーや L C Dな どの表示部によ り 操作者に報知し、 操作 者にコー ド 3 0 0 のスキャ ン方法やコー ド 3 0 0 を記録した 記録媒体 2 0 0 とコー ド読取装置 1 0 0 の位置関係を修正し て再度スキャ ンする こ とを促す。 In such a case, if there is specular reflection, extremely high luminance is detected. Therefore, the amount of illumination in the next frame is controlled to be extremely dark, and the amount of illumination becomes insufficient. Therefore, as described above, the specular reflection detection unit 105 detects the specular reflection from the temporal change in the maximum value of the luminance of the code screen extracted by the parameter overnight extraction unit 102 as described above. Detection is performed, and if specular reflection is detected, the operator is notified of this by a buzzer (not shown) or a display such as an LCD, and the operator is notified of the scanning method of code 300 and the like. Corrects the positional relationship between the recording medium 200 on which the code 300 is recorded and the code reader 100 0, and prompts the user to scan again.

また、 正反射を検出 した場合には、 そのと きの輝度の最大 値を無効化 して、 照明制御部 1 0 8 による照明光量の制御を 行わないよ う に構成しても良い。  Further, when specular reflection is detected, the maximum value of the luminance at that time may be invalidated so that the illumination control unit 108 does not control the illumination light amount.

こ のよ う に、 正反射が生じた場合にはその旨を操作者に伝 え再度スキャ ン方法を修正してスキャ ンさせた り 、 その とき のパ ラ メ一夕 に基づいた照明制御を行わない こ とで、 不適切 な照明状態でコー ド 3 0 0 が撮像されてデータ読み取 り 不良 が増大する とい う こ と を防止する こ とが可能となる。  In this way, when specular reflection occurs, the operator is notified of the fact and the scanning method is corrected again to perform scanning, and lighting control is performed based on the parameters at that time. By not performing this, it is possible to prevent the code 300 from being imaged in an improper lighting state and the data reading failure from increasing.

[第 2 の実施例]  [Second embodiment]

次に、 本発明の第 2 の実施例を説明する。  Next, a second embodiment of the present invention will be described.

図 1 0 は、 本第 2 の実施例に係る コー ド読取装置 1 0 0 の 構成を示す図で、 本実施例のコー ド読取装置 1 0 0 は、 撮像 部 1 0 1 、 ノ ラ メ 一夕抽出部 1 0 2 、 画像処理部 1 0 3 、 データ読取部 1 0 4 、 正反射検出部 1 0 5 、 及びパラ メータ 無効化部 1 1 0 よ り なる。 なお、 以下の本実施例の説明にお いて、 上記第 1 の実施例と同一の参照番号を付した構成部で 説明の無い ものについては、 上記第 1 の実施例と 同様の機能 を奏する もの とする。  FIG. 10 is a diagram showing a configuration of a code reading device 100 according to the second embodiment. The code reading device 100 of the present embodiment includes an imaging unit 101, It consists of an evening extraction unit 102, an image processing unit 103, a data reading unit 104, a regular reflection detection unit 105, and a parameter invalidation unit 110. In the following description of the present embodiment, components having the same reference numerals as those in the first embodiment and having no description are those having the same functions as those in the first embodiment. And

撮像部 1 0 1 は、 所定の間隔 (フ レーム レー ト) で連続し てコ ー ド画像を撮像する。 この とき、 走査されるコー ド 3 0 0 は、 図 1 1 又は図 1 2 に示すよ う に、 読み取 り エラーへの対策と して、 コー ド内に 同一の内容を持つ複数の重複ブロ ッ ク 3 0 5 を含むもの とす る。 これは、 重複する ブロ ッ ク を有する こ と によ り 、 ある撮 像画面 ( フ レーム) 1 0 6 でブロ ッ ク の読み取 り に失敗して も、 同一走査中 に再度同一内容を持つブロ ッ クが出現するよ う にする こ と によ り 、 ブロ ッ ク の読み取 り 失敗の確率を下げ データ読み取 り エラーの低減を図っ ている ものである。 なお 図 1 1 又は図 1 2 におけるブロ ッ ク 中の数字 ( 1 , 2 , …, n ) は模式的にブロ ッ ク ア ド レス を表してい ものであ り 、 実 際には、 図 4 のよ う にブロ ッ ク ア ド レス 3 0 3 やデータ ド ッ ト 3 0 4 が記録されている こ とは勿論である。 The imaging section 101 continuously captures a code image at a predetermined interval (frame rate). At this time, as shown in FIG. 11 or FIG. 12, as a countermeasure against a reading error, a plurality of duplicate blocks having the same contents in the code are scanned. Include step 3 2005. This is because, by having duplicate blocks, even if reading of a block fails on a certain image screen (frame) 106, blocks having the same content again during the same scan By making blocks appear, the probability of block reading failures is reduced, and data reading errors are reduced. The numbers (1, 2, ..., n) in the blocks in Fig. 11 or Fig. 12 schematically represent the block addresses. As described above, it is obvious that the block address 303 and the data dot 304 are recorded.

パラ メ一夕抽出部 1 0 2 は、 撮像画面 1 0 6 全体の輝度の 最大値を抽出する。  The parameter extraction unit 102 extracts the maximum value of the luminance of the entire imaging screen 106.

正反射検出部 1 0 5 は、 上記パラ メ一夕抽出部 1 0 2 によ り 抽出された輝度の最大値か ら、 上記第 1 の実施例で説明 し たよ う な正反射の検出方法を用 いて正反射の有無を検出する ノヽ °ラ メ一夕無効化部 1 1 0 は、 上記正反射検出部 1 0 5 に て正反射が検出された とき、 上記パ ラ メ一夕抽出部 1 0 2 に よ り 抽出されたパラ メータ (輝度の最大値) を無効と し、 そ の フ レーム以降の画像処理やデータ読取処理を行わないよ う にする。  The specular reflection detection unit 105 detects the specular reflection detection method as described in the first embodiment from the maximum value of the luminance extracted by the parameter overnight extraction unit 102. When the specular reflection is detected by the specular reflection detecting unit 105, the parameter setting unit 1100 detects the presence or absence of specular reflection. The parameter (maximum luminance value) extracted by 02 is invalidated, and no image processing or data reading processing is performed after that frame.

こ のよ う に、 正反射の有無を検出 し、 正反射が生じた場合 には、 パ ラ メ 一夕 を無効と して当該フ レームでの処理を行わ ないため、 正反射によ って生じ る誤っ たパラ メ 一夕 に基づい て画像処理を行う こ とがな く な り 、 ブロ ッ クが不適切な状態 で読み取 られる こ と を防止する こ とができる。 As described above, the presence or absence of specular reflection is detected, and when specular reflection occurs, the parameter is invalidated and processing is not performed in the frame. Based on the erroneous parameters that occur Image processing, thereby preventing blocks from being read in an improper state.

[第 3 の実施例 ]  [Third embodiment]

次に、 本発明の第 3 の実施例を説明する。  Next, a third embodiment of the present invention will be described.

図 1 3 は、 本第 3 の実施例に係る コー ド読取装置 1 0 0 の 構成を示す図で、 本実施例のコー ド読取装置 1 0 0 は、 撮像 部 1 0 1 、 ノ、 ラ メ 一夕抽出部 1 0 2 、 画像処理部 1 0 3 、 デ一夕読取部 1 0 4 、 正反射検出部 1 0 5 、 パラ メ一夕無効 化部 1 1 0 、 及びパラ メ一夕代用部 1 1 1 よ り なる。 なお、 以下の本実施例の説明において、 上記第 1 の実施例と 同一の 参照番号を付した構成部で説明の無い ものについては、 上記 第 1 の実施例と同様の機能を奏する もの とする。  FIG. 13 is a diagram showing a configuration of a code reading apparatus 100 according to the third embodiment. The code reading apparatus 100 of the present embodiment includes an imaging unit 101, a NO, and a RAM. Overnight extraction unit 102, image processing unit 103, data overnight reading unit 104, regular reflection detection unit 105, parameter overnight invalidation unit 110, and parameter overnight unit It consists of 1 1 1. In the following description of the present embodiment, components having the same reference numerals as those of the first embodiment and having no description will have the same functions as those of the first embodiment. .

パラ メ一夕抽出部 1 0 2 は、 例えば図 5 に示すよ う に撮像 画面 1 0 6 を 2 4 分割した小領域 (サブフ レーム 1 0 7 ) 毎 に輝度の最大値を抽出する。  The parameter overnight extraction unit 102 extracts the maximum value of the luminance for each small area (subframe 107) obtained by dividing the imaging screen 106 into 24, as shown in FIG. 5, for example.

正反射検出部 1 0 5 は、 上記パラ メ一夕抽出部 1 0 2 によ り 抽出された輝度の最大値か ら 、 上記第 1 の実施例で説明 し た正反射の検出方法を用 いて、 小領域 (サブフ レーム 1 0 7 ) 毎に正反射の有無を検出する。  The specular reflection detection unit 105 uses the specular reflection detection method described in the first embodiment from the maximum value of the luminance extracted by the parameter overnight extraction unit 102. The presence or absence of regular reflection is detected for each small area (subframe 107).

ノ\° ラメ一夕無効化部 1 1 0 は、 上記正反射検出部 1 0 5 に て正反射が検出されたとき、 その検出された小領域 (サブフ レーム 1 0 7 ) か ら抽出されたパラ メ一夕 (輝度の最大値) を無効と し、 それ以降の画像処理に使用 しないよ う にする。 勿論、 正反射の検出されていない小領域 (サブフ レーム 1 0 7 ) か ら抽出されたパラメータ (輝度の最大値) については そのまま後段のパラ メ一夕代用部 1 1 1 に出力する。 When the specular reflection is detected by the specular reflection detection unit 105, the white light disabling unit 110 is extracted from the detected small area (subframe 107). Disable the parameter (maximum brightness) and do not use it for subsequent image processing. Of course, the parameters (maximum brightness) extracted from the small area (subframe 107) where no regular reflection is detected It is output as it is to the subsequent parameter overnight section 1 1 1.

パラ メ一夕代用部 1 1 1 では、 上記パラ メ一夕無効化部 1 1 0 において無効と されたパラ メ一夕 を抽出 した小領域 (サ ブフ レーム 1 0 7 ) のパ ラ メ 一夕 を、 次のよ う な方法で設定 する。 例えば、 パラ メ一夕代用部 1 1 1 は、 連続的に入力さ れた撮像画像の う ち直前に有効であっ たパラ メータ (輝度の 最大値) を記憶する有効パラ メ一夕記憶部を有 し、 パラ メ一 夕無効化部 1 1 0 において無効と されたパラ メ一夕 を抽出 し た小領域 (サブフ レーム 1 0 7 ) には、 該当する小領域 (サ ブフ レーム 1 0 7 ) に対応する有効なパラ メ一夕 を設定する も し く は、 コ一 ド画像が撮像された とき に得 られるであろ う 平均的な輝度の最大値をデフ ォール ト値と して予め用意して おき、 これを、 無効化されたパラ メ 一夕 の代わ り に用 いる こ と もできる。  In the parameter overnight substituting unit 111, a parameter (subframe 107) of the small area (subframe 107) from which the parameter invalidated by the parameter invalidating unit 110 is extracted is extracted. Is set in the following way. For example, the parameter storage unit 111 stores an effective parameter storage unit that stores a parameter (maximum luminance value) that was valid immediately before a continuously input captured image. In the small area (subframe 107) from which the parameter invalidated by the parameter invalidation unit 110 is extracted, the corresponding small area (subframe 107) is included. Set a valid parameter corresponding to the image, or prepare the maximum value of the average luminance that would be obtained when a code image is captured as a default value in advance. Note that this can be used in place of disabled parameters overnight.

なお、 ノ°ラ メ 一夕抽出部 1 0 2 か ら抽出される有効なパラ メ一夕 については、 上記パラ メ一夕無効化部 1 1 0 をスルー してそのま ま設定する こ とは言う までも無い。  It should be noted that the effective parameters extracted from the no-launch overnight extraction unit 102 can be set as they are through the above-mentioned parameter overnight invalidation unit 110. Needless to say.

画像処理部 1 0 3 は、 パラ メ一夕代用部 1 1 1 によって設 定されたパ ラ メ 一夕 (輝度の最大値) に基づいて、 各サブフ レーム毎に 2 値化閾値 を決定 し 、 撮像部 1 0 1 で撮像 した コー ド画像の 2 値化を行う。  The image processing unit 103 determines a binarization threshold for each subframe based on the parameter setting (maximum brightness) set by the parameter setting unit 111, The binarization of the code image captured by the imaging unit 101 is performed.

このよ う に、 正反射の検出された小領域 (サブフ レーム 1 0 7 ) の輝度の最大値を無効と し、 直前に有効であっ た正反 射の含まれていない ときの輝度の最大値や、 隣接小領域 (サ ブフ レーム 1 0 7 ) の輝度の最大値か ら算出 した値、 ある い はデフ ォール ト値、 を輝度の最大値と して代用する こ とで、 正反射が生 じたフ レームであっ ても画像処理部 1 0 3 におい て本来のコー ド画像か ら得られるであろ う 適正な輝度の最大 値に基づいた 2 値化閾値が設定される。 従っ て、 適正な 2 値 化が行われ、 2 値化不良によるブロ ッ ク読み取 り 不良ゃデー 夕読み取 り エラーの低減が可能となる。 Thus, the maximum value of the luminance of the small area (subframe 107) where the regular reflection is detected is invalidated, and the maximum value of the luminance when the immediately preceding valid regular reflection is not included is included. Or a value calculated from the maximum luminance value of the adjacent small area (subframe 107), or Is used as the default value, and is used as the maximum value of luminance, so that even if a frame has regular reflection, it can be obtained from the original code image in the image processing unit 103. The binarization threshold based on the appropriate maximum luminance is set. Accordingly, appropriate binarization is performed, and block reading failure due to binarization failure ゃ data evening reading error can be reduced.

なお、 ノ、° ラ メ一夕 を抽出する小領域は必ずし も図 5 のよ う に複数である必要はな く 、 撮像画面 1 0 6 全体か ら輝度の最 大値の抽出を行う もの と しても良い。 この場合、 画像処理部 1 0 3 では、 検出された輝度の最大値に基づいて 2 値化閾値 を決定し、 撮像画面 1 0 6 全体を一様な 2 値化閾値で 2 値化 する こ と になる。  Note that there is no need to always have a plurality of small regions for extracting the 、 and ° ラ as shown in FIG. 5, but to extract the maximum luminance value from the entire imaging screen 106. It may be. In this case, the image processing unit 103 determines a binarization threshold based on the maximum value of the detected luminance, and binarizes the entire imaging screen 106 with a uniform binarization threshold. become.

また、 パ ラ メ一夕抽出部 1 0 2 が撮像画面 1 0 6 内の複数 の小領域 (サブフ レーム 1 0 7 ) か らパラ メ一夕 を抽出する よ う な構成であれば、 パラ メ 一夕代用部 1 1 1 は、 無効化さ れたパラ メ一夕 (輝度の最大値) を含む小領域 (サブフ レー ム 1 0 7 ) に隣接する複数の小領域 (サブフ レーム 1 0 7 ) か ら抽出された輝度の最大値の平均値を、 無効化されたパラ メ ータの代わ り に用 いるよ う に構成しても良い。  In addition, if the parameter overnight extraction unit 102 is configured to extract the parameters from a plurality of small regions (subframes 107) in the imaging screen 106, the parameters are extracted. The overnight substituting unit 111 is composed of a plurality of sub-regions (sub-frame 107) adjacent to the sub-region (sub-frame 107) containing the invalidated parameter (maximum brightness). The average of the maximum values of the luminances extracted from the parameters may be used in place of the invalidated parameters.

さ ら に、 本実施例では、 所定の領域か ら抽出 した輝度の最 大値に基づいて 2 値化閾値を設定し 2 値化を行っ ているが、 画像処理部 1 0 3 において予めシェーディ ング補正を行う こ と によっ て固定閾値で適切な 2 値化を行う こ と も可能である , 例えば、 図 1 4 Aに示すよ う に、 サブフ レーム 1 0 7 毎に輝 度の最大値 5 0 0 を検出 し、 図 1 4 B に示すよ う に、 その輝 度の最大値が所定の値 T になるよ う にサブフ レーム内の画素 の輝度を補正する こ とで、 予め決め られた所定の閾値 T h で 適切に 2 値化を行う こ とができる。 画素の輝度の補正は、 例 えば、 サブフ レーム毎に補正係数 R = T / (サブフ レーム 1 0 7 の輝度の最大値) を各画素の輝度に乗じる こ とで行う 。 Further, in the present embodiment, binarization is performed by setting a binarization threshold based on the maximum value of luminance extracted from a predetermined area. However, shading is performed in advance in the image processing unit 103. By performing the correction, it is also possible to perform appropriate binarization with a fixed threshold value.For example, as shown in Fig. 14A, the maximum value of the brightness 5 per subframe 107 is obtained. 0 0 is detected and its luminescence is detected as shown in Figure 14B. By correcting the luminance of the pixels in the subframe so that the maximum value of the degree becomes a predetermined value T, binarization can be appropriately performed at a predetermined threshold value Th. The luminance of a pixel is corrected, for example, by multiplying the luminance of each pixel by a correction coefficient R = T / (the maximum value of the luminance of the subframe 107) for each subframe.

こ こで、 サブフ レーム 1 0 7 に正反射が生じ る と、 画素の 輝度が低く 補正されて し ま う ため、 本来得たいシエーデイ ン グ補正画像に対して暗い画像が得られて し ま う 。 そこで、 正 反射を検出したサブフ レーム 1 0 7 の輝度の最大値を、 周辺 のサブフ レーム 1 0 7 の輝度の最大値や、 前の撮像フ レーム で検出された輝度の最大値で代用する こ とで、 正しいシエ ー デイ ング補正を行う こ とができ、 適切な 2 値化が可能となる [第 4 の実施例 ]  Here, if the sub-frame 107 is specularly reflected, the pixel brightness will be corrected to be low, and a dark image will be obtained with respect to the shading correction image that is originally desired. . Therefore, the maximum value of the luminance of the subframe 107 in which the specular reflection is detected can be substituted with the maximum value of the luminance of the surrounding subframe 107 or the maximum value of the luminance detected in the previous imaging frame. As a result, correct shading correction can be performed, and appropriate binarization can be performed [Fourth embodiment]

次に、 本発明の第 4 の実施例を説明する。  Next, a fourth embodiment of the present invention will be described.

図 1 5 は、 本第 4 の実施例に係る コー ド読取装置 1 0 0 の ブロ ッ ク構成図である。 本実施例のコー ド読取装置 1 0 0 は 撮像部 1 0 1 、 ノ\°ラ メ一夕抽出部 1 0 2 、 画像処理部 1 0 3 データ読取部 1 0 4 、 正反射検出部 1 0 5 、 ノ ラ メ一夕無効 化部 1 1 0 、 及びパラ メ一夕代用部 1 1 1 よ り なる。 また、 画像処理部 1 0 3 は更に仮 2 値化部 1 0 3 A と本 2 値化部 1 0 3 B と を持つ。 なお、 以下の本実施例の説明において、 上 記第 3 の実施例と同一の参照番号を付した構成部で説明の無 いものについては、 上記第 3 の実施例と 同様の機能を奏する もの とする。  FIG. 15 is a block diagram of a code reader 100 according to the fourth embodiment. The code reading device 100 of this embodiment includes an imaging unit 101, a non-linear image extraction unit 102, an image processing unit 103 a data reading unit 104, and a regular reflection detection unit 100. 5, It is composed of a part for invalidating the parameter and the part for parameter setting. Further, the image processing section 103 further includes a provisional binarization section 103A and a main binarization section 103B. In the following description of the present embodiment, components having the same reference numerals as those of the third embodiment described above and having no description are those having the same functions as those of the third embodiment. And

パラ メ一夕抽出部 1 0 2 は、 図 1 6 に示すよ う に、 マーカ 3 0 2 よ り も十分大きな面積を持つ領域毎に分割 した小領域 (サブフ レーム 1 0 7 ) 毎に輝度の最大値を抽出する。 As shown in Fig. 16, the parameter overnight extractor 102 The maximum value of the luminance is extracted for each small region (subframe 107) divided into regions each having a sufficiently larger area than 302.

画像処理部 1 0 3 の仮 2 値化部 1 0 3 Aは、 上記パラ メ一 夕抽出部 1 0 2 において小領域 (サブフ レーム 1 0 7 ) 毎に 抽出 した輝度の最大値に基づいて各小領域 (サブフ レーム 1 0 7 ) 毎に 2 値化閾値 を決定 し 、 撮像部 1 0 1 で撮像 した コー ド画像の 2 値化を行う 。 こ の とき 2 値化閾値は、 コー ド 読み取 り に適した閾値よ り 高い値、 例えば輝度の最大値の 8 0 %の値とする。 こ の とき、 正反射が発生していなければ、 輝度の最大値は図 1 7 に示す L とな り 、 2 値化閾値 = 0 . 8 L で 2 値化されるため、 2 値化結果は図 1 8 のよ う になる。 即ち、 適切な閾値よ り も高い閾値で 2 値化される ので、 ド ッ 卜 の一部が黒く つぶれるが、 マーカ 3 0 2 や大部分の ド ッ ト は認識可能な状態となる。  The provisional binarization unit 103A of the image processing unit 103 is based on the maximum luminance value extracted for each small region (subframe 107) in the parameter extraction unit 102. A binarization threshold value is determined for each small region (subframe 107), and the code image captured by the imaging unit 101 is binarized. At this time, the binarization threshold is set to a value higher than the threshold suitable for code reading, for example, a value of 80% of the maximum luminance. At this time, if there is no regular reflection, the maximum value of the luminance is L as shown in Fig. 17 and binarization is performed with the binarization threshold = 0.8L. It looks like Figure 18. That is, since the binarization is performed at a threshold higher than the appropriate threshold, a part of the dot is blackened, but the marker 302 and most of the dots are in a recognizable state.

一方、 記録媒体上に発生した傷 4 0 0 等によ り 正反射が発 生した場合は、 輝度の最大値は図 1 7 に示す L e r r とな り 2 値化閾値 = 0 . 8 L e r r で 2 値化される。 よ って、 2 値 化結果は、 図 1 9 のよ う に正反射の発生した箇所 6 0 0 以外 はほ とんどが黒く つぶれ、 コー ド 3 0 0 を認識できない状態 となる。  On the other hand, when specular reflection occurs due to scratches 400 etc. on the recording medium, the maximum value of the luminance is L err shown in Fig. 17 and the binarization threshold = 0.8 L err Is binarized by Therefore, as shown in FIG. 19, most of the binarized result is black except for the portion 600 where specular reflection has occurred, and the code 300 cannot be recognized.

正反射検出部 1 0 5 は、 上記仮 2 値化部 1 0 3 Aによ っ て 2 値化された小領域 (サブフ レーム 1 0 7 ) 毎に黒画素 と 白 画素の比率を検出 し、 黒画素の比率が所定の割合以上であれ ば当該サブフ レーム 1 0 7 に正反射が存在する と判定する。 その比率は、 図 4 のよ う なコ ー ド 3 0 0 の場合、 8 5 %程度 に設定するのが望ま し く 、 例えば図 1 9 に示すよ う に 8 5 % 以上が黒画素である小領域 (サブフ レーム 1 0 7 ) には正反 射が発生している と判定する。 The regular reflection detection unit 105 detects the ratio of black pixels to white pixels for each small area (subframe 107) binarized by the temporary binarization unit 103A, If the ratio of black pixels is equal to or greater than a predetermined ratio, it is determined that specular reflection exists in the subframe 107. The ratio is about 85% for code 300 as shown in Fig. 4. For example, as shown in FIG. 19, it is determined that regular reflection has occurred in a small area (subframe 107) in which 85% or more are black pixels.

パラ メ一夕無効化部 1 1 0 では、 上記正反射検出部 1 0 5 で正反射が検出された小領域 (サブフ レーム 1 0 7 ) に対応 する 上記パ ラ メ 一夕抽出部 1 0 2 で抽出 さ れたパ ラ メ 一 夕 (輝度の最大値) を無効とする。  In the parameter overnight disabling unit 110, the parameter overnight extracting unit 1102 corresponding to the small area (subframe 107) in which the regular reflection is detected by the regular reflection detecting unit 105 is used. Invalidate the parameters (maximum brightness) extracted in step (1).

パラ メ一夕代用部 1 1 1 では、 上記パラ メ一夕無効化部 1 1 0 によ り 無効化された輝度の最大値の代わ り に、 上記第 3 の実施例で説明 した方法で代用パラ メ一夕 (輝度の最大値) を設定する。  The parameter overnight substituting unit 111 substitutes for the method described in the third embodiment above in place of the maximum luminance value invalidated by the parameter overnight invalidating unit 110. Set parameters (maximum brightness).

画像処理部 1 0 3 の本 2 値化部 1 0 3 B では、 上記パ ラ メータ代用部 1 1 1 によ り 設定された輝度の最大値に基づい て、 各小領域 (サブフ レーム 1 0 7 ) 毎に 2 値化閾値 (例え ば、 輝度の最大値の 1 2 ) を設定し、 撮像部 1 0 1 で撮像 したコー ド画像の 2 値化を行 う 。  The binarizing section 103 B of the image processing section 103 sets each small area (sub-frame 107 b) based on the maximum luminance value set by the parameter substituting section 111. ), A binarization threshold (for example, the maximum luminance of 12) is set, and the code image captured by the imaging unit 101 is binarized.

このよ う に、 小領域 (サブフ レーム 1 0 7 ) 毎に 2 値化結 果の白黒画素の比率に基づいて正反射の有無を検出 し、 正反 射が検出された小領域 (サブフ レーム 1 0 7 ) には、 コー ド 3 0 0 が正常に撮像されたと きに得 られるであろ う適切な輝 度の最大値を代用設定して 2 値化を行う 。 これによ り 、 芷反 射による誤っ た輝度の最大値に基づいた不適切な 2 値化を行 う こ とを防止する こ とができ、 データ読み取 り 不良の低減が 可能となる。  In this way, the presence or absence of specular reflection is detected based on the ratio of the black and white pixels of the binarization result for each small region (subframe 107), and the small region (subframe 1107) where regular reflection is detected is detected. In 07), binarization is performed by substituting an appropriate maximum brightness value that would be obtained when the code 300 is normally captured. As a result, it is possible to prevent inappropriate binarization based on the maximum value of erroneous luminance due to the reflection, and to reduce data reading defects.

以上実施例に基づいて本発明を説明 したが、 本発明は上述 した実施例に限定される ものではな く 、 本発明の要旨の範囲 内で種々 の変形や応用が可能な こ とは勿論である。 Although the present invention has been described based on the embodiments, the present invention It is needless to say that the present invention is not limited to the embodiments described above, and various modifications and applications are possible within the scope of the present invention.

こ こで、 本発明の要旨をま とめる と以下のよ う になる。 ( 1 ) データが光学的に読み取 り 可能なコー ドで記録さ れた記録媒体か ら、 上記コー ド を光学的に読み取る コー ド読 取装置において、  Here, the summary of the present invention is as follows. (1) In a code reading device for optically reading the above code from a recording medium on which data is recorded with an optically readable code,

上記コー ド を撮像する撮像部と、  An imaging unit for imaging the code,

上記撮像部で撮像された上記コー ド を含む画像の所定の領 域か ら、 当該領域の輝度に関するパラ メ一夕 を抽出するパ ラ メータ抽出部と、  A parameter extraction unit for extracting a parameter related to the brightness of the region from a predetermined region of an image including the code captured by the imaging unit,

上記パ ラ メ一夕抽出部で抽出されたパラ メ一夕 を用 いて、 上記コ一 ド を含む画像の対応する上記所定の領域に対して画 像処理を行う 画像処理部と、  An image processing unit that performs image processing on the predetermined area corresponding to an image including the code using the parameter extracted by the parameter extraction unit;

上記画像処理部で画像処理された上記コー ド を含む画像か ら、 上記データ を読み取るデータ読取部と、  A data reading unit that reads the data from an image including the code processed by the image processing unit;

上記パ ラ メ一夕抽出部で抽出されたパラ メ一夕 に基づいて 上記コー ド を含む画像の対応する上記所定の領域か ら正反射 を検出する正反射検出部と、  A specular reflection detection unit configured to detect specular reflection from the predetermined area corresponding to the image including the code based on the parameter extracted by the parameter extraction unit;

を具備する こ と を特徴とする コー ド読取装置。  A code reader characterized by comprising:

即ち、 正反射が生じた不適切な撮像状態でコー ドが撮像さ れた場合には、 正反射が生じた こ とを検出する こ とができ、 その旨を操作者に伝え再度スキャ ン方法を修正してスキャ ン させる こ とで、 不適切な撮像状態でコー ドが撮像されてデー 夕読み取 り 不良が増大 してし ま う とい う こ とを防止する こ と が可能となる。 ( 2 ) 上記正反射検出部で正反射が検出された上記所定 の領域か ら の上記パラ メ一夕 を無効化するノ、 °ラ メ 一夕無効化 部を更に具備する こ と を特徴とする ( 1 ) 記載のコー ド読取 装置。 That is, when the code is imaged in an inappropriate imaging state in which specular reflection has occurred, it is possible to detect that specular reflection has occurred, and inform the operator of the fact and perform the scanning method again. By correcting and scanning, it is possible to prevent the code from being imaged in an improper imaging state and the data reading error from increasing. (2) The apparatus further comprises: a lane-overnight invalidation section for invalidating the parameter overtime from the predetermined area where the regular reflection is detected by the regular reflection detection section. The code reader according to (1).

即ち、 正反射に起因する誤っ たパ ラ メ一夕 に基づいた画像 処理を行う こ と を防止 し、 データ読み取 り エラーを低減でき る。  That is, it is possible to prevent image processing based on erroneous parameters caused by specular reflection, and reduce data reading errors.

( 3 ) 上記パラ メ一夕無効化部によ り 無効化された上記 パラ メ一夕 に、 予め規定された方法に従って求め られた別の パラ メ 一夕 を代用するパラ メ一夕代用部を更に具備する こ と を特徴とする ( 2 ) 記載のコ ー ド読取装置。  (3) In the above-mentioned parameter overnight that has been invalidated by the above-mentioned parameter overnight invalidation section, a parameter overnight section that substitutes another parameter that has been obtained in accordance with a predetermined method is used. The code reader according to (2), further comprising:

即ち、 正反射が生じた場合でも、 コー ド を含む画像が正反 射がな く 正常に撮像されたと き に得 られるであろ うパ ラ メ一 夕 を設定する こ とができ、 不適切な画像処理を防止し、 デー 夕読み取 り エラーの低減が可能となる。  In other words, even if specular reflection occurs, it is possible to set a parameter that would be obtained when an image including a code is normally captured without specular reflection, and an inappropriate image can be set. Prevents image processing and reduces data reading errors.

( 4 ) 上記所定の領域が、 上記撮像部によ る撮像画面内 に予め複数個設定され、  (4) a plurality of the predetermined areas are set in advance in an image screen by the image pickup unit;

上記パラ メ 一夕抽出部が、 上記複数個の各所定の領域毎に 上記パラ メ一夕 を抽出 し、 且つ、  The parameter extracting unit extracts the parameter for each of the plurality of predetermined areas, and

上記画像処理部が、 上記複数個の各所定の領域毎に抽出さ れた各パラ メ 一夕 を、 対応する上記複数個の各所定の領域に 適用 して、 当該複数個の各所定の領域毎に画像処理を行う よ う に構成されたものである と き、  The image processing unit applies the parameters extracted for each of the plurality of predetermined areas to the corresponding plurality of predetermined areas, and the plurality of predetermined areas. When it is configured to perform image processing for each

上記パラ メ 一夕代用部は、 上記正反射検出部で正反射が検 出された上記所定の領域か ら の上記パラ メ一夕 に、 当該所定 の領域に隣接する所定の領域か ら抽出された上記パラ メ 一夕 を代用する よ う に構成された こ とを特徴とする ( 3 ) 記載の コー ド読取装置。 The parameter replacement unit is configured to receive the parameter from the predetermined area where specular reflection is detected by the specular reflection detection unit. (3) The code reading device according to (3), characterized in that the code reading device is configured to substitute the parameter extracted from a predetermined region adjacent to the region.

即ち、 正反射が生じて正常なパラ メ一夕が抽出できない場 合でも、 当該フ レームにおける所定の周辺領域か ら抽出され るパラ メ一夕 に基づき、 当該正反射発生領域のパラメ一夕 を 適切に設定する こ とが可能となる。  That is, even when normal reflection cannot be extracted due to specular reflection, the parameters of the specular reflection occurrence area are determined based on the parameters extracted from a predetermined peripheral area in the frame. It can be set appropriately.

( 5 ) 上記撮像部が、 上記記録媒体との間で相対的に移 動しながら上記コー ド を連続的に撮像して、 当該各撮像に対 応した画像情報を時系列にて出力する よ う に構成され、  (5) The imaging unit continuously captures the code while relatively moving with the recording medium, and outputs time-series image information corresponding to each of the captures. Is composed of

上記パラ メ 一夕抽出部が、 上記撮像部か ら時系列にて出力 された各画像情報の所定の領域か ら上記パ ラ メ一夕 を抽出 し 且つ、  The parameter / parameter extracting unit extracts the parameter / parameter from a predetermined area of each image information output in time series from the imaging unit, and

上記画像処理部が、 上記各画像情報の所定の領域か ら抽出 された各パラ メータ を、 当該パ ラ メ 一夕の抽出対象となっ た 画像情報に続いて入力される画像情報の対応する上記所定の 領域に適用 して、 当該画像情報の所定の領域に対して画像処 理を行う よ う に構成されたものである とき、  The image processing unit converts each parameter extracted from a predetermined area of the image information into a parameter corresponding to the image information input subsequent to the image information extracted as a parameter. When applied to a predetermined area and configured to perform image processing on a predetermined area of the image information,

上記パラ メ 一夕代用部は、 上記正反射検出部で正反射が検 出された上記所定の領域か ら の上記パラ メ一夕 に、 当該パラ メータの抽出対象となった画像情報よ り 以前に入力された画 像情報の、 対応する上記所定の領域か ら抽出された上記パラ メータ を代用するよ う に構成された こ とを特徴とする ( 3 ) 記載のコー ド読取装置。  The above-mentioned parameter one-time substituting unit is configured such that the specular reflection is detected by the above-mentioned specular reflection detecting unit, and the above-mentioned parameter is extracted from the predetermined area. (3) The code reading device according to (3), wherein the parameter is extracted from the corresponding predetermined area of the image information input in step (b).

即ち、 正反射が生じて正常なパラ メ一夕が抽出できない場 合でも、 当該フ レームよ り 過去に撮像したコ ー ド を含む画像 か ら抽出されたパラ メ一夕 に基づいて、 当該フ レームのパラ メータ を適切に設定する こ とができる。 In other words, when normal reflection cannot be extracted due to specular reflection. Even in this case, the parameters of the frame can be appropriately set based on the parameters extracted from the image including the code captured in the past from the frame.

( 6 ) 上記撮像部が、 上記記録媒体との間で相対的に移 動しながら上記コー ド を連続的に撮像して、 当該各撮像に対 応した画像情報を時系列にて出力する よ う に構成され、  (6) The imaging unit continuously captures the code while relatively moving with the recording medium, and outputs time-series image information corresponding to each of the captures. Is composed of

上記所定の領域が、 上記撮像部によ る撮像画面内に予め複 数個設定され、  A plurality of the predetermined areas are set in advance in an image screen by the image pickup unit,

上記パラ メ一夕抽出部が、 上記撮像部か ら時系列にて出力 された各画像情報毎であっ て上記複数個の各所定の領域毎に 上記パラ メ 一夕 を抽出 し、 且つ、  The parameter extracting unit extracts the parameter for each of the plurality of predetermined regions for each piece of image information output in time series from the imaging unit; and

上記画像処理部が、 上記複数個の各所定の領域毎に抽出さ れた各パラ メ一夕 を、 当該パラ メ一夕の抽出対象となっ た画 像情報に続いて入力される画像情報の、 対応する上記複数個 の各所定の領域に適用 して、 当該複数個の各所定の領域毎に 画像処理を行 う よ う に構成されたものである とき、  The image processing unit converts each of the parameters extracted for each of the plurality of predetermined regions into image information that is input subsequent to the image information from which the parameter was extracted. When applied to each of the plurality of predetermined areas corresponding to the plurality of corresponding predetermined areas, image processing is performed for each of the plurality of predetermined areas.

上記パラ メ一夕代用部は、 上記正反射検出部で正反射が検 出された上記所定の領域か ら の上記パラ メ一夕 に、 当該パラ メータの抽出対象となっ た画像情報よ り 以前に入力された画 像情報の、 対応する上記所定の領域か ら抽出された上記パラ メータ を代用する よ う に構成された こ と を特徴とする ( 3 ) 記載のコー ド読取装置。  The parameter change section is configured to include, before the parameter information from the predetermined area in which the specular reflection is detected by the specular reflection detection section, before the image information from which the parameter is extracted. (3) The code reading device according to (3), wherein the parameter is extracted from the corresponding predetermined area of the image information input to the device.

即ち、 正反射が生じて正常なパラ メ一夕が抽出できない場 合でも、 当該フ レームよ り 過去に撮像したコー ド を含む画像 の各小領域か ら抽出 さ れたパ ラ メ 一夕 に基づいて、 当該フ レームの各小領域のパラ メ一夕 を適切に設定する こ とができ よ り 適切な画像処理ができる。 In other words, even when normal parameters cannot be extracted due to specular reflection, the parameters extracted from each small area of the image containing the code captured in the past from the frame are not affected. Based on The parameters of each small area of the frame can be set appropriately, and more appropriate image processing can be performed.

さ ら に、 撮像画面を複数個の小領域に分割してその小領域 毎に抽出されるパ ラ メ一夕 に基づいて画像処理を行う こ とが できるため、 照明や撮像部の レ ンズやセ ンサの特性によ り 撮 像画面の輝度む らがある場合でも適切な画像処理を行う こ と ができる。  Furthermore, since the imaging screen can be divided into a plurality of small areas and image processing can be performed based on the parameters extracted for each of the small areas, the illumination and the lens of the imaging unit can be used. Appropriate image processing can be performed even when the brightness of the image screen is uneven due to the sensor characteristics.

( 7 ) 上記所定の領域が、 上記撮像部によ る撮像画面内 に予め複数個設定され、  (7) A plurality of the predetermined areas are set in advance in an image screen by the imaging unit,

上記パラ メ 一夕抽出部が、 上記複数個の各所定の領域毎に 上記パラ メ一夕 を抽出 し、 且つ、  The parameter extracting unit extracts the parameter for each of the plurality of predetermined areas, and

上記画像処理部が、 上記複数個の各所定の領域毎に抽出さ れた各パラ メ 一夕 を、 対応する上記複数個の各所定の領域に 適用 して、 当該複数個の各所定の領域毎に画像処理を行う よ う に構成された ものである と き、  The image processing unit applies the parameters extracted for each of the plurality of predetermined areas to the corresponding plurality of predetermined areas, and the plurality of predetermined areas. When configured to perform image processing for each

上記正反射検出部は、 上記複数個の各所定の領域毎に抽出 された各パラ メータ間の比較に基づいて、 上記正反射を検出 する よ う に構成された こ と を特徴とする ( 1 ) 記載のコー ド 読取装置。  The specular reflection detecting section is configured to detect the specular reflection based on a comparison between parameters extracted for each of the plurality of predetermined regions. ) Code reader.

即ち、 単一の撮像画面内で正反射を検出する こ とが可能と なる。  That is, it is possible to detect specular reflection within a single imaging screen.

( 8 ) 上記撮像部が、 上記記録媒体との間で相対的に移 動しなが ら上記コ ー ド を連続的に撮像して、 当該各撮像に対 応した画像情報を時系列にて出力するよ う に構成され、  (8) The imaging unit continuously captures the code while relatively moving with respect to the recording medium, and chronologically obtains image information corresponding to each of the captures. Is configured to output

上記パラ メ一夕抽出部が、 上記撮像部か ら時系列にて出力 された各画像情報の所定の領域か ら上記パラ メ一夕を抽出 し 且つ、 The parameter extraction unit outputs time series from the imaging unit Extracting the above parameters from a predetermined area of each of the obtained image information; and

上記画像処理部が、 上記各画像情報の所定の領域か ら抽出 された各パラ メ 一夕 を、 当該パラ メ一夕の抽出対象となっ た 画像情報に続いて入力される画像情報の対応する上記所定の 領域に適用 して、 当該画像情報の所定の領域に対 して画像処 理を行う よ う に構成されたものである とき、  The image processing unit converts each parameter extracted from a predetermined area of each image information into a corresponding one of the image information input subsequent to the image information from which the parameter was extracted. When configured to apply image processing to a predetermined area of the image information by applying to the above-described predetermined area,

上記正反射検出部は、 上記撮像部か ら時系列にて出力され た複数の各画像情報における、 対応する上記所定の領域間で の上記パラ メ 一夕の比較に基づいて、 上記正反射を検出する よ う に構成された こ と を特徴とする ( 1 ) 記載のコー ド読取 装置。  The specular reflection detection unit detects the specular reflection based on a comparison of the parameters between the corresponding predetermined regions in a plurality of pieces of image information output in time series from the imaging unit. The code reading device according to (1), wherein the code reading device is configured to detect the code.

即ち、 コー ド を含む画像か ら抽出されるパ ラ メ 一夕の、 各 フ レーム間における変化、 即ち時間的変化を検出する こ とで 正反射の検出を行う こ とができる。  That is, regular reflection can be detected by detecting a change between parameters, that is, a temporal change of a parameter extracted from an image including a code.

( 9 ) 上記撮像部が、 上記記録媒体との間で相対的に移 動しながら上記コー ド を連続的に撮像して、 当該各撮像に対 応した画像情報を時系列にて出力する よ う に構成され、  (9) The imaging unit continuously captures the code while relatively moving with the recording medium, and outputs time-series image information corresponding to each of the captures. Is composed of

上記所定の領域が、 上記撮像部によ る撮像画面内に予め複 数個設定され、  A plurality of the predetermined areas are set in advance in an image screen by the imaging unit,

上記パラ メ一夕抽出部が、 上記撮像部か ら時系列にて出力 された各画像情報毎であっ て上記複数個の各所定の領域毎に 上記パラ メ一夕 を抽出 し、 且つ、  The parameter extracting unit extracts the parameter for each of the plurality of predetermined regions for each image information output in time series from the imaging unit, and

上記画像処理部が、 上記複数個の各所定の領域毎に抽出さ れた各パラメ 一夕 を、 当該パラ メ一夕の抽出対象となっ た画 像情報に続いて入力される画像情報の、 対応する上記複数個 の各所定の領域に適用 して、 当該複数個の各所定の領域毎に 画像処理を行う よ う に構成されたものである とき、 The image processing unit converts each of the parameters extracted for each of the plurality of predetermined areas into an image from which the parameter is extracted. It is configured to be applied to each of the plurality of predetermined areas corresponding to the image information input subsequent to the image information, and to perform image processing for each of the plurality of predetermined areas. When

上記正反射検出部は、 上記撮像部か ら時系列にて出力され た複数の各画像情報における、 対応する上記複数個の各所定 の領域間での上記パラ メ 一夕の比較に基づいて、 上記正反射 を検出する よ う に構成された こ とを特徴とする ( 1 ) 記載の コー ド読取装置。  The specular reflection detection unit, based on a comparison of the parameters between each of the plurality of corresponding predetermined regions in a plurality of pieces of image information output in time series from the imaging unit, The code reader according to (1), wherein the code reader is configured to detect the regular reflection.

g|]ち、 コー ド を含む画像か ら抽出されるパ ラ メ 一夕の、 各 フ レーム間における小領域毎の変化、 即ち領域毎の時間的変 化を検出する こ とで、 正反射の検出を行う こ とができる。  g |] In other words, by detecting the change of each small area between frames, that is, the temporal change of each area, of the parameters extracted from the image including the code, the specular reflection is obtained. Can be detected.

( 1 0 ) 上記所定の領域が、 上記撮像部によ る撮像画面 内に予め複数個設定され、  (10) A plurality of the predetermined areas are set in advance in an image screen by the image pickup unit,

上記パラ メ一夕抽出部が、 上記複数個の各所定の領域毎に 上記パラ メ 一夕 を抽出 し、 且つ、  A parameter extracting unit that extracts the parameter for each of the plurality of predetermined areas; and

上記画像処理部が、 上記複数個の各所定の領域毎に抽出さ れた各パラ メ一夕 を、 対応する上記複数個の各所定の領域に 適用 して、 当該複数個の各所定の領域毎に画像処理を行う よ う に構成された ものである と き、  The image processing unit applies the parameters extracted for each of the plurality of predetermined areas to the corresponding plurality of predetermined areas, and the plurality of predetermined areas. When configured to perform image processing for each

上記正反射検出部は、 上記複数個の各所定の領域毎に抽出 された各パ ラメ 一夕か ら設定された各閾値で対応する上記複 数個の各所定の領域をそれぞれ 2 値化した と きの黒画素と 白 画素の割合に基づいて、 上記正反射を検出するよ う に構成さ れた こ と を特徴とする ( 1 ) 記載のコー ド読取装置。  The specular reflection detection unit binarizes each of the plurality of predetermined regions corresponding to each of the parameters extracted from each of the plurality of predetermined regions and each of the thresholds set from each of the predetermined regions. The code reader according to (1), wherein the specular reflection is detected based on a ratio of black pixels to white pixels.

即ち、 2 値化 した結果の白画素と黒画素の数の比だけで容 易に正反射を検出可能であ る。 In other words, only the ratio of the number of white pixels and black pixels resulting from the binarization is sufficient. Specular reflection can be easily detected.

( 1 1 ) 上記撮像部は、  (11) The imaging unit is

上記記録媒体上のコー ド を照明するための照明部と、 上記照明部によっ て照明された上記記録媒体か ら の反射光 を結像する光学系と、  An illumination unit for illuminating a code on the recording medium; an optical system for imaging reflected light from the recording medium illuminated by the illumination unit;

上記光学系によ り 結像された光を受光 して、 対応する撮像 信号を時系列にて出力する撮像素子と、  An image sensor that receives light imaged by the optical system and outputs a corresponding image signal in time series;

を含む こ と を特徴とする ( 1 ) 記載のコー ド読取装置。 即ち、 照明を利用 して常に安定した撮像状態でコー ド の撮 像を行う こ とが可能となる。  The code reader according to (1), further comprising: In other words, it is possible to take an image of the code in an always stable imaging state using the illumination.

( 1 2 ) 上記所定の領域は、 上記照明部と、 上記撮像素 子と、 上記記録媒体との位置関係に基づいて決定される、 上 記撮像素子による撮像画面内で最も正反射を生じ易い領域を 含む こ と を特徴とする ( 1 1 ) 記載のコー ド読取装置。  (12) The predetermined area is determined based on a positional relationship between the illumination unit, the imaging element, and the recording medium, and is most likely to cause regular reflection in an imaging screen of the imaging element. The code reader according to (11), wherein the code reader includes an area.

即ち、 正反射の生じ易い領域 (通常は、 撮像領域内で照明 部に近い領域) か ら、 正反射検出用のパラ メ一夕 を抽出する こ とで、 確実且つ容易に正反射を検出する こ とができる。  In other words, regular reflection is detected reliably and easily by extracting a parameter for regular reflection detection from an area where regular reflection is likely to occur (usually, an area in the imaging area close to the illumination unit). be able to.

( 1 3 ) 上記撮像部は、 さ ら に、 上記パ ラ メ 一夕抽出部 で抽出されたパラ メ一夕 に基づいて、 上記照明部による照明 光量を制御する照明制御部を含むこ と を特徴とする ( 1 1 ) 記載のコー ド読取装置。  (13) The imaging unit further includes an illumination control unit that controls the amount of illumination by the illumination unit based on the parameters extracted by the parameter extraction unit. The code reader according to (11), characterized in that:

即ち、 正反射に起因 して抽出される誤っ たパラ メ一夕 に基 づいた不適切な照明状態でコー ド を撮像する こ と を防止する こ とができる。  That is, it is possible to prevent the code from being imaged in an inappropriate lighting state based on an erroneous parameter extracted due to the regular reflection.

( 1 4 ) 上記画像処理部は、 上記撮像部で撮像された上 記コー ド を含む画像の所定の領域毎に 2 値化処理を行う 2 値 化部を含み、 (14) The image processing unit is configured to take an image A binarization unit that performs a binarization process for each predetermined region of the image including the code,

上記パラ メ 一夕抽出部で抽出されるパラ メ一夕 は、 上記 2 値化処理に用 い られるパ ラ メ ータ であ る こ と を特徴 とする ( 1 ) 乃至 ( 1 3 ) の何れかに記載のコー ド読取装置。  Any of (1) to (13), wherein the parameters extracted by the parameter extraction section are parameters used for the binarization processing. A code reader according to any of the above.

即ち、 正反射が生じた場合でも、 適切な 2 値化パラ メ 一夕 を設定する こ とが可能で、 不適切な 2 値化パラ メ一夕設定に よ る、 2 値化不良やデータ読み取 り エラーを低減する こ とが できる。  In other words, even if specular reflection occurs, it is possible to set an appropriate binarization parameter, and due to improper binarization parameter setting, a binarization failure or data reading may occur. Errors can be reduced.

産業上の利用可能性 Industrial applicability

本発明によれば、 コー ド読取装置において、 音声データ、 画像デ一夕、 テキス トデータ、 ある いはコ ン ピュータが取 り 扱う こ とのできるデータが光学的に読み取 り 可能なコー ド と し て記録さ れた記録媒体か ら その コ ー ド を読み取 り 、 その データ を復元する こ とができるので、 一般的な物流の分野だ けでな く 、 I Dカー ド、 ゲーム、 教育、 等々 、 様々 の分野に おいて様々 な利用形態が期待できる。  According to the present invention, in a code reading device, audio data, image data, text data, or data that can be handled by a computer can be optically readable. It can read the code from the recorded media and restore the data, so it can be used not only for general logistics but also for ID cards, games, education, etc. Various usage forms can be expected in various fields.

Claims

請 求 の 範 囲 The scope of the claims 1 . データが光学的に読み取 り 可能なコー ドで記録され た記録媒体か ら、 前記コー ド を光学的に読み取る コー ド読取 装置において、  1. In a code reading device that optically reads data from a recording medium on which data is recorded with an optically readable code, 前記コー ド を撮像する撮像部と、  An imaging unit for imaging the code; 前記撮像部で撮像された前記コー ド を含む画像の所定の領 域か ら、 当該領域の輝度に関するパラ メ一夕 を抽出するパラ メータ抽出部と、  A parameter extraction unit that extracts, from a predetermined region of an image including the code captured by the imaging unit, a parameter related to luminance of the region, 前記パラメ一夕抽出部で抽出されたパラ メ一夕を用いて、 前記コー ド を含む画像の対応する前記所定の領域に対して画 像処理を行う 画像処理部と、  An image processing unit that performs image processing on the corresponding predetermined area of the image including the code using the parameter extraction extracted by the parameter extraction unit; 前記画像処理部で画像処理された前記コー ド を含む画像か ら、 前記データ を読み取るデータ読取部と、  A data reading unit configured to read the data from an image including the code processed by the image processing unit; 前記パラメータ抽出部で抽出されたパラ メ一夕 に基づいて、 前記コー ドを含む画像の対応する前記所定の領域か ら正反射 を検出する正反射検出部と、  A regular reflection detection unit that detects regular reflection from the corresponding predetermined region of the image including the code based on the parameter extracted by the parameter extraction unit; を具備する こ と を特徴とする コー ド読取装置。  A code reader characterized by comprising: 2 . 前記正反射検出部で正反射が検出された前記所定の 領域か ら の前記パラ メ一夕 を無効化するパラ メータ無効化部 を更に具備する こ とを特徴とする請求項 1 記載のコー ド読取  2. The apparatus according to claim 1, further comprising a parameter invalidating section for invalidating the parameter from the predetermined area in which the regular reflection is detected by the regular reflection detecting section. Code reading 3 . 前記パラ メ一夕無効化部によ り 無効化された前記パ ラ メ一夕 に、 予め規定された方法に従って求め られた別のパ ラ メ一夕 を代用するパラメ一夕代用部を更に具備する こ と を 特徴とする請求項 2 記載のコ ー ド読取装置。 3. In addition to the parameter set invalidated by the parameter set invalidating section, a parameter set substitute section for substituting another parameter set obtained in accordance with a predetermined method is used. 3. The code reader according to claim 2, further comprising: 4 . 前記所定の領域が、 前記撮像部による撮像画面内に 予め複数個設定され、 4. A plurality of the predetermined areas are set in advance in an image screen of the imaging unit, 前記パラ メ一夕抽出部が、 前記複数個の各所定の領域毎に 前記パ ラメ一夕 を抽出 し、 且つ、  The parameter extraction unit extracts the parameter extraction for each of the plurality of predetermined regions; and 前記画像処理部が、 前記複数個の各所定の領域毎に抽出さ れた各パラ メ ータ を、 対応する前記複数個の各所定の領域に 適用 して、 当該複数個の各所定の領域毎に画像処理を行う よ う に構成されたものである とき、  The image processing unit applies each parameter extracted for each of the plurality of predetermined regions to a corresponding one of the plurality of predetermined regions, and When it is configured to perform image processing for each 前記パラ メ一夕代用部は、 前記正反射検出部で正反射が検 出された前記所定の領域か ら の前記パラ メ一夕 に、 当該所定 の領域に隣接する所定の領域か ら抽出された前記パラ メ一夕 を代用するよ う に構成された こ とを特徴とする請求項 3 記載 のコー ド読取装置。  The parameter overnight substituting unit is extracted from a predetermined area adjacent to the predetermined area in the parameter from the predetermined area in which the specular reflection is detected by the specular reflection detecting unit. The code reading device according to claim 3, wherein the code reading device is configured to substitute the parameter set. 5 . 前記撮像部が、 前記記録媒体との間で相対的に移動 しなが ら前記コー ド を連続的に撮像して、 当該各撮像に対応 した画像情報を時系列にて出力する よ う に構成され、  5. The imaging unit continuously captures the code while relatively moving with the recording medium, and outputs time-series image information corresponding to each of the captures. Is composed of 前記パラ メ一夕抽出部が、 前記撮像部か ら時系列にて出力 された各画像情報の所定の領域か ら前記パラ メ一夕 を抽出 し、 且つ、  The parameter extracting unit extracts the parameter from a predetermined area of each image information output in time series from the imaging unit; and 前記画像処理部が、 前記各画像情報の所定の領域か ら抽出 された各パラ メ一夕 を、 当該パラ メ一夕の抽出対象となっ た 画像情報に続いて入力される画像情報の対応する前記所定の 領域に適用 して、 当該画像情報の所定の領域に対 して画像処 理を行う よ う に構成されたものである とき、  The image processing unit converts each parameter extracted from a predetermined area of each image information into a parameter corresponding to the image information input subsequent to the image information from which the parameter was extracted. When configured to perform image processing on a predetermined area of the image information by applying to the predetermined area, 前記パラ メ一夕代用部は、 前記正反射検出部で正反射が検 出された前記所定の領域か ら の前記パラ メ一夕 に、 当該パラ メータの抽出対象となっ た画像情報よ り 以前に入力された画 像情報の、 対応する前記所定の領域か ら抽出された前記パラ メータ を代用する よ う に構成された こ と を特徴とする請求項 3 記載のコー ド読取装置。 The parameter overnight section detects regular reflection in the regular reflection detection section. At the same time, the parameters from the given predetermined area are extracted from the corresponding predetermined areas of the image information input before the image information from which the parameters were extracted. 4. The code reader according to claim 3, wherein said code reading device is configured to substitute said parameter. 6 . 前記撮像部が、 前記記録媒体との間で相対的に移動 しながら前記コ ー ド を連続的に撮像して、 当該各撮像に対応 した画像情報を時系列にて出力する よ う に構成され、  6. The image capturing unit continuously captures the code while relatively moving with the recording medium, and outputs time-series image information corresponding to each of the captures. Composed, 前記所定の領域が、 前記撮像部による撮像画面内に予め複 数個設定され、  A plurality of the predetermined areas are set in advance in an image screen by the image pickup unit, 前記パラ メ一夕抽出部が、 前記撮像部か ら時系列にて出力 された各画像情報毎であって前記複数個の各所定の領域毎に 前記パラ メ一夕 を抽出 し、 且つ、  The parameter extracting unit extracts the parameter for each of the plurality of predetermined regions for each image information output in time series from the imaging unit; and 前記画像処理部が、 前記複数個の各所定の領域毎に抽出さ れた各パラ メ一夕 を、 当該パラ メ一夕の抽出対象となっ た画 像情報に続いて入力される画像情報の、 対応する前記複数個 の各所定の領域に適用 して、 当該複数個の各所定の領域毎に 画像処理を行う よ う に構成されたものである とき、  The image processing unit converts each of the parameters extracted for each of the plurality of predetermined regions into image information that is input subsequent to the image information from which the parameter was extracted. When applied to each of the plurality of predetermined areas corresponding to the plurality of predetermined areas, the image processing is performed for each of the plurality of predetermined areas. 前記パラ メ一夕代用部は、 前記正反射検出部で正反射が検 出された前記所定の領域か らの前記パラ メ一夕 に、 当該パラ メータの抽出対象となっ た画像情報よ り 以前に入力された画 像情報の、 対応する前記所定の領域か ら抽出された前記パラ メ一夕 を代用するよ う に構成された こ と を特徴とする請求項 3 記載のコー ド読取装置。  The parameter-substituting unit includes, before the parameter information from the predetermined area in which specular reflection is detected by the specular-reflection detecting unit, before the image information from which the parameter is extracted. 4. The code reading apparatus according to claim 3, wherein the parameter information extracted from the corresponding predetermined area of the image information input in step (b) is substituted. 7 . 前記所定の領域が、 前記撮像部による撮像画面内に 予め複数個設定され、 7. The predetermined area is within an image screen of the imaging unit. Pre-set multiple, 前記パ ラ メ一夕抽出部が、 前記複数個の各所定の領域毎に 前記パラ メ一夕 を抽出 し、 且つ、  The parameter extracting unit extracts the parameter extracting for each of the plurality of predetermined regions; and 前記画像処理部が、 前記複数個の各所定の領域毎に抽出さ れた各パ ラ メ一夕 を、 対応する前記複数個の各所定の領域に 適用 して、 当該複数個の各所定の領域毎に画像処理を行う よ う に構成されたものである とき、  The image processing unit applies each parameter extracted for each of the plurality of predetermined areas to each of the plurality of predetermined areas corresponding to the plurality of predetermined areas. When it is configured to perform image processing for each area, 前記正反射検出部は、 前記複数個の各所定の領域毎に抽出 された各パラ メ一夕間の比較に基づいて、 前記正反射を検出 する よ う に構成された こ とを特徴とする請求項 1 記載のコー ド読取装置。  The specular reflection detection unit is configured to detect the specular reflection based on a comparison between each parameter extracted for each of the plurality of predetermined regions. The code reader according to claim 1. 8 . 前記撮像部が、 前記記録媒体との間で相対的に移動 しながら前記コー ド を連続的に撮像して、 当該各撮像に対応 した画像情報を時系列にて出力するよ う に構成され、  8. The imaging unit is configured to continuously capture images of the code while relatively moving with the recording medium, and output image information corresponding to each of the captured images in time series. And 前記パ ラ メ一夕抽出部が、 前記撮像部か ら時系列にて出力 された各画像情報の所定の領域か ら前記パラ メ 一夕 を抽出 し、 且つ、  The parameter extracting unit extracts the parameter from a predetermined area of each image information output in time series from the imaging unit; and 前記画像処理部が、 前記各画像情報の所定の領域か ら抽出 された各パラ メ 一夕 を、 当該パラ メ一夕の抽出対象となっ た 画像情報に続いて入力される画像情報の対応する前記所定の 領域に適用 して、 当該画像情報の所定の領域に対して画像処 理を行う よ う に構成されたものである とき、  The image processing unit converts each parameter extracted from a predetermined area of the image information into a corresponding one of the image information input subsequent to the image information from which the parameter was extracted. When configured to apply image processing to a predetermined area of the image information by applying to the predetermined area, 前記正反射検出部は、 前記撮像部か ら時系列にて出力され た複数の各画像情報における、 対応する前記所定の領域間で の前記パラ メ一夕の比較に基づいて、 前記正反射を検出する よ う に構成された こ と を特徴とする請求項 1 記載のコー ド読 取装置。 The specular reflection detection unit detects the specular reflection based on a comparison of the parameters between the corresponding predetermined areas in a plurality of pieces of image information output in time series from the imaging unit. To detect The code reading device according to claim 1, wherein the code reading device is configured as described above. 9 . 前記撮像部が、 前記記録媒体との間で相対的に移動 しながら前記コー ドを連続的に撮像して、 当該各撮像に対応 した画像情報を時系列にて出力する よ う に構成され、  9. The imaging unit is configured to continuously image the code while relatively moving with the recording medium, and to output image information corresponding to each of the imagings in time series. And 前記所定の領域が、 前記撮像部による撮像画面内に予め複 数個設定され、  A plurality of the predetermined areas are set in advance in an image screen by the image pickup unit, 前記パラ メ一夕抽出部が、 前記撮像部か ら時系列にて出力 された各画像情報毎であって前記複数個の各所定の領域毎に 前記パラ メ一夕 を抽出し、 且つ、  The parameter extracting unit extracts the parameter for each of the plurality of predetermined regions for each image information output in time series from the imaging unit; and 前記画像処理部が、 前記複数個の各所定の領域毎に抽出さ れた各パ ラメ一夕 を、 当該パラ メ一夕の抽出対象となった画 像情報に続いて入力される画像情報の、 対応する前記複数個 の各所定の領域に適用 して、 当該複数個の各所定の領域毎に 画像処理を行う よ う に構成されたものである とき、  The image processing unit converts each of the parameters extracted for each of the plurality of predetermined regions into image information input subsequent to the image information from which the parameter was extracted. When applied to each of the plurality of predetermined areas corresponding to the plurality of predetermined areas, the image processing is performed for each of the plurality of predetermined areas. 前記正反射検出部は、 前記撮像部か ら時系列にて出力され た複数の各画像情報における、 対応する前記複数個の各所定 の領域間での前記パラ メータの比較に基づいて、 前記正反射 を検出するよ う に構成された こ と を特徴とする請求項 1 記載 のコー ド読取装置。  The specular reflection detection unit, based on a comparison of the parameters between the corresponding plurality of predetermined regions in the plurality of pieces of image information output in time series from the imaging unit, The code reader according to claim 1, wherein the code reader is configured to detect reflection. 1 0 . 前記所定の領域が、 前記撮像部による撮像画面内 に予め複数個設定され、  10. A plurality of the predetermined areas are set in advance in an image screen of the image pickup unit, 前記パラメ一夕抽出部が、 前記複数個の各所定の領域毎に 前記パラ メ一夕 を抽出 し、 且つ、  The parameter extracting unit extracts the parameter for each of the plurality of predetermined regions; and 前記画像処理部が、 前記複数個の各所定の領域毎に抽出さ れた各パラ メ一夕 を、 対応する前記複数個の各所定の領域に 適用 して、 当該複数個の各所定の領域毎に画像処理を行う よ う に構成されたものである とき、 The image processing unit is configured to extract each of the plurality of predetermined regions. Applying each of the obtained parameters to the corresponding plurality of predetermined areas, and performing image processing for each of the plurality of predetermined areas. 前記正反射検出部は、 前記複数個の各所定の領域毎に抽出 された各パラ メ一夕か ら設定された各閾値で対応する前記複 数個の各所定の領域をそれぞれ 2 値化したときの黒画素と 白 画素の割合に基づいて、 前記正反射を検出する よ う に構成さ れた こ とを特徴とする請求項 1 記載のコー ド読取装置。  The specular reflection detection unit binarizes each of the plurality of predetermined regions corresponding to each threshold set from each parameter extracted for each of the plurality of predetermined regions. 2. The code reader according to claim 1, wherein the specular reflection is detected based on a ratio of black pixels to white pixels at that time. 1 1 . 前記撮像部は、  1 1. The imaging unit 前記記録媒体上のコー ドを照明するための照明部と、 前記照明部によって照明された前記記録媒体か らの反射光 を結像する光学系と、  An illumination unit for illuminating a code on the recording medium; an optical system for imaging reflected light from the recording medium illuminated by the illumination unit; 前記光学系によ り 結像された光を受光して、 対応する撮像 信号を時系列にて出力する撮像素子と、  An image sensor that receives light imaged by the optical system and outputs a corresponding image signal in time series; を含むこ と を特徴とする請求項 1 記載のコー ド読取装置。 The code reader according to claim 1, further comprising: 1 2 . 前記所定の領域は、 前記照明部と、 前記撮像素子 と、 前記記録媒体との位置関係に基づいて決定される、 前記 撮像素子による撮像画面内で最も正反射を生じ易い領域を含 む こ と を特徴とする請求項 1 1 記載のコー ド読取装置。 12. The predetermined area includes an area, which is determined based on a positional relationship among the illumination unit, the image sensor, and the recording medium, and is most likely to cause regular reflection in an image captured by the image sensor. The code reader according to claim 11, characterized in that: 1 3 . 前記撮像部は、 さ ら に、 前記パラ メータ抽出部で 抽出されたパラ メ一夕 に基づいて、 前記照明部による照明光 量を制御する照明制御部を含むこ と を特徴とする請求項 1 1 記載のコー ド読取装置。  13. The imaging unit further includes an illumination control unit that controls the amount of illumination light by the illumination unit based on the parameters extracted by the parameter extraction unit. The code reader according to claim 11. 1 4 . 前記画像処理部は、 前記撮像部で撮像された前記 コー ド を含む画像の所定の領域毎に 2 値化処理を行う 2 値化 部を含み、 14. The image processing unit performs a binarization process for each predetermined area of an image including the code captured by the imaging unit. Part, 前記パラ メ一夕抽出部で抽出されるパラ メ一夕は、 前記 2 値化処理に用 い られるパラ メ一夕である こ とを特徴とする請 求項 1 記載のコー ド読取装置。  The code reading device according to claim 1, wherein the parameter extraction extracted by the parameter extraction unit is a parameter extraction used for the binarization processing.
PCT/JP2002/012328 2001-11-30 2002-11-26 Code reading apparatus Ceased WO2003046804A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU2002349509A AU2002349509A1 (en) 2001-11-30 2002-11-26 Code reading apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2001-367606 2001-11-30
JP2001367606A JP3911411B2 (en) 2001-11-30 2001-11-30 Code reader

Publications (1)

Publication Number Publication Date
WO2003046804A1 true WO2003046804A1 (en) 2003-06-05

Family

ID=19177327

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2002/012328 Ceased WO2003046804A1 (en) 2001-11-30 2002-11-26 Code reading apparatus

Country Status (3)

Country Link
JP (1) JP3911411B2 (en)
AU (1) AU2002349509A1 (en)
WO (1) WO2003046804A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8767007B2 (en) 2008-10-22 2014-07-01 Hewlett-Packard Development Company, L.P. Processing images of a display

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4538717B2 (en) * 2004-02-20 2010-09-08 ノーリツ鋼機株式会社 Photo printing device
JP4572871B2 (en) * 2006-05-29 2010-11-04 株式会社デンソーウェーブ Optical information reader
JP5644633B2 (en) * 2011-03-30 2014-12-24 株式会社デンソーウェーブ Optical information reader
KR102331687B1 (en) * 2020-11-26 2021-12-01 (주)딥인사이트 Optical device, and driving method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08129597A (en) * 1994-09-07 1996-05-21 Alps Electric Co Ltd Optical reader
JPH09179930A (en) * 1995-12-25 1997-07-11 Olympus Optical Co Ltd Information reproduction system, information recording medium, and information recording device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3523705B2 (en) * 1995-03-16 2004-04-26 オリンパス株式会社 Information reproduction system
JP3523710B2 (en) * 1995-04-04 2004-04-26 オリンパス株式会社 Information reproduction system, recording medium, recording device, and recording method
JP3228197B2 (en) * 1997-10-15 2001-11-12 株式会社デンソー Optical information reader and recording medium
JPH11219405A (en) * 1998-02-02 1999-08-10 Olympus Optical Co Ltd Information reproducing system
JP4128307B2 (en) * 1999-06-22 2008-07-30 オリンパス株式会社 Code image reader

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08129597A (en) * 1994-09-07 1996-05-21 Alps Electric Co Ltd Optical reader
JPH09179930A (en) * 1995-12-25 1997-07-11 Olympus Optical Co Ltd Information reproduction system, information recording medium, and information recording device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8767007B2 (en) 2008-10-22 2014-07-01 Hewlett-Packard Development Company, L.P. Processing images of a display

Also Published As

Publication number Publication date
JP2003168070A (en) 2003-06-13
JP3911411B2 (en) 2007-05-09
AU2002349509A1 (en) 2003-06-10

Similar Documents

Publication Publication Date Title
US6993211B2 (en) Code reader
EP1519298B1 (en) Symbol-controlled image data reading system
JP3312948B2 (en) Original platen dirt or scratch area compensation method and image reproducing apparatus
US6364209B1 (en) Data reading apparatus
JPH0869534A (en) Method and equipment for detection of image quality
WO2003046804A1 (en) Code reading apparatus
JP3814988B2 (en) Two-dimensional code reader
JP2003156451A (en) Defect detection device
EP2419019B1 (en) Apparatus and method for virtual flaw removal from x-ray sensitive plates
JP4194210B2 (en) Image reading apparatus and method for controlling image reading apparatus
JP3943739B2 (en) Image scanner
JP2000206052A (en) Defect inspection device, defect inspection method, and storage medium
JP4447464B2 (en) Method for determining regions of interest in skin-pattern images
JPH1115911A (en) Information reproduction system
JP3281786B2 (en) Braille copying machine
JP2001016446A (en) Image reader
JP5825110B2 (en) Two-dimensional code reader
US20090015697A1 (en) System and method for scene change triggering
JP3264547B2 (en) Micro film reader and image reading method thereof
JP2000115465A (en) Image reading apparatus, image reading method, and storage medium
JP2005020174A (en) Optical information read method
JPH09185317A (en) Braille recognition system
JPS6262391B2 (en)
JP2000040120A (en) Code image quality inspection device
JPS63294066A (en) Manual scan speed detecting circuit for manual image input device

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AU CA US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): DE FR GB

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase