Image reading device, image reading control method and program
The image reading device automatically generates shading correction data using white and black references with all light sources on, addressing the challenge of continuous image reading in industrial settings by adapting to object-specific light reflection characteristics.
Patent Information
- Application Number
- JP2023080563
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2025-10-01
- Estimated Expiration
- 2043-05-16
AI Technical Summary
Existing image reading devices struggle to automatically generate and switch shading correction data without interrupting the image reading process, especially in industrial settings where production lines operate continuously and placing white and black references is impractical.
An image reading device generates general-purpose shading correction data by reading a white and black reference with all light sources on, then acquires and applies shading correction data based on the diffusion states of reflected light from specific light sources, allowing continuous image reading without interrupting the process.
This method enables automatic generation and application of shading correction data without halting the image reading process, improving image quality and reducing equipment costs by adapting to variations in light reflection characteristics of different objects.
Smart Images

Figure 0007747404000001 
Figure 0007747404000002 
Figure 0007747404000003
Abstract
Description
[Technical Field]
[0001] The present invention relates to an image reading device, an image reading control method, and a program. [Background technology]
[0002] In image reading devices such as line cameras and line scanners that have lighting, lenses, and image sensors such as CCDs, uneven luminance values of pixels in a read image can occur due to uneven illuminance of the light source caused by differences in luminance among LED (Light Emitting Diode) elements. Figure 11(a) shows an example of such a read image. Shading correction is generally performed to eliminate uneven luminance values in the read image. Figure 11(b) shows an example of a read image after shading correction.
[0003] The image reading device installed in a typical 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 degree of uneven illuminance varies depending on the reflectance of the object to be read and the lighting arrangement, so there are cases where correction cannot be achieved with shading correction data based on specific white and black references alone. In response to this, for example, Patent Document 1 discloses a technology that performs shading correction that flexibly responds to variations in the diffusion characteristics of reflected light on the surface of the object to be read.
[0004] Furthermore, when there is a change in the reading conditions, such as a deterioration in the illuminance of the light source, a change in the brightness setting or placement, or a change in the reading target, it is preferable to read the white and black references for shading correction and reacquire 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 changes. However, in image reading devices used for industrial purposes, the production line is always in operation, and there is often no time at all when the white and black references can be placed each time an image is read. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Publication No. 2021-103873 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 acquire the shading correction data.
[0007] SUMMARY OF THE INVENTION It is therefore an object of the present invention 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 in a state where all of a plurality of light sources are turned on, the image reading device comprising: a first acquisition means for acquiring a diffusion state of first reflected light generated by irradiating light from a specific light source among the plurality of light sources in a state where the image reading is performed using the white reference and the black reference; a second acquisition means for acquiring a diffusion state of second reflected light generated by irradiating light from the specific light source in a state where the image reading target is read; a generation means for generating shading correction data for the read target that depends on the read 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 reading an image using the shading correction data for the read target while irradiating light from all of the plurality of light sources in a state where the image reading target is read, It is generated by light being irradiated fromA predetermined single light source acquisition area including an area where the brightness of the reflected light is maximum is cut out, and the diffusion state of the second reflected light in the cut-out single light source acquisition area is acquired.The reading means cuts out, from the image of the reading object, the remaining area after cutting out the single light source acquisition area or an area that includes part of the single light source acquisition area, as an image reading area, and performs shading correction on the cut-out image reading area using shading correction data for the reading object.
[0009] According to one aspect of the present invention, an image reading control method includes the steps of generating 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; acquiring a diffusion state of first reflected light generated by irradiating light from a specific light source among the plurality of light sources when reading the image using the white reference and the black reference; acquiring a diffusion state of second reflected light generated by irradiating light from the specific light source when reading an image of a read target; generating shading correction data for a read target that depends on the read 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 reading an image using the shading correction data for a read target while irradiating light from all of the plurality of light sources when reading the image of the read target, wherein the step of acquiring the diffusion state of the second reflected light includes acquiring a diffusion state of the specific light source from an image of the read target. It is generated by light being irradiated from In the step of cutting out a predetermined single light source acquisition area including an area where the brightness of the reflected light is maximum, acquiring the diffusion state of the second reflected light in the cut-out single light source acquisition area, and performing the image reading, the remaining area after cutting out the single light source acquisition area or an area that includes part of the single light source acquisition area is cut out as an image reading area from the image of the reading object, and shading correction is performed on the cut-out image reading area using shading correction data for the reading object.
[0010] According to one aspect of the present invention, a program is provided that causes a computer to: The above image reading control method Let it run. [Effects of the Invention]
[0011] According to the present invention, shading correction data can be automatically generated without interrupting the image reading process of the image to be read. [Brief explanation 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. [Figure 2] FIG. 1 is a diagram illustrating an example of a structure of an image reading apparatus according to an embodiment. [Figure 3] FIG. 2 is a block diagram illustrating an example of functions of the image reading apparatus according to the embodiment. [Figure 4] 1A and 1B are diagrams illustrating an example of the structure of a light source module according to an embodiment. [Figure 5] FIG. 10 is a diagram showing an example of a reference single light source lighting pattern according to the embodiment. [Figure 6] 10A and 10B are diagrams illustrating an example of a lighting pattern of a single light source for a reading object according to the embodiment. [Figure 7] FIG. 10 is a diagram showing an example of general-purpose shading correction data according to the embodiment. [Figure 8] FIG. 10 is a diagram showing an example of shading correction data for a reading object according to the embodiment. [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 process for generating shading correction data according to the embodiment. [Figure 11] FIG. 10 is a diagram illustrating shading correction. [Figure 12] FIG. 1 is a block diagram showing the configuration of an image reading apparatus having a minimum configuration. [Figure 13] FIG. 10 is a flowchart showing the operation of an image reading apparatus having a minimum configuration. DETAILED DESCRIPTION OF THE INVENTION
[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 shown.
[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 may be, for example, various types of paper, cloth, metal plate, etc.
[0015] FIG. 2 is a diagram illustrating an example of the structure of the image reading device according to the embodiment. Figure 2(a) shows a side view of image scanner 1 including an image reading device, and Figure 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 will be appropriately shown in the drawings. Figure 2(a) is a YZ plane view of image scanner 1 viewed in the positive direction of the X axis, and Figure 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 within the image reading device 10, forming a reading light path. When the light source module 11 irradiates the reading target 20 with light, 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 is imaged 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] The light source module 11, CCD 12, lens 13, mirror 14, 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 extracted from the image data 200 output by the CCD 12, and 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 that uses a white reference and a black reference, and for example, has a built-in white reference board and a built-in black reference board (not shown). The image reading device 10 uses this shading correction function to generate general-purpose shading correction data 153. 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 illustrating 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 brightness and 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 substrate 111, a plurality of LED elements 112, a diffuser 113, and an LED lighting housing 114. The LED substrate 111 is a printed circuit board on which a transmission path for 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 substrate 111. Note that the light-emitting elements included in the light source module 11 are not limited to the LED elements 112, and other light-emitting elements may be included. Light emitted by the LED elements 112 is irradiated onto the reading target 20 via the diffuser 113. The light source control circuit 110 may control the light intensity of the LED elements 112, for example, by 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 an example shown in FIG. 4(b), or may control the lighting of multiple LED elements 112 as an example shown 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 the lighting control is performed for three elements 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 of the LED elements 112 of the light source module 11 during 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, during 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 from 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 the 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, via the CCD 12 and the AFE 120, a signal representing reflected light generated when a specific LED element 112 is turned on by the light source control circuit 110. 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 representing the reference individual light source lighting pattern 151. The horizontal axis of the graphs in FIGS. 5(a) and 5(b) represents the X-coordinate value at which the CCD 12 acquires 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 at its maximum corresponds to the X-coordinate value at which the specific LED element 112 that is lit is located. Because reflected light is diffused by the reflecting surface, the graph representing the reference individual light source lighting pattern 151 exhibits a mountain shape as illustrated in FIG. 5(a). The image control circuit 130 normalizes the reference individual 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 individual 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 where the brightness of reflected light is equal to or greater than a predetermined threshold value 1, in the normalized reference individual light source lighting pattern 151. The image control circuit 130 calculates L_ref2, which represents the width of the range of X coordinate values where the brightness of reflected light is equal to or greater than a predetermined threshold value 2, in the normalized reference individual light source lighting pattern 151. However, threshold value 2 is set to be smaller than threshold value 1.
[0030] When a read target 20, whose image is to be read by the image scanner 1, is placed, the image control circuit 130 acquires, via the CCD 12 and the AFE 120, a signal representing reflected light generated when a specific LED element 112 is turned on by the light source control circuit 110. 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 read target, and stores the acquired individual light source lighting pattern 152 for the read target in the memory area 150.
[0031] FIG. 6 illustrates a graph representing the reference individual light source lighting pattern 151. The horizontal and vertical axes in the graphs illustrated in FIGS. 6(a) and 6(b) are as described above with reference to FIGS. 5(a) and 5(b). In this graph, the X-coordinate value at which the luminance of the reflected light is maximized is as described above with reference to FIG. 5(a). Because reflected light is diffused on the reflecting surface (the surface of the object 20), the graph representing the individual light source lighting pattern 152 for the object to be read also exhibits a mountain-like shape as illustrated in FIG. 6(a), similar to the graph illustrated in FIG. 5(a). (In other words, the area where the mountain-like shape of FIG. 6(a) is obtained when only a specific light source unit 11 is turned on is defined as the individual light source acquisition area 201, and this area is extracted.) The image control circuit 130 normalizes the individual light source lighting pattern 152 for the object to be read illustrated in FIG. 6(a) so that the maximum 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 brightness 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 brightness 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 object based on a reference single light source lighting pattern 151, a read object single light source lighting pattern 152, and general-purpose shading correction data 153, all of which are stored in the memory area 150. An example of the general-purpose shading correction data 153 is shown in FIG. 7. The vertical axis of the graph in FIG. 7 represents the correction value for the brightness of reflected light, and the horizontal axis represents the X-coordinate value. The general-purpose shading correction data 153 is shading correction data that does not depend on the light reflection characteristics (diffusion characteristics of reflected light) of the read object 20. The general-purpose 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 object is shading correction data that depends on the read object 20 and reflects the light reflection characteristics (diffusion characteristics of reflected light) of the read object 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 γ for the general-purpose shading correction data 153 as shown in the following equation (1), for example. 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 the 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 calculates the correction value γ eff The shading correction data 154 for the reading object is calculated 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 brightness value), the image control circuit 130 calculates the correction value γ effBased on this, the brightness 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 reading object 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 equation (3), Seff(x) represents the shading correction coefficient (applied to contrast adjustment) at the 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 If 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 reading object 154 by adding or multiplying the coefficient calculated by Seff(x) to the general-purpose shading correction data 153. An example of the shading correction data for the reading object 154 is shown in Fig. 8. The vertical axis of the graph in Fig. 8 represents the correction value for the brightness of the reflected light, and the horizontal axis represents 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 individual light source lighting pattern 151 obtained by lighting up the specific LED element 112 and the individual 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 variations in 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 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 reading the image 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 the 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 saves 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 smallest unit block (e.g., three) of LED elements 112 whose lighting can be controlled to emit light. The image reading device 10 reads the image 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 completes the preparation process.
[0041] Next, the process when the image of the object 20 to be read is actually read will be described. FIG. 10 is a flowchart showing an example of a process for generating shading correction data according to the embodiment. First, in the image scanner 1, the object 20 to be read is placed on the reading surface as illustrated in FIG. 2 and conveyed (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 the same as 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 storage 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 storage 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 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 as a read image by the image scanner 1 to the outside via the external I / F 140 (step S24).
[0045] Thereafter, the light source module 11 is repeatedly turned on with each individual light source turned on and with all the light sources turned on, and image reading is performed while generating shading correction data 154 for the read object each time.
[0046] The above embodiment is merely an example, and the following configurations may be used. For example, although the mirror 14 is provided in the optical path of the image reading device 10, the mirror 14 may not be provided. The memory area 150 may store three or more individual light source lighting patterns. The timing for generating the shading correction data 154 for the read object to be actually used can be set arbitrarily. For example, the shading correction data 154 for the read object may not be stored in the memory area 150, but may be generated each time an image is read. Alternatively, the shading correction data 154 for the read object may be generated each time the reading conditions for the read object 20 are changed (e.g., when the type of the read object 20 is changed from material 1 to material 2). Alternatively, the shading correction data 154 for the read object may be generated each time image reading is performed a predetermined number of times (e.g., once every several image readings). Furthermore, the CCD 12 may be an area image sensor instead of a line image sensor. Furthermore, the light source module 11 may be an LED, but may be another type of light-emitting element. 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 units) and lighting all the lights. Also, although the image reading area 202 and the single light source acquisition area 201 are different areas, there may be an overlapping area between them.
[0047] (effect) As described above, when reading an image of the reading object 20, the image reading device 10 of this embodiment cuts out the single light source acquisition area 201 from the image data 200, generates shading correction data 154 for the reading object using the cut-out single light source acquisition area 201, cuts out the image reading area 202 from the image data 200, and applies the shading correction data 154 for the reading object to the cut-out image reading area 202 to perform shading correction.
[0048] For example, in a production 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 production site, it is difficult to generate and manage shading correction data for each individual read object 20. Furthermore, if shading correction data were to be provided for each read object, it would be impossible to standardize the production line and the equipment costs would increase. In contrast, according to this embodiment, shading correction data 154 for each read object 20 can be automatically acquired and applied, making it possible to efficiently perform shading correction 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, there is no need to place a white reference and a black reference on the reading surface to acquire the shading correction data. Therefore, there is no need to temporarily stop the production line to reacquire the shading correction data.
[0050] In addition, since shading correction data 154 for the read object can be generated directly from the read object 20, shading correction data 154 for the read object that corresponds to reading conditions such as fluctuations in the diffusion characteristics of reflected light on the surface of the read object can be obtained, thereby improving the quality of the read image.
[0051] Furthermore, 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] Furthermore, since the generation of the shading correction data 154 for the read object can be performed in a series of operations together with image reading, different types of read objects 20 can be introduced into the same production line, which is expected to reduce equipment costs. For example, the method for generating shading correction data of this embodiment can also be applied to image reading devices used for inspection in the manufacturing industry.
[0053] (Minimum configuration) FIG. 12 is a block diagram showing the configuration of the image reading device 10 having the 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 the diffusion state of the first reflected light generated by irradiating light from a specific light source among a plurality of light sources when reading an image using a white reference and the black reference. The second acquisition unit 802 acquires the diffusion state of the second reflected light generated by irradiating the image reading target 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 reads an image by 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 flowchart 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 obtaining unit 801 obtains the diffusion state of the first reflected light (step S802). The second obtaining unit 802 obtains the diffusion state of the second reflected light (step S803). The generating unit 803 generates shading correction data for the reading object (step S804). The reading unit 804 reads the image of the reading object (step S805).
[0055] Note that a part of the image reading device 10 in the above-described embodiment may be realized by a computer. In this case, a program for realizing this function may be recorded on a computer-readable recording medium, and the program recorded on this recording medium may be read into a computer system and executed. 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] Furthermore, "computer-readable recording media" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, as well as storage devices such as hard disks built into computer systems. Furthermore, "computer-readable recording media" may also include devices that dynamically store programs for a short period of time, such as communication lines used when transmitting programs over networks like the Internet or communication lines like telephone lines, or devices that store programs for a fixed period of time, such as volatile memory within computer systems that serve as servers or clients in such cases. Furthermore, the above-mentioned programs may be programs that realize some of the aforementioned functions, or may be programs that can realize the aforementioned functions in combination with programs already stored in the computer system.
[0057] Furthermore, 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 implemented as a processor, or part or all of them may be integrated into a processor. Furthermore, the integrated circuit implementation method is not limited to LSI, and may be implemented using a dedicated circuit or a general-purpose processor. If an integrated circuit implementation technology that can replace LSI emerges 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 modifications can be made without departing from the spirit of the present invention. Furthermore, 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. Furthermore, configurations in which elements described in the above embodiments and variations are substituted with elements that achieve 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...Reading target 30. Reading target transport system 100 Control 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: Single light source lighting pattern for reading target 153 General-purpose shading correction data 154 Shading correction data for reading target 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 second reflected light generated by irradiating light from the specific light source in a state in which reading of an image reading target is being executed; a generating means for generating shading correction data for the read object, the shading correction data being 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-purpose shading correction data; a reading unit that, in a state where reading of an image reading target is executed, performs image reading using the shading correction data for the reading target while irradiating light from all of the plurality of light sources; Equipped with the second acquisition means extracts a predetermined single light source acquisition area from the image of the object to be read, the single light source acquisition area including an area where the luminance of the reflected light generated by irradiation with light from the specific light source is maximum, and acquires a diffusion state of the second reflected light in the extracted single light source acquisition area; the reading means cuts out, from the image of the read object, a remaining area obtained by cutting out the single light source acquisition area or an area including a part of the single light source acquisition area as an image reading area, and performs shading correction on the cut-out image reading area using the shading correction data for the read object; Image reading device.
2. Each time the image of the object to be read is read, 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; 2. The image reading device according to claim 1.
3. 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.
4. Each time the reading conditions of the reading 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.
5. a light source control unit that controls the lighting of only a specific light source among the plurality of light sources or the lighting of all of the plurality of light sources, the light source control means controls some of the 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.
6. further comprising a storage means 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.
7. generating general-purpose shading correction data by reading an image using a white reference and a black reference with all of the plurality of light sources 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 second reflected light generated by irradiating light from the specific light source in a state in which reading of an image reading target is being executed; generating 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; a step of reading the image by 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 executed; and In the step of acquiring the diffusion state of the second reflected light, a predetermined single light source acquisition area including an area where the luminance of the reflected light generated by irradiation with light from the specific light source is maximum is cut out from the image of the reading target, and the diffusion state of the second reflected light in the cut-out single light source acquisition area is acquired; In the step of reading the image, a remaining area obtained by cutting out the single light source acquisition area from the image of the read object, or an area including the single light source acquisition area as a part thereof, is cut out as an image reading area, and shading correction is performed on the cut-out image reading area using shading correction data for the read object. Image reading control method.
8. A program for causing a computer to execute the image reading control method according to claim 7.
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