Scanning device, image forming apparatus, scanning method and storage medium
By arranging a data processor between the image reader and the imaging controller, the problem of port number mismatch is solved, efficient utilization of resources and cost reduction are achieved, and the development of scanning technology is promoted.
Patent Information
- Application Number
- CN201910634273.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-15
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-07-15
AI Technical Summary
In the prior art, the number of ports used by the imaging controller to receive scan data cannot completely match the number of output interfaces of the configured scanning unit, resulting in problems with increased hardware design and chip area, and affecting the development of scanning technology.
By setting up a data processor between the image reader and the imaging controller, the conversion processing of the scanned data is completed, so that the number of ports received by the imaging controller matches the number of output interfaces of the data processor, and existing signal transmission line resources are utilized to reduce Additional memory configuration is required, reducing development and production costs.
This solves the problem of port number mismatch, fully utilizes the resources of the imaging controller, reduces production costs, and is conducive to the further development of scanning technology.
Smart Images

Figure CN110233948B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image forming technology, and in particular to a scanning device, an image forming apparatus, a scanning method and a storage medium. Background Art
[0002] At present, in order to improve the productivity of reading documents and improve quietness, etc., a scanning device having a double-sided scanning function is used in the prior art.
[0003] See also Figure 1 , which is a schematic diagram of the structure of an image forming device for double-sided scanning in the prior art, such as Figure 1 As shown, in order to support the double-sided function, the scanning device of the image forming apparatus in the prior art is provided with corresponding hardware modules, such as ADF (Automatic Document Feeder) scanning unit 110, FB (Flat Panel) scanning unit 120 and ports, etc. However, since the number of ports of the existing SoC (System on Chip) for receiving scan data cannot completely match the number of output ports of the configured scanning unit, increasing the number of ports of the SoC will put forward higher requirements on the hardware design and chip area of the SoC, and may even affect other modules of the SoC, and therefore, it is not conducive to the development of scanning technology. Summary of the invention
[0004] The embodiments of the present invention provide a scanning device, an image forming apparatus, a scanning method and a storage medium, which can solve the problem in the prior art that the number of ports of an imaging controller for receiving scanning data cannot completely match the number of output interfaces of a configured scanning unit.
[0005] In a first aspect, an embodiment of the present invention provides a scanning device, including:
[0006] Two image readers, each configured to read a document to be scanned and output image data corresponding to the document to be scanned;
[0007] a data processor connected to the image reader via a first signal transmission line, the data processor being configured to acquire the image data via the first signal transmission line and cache the image data in a cache unit therein; and
[0008] The imaging controller is configured to read the image data of the cache unit through the second signal transmission line, wherein the number of lines corresponding to the second signal transmission line is less than the number of lines corresponding to the first signal transmission line.
[0009] Optionally, the data processor is a programmable logic device, which is specifically configured to acquire the image data through the first signal transmission line and remap each image data to obtain second image data, and cache the second image data in the cache unit.
[0010] Optionally, the image reader comprises:
[0011] a sensor configured to read the document to be scanned and output image data corresponding to the document to be scanned, wherein the image data includes at least one first image data; and
[0012] The first low voltage differential signal transmitter is connected to the sensor and is configured to receive the at least one first image data and output one first image data in a differential transmission manner through the first signal transmission line in each first cycle, wherein each first image data corresponds to a pixel point data.
[0013] Optionally, the programmable logic device further includes a first low voltage differential signal receiver and a second low voltage differential signal transmitter, and the imaging controller includes a second low voltage differential signal receiver;
[0014] The first low voltage differential signal receiver is connected to the first low voltage differential signal transmitter through the first signal transmission line, and the programmable logic device receives the first image data through the first low voltage differential signal receiver;
[0015] The second low voltage differential signal transmitter is connected to the cache unit and to the second low voltage differential signal receiver through the second signal transmission line. The second low voltage differential signal transmitter is configured to output the second image data cached in the cache unit to the imaging controller in a differential transmission manner through the second signal transmission line. The imaging controller receives the second image data through the second low voltage differential signal receiver.
[0016] Optionally, the programmable logic device is specifically configured to receive the first image data once through the first low voltage differential signal receiver in each of the first cycles and perform a first remapping process and a quantization compression process on the first image data in the order in which the first image data is received, so as to sequentially obtain the second image data having a first preset format and a first preset bit number, and cache the second image data in the cache unit, wherein the second image data is in a one-to-one correspondence with the first image data.
[0017] Optionally, the number of the cache units is two, and the two cache units are constructed as a ping-pong buffer structure;
[0018] The programmable logic device is specifically configured to receive the first image data once through the first low voltage differential signal receiver in each of the first cycles and perform a second remapping process on the first image data in the order in which the first image data is received, so as to sequentially obtain the second image data having a second preset format and a second preset number of bits, and cache the generated second image data into one of the two cache units, with every three second image data corresponding to two first image data.
[0019] In a second aspect, an embodiment of the present invention provides an image forming apparatus, comprising any one of the scanning devices described above, and an imaging device connected to the scanning device.
[0020] In a third aspect, an embodiment of the present invention provides a scanning method, including:
[0021] The two image readers respectively read the document to be scanned and output image data corresponding to the document to be scanned;
[0022] The data processor acquires the image data through the first signal transmission line and caches the image data in a cache unit inside the data processor;
[0023] The imaging controller reads the image data of the cache unit through the second signal transmission line, wherein the number of lines corresponding to the second signal transmission line is less than the number of lines corresponding to the first signal transmission line.
[0024] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above method.
[0025] In a fifth aspect, an embodiment of the present invention provides a scanning device, comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, and the program instructions implement the steps of the above method when loaded and executed by the processor.
[0026] It can be understood that the present invention sets a data processor between the image reader and the imaging controller, and completes the conversion processing of the scan data through the data processor, so that the number of ports of the imaging controller for receiving the scan data can match the number of output interfaces of the configured data processor, thereby solving the problem in the prior art that the number of ports of the imaging controller for receiving the scan data cannot completely match the number of output interfaces of the configured scanning unit, and fully utilizes the resources of the port corresponding to the existing second signal transmission line of the imaging controller. At the same time, the data processor does not need to be additionally configured with a memory, which reduces the development and production costs and is conducive to the further development of the scanning technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0028] Figure 1 It is a structural schematic diagram of an image forming device in the prior art;
[0029] Figure 2 A cross-sectional view of a scanning device in an image forming apparatus of the prior art;
[0030] Figure 3 A schematic block diagram of a scanning device provided by an embodiment of the present invention;
[0031] Figure 4 for Figure 3 A further schematic block diagram of a scanning device in;
[0032] Figure 5 A schematic block diagram of a scanning device provided in yet another embodiment of the present invention;
[0033] Figure 6 A schematic block diagram of a scanning device provided in yet another embodiment of the present invention;
[0034] Figure 7 A signal timing diagram of image data output by an image reader provided by an embodiment of the present invention;
[0035] Figure 8 A schematic block diagram of a scanning device provided in yet another embodiment of the present invention;
[0036] Fig. 9 for Figure 8 A schematic diagram of a process in which an imaging controller in a scanning device provided in the embodiment processes second image data;
[0037] Fig.10 A schematic block diagram of an image forming apparatus provided by an embodiment of the present invention;
[0038] Fig.11 A flowchart of a scanning method provided by an embodiment of the present invention;
[0039] Fig.12 A schematic block diagram of a scanning device provided in yet another embodiment of the present invention. Specific embodiments
[0040] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0041] It should be clear that the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0043] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0044] Please see attached Figures 1-2 The prior art provides an image forming device, which includes a scanning device and an imaging device located below the scanning device, wherein the scanning device includes but is not limited to an ADF (Automatic Document Feeder) scanning unit 110 and a FB (Flat Bed) scanning unit 120, and the imaging device includes but is not limited to an imaging unit (such as a developing box), a fixing unit, a paper moving unit and a paper box 130.
[0045] Furthermore, the image forming device also includes a touch screen 140, on which the user can click or press a scan or copy icon to perform a scan or copy operation, and can also set imaging parameters of the image forming device (such as scanning resolution, size of paper in the paper box 130, etc.) through the touch screen.
[0046] Furthermore, the ADF scanning unit 110 includes a paper feed port 112, two paper width adjustment plates 111 and a paper pickup roller 113. By adjusting the distance between the two paper width adjustment plates 111, the size of the paper allowed to be placed in the paper feed port 112 can be adjusted. For example, if the paper to be scanned or copied is A4, then the distance between the two paper width adjustment plates 111 is adjusted to correspond to the size of A4. After the scanning command is sent, the motor will drive the paper pickup roller 113, and the paper pickup roller 113 will feed the paper to be scanned into the paper path in the ADF scanning unit 110 sheet by sheet. The paper will be transmitted to the position of the first sensor 116 or the second sensor 121 by the two transfer rollers (114, 115) on the paper path. The first sensor 116 acquires the image on the paper, and then continues to move the paper along the transfer roller 117, and discharges the paper into the paper tray through the paper discharge roller 118.
[0047] In the embodiment of the present invention, there is no particular limitation on the models of the first sensor 116 and the second sensor 121. Preferably, the first sensor 116 and the second sensor 121 can be configured as a contact image sensor (CIS); or, the first sensor 116 and the second sensor 121 can also be partially or completely configured as a charge coupled device (CCD).
[0048] Furthermore, the FB scanning unit 120 is provided with a document cover, a glass document table 122 is provided under the document cover, and a second sensor 121 driven by a motor is provided under the glass document table 122. After the document cover is opened, the paper to be scanned or copied is placed on the glass document table 122, and the motor drives the second sensor to move from left to right, thereby completing the scanning.
[0049] During double-sided scanning, the first sensor 116 and the second sensor 121 are all turned on. After the paper enters the paper path, the first sensor 116 and the second sensor 121 simultaneously obtain the front and back side data of the paper to achieve double-sided scanning.
[0050] Please see attached Figure 3 , an embodiment of the present invention provides a scanning device, including:
[0051] Two image readers 1, each configured to read a document to be scanned and output image data corresponding to the document to be scanned;
[0052] A data processor 2 is connected to the image reader 1 through a first signal transmission line, and the data processor 2 is configured to obtain image data through the first signal transmission line and cache the image data in a cache unit 21 therein; and
[0053] The imaging controller 3 is configured to read the image data of the cache unit 21 through the second signal transmission line, wherein the number of lines corresponding to the second signal transmission line is less than the number of lines corresponding to the first signal transmission line.
[0054] In this embodiment, the "first signal transmission line" mentioned above refers to the transmission line corresponding to the first signal transmission protocol. The corresponding type of the first signal transmission protocol includes but is not limited to the "Low Voltage Differential Signaling (LVDS)" mentioned below. The specific form of the first signal transmission line includes but is not limited to "flexible cable" and "wire harness". The "second signal transmission line" mentioned above refers to the transmission line corresponding to the second signal transmission protocol. The corresponding type of the second signal transmission protocol can be the same as the corresponding type of the first signal transmission protocol, or it can be different. The preferred implementation method of this embodiment is the same, for example, both are "Low Voltage Differential Signaling (LVDS); and the specific form of the second signal transmission line includes but is not limited to the signal transmission line in the PCB board (for example, a microstrip line or a stripline). In the preferred method, the same signal transmission protocol is adopted, so the data processor 2 does not need to undergo complex signal conversion, nor does it need to configure an additional memory to assist the data processor 2 in completing the signal protocol conversion; only the internal cache of the data processor 2 can be used to complete the adjustment and transmission of the image data.
[0055] In this embodiment, the number of lines corresponding to the first signal transmission line mentioned above refers to: the number of image data ports (or channels) and the number of clock control signal ports (or channels) set by the data processor 2 in order to receive the image data output by the image reader 1. The number of lines corresponding to the second signal transmission line refers to: the number of image data ports (or channels) and the number of clock control signal ports (or channels) set by the imaging controller 3 in order to receive the image data output by the data processor 2. In addition, in this embodiment, the image reader 1 is sold as a separate component, and has been prefabricated in advance to output the scanned image data through a first number (for example, X) of ports, and the first number of ports need to output the signal using a first signal transmission protocol. The imaging controller 3 is sold as a separate component, and has also been prefabricated in advance with a second number (for example, Y) of ports to receive the scanned image data, and the second number of ports need to receive the signal through a second signal transmission protocol; but the prefabricated first number X < second number Y.
[0056] It can be understood that the present invention sets a data processor 2 between the image reader 1 and the imaging controller 3, and completes the conversion processing of the scanned data through the data processor 2, so that the number of ports of the imaging controller 3 receiving the scanned data can match the number of output interfaces of the configured data processor 2, thereby solving the problem in the prior art that the number of ports of the imaging controller 3 receiving the scanned data cannot completely match the number of output interfaces of the configured scanning unit, and fully utilizes the resources of the port corresponding to the existing second signal transmission line of the imaging controller 3. At the same time, the data processor 2 does not need to be additionally configured with a memory, which reduces the development and production costs and is conducive to the further development of the scanning technology.
[0057] Specifically, the two image readers 1 can respectively read the front image data and the back image data of the document to be scanned, or both image readers 1 can read the front image data of the document to be scanned or both image readers 1 can read the back image data of the document to be scanned. It can be understood that the scanning device provided in the embodiment of the present invention can also be used for single-sided scanning. At this time, the two image readers 1 are located on the same side of the document to be scanned. At this time, according to the side of the document to be scanned that needs to be scanned, the image data output by the two image readers 1 are both the front image data of the document to be scanned, or the image data output by the two image readers 1 are both the back image data of the document to be scanned.
[0058] Specifically, in the embodiment of the present invention, the file to be scanned may include, but is not limited to: at least one of: a document, a certificate, an image, and a photo, which is not particularly limited in the embodiment of the present invention.
[0059] Specifically, the imaging controller 3 is a SoC (System on Chip), which is a miniature system composed of multiple system components, and is configured to control the imaging processing operations of the scanned image of the scanning device, such as linear correction, noise reduction, bad pixel removal, detail enhancement, etc., to improve the quality of the image output. The imaging controller 3 is also used to perform processing operations related to data transmission and reception, command transmission and reception, and engine control of printing images, such as transmitting and receiving data, printing engine control commands, status, etc. through an interface unit (including but not limited to a USB port, a wired network port, a wireless network port, or other interfaces, etc.). In this embodiment, the imaging controller 3 controls the scanning operation of the scanning device and the imaging operation of the imaging device at the same time, but the embodiment is not limited to this. For example, an independent imaging controller can be configured for the scanning device and the imaging device, respectively, and these all belong to the protection scope of this embodiment.
[0060] In this embodiment, the number of data processors 2 is two, and the two data processors 2 are respectively connected to the two image readers 1 through two groups of first signal transmission lines and are respectively connected to the imaging controller 3 through two groups of second signal transmission lines, and the two data processors 2 respectively process the image data output by the two image readers 1. In other embodiments, the data processor 2 can also be composed of two or more data processors 2 integrated together. Of course, there are other embodiments for the setting of the data processor 2, as long as they conform to the technical solution of the present invention, they are within the protection scope of the present invention.
[0061] Specifically, in this embodiment, the data processor 2 is a programmable logic device, specifically a FPGA (Field-Programmable Gate Array). In other implementations, the data processor 2 can also be a programmable device such as a CPLD (Complex Programmable Logic Device).
[0062] Furthermore, the data processor 2 is configured to acquire image data through the first signal transmission line and perform remapping processing on each image data to obtain second image data, and cache the second image data in the cache unit 21 .
[0063] It should be understood that, since the number of lines corresponding to the second signal transmission line is less than the number of lines corresponding to the first signal transmission line, the image data needs to be remapped to obtain second image data with a preset format, so that the imaging controller 3 can obtain image data continuously and uninterruptedly under the premise of satisfying its own receiving frequency, and process the image data. In order to make it easier for those skilled in the art to understand this embodiment, the image data output by the image reader in one output cycle is referred to as the first image data, and the image data obtained by the imaging controller 3 in one acquisition cycle is referred to as the second image data.
[0064] Please see attached Figure 4 , further, the image reader 1 comprises:
[0065] A sensor 11 is configured to read a document to be scanned and output image data corresponding to the document to be scanned, wherein the image data includes at least one first image data; and
[0066] The first low voltage differential signal (LVDS) transmitter 12 is connected to the sensor 11, and is configured to receive at least one first image data and output a first image data in a differential transmission manner through the first signal transmission line in each first cycle, wherein each first image data corresponds to a pixel point data.
[0067] Specifically, the two sensors 11 can be the first sensor (such as CIS or CCD) 116 and the second sensor (such as CIS or CCD) 121 mentioned above. In the present embodiment, the sensor 11 is configured to convert each pixel into a corresponding analog signal in a row-by-row scanning manner, wherein a row of an image includes a number of pixels, such as 1024 pixels.
[0068] Specifically, the image reader 1 further includes an analog-to-digital conversion unit (not shown), which is connected between the sensor 11 and the first low voltage differential signal transmitter 12, and is used to convert the analog signal output by the sensor 11 into a digital signal and output it to the first low voltage differential signal transmitter 12. More specifically, the image reader 1 outputs image data line by line according to the line synchronization signal, and is also provided with an image data transmission clock (TCLK), and each image data transmission clock (TCLK) outputs data corresponding to a pixel. The first low voltage differential signal transmitter 12 is used to output the received digital signal to the data processor 2 through the first signal transmission line in a pixel-by-pixel manner according to a preset clock cycle, that is, the first low voltage differential signal transmitter 12 outputs the first image data corresponding to a pixel to the data processor 2 in each clock pulse cycle (in this article, the clock pulse cycle of the first low voltage differential signal transmitter 12 is "the first cycle").
[0069] It should be noted that the first image data and the generated second image data can be in a one-to-one correspondence, or the first image data corresponds to generating multiple second image data, or multiple first image data correspond to generating one second image data, or multiple first image data correspond to generating multiple second image data.
[0070] Please see attached Figure 4 The data processor 2 also includes a first low voltage differential signal (Low Voltage Differential Signaling, LVDS) receiver 22 and a second low voltage differential signal (Low Voltage Differential Signaling, LVDS) transmitter 23, and the imaging controller 3 includes a second low voltage differential signal (Low Voltage Differential Signaling, LVDS) receiver 31.
[0071] The first low voltage differential signal receiver 22 is connected to the first low voltage differential signal transmitter 12 through the first signal transmission line, and the data processor 2 receives the first image data through the first low voltage differential signal receiver 22 .
[0072] The second low voltage differential signal transmitter 23 is connected to the cache unit 21 and to the second low voltage differential signal receiver 31 through a second signal transmission line. The second low voltage differential signal transmitter 23 is configured to output the second image data cached in the cache unit 21 to the imaging controller 3 in a differential transmission manner through the second signal transmission line. The imaging controller 3 receives the second image data through the second low voltage differential signal receiver 31.
[0073] It should be noted that the number of first signal transmission lines is associated with the number of data bits of the first image data, and the number of second signal transmission lines is associated with the number of data bits of the second image data. The first low voltage differential signal transmitter is configured to output the first image data generated by the sensor 11 in a pixel-by-pixel manner.
[0074] In this embodiment, one pixel is represented by 24-bit RGB data, and the 24-bit RGB data includes 8-bit R (red) pixel data (R7, R6, R5, R4, R3, R2, R1, R0), 8-bit G (blue) pixel data (G7, G6, G5, G4, G3, G2, G1, G0) and 8-bit B (green) pixel data (B7, B6, B5, B4, B3, B2, B1, B0). In this embodiment, the first image data corresponding to one pixel is composed of 24-bit RGB data and a control signal. According to the LVDS transmission mechanism, LVDS converts parallel pixel signals and control signals into serial bit streams, which are transmitted through multiple groups of wires, and the clock pulse signal is transmitted separately through a group of wires. Since each data channel of the first low voltage differential signal transmitter 12 outputs a 7-bit serial data signal within one clock pulse cycle, each first low voltage differential signal transmitter 12 corresponds to a group of transmission lines, each group of transmission lines requires 5 pairs of data lines and 1 pair of clock lines, and the first image data is transmitted through the first signal transmission line composed of the data line and the clock line. In this embodiment, each first low voltage differential signal transmitter 12 has 6 pairs of low voltage differential signal ports (the number of data transmission ports is 5 and the number of clock signal transmission ports is 1, because the LVDS signal output lines are arranged in "pairs", each channel corresponds to 1 pair of signal lines, so the number of ports can also be in "pairs"); each data processor requires 6 pairs of low voltage differential signal receiving ports respectively, and the data processor of the entire scanning device requires at least 12 pairs of low voltage differential signal receiving ports.
[0075] It is also necessary to know that, in this embodiment, the remapping process is specifically a process of rearranging the arrangement order of the RGB pixel data, the clock signal and the control signal corresponding to the first image data according to a preset mapping rule.
[0076] It is also necessary to know that the number of low voltage differential signal ports prefabricated in the second low voltage differential signal receiver 31 of the imaging controller 3 is less than the number of lines corresponding to the first signal transmission line, and the number of low voltage differential signal ports prefabricated in the first low voltage differential signal transmitters 12 of the two image readers 1 is greater than or equal to the number of lines corresponding to the first signal transmission line. Therefore, the preset rules in this embodiment are mainly set to meet the requirement that the number of LVDS input ports of the data processor is greater than the number of LVDS output ports, and in order to meet this requirement, the preset rules include that the data amount (bit number) of the image data output by the data processor is less than or equal to the data amount (bit number) of the input image data, and rearrangement is performed according to the number of output ports being less than the number of input ports. In this embodiment, the first image data corresponding to a pixel point is composed of 24-bit RGB data and a control signal, and each of the three colors corresponds to 8 bits; and each 8-bit data is synthesized into a pixel value of one color, and the pixel values of the three colors are then synthesized as the pixel value of the pixel point; the rearrangement according to the preset rules includes: only retaining valid control signals and valid image data, and the valid image data includes but is not limited to the output of RGB colors arranged in a disordered order, and arranging them according to a data sequence (also called a sequence) that can correctly reflect the corresponding data values of different colors of each pixel point; therefore, the image data can be arranged in sequence according to the preset rules, and then input into the imaging controller 3, so that the imaging controller 3 can complete subsequent image processing operations more efficiently.
[0077] It is also necessary to know that, in the present embodiment, the number of data processors 2 is 2, and correspondingly, the number of second low voltage differential signal receivers 31 of the imaging controller 3 is two, and the two second low voltage differential signal receivers 31 are respectively connected to the two second low voltage differential signal transmitters 23 through two groups of second signal transmission lines, or the second low voltage differential signal receiver 31 is composed of two or more second low voltage differential signal receivers 31 integrated together.
[0078] Furthermore, the data processor 2 remaps the image data in the following three ways:
[0079] Method 1:
[0080] Please see attached Figure 5 , data processor 2 (data processor 2 can be of multiple types, attached Figure 5The FPGA shown in FIG. 1 is one of them) is configured to transmit a first signal through a first signal transmission line (attached Figure 5 The LVDS1-TA, LVDS1-TB, LVDS1-TC, LVDS1-TD, LVDS1-TE and TCLK shown in the figure receive the first image data once and perform a first remapping process and a quantization compression process on the first image data in the order in which the first image data is received, so as to sequentially obtain second image data having a first preset format and a first preset number of bits, and cache the second image data in the cache unit 21, wherein each second image data corresponds to a pixel point data.
[0081] For example, see Tables 1, 2 and 3 below:
[0082] Table 1:
[0083]
[0084]
[0085] Table 2:
[0086] bit6 bit5 bit4 bit3 bit2 bit1 bit0 TLCK H H L L L H H LVDS2-TA HQ R7 R6 R5 R4 R3 LVDS2-TB VD G7 G6 G5 G4 G3 G2 LVDS2-TC HD B7 B6 B5 B4 B3
[0087] Table 3:
[0088] bit6 bit5 bit4 bit3 bit2 bit1 bit0 TLCK H H L L L H H LVDS2-TA HQ R7 R6 R5 R4 R3 0 LVDS2-TB VD G7 G6 G5 G4 G3 G2 LVDS2-TC HD B7 B6 B5 B4 B3 0
[0089] As shown in Table 1, Table 1 is a data format table of the first image data received by the first low voltage differential signal receiver 23 within a clock pulse cycle. It can be known that within a clock pulse cycle of the first low voltage differential signal transmitter 12, the TCLK line transmission signal corresponding to the first signal transmission line is expressed as: H, H, L, L, L, H, H; the LVDS1-TA line transmission data corresponding to the first signal transmission line is expressed as: R4, R5, R6, R7, 0, 0, HSYHQ; the first signal transmission line corresponds to The LVDS1-TB line transmission data is expressed as: B3, B4, B5, B6, B7, 0, 0; the LVDS1-TC line transmission data corresponding to the first signal transmission line is expressed as: 0, VD, HD, R0, R1, R2, R3; the LVDS1-TD line transmission data corresponding to the first signal transmission line is expressed as: G6, G7, 0, 0, B0, B1, B2; the LVDS1-TE line transmission data corresponding to the first signal transmission line is expressed as: 0, G0, G1, G2, G3, G4, G5.
[0090] It should be noted that in Table 1, R represents red pixel data, G represents blue pixel data, B represents green pixel data, 0 represents no data, HSYHQ, VD and HD represent control signals respectively, wherein HSYHQ represents a row synchronization signal, VD represents a valid data enable signal, and HD represents a page synchronization signal. For example, when the signal corresponding to HSYHQ is "1", it indicates that the pixel corresponding to the first image data is a starting pixel or an end pixel in a pixel row, and when the signal corresponding to VD is "0", it indicates that the pixel corresponding to the first image data is a valid pixel. The above is only an example. In other embodiments, the control signal corresponding to a first image data is not limited to the above.
[0091] It should also be noted that the arrangement of the output data of the first low voltage differential signal transmitter 12 produced by different manufacturers may be different. Table 1 only represents one exemplary arrangement format of the first image data. The first image data output by the first low voltage differential signal transmitter 12 can also be arranged in other ways. Different data arrangement methods match different remapping rules, which are specifically determined according to the preset transmission protocol of the manufacturer of the first low voltage differential signal transmitter 12. The present invention is not limited to this.
[0092] As shown in Table 2, Table 2 is a data format table of a second image data generated after the data processor 2 in this embodiment performs a first remapping process and a quantization compression process on a first image data listed in Table 1.
[0093] Combined with Table 2 and Appendix Figure 5 In this embodiment, the second low voltage differential signal transmitter 23 ( Figure 5 The number of low voltage differential signal ports corresponding to the second signal transmission line is 4, and the second signal transmission line includes 3 pairs of data lines (as shown in the attached Figure 5 LVDS2-TA, LVDS2-TB and LVDS2-TC) and a pair of clock lines (such as the attached Figure 5 In the embodiment of the present invention, the TCLK of the second low voltage differential signal receiver 31 is a clock pulse cycle of the first low voltage differential signal transmitter 12, and the TCLK line transmission signal corresponding to the second signal transmission line is expressed as: H, H, L, L, L, H, H; the LVDS2-TA line transmission data corresponding to the second signal transmission line is expressed as: HSYHQ, R7, R6, R5, R4, R3; the LVDS2-TB line transmission data corresponding to the second signal transmission line is expressed as: VD, G7, G6, G5, G4, G3, G2; the LVDS3-TC line transmission data corresponding to the second signal transmission line is expressed as: HD, B7, B6, B5, B4, B3.
[0094] It should be noted that, in the present embodiment, the quantization compression processing is specifically to convert the 24-bit RGB data into 16-bit RGB data, that is, to convert the first image data in the RGB888 format (i.e., including 8-bit R pixel data, 8-bit G pixel data, and 8-bit B pixel data) into the second image data in the RGB565 format (i.e., including 5-bit R pixel data, 6-bit G pixel data, and 5-bit B pixel data). In other embodiments, the first image data in the RGB888 format may be converted into the RGB555 format (i.e., including 5-bit R pixel data, 5-bit G pixel data, and 5-bit B pixel data). The second image data (A data and 5-bit B pixel data) is transmitted by the second low voltage differential signal transmitter 23. Since the second low voltage differential signal transmitter 23 includes 3 pairs of data lines, each pair of data lines transmits 7 bits of data in one transmission cycle of the second low voltage differential signal transmitter 23, that is, the second low voltage differential signal transmitter 23 supports the transmission of 21 bits of data at most in addition to the clock signal. Therefore, the first image data is quantized and compressed, so that the second low voltage differential signal transmitter 23 also outputs the second image data corresponding to one pixel point in the first cycle to the second low voltage differential signal receiver 31 ( Figure 5 not shown).
[0095] It can be understood that since the number of corresponding lines of the first signal transmission line is greater than the number of corresponding lines of the second signal transmission line, the number of data bits transmitted by the second signal transmission line in the same time is less than the number of data bits transmitted by the first signal transmission line. The present invention performs a first remapping process and a quantization compression process on the first image data, so that the second low voltage differential signal transmitter 23 can output the second image data corresponding to a pixel under one clock pulse, and the clock frequencies of the first low voltage differential signal transmitter 12 and the second low voltage differential signal transmitter 23 can be set to be the same. Therefore, the first low voltage differential signal transmitter 12 and the second low voltage differential signal transmitter 23 can achieve the same frequency transmission, and the clock frequency of the first low voltage differential signal transmitter 12 is 66.38Mhz, and the clock frequency of the low voltage differential signal port prefabricated in the second low voltage differential signal receiver 31 of the imaging controller 3 currently supports a maximum clock frequency of 100Mhz, so it fully meets the business needs.
[0096] In this embodiment, the data processor 2 sequentially performs the first remapping process and the quantization compression process on the first image data, sequentially generates the second image data, and sequentially caches the second image data to the internal cache unit 21 (as shown in the attached figure) according to the generation order of the second image data. Figure 5 In the Buffer A shown in FIG. 1 , when the amount of the second image data to be cached by the cache unit 21 reaches N, the second low voltage differential signal transmitter 23 ( Figure 5) starts to send the second image data to the second low voltage differential signal receiver 31 (not shown) through the second signal transmission line Figure 5 ), wherein N is the number of pixels corresponding to a row of images, that is, the cache unit 21 caches the second image data by row, and when the number of pixels corresponding to the second image data reaches the number of pixels corresponding to a row of images (for example, N is 1024), the second low voltage differential signal receiver 31 sequentially outputs the second image data according to the second period.
[0097] Please continue to refer to the attached Figure 5 In this embodiment, the imaging controller 3 also includes a control module (the control module can be of various types, attached Figure 5 The CPU shown in the figure is one of them) and an image data processor, wherein the image data processor includes but is not limited to a CISX module (the CISX module is configured to separate R, G, and B image data), a PIC (Pixel Image Correction) module, a PIE (Pixel Image Enhancement) module, and a storage module (the storage module can be of multiple types, such as the attached Figure 5 The DDR (Double Data Rate SDRAM, double rate SDRAM) shown in is one of them), the CISX module is connected between the second low voltage differential signal receiver 31 and the PIC module, the PIC module is connected to the PIE module, and the PIC module and the PIE module are respectively connected to the storage module.
[0098] The control module of the imaging controller 3 is configured to generate a control instruction, and the image data processor is configured to read the second image data cached in the cache unit 21 once through the second signal transmission line in each second cycle, and perform quantization compensation processing on the second image data according to the control instruction, wherein the second cycle is equal to the first cycle. It can be understood that the display end of the current PC (personal computer) only supports input of image data in RGB888 format, so before sending the image data to the PC, the image data processor needs to perform quantization compensation processing on the second image data so that the data format of the second image data is RGB888 format.
[0099] In this embodiment, the PIC module receives the second image data through the second low voltage differential signal receiver 31 and the CISX module. The PIC module is used to perform quantization compensation processing on the second image data under the intervention of the CPU, and store the second image data after quantization compensation processing in the DDR. Then the CPU processes the second image data stored in the storage module into a plane format, and then controls the DDR to send the second image data after quantization compensation processing to the PIE module in a plane format for further processing. After processing, the PIE module saves the processed image data in the DDR, and then the image data processor sends the processed image data to the PC (personal computer) through the USB interface (in other embodiments, it can also be other interfaces, such as a network interface) to complete the scanning operation.
[0100] Specifically, the quantization compensation processing of the second image data is performed according to the control instruction, specifically converting the second image data from RGB565 format or RGB555 format to RGB888 format. The specific implementation process is to fill the low bit of each second image data with 0. The format of the second image data after filling with 0 is shown in Table 3.
[0101] It can be understood that in this embodiment, the data processor 2 sequentially remaps and quantizes and compresses the received first image data, so that the imaging controller 3 can uninterruptedly and continuously receive the image data output by the two image readers 1 under the premise that the interface resources are insufficient. There is no need to change the existing structure of the imaging controller 3 and the existing resources of the imaging controller 3 are fully utilized, which is conducive to the further development of scanning technology.
[0102] Method 2:
[0103] Please see attached Figure 6 In this embodiment, the cache unit 21 (as shown in the attached Figure 6 The number of Buffer B and Buffer C shown in the figure is two, and the two buffer units 21 are constructed as a ping-pong buffer (double buffer) structure; the data processor 2 (control module can be of various types, attached Figure 6 The FPGA shown in FIG. 1 is one of them) is configured to transmit a first signal through a first signal transmission line (such as the attached Figure 6The LVDS1-TA, LVDS1-TB, LVDS1-TC, LVDS1-TD, LVDS1-TE and TCLK shown in the figure receive the first image data once and perform a second remapping process on the first image data in the order in which the first image data is received, so as to sequentially obtain second image data having a second preset format and a second preset number of bits, and cache the generated second image data in one of the two cache units 21, wherein every three second image data correspond to two first image data.
[0104] For example, see Tables 4 and 5 below:
[0105] Table 4:
[0106]
[0107] Table 5:
[0108]
[0109] As shown in Table 4, Table 4 is a data format table of two first image data received by the first low voltage differential signal receiver 22 in two adjacent clock pulse cycles (1TCLK and 2TCLK).
[0110] Combined with Table 4 and Appendix Figure 6 , within a clock pulse cycle of the first low voltage differential signal transmitter 12, the TCLK line transmission signal corresponding to the first signal transmission line is expressed as: H, H, L, L, L, H, H; the LVDS1-TA line transmission data corresponding to the first signal transmission line is expressed as: R4, R5, R6, R7, 0, 0, HSYHQ; the LVDS1-TB line transmission data corresponding to the first signal transmission line is expressed as: B3, B4, B5, B6, B7, 0, 0; the LVDS1-TC line transmission data corresponding to the first signal transmission line is expressed as: 0, VD, HD, R0, R1, R2, R3; the LVDS1-TD line transmission data corresponding to the first signal transmission line is expressed as: G6, G7, 0, 0, B0, B1, B2; the LVDS1-TE line transmission data corresponding to the first signal transmission line is expressed as: 0, G0, G1, G2, G3, G4, G5.
[0111] It should be noted that in Table 1, R represents red pixel data, G represents blue pixel data, B represents green pixel data, 0 represents no data, HSYHQ, VD and HD represent control signals respectively, wherein HSYHQ represents a row synchronization signal, VD represents a valid data enable signal, and HD represents a page synchronization signal. For example, when the signal corresponding to HSYHQ is "1", it indicates that the pixel corresponding to the first image data is the starting pixel or the end pixel in a pixel row, and when the signal corresponding to VD is "0", it indicates that the pixel corresponding to the first image data is a valid pixel. The above is only an example. In other embodiments, the control signal corresponding to a first image data is not limited to the above.
[0112] It should also be noted that the arrangement of the output data of the first low voltage differential signal transmitter 12 produced by different manufacturers may be different. Table 1 only represents one exemplary arrangement format of the first image data. The first image data output by the first low voltage differential signal transmitter 12 can also be arranged in other ways. Different data arrangement methods match different remapping rules, which are specifically determined according to the preset transmission protocol of the manufacturer of the first low voltage differential signal transmitter 12. The present invention is not limited to this.
[0113] As shown in Table 5, Table 5 is a data format table of three second image data generated after the data processor 2 in this embodiment performs a second remapping process on the first image data in Table 4, wherein the second low voltage differential signal transmitter 23 sends a second image data to the imaging controller 3 in each clock pulse cycle (in this embodiment, the second low voltage differential signal transmitter 23 takes each clock pulse cycle as the second cycle).
[0114] Specifically, the ping-pong buffer (double buffer) structure means that when one of the buffer units 21 is writing data, the other buffer unit 21 is outputting data at the same time. In the next cycle, the buffer unit 21 that has written data outputs the data, while the other buffer unit 21 buffers the written data. In short, the two buffer units 21 output and send data alternately. In this embodiment, after one of the buffer units 21 buffers the second image data corresponding to a row of pixels, it switches to the other buffer unit 21 to buffer the data, and so on.
[0115] In this embodiment, the second low voltage differential signal transmitter 23 (see Figure 6 The number of low voltage differential signal ports corresponding to the second signal transmission line is 4 pairs, and the second signal transmission line includes 3 pairs of data lines (as shown in the attached Figure 8 LVDS2-TA, LVDS2-TB and LVDS2-TC) and a pair of clock lines (such as the attached Figure 6 TCLK in
[0116] Further, the imaging controller 3 is configured to acquire the second image data of one of the two cache units 21 once in each third period, wherein the first period may be 1.5 times of the third period.
[0117] It can be understood that, since the number of lines corresponding to the first signal transmission line is greater than the number of lines corresponding to the second signal transmission line, the number of data bits transmitted by the second signal transmission line in the same time is less than the number of data bits transmitted by the first signal transmission line. By performing a second remapping process on the first data, the number of bits of the second image data can be 2 / 3 times the number of bits of the first image data. In this embodiment, the number of ports of the second low voltage differential signal receiver 31 corresponding to the imaging controller 3 is reduced by increasing the output frequency of the second low voltage differential signal transmitter 23, thereby ensuring the normal reception and processing of image data. In this embodiment, the output frequency of the second low voltage differential signal transmitter 23 is 3 / 2 times the output frequency of the first low voltage differential signal transmitter 12.
[0118] It can be understood that compared with the first method, the second method does not need to perform quantization compression processing on the first image data, so that the formed image can have higher precision.
[0119] In other embodiments, the data processor 2 further includes a data screening unit (not shown). Specifically, the data screening unit is used to remove useless data (invalid data). Specifically, the data screening unit can remove useless data in the following two ways, including but not limited to:
[0120] The first method is to extract a first control signal (VD) from the first image data. When the first control signal is a preset signal (eg, "0"), the first image data is determined to be useless data and the first image data is deleted.
[0121] The second method is to determine the first moment and the second moment; and delete the first image data acquired by one of the two sensors 11 at the first moment, and delete the first image data acquired by the other of the two sensors after the second moment.
[0122] It should be noted that when the scanning device provided by the embodiment of the present invention is used for double-sided scanning, the two sensors 11 may not be completely opposite to each other in the vertical direction, so as to avoid interference between the two sensors 11 when acquiring image data. This design of staggering the layout of the two sensors 11 makes the two sensors 11 acquire the first image data of the document to be scanned at different times. When used for double-sided scanning, assuming that the front data of the document to be processed is scanned first, it is necessary to delete the useless data collected after scanning the front data in the image data collected by the sensor 11, and it is also necessary to remove the redundant data collected before scanning the back data in the image data collected by the sensor 11.
[0123] Based on the above, the first moment is the moment when the document to be scanned leaves one of the sensors 11 , and the second moment is the moment when the document to be scanned reaches another sensor 11 .
[0124] In the embodiment of the present invention, the data obtained by the first low voltage differential signal receiver 22 is filtered by the data filtering unit, the first image data retained after filtering can be remapped, and the generated second image data can be cached in the cache unit 21.
[0125] It can be understood that by filtering the first image data, the space of the cache unit 21 can be saved, and at the same time, the clock frequency of the second low voltage differential signal receiver 31 of the imaging controller 3 can be reduced to meet the clock frequency requirement of the second low voltage differential signal receiver 31 of the imaging controller 3. It should be noted that the low voltage differential signal port in the second low voltage differential signal receiver 31 of the current imaging controller 3 only supports a speed of 100Mhz. Under the premise of not reducing the output frequency (66.38MHz) of the existing image reader, the first image data is filtered by the data filtering unit, so that the clock frequency of the second low voltage differential signal receiver 31 of the imaging controller 3 can meet the requirement of being equal to or lower than 100Mhz.
[0126] For example, see Table 6 below:
[0127] Table 6:
[0128]
[0129] Please see attached Figure 7 , attached Figure 7 FIG. 1 shows a signal timing diagram of image data output by the image reader 1 in an embodiment of the present invention, wherein the output data of the first low voltage differential signal transmitter 12 includes a pixel signal (DATA), a control signal (HCYNC, HD and VD) and a clock signal (TCLK). When HD, which is a valid data enable signal, is at a low level, the pixel signal is a valid signal. Figure 6 ,, each time the image reader 1 scans a line, the image reader 1 outputs 11218 pixels of data through the first low voltage differential signal transmitter 12, but the actual useful data is only 7500 pixels. In this way, when the frequency of the LVDS CLK (the clock signal of the first low voltage differential signal receiver 22) from the image reader 1 to the data processor 2 (FPGA) is constant, the LVDS CLK from the data processor 2 to the imaging controller 3 can be determined according to the number of valid data actually transmitted. Assuming that the number of valid data points actually transmitted is 8000 points, the cycle of a TR (repetition time) is 11218*15.1ns=169.4us, the data that needs to be transmitted within a TR cycle is 8000 points, and each pixel point is 24-bit RGB data (3Byte), then the total amount of data that needs to be transmitted for a row of pixels is 8000*3=24000Byte, and based on 1 LVDS CLK transmitting 2Bytes, 24000 / 2=12000 LVDS CLKs are required, and the transmission time of a row of pixels is 169.4uS, so the frequency of the LVDS CLK is 169.4 / 12000=14.1nS, i.e. 70.9Mhz, and the LVDS CLK frequency from the image reader 1 to the data processor 2 is 66.38Mhz, so the frequency of the LVDS CLK of the imaging controller 3 fully meets the requirement of less than 100Mhz.
[0130] It should be noted that the data screening unit is not limited to being applied in the above-mentioned method 2, and can also be applied in method 1, method 3 and any of the other embodiments of the present invention.
[0131] Furthermore, the imaging controller 3 is configured to acquire the second image data of one of the two cache units 21 once in each third cycle, wherein the first cycle may be 1.5 times the third cycle. It is to be understood that after adopting the data screening unit, the first cycle may also be 1 times, 1.2 times or more of the third cycle.
[0132] Please refer again to the attached Figure 6 Furthermore, the imaging controller 3 also includes a control module (the control module can be of various types, attached Figure 6 The CPU shown in the figure is one of them) and image data processors, etc. The image data processors include but are not limited to CISX modules (CISX modules are configured to separate R, G, B image data), PIC (Pixel Image Correction, image pixel correction) modules, PIE (Pixel Image Enhancement, image pixel enhancement) modules and storage modules (storage modules can be of multiple types, attached) Figure 6 The DDR (Double Data Rate SDRAM) shown in the figure is one of them), the CISX module is connected to the second low voltage differential signal receiver 31 ( Figure 6 The PIC module is connected to the PIE module and the PIC module and the PIE module are connected to the storage module respectively.
[0133] In this embodiment, the PIC module obtains the second image data through the second low voltage differential signal receiver 31. After receiving the second image data, the PIC module performs pixel correction processing on the second image data, and then stores the processed second image data in the DDR. Then the CPU processes the second image data stored in the DDR into a plane format, and then controls the DDR to send the second image data after quantization compensation processing to the PIE module in a plane format for further processing. After processing, the PIE module saves the processed image data in the DDR, and then the second image data processor sends the processed image data to the PC (personal computer) through the USB interface (in other embodiments, it can also be other interfaces, such as a network interface) to complete the scanning operation.
[0134] Method 3:
[0135] Please see attached Figure 8 In this embodiment, the number of cache units 21 is three, and the three cache units 21 are respectively the first cache unit (as shown in the attached Figure 8 Buffer D shown in FIG. 1 ), the second cache unit (such as the attached Figure 8 Buffer E) and the third buffer unit (as shown in the attached Figure 8 BufferF shown in );
[0136] Data processor 2 (data processor 2 can be of multiple types, attached Figure 8 The FPGA shown in FIG. 1 is one of them) is specifically configured to transmit the first signal through the first signal transmission line (such as the attached Figure 8 ) receives the first image data and performs a third remapping process on the first image data in the order in which the first image data is received, so as to sequentially obtain second image data having a third preset format and a third preset number of bits, wherein the second image data includes red pixel data, blue pixel data and green pixel data; and caches the obtained red pixel data, blue pixel data and green pixel data into the first cache unit, the second cache unit and the third cache unit, respectively.
[0137] For example, see Tables 7 and 8 below:
[0138] Table 7:
[0139] bit6 bit5 bit4 bit3 bit2 bit1 bit0 TLCK H H L L L H H LVDS1-TA R4 R5 R6 R7 0 0 HQ LVDS1-TB B3 B4 B5 B6 B7 0 0 LVDS1-TC 0 VD HD R0 R1 R2 R3 LVDS1-TD G6 G7 0 0 B0 B1 B2 LVDS1-TE 0 G0 G1 G2 G3 G4 G5
[0140] Table 8:
[0141]
[0142] As shown in Table 7, Table 1 is a data format table of the first image data received by the first low voltage differential signal receiver 22 within one clock pulse cycle. It can be known that within one clock pulse cycle of the first low voltage differential signal transmitter 12, the TCLK line transmission signal corresponding to the first signal transmission line is expressed as: H, H, L, L, L, H, H; the LVDS1-TA line transmission data corresponding to the first signal transmission line is expressed as: R4, R5, R6, R7, 0, 0, HSYHQ; the first signal transmission line corresponds to The LVDS1-TB line transmission data is expressed as: B3, B4, B5, B6, B7, 0, 0; the LVDS1-TC line transmission data corresponding to the first signal transmission line is expressed as: 0, VD, HD, R0, R1, R2, R3; the LVDS1-TD line transmission data corresponding to the first signal transmission line is expressed as: G6, G7, 0, 0, B0, B1, B2; the LVDS1-TE line transmission data corresponding to the first signal transmission line is expressed as: 0, G0, G1, G2, G3, G4, G5.
[0143] It should be noted that in Table 1, R represents red pixel data, G represents blue pixel data, B represents green pixel data, 0 represents no data, HSYHQ, VD and HD represent control signals respectively, wherein HSYHQ represents a row synchronization signal, VD represents a valid data enable signal, and HD represents a control page synchronization signal. For example, when the signal corresponding to HSYHQ is "1", it indicates that the pixel corresponding to the first image data is the starting pixel or the end pixel in a pixel row, and when the signal corresponding to VD is "0", it indicates that the pixel corresponding to the first image data is a valid pixel. The above is only an example. In other embodiments, the control signal corresponding to a first image data is not limited to the above.
[0144] It should also be noted that the arrangement of the output data of the first low voltage differential signal transmitter 12 produced by different manufacturers may be different. Table 1 only represents one exemplary arrangement format of the first image data. The first image data output by the first low voltage differential signal transmitter 12 can also be arranged in other ways. Different data arrangement methods match different remapping rules, which are specifically determined according to the preset transmission protocol of the manufacturer of the first low voltage differential signal transmitter 12. The present invention is not limited to this.
[0145] As shown in Table 8, Table 8 is a data format table of second image data generated after the data processor 2 in this embodiment performs the third remapping process on the first image data listed in Table 1.
[0146] In this embodiment, the second low voltage differential signal transmitter 23 (see Figure 8 The number of low voltage differential signal ports corresponding to the second signal transmission line is 3, and the second signal transmission line includes 2 pairs of data lines (as shown in the attached figure). Figure 8 LVDS2-TA and LVDS2-TB in the Figure 8 Since each pair of data lines transmits 7 bits of data in one transmission cycle of the second low voltage differential signal transmitter 23, it can be known that the second low voltage differential signal transmitter 23 can support the transmission of up to 14 bits of data in one transmission cycle. Therefore, in this embodiment, the data processor 2 remaps each first image data to generate red pixel data, blue pixel data and green pixel data respectively, so that the second low voltage differential signal transmitter 23 transmits the first image data in turn according to the transmission cycle. The red pixel data, blue pixel data and green pixel data corresponding to a pixel point, wherein the red pixel data include: HSYHQ, R7, R6, R5, R4, R3, R2, VD, R1, R0, 0, 0, 0; the blue pixel data include: HSYHQ, B7, B6, B5, B4, B3, B2, VD, B1, B0, 0, 0, 0; the green pixel data include HSYHQ, G7, G6, G5, G4, G3, G2, G0, G0, 0, 0, 0, 0.
[0147] Combined with Table 8 and Appendix Figure 8 The second low voltage differential signal transmitter 23 sends the red pixel data, blue pixel data and green pixel data cached in the three cache units 21 in turn according to its clock pulse cycle (in mode three, the clock pulse cycle of the second low voltage differential signal transmitter 23 is the third cycle).
[0148] In this embodiment, within one clock pulse cycle (1TCLK), the TCLK line transmission signal corresponding to the second signal transmission line is expressed as: H, H, L, L, L, H, H; the LVDS2-TA line transmission data corresponding to the second signal transmission line is expressed as: HSYHQ, R7, R6, R5, R4, R3, R2; the LVDS2-TB line transmission data corresponding to the second signal transmission line is expressed as: VD, R1, R0, 0, 0, 0, 0; within the next clock pulse cycle (2TCLK) of the second low voltage differential signal receiver 31, the TCLK line transmission signal corresponding to the second signal transmission line is expressed as: H, H, L, L, L, H, H; the LVDS2-TA line transmission data corresponding to the second signal transmission line is expressed as: HSYHQ, B7, B6, B5, B4, B3, B2; the LVDS2-TB line transmission data corresponding to the second signal transmission line is expressed as: VD, B1, B0, 0, 0, 0, 0; in the next clock pulse cycle (3TCLK) of the second low voltage differential signal receiver 31, the TCLK line transmission signal corresponding to the second signal transmission line is expressed as: H, H, L, L, L, H, H; the LVDS2-TA line transmission data corresponding to the second signal transmission line is expressed as: HSYHQ, G7, G6, G5, G4, G3, G2; the LVDS2-TB line transmission data corresponding to the second signal transmission line is expressed as: VD, G1, G0, 0, 0, 0, 0, and in the next clock pulse cycle, the TCLK line transmission signal corresponding to the second signal transmission line is expressed as: H, H, L, L, L, H, H; the LVDS2-TA line transmission data corresponding to the second signal transmission line is expressed as: HSYHQ, R7, R6, R5, R4, R3, R2; the LVDS2-TB line transmission data corresponding to the second signal transmission line is expressed as: VD, R1, R0, 0, 0, 0, 0, and so on.
[0149] Further, the imaging controller 3 is configured to receive the red pixel data of the first cache unit, the blue pixel data of the second cache unit, and the green pixel data of the third cache unit in turn once in each first cycle through the second low voltage differential signal receiver 31. In each first cycle, the data processor 2 does not limit the receiving order of the red pixel data, the blue pixel data, and the blue pixel data.
[0150] In this embodiment, the first cycle is three times the third cycle. Correspondingly, the clock frequency of the second low voltage differential signal receiver 31 is three times that of the first low voltage differential signal receiver 22 .
[0151] In this embodiment, the data processor 2 performs the third remapping processing on the first image data in sequence, and obtains red pixel data, blue pixel data and green pixel data after remapping the first image data, and then caches the red pixel data, blue pixel data and green pixel data into three cache units 21 respectively. When the three cache units 21 respectively cache the red pixel data, blue pixel data and green pixel data corresponding to a row of pixels, the three cache units 21 start to output data in turn.
[0152] It can be understood that in this embodiment, red pixel data, blue pixel data and green pixel data are obtained respectively by performing the third remapping process on the first image data, and the red pixel data, blue pixel data and green pixel data are cached in three cache units 21 respectively, and then the red pixel data, blue pixel data and green pixel data are outputted once in turn in the first cycle (i.e., three third cycles), so that the imaging controller 3 can uninterruptedly and continuously receive the image data output by the two image readers 1 under the premise of insufficient interface resources, without changing the existing structure of the imaging controller 3 and making full use of the existing resources of the imaging controller 3, which is conducive to the further development of scanning technology.
[0153] In other implementations, the data processor 2 may further include a data screening unit (not shown). For details of the data screening unit, please refer to the corresponding content in the second method, which will not be repeated here.
[0154] It can be understood that by filtering the first image data, the space of the cache unit 21 can be saved, and the clock frequency of the second low voltage differential signal receiver 31 of the imaging controller 3 can be reduced to meet the clock frequency requirement of the second low voltage differential signal receiver 31 of the imaging controller 3.
[0155] For example, please refer again to Table 6 and Appendix 1 shown in Method 2. Figure 7When the image reader 1 scans each line, the image reader 1 outputs 11218 pixels of data through the first low voltage differential signal transmitter 12, but the actual useful data is only 7500 pixels. In this way, when the frequency of the LVDS CLK (the clock signal of the first low voltage differential signal receiver 22) from the image reader 1 to the data processor 2 (FPGA) is constant, the LVDS CLK from the data processor 2 to the imaging controller 3 can be determined according to the number of valid data actually transmitted. Assume that the number of valid data points actually transmitted is 8000 points, and the period of a TR (repetition time) is 11218*15.1ns=169.4us. The data that needs to be transmitted in a TR period is 8000 points, and each pixel is 24-bit RGB data (3Byte). The total amount of data that needs to be transmitted for a row of pixels is 8000*3=24000Byte. If 1 LVDS CLK transmits 1 Byte, 24000 / 1=24000 LVDS CLKs are required. The transmission time of a row of pixels is 169.4uS, so the frequency of the LVDS CLK is 169.4 / 24000=7.05nS, i.e. 141.8Mhz. If the LVDS CLK frequency from the image reader 1 to the data processor 2 is reduced and the LVDSCLK is set to 99Mhz (10.1ns), then the time for 24000 LVDS CLKs is 242.4us, and there are still 11218 points in one TR cycle, so the time for each pixel is 242.4 / 11218=21.6ns, then the LVDS CLK frequency from the image reader 1 to the data processor 2 is 46.3Mhz, so the LVDS CLK frequency of the imaging controller 3 fully meets the requirement of less than 100Mhz.
[0156] Please continue to refer to the attached Figure 8 Furthermore, the imaging controller 3 also includes a control module (the control module can be of various types, attached Figure 8 The CPU shown in the figure is one of them) and image data processors, etc. The image data processors include but are not limited to CISX modules (CISX modules are configured to separate R, G, B image data), PIC (Pixel Image Correction, image pixel correction) modules, PIE (Pixel Image Enhancement, image pixel enhancement) modules and storage modules (storage modules can be of multiple types, attached) Figure 8 The DDR (Double Data Rate SDRAM) shown in the figure is one of them), the CISX module is connected to the second low voltage differential signal receiver 31 ( Figure 8The PIC module is connected to the PIE module and the PIC module and the PIE module are connected to the storage module respectively.
[0157] In this embodiment, the CISX module is configured to receive red pixel data, blue pixel data and green pixel data in turn through the second low voltage differential signal receiver 31, and store the red pixel data, blue pixel data and green pixel data in the buffer inside the imaging controller 3 in the order of receiving (see Appendix 1). Figure 8 Then the red pixel data, blue pixel data and green pixel data in the cache unit are separated and sent to the PIC module in a plane format for pixel correction processing. After processing, the PIC module merges the red pixel data, the blue pixel data and the green pixel data together and sends them to the PIE module for further processing. After processing, the PIE module saves the processed image data to the DDR. Then the image data processor sends the processed image data to the PC (personal computer) through the USB interface (in other embodiments, it can also be other interfaces, such as a network interface) to complete the scanning operation.
[0158] Please see attached Fig. 9 For example, if the red pixel data, blue pixel data and green pixel data corresponding to a pixel are X, Y and Z respectively; the CISX module receives the X, Y and Z data in turn and stores the received X, Y and Z in the buffer inside the imaging controller 3 through three ODMA (Output Dynamic Memory Access) controllers, as shown in the attached figure. Fig. 9 As shown, the cache unit is configured to store X, Y and Z in a non-interleaved manner, that is, first store all X components, then store all Y components, and finally store all Z components. Then, the X, Y and Z data are separated by an IDMA (Internal Dynamic Memory Access) controller, and the X data, Y data and Z data corresponding to one plane are sent to the PIC module in a plane format for pixel correction processing.
[0159] It can be understood that, compared with the first and second methods, the data processor 2 stores the red pixel data, the blue pixel data and the green pixel data separately in different cache units and outputs them in turn, so that the CISX module can separate the RGB data, and then the PIC module can process the separated red pixel data, the blue pixel data and the green pixel data in a plane format separately, and then compared with the first and second methods, the CISX module and the PIC module in the imaging controller 3 are fully utilized, and the processing accuracy is higher, so the output image quality is effectively improved. In addition, the third method does not require the control module (such as the CPU) to control the RGB data separation, so it can effectively reduce the CPU load, and also makes the CPU do not need to store the corresponding code, effectively avoiding the situation where the CPU does not process the data in time when the code is not robust or inefficient, resulting in data loss or confusion.
[0160] Please see attached Fig.10 An embodiment of the present invention provides an image forming apparatus, including a scanning device 50 in any embodiment and an imaging device 60 connected to the scanning device 50. In this embodiment, the imaging device includes but is not limited to an imaging unit (such as a developing box), a fixing unit, a paper moving unit and a paper box.
[0161] Please see attached Fig.11 , an embodiment of the present invention provides a scanning method, the method comprising:
[0162] Step S01: two image readers respectively read the document to be scanned and output image data corresponding to the document to be scanned;
[0163] Step S02: the data processor acquires the image data through the first signal transmission line and caches the image data in its internal cache unit;
[0164] Step S03: the imaging controller reads the image data of the cache unit through the second signal transmission line, wherein the number of lines corresponding to the second signal transmission line is less than the number of lines corresponding to the first signal transmission line.
[0165] It can be understood that the present invention converts and processes the scanning data through the data processor so that the number of ports of the imaging controller for receiving the scanning data can match the number of output interfaces of the configured data processor, thereby solving the problem in the prior art that the number of ports of the imaging controller for receiving the scanning data cannot completely match the number of output interfaces of the configured scanning unit, and fully utilizes the resources of the port corresponding to the existing second signal transmission line of the imaging controller. At the same time, the data processor does not need to be additionally configured with a memory, thereby reducing the development and production costs, which is conducive to the further development of the scanning technology.
[0166] Specifically, the two image readers can read the front image data and the back image data of the document to be scanned respectively, or both image readers can read the front image data of the document to be scanned or both image readers can read the back image data of the document to be scanned. It can be understood that the scanning device provided in the embodiment of the present invention can also be used for single-sided scanning. At this time, the two image readers are located on the same side of the document to be scanned. At this time, according to the side of the document to be scanned that needs to be scanned, the image data output by the two image readers are both the front image data of the document to be scanned, or the image data output by the two image readers are both the back image data of the document to be scanned.
[0167] Specifically, in the embodiment of the present invention, the file to be scanned may include, but is not limited to: at least one of: a document, a certificate, an image, and a photo, which is not particularly limited in the embodiment of the present invention.
[0168] Specifically, the imaging controller 3 is a SoC (System on Chip), which is a miniature system composed of multiple system components, and is configured to control the imaging processing operations of the scanned image of the scanning device, such as linear correction, noise reduction, bad pixel removal, detail enhancement, etc., to improve the quality of the image output. The imaging controller 3 is also used to perform processing operations related to data transmission and reception, command transmission and reception, and engine control of printing images, such as transmitting and receiving data, printing engine control commands, status, etc. through an interface unit (including but not limited to a USB port, a wired network port, a wireless network port, or other interfaces, etc.). In this embodiment, the imaging controller 3 controls the scanning operation of the scanning device and the imaging operation of the imaging device at the same time, but the embodiment is not limited to this. For example, an independent imaging controller can be configured for the scanning device and the imaging device, respectively, and these all belong to the protection scope of this embodiment.
[0169] Specifically, in this embodiment, the data processor is a programmable logic device, specifically a FPGA (Field-Programmable Gate Array). In other implementations, the data processor may also be a programmable device such as a CPLD (Complex Programmable Logic Device).
[0170] Furthermore, the data processor acquires the image data through the first signal transmission line and caches the image data in a cache unit therein, specifically including:
[0171] The data processor acquires the image data through the first signal transmission line and performs remapping processing on each image data to obtain second image data, and caches the second image data in the cache unit.
[0172] It should be understood that since the number of lines corresponding to the second signal transmission line is less than the number of lines corresponding to the first signal transmission line, the image data needs to be remapped to obtain second image data having a preset format, so that the imaging controller can obtain and process the second image data continuously and uninterruptedly while satisfying its own receiving frequency.
[0173] Furthermore, the image reader includes a sensor and a first low voltage differential signal transmitter, and the two image readers respectively read the document to be scanned and output image data corresponding to the document to be scanned, specifically including:
[0174] The sensor reads the document to be scanned and outputs image data corresponding to the document to be scanned, wherein the image data includes at least one first image data;
[0175] The first low voltage differential signal transmitter receives at least one first image data and outputs one first image data in a differential transmission manner through the first signal transmission line in each first cycle, wherein each first image data corresponds to one pixel point data.
[0176] Specifically, the two sensors can be the first sensor (such as CIS or CCD) and the second sensor (such as CIS or CCD) mentioned above. In this embodiment, the sensor is constructed to convert each pixel into a corresponding analog signal in a row-by-row scanning manner, wherein a row of an image includes a number of pixels, such as 1024 pixels.
[0177] Specifically, the image reader also includes an analog-to-digital conversion unit, which is connected between the sensor and the first low-voltage differential signal transmitter, and is used to convert the analog signal output by the sensor into a digital signal and output it to the first low-voltage differential signal transmitter. The first low-voltage differential signal transmitter is used to output the received digital signal to the data processor through the first signal transmission line in a pixel-by-pixel manner according to a preset clock cycle, that is, the first low-voltage differential signal transmitter outputs the first image data corresponding to a pixel to the data processor within each clock pulse cycle (in this article, the clock pulse cycle of the first low-voltage differential signal transmitter is the "first cycle").
[0178] It should be noted that the first image data and the generated second image data can be in a one-to-one correspondence, or the first image data corresponds to generating multiple second image data, or multiple first image data correspond to generating one second image data, or multiple first image data correspond to generating multiple second image data.
[0179] Furthermore, the data processor also includes a first low voltage differential signaling (Low Voltage Differential Signaling, LVDS) receiver and a second low voltage differential signaling (Low Voltage Differential Signaling, LVDS) transmitter, and the imaging controller includes a second low voltage differential signaling (Low Voltage Differential Signaling, LVDS) receiver.
[0180] The first low voltage differential signal receiver is connected to the first low voltage differential signal transmitter through the first signal transmission line, and the data processor receives the first image data through the first low voltage differential signal receiver.
[0181] The second low voltage differential signal transmitter is connected to the cache unit and to the second low voltage differential signal receiver through a second signal transmission line. The second low voltage differential signal transmitter is configured to output the second image data cached in the cache unit to the imaging controller in a differential transmission manner through the second signal transmission line. The imaging controller receives the second image data through the second low voltage differential signal receiver.
[0182] It should be noted that the number of first signal transmission lines is associated with the number of data bits of the first image data, and the number of second signal transmission lines is associated with the number of data bits of the second image data. The first low voltage differential signal transmitter is configured to output the first image data generated by the sensor in a pixel-by-pixel manner.
[0183] In this embodiment, one pixel is represented by 24-bit RGB data, and the 24-bit RGB data includes 8-bit R (red) pixel data (R7, R6, R5, R4, R3, R2, R1, R0), 8-bit G (blue) pixel data (G7, G6, G5, G4, G3, G2, G1, G0) and 8-bit B (green) pixel data (B7, B6, B5, B4, B3, B2, B1, B0). In this embodiment, the first image data corresponding to one pixel is composed of 24-bit RGB data and a control signal. According to the LVDS transmission mechanism, LVDS converts parallel pixel signals and control signals into serial bit streams, which are transmitted through multiple groups of wires, and the clock pulse signal is transmitted separately through a group of wires. Since each data channel of the first low voltage differential signal transmitter 12 outputs a 7-bit serial data signal within one clock pulse cycle, each first low voltage differential signal transmitter 12 corresponds to a group of transmission lines, each group of transmission lines requires 5 pairs of data lines and 1 pair of clock lines, and the first image data is transmitted through the first signal transmission line composed of the data line and the clock line. In this embodiment, each first low voltage differential signal transmitter 12 has 6 pairs of low voltage differential signal ports (the number of data transmission ports is 5 and the number of clock signal transmission ports is 1, because the LVDS signal output lines are arranged in "pairs", each channel corresponds to 1 pair of signal lines, so the number of ports can also be in "pairs"); each data processor requires 6 pairs of low voltage differential signal receiving ports respectively, and the data processor of the entire scanning device requires at least 12 pairs of low voltage differential signal receiving ports.
[0184] It is also necessary to know that, in this embodiment, the remapping process is specifically a process of rearranging the arrangement order of the RGB pixel data, the clock signal and the control signal corresponding to the first image data according to a preset mapping rule.
[0185] Further, the data processor acquires the image data through the first signal transmission line and performs remapping processing on each image data to obtain the second image data, and caches the second image data in the cache unit, including but not limited to the following three methods:
[0186] Method 1: The data processor receives the first image data once through the first low voltage differential signal receiver in each first cycle and performs a first remapping process and a quantization compression process on the first image data in the order in which the first image data is received, so as to sequentially obtain second image data having a first preset format and a first preset bit number, and cache the second image data in a cache unit, wherein the second image data and the first image data are in a one-to-one correspondence.
[0187] Furthermore, the imaging controller includes a controller and an image data processor, and the imaging controller reads the image data of the cache unit through the second signal transmission line, specifically including:
[0188] The control module generates control instructions;
[0189] The image data processor receives the second image data cached in the cache unit through the second signal transmission line once in each second cycle, and performs quantization compensation processing on the second image data according to the control instruction, wherein the first cycle is equal to the second cycle.
[0190] Method 2: There are two cache units, and the two cache units are constructed as a ping-pong buffer structure;
[0191] Acquiring image data through the first signal transmission line, remapping each image data to obtain second image data, and caching the second image data in a cache unit, specifically includes:
[0192] The data processor receives the first image data once through the first low voltage differential signal receiver in each first cycle and performs a second remapping process on the first image data according to the order in which the first image data is received, so as to sequentially obtain second image data having a second preset format and a second preset bit number, and caches the generated second image data into one of the cache units, with every three second image data corresponding to two first image data.
[0193] Furthermore, the imaging controller reads the image data of the cache unit through the second signal transmission line, specifically including:
[0194] The imaging controller receives the second image data cached in one of the two cache units once in each third cycle, wherein the first cycle is 1.5 times the third cycle.
[0195] Mode 3: The number of cache units is three, and the three cache units are respectively a first cache unit, a second cache unit and a third cache unit;
[0196] The data processor acquires the image data through the first signal transmission line, performs remapping processing on each image data to obtain second image data, and caches the second image data in the cache unit, specifically including:
[0197] The data processor receives the first image data through the first signal transmission line in each first cycle and performs a third remapping process on the first image data according to the order in which the first image data is received, so as to sequentially obtain second image data having a third preset format and a third preset bit number, wherein the second image data includes red pixel data, blue pixel data and green pixel data; and caches the red pixel data, blue pixel data and green pixel data in the first cache unit, the second cache unit and the third cache unit, respectively.
[0198] Further, reading the image data of the cache unit through the second signal transmission line specifically includes:
[0199] The imaging controller receives the red pixel data cached in the first cache unit, the blue pixel data cached in the second cache unit and the green pixel data cached in the third cache unit in turn once in each first cycle through the second low voltage differential signal receiver.
[0200] The specific implementation process of Method 1, Method 2 and Method 3 can be found above and will not be repeated here.
[0201] This embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the scanning method in the embodiment is implemented, and to avoid repetition, it is not described one by one here. Alternatively, when the computer program is executed by a processor, the functions of each module / unit in the image forming device in the embodiment are implemented, and to avoid repetition, it is not described one by one here.
[0202] Please see attached Fig.12 The embodiment of the present invention provides a scanning device 50, which includes: a processor 51, a memory 52, and a computer program 53 stored in the memory 52 and executable on the processor 51. When the computer program 53 is executed by the processor 51, the scanning method in the embodiment is implemented. To avoid repetition, it is not described one by one here. Alternatively, when the computer program is executed by the processor 51, the functions of each model / unit in the scanning device in the embodiment are implemented. To avoid repetition, it is not described one by one here.
[0203] The scanning device 50 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The scanning device 50 may include but is not limited to a processor 51 and a memory 52. Those skilled in the art will appreciate that Figure 8 It is only an example of the scanning device 50 and does not constitute a limitation of the scanning device 50. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, a computer device may also include input and output devices, network access devices, buses, etc.
[0204] The processor 51 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other data processors, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0205] The memory 52 may be an internal storage unit of the scanning device 50, such as a hard disk or memory of the scanning device 50. The memory 52 may also be an external storage device of the scanning device 50, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the scanning device 50. Further, the memory 52 may also include both an internal storage unit of the scanning device 50 and an external storage device. The memory 52 is used to store computer programs and other programs and data required by the scanning device. The memory 52 may also be used to temporarily store data that has been output or is to be output.
[0206] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described method can refer to the corresponding process in the aforementioned device embodiment, and will not be repeated here.
[0207] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0208] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0209] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0210] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (Processor) to perform some steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0211] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A scanning device, characterized in that: include: Two image readers, each configured to read a document to be scanned and output image data corresponding to the document to be scanned; A data processor, connected to the two image readers respectively through a first signal transmission line, the data processor being configured to acquire the image data through the first signal transmission line and cache the image data in a cache unit therein; and An imaging controller configured to read the image data of the cache unit through a second signal transmission line, wherein the number of lines corresponding to the second signal transmission line is less than the number of lines corresponding to the first signal transmission line; The data processor is a programmable logic device, and the programmable logic device is specifically configured to acquire the image data through the first signal transmission line and perform remapping processing on each of the image data to obtain second image data, and cache the second image data in the cache unit; The two image readers each include: a sensor configured to read the document to be scanned and output image data corresponding to the document to be scanned, wherein the image data includes at least one first image data; and a first low voltage differential signal transmitter, connected to the sensor, configured to receive the at least one first image data and output one first image data in a differential transmission manner through the first signal transmission line in each first cycle, wherein each first image data corresponds to one pixel point data; The programmable logic device further comprises a first low voltage differential signal receiver and a second low voltage differential signal transmitter, and the imaging controller comprises a second low voltage differential signal receiver; The first low voltage differential signal receiver is connected to the first low voltage differential signal transmitter through the first signal transmission line, and the programmable logic device receives the first image data through the first low voltage differential signal receiver; The second low voltage differential signal transmitter is connected to the cache unit and connected to the second low voltage differential signal receiver through the second signal transmission line. The second low voltage differential signal transmitter is configured to output the second image data cached in the cache unit to the imaging controller in a differential transmission manner through the second signal transmission line. The imaging controller receives the second image data through the second low voltage differential signal receiver. The programmable logic device is specifically configured to receive the first image data once through the first low voltage differential signal receiver in each of the first cycles and perform a first remapping process and a quantization compression process on the first image data in the order in which the first image data is received, so as to sequentially obtain the second image data having a first preset format and a first preset number of bits, and cache the second image data in the cache unit, wherein the second image data is in a one-to-one correspondence with the first image data.
2. The scanning device according to claim 1, characterized in that The imaging controller further comprises: A control module configured to generate control instructions; and The image data processor is configured to receive the second image data cached in the cache unit once through the second low voltage differential signal receiver in each second cycle, and perform quantization compensation processing on the second image data according to the control instruction, wherein the first cycle is equal to the second cycle.
3. The scanning device according to claim 1, characterized in that The number of the cache units is two, and the two cache units are constructed as a ping-pong buffer structure; The programmable logic device is specifically configured to receive the first image data once through the first low voltage differential signal receiver in each of the first cycles and perform a second remapping process on the first image data in the order in which the first image data is received, so as to sequentially obtain the second image data having a second preset format and a second preset number of bits, and cache the generated second image data into one of the two cache units, with every three second image data corresponding to two first image data.
4. The scanning device according to claim 3, characterized in that The imaging controller is specifically configured to receive the second image data cached in one of the two cache units once in each third cycle through the second low voltage differential signal receiver, wherein the first cycle is 1.5 times the third cycle.
5. The scanning device according to claim 1, characterized in that The number of the cache units is three, and the three cache units are respectively a first cache unit, a second cache unit and a third cache unit; The programmable logic device is specifically configured to receive the first image data through the first signal transmission line in each first cycle and perform a third remapping process on the first image data in the order in which the first image data is received, so as to sequentially obtain the second image data having a third preset format and a third preset number of bits, wherein the second image data includes red pixel data, blue pixel data and green pixel data; and cache the obtained red pixel data, the blue pixel data and the green pixel data into the first cache unit, the second cache unit and the third cache unit, respectively.
6. The scanning device according to claim 5, characterized in that The imaging controller is specifically configured to receive the red pixel data cached in the first cache unit, the blue pixel data cached in the second cache unit, and the green pixel data cached in the third cache unit in turn once in each of the first cycles through a second low voltage differential signal receiver.
7. The scanning device according to any one of claims 1 to 6, characterized in that: The number of low voltage differential signal ports prefabricated in the second low voltage differential signal receiver of the imaging controller is less than the number of lines corresponding to the first signal transmission lines, and the number of low voltage differential signal ports prefabricated in the first low voltage differential signal transmitters of the two image readers is greater than or equal to the number of lines corresponding to the first signal transmission lines.
8. An image forming apparatus, comprising the scanning device according to any one of claims 1 to 7, and an imaging device connected to the scanning device.
9. A scanning method, characterized in that: The method comprises: The two image readers respectively read the document to be scanned and output image data corresponding to the document to be scanned; The data processor acquires the image data through the first signal transmission line and caches the image data in a cache unit inside the data processor; The imaging controller reads the image data of the cache unit through the second signal transmission line, wherein the number of lines corresponding to the second signal transmission line is less than the number of lines corresponding to the first signal transmission line; The data processor is a programmable logic device, and the data processor obtains the image data through the first signal transmission line and caches it in a cache unit inside the data processor, specifically including: The programmable logic device acquires the image data through the first signal transmission line and performs a remapping process on each of the image data to obtain second image data, and caches the second image data in the cache unit; The two image readers each include a sensor and a first low voltage differential signal transmitter, and the two image readers respectively read a document to be scanned and output image data corresponding to the document to be scanned, specifically including: The sensor reads the document to be scanned and outputs image data corresponding to the document to be scanned, wherein the image data includes at least one first image data; The first low voltage differential signal transmitter receives the at least one first image data and outputs one first image data in a differential transmission manner through the first signal transmission line in each first cycle, wherein each first image data corresponds to one pixel point data; The programmable logic device further comprises a first low voltage differential signal receiver and a second low voltage differential signal transmitter, and the imaging controller comprises a second low voltage differential signal receiver; The first low voltage differential signal receiver is connected to the first low voltage differential signal transmitter through the first signal transmission line, and the programmable logic device receives the first image data through the first low voltage differential signal receiver; The second low voltage differential signal transmitter is connected to the cache unit and connected to the second low voltage differential signal receiver through the second signal transmission line. The second low voltage differential signal transmitter is configured to output the second image data cached in the cache unit to the imaging controller in a differential transmission manner through the second signal transmission line. The imaging controller receives the second image data through the second low voltage differential signal receiver. The programmable logic device acquires the image data through the first signal transmission line and performs remapping processing on each of the image data to obtain second image data, and caches the second image data in the cache unit, specifically including: The programmable logic device receives the first image data once through the first low voltage differential signal receiver in each of the first cycles and performs a first remapping process and a quantization compression process on the first image data in the order in which the first image data is received, so as to sequentially obtain the second image data having a first preset format and a first preset number of bits, and cache the second image data in the cache unit, wherein the second image data is in a one-to-one correspondence with the first image data.
10. The scanning method according to claim 9, characterized in that: The imaging controller includes a controller and an image data processor. The imaging controller reads the image data of the cache unit through the second signal transmission line, specifically including: The control module generates control instructions; The image data processor receives the second image data cached in the cache unit once through the second signal transmission line in each second cycle, and performs quantization compensation processing on the second image data according to the control instruction, wherein the first cycle is equal to the second cycle.
11. The scanning method according to claim 9, characterized in that: The number of the cache units is two, and the two cache units are constructed as a ping-pong buffer structure; The acquiring the image data through the first signal transmission line and performing remapping processing on each of the image data to obtain second image data, and caching the second image data in the cache unit specifically includes: The programmable logic device receives the first image data once through the first low voltage differential signal receiver in each of the first cycles and performs a second remapping process on the first image data in the order in which the first image data is received, so as to sequentially obtain the second image data having a second preset format and a second preset number of bits, and caches the generated second image data into one of the cache units, with every three second image data corresponding to two first image data.
12. The scanning method according to claim 11, characterized in that: The imaging controller reads the image data of the cache unit through the second signal transmission line, specifically including: The imaging controller receives the second image data cached in one of the two cache units once in each third cycle, wherein the first cycle is 1.5 times the third cycle.
13. The scanning method according to claim 9, characterized in that: The number of the cache units is three, and the three cache units are respectively a first cache unit, a second cache unit and a third cache unit; The programmable logic device acquires the image data through the first signal transmission line, performs remapping processing on each of the image data to obtain second image data, and caches the second image data in the cache unit, specifically including: The programmable logic device receives the first image data through the first signal transmission line in each first cycle and performs a third remapping process on the first image data in the order in which it receives the first image data, so as to sequentially obtain the second image data having a third preset format and a third preset number of bits, wherein the second image data includes red pixel data, blue pixel data, and green pixel data; and caches the red pixel data, the blue pixel data, and the green pixel data in the first cache unit, the second cache unit, and the third cache unit, respectively.
14. The scanning method according to claim 13, characterized in that: The step of reading the image data of the cache unit through the second signal transmission line specifically includes: The imaging controller receives the red pixel data cached in the first cache unit, the blue pixel data cached in the second cache unit, and the green pixel data cached in the third cache unit in turn once in each of the first cycles through the second low voltage differential signal receiver.
15. A storage medium comprising a stored program, wherein: When the program is running, the device where the storage medium is located is controlled to execute the method according to any one of claims 9 to 14.
16. A scanning device, comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, characterized in that: When the program instructions are loaded and executed by a processor, the steps of the method according to any one of claims 9 to 14 are implemented.
Citation Information
Patent Citations
Imaging device, signal processing method, and computer program
CN101540843A
Scanning device, image forming device and scanning method
CN106357949A
Scanning device and image forming apparatus
CN210640937U
