Image reading device, image reading control method and program

The image reading device automatically generates shading correction data using a white and black reference to adapt to varying object reflectance, ensuring consistent image quality without interrupting the reading process, thus addressing non-uniform brightness issues in industrial settings.

JP2024164878AActive Publication Date: 2024-11-28NEC PLATFROMS LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023080563
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2024-11-28
Estimated Expiration
2043-05-16

AI Technical Summary

Technical Problem

Existing image reading devices struggle with non-uniform brightness due to uneven illuminance caused by LED elements, which conventional shading correction methods fail to address effectively, especially in industrial settings where objects with varying reflectance are read continuously.

Method used

An image reading device generates general-purpose shading correction data by reading a white and black reference while all light sources are on, determining a reading pair based on the diffusion states of reflected light, and applies this data during image reading without interrupting the process.

Benefits of technology

This method allows for automatic generation and application of shading correction data, adapting to variations in object reflectance without halting the reading process, improving image quality and reducing equipment costs by enabling flexible handling of multiple object types on a single manufacturing line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024164878000001_ABST
    Figure 2024164878000001_ABST
Patent Text Reader

Abstract

To provide a method for automatically generating and switching shading correction data.SOLUTION: An image reading device that generates general-purpose shading correction data by reading an image using a white reference and a black reference, while all of a plurality of light sources are kept turned on, comprises: first acquisition means configured to acquire a diffusion state of first reflected light generated by emitting light from a specific light source while the image using the white reference and the black reference is read; second acquisition means configured to acquire a diffusion state of second reflected light generated by emitting light from the specific light source, to an image reading target; generation means configured to generate reading target shading correction data depending on the reading target; and reading means configured to reads the image by using the reading target shading correction data, while light from all of the plurality of light sources is emitted to the reading target.SELECTED DRAWING: Figure 12
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image reading apparatus, an image reading control method, and a program. [Background technology]

[0002] In image reading devices such as line cameras and line scanners that have illumination, lenses, and image sensors such as CCDs, the brightness values ​​of pixels in a read image may become non-uniform due to uneven illuminance of the light source caused by brightness differences between LED (Light Emitting Diode) elements. Figure 11(a) shows an example of such a read image. In order to eliminate the non-uniformity of brightness values ​​in the read image, shading correction is generally performed. Figure 11(b) shows an example of a read image after shading correction has been performed.

[0003] The image reading device installed in a general multifunction printer has a white reference and a black reference placed inside the housing, and reacquires shading correction data each time it reads, or when it is turned on or at regular intervals. However, even if the same light source is used, the unevenness of the illuminance varies depending on the reflectance of the object to be read and the arrangement of the lighting, so there are cases where the shading correction data based on a specific white reference and black reference alone cannot fully correct the unevenness. In response to this, for example, Patent Document 1 discloses a technology for performing shading correction that flexibly responds to the variation in the diffusion characteristics of the reflected light on the surface of the object to be read.

[0004] In addition, when the reading conditions change, such as deterioration of the illuminance of the light source, changes in the brightness setting and arrangement, or changes in the reading target, it is preferable to perform shading correction by reading the white and black references for shading correction and reacquiring the shading correction data. For example, in a production line that handles multiple types of reading targets, it is necessary to acquire and change the correction data each time the reading target is changed. However, in an image reading device used for industrial purposes, the production line is always in operation, and there are often no times when the white and black references can be placed each time an image is read. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2021-103873 A Summary of the Invention [Problem to be solved by the invention]

[0006] There is a need for a method for automatically generating and switching shading correction data without interrupting the image reading process of the reading target in order to obtain the shading correction data.

[0007] SUMMARY OF THE PRESENT DISCLOSURE An object of the present invention is to provide an image reading apparatus, an image reading control method, and a program that solve the above-mentioned problems. [Means for solving the problem]

[0008] According to one aspect of the present invention, an image reading device generates general-purpose shading correction data by reading an image using a white reference and a black reference with all of a plurality of light sources turned on, and is equipped with a first acquisition means for acquiring a diffusion state of a first reflected light generated by irradiating light from a specific light source among the plurality of light sources in a state in which image reading using the white reference and the black reference is performed, a second acquisition means for acquiring a diffusion state of a second reflected light generated by irradiating light from the specific light source in a state in which reading of an image reading target is performed, a generation means for generating shading correction data for the reading target that is dependent on the reading target based on the diffusion state of the first reflected light, the diffusion state of the second reflected light, and the general-purpose shading correction data, and a reading means for performing image reading using the shading correction data for the reading target while irradiating light from all of the plurality of light sources in a state in which reading of the image reading target is performed.

[0009] According to one aspect of the present invention, an image reading control method generates general-purpose shading correction data by reading an image using a white reference and a black reference with all of a plurality of light sources turned on, and in a state where the image reading is performed using the white reference and the black reference, obtains a diffusion state of a first reflected light generated by irradiating light from a specific light source among the plurality of light sources, and in a state where the image reading target is performed, obtains a diffusion state of a second reflected light generated by irradiating light from the specific light source, and generates shading correction data for the reading target that is dependent on the reading target based on the diffusion state of the first reflected light, the diffusion state of the second reflected light, and the general-purpose shading correction data, and in a state where the image reading target is performed, performs image reading using the shading correction data for the reading target while irradiating light from all of the plurality of light sources.

[0010] According to one aspect of the present invention, a program causes a computer to generate general-purpose shading correction data by reading an image using a white reference and a black reference with all of a plurality of light sources turned on, and in a state where the image is read using the white reference and the black reference, obtain a diffusion state of a first reflected light generated by irradiating light from a specific light source among the plurality of light sources, and in a state where the image is read, obtain a diffusion state of a second reflected light generated by irradiating light from the specific light source, and generate shading correction data for the read object that is dependent on the read object based on the diffusion state of the first reflected light, the diffusion state of the second reflected light, and the general shading correction data, and in a state where the image is read, perform a process of reading the image using the shading correction data for the read object while irradiating light from all of the plurality of light sources. Effect of the Invention

[0011] According to the present invention, shading correction data can be generated automatically without interrupting the image reading process of the image to be read. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 is a diagram illustrating an example of an image scanner including an image reading device according to an embodiment. [Diagram 2] FIG. 1 is a diagram illustrating an example of a structure of an image reading apparatus according to an embodiment. [Diagram 3] FIG. 2 is a block diagram showing an example of functions of the image reading apparatus according to the embodiment. [Figure 4] 1A and 1B are diagrams illustrating an example of a structure of a light source module according to an embodiment. [Diagram 5] FIG. 13 is a diagram showing an example of a reference single light source lighting pattern according to the embodiment. [Figure 6] 11A and 11B are diagrams illustrating an example of a lighting pattern of a separate light source for a reading object according to the embodiment. [Figure 7] 6 is a diagram showing an example of general-purpose shading correction data according to the embodiment; FIG. [Figure 8] 6 is a diagram showing an example of shading correction data for a reading object according to the embodiment; FIG. [Figure 9] 10 is a flowchart illustrating an example of a preparation process according to the embodiment. [Figure 10] 10 is a flowchart illustrating an example of a generation process of shading correction data according to the embodiment. [Figure 11] FIG. 11 is a diagram illustrating shading correction. [Figure 12] FIG. 1 is a block diagram showing a configuration of an image reading apparatus having a minimum configuration. [Figure 13] FIG. 11 is a flow chart showing the operation of an image reading apparatus having a minimum configuration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, an image reading device according to each embodiment of the present invention will be described with reference to the drawings. In the drawings used in the following description, the configuration of parts that are not related to the present invention may be omitted or not illustrated.

[0014] <Embodiment> (composition) FIG. 1 is a diagram showing an example of an image scanner including an image reading device according to an embodiment. 1, the image scanner 1 includes an image reading device 10, a read object 20, and a read object conveying system 30. The image reading device 10 photographs the read object 20 conveyed by the read object conveying system 30 from above, and outputs a read image of the read object 20. The read object 20 is, for example, various types of paper, cloth, metal plate, etc.

[0015] FIG. 2 is a diagram illustrating an example of a structure of the image reading device according to the embodiment. Fig. 2(a) shows a side view of image scanner 1 including an image reading device, and Fig. 2(b) shows a front view of image scanner 1 including an image reading device. In the following explanation, for convenience of explanation, XYZ coordinate space is appropriately shown in the drawings. Fig. 2(a) is a YZ plane view of image scanner 1 viewed in the positive direction of the X axis, and Fig. 2(b) is an XZ plane view of image scanner 1 viewed in the positive direction of the Y axis.

[0016] The image reading device 10 includes a control board 100, a light source module 11 such as an LED, a CCD (Charge-Coupled Device) 12, a lens 13, two mirrors 14, and a cover glass 15. The light source module 11 may be installed outside the image reading device 10.

[0017] The control board 100 has a function of controlling the overall operation of the image reading device 10, and controls the light source module 11 and the CCD 12. Details of the control board 100 will be described later with reference to FIG.

[0018] 2, the main optical components such as the light source module 11, CCD 12, lens 13, mirror 14, and cover glass 15 are arranged and fixed in a main structural zone in the image reading device 10 to form a reading optical path. When the light source module 11 irradiates light to the reading target 20, the reflected light generated on the surface of the reading target 20 passes through the cover glass 15 and is input to the lens 13 via the two mirrors 14, and an image is formed on the CCD 12 by the lens 13. Note that the image reading device 10 may not include the mirror 14, in which case the reflected light passes through the cover glass 15 and is input to the lens 13.

[0019] In addition, the light source module 11, the CCD 12, the lens 13, the mirror 14, the cover glass 15, and the reflected light reading optical path formed by these components have a depth in the X-axis direction. The CCD 12 is a line image sensor or an area image sensor, and acquires reflected light at each X coordinate value in the X-axis direction or each XY coordinate value on the XY plane. The CCD 12 outputs an analog signal representing the input reflected light as image data 200 for each X coordinate value or each XY coordinate value to the control board 100. As will be described later, in this embodiment, a single light source acquisition area 201 and an image reading area 202 are cut out from the image data 200 output by the CCD 12, shading correction data is generated using the single light source acquisition area 201, and shading correction is performed on the image reading area 202.

[0020] The image scanner 1 has a shading correction function using a white reference and a black reference, and for example, has a white reference board and a black reference board (not shown) built in. The image reading device 10 generates general-purpose shading correction data 153 by this shading correction function. The general-purpose shading correction data 153 is shading correction data generated by a general image reading device. The image reading device 10 stores the generated general-purpose shading correction data 153 in the memory area 150.

[0021] FIG. 3 is a block diagram showing an example of functions of the image reading apparatus according to the embodiment. 3, the control board 100 is connected to the light source module 11 and the CCD 12. The control board 100 includes a light source control circuit 110, an AFE (Analog Front End) 120, an image control circuit 130, an external I / F 140, and a storage area 150.

[0022] The light source control circuit 110 controls the light source module 11 to control the luminance and the lighting pattern of the light source. FIG. 4(a) shows an example of the structure of the light source module 11 according to this embodiment. The light source module 11 includes an LED board 111, a plurality of LED elements 112, a diffusion plate 113, and an LED lighting housing 114. The LED board 111 is a printed board on which a transmission path of a control signal from the light source control circuit 110 to the LED elements 112 is wired. The plurality of LED elements 112 are arranged side by side in the X-axis direction on the LED board 111. Note that the light emitting element included in the light source module 11 is not limited to the LED element 112, and other light emitting elements may be included. The light emitted by the LED element 112 is irradiated to the reading target 20 via the diffusion plate 113. The light source control circuit 110 may control the light amount of the LED element 112 by, for example, pulse width modulation (PWM) control or current value control.

[0023] The light source module 11 may control the lighting of one LED element 112 as illustrated in FIG. 4(b), or may control the lighting of multiple LED elements 112 as illustrated in FIG. 4(c). The light source control circuit 110 controls the lighting of the LED elements 112 for each minimum unit block of the LED elements 112. For example, in the case of FIG. 4(b), the light source control circuit 110 can cause only one specific LED element 112 to emit light, and in the example shown in FIG. 4(c), the light source control circuit 110 can cause only three specific LED elements 112 to emit light. Note that, although three elements are used as the unit of lighting control in FIG. 4(c), the number of LED elements 112 in the minimum unit block that can be controlled to light is not limited to three.

[0024] The light source control circuit 110 lights up all the LED elements 112 of the light source module 11 in the process in which the image reading device 10 generates general-purpose shading correction data 153. The light source control circuit 110 lights up specific LED elements 112, which are unit blocks of lighting control, in the process in which the image reading device 10 acquires a reference diffusion pattern of reflected light (referred to as a reference individual light source lighting pattern 151) and a diffusion pattern of reflected light of the reading target 20 (referred to as a reading target individual light source lighting pattern 152), which will be described later.

[0025] The AFE 120 converts the analog signal representing the reflected light input from the CCD 12 into a digital signal, and inputs the digital signal to the image control circuit 130 .

[0026] The image control circuit 130 cuts out a specific area of ​​the image data 200 output by the CCD 12 as a single light source acquisition area 201, and uses it to generate a single light source lighting pattern 152 for a reading target. Then, the image control circuit 130 cuts out another specific area of ​​the image data 200 as an image reading area 202, performs image correction on the image reading area 202, and outputs it to an external device via the external I / F 140. Shading correction is included in the image correction.

[0027] When the image scanner 1 is set to read an image using a white reference and a black reference, the image control circuit 130 acquires a signal representing reflected light generated by turning on a specific LED element 112 by the light source control circuit 110 via the CCD 12 and the AFE 120. The image control circuit 130 acquires the signal for each X coordinate value as a reference individual light source lighting pattern 151, and stores the acquired reference individual light source lighting pattern 151 in the memory area 150.

[0028] FIG. 5 illustrates a graph showing the reference single light source lighting pattern 151. The horizontal axis of the graphs in FIG. 5(a) and FIG. 5(b) represents the X-coordinate value at which the CCD 12 acquires the reflected light, and the vertical axis represents the brightness of the reflected light acquired by the CCD 12. In the graph in FIG. 5(a), the X-coordinate value at which the brightness of the reflected light is maximum corresponds to the X-coordinate value at which the specific LED element 112 that is lit is located. Since the reflected light is diffused on the reflecting surface, the graph showing the reference single light source lighting pattern 151 shows a mountain shape as illustrated in FIG. 5(a). The image control circuit 130 normalizes the reference single light source lighting pattern 151 illustrated in FIG. 5(a) so that the maximum brightness of the reflected light acquired by the CCD 12 is "1".

[0029] 5(b) shows the reference single light source lighting pattern 151 after normalization. The image control circuit 130 calculates L_ref1, which represents the width of the range of X coordinate values ​​in which the luminance of reflected light is equal to or greater than a predetermined threshold value 1, in the normalized reference single light source lighting pattern 151. The image control circuit 130 calculates L_ref2, which represents the width of the range of X coordinate values ​​in which the luminance of reflected light is equal to or greater than a predetermined threshold value 2, in the normalized reference single light source lighting pattern 151. However, threshold value 2 is smaller than threshold value 1.

[0030] In a state where a reading target 20 whose image is to be read by the image scanner 1 is placed, the image control circuit 130 acquires a signal representing reflected light generated by turning on a specific LED element 112 by the light source control circuit 110 via the CCD 12 and the AFE 120. The image control circuit 130 acquires the signal for each X coordinate value in the individual light source acquisition area 201 as an individual light source lighting pattern 152 for the reading target, and stores the acquired individual light source lighting pattern 152 for the reading target in the memory area 150.

[0031] FIG. 6 illustrates a graph showing the reference single light source lighting pattern 151. The horizontal and vertical axes in the graphs illustrated in FIG. 6(a) and FIG. 6(b) are as described above with reference to FIG. 5(a) and FIG. 5(b). In this graph, the X coordinate value at which the luminance of the reflected light is maximum is as described above with reference to FIG. 5(a). Since the reflected light is diffused on the reflecting surface (surface of the object to be read 20), the graph showing the single light source lighting pattern 152 for the object to be read also shows a mountain shape as illustrated in FIG. 6(a) like the graph illustrated in FIG. 5(a). (In other words, the area where the mountain shape of FIG. 6(a) is obtained when only a specific light source unit 11 is turned on is determined as the single light source acquisition area 201, and this area is cut out.) The image control circuit 130 normalizes the single light source lighting pattern 152 for the object to be read illustrated in FIG. 6(a) so that the maximum value of the luminance of the reflected light acquired by the CCD 12 is "1".

[0032] 6(b) shows the normalized individual light source lighting pattern 152 for the reading target. The image control circuit 130 calculates L_eff1, which represents the width of the range of X coordinate values ​​where the luminance of the reflected light is equal to or greater than the above-mentioned threshold value 1, in the normalized individual light source lighting pattern 152 for the reading target. The image control circuit 130 calculates L_eff2, which represents the width of the range of X coordinate values ​​where the luminance of the reflected light is equal to or greater than the above-mentioned threshold value 2, in the normalized individual light source lighting pattern 152 for the reading target.

[0033] The image control circuit 130 generates shading correction data 154 for the read target based on the reference single light source lighting pattern 151, the read target single light source lighting pattern 152, and the general shading correction data 153 stored in the memory area 150. An example of the general shading correction data 153 is shown in FIG. 7. The vertical axis of the graph in FIG. 7 indicates the correction value of the brightness of the reflected light, and the horizontal axis indicates the X coordinate value. The general shading correction data 153 is shading correction data that does not depend on the light reflection characteristics (diffusion characteristics of the reflected light) of the read target 20. The general shading correction data 153 is generated by a general function provided in the image reading device 10. In contrast, the shading correction data 154 for the read target is shading correction data that depends on the read target 20 and reflects the light reflection characteristics (diffusion characteristics of the reflected light) of the read target 20.

[0034] The image control circuit 130 uses the above-mentioned L_ref1, L_ref2, L_eff1, and L_eff2 to calculate a correction value γ eff Calculate. Gamma eff ={(L_ref1 / L_ref2)-(Leff1 / Leff2)}*T (1) Here, in formula (1), " / " is an operator representing division, "-" is an operator representing subtraction, "*" is an operator representing multiplication, and "T" is a predetermined coefficient. The correction value γeff shown in formula (1) represents the difference between the diffusion rate of reflected light on a reflective surface when reading an image using a white reference and a black reference, and the diffusion rate of reflected light on the surface of the object 20 to be read. The image control circuit 130 applies the correction value γ eff The image control circuit 130 calculates the shading correction data 154 for the reading object by performing a predetermined calculation using the above. Various calculations can be considered as calculations to be performed on the general-purpose shading correction data 153. For example, when the general-purpose shading correction data 153 represents a correction value of the brightness of the reflected light for the X coordinate value (a value obtained by performing arithmetic operations on the observed value of the brightness), the image control circuit 130 calculates the correction value γ effBased on this, the luminance correction value in the general-purpose shading correction data 153 is adjusted.

[0035] For example, the image control circuit 130 generates the shading correction data 154 for the read object by using Seff(x) calculated by the following equation (3) applied to the sigmoid function shown in the following equation (2). sigmoid(x)=1 / {1+e^(-a*x)} ···(2) Here, in equation (2), e represents the base of the natural logarithm, a represents the gain in the sigmoid function, and ^ is an operator representing exponentiation. Seff(x)=1 / [1+e^{-γ eff *(x-(L1+L2) / 2)}] (3) In the formula (3), Seff(x) represents a shading correction coefficient (applied to contrast adjustment) at a gradation value (luminance) x, and L1 and L2 represent the threshold 1 and threshold 2, respectively, related to the luminance of the reflected light. eff When the value of γeff is negative, Seff(x) is calculated by applying the absolute value of γeff to the inverse function of equation (3). For example, the image control circuit 130 generates shading correction data for the read object 154 by adding or multiplying the general-purpose shading correction data 153 by a coefficient calculated by Seff(x). An example of the shading correction data for the read object 154 is shown in Fig. 8. The vertical axis of the graph in Fig. 8 indicates the correction value of the brightness of the reflected light, and the horizontal axis indicates the X-coordinate value.

[0036] In this way, the image reading device 10 generates shading correction data 154 for the read object by correcting the general-purpose shading correction data 153 based on the reference single light source lighting pattern 151 obtained by lighting the specific LED element 112 and the single light source lighting pattern 152 for the read object, taking into account the diffusion characteristics of the reflected light of the read object 20. This makes it possible to perform shading correction that flexibly corresponds to the fluctuation of the diffusion characteristics of the reflected light on the surface of the read object.

[0037] The memory area 150 is a non-volatile memory device such as an electronic memory, a magnetic disk, etc. The memory area 150 stores a reference single light source lighting pattern 151, a read target single light source lighting pattern 152, general-purpose shading correction data 153, and a read target shading correction data 154.

[0038] 9 and 10, in this embodiment, the reading area of ​​the CCD 12 is divided into a single light source acquisition area 201 and an image reading area 202, so that the generation of the single light source lighting pattern 152 for the read object and the shading correction data 154 for the read object and the image reading are performed in a series of operations while reading the image of the read object 20. As a result, the shading correction data 154 for the read object according to the characteristics of the read object 20 can be automatically generated and applied to the image reading of the read object 20 without stopping the image reading of the read object 20 to obtain the shading correction data.

[0039] (operation) FIG. 9 is a flowchart illustrating an example of the preparation process according to the embodiment. Prior to reading the image of the object 20, general-purpose shading correction data 153 and a reference single light source lighting pattern 151 are obtained using specific white and black standards during manufacture of the image reading device 10, and are stored in the memory area 150. Specifically, the image reading device 10 places an image using a white reference and a black reference on the reading surface of the image scanner 1 (step S1). Next, the light source control circuit 110 turns on all the LED elements 112 of the light source module 11 (step S2). Next, the image reading device 10 reads the image using the white reference and the black reference, generates general-purpose shading correction data 153 based on the image reading result, and stores and preserves the generated general-purpose shading correction data 153 (FIG. 7) in the memory area 150 (step S3).

[0040] Next, the light source control circuit 110 lights up a specific single LED element 112 in the light source module 11 (step S4). For example, the light source control circuit 110 causes only one specific LED element 112 to emit light. Alternatively, the light source control circuit 110 causes the minimum unit block (e.g., three LED elements 112) that can be controlled to light up to emit light. The image reading device 10 executes image reading using a white reference and a black reference. The image control circuit 130 acquires a diffusion pattern of reflected light represented by the image reading result, and stores and saves the acquired diffusion pattern of reflected light in the memory area 150 as a reference single light source lighting pattern 151 (FIG. 5) (step S5). This ends the preparation process.

[0041] Next, a process for actually reading an image of the object 20 to be read will be described. FIG. 10 is a flowchart showing an example of a generation process of shading correction data according to the embodiment. First, in the image scanner 1, the object 20 to be read is transported while being placed on the reading surface as illustrated in FIG. 2 (step S11). Next, the light source control circuit 110 turns on a specific single LED element 112 in the light source module 11 (step S12). This process is similar to step S4 in FIG. 9. Next, the control board 100 controls the CCD 12 to capture an image of the object 20 to be read (step S13). The CCD 12 outputs the captured image data 200 to the image control circuit 130 via the AFE 120. The image control circuit 130 cuts out and extracts a single light source acquisition area 201 from the image data (step S14).

[0042] Next, the image control circuit 130 acquires the individual light source lighting pattern 152 (FIG. 6) for the reading target from the individual light source acquisition area 201 (step S15). Next, the image control circuit 130 reads out the reference individual light source lighting pattern 151 (FIG. 5) stored in the memory area 150 (step S16). Next, the image control circuit 130 calculates the individual light source lighting pattern correction value γ eff is calculated (step S17).

[0043] Next, the image control circuit 130 reads out the general-purpose shading correction data 153 (FIG. 7) stored in the memory area 150, and calculates the individual light source lighting pattern correction value γ eff (step S18), and generates shading correction data 154 for the read object (FIG. 8) (step S19). The image control circuit 130 stores and saves the generated shading correction data 154 for the read object in the storage area 150.

[0044] Next, the light source control circuit 110 turns on all the light source modules 11 for image reading (step S20). The image reading device 10 reads the image using the shading correction data 154 for the read object generated in step S19. For example, the shading correction data 154 for the read object is applied as a filter (step S21), and the CCD 12 captures the image of the read object 20 (step S22). The CCD 12 outputs the image data 200 to the image control circuit 130. The image control circuit 130 cuts out an image reading area 202 from the image data 200 (step S23), performs shading correction on the cut-out image reading area 202 using the shading correction data 154 for the read object, and outputs the result to the outside via the external I / F 140 as a read image by the image scanner 1 (step S24).

[0045] Thereafter, the individual light sources of the light source module 11 are turned on and then all of the light sources are turned on repeatedly, and image reading is performed while generating shading correction data 154 for the read object each time.

[0046] The above embodiment is an example, and the following configuration may be used. For example, the mirror 14 is provided in the optical path of the image reading device 10, but the mirror 14 may not be provided. The number of individual light source lighting patterns stored in the memory area 150 may be three or more. The timing of generating the shading correction data 154 for the read target to be actually used can be set arbitrarily. For example, the shading correction data 154 for the read target may not be stored in the memory area 150, but may be generated every time an image is read, or the shading correction data 154 for the read target may be generated every time the reading conditions for the read target 20 are changed (for example, when the type of the read target 20 is changed from material 1 to material 2, etc.), or the shading correction data 154 for the read target may be generated every time image reading is performed a predetermined number of times (for example, once every several times of image reading). The CCD 12 may be an area image sensor instead of a line image sensor. The light source module 11 may be another type of light emitting element instead of an LED. The light source does not have to be integrated with the image reading device 10, but may be fixed within the configuration of the image scanner 1. The number of light source modules 11 may be one unit or multiple units as long as it is possible to control switching between lighting a specific minimum unit block (which may be one or multiple) and lighting all the lights. Also, although the image reading area 202 and the individual light source acquisition area 201 are different areas, they may have an overlapping area.

[0047] (effect) As described above, when reading an image of the read object 20, the image reading device 10 of this embodiment cuts out the individual light source acquisition area 201 from the image data 200, generates shading correction data 154 for the read object using the cut-out individual light source acquisition area 201, cuts out the image reading area 202 from the image data 200, and performs shading correction by applying the shading correction data 154 for the read object to the cut-out image reading area 202.

[0048] For example, in a manufacturing line that handles many types of read objects such as metal plates, it is necessary to acquire and change shading correction data for each read object 20. However, in an actual manufacturing site, it is difficult to generate and manage shading correction data for each read object 20. Furthermore, if shading correction data is provided for each read object, the manufacturing line cannot be unified and the equipment costs increase. In contrast, according to this embodiment, shading correction data 154 for each read object 20 can be automatically acquired and applied, so that shading correction can be efficiently performed according to the read object 20.

[0049] More specifically, since the shading correction data 154 for the read object can be generated directly from the read object 20, it is not necessary to place a white reference and a black reference on the reading surface to acquire the shading correction data. Therefore, it is not necessary to temporarily stop the production line to reacquire the shading correction data.

[0050] In addition, since the shading correction data 154 for the read object can be generated directly from the read object 20, the shading correction data 154 for the read object corresponding to the reading conditions, such as fluctuations in the diffusion characteristics of the reflected light on the surface of the read object, can be obtained, thereby improving the quality of the read image.

[0051] In addition, since the acquisition of the individual light source lighting pattern 152 for the reading target and the image reading can be performed in a single operation, there is no need to prepare shading correction data for each reading target in advance, which is expected to reduce implementation costs.

[0052] In addition, since the generation of the shading correction data 154 for the read target can be performed in a series of operations including image reading, different types of read targets 20 can be put into the same manufacturing line, which is expected to reduce equipment costs. For example, the method for generating shading correction data in this embodiment can be applied to image reading devices for inspection purposes in the manufacturing industry.

[0053] (Minimum configuration) FIG. 12 is a block diagram showing the configuration of an image reading device 10 having a minimum configuration. The image reading device 10 is an image reading device that generates general-purpose shading correction data by reading an image using a white reference and a black reference with all of a plurality of light sources turned on, and is equipped with a first acquisition means 801, a second acquisition means 802, a generation means 803, and a reading means 804. The first acquisition means 801 acquires a diffusion state of a first reflected light generated by irradiating light from a specific light source among a plurality of light sources in a state in which reading of an image is performed using a white reference and the black reference. The second acquisition unit 802 acquires a diffusion state of a second reflected light generated by irradiating a target of image reading with light from the specific light source. A generating means 803 generates shading correction data for the read object that depends on the read object, based on the diffusion state of the first reflected light, the diffusion state of the second reflected light, and the general-purpose shading correction data. The reading means 804 performs image reading using the shading correction data for the read object while irradiating the read object with light from all of the plurality of light sources.

[0054] FIG. 14 is a flow chart showing the operation of an image reading apparatus having a minimum configuration. The image reading device 10 generates general-purpose shading correction data (step S801). The first acquisition means 801 acquires the diffusion state of the first reflected light (step S802). The second acquisition means 802 acquires the diffusion state of the second reflected light (step S803). The generation means 803 generates shading correction data for the reading target (step S804). The reading means 804 reads the image of the reading target (step S805).

[0055] It should be noted that a part of the image reading device 10 in the above-mentioned embodiment may be realized by a computer. In that case, a program for realizing this function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to realize the function. Note that the "computer system" here refers to a computer system built into the image reading device 10, and includes hardware such as an OS and peripheral devices.

[0056] In addition, "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into computer systems. Furthermore, "computer-readable recording medium" may also include devices that dynamically hold a program for a short period of time, such as a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line, and devices that hold a program for a certain period of time, such as volatile memory inside a computer system that serves as a server or client in such cases. Furthermore, the above program may be one that realizes part of the above-mentioned functions, or may be one that can realize the above-mentioned functions in combination with a program already recorded in the computer system.

[0057] Also, a part or all of the image reading device 10 in the above-described embodiment may be realized as an integrated circuit such as an LSI (Large Scale Integration). Each functional unit of the image reading device 10 may be individually made into a processor, or a part or all of the functional units may be integrated into a processor. The integrated circuit method is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. If an integrated circuit technology that can replace LSI appears due to advances in semiconductor technology, an integrated circuit based on that technology may be used.

[0058] Although one embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes and the like can be made within the scope of the gist of the present invention. In addition, one aspect of the present invention can be modified in various ways within the scope of the claims, and embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention. In addition, configurations in which elements described in the above embodiments and modified examples are replaced with elements that have the same effect are also included. [Explanation of symbols]

[0059] 1. Image scanner 10. Image reading device 11 Light source module 12···CCD 13. Lens 14. Mirror 15. Cover glass 20. Read target 30...Transport system to be read 100 Control circuit board 110... Light source control circuit 120···AFE 130...Image control circuit 140 External I / F 150...Storage area 151... Reference single light source lighting pattern 152....Lighting pattern of single light source for reading object 153 General purpose shading correction data 154 Shading correction data for reading object 200...Image data 201... Single light source acquisition area 202 Image reading area

Claims

1. An image reading device that generates general-purpose shading correction data by reading an image using a white reference and a black reference while all of a plurality of light sources are turned on, a first acquisition means for acquiring a diffusion state of a first reflected light generated by irradiating light from a specific light source among the plurality of light sources in a state in which reading of an image using the white reference and the black reference is executed; a second acquisition means for acquiring a diffusion state of a second reflected light generated by irradiating light from the specific light source in a state in which reading of an image reading target is executed; a generating means for generating shading correction data for a read object that depends on the read object, based on a diffusion state of the first reflected light, a diffusion state of the second reflected light, and the general-purpose shading correction data; a reading means for reading an image of an object to be read by using the shading correction data for the object to be read while irradiating light from all of the plurality of light sources in a state where the object to be read is to be read; An image reading device comprising:

2. the second acquisition means extracts a predetermined single light source acquisition area from an image of the reading target, and acquires a diffusion state of the second reflected light in the extracted single light source acquisition area.

2. The image reading device according to claim 1.

3. the reading means cuts out a predetermined image reading area from an image of the read object, and performs shading correction on the cut-out image reading area using the shading correction data for the read object; 3. The image reading device according to claim 1 or 2.

4. Each time the image reading of the reading target is performed, the second acquisition means acquires a diffusion state of the second reflected light, The generating means generates shading correction data for the reading object, performing shading correction using the shading correction data for the read object; 3. The image reading device according to claim 1 or 2.

5. Each time the image reading of the reading target is performed a predetermined number of times, the second acquisition means acquires a diffusion state of the second reflected light, The generating means generates shading correction data for the reading object, performing shading correction using the shading correction data for the read object; 3. The image reading device according to claim 1 or 2.

6. Each time the reading conditions of the read object are changed, the second acquisition means acquires a diffusion state of the second reflected light, The generating means generates shading correction data for the reading object, performing shading correction using the shading correction data for the read object; 3. The image reading device according to claim 1 or 2.

7. a light source control unit that controls so as to turn on only a specific light source among the plurality of light sources or to turn on all of the plurality of light sources, The light source control means controls a part of a plurality of light emitting elements constituting the plurality of light sources as the specific light source.

3. The image reading device according to claim 1 or 2.

8. a storage unit for storing the diffusion state of the first reflected light, the diffusion state of the second reflected light, the general-purpose shading correction data, and the shading correction data for the read object; 3. The image reading device according to claim 1 or 2.

9. generating general-purpose shading correction data by reading an image using a white reference and a black reference while all of the light sources are turned on; acquiring a diffusion state of a first reflected light generated by irradiating light from a specific light source among the plurality of light sources in a state in which reading of an image is executed using the white reference and the black reference; acquiring a diffusion state of a second reflected light generated by irradiating light from the specific light source in a state in which reading of an image reading target is executed; generating shading correction data for the read object that depends on the read object based on a diffusion state of the first reflected light, a diffusion state of the second reflected light, and the general-purpose shading correction data; and performing image reading using the shading correction data for the read object while irradiating light from all of the plurality of light sources in a state in which reading of the image read object is to be performed. Image reading control method.

10. On the computer, generating general-purpose shading correction data by reading an image using a white reference and a black reference while all of the light sources are turned on; acquiring a diffusion state of a first reflected light generated by irradiating light from a specific light source among the plurality of light sources in a state in which reading of an image using the white reference and the black reference is executed; acquiring a diffusion state of a second reflected light generated by irradiating light from the specific light source in a state in which reading of an image reading target is executed; generating shading correction data for the read object that depends on the read object based on a diffusion state of the first reflected light, a diffusion state of the second reflected light, and the general-purpose shading correction data; a process of reading an image of an object to be read by using the shading correction data for the object to be read while irradiating light from all of the plurality of light sources in a state in which reading of the object to be read of an image is to be executed; A program that executes the following.

Citation Information

Patent Citations

  • Print inspection device

    JP2005209037A

  • Image reader

    JP2008300988A

  • Image reader

    JP2009141580A

  • Image reader, image reading control method and image reading control program

    JP2021103873A