Signal processing device, image reading device, information processing device, and program
Patent Information
- Application Number
- JP2021039174
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-11
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2041-03-11
AI Technical Summary
【0013】 請求項1、3-7に記載の発明によれば、スキャン回路において異常が生じ、色状態の同期が乱れた場合でも、正常状態に復帰し得る。
Smart Images

Figure 0007608884000001 
Figure 0007608884000002 
Figure 0007608884000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a signal processing device, an image reading device, an information processing device, and a program. [Background technology]
[0002] Patent Document 1 describes a signal processing device, an image reading device, an information processing device, and a program that can cause a downstream circuit to recognize colors corresponding to image information in a predetermined color order, compared to when an input / output means does not output an alternative synchronization signal to the downstream circuit. The AFE outputs image information indicating an image generated for each of a plurality of predetermined colors together with a first synchronization signal in a color order in which the plurality of colors circulate. The input / output circuit acquires image information corresponding to the input first synchronization signal in synchronization with the input of the first synchronization signal output by the AFE, and outputs the acquired image information to the downstream circuit in the acquisition order together with a second synchronization signal generated in response to the input of the first synchronization signal. Then, when the first synchronization signal is not input, the input / output circuit outputs an alternative synchronization signal that substitutes for the second synchronization signal to the downstream circuit. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2015-192174 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, when the color states of a scanner that transfers images in a line-sequential manner and a scan circuit are synchronized, if an abnormality occurs in the scan circuit, the color state becomes out of synchronization and it may become impossible to restore the normal state.
[0005] An object of the present invention is to provide a technique that can restore a normal state even when an abnormality occurs in a scan circuit and the synchronization of color states is disturbed. [Means for solving the problem]
[0006] The invention described in claim 1 includes a processor that receives and processes signals generated for each of a plurality of colors and output in a predetermined order and in a circular manner, and the processor executes a program to detect the timing of the start of each of the plurality of colors and output a synchronization signal, input the signal, sequentially update the color to be captured among the plurality of colors in response to the synchronization signal, and record the updated color and the timing at which the synchronization signal was output. The color output by and if they do not match, the signal processing device interrupts output of the synchronization signal and interrupts the update.
[0007] The invention described in claim 2 is a signal processing device described in claim 1, in which the processor captures the updated color signal and stores it in a memory unit, and when output of the synchronization signal is resumed, controls the address at which the captured signal is stored in the memory unit to be the address at the time when output of the synchronization signal was interrupted.
[0008] The invention described in claim 3 is a signal processing device described in either claim 1 or 2, wherein the multiple colors are composed of a first color, a second color, and a third color, and are output alternately and cyclically in the order of the first color, the second color, and the third color, and when the processor detects the timing of the start of the first color, it interrupts the output of the synchronization signal when the updated color is the second color or the third color.
[0009] The invention described in claim 4 is a signal processing device described in claim 3, wherein the processor interrupts output of the synchronization signal when the timing of the start of the first color is detected not at the start of a page.
[0010] The invention described in claim 5 is an image reading device that includes a generating means that receives reflected light when light of multiple colors is irradiated onto an image area including an image on a recording medium in a cyclic color order of the multiple colors and outputs a signal obtained by receiving the light, and a signal processing device described in any of claims 1 to 4 that processes the signal generated by the generating means.
[0011] The invention described in claim 6 is an image reading apparatus according to claim 5, and a signal processing device included in the image reading apparatus. Processed and an image forming device that forms an image based on the signal.
[0012] The invention described in claim 7 is a method for making a computer function as a detection means for inputting a signal generated for each of a plurality of colors and outputting the plurality of colors in a predetermined order and in a cyclical manner, detecting the timing of the start of each color among the plurality of colors, and outputting a synchronization signal, and an update means for inputting the signal and sequentially updating the color to be captured among the plurality of colors in response to the synchronization signal from the detection means, and further comprising: The color output by and if they do not match, the program stops outputting the synchronization signal. Effect of the Invention
[0013] According to the invention as set forth in claims 1, 3-7, even if an abnormality occurs in the scan circuit and the color state becomes out of synchronization, the normal state can be restored.
[0014] According to the invention as recited in claim 2, image information in which an abnormality has occurred can be overwritten with correct image information and stored in the storage unit. [Brief description of the drawings]
[0015] [Figure 1] 1 is an overall configuration diagram of an information processing apparatus according to an embodiment; [Diagram 2] FIG. 1 is a functional block diagram of an information processing apparatus according to an embodiment. [Diagram 3] FIG. 1 is a basic configuration diagram (part 1) that is the premise of an image reading unit according to an embodiment. [Figure 4] FIG. 2 is a second diagram showing the basic configuration of the image reading unit according to the embodiment; [Diagram 5] 4 is a timing chart in the basic configuration of the embodiment. [Figure 6] FIG. 2 is a configuration diagram (part 1) of an image reading unit according to an embodiment. [Figure 7] FIG. 2 is a second diagram showing the configuration of the image reading unit according to the embodiment. [Figure 8] 4 is a timing chart in the configuration of the embodiment. [Figure 9] 1 is a processing flowchart (part 1) according to an embodiment. [Figure 10] 13 is a second processing flowchart according to the embodiment. [Figure 11] 11 is a third processing flowchart of the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0017] First, the overall configuration of the information processing apparatus according to this embodiment will be described.
[0018] 1 shows an external perspective view of an information processing device 100. The information processing device 100 includes an image reading unit 102, an image forming unit 104, a paper storage unit 106, and a UI (user interface) unit 108, similar to the information processing device described in JP 2015-192174 A.
[0019] The image reading unit 102 includes a document table 110 and a discharge table 112. A pair of guide members 114A, 114B are provided on the top surface of the document table 110. One of the pair of guide members 114A, 114B is manually moved in the width direction of the document placed on the document table 110, and guides the document placed on the document table 110 in the transport direction when the document is transported. The image reading unit 102 takes in the documents placed on the document table 110 one by one, reads the image of the taken document in a line-sequential manner, and acquires image information. The acquired image information is output to a CPU, and then the document is discharged to the discharge table 112. Here, the line-sequential manner refers to a method of color separation by switching between red (R), green (G), and blue (B) light sources every time one line is read in one reading operation by a line sensor. Paper storage unit 106 stores paper, which is an example of a recording medium, by size, and image forming unit 104 takes out paper from paper storage unit 106 and forms an image on the taken-out paper. Image forming unit 104 discharges the paper on which the image has been formed to discharge tray 116. The image forming method may be an electrophotographic method, an inkjet method, or the like.
[0020] The UI unit 108 includes a touch panel display 108A for displaying images and a switch 108B. The touch panel display 108A and the switch 108B receive various instructions from a user of the information processing device 100. Examples of the various instructions include an instruction to the image reading unit 102 to start reading an image (scan start instruction), and an instruction to the image forming unit 104 to start forming an image. The touch panel display 108A displays various information such as results of processing executed in response to the received instructions and warnings.
[0021] The image reading unit 102 includes a housing and a document transport device, and the document transport device includes a document tray and a discharge tray. The housing contains the image reading unit main body, and a rectangular opening is formed on the top surface of the housing. The opening is covered by a platen glass on which a document is placed.
[0022] The image reading unit main body includes a CIS (Contact Image Sensor), an image processing circuit, and a motor. The CIS and the image processing circuit are mounted on a carriage, and the carriage receives a driving force from the motor and moves in the sub-scanning direction, which is the longitudinal direction of the opening.
[0023] The CIS includes a first LED (Light Emitting Diode), a second LED, and a third LED. The first LED is an LED having an emission wavelength of red (R), the second LED is an LED having an emission wavelength of green (G), and the third LED is an LED having an emission wavelength of blue (B). The first LED, the second LED, and the third LED are driven sequentially so that the light of each color of RGB is emitted in a predetermined order.
[0024] Here, the predetermined order refers to a predetermined color order in which RGB circulates (hereinafter, for convenience of explanation, this will be referred to as a "circular color order").
[0025] The CIS includes a light guide, a light collecting section, and a photoelectric conversion element.
[0026] The light guide is formed in an elongated shape along the main scanning direction. The first to third LEDs are attached to one end of the light guide, and the light emitted by the first to third LEDs is guided to the document via the platen glass.
[0027] The light collecting section is a lens unit in which a plurality of erect life-size imaging lens elements are arranged along the main scanning direction, and collects light reflected from the document when the document is irradiated with light from the first to third LEDs.
[0028] A plurality of photoelectric conversion elements are arranged along the main scanning direction, and receive light collected by the light collecting unit and perform photoelectric conversion to generate and output image information. The image information includes image information showing an R image, image information showing a G image, and image information showing a B image.
[0029] Image information from the CIS is supplied to an AFE (Analog Front End). The AFE adjusts the image information input from the photoelectric conversion element using an amplifier, an A / D converter, a filter, etc. (not shown), and outputs the adjusted image information.
[0030] 2 shows a functional block diagram of the information processing device 100. The information processing device 100 includes a controller 160. The controller 160 includes a CPU (Central Processing Unit) 162, a primary storage unit 164, and a secondary storage unit 166. The primary storage unit 164 is a volatile memory (e.g., RAM (Random Access Memory)) used as a work area during execution of various programs. The secondary storage unit 166 is a non-volatile memory (e.g., flash memory, HDD (Hard Disk Drive), etc.) that stores in advance control programs for controlling the operation of the information processing device 100, various parameters, etc. The CPU 162, the primary storage unit 164, and the secondary storage unit 166 are connected to each other via a bus 168.
[0031] The information processing device 100 includes an input / output interface (I / O) 170 that electrically connects the CPU 162 to various input / output devices and transmits / receives various information between the CPU 162 and the various input / output devices. The information processing device 100 includes an image reading unit 102, an image forming unit 104, and a UI unit 108 as input / output devices that are connected to the I / O 170 and electrically connected to the CPU 162 via a bus 168. The information processing device 100 also includes an external interface (I / F) 172 and a communication I / F 174 as input / output devices.
[0032] The external I / F 172 is connected to an external device (e.g., a USB memory) and transmits and receives various information between the external device and the CPU 162. The communication I / F 174 is connected to a communication means such as a LAN (Local Area Network) or the Internet and transmits and receives various information to and from an external device 176 connected to the communication means.
[0033] The CPU 162 transmits and receives various information to and from the above-mentioned input / output devices via a bus 168 and an I / O 170, thereby grasping the operating status of the input / output devices and controlling the input / output devices.
[0034] Here, we return to the description of the image reading unit body.
[0035] The CIS includes an LED drive circuit. The LED drive circuit is connected to each of the first to third LEDs. The AFE is connected to the LED drive circuit, and is connected to the I / O 170 via a signal line.
[0036] The AFE controls driving of the LED drive circuit according to a lighting start signal input from the CPU 162 via the I / O 170 and a signal line in response to a scan start instruction received by the UI unit 108. The LED drive circuit, under the control of the AFE, repeatedly causes the first to third LEDs to emit light in the order of the first LED, the second LED, and the third LED. That is, when a lighting start signal is input, the AFE controls the LED drive circuit to cause the first LED to emit light first, and thereafter to emit light in a cyclic color order.
[0037] The image processing circuit has a function of processing the image information input from the AFE in a cyclic color order starting from a specific color (here, R), and a function of performing image processing such as shading correction and pixel arrangement conversion processing on the image information input from the AFE.
[0038] 3 shows the configuration of a part of the CIS, AFE, and image processing circuit. This is a basic configuration diagram on which the present embodiment is based. The image reading unit main body includes a CIS 121, an AFE 122, and an image processing circuit, but the CIS 121 and the AFE 122 can be functionally separated as a scanner, and the image processing circuit can be functionally separated as a scan circuit.
[0039] The image processing circuit shown in FIG. 3 includes an input / output circuit 123, an ANF (Anti Noise Function) circuit 124, an R, G, B line head detection circuit 125, a pixel capture FIFO memory 126, and a DMA (Direct Memory Access) 127 as main components for storing image information in the DDR 128. At least a part of the image processing circuit may be configured with a processor such as a CPU. For example, the input / output circuit 123, the ANF circuit 124, and the R, G, B line head detection circuit 125 may be configured with one or more CPUs. The ANF circuit 124 and the R, G, B line head detection circuit 125 may be manufactured by different manufacturers, and in this case, the ANF circuit 124 and the R, G, B line head detection circuit 125 may be configured with separate processors. The one or more CPUs realize the processing of each part by reading and executing a control program stored in a program memory. Of course, each part of the scan circuit may be realized by hardware.
[0040] As described above, the scanner equipped with the CIS 121 and the AFE 122 outputs image information line-sequentially in the order of R, G, B. That is, R image information → G image information → B image information → R image information → G image information → B image information →... The image information is output in the order of R, G, and B. R will be referred to as the first color, G as the second color, and B as the third color.
[0041] The input / output circuit 123 has a serial-to-parallel conversion function, and converts serial image information into parallel image information and outputs it.
[0042] The ANF circuit 124 detects the line heads of the R, G, and B image information, generates a line head signal indicating the detection, and outputs it to the R, G, and B line head detection circuits.
[0043] The R, G, B line head detection circuit 125 is a circuit that manages the color state of the image information to be captured in the pixel capture FIFO memory 126, and each time it detects a line head signal, it updates the R, G, B color states in sequence and outputs a capture start control signal to the pixel capture FIFO memory 126. The R, G, B line head detection circuit 125 does not determine whether the image information currently being transferred is R image information, G image information, or B image information from the image information input from the scanner, but simply detects the head of a line each time R → G → B → R → G → B →... In other words, the color state is changed in the following order: 1st color → 2nd color → 3rd color → 1st color → 2nd color → 3rd color → ... The color state is converted in the following order.
[0044] More specifically, when the R, G, B line head detection circuit 125 receives a line head signal of R image information from the ANF circuit 124, it controls the pixel capture FIFO memory 126 to capture R image information in response to this line head signal. At this time, the current color state managed by the R, G, B line head detection circuit 125 is "R color" or "end of B color" which indicates that processing of the previous color, B color, has already ended. Here, "R color" means the color state resulting from updating the previous color, B color. Then, when the R, G, B line head detection circuit 125 captures a designated number of pixels from the line head into the pixel capture FIFO memory 126, it ends the capture of R image information. At this time, the color state becomes "end of R color."
[0045] Next, when the R, G, B line head detection circuit 125 receives a line head signal of G image information from the ANF circuit 124, it controls the pixel capture FIFO memory 126 to capture G image information in response to this line head signal. At this time, the color state is either "G color" as a result of the update, or "end of R color" indicating that processing of the previous color, R color, has already ended. Then, when the R, G, B line head detection circuit 125 captures a specified number of pixels from the line head into the pixel capture FIFO memory 126, it ends the capture of the G image information.
[0046] Next, when the R, G, B line head detection circuit 125 receives a line head signal of B image information from the ANF circuit 124, it controls the pixel capture FIFO memory 126 to capture B image information in response to this line head signal. At this time, the color state is "B color" as a result of the update, or "end of G color" indicating that processing of the previous color, G color, has already ended. Then, when the R, G, B line head detection circuit 125 captures a specified number of pixels from the line head into the pixel capture FIFO memory 126, it ends the capture of B image information.
[0047] Next, when the R, G, B line head detection circuit 125 receives the line head signal of R image information again from the ANF circuit 124, it controls the pixel capture FIFO memory 126 in response to this line head signal so as to capture R image information. At this time, the color state is either "R color" as a result of the update, or "end of B color" indicating that processing of the previous color, B color, has already ended. Then, the R, G, B line head detection circuit 125 captures a specified number of pixels from the line head into the pixel capture FIFO memory 126 and ends the capture of R image information.
[0048] The pixel capture FIFO memory 126 sequentially captures R image information, G image information, and B image information in response to a control signal from an R, G, B line head detection circuit 125 .
[0049] The DMA 127 reads out the image information captured in the pixel capture FIFO memory 126 and transfers it directly to a double-data-rate synchronous dynamic random access memory (DDR) 128 .
[0050] In this way, the ANF circuit 124 generates a line head signal in synchronization with the image information from the scanner and outputs it to the R, G, and B line head detection circuit 125 to control the capture of image information for each color, so that even if noise is introduced and disrupts the image information transferred from the scanner, the color state can be synchronized.
[0051] However, as shown in Fig. 4, if some abnormality, for example some malfunction occurs in the R, G, B line head detection circuit 125, causing a difference in color state between the ANF circuit 124 and the R, G, B line head detection circuit 125 (in Fig. 4, the mismatch in color state between the two is indicated by an X mark), the color state of the scanned image transferred from the scanner and the color state of the ANF circuit 124 remain synchronized, but the color state of the ANF circuit 124 and the color state of the R, G, B line head detection circuit 125 are not synchronized, so that it may not be possible to capture the image information of the scanned image transferred from the scanner in the correct R, G, B color order into the pixel capture FIFO memory 126 and further into the DDR 128. The reason for this is that, as described above, the R, G, B line head detection circuit 125 does not determine whether the image information currently being transferred is R image information, G image information, or B image information from the image information input from the scanner, but simply detects the line head every time it detects the line head. R → G → B → R → G → B →... This is because the color state is changed in the order of
[0052] FIG. 5 shows a timing chart of the scanner, the ANF circuit 124, and the R, G, B line head detection circuit 125.
[0053] 5(a) is a timing chart of image information transferred from the scanner. R image information, G image information, and B image information are transferred in that order.
[0054] 5(b) is a timing chart of line head detection of R image information, G image information, and B image information in the ANF circuit 124. When the ANF circuit 124 detects the line head of R image information, G image information, and B image information from the image information from the input / output circuit 123, it generates a line head signal as a pulse signal and outputs it to the R, G, B line head detection circuit 125.
[0055] 5C is a timing chart of the R, G, B line head detection circuit 125. When the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124, it instructs the pixel capture FIFO memory 126 to start capturing, and sequentially changes the state of the colors to be captured. R → G → B → R → G → B →... and update it.
[0056] Therefore, if operating normally, when the R,G,B line head detection circuit 125 receives a line head signal detecting the line head of R image information from the ANF circuit 124, it updates the color state from the previous color state, B, to R, and controls the pixel capture FIFO memory 126 to capture R image information. Then, when a designated number of pixels of image information have been captured from the line head, the capture of R image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of capture of R image information, and the falling edge of the rectangular pulse signal indicates the end timing of capture of R image information.
[0057] Next, when the R, G, B line head detection circuit 125 receives a line head signal detecting the line head of G image information from the ANF circuit 124, it updates the color state from the previous color state of R to G and controls the pixel capture FIFO memory 126 to capture G image information. Then, when a designated number of pixels of image information have been captured from the line head, the capture of the G image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of the G image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of the G image information.
[0058] Next, when the R, G, B line head detection circuit 125 receives a line head signal detecting the line head of B image information from the ANF circuit 124, it updates the color state from the previous color state of G to B and controls to capture the B image information into the pixel capture FIFO memory 126. Then, when a designated number of pixels of image information have been captured from the line head, the capture of the B image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of the B image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of the B image information.
[0059] If the system is operating normally, the above process is repeated until the color state detected by the ANF circuit 124 matches the color state controlled by the R, G, and B line head detection circuit of the scan circuit, and the process proceeds.
[0060] On the other hand, for example, a malfunction may occur in the R, G, B line head detection circuit 125, causing the color state detected by the ANF circuit 124 to no longer match the color state controlling the capture by the R, G, B line head detection circuit 125. For example, suppose that a line head signal detecting the line head of R image information is received from the ANF circuit 124, the color state is updated to R color, and control is performed to capture the R image information into the pixel capture FIFO memory 126, but some abnormality occurs and the capture state of the R image information continues.
[0061] In this case, even if the R, G, B line head detection circuit 125 receives a line head signal detecting the line head of the G image information from the ANF circuit 124, it maintains control so as to directly import the R image information into the pixel capture FIFO memory 126 without updating the color state from R to G.
[0062] Then, even if for some reason the R, G, B line head detection circuit 125 operates again and resumes updating the color state in response to a line head signal from the ANF circuit 124, when it receives a line head signal from the ANF circuit 124 detecting the line head of B image information, it will update the color state from the current color state of R to G and control the pixel capture FIFO memory 126 to capture G image information (in principle it should be controlled to capture B image information).
[0063] Furthermore, this color mismatch state continues, and it is not possible to return to the normal state. Here, "returning to the normal state" means that the color state detected by the ANF circuit 124 and the color state detected by the R, G, B line head detection circuit 125 move from a mismatch state to a match state.
[0064] This problem can be eliminated by configuring the R, G, B line head detection circuit 125 to determine whether the image information currently being transferred is R image information, G image information, or B image information; however, in cases where the R, G, B line head detection circuit 125 is supplied by another manufacturer, it is not easy to modify the configuration.
[0065] Therefore, in this embodiment, when the ANF circuit 124 detects the line head of the R image information signal, G image information signal, or B image information signal received from the input / output circuit 123, it does not always generate a line head signal indicating the line head and output it to the R,G,B line head detection circuit 125, but instead acquires and monitors the color state in the R,G,B line head detection circuit 125, and if the color associated with the line head of the R image information signal, G image information signal, or B image information signal received from the input / output circuit 123 does not match the color state in the R,G,B line head detection circuit 125, it does not output a line head signal, and only outputs the line head signal when both colors match.
[0066] The ANF circuit 124 in this embodiment is A function that monitors the color status of the R, G, and B line head detection circuits and compares it with the color status of the transferred image information. - A function to halt (mask) the output of the signal at the beginning of the line if the color status does not match It can be said that it has the following.
[0067] FIG. 6 shows the configuration of the ANF circuit 124 and the R, G, B line head detection circuit 125 in this embodiment. It is almost the same as the configuration in FIG. 3, but the function of the ANF circuit 124 is different. In FIG. 6, the ANF circuit 124 can be realized by a processor that executes a control program. The ANF circuit 124 also functions as a detection means. The R, G, B line head detection circuit 125 can be realized by another processor that executes a control program. The R, G, B line head detection circuit 125 also functions as an update means that updates the color state.
[0068] The ANF circuit 124 receives the image information from the input / output circuit 123, detects the line heads of the R image information, G image information, and B image information, and outputs a line head signal as a synchronization signal.
[0069] Furthermore, the ANF circuit 124 acquires the color state of the R, G, B line head detection circuit 125. The R, G, B line head detection circuit 125 may always output its color state, i.e., the color state of the image information captured in the pixel capture FIFO memory 126, to the ANF circuit 124, or may output its color state to the ANF circuit 124 in response to a transmission request from the ANF circuit 124. In the latter case, the ANF circuit 124 may generate a line head signal at the timing when it detects the line heads of the R image information, G image information, and B image information, and request the R, G, B line head detection circuit 125 to transmit the color state before outputting the signal to the R, G, B line head detection circuit 125.
[0070] Then, the ANF circuit 124 compares the color states of the line heads of the R image information, G image information, and B image information detected from the image information of the input / output circuit 123 with the color states of the R, G, B line head detection circuit 125, and determines whether the two match.
[0071] More specifically, when the ANF circuit 124 detects the line head of the R image information, if everything is normal, the R,G,B line head detection circuit 125 controls the pixel capture FIFO memory 126 to capture image information of B color, which is the previous color state, so the ANF circuit 124 determines whether the color state of the R,G,B line head detection circuit 125 is the end of B color when it detects the line head of the R image information, and determines that they match if they are the end of B color. The following lists the cases when the two match. Color of the line head detected by the ANF circuit: Color state of the R, G, B line head detection circuit R :End of B G: End of R B: End of G Of course, if the color state in the R, G, B line head detection circuit 125 means the updated color state, that is, the color state to be processed next, then it would be determined that the color states of both are the same, literally because the color states of both are the same color.
[0072] If the comparison result shows that the two match, the ANF circuit 124 generates a line head signal as a synchronization signal and outputs it to the R, G, B line head detection circuit 125. The R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, and in response thereto, updates the color state to the next color and captures image information (pixels) into the pixel capture FIFO memory 126. That is, if the B color has already been captured, the color state is updated to the next R color, and control is performed so that the pixels of the R image information are captured. Also, if the R color has already been captured, the color state is updated to the next G color, and control is performed so that the pixels of the G image information are captured.
[0073] On the other hand, if the comparison result shows that the two do not match, the ANF circuit 124 determines that some abnormality has occurred and does not generate a line head signal or output it to the R, G, B line head detection circuit 125. Since the R, G, B line head detection circuit 125 does not receive a line head signal from the ANF circuit 124, it does not update the color state to the next color in response to this, and maintains the current color state as it is.
[0074] Then, if the two become consistent again after the mismatch continues, the ANF circuit 124 generates a line head signal at the timing when the line head is detected again and outputs it to the R, G, B line head detection circuit 125. The R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, and in response thereto, updates the color state to the next color and captures image information (pixels) again into the pixel capture FIFO memory 126. As a result, the capture of image information is resumed in a state where the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 match, and a quick recovery from the abnormal state is achieved.
[0075] The ANF circuit 124 is synchronized with the image information transferred from the scanner, and by synchronizing the color states of the ANF circuit 124 and the R, G, B line head detection circuit 125, the color states of the scanner and the scan circuit can ultimately be synchronized.
[0076] The image information captured in the pixel capture FIFO memory 126 is addressed by the DMA 127 and directly transferred to and stored in the DDR 128 serving as a storage unit. However, if an abnormality occurs, erroneous image information at the time of the abnormality will be stored in the DDR 128 via the DMA 127. Therefore, it is preferable for the ANF circuit 124 to adjust the address of the DMA 127 so that the image information of the line in which the abnormality occurred is overwritten with image information of the line after recovery to normality.
[0077] 7, when an abnormality occurs, the ANF circuit 124 stops outputting the line head signal and subtracts 1 from the line counter value for specifying the address of the DMA 127 in order to move the address of the DMA 127 back by one line. That is, in a normal state, the ANF circuit 124 generates a line head signal and outputs it to the R, G, B line head detection circuit 125, adds 1 to the line counter value, outputs it to the DMA 127, and advances the address of the DMA 127 by one line, but when an abnormality is detected, it subtracts 1 from the line counter value and outputs it to the DMA 127 so as to move the address of the DMA 127 back by one line. The DMA 127 writes the image information captured in the pixel capture FIFO memory 126 to an address of the DDR 128 according to the line counter value from the ANF circuit 124.
[0078] 8 shows a timing chart of the scanner, the ANF circuit 124, and the R, G, B line head detection circuit 125 in this embodiment. This is a timing chart corresponding to FIG.
[0079] 8A is a timing chart of image information transferred from the scanner. R image information, G image information, and B image information are transferred in that order.
[0080] 8(b) is a timing chart of line head detection of R image information, G image information, and B image information in the ANF circuit 124. As a basic operation, when the ANF circuit 124 detects the line head of R image information, G image information, and B image information from the image information from the input / output circuit, it generates a line head signal as a pulse signal and outputs it to the R, G, B line head detection circuit 125.
[0081] 8C is a timing chart of the R, G, B line head detection circuit 125. When the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124, it instructs the pixel capture FIFO memory 126 to start capturing, and sequentially changes the state of the colors to be captured. R → G → B → R → G → B →... and update it.
[0082] Therefore, if operating normally, when the R,G,B line head detection circuit 125 receives a line head signal detecting the line head of R image information from the ANF circuit 124, it updates the color state from the previous color state, B, to R, and controls the pixel capture FIFO memory 126 to capture R image information. Then, when a designated number of pixels of image information have been captured from the line head, the capture of R image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of capture of R image information, and the falling edge of the rectangular pulse signal indicates the end timing of capture of R image information.
[0083] Next, when the R, G, B line head detection circuit 125 receives a line head signal detecting the line head of G image information from the ANF circuit 124, it updates the color state from the previous color state of R to G and controls the pixel capture FIFO memory 126 to capture G image information. Then, when a predetermined number of pixels of image information have been captured from the line head, the capture of the G image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of the G image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of the G image information.
[0084] Next, when the R, G, B line head detection circuit 125 receives a line head signal detecting the line head of B image information from the ANF circuit 124, it updates the color state from the previous color state of G to B and controls to capture the B image information into the pixel capture FIFO memory 126. Then, when a predetermined number of pixels of image information have been captured from the line head, the capture of the B image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of the B image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of the B image information.
[0085] If the system is operating normally, the above process is repeated, and the process proceeds while synchronizing the color state detected by the ANF circuit 124 with the color state controlled by the R, G, B line head detection circuit 125 of the scan circuit.
[0086] On the other hand, suppose an abnormality occurs in the R, G, B line head detection circuit 125. Specifically, suppose some abnormality occurs during the import process of R image information. After this, the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 do not match. That is, at the timing when the ANF circuit 124 detects the line head of the G image information, under normal conditions, the color state of the R, G, B line head detection circuit 125 should be that the import of R color has ended, but an abnormality has occurred and the import of R color has not ended, so the two color states do not match.
[0087] In this case, even if the ANF circuit 124 detects the line head of the G image information, it does not output a line head signal because it does not match the color state of the R, G, B line head detection circuit 125. In Fig. 8(b), the dashed pulse signal indicates that a line head signal is not output even if the line head of the G image information is detected. Since a line head signal is not output, the R, G, B line head detection circuit 125 does not receive a line head signal from the ANF circuit 124 and maintains the current color state as it is without updating it. In other words, the state in which the capture of R color is not completed is maintained as it is.
[0088] Next, even if the ANF circuit 124 detects the line head of the B image information, the color state of the R, G, B line head detection circuit 125 should be that the capture of the G color has been completed under normal conditions. However, since an abnormality has occurred and the capture of the R color has not been completed, the color states of the two do not match, so the ANF circuit 124 does not output a line head signal even if it detects the line head of the B image information. In FIG. 8(b), the fact that the line head signal is not output even if the line head of the B image information is detected is shown as a dashed pulse signal. Since the line head signal is not output, the R, G, B line head detection circuit 125 does not receive a line head signal from the ANF circuit 124, and maintains the current color state as it is without updating it. In other words, the state in which the capture of the R color has not been completed is maintained as it is.
[0089] Next, when the ANF circuit 124 detects the line head of the R image information, the current color state of the R,G,B line head detection circuit 125 is a state in which the capture of the R image information is continuing, i.e., the previous capture of the B color has ended, so the two color states match again, and the ANF circuit 124 generates and outputs a line head signal at the detection timing of the line head of the R image information again. In Fig. 8(b), the re-output of the line head signal is shown as a solid pulse signal. When the R,G,B line head detection circuit 125 receives the line head signal, it resumes the capture of the R image information into the pixel capture FIFO memory 126, and ends the capture of the R image information when it has captured a designated number of pixels of R image information from the line head.
[0090] After that, the color state detected by the ANF circuit 124 and the color state detected by the R, G, B line head detection circuit 125 again match, so the ANF circuit 124 generates a line head signal each time it detects the head of a line of R image information, G image information, or B image information and outputs it to the R, G, B line head detection circuit 125.
[0091] Next, the processing of this embodiment will be described in more detail with reference to a flowchart.
[0092] 9, 10, and 11 show processing flowcharts of the embodiment.
[0093] 9, the ANF circuit 124 reserves the DMA address of the top of a page (S101). Next, the abnormality flag is initialized to 0 (D102). This abnormality flag is identification information indicating that an abnormality has occurred, and is set to 0 if no abnormality has occurred and to 1 if an abnormality has occurred.
[0094] Next, the ANF circuit 124 detects the line head of the R image information from the image information received from the input / output circuit 123 (S103). If the line head of the R image information is not detected, the process is repeated until it is detected.
[0095] When the line head of the R image information is detected (YES in s103), the ANF circuit 124 determines whether this detection timing is the head of a page or whether the color state of the R, G, B line head detection circuit 125 at this detection timing is B color, that is, whether the B image information has ended (S104).
[0096] As described above, the R, G, B line head detection circuit 125 does not determine whether the image information currently being transferred is R image information, G image information, or B image information, but simply performs the following every time it detects the head of a line: R → G → B → R → G → B →... The ANF circuit 124 obtains the current color state of the R, G, B line head detection circuit 125, and determines whether the color state of the R, G, B line head detection circuit 125 is B, that is, after the end of the B image information.
[0097] Here, after the B color ends, the color is updated to the next R color, so it may be compared with the updated R color. However, it should be noted that the actual update occurs after the R, G, B line head detection circuit 125 receives the head line signal from the ANF circuit 124, so the updated color state has not yet been realized before the line head signal is received.
[0098] If the timing at which the line head of the R image information is detected is the top of a page, or the color state of the R, G, B line head detection circuit 125 is after the end of the B image information (YES in S104), since the image information is transferred in the order of R, G, B, the detection at this timing is deemed to be the correct line head of the R image information, and the ANF circuit 124 maintains the abnormality flag at 0 (S105), issues a line head signal indicating that the line head of the R image information has been detected, and outputs it to the R, G, B line head detection circuit 125 (S106). Then, the line counter is incremented by adding 1. When the R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, it changes the color state to the color next to B, specifically, to R, and outputs a capture start signal to the pixel capture FIFO memory 126.
[0099] On the other hand, if the timing of detecting the line head of the R image information is not after the page head or the end of the B image information (NO in S104), it is determined that the color state detected by the ANF circuit 124 does not match the color state in the R, G, B line head detection circuit 125, and the value of the abnormality flag is checked (S108). If the abnormality flag is 0, it is determined that an abnormality has occurred, and the abnormality flag is set from 0 to 1 (S109). In this case, the ANF circuit 124 does not issue a line head signal despite detecting the line head of the R image information (does not execute the process of S106), and decrements the line counter by 1 (S110). Since the R, G, B line head detection circuit 125 does not receive the line head signal from the ANF circuit 124, it does not update the color state to the color next to R, specifically to the G color, but maintains the current color state as it is and captures the image information into the pixel capture FIFO memory 126.
[0100] If the abnormality flag has already been set to 1 (NO in S108), the process proceeds to the process in FIG. 10 without changing the value of the line counter.
[0101] After incrementing the line counter by 1 (S107) or decrementing the line counter by 1 (S108), the ANF circuit 124 reserves the head DMA address of the next line according to the line counter and outputs it to the DMA 127 (S111). Then, the process proceeds to FIG.
[0102] 10, the ANF circuit 124 detects the line head of the G image information (S112) from the image information from the input / output circuit 123. If the line head of the G image information is not detected, the process is repeated until it is detected.
[0103] When the line head of the G image information is detected (YES in S112), the ANF circuit 124 judges whether the color state of the R, G, B line head detection circuit 125 is R, that is, whether the R image information has ended (S113). That is, the ANF circuit 124 obtains the current color state of the R, G, B line head detection circuit 125 and judges whether the color state of the R, G, B line head detection circuit 125 is R, that is, whether the R image information has ended.
[0104] If the timing at which the line head of the G image information is detected is the color state of the R, G, B line head detection circuit 125 after the end of the R image information (YES in S113), it determines that the detection at this timing is the correct line head of the G image information, sets the abnormality flag to 0 (S114), and issues a line head signal indicating that the line head of the G image information has been detected and outputs it to the R, G, B line head detection circuit 125 (S115). Then, it increments the line counter by 1 (S116). When the R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, it changes the color state to the color next to R, specifically G, and outputs an acquisition start signal to the pixel acquisition FIFO memory 126.
[0105] On the other hand, if the timing at which the line head of the G image information is detected is not after the end of the R image information (NO in S113), it is determined that the color state detected by the ANF circuit 124 does not match the color state in the R, G, B line head detection circuit 125, and the value of the abnormality flag is checked (S117). If the abnormality flag is 0, it is determined that an abnormality has occurred, and the abnormality flag is set from 0 to 1 (S118). In this case, the ANF circuit 124 does not issue a line head signal despite having detected the line head of the G image information (does not execute the process of S115), and decrements the line counter by 1 (S119). Since the R, G, B line head detection circuit 125 does not receive a line head signal from the ANF circuit 124, it maintains the current color state as it is without updating the color state.
[0106] If the abnormality flag has already been set to 1 (NO in S117), the process proceeds to the process in FIG.
[0107] After incrementing or decrementing the line counter by 1, the ANF circuit 124 reserves the start DMA address of the next line according to the line counter (S120), and then proceeds to the process of FIG.
[0108] 11, the ANF circuit 124 detects the line head of the B image information (S121) from the image information from the input / output circuit 123. If the line head of the B image information is not detected, the process is repeated until it is detected.
[0109] When the line head of the B image information is detected (YES in S121), the ANF circuit 124 judges whether the color state of the R, G, B line head detection circuit 125 is G color, that is, whether the end of the G image information has occurred (S122). That is, the ANF circuit 124 obtains the current color state of the R, G, B line head detection circuit 125, and judges whether the color state of the R, G, B line head detection circuit 125 is G color, that is, whether the end of the G image information has occurred.
[0110] If the R, G, B line head detection circuit 125 detects the line head of the B image information after the end of the G image information (YES in S122), it determines that the detection at this timing is the correct line head of the B image information, sets the abnormality flag to 0 (S123), and issues a line head signal indicating that the line head of the B image information has been detected and outputs it to the R, G, B line head detection circuit (S124). Then, it increments the line counter by 1 (S125). When the R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, it changes the color state to the color next to G, specifically B, and outputs a capture start signal to the pixel capture FIFO memory 126.
[0111] On the other hand, if the timing at which the line head of the B image information is detected is not after the end of the G image information (NO in S122), it is determined that the detection at this timing is not the correct line head of the B image information, that is, the color state detected by the ANF circuit 124 does not match the color state in the R, G, B line head detection circuit 125, and the value of the abnormality flag is checked (S126). If the abnormality flag is 0, it is determined that an abnormality has occurred and the abnormality flag is set from 0 to 1 (S127). In this case, the ANF circuit 124 does not issue a line head signal despite having detected the line head of the B image information (does not execute the process of S124), and decrements the line counter by 1 (S128). Since the R, G, B line head detection circuit 125 does not receive the line head signal from the ANF circuit 124, it does not update the color state and maintains the current color state as it is.
[0112] If the abnormality flag has already been set to 1 (NO in S126), the process returns to the line head detection process (S103) for the R image information in FIG. 9 and repeats the processes in FIGS.
[0113] After incrementing or decrementing the line counter by 1, the ANF circuit 124 reserves the start DMA address of the next line according to the line counter (S129), and then determines whether the value of the line counter has reached the set number of lines (S130).
[0114] If the value of the line counter has reached the set number of lines, the processing is terminated (YES in S130), and if the value of the line counter has not reached the set number of lines (NO in S130), the processing returns to the line head detection processing (S103) for the R image information in FIG. 9 and the processing in FIGS. 9 to 11 is repeated.
[0115] According to the above process, when the abnormality flag is set to 1, output of the line head signal from the ANF circuit 124 to the R, G, B line head detection circuit 125 is interrupted, and updating of the color state in the R, G, B line head detection circuit 125 is interrupted. Then, when the ANF circuit 124 detects the line head of any of the R, G, or B image information, and the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 match again at the timing of detection of that line head, the abnormality flag is set from 1 to 0 again, output of the line head signal from the ANF circuit 124 to the R, G, B line head detection circuit 125 is resumed, and updating of the color state in the R, G, B line head detection circuit 125 is resumed.
[0116] As described above, in this embodiment, the R, G, B line head detection circuit 125 of the scan circuit controls the capture into the pixel capture FIFO memory 126 by inputting the line head signal from the ANF circuit 124, and determines the color state. R → G → B → R → G → B →... The ANF circuit 124 acquires the color state of the R, G, B line head detection circuit 125, and when it detects that the color state detected by the ANF circuit 124 and the color state of the R, G, B line head detection circuit 125 do not match and are out of synchronization, it interrupts the output of the line head signal from the ANF circuit 124 to the R, G, B line head detection circuit and interrupts the updating of the color information in the R, G, B line head detection circuit 125; when the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 match and are synchronized again, it resumes the output of the line head signal from the ANF circuit 124 to the R, G, B line head detection circuit 125 and resumes the updating of the color state in the R, G, B line head detection circuit 125, thereby resynchronizing the color state.
[0117] Furthermore, in this embodiment, when an abnormality occurs, the value of the line counter of the ANF circuit 124 is decremented by 1 and the address of the DMA 127 is moved back by one line. Normally, the address advances by one line and is stored in the DDR 128, so that even after a return to normal, data is stored starting from the line following the abnormal line. However, after a return to normal from the abnormality, the abnormal line can be overwritten with the normal line, so that various processes can be performed using the correct image information stored in the DDR 128.
[0118] In the above embodiment, the processor refers to a processor in a broad sense, and includes a general-purpose processor (e.g., a CPU Central Processing Unit, etc.) and a dedicated processor (e.g., a GPU Graphics Processing Unit, ASIC Application Specific Integrated Circuit, FPGA Field Programmable Gate Arrays, programmable logic devices, etc.
[0119] In addition, the operations of the processor in the above embodiment may be performed not only by one processor but also by multiple processors located at physically separate locations working together. The order of the operations of the processor is not limited to the order described in the above embodiment, and may be changed as appropriate. [Explanation of symbols]
[0120] 100 information processing device, 102 image reading unit, 121 CIS, 122 AFE, 123 input / output circuit, 124 ANF circuit, 125 R, G, B line head detection circuit, 126 pixel capture FIFO memory, 127 DMA, 128 DDR.
Claims
1. The present invention includes a processor that receives and processes signals generated for each of a plurality of colors and output in a predetermined order and in a cyclical manner for the plurality of colors, the processor executing a program to: Detecting the timing of the start of each color among the plurality of colors and outputting a synchronization signal; inputting the signal, and sequentially updating the color to be captured among the plurality of colors in response to the synchronization signal; if the updated color does not match the color output at the timing of outputting the synchronization signal, the output of the synchronization signal is interrupted to interrupt the update. Signal processing device.
2. The processor, The updated color signal is captured and stored in the memory. When the output of the synchronization signal is resumed, an address at which the captured signal is stored in the storage unit is controlled to an address at the timing when the output of the synchronization signal was interrupted. The signal processing device according to claim 1 .
3. the plurality of colors are composed of a first color, a second color, and a third color, and the first color, the second color, and the third color are output alternately and cyclically in this order; when the processor detects the timing of the beginning of the first color, and the updated color is the second color or the third color, the processor interrupts output of the synchronization signal; 3. A signal processing device according to claim 1 or 2.
4. The processor, interrupting the output of the synchronization signal when the timing of the start of the first color is not the start of a page. The signal processing device according to claim 3 .
5. a generating means for receiving reflected light when a light of each of a plurality of colors is irradiated onto an image area including an image on a recording medium in a cyclical color order of the plurality of colors, and outputting a signal obtained by receiving the reflected light; A signal processing device according to any one of claims 1 to 4, which processes the signal generated by the generating means; An image reading device comprising:
6. The image reading device according to claim 5 ; an image forming apparatus that forms an image based on the signal processed by the signal processing apparatus included in the image reading apparatus; An information processing device comprising:
7. Computer, a detection means for receiving a signal generated for each of a plurality of colors and outputting the plurality of colors in a predetermined order and in a cyclical manner, detecting the timing of the start of each of the plurality of colors and outputting a synchronization signal; an update means for receiving the signal and sequentially updating the color to be captured among the plurality of colors in response to the synchronization signal from the detection means; and interrupting the output of the synchronization signal when the color updated by the update means does not match the color output at the timing of outputting the synchronization signal. program.
Citation Information
Patent Citations
Signal processor, image reader, information processor, and program
JP2015192174A
Image processing apparatus and program
JP2018191201A