Image reading device, image reading control method and program
The image reading device uses multiple light sources and color management to correct noise-affected data, ensuring only valid pixel data is stored, thereby enhancing image quality.
Patent Information
- Application Number
- JP2020190120
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-11-16
AI Technical Summary
Existing image reading devices struggle to effectively suppress noise influence using a single linear image sensor, making it difficult to correct detection results affected by noise.
The device employs multiple light emitting units emitting different colors, a light receiving section, and a control circuit that manages color information to match estimated values with actual values, adjusting storage based on matching color information to suppress noise influence.
The solution effectively suppresses noise impact on image quality by ensuring only matching pixel data is stored, maintaining image integrity and reducing noise-related errors.
Smart Images

Figure 0007540308000015 
Figure 0007540308000009 
Figure 0007540308000012
Abstract
Description
[Technical field]
[0001] The present invention relates to an image reading apparatus, an image reading control method, and a program. [Background technology]
[0002] For example, a technique is known for an image reading device that reads an original document, in which pixel data is corrected due to the influence of noise when reading the original document, as in Patent Document 1. The image reading device in Patent Document 1 is equipped with three lines of linear image sensors, and the technique is disclosed in which the detection result of the sensor of the line that is affected by noise among the three lines is corrected using the detection results of the sensors of the other lines. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2018-133646 A Summary of the Invention [Problem to be solved by the invention]
[0004] The image reading device of Patent Document 1 corrects the detection results of the linear image sensor of the line affected by noise out of the three lines using the detection results of the linear image sensor of the other lines, so in an image reading device that has only one line of linear image sensor, it is difficult to suppress the effects of noise using a similar method. [Means for solving the problem]
[0005] The image reading device that solves the above problem is an image reading device that reads an original document to obtain an image, and includes a plurality of light-emitting units that emit light of different colors, a light-receiving unit that receives light emitted by the light-emitting units and reflected by the original document and outputs a light-receiving signal, a control circuit that outputs a control signal to control the light-emitting units and the light-receiving units, and a relay circuit that causes the plurality of light-emitting units to emit light in sequence at different timings based on the control signal, and causes the light-receiving unit to receive the reflected light for each emitted color, and receives a light-receiving signal from the light-receiving unit, the relay circuit having a conversion unit that generates digital data by adding color information indicating the color of the reflected light received by the light-receiving unit to pixel data obtained by analog-to-digital conversion of the light-receiving signal, and the control circuit converts the received light signal from the conversion unit into digital data. the image processing unit stores the pixel data in the input digital data in a memory unit for each color indicated by the color information, the image processing unit having an extraction unit that extracts the color information from the digital data, a management unit that manages managed color information which is an estimate of the color information based on the control signal, a determination unit that determines whether the color information extracted by the extraction unit matches the managed color information, and a write control unit that stores the pixel data in the digital data in the memory unit when the determination result of the determination unit indicates that the color information matches the managed color information, and does not store the pixel data in the memory unit when the color information does not match the managed color information, and when the color information does not match the managed color information, the management unit adjusts the managed color information to match the color information.
[0006] The image reading control method for solving the above problem is an image reading control method for reading an original document and acquiring an image using a plurality of light-emitting units that emit light of different colors and a light-receiving unit that receives light reflected from the original document by the light-emitting units, the image reading control method comprising: a control circuit that outputs a control signal for controlling the light-emitting units and the light-receiving unit; and a relay circuit that controls the light-emitting units and the light-receiving unit based on the control signal input from the control circuit, the control circuit outputs the control signal to the relay circuit, the relay circuit causes the plurality of light-emitting units to emit light in sequence at different timings based on the control signal, and causes the light-receiving unit to receive the reflected light for each of the emitted colors and inputs a received light signal from the light-receiving unit, and the relay circuit performs analog-to-digital conversion of the received light signal to obtain the control circuit acquiring managed color information which is an estimate of the color information based on the control signal; the control circuit extracting the color information from the digital data; the control circuit determining whether the extracted color information matches the managed color information; if the color information matches the managed color information, the control circuit storing the pixel data in a memory unit, and if the color information does not match the managed color information, not storing the pixel data in the memory unit; and if the color information does not match the managed color information, the control circuit adjusting the managed color information to match the color information.
[0007] The program for solving the above problem is a program executed by a computer provided in an image reading device having a plurality of light emitting units that emit light of different colors and a light receiving unit that receives light reflected from a document, the image reading device reading the document to obtain an image, the image reading device having a computer and a relay circuit that controls the light emitting units and the light receiving unit based on a control signal input from the computer, the program including the steps of causing the relay circuit to control the light emitting units and the light receiving unit by outputting a control signal to the relay circuit, and converting the light receiving signal from the light receiving unit to pixel data obtained by the relay circuit from analog to digital, the program including the steps of: the step of inputting digital data generated by adding color information indicating the color of the reflected light from the control signal from the relay circuit, the step of acquiring managed color information which is an estimate of the color information based on the control signal, the step of extracting the color information from the digital data, the step of determining whether the extracted color information matches the managed color information, the step of storing the pixel data in the digital data in a memory unit if the color information matches the managed color information, and not storing the pixel data in the memory unit if the color information does not match the managed color information, and the step of adjusting the managed color information to match the color information if the color information does not match the managed color information. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a perspective view showing an image reading device according to a first embodiment. [Diagram 2] FIG. 2 is a schematic cross-sectional side view showing the image reading device. [Diagram 3] FIG. 2 is a block diagram showing the electrical configuration of the image reading apparatus. [Figure 4] FIG. 4 is a diagram showing an example of a configuration of first digital data. [Diagram 5] FIG. 11 is a diagram showing an example of a configuration of second digital data. [Figure 6] FIG. 11 is a diagram showing an example of a configuration of a third digital data. [Figure 7]FIG. 2 is a block diagram showing the electrical configuration of a main part of the image reading device that performs reading and writing processes. [Figure 8] FIG. 4 is a diagram showing changes over time in the control state of the image reading apparatus. [Figure 9] 6A to 6C are diagrams used to explain a determination process and a write control process. [Figure 10] 11A and 11B are diagrams showing examples of a read image without correction and a read image with correction. [Figure 11] FIG. 11 is a diagram showing an example of a read image in which pixel data of a line affected by noise has been discarded. [Figure 12] FIG. 11 is a block diagram showing the electrical configuration of a main part of an image reading apparatus that performs reading and writing processes according to a second embodiment. [Figure 13] FIG. 13 is a diagram showing an example of a read image when two AFEs are provided. [Figure 14] FIG. 13 is a diagram showing an example of a read image generated by correction based on digital data from one of two AFEs. [Figure 15] FIG. 13 is a diagram showing another example of a read image when two AFEs are provided. [Figure 16] FIG. 13 is a diagram showing an example of a read image generated by correction based on digital data from both of the two AFEs. [Figure 17] FIG. 13 is a diagram showing an example of a read image in which data of a line affected by noise has been discarded. [Figure 18] FIG. 13 is a diagram showing an example of a read image in which data of a line affected by noise has been discarded. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] (First embodiment) Hereinafter, a first embodiment of an image reading device will be described with reference to the drawings. As shown in Fig. 1, an image reading device 11 of this embodiment includes a main body 12 having a substantially trapezoidal shape in a side view, and a document support 13 on which a document D to be read is placed (set). A stacker 15 is stored in the main body 12 below an outlet 12B in a state in which it can slide forward and backward.
[0010] The document support 13 has a planar placement surface 13A on which a plurality of documents D can be placed by extending obliquely upward from the rear side of the main body 12. The document support 13 is provided with a pair of edge guides 13B that can slide in a width direction X that intersects (particularly perpendicular to) a conveying direction Y in which the documents D are conveyed. The documents D loaded on the placement surface 13A are positioned in the width direction X with respect to the feed opening 12A by being sandwiched between the pair of edge guides 13B. In addition, a sliding auxiliary support part 13C is provided on the placement surface 13A of the document support 13 so as to be able to move in and out. The documents D loaded on the placement surface 13A are positioned in the conveying direction Y with respect to the feed opening 12A by abutting against the sliding auxiliary support part 13C. The width direction X is the main scanning direction when the image reading device 11 reads the image of the documents D, and the conveying direction Y is the sub-scanning direction. In the following, the width direction X may be simply referred to as the "scanning direction X".
[0011] The document D placed on the document support 13 is fed into the main body 12 one sheet at a time from a feed port 12A opening at the top of the main body 12. The fed document D is transported through the main body 12 along a predetermined transport path 29 (see FIG. 2), and after the image is read in a reading area SA during the transport, the document D is discharged from a discharge port 12B opening at the front lower part of the main body 12.
[0012] A power button 20 is provided on the front surface 12C of the main body 12. A display unit 22, such as a display panel, that displays a predetermined image in a display area 23 is provided on the front surface 12C of the main body 12. The display unit 22 is configured to display information related to the image reading device 11. The display unit 22 is provided with an input unit 21, such as a touch panel, that can detect a user's tactile operation. The input unit 21 is configured to input necessary information in response to a user's tactile operation when giving an instruction to the image reading device 11.
[0013] 2, the main body 12 includes a main body portion 18 and a cover portion 19 rotatably connected to the front end portion of the main body portion 18. The main body 12 has a conveying path 29 (conveying passage) extending from the inlet 12A to the outlet 12B between the main body portion 18 and the cover portion 19.
[0014] A transport mechanism 30 that transports the document D is provided inside the main body 12. The transport mechanism 30 has a feed section 30A that guides and feeds the document D loaded (set) on the document support 13 into the main body 12 one by one, a transport section 31 that transports the fed document D along a transport path 29 so as to pass through a reading area SA, and a discharge section 32 that discharges the document D after the image has been read during transport by the transport section 31. The transport mechanism 30 has an automatic document feed function that transports multiple documents D loaded on the document support 13 one by one in order along the transport path 29 so as to pass through the reading area SA.
[0015] The feeding section 30A is provided with one feeding roller 33 (pickup roller) facing a feeding guide 30B at the upstream end position of the transport path 29 in the main body 12. The feeding section 30A feeds a plurality of documents D loaded on the document support 13 one by one from the feeding port 12A along the feeding guide 30B.
[0016] The transport section 31 includes a feed roller pair 34 disposed downstream of the feed roller 33 in the transport direction Y, and a transport roller pair 35 disposed upstream of the reading area SA in the transport direction Y. The feed roller pair 34 is composed of a drive roller 34A and a separation roller 34B (retard roller). The transport roller pair 35 is composed of a drive roller 35A and a driven roller 35B.
[0017] The discharge section 32 includes a discharge roller pair 36 disposed downstream of the reading area SA in the transport direction Y. The discharge roller pair 36 is composed of a drive roller 36A and a driven roller 36B. The discharge roller pair 36, together with the transport roller pair 35, also transports the document D during reading.
[0018] Thus, in order from the upstream side in the transport direction Y, the feed roller 33, the feed roller pair 34, the transport roller pair 35, and the discharge roller pair 36 are arranged in pairs at an interval in the width direction X.
[0019] The multiple rollers 33, 34A of the feed system are rotated by the power of a feed motor 37, which is the power source for these rollers. The multiple documents D loaded on the document support 13 are fed one by one from the bottom document into the main body 12 through the feed opening 12A by the feed roller 33. In this manner, the feed section 30A (rollers 33, 34A, etc.) is driven by the feed motor 37 as the power source.
[0020] Further, separation roller 34B of the feeding system and drive rollers 35A, 36A of the transport system are rotated by the power of a transport motor 38, which is their power source. The document D fed into main body 12 by feed roller 33 is transported to reading area SA and then discharged from discharge port 12B. In this manner, transport section 31 (pair of transport rollers 35, etc.) and discharge section 32 (pair of discharge rollers 36, etc.) are driven by transport motor 38, which is their common power source.
[0021] Further, the drive rollers 35A, 36A are rotationally driven to transport the document D at the same transport speed (reading speed) when reading the document D. Each of the driven rollers 35B, 36B rotates together with the rotation of the drive rollers 35A, 36A with which it is paired.
[0022] Also provided within the main body 12 is an encoder 44 (e.g., a rotary encoder) capable of detecting the rotation of one of the drive rollers of the transport system among the multiple roller pairs 34-36. The encoder 44 outputs a detection signal including a number of pulses proportional to the amount of rotation of the drive roller to the control unit 50 (controller). Therefore, based on the detection signal of the encoder 44, the control unit 50 can grasp the position (transport position) and transport speed of the document D being transported in the control unit 50.
[0023] Further, a document sensor 45 that detects the presence or absence of a document D set on the document support 13 is disposed between the pair of feed rollers 33. The document sensor 45 is, for example, a contact sensor having a lever, and when a document D is set on the document support 13, the set document D presses the lever to turn ON.
[0024] Further, a document presence / absence sensor 46 capable of detecting the presence or absence of a document D is disposed at a position slightly downstream of the nip point of the transport roller pair 35 in the transport direction Y. The document presence / absence sensor 46 is, for example, a contact sensor having a lever (contact). The document presence / absence sensor 46 detects the document D when the leading edge of the document D presses the lever and turns ON, and when the trailing edge of the document D passes by and the lever is no longer pressed, the document presence / absence sensor 46 no longer detects the document D and turns OFF. Therefore, based on the detection signal (ON / OFF) of the document presence / absence sensor 46, the control unit 50 detects that the leading edge of the document D has passed the transport roller pair 35 and that the trailing edge of the document D has passed the transport roller pair 35. The detection result of the document presence / absence sensor 46 detecting the leading edge and trailing edge of the document D is used for control that determines the timing of starting and ending the reading operation of the reading unit 40 (40A, 40B) described later. Furthermore, since the document presence sensor 46 can detect the leading and trailing ends of the document D, it can also detect the length of the document D in the transport direction Y based on the transport distance of the document D from when the leading end of the document D is detected until the trailing end of the document D is detected, that is, the document size determined from that length. The document presence sensor 46 may be a non-contact sensor such as an optical sensor.
[0025] 2, a reading unit 40 that reads an image is provided within the main body 12 of the image reading device 11. A pair of reading units 40 are provided on both sides of the transport path 29 at a position between the transport roller pair 35 and the discharge roller pair 36 in the transport direction Y. In this embodiment, the pair of reading units 40 includes a first reading unit 40A that reads the front surface (lower surface) of the document D transported along the transport path 29 and a second reading unit 40B that reads the back surface (upper surface) of the document D transported along the transport path 29, and are arranged at positions slightly shifted from each other in the transport direction Y, but a configuration may be provided without one of the reading units.
[0026] The pair of reading units 40 is composed of a light source 41 capable of irradiating light onto a reading area SA to irradiate light onto a document D being transported, and an image sensor 42 capable of reading an image from the document D. In a normal reading mode, only the first reading unit 40A performs a reading operation to read the front side of the document D, and in a double-sided reading mode, both the first reading unit 40A and the second reading unit 40B perform a reading operation to read both sides (front and back) of the document D.
[0027] The light source 41 is composed of, for example, an LED or a fluorescent lamp. The light source 41 is composed of a plurality of light-emitting units 47 that emit light of different colors. Specifically, as shown in FIG. 7, the light source 41 is composed of, for example, a first light-emitting unit 47-1 that emits red (R) light, a second light-emitting unit 47-2 that emits green (G) light, and a third light-emitting unit 47-3 that emits blue (B) light. The light source 41 causes the first light-emitting unit 47-1 to the third light-emitting unit 47-3 to emit light for a predetermined time in a predetermined order based on the control of the AFE 60, which will be described later. In the following description, when the first light-emitting unit 47-1 to the third light-emitting unit 47-3 are not distinguished from one another, they are simply referred to as "light-emitting units 47".
[0028] The image sensor 42 shown in FIG. 2 receives light reflected by the document D from the light source 41, converts the received light into an electric signal, and outputs an analog signal according to the amount of received light. In this way, the image sensor 42 is a sensor that reads an image. The image sensor 42 is, for example, a linear image sensor. The image reading device 11 is capable of color scanning and monochrome scanning (grayscale scanning). When the first light-emitting unit 47-1 shown in FIG. 7 is emitting light, the image sensor 42 receives reflected light of the light irradiated from the first light-emitting unit 47-1 and reflected by the document D. When the second light-emitting unit 47-2 shown in FIG. 7 is emitting light, the image sensor 42 receives reflected light of the light irradiated from the second light-emitting unit 47-2 and reflected by the document D. When the third light-emitting unit 47-3 shown in FIG. 7 is emitting light, the image sensor 42 receives a reflection of the light irradiated from the third light-emitting unit 47-3 and reflected by the document D. The image sensor 42 is an example of a "light receiving section," and the analog signal is an example of a "light receiving signal."
[0029] 2 may be referred to as the first light source 41A and the first image sensor 42A on the first reading unit 40A side, and as the second light source 41B and the second image sensor 42B on the second reading unit 40B side. The light-emitting units 47 of the first light source 41A may be referred to as the first light-emitting unit 47A-1, the second light-emitting unit 47A-2, and the third light-emitting unit 47A-3, and the light-emitting units 47 of the second light source 41B may be referred to as the first light-emitting unit 47B-1, the second light-emitting unit 47B-2, and the third light-emitting unit 47B-3.
[0030] The image sensor 42 is, for example, a contact-type image sensor in which a plurality of photoelectric conversion elements are arranged in a row along the main scanning direction X. Specifically, the image sensor 42 is a CMOS (Complementary Metal Oxide Semiconductor) image sensor. In this case, the image sensor 42 outputs to the conversion unit 63 an analog signal for one line indicating the intensity of the received light.
[0031] Furthermore, a color reference plate 43 is disposed so as to face the image sensor 42 across the transport path 29. The color reference plate 43 is disposed in an area that includes the area of the document D and is wider than the area of the document D among the areas to be read by the reading unit 40. Therefore, it is a member that makes it possible to grasp whether the area of the document D is included as an image read by the reading unit 40. In other words, the color reference plate 43 is a background plate that is read as the background of the document D. The color reference plate 43 is also a member for obtaining a white reference value for shading correction, and a white reference plate that exhibits white or a gray reference plate that exhibits gray (gray) is used. Thereby, the color reference plate 43 is read as a white reference image, and a white reference value is generated based on the read white reference image. In the case of a gray reference plate, it is also used to detect the position and area of the document D by reading it as the background (gray background) of the document. Note that, when a sensor for detecting the document area is separately provided, it is preferable that the color reference plate 43 is a white reference plate. Furthermore, the color reference plate 43 is not limited to a plate shape, and any shape and color may be used as long as it is a reference member for obtaining a white reference value that serves as a luminance reference.
[0032] The image reading device 11 includes a control unit 50. When a job to read an image from an original D is input based on an operation signal from an input unit 21 (see FIG. 1) operated by a user or a read instruction signal (read instruction) from an external terminal device (host device) communicably connected to the image reading device 11, the control unit 50 controls each unit to execute a reading process. The control unit 50 controls, for example, a feed motor 37, a transport motor 38, and a reading unit 40 (40A, 40B), and processes image data based on the image read from the original D by the reading unit 40.
[0033] Next, the electrical configuration of the image reading device 11 will be described with reference to Fig. 3. As shown in Fig. 3, the image reading device 11 has a built-in control unit 50 that performs overall control thereof. The control unit 50 includes a computer 70 including a microprocessor or the like. In this embodiment, the computer 70 corresponds to an example of a "control circuit." The computer 70 includes, for example, a transport control unit 71, a reading control unit 72, an image processing unit 73, and a storage unit 80.
[0034] The control unit 50 includes an analog front end 60 (hereinafter, also referred to as “AFE 60”) as an example of a relay circuit. The AFE 60 includes, for example, a light emission control unit 61, a read control unit 62, and a conversion unit 63.
[0035] The transport control unit 71, the reading control unit 72, and the image processing unit 73 are realized by a hardware processor such as a CPU (Central Processing Unit) executing a program PR (software). Some or all of these components may be realized by hardware (including circuitry) such as an LSI (Large Scale Integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a GPU (Graphics Processing Unit), or may be realized by a combination of software and hardware.
[0036] The program PR may be stored in advance in a storage unit 80 realized by a HDD, a flash memory, or the like, or may be stored in a removable storage medium (non-transient storage medium) such as a DVD or a CD-ROM, and installed by inserting the storage medium into a drive device. The storage unit 80 also stores location information 81 and correspondence information 82. Details of the location information 81 and the correspondence information 82 will be described later.
[0037] The transport control unit 71 drives and controls the feed motor 37 and the transport motor 38. The feed motor 37 drives the feed roller 33 to rotate, and the documents D set on the document support 13 are fed into the main body 12 one by one starting from the lowest one. The feed motor 37 drives the drive roller 34A constituting the pair of feed rollers 34, and the transport motor 38 drives the separation roller 34B. In particular, the transport control unit 71 drives and controls the feed motor 37 and the transport motor 38 so that the document D is transported through the reading area SA on the transport path 29 at a reading speed corresponding to the reading resolution (e.g., 300 / 600 dpi). For example, when the reading resolution is relatively low (e.g., 300 dpi), the document D is transported at a high speed, and when the reading resolution is relatively high (e.g., 600 dpi), the document D is transported at a low speed.
[0038] The reading control unit 72 controls the reading unit 40 via the AFE 60 to cause the reading unit 40 to read an image of the document D. In particular, the reading control unit 72 outputs a control signal S1 that specifies the operation timing of various operations including the reading operation to the AFE 60. The control signal S1 is, for example, a pulse signal that outputs a pulse at predetermined time intervals. The predetermined time corresponds to the time interval when the reading result is read out from the image sensor 42 one line at a time.
[0039] The light emission control unit 61 outputs an instruction signal (hereinafter, light emission drive signal) that instructs one of the three light emitting units 47-1 to 47-3 to emit light every time a pulse of the control signal S1 is input. Specifically, the light emission control unit 61 outputs the light emission drive signal so as to switch in order one light emitting unit to emit light every time a pulse of the control signal S1 is input. Therefore, only one of the three light emitting units 47-1 to 47-3 instructed by the light emission drive signal emits light. The three light emitting units 47-1 to 47-3 emit light in order at the same period as the pulse period of the control signal S1. The order of the light emission colors is predetermined. Hereinafter, it is assumed that the first light emission color is red, and the order of light emission is red, green, and blue.
[0040] The read control unit 62 controls the read timing of an analog signal, which is a light reception signal for one line received by the image sensor 42 during one light emission period of the light emitting unit 47, based on a control signal S1 input from the read control unit 72. The image sensor 42 outputs an analog signal for one line to the conversion unit 63 at each read timing instructed by the read control unit 62. The read control unit 62 outputs a read signal S2 (see FIG. 7) to the image sensors 42A and 42B, for example, at the timing when a pulse of the control signal S1 is input from the read control unit 72. The read signal S2 is a pulse signal with the same period as the control signal S1. The read control unit 62 generates a read signal S2 with the same period based on the input control signal S1. The image sensors 42A and 42B output an analog signal for one line to the AFE 60 every time a pulse of the read signal S2 is input from the read control unit 72.
[0041] The conversion unit 63 performs analog-to-digital conversion on the analog signal output from the image sensor 42 to generate pixel data PD. Furthermore, the conversion unit 63 generates digital data DD by adding color information CI indicating the color of the reflected light received by the image sensor 42 to the pixel data PD. The conversion unit 63 converts the analog signal into digital data DD, for example, every time a light emission drive signal is input from the light emission control unit 61.
[0042] In the above description, the image sensors 42A and 42B output analog signals to the AFE 60 in response to the input of the read signal S2 from the read control unit 62, but this is not limiting. In the following description, the image sensors 42A and 42B output analog signals to the AFE 60 in response to the input of the read signal S2 from the read control unit 72.
[0043] The digital data DD is, for example, composed of a plurality of digit bits per frame. The following describes a case where the digital data DD is data of 35 bits per frame. Fig. 4 shows a first digital data DD showing an example of the configuration of the digital data DD, Fig. 5 shows a second digital data DD showing another example of the configuration of the digital data DD, and Fig. 6 shows a third digital data DD showing another example of the configuration of the digital data DD.
[0044] As shown in FIGS. 4 to 6, the 35-bit digital data DD includes color information CI represented by, for example, 3 bits. In general, the intensity of received light is expressed by 8-bit data with 256 gradations by A / D conversion. Therefore, the digital data DD includes 3-bit color information CI and 8-bit data for a maximum of 4 pixels, totaling 35 bits of data. The digital data DD includes pixel data PD for 1 to 4 pixels depending on, for example, the resolution of the image generated by the reading process. All pixel data PD included in the same frame are data of the luminescent color indicated by the color information CI. The conversion unit 63 generates a plurality of digital data DD based on, for example, an analog signal acquired from the image sensor 42, including pixel data PD for pixels of one line, the number of pixels corresponding to the resolution of the image to be generated.
[0045] Here, the image reading device 11 is equipped with one of the AFEs 60 of multiple types. Depending on the type of the AFE 60, the bit positions of the three bits indicating the color information CI included in the 35-bit digital data DD may differ. In other words, the color information CI is composed of multiple bits consisting of values located at some digits of the digital data DD consisting of multiple digits of bits. The digital data DD converted by the conversion unit 63 of one type of AFE 60 indicates the color information CI by, for example, the first three bits (see FIG. 4). Meanwhile, the digital data DD converted by the conversion unit 63 of another type of AFE 60 indicates the color information CI by a total of three bits, which is one bit between the 8-bit pixel data PD for four pixels (see FIG. 5). Meanwhile, the digital data DD converted by the conversion unit 63 of the other type of AFE 60 indicates the color information CI by the last three bits (see FIG. 6).
[0046] The position information 81 stored in the storage unit 80 is, for example, information indicating the bit positions of the color information CI among the multiple bits that make up the digital data DD. The storage unit 80 stores in advance, for example, position information 81 that corresponds to the AFE 60 mounted on the image reading device 11 and indicates the bit positions of the color information CI included in the digital data DD.
[0047] The bit positions of the color information CI in the digital data DD described above are merely an example, and the present invention is not limited to this, and the color information CI may be located at other bit positions. The image processing unit 73 stores, for example, pixel data PD in the digital data DD input from the conversion unit 63 in the storage unit 80 for each color indicated by the color information CI. The image processing unit 73 acquires the digital data DD from the AFE 60 at predetermined time intervals. That is, the image processing unit 73 inputs the digital data DD sent from the AFE 60 for each reading cycle based on the read signal S2 output by the read control unit 62 to the AFE 60. The image processing unit 73 includes, for example, an extraction unit 74, a management unit 75, a determination unit 76, and a write control unit 77.
[0048] The extraction unit 74 extracts color information CI from the digital data DD. For example, the extraction unit 74 extracts multiple bits (e.g., 3 bits) of color information CI by acquiring a value of a bit position indicated by position information 81 from the digital data DD acquired from the AFE 60. By extracting the color information CI, the extraction unit 74 separates the digital data DD into color information CI and pixel data PD. The extraction unit 74 sends the color information CI to the determination unit 76 and sends the pixel data PD to the write control unit 77.
[0049] The management unit 75 manages managed color information MC, which is an estimated value of the color information CI, based on the control signal S1. That is, the management unit 75 estimates the color information CI included in the digital data DD input from the AFE 60 based on the control signal S1 output by the reading control unit 72, and manages the estimated value as managed color information MC. The managed color information MC is information that indicates the expected color information CI included in the digital data DD acquired from the AFE 60.
[0050] The determination unit 76 determines whether or not the color information CI extracted by the extraction unit 74 matches the managed color information MC managed by the management unit 75. The determination result of the determination unit 76 is sent to the management unit 75. When the management unit 75 receives a determination result from the determination unit 76 indicating that the color information CI matches the managed color information MC, the management unit 75 permits the write control unit 77 to store (write) the pixel data PD in the memory unit 80. On the other hand, when the management unit 75 receives a determination result from the determination unit 76 indicating that the color information CI does not match the managed color information MC, the management unit 75 prohibits the write control unit 77 from storing (writing) the pixel data PD in the memory unit 80.
[0051] If writing is permitted by management unit 75 when color information CI and managed color information MC match, write control unit 77 stores pixel data PD sent from extraction unit 74 in storage unit 80. If writing is prohibited by management unit 75 when color information CI and managed color information MC do not match, write control unit 77 does not store pixel data PD sent from extraction unit 74 in storage unit 80.
[0052] <Detailed configuration related to reading and writing processes> Hereinafter, with reference to FIG. 7, a detailed configuration for performing the reading process and the writing process in the image reading device 11 will be described.
[0053] As shown in FIG. 7, a computer 70, which is an example of a control circuit, includes a read control unit 72, an image processing unit 73, and a storage unit 80. The image processing unit 73 includes, for example, a sampling circuit CC1, a color management circuit CC2, and a writing circuit CC3. The sampling circuit CC1 includes an extraction unit 74. The color management circuit CC2 includes a management unit 75, a determination unit 76, and a color counter CT. The writing circuit CC3 includes a writing control unit 77. The extraction unit 74 includes a first register 78 and a second register 79. The first register 78 is an example of a "first storage unit," and the second register 79 is an example of a "second storage unit." Note that all or a part of each of the circuits CC1 to CC3, or the extraction unit 74, management unit 75, determination unit 76, and writing control unit 77 in each of the circuits CC1 to CC3, and further functional components such as the read control unit 72 may be configured by the computer 70 that executes the program PR.
[0054] First, the reading control unit 72 outputs a control signal S1 to the AFE 60 when the reading process starts. That is, the computer 70 outputs the control signal S1 to the AFE 60 via the reading control unit 72. The light emission control unit 61 outputs a light emission drive signal to the light source 41 based on the control signal S1 input from the reading control unit 72. When the light emission control unit 61 inputs the first pulse of the control signal S1 with the start of the reading process from the reading control unit 72, it outputs a light emission drive signal that instructs the first light emission unit 47-1, which is to be the first of the multiple light emission units 47 to emit light, to emit light. Thereafter, the light emission control unit 61 outputs a light emission drive signal that instructs the light source 41 to switch the emission color every time it inputs a pulse of the control signal S1.
[0055] As shown in FIG. 7, the reading control unit 72 also outputs a control signal S1 to a color counter CT in the same computer 70. The computer 70 has a color counter CT that repeatedly counts the number of pulses of the control signal S1 to the same value as the number of luminous colors that the light source 41 can emit. The management unit 75 manages the management color information MC based on the count value of the color counter CT. As described above, the light source 41 in this embodiment can emit three luminous colors, red, green, and blue. The management unit 75 in this embodiment repeatedly counts the number of pulses of the control signal S1 input from the reading control unit 72, from 0 to 2, using the color counter CT. The color counter CT changes the count value by 1 each time it inputs a pulse of the control signal S1 from the reading control unit 72. When the color information CI and the management color information MC match, the management unit 75 performs counting of the color counter CT, and when the color information CI and the management color information MC do not match, the management unit 75 maintains the value of the management color information MC by stopping the counting of the color counter CT.
[0056] As described above, the order of the luminous colors is red, green, and blue. When the management unit 75 changes the color counter CT in ascending order, the luminous color corresponding to 0 is "red," the luminous color corresponding to 1 is "green," and the luminous color corresponding to 2 is "blue."
[0057] Here, the timing at which the AFE 60 sequentially causes the light emitting units 47-1 to 47-3 to emit light in different emission colors based on the light emission drive signal and the read timing at which the AFE 60 reads out the analog signal obtained by the image sensor 42 receiving the reflected light of the emission color are shifted by one pulse period of the control signal S1. Therefore, the color counter CT starts counting from the second pulse that is delayed by one pulse period from the first pulse of the control signal S1. The initial value of the color counter CT is, for example, "0". The managed color information MC is information indicating the color corresponding to the three count values of "0", "1", and "2" that are the count values of the color counter CT, so the color indicated by the managed color information MC changes according to the control signal S1. Note that the light emitting colors that the light source 41 emits light in different timings are not limited to three colors, and may be, for example, four colors. In this case, the color counter CT may repeat four counts from 0 to 3, and manage the color corresponding to the count value as the managed color information MC of four colors that is an estimated value of the color information CI.
[0058] <effect> The operation of the image reading device 11 will be described below with reference to FIG. 8 and the like. In FIG. 8, the horizontal axis indicates time, and from the top, the management color information MC, the control signal S1, the light source emission color LC, the read signal S2, and the digital data DD are indicated. In the example of FIG. 8, at time t11, the reading control unit 72 outputs a pulse of the control signal S1. When the pulse of the control signal S1 is first input at time t11, the light emission control unit 61 first outputs a light emission drive signal instructing the first light emitter 47-1 to emit light, and causes the first light emitter 47-1 to emit red light. Then, from time t11, the first light emitter 47-1 continuously emits red (R) light for a predetermined light emission period. Hereinafter, the emission color of the light emitter that is actually emitting light based on the control of the light emission control unit 61 will be referred to as the "light source emission color LC". In this case, the light source emission color LC is red from time t11 to time t12.
[0059] When the light emission control unit 61 inputs the next pulse of the control signal S1 from the reading control unit 72 at time t12, it outputs a light emission drive signal to the second light-emitting unit 47-2 that is to emit light next, and causes the second light-emitting unit 47-2 to emit green (G) light from time t12 to time t13. In this case, the light source emission color LC is green from time t12 to time t13.
[0060] 8, the read control unit 62 causes the image sensor 42 to start a one-line read operation at the timing of time t11 when the pulse of the control signal S1 is input. As the one-line read operation, the image sensor 42 receives, for a predetermined light-receiving period, reflected light from the document D that reflects red light emitted at that time from the first light-emitting unit 47-1. When the predetermined light-receiving period has elapsed, the read control unit 62 outputs a read signal S2 to the image sensor 42. In response to the input of the read signal S2 from the read control unit 62, the image sensor 42 outputs an analog signal (light-receiving signal) for one line to the AFE 60.
[0061] At time t12, the conversion unit 63 performs analog-to-digital conversion of the analog signal input from the image sensor 42 and converts it into pixel data PD (FIGS. 4 to 6). The conversion unit 63 obtains information on the emission color relating to which light-emitting unit is being made to emit light by the light-emission drive signal by the light-emission control unit 61. The conversion unit 63 specifies the color immediately preceding the current emission color information from the light-emission control unit 61 as the color of the pixel data PD.
[0062] As described above, in this embodiment, the light emission control unit 61 causes the light emitting units to emit light one by one in the order of red, green, and blue, for example. Therefore, at time t12, the conversion unit 63 identifies red, which is the emission color preceding the current emission color green, as the color of the pixel data PD. At time t12, the conversion unit 63 adds color information CI indicating red to the pixel data PD to generate digital data DD.
[0063] The conversion unit 63 may include a pulse counter that repeatedly counts the number of pulses of the control signal S1 from 0 to 2, and may identify the color of the reflected light received by the image sensor 42 based on the count value. In this case, the conversion unit 63 may identify the color of the light emitted by the image sensor 42 based on the count value of the pulse counter and a predetermined emission sequence.
[0064] At time t12, the image processing unit 73 acquires digital data DD in which color information CI indicates red. Also, at time t12, the management color information MC indicates red. Therefore, the color of the color information CI included in the digital data DD and the color indicated by the management color information MC indicate red and match each other between time t12 and time t13.
[0065] Through the above-described process, the light emission control unit 61 outputs a pulse of the light emission drive signal every time the reading control unit 72 outputs a pulse of the control signal S1, and sequentially switches the light emitting units 47 to emit light. Accordingly, the color of the color information CI included in the digital data DD and the color indicated by the management color information MC change sequentially while remaining consistent.
[0066] Here, noise may be superimposed on the wiring connecting the AFE 60 and the computer 70. In the example shown in Fig. 8, noise NS is superimposed on the control signal S1 at time tα. At time tα, the light emission control unit 61 regards the noise NS as a pulse of the control signal S1 and switches the light emission unit 47 to emit light in response to the light emission drive signal. Therefore, in the example shown in Fig. 8, the light emission control unit 61 switches the light emission drive signal at the timing when the noise NS is input, and causes the second light emission unit 47-2 to emit green light before the timing of time t16, which is a predetermined time after time t15.
[0067] At time tα, the read control unit 62 regards the noise NS as a pulse of the control signal S1 and outputs a read signal S2 to the image sensor 42. The conversion unit 63 performs analog-to-digital conversion of the analog signal input from the image sensor 42 to obtain pixel data PD. At time tα, a predetermined time has not yet elapsed since the light source emission color LC became green, and the conversion unit 63 converts the analog signal into digital data DD before the image sensor 42 receives a sufficient amount of reflected light.
[0068] Furthermore, at time tα, the conversion unit 63 determines that the light emission drive signal is a signal instructing the third light-emitting unit 47-3 to emit light of blue. The conversion unit 63 then determines that the light emission color before blue in the light emission order is green. The conversion unit 63 adds color information CI indicating green to the pixel data PD acquired at time tα to generate digital data DD. Therefore, at time tα, the light emission color of the color information CI included in the digital data DD is green, but the managed color information MC remains red. For this reason, after time tα, the color information CI included in the digital data DD does not match the managed color information MC.
[0069] For example, in a configuration in which pixel data PD included in digital data DD is stored in storage unit 80 on the assumption that the color indicated by managed color information MC is correct without comparison with color information CI, after time tα, there are cases in which write control unit 77 mistakenly recognizes pixel data PD included in digital data DD as the color indicated by managed color information MC and stores it in storage unit 80. To prevent write control unit 77 of this embodiment from writing pixel data PD of an incorrect luminescent color to storage unit 80, management unit 75 manages whether or not to write pixel data PD to storage unit 80 based on the comparison result between color information CI and managed color information MC by determination unit 76.
[0070] <Determination process and write control process> The determination process and the write control process will be described in detail below with reference to Fig. 9. Fig. 9 is a diagram showing, for example, changes over time in the count value of the color counter CT, the management color information MC, the color information CI extracted by the extraction unit 74, and the write color information WI, which is information indicating the color of the pixel data PD that the write control unit 77 writes into the storage unit 80.
[0071] The first register 78 stores position information 81 read from the storage unit 80 by the computer 70 when the image reading device 11 is powered on. The second register 79 stores correspondence information 82 read from the storage unit 80 by the computer 70 when the image reading device 11 is powered on. The correspondence information 82 is, for example, information indicating the correspondence relationship between the values of the color information CI and the managed color information MC. The second register 79 includes an R register, a G register, and a B register. The R register stores a 3-bit value indicating the color information CI corresponding to red (R) in the correspondence information 82, the G register stores a 3-bit value indicating the color information CI corresponding to green (G) in the correspondence information 82, and the B register stores a 3-bit value indicating the color information CI corresponding to blue (B) in the correspondence information 82.
[0072] The color information CI in the digital data DD is set to a value that the AFE 60 has determined by itself. In the computer 70 of this example, red is set to "001", green is set to "010", and blue is set to "100", whereas in the AFE 60, a different value may be set for at least one of these three colors. As an example, the AFE 60 may be set to values different from those of the computer 70, such as red to "100", green to "001", and blue to "010". The computer 70 stores the color values set on the AFE 60 side in each RGB register of the second register 79. In the above example, the computer 70 stores the AFE 60 side red value "100" in the R register of the second register 79, the AFE 60 side green value "001" in the G register, and the AFE 60 side blue value "010" in the B register. Since the values indicating colors differ depending on the manufacturer of the AFE 60, the computer 70 is provided with a second register 79 so as to be compatible with any manufacturer's AFE 60. During the reading operation of the image reading device 11, the color counter CT has an initial value of "0" and counts up by one each time a pulse of the control signal S1 is input.
[0073] The extraction unit 74 identifies the bit position where the color information CI is located in the digital data DD based on the position information 81 stored in the first register 78, and extracts, for example, 3 bits of color information CI from the identified bit position of the digital data DD. Next, the extraction unit 74 compares the color information CI extracted from the digital data DD with the values stored in the RGB registers constituting the second register 79, and outputs color information CI indicating a color corresponding to one of the RGB registers whose values match. Therefore, even if the values of each RGB color indicated by the color information CI in the digital data DD generated by the AFE 60 differ from the color information values of each RGB color that can be recognized by the color management circuit CC2 on the computer 70 side, the extraction unit 74 outputs color information CI obtained by converting the value of the color information CI on the AFE 60 side into a value that can be recognized by the color management circuit CC2 on the computer 70 side. For example, if the color information CI extracted from the digital data DD is "100", the extraction unit 74 outputs "001" indicating the color red corresponding to the R register, since this value matches the value stored in the R register. Similarly, if the color information CI extracted from the digital data DD is "001", the extraction unit 74 outputs "010" indicating the color green, since this value matches the value stored in the G register, and if the extracted color information CI is "010", the extraction unit 74 outputs "100" indicating the color blue, since this value matches the value stored in the B register. The color information CI output from the extraction unit 74 is input to the determination unit 76 of the color management circuit CC2.
[0074] Next, at time t21, the determination unit 76 determines whether or not the color indicated by the color information CI input from the extraction unit 74 matches the color indicated by the managed color information MC managed by the management unit 75. At time t21 shown in Fig. 9, the count value of the color counter CT indicates "1", so the managed color information MC is "010", and the color information CI is "010". Since the color information CI "010" matches the managed color information MC "010", the determination unit 76 determines that the color indicated by the color information CI of the digital data DD acquired from the AFE 60 is scheduled to be green.
[0075] At time t21, the value of the color counter CT is "1" indicating green, so the management unit 75 sets the write color information WI to the value "010" indicating the same green color as the color indicated by the value of the color counter CT. At time t21, the write control unit 77 writes the pixel data PD to the green memory area in the memory unit 80, because the color indicated by the write color information WI is green.
[0076] Through similar processing, at time t22, management unit 75 receives from determination unit 76 a determination result that color information CI "100" matches management color information MC "100", and permits color counter CT to count. Therefore, when a pulse of control signal S1 is input, the count value of color counter CT advances by one to "2". Accordingly, management unit 75 sets write color information WI to the blue value "100" indicated by the value "100" of color counter CT. At time t22, the write control unit 77 writes pixel data PD to the blue storage area in storage unit 80, because the color indicated by the write color information WI is blue.
[0077] In the example shown in FIG. 9, noise NS (see FIG. 8) is superimposed on the control signal S1 between time t23 and time t24. Time t23 in FIG. 9 corresponds to time t15 in FIG. 8, and since the color information CI(R) in the digital data DD and the managed color information MC(R) match at time t15 in FIG. 8, the count value of the color counter CT advances by one to "0" at t23 in FIG. 9. When noise NS occurs at time tα in FIG. 8, the color information CI extracted from the digital data DD changes from red (R) to green (G). Therefore, at time tα in FIG. 8, the color information CI(G) in the digital data DD and the managed color information MC(R) no longer match. As a result, at time t23 in FIG. 9, the color information CI changes from blue "100" to green "010", and the color information CI "010" no longer matches the managed color information MC "001". Therefore, at time t23, the determination unit 76 determines that the color information CI "010" does not match the managed color information MC "001."
[0078] Furthermore, when the management unit 75 obtains a determination result from the determination unit 76 indicating that the color information CI and the managed color information MC do not match, the management unit 75 does not change the count value of the color counter CT even if a pulse of the control signal S1 is input. Thereafter, the count value of the color counter CT does not change until the color information CI and the managed color information MC match. In this manner, when the color information CI and the managed color information MC do not match due to the influence of noise NS, the management unit 75 adjusts the managed color information MC to match the color information CI. In this embodiment, the adjustment is performed to match the managed color information MC to the color information CI by a count value adjustment process that does not change the count value of the color counter CT until the color information CI and the managed color information MC match. Note that the adjustment to match the managed color information MC to the color information CI may be performed by a count value adjustment process that changes the count value of the color counter CT in a predetermined order or to a predetermined value.
[0079] Furthermore, when the management unit 75 prohibits writing, it sets the value of the write color information WI to a value different from any of "001", "010", and "100" that the color information CI can take. Hereinafter, it is assumed that the value different from any of these is "000". The write control unit 77 does not store the pixel data PD in the storage unit 80 at time t23 based on the value "000" of the write color information WI that is set when the determination unit 76 determines that the color information CI and the management color information MC do not match. Furthermore, when the write color information WI is "000", the write control unit 77 may store pixel data PD of a predetermined color in the storage unit 80 instead of storing the pixel data PD of the digital data DD. The pixel data PD of the predetermined color will be described later.
[0080] 9, the determination unit 76 determines that the color information CI "100" does not match the management color information MC "001." Therefore, the count value of the color counter CT is not updated, and remains at "0." At time t24, the write control unit 77 does not store the pixel data PD in the memory unit 80 because the write color information WI is "000."
[0081] At time t25 in FIG. 9, the determination unit 76 determines that the color information CI "001" matches the managed color information MC "001". Here, even if the color information CI "001" matches the managed color information MC "001", if they were in a mismatched state up until that point, the management unit 75 does not update the color counter CT. For this reason, the color counter CT is maintained at "0". On the other hand, if the color information CI "001" matches the managed color information MC "001", the management unit 75 sets the write color information WI to the same value "001" as the color information CI. In other words, the write color information WI is set to the red value "001" indicated by the count value "0" of the color counter CT. At time t25, the write control unit 77 stores the red pixel data PD indicated by the write color information WI in the storage unit 80. After time t25, the management unit 75 increments the count value of the color counter CT by "1" each time it receives a pulse of the control signal S1. After time t26, the color information CI and the management color information MC change while taking the same value. Therefore, after time t26, the color information CI and the management color information MC match, and pixel data PD are written sequentially to the memory unit 80.
[0082] Here, when the pixel data PD in the digital data DD is not stored in the memory unit 80, pixel data of a predetermined color that is stored in the memory unit 80 instead will be described. The predetermined color may be, for example, a color arbitrarily determined by the user, a predetermined color that has been determined in advance, or a color that has been selected as a color that is less noticeable in an image generated by the reading process. Examples of colors that are less noticeable include white, black, and colors with low saturation. Hereinafter, the predetermined color is assumed to be white.
[0083] The pixel data PD of a predetermined color may be pixel data PD obtained by color-interpolating pixel data PD for each color read by the image sensor 42 for the lines before and after the line of pixel data PD in the digital data DD. Before the occurrence of noise NS, one line of pixel data is sent in the order of R, G, and B as three digital data DD. A line for which writing is stopped due to noise NS becomes a missing line with no pixel data PD. After that, when the color information CI and the management color information MC match and the next line after the missing line is determined, the image processing unit 73 obtains RGB pixel data for two lines before and after the missing line. Then, the image processing unit 73 performs color-interpolation processing on the R pixel data of the previous line and the R pixel data of the following line to generate R pixel data of the missing area of the missing line. Similarly, the image processing unit 73 performs color-interpolation processing on the G pixel data of the previous line and the G pixel data of the following line to generate G pixel data of the missing area of the missing line. Furthermore, image processing unit 73 performs color interpolation processing on the B pixel data of the previous line and the B pixel data of the following line to generate B pixel data of the missing area of the missing line. Then, write control unit 77 writes the pixel data PD of each color of RGB obtained by color interpolation processing to the missing area of the row of the missing line in the storage area for each color of storage unit 80. After writing of the missing area is completed, the pixel data PD of each color of RGB constituting the following line, which has been temporarily stored in a buffer (not shown), is written to the row of the following line in the storage area for each color of storage unit 80.
[0084] Also, the write control unit 77 may discard digital data DD including color information CI that does not match the management color information MC while the write color information WI is the value of "000". In this case, the area in the storage unit 80 corresponding to the discarded portion of the line becomes an empty area EA where nothing is stored. In this case, when the write color information WI is no longer the value of "000", for example, pixel data PD that should be written to the corresponding portion of the line next to the line including the empty area EA is written to the empty area EA one line above. Therefore, the same one line of the image is written in the part written in the empty area EA one line above and the other part of the same one line, shifted by one line. In this way, instead of filling the empty area EA with pixel data of the next line, the empty area EA may be left as an empty area. In this case, the pixel value of the empty area EA in the storage area for each color of the storage unit 80 remains unchanged from the initial value. The initial value can be set to any value, for example, it may be set to a pixel value indicating the background color of the paper of the document. Accordingly, in the read image SI generated by the reading process, the corresponding line is shown in a color corresponding to the initial pixel value.
[0085] <An example of an image generated by the reading process> FIG. 10 shows a read image of the original D in an example where pixel data PD of a predetermined color is stored in the storage unit 80 during correction, and the left diagram of the figure shows a comparative example where correction is not performed, and the right diagram of the figure shows an example where correction is performed. As shown in the left diagram of FIG. 10, if correction is not performed, the actual color of the pixel data PD in the digital data DD and the color indicated by the managed color information MC will be misaligned after noise occurrence NG. Therefore, when pixel data PD is written to the storage area of the color indicated by the managed color information MC in the storage unit 80, the pixel may have a color different from the original color of the original D in the range AR1 after noise occurrence NG. On the other hand, according to the image reading device 11 of this embodiment, a determination process is performed to determine whether the color information CI and the managed color information MC match, and correction is performed in the case of a mismatch where the colors are misaligned. Therefore, as shown in the right diagram of FIG. 10, after the color information CI and the managed color information MC no longer match due to noise occurrence NG, the pixel data PD in the digital data DD is not stored in the storage unit 80 until the color information CI of the digital data DD matches the managed color information MC. Instead, pixel data PD of a predetermined color is stored in storage unit 80 in place of pixel data PD in digital data DD. As a result, as shown in the right diagram of Fig. 10, the read image SI generated by image reading device 11 of this embodiment has pixels of a predetermined color different from the color of the original document D in a range AR2 of at least one line and at most two lines after noise generation NG, but thereafter can be composed of pixels of an appropriate color. Moreover, the pixel data PD of the predetermined color written into range AR2 is a color selected by the user or a preset color that is not easily noticeable, so the correction points on the image are not easily noticeable.
[0086] Fig. 11 shows a read image SI of an original D stored in a storage unit 80 in an example in which digital data DD is discarded during correction, with the left diagram showing a comparative example in which correction is not performed and the right diagram showing an example in which correction is performed. As shown in the left diagram of Fig. 11, when correction is not performed, in the range AR1 after noise occurrence NG, pixels may have a color different from the original color of the original D, as in the left diagram of Fig. 10.
[0087] On the other hand, according to the image reading device 11 of the present embodiment, a determination process is performed to determine whether the color information CI and the management color information MC match, and correction is performed when there is a mismatch due to color shift. For this reason, as shown in the right diagram of FIG. 11, after the color information CI and the management color information MC do not match due to noise generation NG, the digital data DD is discarded and the pixel data PD is not stored in the storage unit 80 until the color information CI of the digital data DD matches the management color information MC. Therefore, an empty area EA in which pixel data PD is not stored is generated in the storage area of the storage unit 80. As shown in the right diagram of FIG. 10, after noise generation NG, an empty area EA is generated in the read image SI in a range of at least one line and at most two lines. Then, the pixel data PD of the corresponding part in the line next to the line including the empty area EA is written in the empty area EA, moving up by one line. Thereafter, the pixel data of the same line is written with a shift of one line in the middle. Since the shift of pixel data belonging to the same line is one line, the correction part of the image is not noticeable.
[0088] <Disable correction> In the above description, when the determination unit 76 determines that the color information CI and the managed color information MC do not match, the write control unit 77 stores other pixel data PD in place of the pixel data PD in the digital data DD, or discards the pixel data PD in the digital data DD to execute the correction process, but the present invention is not limited to this. The write control unit 77 may switch between enabling and disabling the correction process based on a user's instruction. For example, the user operates the input unit 21 before or at the start of the reading process to instruct whether or not to enable the correction process. Then, the computer 70 accepts the enable or disable of the correction process based on the instruction signal input from the input unit 21. When the correction process is disabled, the write control unit 77 stores the pixel data PD in the digital data DD in the storage unit 80 even if the determination unit 76 determines that the color information CI and the managed color information MC do not match. For this reason, as shown in the right diagrams of each of FIG. 10 and FIG. 11, in a wide range AR1 after the noise generation NG, the pixels have a color different from the color of the original D. This allows the user to know at a glance that the image quality of the read image SI has deteriorated due to noise NS or the like, and allows the user to redo the reading of the document D. For example, for a user who desires a high-quality read image SI, the image quality after correction processing does not meet their needs, but if only one or two lines are corrected by the correction processing, there is a high possibility that the local degradation in image quality caused by the correction processing of the read image SI will be overlooked. In contrast, if the configuration allows correction to be disabled, it is possible to prevent the local degradation in image quality caused by the correction from being overlooked, and the user can obtain the high-quality read image desired by the user by redoing the reading.
[0089] As described above, according to this embodiment, the following effects can be obtained. (1) The relay circuit has a conversion unit 63. The conversion unit 63 generates digital data DD by adding color information CI, which indicates the color of the reflected light received by the image sensor 42, to pixel data PD obtained by analog-to-digital conversion of the received light signal.
[0090] The control circuit includes an image processing unit 73, which stores pixel data PD in the digital data DD input from the conversion unit 63 in a storage unit 80 for each color indicated by the color information CI. The image processing unit 73 includes an extraction unit 74, a management unit 75, a determination unit 76, and a write control unit 77. The extraction unit 74 extracts color information CI from the digital data DD. The management unit 75 manages managed color information MC, which is an estimated value of the color information CI based on a control signal S1. The determination unit 76 determines whether the color information CI extracted by the extraction unit 74 matches the managed color information MC. If the color information CI matches the managed color information MC, the write control unit 77 stores the pixel data PD in the digital data DD in the storage unit 80, and if the color information CI does not match the managed color information MC, the write control unit 77 does not store the pixel data PD in the storage unit 80. When the color information CI and the managed color information MC do not match, the management unit 75 adjusts the managed color information MC to match the color information CI. This allows the determination unit 76 to appropriately determine the presence or absence of the influence of noise NS by comparing the color information CI included in the digital data DD with the managed color information MC. When the color information CI and the managed color information MC do not match due to the influence of noise NS, the management unit 75 adjusts the managed color information MC to match the color information CI. Therefore, the write control unit 77 does not write the digital data DD as pixel data PD to the storage unit 80 until the influence of noise NS disappears. As a result, the influence of noise NS on the read image SI generated by the reading process can be suppressed. Furthermore, the image reading device 11 can suppress the influence of noise NS even if the reading unit 40 is configured to have only one image sensor 42 that commonly receives light of the emitted color from the multiple light emitting units 47.
[0091] (2) The digital data DD is data composed of multiple bits, and the color information CI is composed of multiple bits whose values are located at some of the multiple digits, the control circuit includes a first register 78 capable of storing position information 81 indicating the positions of some of the digits, and the extraction unit 74 extracts the multiple bits of color information CI from the digital data DD based on the position information 81 stored in the first register 78. In this way, the extraction unit 74 can extract the color information CI included in the digital data DD even if the bit positions constituting the color information CI in the digital data DD differ depending on the type of AFE 60.
[0092] (3) The value of the color information CI included in the digital data DD may be different even for the same color as the management color information MC. The control circuit includes a second register 79 capable of storing correspondence information 82 indicating the correspondence between the value of the color information CI and the value of the management color information MC. The extraction unit 74 converts the value of the color information CI extracted from the digital data DD based on the correspondence information 82, and then outputs the color information CI to the determination unit 76. In this way, the determination unit 76 can use the color indicated by the color information CI in the determination process, even if the way in which the color indicated by the color information CI is expressed differs depending on the type of AFE 60.
[0093] (4) When it is determined that the color information CI and the managed color information MC do not match, the write control unit 77 stores pixel data PD of a predetermined color in the memory unit 80, separated by color, instead of the pixel data PD, until the determination unit 76 determines that the color information CI and the managed color information MC match. The write control unit 77 stores a color arbitrarily determined by the user as the predetermined color in the memory unit 80 as pixel data PD, thereby making it possible to generate an image by the reading process in a manner desired by the user. Furthermore, the write control unit 77 stores a predetermined predetermined color in the memory unit 80 as pixel data PD, thereby making it possible to suppress the influence of noise NS by simple processing. Furthermore, the write control unit 77 stores a color that is less noticeable in the image generated by the reading process in the memory unit 80 as pixel data PD, thereby making it possible to suppress the influence of noise NS.
[0094] (5) The pixel data PD of a specific color is pixel data PD obtained by color-interpolating the pixel data PD for each color read by the image sensor 42 on the lines before and after the line of pixel data PD in the digital data DD. With this configuration, the pixel data PD of a line that was not read correctly due to the influence of noise NS is color-interpolated using the pixel data PD of the lines before and after it. Therefore, the image reading device 11 can make color unevenness caused by the influence of noise NS less noticeable compared to a configuration in which the pixel data PD is supplemented with dummy pixel data PD that has a predetermined color.
[0095] (6) When the determination unit 76 determines that the color information CI does not match the managed color information MC, the write control unit 77 discards the pixel data PD until the determination unit 76 determines that the color information CI matches the managed color information MC. This enables the write control unit 77 to prevent digital data DD affected by noise NS from being included in the image generated by the reading process.
[0096] (7) The write control unit 77 is provided with an input unit 21 that can instruct whether to enable or disable a correction process that does not write pixel data PD to the storage unit 80 when the color information CI and the managed color information MC do not match. When an instruction to disable is received from the input unit 21, the write control unit 77 stores the pixel data PD in the storage unit 80 even when the color information CI and the managed color information MC do not match. With this configuration, the user can select whether to enable or disable the correction process according to their needs by operating the input unit 21. Therefore, the user can obtain image data obtained by reading the original D with the desired quality.
[0097] (8) The computer 70 includes a color counter CT that repeatedly counts the number of pulses of the control signal S1 the same number as the number of light-emitting units 47. The management unit 75 manages the management color information MC based on the count value of the color counter CT. When the color information CI matches the management color information MC, the management unit 75 counts the color counter CT, and when the color information CI does not match the management color information MC, the management unit 75 stops counting the color counter CT to maintain the value of the management color information MC. Therefore, when the color information CI and the management color information MC no longer match due to the influence of noise NS, the count of the color counter CT is stopped during that time, and the value of the management color information MC is maintained. At this time, the value of the color information CI changes, so that the color information CI and the management color information MC can be made to match by simply postponing the storage of the pixel data PD in the storage unit 80 a maximum number of times equal to the number of light-emitting units 47 (for example, a maximum of three times), and the influence of noise on the read image is reduced.
[0098] (9) The image reading control method reads an original D and acquires an image by using a plurality of light-emitting units 47 that emit light of different colors and an image sensor 42 that receives light reflected from the original D by the light-emitting units 47. The image reading control method includes a computer 70 that outputs a control signal S1 that controls the light-emitting units 47 and the image sensor 42, and an AFE 60 that controls the light-emitting units 47 and the image sensor 42 based on the control signal S1 input from the computer 70. The computer 70 outputs the control signal S1 to the AFE 60. Based on the control signal S1, the AFE 60 causes the plurality of light-emitting units 47 to emit light in sequence at different timings, and causes the image sensor 42 to receive the reflected light of each emitted color, and inputs a received light signal from the image sensor 42. The AFE 60 generates digital data DD by adding color information CI indicating the color of the reflected light received by the image sensor 42 to pixel data PD obtained by analog-to-digital conversion of the received light signal, and outputs the digital data DD to the computer 70. The computer 70 obtains managed color information MC, which is an estimate of the color information CI based on the control signal S1. The computer 70 extracts the color information CI from the digital data DD. The computer 70 determines whether the extracted color information CI matches the managed color information MC. If the color information CI matches the managed color information MC, the computer 70 stores the pixel data PD in the memory unit 80, and if the color information CI does not match the managed color information MC, the computer 70 does not store the pixel data PD in the memory unit 80. If the color information CI does not match the managed color information MC, the computer 70 adjusts the managed color information MC to match the color information CI. According to this image reading control method, the same effects as those of the image reading device 11 described in (1) above can be obtained.
[0099] (10) The program is executed by a computer provided in an image reading device 11 that has a plurality of light-emitting units 47 that emit light of different colors and an image sensor 42 that receives light reflected from an original D from the light-emitting units 47, and that reads an original D to obtain an image, and the image reading device 11 has a computer 70 and an AFE 60 that controls the light-emitting units 47 and the image sensor 42 based on a control signal S1 input from the computer 70. The program PR causes the computer 70 to execute the following steps: outputting a control signal S1 to the AFE 60 to cause the AFE 60 to control the light-emitting unit 47 and the image sensor 42; inputting from the AFE 60 digital data DD generated by adding color information CI indicating the color of the reflected light received by the image sensor 42 to pixel data PD obtained by the AFE 60 performing analog-to-digital conversion of the light reception signal from the image sensor 42; acquiring managed color information MC which is an estimate of the color information CI based on the control signal S1; extracting the color information CI from the digital data DD; determining whether the extracted color information CI matches the managed color information MC; storing the pixel data PD in the digital data DD in the memory unit 80 if the color information CI matches the managed color information MC, and not storing the pixel data PD in the memory unit 80 if the color information CI does not match the managed color information MC; and adjusting the managed color information MC to match the color information CI if the color information CI does not match the managed color information MC. According to this program, the same effects as those of the image reading device 11 described above in (1) can be obtained.
[0100] Second embodiment The second embodiment will be described below with reference to the drawings. In the first embodiment, the case where the image reading device 11 includes one AFE 60 has been described. In the second embodiment, the case where the image reading device 11 includes two AFEs 60 will be described. Note that the configuration is the same as that of the first embodiment except for the inclusion of two AFEs 60 and the configuration required due to the inclusion of two AFEs 60. Therefore, the same components as those of the first embodiment are denoted by the same reference numerals and description thereof will be omitted. Also, Figs. 13 to 18 show a read image SI of an original D stored in a storage unit 80, and the left figures in each figure show a comparative example in which no correction is performed, and the right figures show an example in which correction is performed.
[0101] As shown in FIG. 12, the image reading device 11 includes a first AFE 60-1 and a second AFE 60-2. The first AFE 60-1 and the second AFE 60-2 each have the same configuration as the AFE 60. The first AFE 60-1 executes processing related to a first region of the document D. The second AFE 60-2 executes processing related to a second region of the document D. The first region is one of two regions obtained by dividing the reading region of the document D in the scanning direction (width direction X) of the image sensor 42. The second region is the region of the reading region other than the first region.
[0102] A computer 70, which is an example of a control circuit, and a first AFE 60-1 are connected by a first wiring, and the computer 70 and a second AFE 60-2 are connected by a second wiring. A control signal S1 is sent from the computer 70 to the first AFE 60-1 through the first wiring, and a control signal S1 is sent from the computer 70 to the second AFE 60-2 through the second wiring.
[0103] The light emission control of the light source 41 is performed by one of the first AFE 60-1 and the second AFE 60-2. The light emission control unit 61 included in the first AFE 60-1 outputs a light emission drive signal to the multiple light emitting units 47 included in the light source 41 based on the control signal S1 output by the reading control unit 72. Note that the light emission control unit 61 included in the second AFE 60-2 may be configured to output a light emission drive signal to the light emitting units 47 included in the light source 41 based on the control signal S1 output by the reading control unit 72. Also, the light emission control unit 61 included in the first AFE 60-1 may perform light emission control of the first region, and the light emission control unit 61 included in the second AFE 60-2 may perform light emission control of the second region.
[0104] The conversion unit 63 included in the first AFE 60-1 generates digital data DD by adding color information CI indicating the color of the reflected light received by the image sensors 42A and 42B to pixel data PD obtained by analog-to-digital conversion of a first analog signal output from the image sensors 42A and 42B that received the reflected light reflected in the first region. The conversion unit 63 included in the second AFE 60-2 generates digital data DD by adding color information CI indicating the color of the reflected light received by the image sensors 42A and 42B to pixel data PD obtained by analog-to-digital conversion of a second analog signal output from the image sensors 42A and 42B that received the reflected light reflected in the second region. The conversion unit 63 included in the first AFE 60-1 is an example of a "first conversion unit," and the conversion unit 63 included in the second AFE 60-2 is an example of a "second conversion unit." Moreover, the first analog signal is an example of a "first received light signal," and the second analog signal is an example of a "second received light signal."
[0105] In the following description, the digital data DD converted by the conversion unit 63 of the first AFE 60-1 will be referred to as first digital data DD1, and the digital data DD converted by the conversion unit 63 of the second AFE 60-2 will be referred to as second digital data DD2. Furthermore, the pixel data PD in the first digital data DD1 will be referred to as "first pixel data PD1," and the pixel data PD in the second digital data DD2 will be referred to as "second pixel data PD2."
[0106] The extraction unit 74 in the computer 70 may perform a first extraction to extract first color information CI1, which is color information CI in the first digital data DD1, and a second extraction to extract second color information CI2, which is color information CI in the second digital data DD2. In this case, the extraction unit 74 outputs the extracted first color information CI1 and second color information CI2 to the determination unit 76.
[0107] The judgment unit 76 in the computer 70 may perform a first judgment to judge whether the first color information CI1 and the managed color information MC match, and a second judgment to judge whether the second color information CI2 and the managed color information MC match. The color counter CT in the computer 70 may include a first color counter CT1 that counts a count value that determines the value of the managed color information MC1 used in the first judgment, and a second color counter CT2 that counts a count value that determines the value of the managed color information MC2 used in the second judgment. In this case, the management unit 75 may separately control the count of the first color counter CT1 based on the judgment result of the first judgment, and the count of the second color counter CT2 based on the judgment result of the second judgment. Furthermore, the management unit 75 in the computer 70 may separately manage, as the write color information WI, the first write color information WI1 according to the judgment result of the first judgment and the second write color information WI2 according to the judgment result of the second judgment.
[0108] In this case, the write control unit 77 may store the first pixel data PD1 in a storage area of the storage unit 80 corresponding to the color indicated by the first write color information WI1 when the first write color information WI1 is not a value indicating write prohibition (for example, "000"). Also, the write control unit 77 may store the second pixel data PD2 in a storage area of the storage unit 80 corresponding to the color indicated by the second write color information WI2 when the second write color information WI2 is not a value indicating write prohibition (for example, "000"). In this manner, correction may be made individually for the first region A1 and the second region A2.
[0109] At least one of the extraction unit 74, management unit 75, judgment unit 76, color counter CT, and write control unit 77 may have the same configuration as in the first embodiment. In this case, the judgment unit 76 may perform only one of the first judgment and the second judgment. Furthermore, the write control unit 77 may prohibit writing of the first pixel data PD1 and the second pixel data PD2 based on the common write color information WI. In this way, correction may be performed on only one of the first region A1 and the second region A2, or a common correction may be performed on the first region A1 and the second region A2.
[0110] In the comparative example shown in the left diagram of FIG. 13 in which no correction is performed, when noise NS occurs in the first wiring connecting the first AFE 60-1 and the computer 70, the actual color of the first pixel data PD1 in the first digital data DD1 related to the first region A1 deviates from the color indicated by the management color information MC after noise occurrence NG. Therefore, in a range AR3 after noise occurrence NG, the pixel has a color different from the original color D. Here, the range AR3 is a range smaller in the width direction X of the second region A2 than the range AR1 after noise occurrence NG when the image reading device 11 has one AFE 60.
[0111] According to the image reading device 11 of the second embodiment, as shown in the right diagram of Fig. 13, after noise occurs, the first pixel data PD1 in the first digital data DD1 is not stored in the storage unit 80 until the color information CI in the first digital data DD1 matches the management color information MC. As a result, the read image SI generated by the image reading device 11 of the second embodiment can be composed of pixels of an appropriate color after noise occurs, although the pixels have a different color from the original color D in a range AR4 of at least one line and at most two lines. Here, the range AR4 is a range smaller than the range AR2, which is the range affected by noise when the image reading device 11 has one AFE 60, by the dimension of the number of pixels in the width direction X of the second region A2.
[0112] In the above description, the write control unit 77 controls the writing of the pixel data PD based on the determination result made by the determination unit 76 based on the first digital data DD1 converted by the conversion unit 63 of the first AFE 60-1, but the present invention is not limited to this. For example, the write control unit 77 may control the writing of the pixel data PD based on the determination result made by the determination unit 76 based on the second digital data DD2 converted by the conversion unit 63 of the second AFE 60-2. In this case, when noise that affects the second region A2 occurs, the image reading device 11 of the second embodiment can reduce the range affected by the noise compared to the case where one AFE 60 is provided.
[0113] Therefore, in the event that noise occurs that affects one of the areas related to the judgment by the judgment unit 76, the image reading device 11 of the second embodiment can reduce the range of influence of the noise by half compared to the case where one AFE 60 is provided.
[0114] In the above description, the write control unit 77 controls the writing of the digital data DD based on the result of the determination made by the determination unit 76 based on the digital data DD converted by the conversion unit 63 related to either the first area A1 or the second area A2. On the other hand, when noise occurs that affects an area other than the area used for the determination by the determination unit 76, the image reading device 11 cannot reduce the influence of the noise. In an example shown in the left diagram of FIG. 14, the determination unit 76 performs a determination process based on the first digital data DD1 converted by the conversion unit 63 of the first area A1, and the influence of the noise occurs in the range AR5 of the second area A2. For this reason, even if the determination process is performed on the second area A2 shown in the right diagram of FIG. 14, the determination is made on the first area A1 and not on the second area A2, so that the influence of the noise in the range AR5 cannot be reduced.
[0115] Below, we will explain the case where the write control unit 77 controls the writing of the pixel data PD based on the judgment result made by the judgment unit 76 based on both the first digital data DD1 related to the first region A1 and the second digital data DD2 related to the second region A2.
[0116] In this case, the determination unit 76 determines whether or not the two pieces of color information CI, the color information CI included in the first digital data DD1 of the first area A1 extracted by the extraction unit 74 and the color information CI included in the second digital data DD2 of the second area A2, match the managed color information MC. When the determination unit 76 determines that both pieces of color information CI match the managed color information MC, the write control unit 77 stores both the first pixel data PD1 and the second pixel data PD2 in a storage area in the storage unit 80 corresponding to the color indicated by the write color information WI input from the management unit 75. When the determination unit 76 determines that at least one of the two pieces of color information CI does not match the managed color information MC, the write control unit 77 does not store in the storage unit 80 only the pixel data of the first pixel data PD1 and the second pixel data PD2 that does not match the managed color information MC. Instead, the write control unit 77 stores pixel data PD of a predetermined color in the storage unit 80 in place of the pixel data not to be stored. The pixel data PD of a predetermined color is stored until the determining unit 76 determines that both pieces of color information CI match the managed color information MC.
[0117] Here, as shown in the left diagram of Fig. 15, if no correction is performed, when noise NS occurs in the wiring connecting the computer 70 and the first AFE 60-1, thereafter the actual color of the first pixel data PD1 in the first digital data DD1 will deviate from the color indicated by the managed color information MC. For this reason, when the first pixel data PD1 is written to the memory unit 80 as the color indicated by the managed color information MC, the pixels may have a color different from the original color D in the range AR3 after the noise occurrence NG, as shown in the left diagram of Fig. 15.
[0118] On the other hand, according to the image reading device 11 of the present embodiment, as shown in the right diagram of Fig. 15, during a period in which the color information CI and the managed color information MC do not match after the noise occurs, the write control unit 77 does not store the first pixel data PD1 related to the first region A1 in the storage unit 80, and instead writes pixel data of a predetermined color in the range AR4 of the first region A1. At this time, even during the correction period in which the first pixel data PD1 related to the first region A1 is not stored in the storage unit 80, the second pixel data PD2 related to the second region A2 in which the color information CI and the managed color information MC match is stored in the storage unit 80. Therefore, as shown in the right diagram of Fig. 15, the correction portion in which pixel data of a predetermined color is written in the range AR4 of the first region A1 remains in the first region A1, which occupies half of the read image SI.
[0119] Furthermore, if noise NS occurs in the wiring connecting the computer 70 and the second AFE 60-2, thereafter the actual color of the second pixel data PD2 in the second digital data DD2 will deviate from the color indicated by the management color information MC. For this reason, as shown in the left diagram of Fig. 16, in the range AR5 after the noise occurrence NG, the pixels may have a color different from the original color D.
[0120] On the other hand, according to the image reading device 11 of the present embodiment, the write control unit 77 does not store the second pixel data PD2 related to the second region A2 in the storage unit 80 during the period in which the color information CI and the managed color information MC do not match after the noise occurs, and instead writes pixel data of a predetermined color in the range AR6 of the second region A2. As shown in the right diagram of FIG. 16, even while the second pixel data PD2 is not stored in the range AR6 of the second region A2, if the color information CI and the managed color information MC match, the first pixel data PD1 related to the first region A1 is stored in the storage unit 80. Therefore, as shown in the right diagram of FIG. 16, the correction portion where pixel data of a predetermined color is written in the range AR6 of the second region A2 remains in the second region A2, which occupies half of the read image SI.
[0121] According to the image reading device 11 of the second embodiment, when noise NS is present in either the first area A1 or the second area A2, after noise occurrence NG, in a range AR of at least one line and at most two lines, the pixels in the range AR at corresponding positions in both areas will have a color different from the color of the original document D, but thereafter, the pixels can be configured with the appropriate color.
[0122] The write control unit 77 may discard the first pixel data PD1 and the second pixel data PD2 when the determination unit 76 determines that at least one of the two pieces of color information CI does not match the managed color information MC. The period during which the first pixel data PD1 and the second pixel data PD2 are discarded is the period until the determination unit 76 determines that both pieces of color information CI match the managed color information MC.
[0123] As shown in the left diagram of Figure 17, if correction is not performed, when noise NS occurs in the wiring on the first AFE60-1 side, pixels in the range AR3 after noise occurrence NG in the first area A1 may have a color different from the original color D.
[0124] In contrast, as shown in the right diagram of FIG. 17, when correction is performed, if noise NS occurs in the wiring on the first AFE 60-1 side, the color information CI and the managed color information MC do not match, so the first pixel data PD1 and the second pixel data PD2 are discarded. In other words, if any one of the two pieces of color information CI and the managed color information MC does not match, both the first pixel data PD1 and the second pixel data PD2 are discarded. Therefore, after the noise occurs, the pixel data PD1 and PD2 are not stored in the storage unit 80 and are discarded until the color information CI and the managed color information MC match again, and a first empty area EA1 and a second empty area EA2 are generated in the first area A1 and the second area A2, respectively. After that, when the color information CI and the managed color information MC match, writing of the first pixel data PD1 and the second pixel data PD2 to the storage unit 80 is resumed. The first pixel data PD1 and the second pixel data PD2 written to the line next to the line including the first empty area EA1 and the second empty area EA2 are written so that a part of them fills the first empty area EA1 and the second empty area EA2. As a result, after the noise occurs, the downstream part of the first empty area EA1 and the second empty area EA2 and the other part are shifted by one line even for the same line.
[0125] Furthermore, as shown in the left diagram of Figure 18, if correction is not performed, when noise NS occurs in the wiring on the second AFE 60-2 side, pixels in the range AR5 after noise occurrence NG in the second area A2 may have a color different from the original color of the original D.
[0126] On the other hand, as shown in the right diagram of FIG. 18, when correction is performed, if noise NS occurs in the wiring on the second AFE 60-2 side, the color information CI and the managed color information MC do not match, so the first pixel data PD1 and the second pixel data PD2 are discarded. In other words, if either of the two pieces of color information CI and the managed color information MC do not match, both the first pixel data PD1 and the second pixel data PD2 are discarded. For this reason, as in the right diagram of FIG. 17, after the nozzle occurs, the first pixel data PD1 and the second pixel data PD2 of the next line are written so as to fill the first empty area EA1 and the second empty area EA2 that occurred in the first area A1 and the second area A2, respectively, until the color information CI and the managed color information MC match again. As a result, after the noise occurs, the same line is shifted by one line between the downstream part of the first empty area EA1 and the second empty area EA2 and the other part.
[0127] For example, when either one of the two pieces of color information CI does not match the managed color information MC, discarding only one of the first pixel data PD1 and the second pixel data PD2 may result in noticeable line misalignment between the first region A1 and the second region A2. In contrast, in this embodiment, when either one of the two pieces of color information CI does not match the managed color information MC, both the first pixel data PD1 and the second pixel data PD2 are discarded, so that the line misalignment that occurs between the first region A1 and the second region A2 can be suppressed to a small value.
[0128] As described above, according to the second embodiment, the following effects can be obtained. (11) The conversion unit includes a conversion unit 63 of the first AFE 60-1 and a conversion unit 63 of the second AFE 60-2. The conversion unit 63 of the first AFE 60-1 generates first digital data DD1 by adding color information CI to first pixel data PD1 obtained by analog-to-digital conversion of a first light receiving signal output from the image sensor 42 that receives reflected light reflected on the first area A1 of the document D. The first area A1 is one of two areas obtained by dividing the reading area of the document D in the scanning direction X of the image sensor 42. The conversion unit 63 of the second AFE 60-2 generates second digital data by adding color information CI to second pixel data obtained by analog-to-digital conversion of a second light receiving signal output from the image sensor 42 that receives reflected light reflected on a second area, which is an area other than the first area A1 of the reading area of the document D. As a result, after the noise NS occurs, the image generated by the image reading device 11 has pixels of a different color from the original D in a range of at least one line and at most two lines, which is half the range in the width direction X, but thereafter the image can be composed of pixels of an appropriate color.
[0129] (12) The extraction unit 74 extracts color information CI from the first digital data DD1 and the second digital data DD2. The determination unit 76 determines whether or not each of the two pieces of color information CI extracted by the extraction unit 74 matches the managed color information MC. If both pieces of color information CI match the managed color information MC, the write control unit 77 stores both the first pixel data PD1 and the second pixel data PD2 in the storage unit 80. If at least one of the two pieces of color information CI does not match the managed color information MC, the write control unit 77 does not store the first pixel data PD1 and the second pixel data PD2 in the storage unit 80 until both pieces of color information CI match the managed color information MC. According to the image reading device 11 of the second embodiment, when noise NS is present in either the first area A1 or the second area A2, after the noise occurrence NG, in a range AR of at least one line and at most two lines, the pixels in the range AR at corresponding positions in both areas will have a color different from the color of the original document D, but thereafter, the pixels can be configured with the appropriate color.
[0130] (13) When at least one of the two pieces of color information CI does not match the managed color information MC, the write control unit 77 stores pixel data PD of a predetermined color in the storage unit 80 in place of the first pixel data PD1 and the second pixel data PD2 until both pieces of color information CI match the managed color information MC. As a result, the write control unit 77 stores a color arbitrarily determined by the user as the predetermined color in the storage unit 80 as pixel data PD, thereby making it possible to generate an image by the reading process in a manner desired by the user. Furthermore, the write control unit 77 stores a predetermined predetermined color in the storage unit 80 as pixel data PD, thereby making it possible to suppress the influence of noise NS by simple processing. Furthermore, the write control unit 77 stores a color that is less noticeable in the image generated by the reading process in the storage unit 80 as pixel data PD, thereby making it possible to suppress the influence of noise NS.
[0131] (14) When at least one of the two pieces of color information CI does not match the managed color information MC, the write control unit 77 discards the first pixel data and the second pixel data until both pieces of color information CI match the managed color information MC. According to the image reading device 11 of the second embodiment, when one of the first area A1 and the second area A2 is affected by noise NS, after noise occurrence NG, the pixels in the corresponding range AR of both areas, which is a minimum of one line and a maximum of two lines, will have a color different from the color of the original D, but thereafter, they can be composed of pixels of an appropriate color.
[0132] The above embodiment can be modified to the following modified examples. Further modified examples can be appropriately combined with the above embodiment and the following modified examples, or further modified examples can be appropriately combined with each other.
[0133] If the color information CI and the managed color information MC do not match, the management unit 75 may return the count value of the color counter CT by 1 in the opposite direction to the ascending order, or may advance the count value of the color counter CT by 2 in the ascending order. By these adjustment processes for the managed color information MC, the management unit 75 can adjust the managed color information MC to match the color information CI.
[0134] When the bit position of the color information CI contained in the digital data DD is uniquely determined, the computer 70 does not need to be equipped with the first register 78 used by the extraction unit 74, and the position information 81 does not need to be stored in the memory unit 80.
[0135] When the color information CI and the management color information MC have the same value indicating the same color, the computer 70 does not need to be provided with the second register 79 used by the extraction unit 74, and the correspondence information 82 does not need to be stored in the memory unit 80.
[0136] Instead of the configuration in which the extraction unit 74 uses the second register 79, the determination unit 76 may convert the value of the color information CI into the value of the managed color information MC indicated by that color based on the value of the second register 79.
[0137] The input unit 21 is not limited to a touch panel, and may be, for example, an operation button. The feeding section 30A and the transport section 31 may share a power source. Alternatively, the transport section 31 and the discharge section 32 may be driven by separate power sources.
[0138] The image sensor is not limited to a CMOS image sensor, but may be, for example, a MOS (Metal Oxide Semiconductor) image sensor or a CCD (Charge Coupled Device) image sensor.
[0139] The image sensor 42 is not limited to a linear image sensor, but may be an area image sensor. The material of the document is not limited to paper, but may be a resin film or sheet, a woven material, a metal film, etc.
[0140] The image reading device may be part of a multifunction device that has printing and copying functions in addition to the scanner function. The image reading device 11 is not limited to a sheet-feed type, and may be a flatbed type. In the case of a flatbed type image reading device 11, a carriage movable along the sub-scanning direction (Y direction) is provided in the main body, and the carriage moves using a scanning motor as a power source, and reads an image of a document set on a glass plate of a document table by a light source and a reading unit provided on the carriage. The above embodiment can be applied to this type of flatbed type image reading device 11 as long as it is provided with an automatic document feeder (auto sheet feeder) that automatically feeds documents. In addition, the above embodiment can be applied not only to the image reading device 11, but also to an image reading control method and program in the image reading device 11.
[0141] The technical ideas and effects obtained from the above-described embodiment and modified examples will be described below. (A) An image reading device for reading an original document and acquiring an image includes a plurality of light emitting units that emit light of different colors, a light receiving unit that receives light emitted by the light emitting units and reflected by the original document and outputs a light receiving signal, a control circuit that outputs a control signal to control the light emitting units and the light receiving units, and a relay circuit that causes the plurality of light emitting units to emit light in sequence at different timings based on the control signal and causes the light receiving unit to receive the reflected light for each emitted color, and receives a light receiving signal from the light receiving unit, the relay circuit having a conversion unit that generates digital data by adding color information indicating the color of the reflected light received by the light receiving unit to pixel data obtained by analog-to-digital conversion of the light receiving signal, and the control circuit generates digital data by converting the color information input from the conversion unit. the image processing unit has an extraction unit that extracts the color information from the digital data, a management unit that manages managed color information which is an estimate of the color information based on the control signal, a determination unit that determines whether the color information extracted by the extraction unit matches the managed color information, and a write control unit that stores the pixel data in the digital data in the storage unit when the determination result of the determination unit indicates that the color information matches the managed color information, and does not store the pixel data in the storage unit when the color information does not match the managed color information, and when the color information does not match the managed color information, the management unit adjusts the managed color information to match the color information.
[0142] According to this configuration, the determination unit can appropriately determine whether or not there is an effect of noise by comparing the color information included in the digital data with the management color information. When the color information and the management color information do not match due to the effect of noise, the management unit adjusts the management color information to match the color information, so that the write control unit temporarily does not write pixel data to the storage unit until the effect of noise is eliminated. As a result, the effect of noise on the image generated by the reading process can be suppressed. Also, for example, even if the light receiving unit is configured to commonly receive light of different emitted colors from a plurality of light emitting units and the number of light receiving units is smaller than the number of light emitting units, the effect of noise can be suppressed.
[0143] (B) In the above image reading device, the digital data is data composed of multiple bits, and the color information is composed of multiple bits whose values are located at some of the multiple digits, the control circuit is provided with a first storage unit capable of storing position information indicating the position of the some of the digits, and the extraction unit may extract the multiple bits of the color information based on the position information stored in the first storage unit from the digital data.
[0144] According to this configuration, the extraction unit can extract color information contained in the digital data even if the bit positions constituting the color information in the digital data differ depending on the type of AFE.
[0145] (C) In the above image reading device, the value of the color information included in the digital data may be different even for the same color as the management color information, and the control circuit may include a second storage unit capable of storing correspondence information indicating a correspondence between the value of the color information and the value of the management color information, and the extraction unit may convert the value of the color information extracted from the digital data based on the correspondence information, and then output the color information to the determination unit.
[0146] According to this configuration, even if the way in which the color of reflected light is expressed, which is indicated by the color information, differs depending on the type of AFE, the determination unit can use the color indicated by the color information in the determination process. (D) In the above-mentioned image reading device, when the color information and the management color information do not match, the write control unit may store pixel data of a predetermined color, separated by color, in the memory unit instead of the pixel data, until the color information and the management color information match.
[0147] According to this configuration, the write control unit stores a color arbitrarily determined by the user as the predetermined color in the storage unit as pixel data, thereby enabling the image to be generated by the reading process in the manner desired by the user. Also, the write control unit stores a predetermined color in the storage unit as pixel data, thereby enabling the influence of noise to be suppressed by simple processing. Also, the write control unit stores a color that is less noticeable in the image generated by the reading process in the storage unit as pixel data, thereby enabling the influence of noise to be suppressed.
[0148] (E) In the above image reading device, the pixel data of the specified color may be pixel data obtained by color interpolating pixel data for each color read by the light receiving unit on lines before and after the line of pixel data in the digital data.
[0149] According to this configuration, pixel data of a line that is not read correctly due to the influence of noise is color-interpolated using pixel data of the lines before and after it. Therefore, the image reading device can make color unevenness caused by noise less noticeable compared to a configuration in which pixel data is supplemented with dummy pixel data that exhibits a predetermined color.
[0150] (F) In the above image reading device, when the color information does not match the managed color information, the write control unit may discard the pixel data until the color information matches the managed color information.
[0151] According to this configuration, the write control unit can prevent digital data affected by noise from being included in an image generated by the reading process. (G) In the above-mentioned image reading device, the write control unit may include an input unit capable of instructing whether to enable or disable a correction process that does not write the pixel data to the memory unit when the color information and the management color information do not match, and when the write control unit receives an instruction to disable from the input unit, the write control unit may store the pixel data in the memory unit even if the color information and the management color information do not match.
[0152] According to this configuration, the user can select whether to enable or disable the correction process according to needs by operating the input unit 21. Therefore, the user can obtain image data obtained by reading the original D with a desired quality.
[0153] (H) In the above image reading device, the conversion unit may include a first conversion unit that generates first digital data by adding the color information to first pixel data obtained by analog-to-digital conversion of a first received light signal output from the light receiving unit that receives the reflected light reflected from a first region, which is one of the two regions obtained by dividing the reading area of the document in half in the scanning direction of the light receiving unit, and a second conversion unit that generates second digital data by adding the color information to second pixel data obtained by analog-to-digital conversion of a second received light signal output from the light receiving unit that receives the reflected light reflected from a second region, which is a region other than the first region of the reading area of the document.
[0154] According to this configuration, after noise occurs, the image generated by the image reading device has pixels of a color different from the color of the original D in a range of at least one line and at most two lines, which is half the range in the width direction X, but thereafter the image can be composed of pixels of an appropriate color.
[0155] (I) In the above-mentioned image reading device, the extraction unit extracts the color information from the first digital data and the second digital data, respectively, the determination unit determines whether each of the two pieces of color information extracted by the extraction unit matches the managed color information, and the write control unit stores both the first pixel data and the second pixel data in the memory unit if both pieces of color information match the managed color information, and if at least one of the two pieces of color information does not match the managed color information, does not store the first pixel data and the second pixel data in the memory unit until both pieces of color information match the managed color information.
[0156] According to this configuration, if either the first or second area is affected by noise, after the noise occurs, in a range of at least one line and at most two lines, the pixels in corresponding positions in both areas will have a color different from the original color of the original, but thereafter the area can be configured with pixels of the appropriate color.
[0157] (J) When at least one of the two pieces of color information does not match the managed color information, the write control unit may store pixel data of a predetermined color in the memory unit in place of the first pixel data and the second pixel data until both pieces of color information match the managed color information.
[0158] According to this configuration, the write control unit stores a color arbitrarily determined by the user as the predetermined color in the storage unit as pixel data, thereby enabling the image to be generated by the reading process in the manner desired by the user. Also, the write control unit stores a predetermined color in the storage unit as pixel data, thereby enabling the influence of noise to be suppressed by simple processing. Also, the write control unit stores a color that is less noticeable in the image generated by the reading process in the storage unit as pixel data, thereby enabling the influence of noise to be suppressed.
[0159] (K) In the above-mentioned image reading device, when at least one of the two pieces of color information does not match the managed color information, the write control unit may discard the first pixel data and the second pixel data until both pieces of color information match the managed color information.
[0160] According to this configuration, if one of the first and second regions is affected by noise, after the noise occurs, the pixels in the corresponding range of both regions, which is a minimum of one line and a maximum of two lines, will have a color different from the original color of the original document, but thereafter the region can be configured with pixels of the appropriate color.
[0161] (L) In the above-mentioned image reading device, a color counter may be provided which repeatedly counts the number of pulses of the control signal a number equal to the number of the light-emitting elements, and the management unit may manage the management color information based on the count value of the color counter, and when the color information matches the management color information, counting is performed by the color counter, and when the color information does not match the management color information, counting by the color counter is stopped, thereby maintaining the value of the management color information.
[0162] According to this configuration, when the color information and the management color information no longer match due to the influence of noise, the counting unit stops counting during that time, thereby maintaining the value of the management color information. At this time, since the value of the color information changes, the color information and the management color information can be made to match by simply suspending the storage of pixel data in the memory unit a maximum number of times equal to the number of light-emitting units, and the influence of noise on the read image can be reduced.
[0163] (L) An image reading control method for reading an original document to obtain an image using a plurality of light-emitting units that emit light of different colors and a light-receiving unit that receives light reflected from the original document by the light-emitting units, the method comprising: a control circuit that outputs a control signal for controlling the light-emitting units and the light-receiving unit; and a relay circuit that controls the light-emitting units and the light-receiving unit based on the control signal input from the control circuit, the control circuit outputting the control signal to the relay circuit, the relay circuit causing the plurality of light-emitting units to emit light in sequence at different timings based on the control signal, and causing the light-receiving unit to receive the reflected light for each of the light-emitting colors and inputting a received light signal from the light-receiving unit, and the relay circuit performing analog-to-digital conversion of the received light signal to obtain the control circuit adding color information indicating the color of the reflected light received by the light receiving unit to the pixel data obtained by the image reading device to generate digital data and outputting the digital data to the control circuit, the control circuit acquiring managed color information which is an estimate of the color information based on the control signal, the control circuit extracting the color information from the digital data, the control circuit determining whether the extracted color information matches the managed color information, the control circuit storing the pixel data in a storage unit if the color information matches the managed color information, not storing the pixel data in the storage unit if the color information does not match the managed color information, and adjusting the managed color information to match the color information if the color information does not match the managed color information. This method can provide an effect similar to that of the image reading device described above.
[0164] (M) A program executed by a computer provided in an image reading device having a plurality of light emitting units that emit light of different colors and a light receiving unit that receives light reflected from the original document, the image reading device reading the original document to obtain an image, the image reading device having a computer and a relay circuit that controls the light emitting units and the light receiving units based on a control signal input from the computer, the program including the steps of causing the relay circuit to control the light emitting units and the light receiving units by outputting a control signal to the relay circuit, and inputting the color of the reflected light received by the light receiving units into pixel data obtained by analog-to-digital conversion of the light receiving signals from the light receiving units by the relay circuit. and a step of inputting digital data generated by adding color information indicating a color difference between the pixel data and the managed color information from the relay circuit, a step of acquiring managed color information which is an estimate of the color information based on the control signal, a step of extracting the color information from the digital data, a step of determining whether the extracted color information matches the managed color information, a step of storing the pixel data in the digital data in a storage unit if the color information matches the managed color information, and not storing the pixel data in the storage unit if the color information does not match the managed color information, and a step of adjusting the managed color information to match the color information if the color information does not match the managed color information. This program can provide an effect similar to that of the image reading device described above. [Explanation of symbols]
[0165] 11...image reading device, 12...main body, 12A...feed port, 12B...discharge port, 12C...front portion, 13...original support, 13A...mounting surface, 13B...edge guide, 13C...auxiliary support portion, 15...stacker, 18...main body portion, 19...cover portion, 20...power button, 21...input portion, 22...display portion, 23...display area, 29...transport path, 30...transport mechanism, 30A...feed portion, 30B...feed guide, 31...transport portion, 32...discharge portion, 33...feed roller, 34...feed roller pair, 35...transport roller pair, 3 6...pair of discharge rollers, 37...feed motor, 38...conveyor motor, 40...reading section, 40A...first reading section, 40B...second reading section, 41...light source, 41A...first light source, 41B...second light source, 42...image sensor, 42A...first image sensor, 42B...second image sensor, 43...color reference plate, 44...encoder, 45...original sensor, 46...original presence / absence sensor, 47-1, 47A-1, 47B-1...first light-emitting section, 47-2, 47A-2, 47B-2...second light-emitting section, 47-3, 47A- 3, 47B-3...third light-emitting unit, 50...control unit, 60...AFE, 60-1...first AFE, 60-2...second AFE, 61...light-emitting control unit, 62...reading control unit, 63...conversion unit, 70...computer, 71...transport control unit, 72...reading control unit, 73...image processing unit, 74...extraction unit, 75...management unit, 76...determination unit, 77...writing control unit, 78...first register, 79...second register, 80...storage unit, 81...position information, 82...corresponding information, AR, AR1, AR2, AR3, AR4, AR5, AR6...range , CC1...sampling circuit, CC2...color management circuit, CC3...write circuit, CI...color information, CT...color counter, D...original, DD...digital data, DD1...first digital data, DD2...second digital data, LC...light source emission color, MC...managed color information, NS...noise, PD...pixel data, PD1...first pixel data, PD2...second pixel data, PR...program, S1...control signal, S2...read signal, SA...read area, WI...write color information, SI...read image, A1...first area, A2...second area.
Claims
1. An image reading device that reads an original and acquires an image, A plurality of light emitting units that emit light of different colors; a light receiving section that receives light reflected by the document and outputs a light receiving signal; a control circuit that outputs a control signal for controlling the light emitting unit and the light receiving unit; a relay circuit that causes the plurality of light emitting units to emit light in sequence at different timings based on the control signal, and causes the reflected light for each of the emitted colors to be received by the light receiving unit, and a light receiving signal is input from the light receiving unit; the relay circuit has a conversion unit that generates digital data by adding color information indicating a color of the reflected light received by the light receiving unit to pixel data obtained by analog-to-digital conversion of the received light signal, the control circuit includes an image processing unit that causes the pixel data in the digital data input from the conversion unit to be stored in a storage unit for each color indicated by the color information; The image processing unit includes: an extraction unit that extracts the color information from the digital data; a management unit for managing managed color information, which is an estimate of the color information based on the control signal; a determination unit that determines whether the color information extracted by the extraction unit matches the managed color information; a write control unit that, when a determination result of the determination unit indicates that the color information matches the managed color information, stores the pixel data in the digital data in the storage unit, and, when a determination result of the determination unit indicates that the color information does not match the managed color information, does not store the pixel data in the storage unit, When the color information and the management color information do not match, the management unit adjusts the management color information so that the management color information matches the color information.
1. An image reading apparatus comprising:
2. The digital data is data composed of a plurality of bits, the color information is composed of a plurality of bits each having a value located at a part of the plurality of digits, the control circuit includes a first storage unit capable of storing position information indicating positions of the part of digits, The extraction unit extracts the color information of the plurality of bits based on the position information stored in the first storage unit from the digital data.
2. The image reading apparatus according to claim 1, wherein the image reading apparatus comprises:
3. The value of the color information included in the digital data may be different even for the same color as the management color information, the control circuit includes a second storage unit capable of storing correspondence information indicating a correspondence relationship between a value of the color information and a value of the management color information; The extraction unit converts the value of the color information extracted from the digital data based on the correspondence information, and then outputs the color information to the determination unit.
3. The image reading apparatus according to claim 1, wherein the image reading apparatus is a digital camera.
4. when the color information does not match the managed color information, the write control unit stores pixel data of a predetermined color in the storage unit, in place of the pixel data, separated by color, until the color information matches the managed color information.
4. The image reading device according to claim 1, wherein the image reading device is a digital camera.
5. The pixel data of the predetermined color is pixel data obtained by color-interpolating pixel data for each color read by the light receiving unit on lines before and after the line of pixel data in the digital data.
5. The image reading apparatus according to claim 4,
6. when the color information does not match the managed color information, the write control unit discards the pixel data until the color information matches the managed color information.
4. The image reading device according to claim 1, wherein the image reading device is a digital camera.
7. the write control unit includes an input unit capable of instructing whether to enable or disable a correction process for not writing the pixel data to the storage unit when the color information and the management color information do not match, when the instruction to disable is received from the input unit, the write control unit stores the pixel data in the storage unit even if the color information and the managed color information do not match.
7. The image reading device according to claim 1, wherein the image reading device is a digital camera.
8. The conversion unit is a first conversion unit that generates first digital data by adding the color information to first pixel data obtained by analog-to-digital conversion of a first light receiving signal output from the light receiving unit, the first light receiving signal receiving the reflected light reflected at a first region, which is one of two regions obtained by dividing a reading region of the document in a scanning direction of the light receiving unit; a second conversion unit that generates second digital data by adding the color information to second pixel data obtained by analog-to-digital conversion of a second light receiving signal output from the light receiving unit that receives the reflected light reflected at a second area, which is an area other than the first area, of the reading area of the document; 8. The image reading device according to claim 1, wherein the image reading device is a digital camera.
9. the extraction unit extracts the color information from the first digital data and the second digital data, the determination unit determines whether or not each of the two pieces of color information extracted by the extraction unit matches the managed color information; the write control unit, when both of the two pieces of color information match the managed color information, stores both of the first pixel data and the second pixel data in the storage unit, and, when at least one of the two pieces of color information does not match the managed color information, does not store the first pixel data and the second pixel data in the storage unit until both of the pieces of color information match the managed color information.
9. The image reading apparatus according to claim 8,
10. when at least one of the two pieces of color information does not match the managed color information, the write control unit stores pixel data of a predetermined color in the storage unit in place of the first pixel data and the second pixel data until both pieces of color information match the managed color information.
10. The image reading device according to claim 9,
11. when at least one of the two pieces of color information does not match the managed color information, the write control unit discards the first pixel data and the second pixel data until both pieces of color information match the managed color information.
10. The image reading device according to claim 9,
12. a color counter that repeatedly counts the number of pulses of the control signal a number equal to the number of the light-emitting units; the management unit manages the managed color information based on a count value of the color counter, and when the color information and the managed color information match, counts the color counter, and when the color information and the managed color information do not match, stops counting the color counter, thereby maintaining the value of the managed color information.
12. The image reading device according to claim 1, wherein the image reading device is a digital camera.
13. 1. An image reading control method for reading an original document to obtain an image using a plurality of light-emitting units that emit light of different colors and a light-receiving unit that receives light that is reflected by the original document from the light-emitting units, comprising: a control circuit that outputs a control signal to control the light emitting unit and the light receiving unit; and a relay circuit that controls the light emitting unit and the light receiving unit based on the control signal input from the control circuit, the control circuit outputs the control signal to the relay circuit; the relay circuit causes the plurality of light emitting units to emit light in sequence at different timings based on the control signal, and causes the light receiving unit to receive the reflected light for each of the emitted colors, and inputs a light receiving signal from the light receiving unit; the relay circuit generates digital data by adding color information indicating a color of the reflected light received by the light receiving unit to pixel data obtained by analog-to-digital conversion of the light receiving signal, and outputs the digital data to the control circuit; The control circuit obtains managed color information that is an estimate of the color information based on the control signal; the control circuit extracting the color information from the digital data; the control circuit determines whether the extracted color information matches the managed color information; the control circuit causes the pixel data to be stored in a storage unit when the color information and the managed color information match, and does not cause the pixel data to be stored in the storage unit when the color information and the managed color information do not match; when the color information and the managed color information do not match, the control circuit adjusts the managed color information so that the managed color information matches the color information; 4. An image reading control method comprising:
14. A program executed by a computer included in an image reading device having a plurality of light emitting units that emit light of different colors and a light receiving unit that receives light that is reflected by a document from the light emitting units, the image reading device reading the document and acquiring an image, the program comprising: the image reading device includes a computer and a relay circuit that controls the light emitting unit and the light receiving unit based on a control signal input from the computer; On the computer, outputting a control signal to the relay circuit to cause the relay circuit to control the light emitting unit and the light receiving unit; a step of inputting digital data from the relay circuit, the digital data being generated by adding color information indicating the color of the reflected light received by the light receiving unit to pixel data obtained by the relay circuit performing analog-to-digital conversion of the light receiving signal from the light receiving unit; obtaining managed color information, the managed color information being an estimate of the color information based on the control signal; extracting the color information from the digital data; determining whether the extracted color information matches the managed color information; storing the pixel data in the digital data in a storage unit when the color information and the managed color information match, and not storing the pixel data in the storage unit when the color information and the managed color information do not match; if the color information and the management color information do not match, adjusting the management color information so that the management color information matches the color information; A program that executes the following.
Citation Information
Patent Citations
Image processor
JP1994233145A
Image forming apparatus, control method thereof, image forming system and recording medium
JP2004072215A
Signal processor, image reader, information processor, and program
JP2015192173A
Image reader, control method of image reader
JP2018133646A
