Chip and electronic equipment

By introducing a combined design of a main processor core, an image processor, and a scanning processing module into the all-in-one scanner, the problem of low processing efficiency in the all-in-one scanner is solved, and the generation of target scanned images for efficient processing of scanning and copying tasks is achieved, thereby improving overall processing efficiency and reducing implementation difficulty.

CN121940490APending Publication Date: 2026-04-28LOONGSON TECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LOONGSON TECH CORP
Filing Date
2025-12-12
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing multifunction scanners have low processing efficiency and cannot efficiently handle multiple scanning and copying tasks.

Method used

The system employs a combination of a main processor core, an image processor, a scanning processing module, and a printing processing module. The main processor core sends the task to be processed, the scanning processor core acquires the original scanned image, and the image processor processes it according to the task type to generate the target scanned image.

Benefits of technology

It improves the overall processing efficiency of the all-in-one scanner, reduces the implementation difficulty of the scanning processing components, and generates the target scanned image through an independent image processor, thereby improving processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121940490A_ABST
    Figure CN121940490A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a chip and electronic equipment, and relates to the technical field of scanning, the chip comprises a main processor core, an image processor, a scanning processing module, a scanning processor core, a scanning control interface unit, a preprocessing unit and a storage unit, and a system program is stored in the storage unit. The main processor core is used for sending a to-be-processed task to the scanning processor core; the to-be-processed task is a scanning task or a copying task; each part in the scanning processing module is processed in response to the to-be-processed task to obtain a preprocessed original scanning image; the image processor is used for processing the preprocessed original scanning image according to the task type of the to-be-processed task to obtain a target scanning image; and the main processor core and the printing processing module are used for carrying out scanning output or printing output on the target scanning image. The overall treatment efficiency can be improved to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of scanning technology, and in particular to a chip and an electronic device. Background Technology

[0002] As users' demand for scanning and copying increases, multi-function scanners are becoming increasingly widespread. Multi-function scanners can print electronic documents, scan objects to convert them into electronic images for document scanning, and print the scanned data for copying.

[0003] In related technologies, there may be multiple scanning and copying tasks. Therefore, how to improve the processing efficiency of multifunction scanners has become an urgent technical problem to be solved. Summary of the Invention

[0004] This invention provides a chip and an electronic device that can improve the processing efficiency of a scanning all-in-one machine.

[0005] To address the aforementioned problems, this invention discloses a chip comprising: a main processor core, an image processor, a scanning processing module, a scanning processor core, a scanning control interface unit, a preprocessing unit, and a storage unit, wherein the storage unit stores a system program. The main processor core is used to send tasks to be processed to the scanning processor core; the tasks to be processed are scanning tasks or copying tasks. The scanning processor core is configured to load and run the system program in the storage unit upon startup, in response to the task to be processed, to send scanning control commands to the scanning control interface unit; the scanning control interface unit is configured to input the scanning control signal to the connected scanning engine in response to the scanning control command; sample the acquisition signal output by the scanning engine to obtain a raw scanning image; the preprocessing unit is configured to preprocess the raw scanning image; the image processor is configured to process the preprocessed raw scanning image according to the task type of the task to be processed to obtain a target scanning image; The main processor core is also used to scan and output the target scan image when the task to be processed is a scanning task; The printing processing module is used to print out the target scanned image when the task to be processed is a copying task.

[0006] Optionally, the image processor is specifically used for: When the task type is a scanning task, the preprocessed original scanned image is subjected to first data processing according to the data processing method corresponding to the scanning task. When the task type is a copying task, the preprocessed original scanned image is subjected to second data processing according to the data processing method corresponding to the copying task.

[0007] Optionally, the image processor is further configured to: When the task type is a scanning task, the preprocessed original scanned image is subjected to shadow calibration, gamma calibration, color conversion, scaling and compression operations to complete the first data processing. When the task type is a copying task, the preprocessed original scanned image is subjected to shadow calibration, gamma calibration, filtering, scaling, and halftone operations to complete the second data processing.

[0008] Optionally, the chip further includes a shared cache, and the preprocessing unit and the image processor are respectively connected to the shared cache; the preprocessing unit is further configured to write the preprocessed original scan image into the shared cache, and the image processor is further configured to read the preprocessed original scan image from the shared cache; Alternatively, the chip may further include a communication bus, which connects the memory storage unit, the preprocessing unit, and the image processor; the preprocessing unit is further configured to write the preprocessed original scan image into the memory storage unit via the communication bus, and the image processor is further configured to read the preprocessed original scan image from the memory storage unit via the communication bus.

[0009] Optionally, the scanning control interface unit includes multiple control interfaces; the scanning control interface unit is specifically used to: input the control signals corresponding to the control interfaces to the scanning engine sequentially through the multiple control interfaces according to the interface control timing of the scanning control command; The interface control timing conforms to the control timing required by the scanning engine.

[0010] Optionally, the preprocessing unit deploys preprocessing algorithms corresponding to various scanning engines, and the processing result types of different preprocessing algorithms are the same; the preprocessing unit is specifically used for: The preprocessing algorithm corresponding to the engine identifier of the scanning engine is used as the target preprocessing algorithm; The original scanned image is preprocessed according to the target preprocessing algorithm.

[0011] Optionally, the scanning processing module further includes a storage unit, in which system programs are stored; The scan processor core is also used to load and run the system program in the storage unit at startup to send the scan control command to the scan control interface unit.

[0012] Optionally, the chip further includes a transmission controller; The main processor core is also configured to: read the target scan image from the memory storage unit when the task to be processed is a scanning task; transmit the target scan image to the display module for display through the memory storage unit when the task requirement is local display; and call the transmission controller to transmit the target scan image to the receiver when the task requirement is remote transmission.

[0013] Optionally, the printing processing module includes a printing processor core and a printing interface control unit; The print processor core is used to control the print interface control unit to read the target scan image from the memory storage unit and send it to the external print device when the task to be processed is a copying task, so that the print device can print it.

[0014] Optionally, the printing processing module is further configured to: If the time remaining from the task completion time reaches a first preset time, and no task is received within the first preset time, then the main processor core and the scanning processor core are controlled to enter standby mode. If no task is received within a second preset time after entering the standby state, the main processor core and the scanning processor core are powered down to enter a hibernation state. If a wake-up command sent by a peripheral device is detected, the main processor core is woken up, and if the wake-up command indicates a scan task or a copy task, the scan processor core is woken up.

[0015] On the other hand, embodiments of the present invention disclose an electronic device including the chip described in any of the above claims.

[0016] The embodiments of the present invention have the following advantages: The chip provided by the embodiments of the present invention, by setting a main processor core, an image processor, a scanning processing module, and a printing processing module in the chip, allows the scanning processing module to acquire the original scanned image in response to the task to be processed. Subsequently, a dedicated image processor processes the original scanned image according to the task type of the task to be processed to obtain the target scanned image. When the task to be processed is a scanning task, the main processor core scans and outputs the target scanned image. In this way, each component participates in part of the scanning task processing flow. The scanning processing component only needs to acquire the original scanned image to continue processing other tasks to be processed, thus improving the overall processing efficiency to a certain extent.

[0017] Furthermore, by using a dedicated image processor to generate the required target scan image based on the original scan image, processing efficiency can be further improved. Simultaneously, by setting up an independent image processor to generate the target scan image, the scanning processing component only needs to acquire the original scan image for the task at hand. This reduces the processing performance requirements of the scanning processor core within the scanning processing component, lowering its implementation complexity. Moreover, by incorporating a scanning processor core, a scanning control interface unit, a preprocessing unit, and a storage unit within the scanning processing module, the collaboration of these components facilitates a streamlined process of controlling the scanning engine to acquire and preprocess the original scan image. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments of the present invention will be briefly introduced below.

[0019] Figure 1 This is a schematic diagram of the structure of a chip provided in an embodiment of the present invention; Figure 2 This is a flowchart illustrating a second processing operation provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a first processing operation flow provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of another chip structure provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a scanning processing module provided in an embodiment of the present invention; Figure 6 This is a chip processing method provided in an embodiment of the present invention; Figure 7 This is another chip processing method provided in the embodiments of the present invention.

[0020] Figure Labels 10-Main processor core, 11-Image processor, 12-Scanning processing module, 13-Printing processing module, 121-Scanning processor core, 122-Scanning control interface unit, 123-Preprocessing unit, 124-Storage unit, 131-Printing processor core, 132-Printing interface control unit, 14-Transmission controller, 15-Memory controller. Detailed Implementation

[0021] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0022] In printing scenarios, a single printing device's chip can only perform printing functions. As users' needs for scanning and copying have increased, multi-function scanners have emerged. These multi-function scanners can also be called multi-functional printer-scanner combos. The processing efficiency of a multi-function scanner is closely related to the main control chip it uses.

[0023] Because the functions of a single printer and the functions required by a multi-function scanner differ, the main control chip of a single printer is not suitable for a multi-function scanner. In one related technology, the main control chip of a multi-function scanner uses a single Central Processing Unit (CPU) core (or processor core) to participate in the entire process of scanning and copying tasks. In this approach, the next scanning or copying task can only begin after the entire process of one scanning or copying task has been completed; that is, processing can only be performed serially. Therefore, this results in low processing efficiency and poor processing performance in multi-function scanners equipped with this chip.

[0024] Therefore, an embodiment of the present invention provides a chip, which will be described in detail below. Figure 1 This is a schematic diagram of the structure of a chip provided in an embodiment of the present invention, such as... Figure 1 As shown, the chip includes: a main processor core 10, an image processor 11, a scanning processing module 12, and a printing processing module 13. The scanning processing module 12 includes a scanning processor core 121, a scanning control interface unit 122, a preprocessing unit 123, and a memory unit 124. The memory unit 124 stores the system program.

[0025] The main processor core 10 is used to send tasks to be processed to the scanning processor core 121; the tasks to be processed are scanning tasks or copying tasks.

[0026] The scan processor core 121 is configured to load and run the system program in the storage unit 124 at startup, and send scan control commands to the scan control interface unit 122 in response to the task to be processed. The scan control interface unit 122 is configured to, in response to the scan control commands, input the scan control signals to the connected scan engine; sample the acquisition signals output by the scan engine to obtain the original scan image. The preprocessing unit 123 is configured to preprocess the original scan image.

[0027] The image processor 11 is used to process the preprocessed original scan image according to the task type of the task to be processed, so as to obtain the target scan image.

[0028] The main processor core 10 is also used to scan and output the target scan image when the task to be processed is a scanning task.

[0029] The printing processing module 13 is used to print out the target scanned image when the task to be processed is a copying task.

[0030] In this embodiment of the invention, the main processor core 10, image processor 11, scanning processing module 12, and printing processing module 13 are independent of each other and connected via a communication bus. The main processor core 10 is responsible for task scheduling. Upon receiving a scanning or copying task from an external device, it treats the task as a pending task. The external device can be a Universal Serial Bus (USB) external device (e.g., USB Host / Devices) connected to the chip or a network external device (e.g., 100 / 1000M Ethernet). For example, in one application scenario, when the user's electronic device is connected to the scanner via a network, the user can issue scanning or copying tasks through a control interface. The scanning or copying tasks are transmitted to the main processor core 10 via the network external device.

[0031] The main processor core 10 can send the task to be processed to the scanning processing module 12 for processing. The scanning processing module 12 may include a scanning processor core 121. When the scanning processing module 12 receives a task to be processed, it performs an operation to acquire the original scanned image. Subsequent processing can be completed by the image processor 11, the main processor core 10, and the printing processing module 13. Specifically, the scanning processing module 12 can transmit the acquired original scanned image to a specially designed image processor 11 for serialized processing. The image processor 11 can also be called a dedicated image processing unit. By setting up a dedicated image processor 11, the processing efficiency of the original scanned image can be improved. The image processor 11 processes the original scanned image according to the task type of the task to be processed, and obtains a target scanned image adapted to the task type.

[0032] Specifically, the scan processor core 121 can control the scan control interface unit 122 to function as the scan engine by sending scan control commands to the scan control interface unit 122. Figure 1 (Not shown in the image) Input scan control signals to drive the scan engine to perform scanning. Signals acquired by the scan engine during scanning are output to the acquisition unit in the scan control interface unit 122. The acquisition unit samples these signals to obtain the original scanned image. The acquisition unit has data acquisition capabilities, primarily used for real-time sampling of the signals output by the scan engine, completing the accurate acquisition of scan data provided by the external scan engine. The acquisition unit can transmit the original scanned image to the preprocessing unit 123 via its internally integrated DMA mechanism to ensure efficient transmission of the original scanned image. The preprocessing unit 123 performs preliminary preprocessing of the original scanned image. The preprocessing unit 123 can transmit the preprocessed original scanned image to the image processor 11 via its internally integrated DMA mechanism.

[0033] The scanning engine is a scanning peripheral connected to the scanning control interface unit 122. It is the core component of the scanning device and is responsible for sampling the image of the object being scanned according to the scanning control signals. The scanning control signals include the control parameters required for the scanning engine to operate. By inputting these signals, the scanning engine can be driven to scan the object (e.g., paper) to obtain the original scanned image. This original scanned image can be image data or raw scan data. After obtaining the original scanned image, image preprocessing can be performed before the image processor 11 is activated to process it, making the original scanned image provided to the image processor 11 more standardized.

[0034] In this embodiment of the invention, the scanning control interface unit 122 inputs a scanning control signal to the scanning engine, controlling the scanning engine to scan data according to the scanning control signal to obtain the original scanned image. The original scanned image is preprocessed before being provided to the image processor 11 for processing. This ensures, to a certain extent, the image quality and data format of the original scanned image provided to the image processor 11, thereby improving the processing performance of the image processor 11.

[0035] In this embodiment of the invention, the storage unit 124 is used to store the system program. This system program consists of multiple instructions. Each time the scan processor core 121 powers on, it loads the system program from the storage unit 124. This system program implements the processing logic for the various operations performed by the scan processor core 121. By running this system program, the scan processor core 121 can run an independent real-time system. This system program can be used to implement the real-time control preprocessing unit 123 and control the scan control interface unit 122. Specifically, it sends scan control commands to the scan control interface unit 122 according to the control timing required by the scan engine, enabling the scan control interface to communicate with the scan engine and control the scan engine to acquire scan data. By designing the storage unit 124 inside the scan processing module 12, and storing the system program in the storage unit 124, the scan processor core 121 loads and runs the system program from the storage unit 124 each time it starts. This ensures the storage security of the system program.

[0036] If the task to be processed is a scanning task, the main processor core 10 scans and outputs the target scanned image according to the task requirements, completing the entire process of the scanning task. The task requirements indicate whether the scanned electronic image (i.e., the target scanned image) can be directly displayed and / or remotely transmitted. If the task to be processed is a copying task, the printing processing module 13 prints the target scanned image, completing the entire process of the copying task. The printing processing module 13 includes a printing processor core 131, which consists of three independently operating processor cores: the main processor core 10, the scanning processor core 121, and the printing processor core 131.

[0037] In summary, the scanning all-in-one machine chip provided in this embodiment of the invention, by incorporating a main processor core 10, an image processor 11, a scanning processing module 12, and a printing processing module 13, allows the scanning processing module 12 to acquire the original scanned image in response to a task. Subsequently, the dedicated image processor 11 processes the original scanned image according to the task type to obtain the target scanned image. The main processor core 10 then scans and outputs the target scanned image when the task is a scanning task. In this way, each component participates in only a portion of the scanning task processing flow. The scanning processing component only needs to acquire the original scanned image to continue processing other tasks, thus improving overall processing efficiency to a certain extent.

[0038] Furthermore, by using a dedicated image processor 11 to generate the required target scan image based on the original scan image, processing efficiency can be further improved. Simultaneously, by setting up an independent image processor 11 to generate the target scan image, the scanning processing component only needs to acquire the original scan image for the task to be processed. This reduces the processing performance requirements of the scanning processor core 121 in the scanning processing component, lowering the implementation difficulty of the scanning processing component. Moreover, by setting up the scanning processor core 121, scanning control interface unit 122, preprocessing unit 123, and storage unit 124 in the scanning processing module 12, the scanning processor core 121, scanning control interface unit 122, preprocessing unit 123, and storage unit 124 cooperate with each other to conveniently implement the process of controlling the scanning engine to perform scanning acquisition, obtaining the original scan image, and performing preprocessing.

[0039] Optionally, in this embodiment of the invention, the image processor 11 is specifically configured to perform a first data processing on the preprocessed original scanned image according to the data processing method corresponding to the scanning task when the task type is a scanning task; and to perform a second data processing on the preprocessed original scanned image according to the data processing method corresponding to the copying task when the task type is a copying task.

[0040] In this embodiment of the invention, the task types are divided into two categories: scanning tasks and copying tasks. The image processor 11 can participate in the processing of both types of tasks to ensure its specialization. The task to be processed includes a type field indicating the task type; scanning tasks and copying tasks use different field values. The scanning processor core 121 can send the field value of the type field in the task to be processed to the image processor 11. When the field value indicates a scanning task, the image processor 11 performs first data processing on the preprocessed original scanned image according to the data processing method corresponding to the scanning task. When the field value indicates a copying task, it performs second data processing on the preprocessed original scanned image according to the data processing method corresponding to the copying task.

[0041] Specifically, the image processor 11 can predefine processing algorithms corresponding to each task type. Each processing algorithm for each task type includes a series of processing operations. The specific processing operations included in each processing algorithm can be defined by developers according to the needs of the actual scenario, and this embodiment of the invention does not impose any restrictions on this.

[0042] Optionally, the image processor 11 is further configured to: When the task type is a scanning task, the preprocessed original scanned image is subjected to shadow calibration, gamma calibration, color conversion, scaling and compression operations to complete the first data processing. When the task type is a copying task, the preprocessed original scanned image is subjected to shadow calibration, gamma calibration, filtering, scaling, and halftone operations to complete the second data processing.

[0043] For example, Figure 2 This is a flowchart illustrating a second processing operation provided in an embodiment of the present invention, as shown below. Figure 2 As shown in the diagram, the processing flow represents the processing steps for the original scanned image of a copying task. In this example, the processing algorithm for the copying task includes shadow calibration, gamma calibration, filtering, scaling, and halftone operations. It should be noted that in real-world applications, the operations included in the processing algorithm for a copying task can be adjusted as needed and are not limited to... Figure 2 The operation shown is illustrated.

[0044] The shadow calibration operation removes shadows from the original scanned image, making the brightness of the original scanned image more uniform and thus improving image quality. For example, the average pixel value of the pixels in the original scanned image can be calculated. A pixel threshold is determined based on the average pixel value, and the area composed of pixels with pixel values ​​less than the threshold is defined as the shadow area. When correcting the shadow area, a linear correction coefficient can be calculated based on the brightness of the shadow area and the target brightness. For example, the average pixel value of the pixels in the shadow area is calculated as the brightness of the shadow area, and the ratio of the brightness of the shadow area to the preset target brightness is used as the linear correction coefficient. The pixel value of the pixels in the shadow area is adjusted using this linear correction coefficient; for example, the product of the linear correction coefficient and the original pixel value of the pixel is calculated, and this product is set as the pixel value of the pixel. Gamma calibration can adjust the grayscale response curve of the original scanned image to compensate for the non-linear characteristics of the display device and improve the visibility of dark details in the original scanned image. For example, corrected pixel values ​​can be defined after non-linear transformation of different pixel values ​​using gamma values. Pixels in the original scanned image are traversed, the corresponding corrected pixel value is obtained, and the pixel value of the pixel is adjusted to the corrected pixel value. Filtering operations can be used to smooth images, suppress high-frequency noise, and reduce random noise after halftone display. Filtering can be achieved by convolving the filter's convolution kernel with the scanned image.

[0045] The scaling operation is used to scale the filtered original scanned image according to a preset scaling ratio. The preset scaling ratio can be set by the developer based on the actual scenario requirements, and this embodiment of the invention does not impose any restrictions on it. For example, if the final required image is larger than the filtered original scanned image, the preset scaling ratio can be greater than 1; if the final required image is equal to the filtered original scanned image, the preset scaling ratio can be equal to 1; and if the final required image is smaller than the filtered original scanned image, the preset scaling ratio can be less than 1. This embodiment of the invention does not impose any restrictions on it. Further, after the scaling process is completed, a halftone operation can be performed. The image halftone operation is used to convert a continuous-tone image into a binary halftone image to simulate a grayscale visual effect. The halftone algorithm used in the halftone operation can be set as needed, and this embodiment of the invention does not impose any restrictions on it. For example, in one implementation, a dithering matrix can be used for halftone. For each pixel in the scaled original scanned image, the pixel value of that pixel is compared with the element value at the same position in the dithering matrix. For example, the pixel value of the pixel in row m and column n is compared with the element value in row m and column n of the dithering matrix. If the pixel value is greater than the element value, the pixel value of the pixel is set to 1; otherwise, it is set to 0, thus realizing the screen addition operation.

[0046] Figure 3This is a schematic diagram of a first processing operation flow provided by an embodiment of the present invention, such as... Figure 3 As shown in the diagram, the processing flow represents the processing steps for the original scanned image of a scanning task. In this example, the processing algorithm for the scanning task includes shadow calibration, gamma calibration, color conversion, scaling, and compression operations. It should be noted that in real-world applications, the operations included in the processing algorithm for a scanning task can be adjusted as needed and are not limited to... Figure 3 The operation shown is illustrated.

[0047] The implementation processes for shadow calibration, gamma calibration, and scaling operations are the same as those in the processing algorithm corresponding to the aforementioned copying task, and will not be repeated here. In this embodiment of the invention, the processing algorithm corresponding to the copying task and the processing algorithm corresponding to the scanning task implement shadow calibration, gamma calibration, and scaling operations in the same way, so that the processing algorithm corresponding to the copying task and the processing algorithm corresponding to the scanning task can reuse the same processing device for implementing shadow calibration, gamma calibration, and scaling operations, thereby reducing the implementation cost of the image processor 11.

[0048] Furthermore, the color conversion operation is used to convert the original scanned image after gamma calibration into an image in the target image space. The target image space is a color space suitable for display, which can be predetermined by the developer; for example, the target image space can be the RGB color space. In practical applications, the images processed during scanning are often grayscale or CMYK color space images. Therefore, the image processor 11 can facilitate the display of the scanned target image by performing color conversion. For example, for any pixel, the channel values ​​of each pixel channel can be used as input to a preset conversion formula, and the output of the preset conversion formula can be used as the converted channel value of that pixel, setting that pixel as the converted channel value. Taking the original scanned image as a CMYK image and the target image space as RGB as an example, the RGB channel values ​​of the converted pixels are as follows: R=255×(1 C)×(1 K) G=255×(1 M)×(1 K) B = 255 × (1 Y)×(1 K) Compression operations are used to reduce the storage space of images. For example, the image processor 11 can compress images according to a preset compression algorithm. This preset compression algorithm can be set as needed, and this embodiment of the invention does not impose any limitations on it. For example, the preset compression algorithm may include JPEG, PNG, or GIF algorithms. The image processor 11 can use the scaled original scanned image as input to the preset compression algorithm and use the output of the preset compression algorithm as the target scanned image, ensuring that the final target scanned image is an image of a specific format.

[0049] In this embodiment of the invention, when the task type is a scanning task, the image processor 11 processes the preprocessed original scanned image according to the data processing method corresponding to the scanning task; when the task type is a copying task, it processes the preprocessed original scanned image according to the data processing method corresponding to the copying task. This ensures that the data processing in the scanning and copying tasks can be accurately performed according to their requirements.

[0050] Figure 4 This is a schematic diagram of another chip structure provided in an embodiment of the present invention, referred to... Figure 4 Optionally, the chip further includes a shared cache, with the preprocessing unit 123 and the image processor 11 respectively connected to the shared cache. The preprocessing unit 123 is further configured to write the preprocessed original scan image into the shared cache, and the image processor 11 is further configured to read the preprocessed original scan image from the shared cache.

[0051] In this embodiment of the invention, the preprocessing unit 123 and the image processor 11 transmit the preprocessed original scanned image through a shared cache. After preprocessing the original scanned image, the preprocessing unit 123 can access the shared cache and then write the preprocessed original scanned image into the shared cache. Since in practical applications there may be multiple tasks to be processed, meaning the preprocessing unit 123 may obtain the preprocessed original scanned image multiple times, each time the preprocessed original scanned image is written, the data written previously can be overwritten, ensuring that the shared cache only includes the preprocessed original scanned image obtained for the currently processed task, thereby avoiding data confusion.

[0052] Accordingly, the image processor 11 can perform status polling checks on the shared buffer. If data is detected being written to the shared buffer, the written data can be read out to obtain the preprocessed original scan image. Alternatively, after the preprocessing unit 123 writes the preprocessed original scan image to the shared buffer, an interrupt signal can be triggered. In response to the interrupt signal, the image processor 11 checks the shared buffer. If data is detected being written to the shared buffer, the written data can be read out to obtain the preprocessed original scan image.

[0053] In this embodiment of the invention, by setting up a shared cache for use by the preprocessing unit 123 and the image processor 11, the preprocessing unit 123 and the image processor 11 can access the shared cache to write and read data from the shared cache, thereby realizing the transmission of the preprocessed original scanned image with high transmission efficiency.

[0054] Optionally, the chip in this embodiment of the invention further includes a communication bus, which is connected to the memory storage unit, the preprocessing unit 123, and the image processor 11. The preprocessing unit 123 is further configured to write the preprocessed original scan image into the memory storage unit via the communication bus, and the image processor 11 is further configured to read the preprocessed original scan image from the memory storage unit via the communication bus.

[0055] The memory storage unit is connected to the communication bus via the memory controller 15. The memory storage unit can be a Double Data Rate (DDR) memory unit 124, and the memory controller 15 can be a DDR controller. Specifically, the preprocessing unit 123 can send the preprocessed raw scan image to the memory controller 15 via the communication bus using Direct Memory Access (DMA), and the memory controller 15 writes the preprocessed raw scan image into the memory storage unit. After writing, the memory controller 15 can notify the image processor 11. Correspondingly, the image processor 11 can send a read request via the communication bus, and the memory controller 15, in response to the read request, retrieves the preprocessed raw scan image from the memory storage unit and sends it to the image processor 11 via the communication bus. In this embodiment of the invention, by setting up a communication bus and a memory storage unit, the preprocessed raw scan image can be conveniently transferred from the preprocessing unit 123 to the image processor 11, making implementation relatively simple.

[0056] Optionally, Figure 5 This is a schematic diagram of the structure of a scanning processing module 12 provided in an embodiment of the present invention, as shown below. Figure 5As shown, optionally, the scan control interface unit 122 includes multiple control interfaces; the scan control interface unit 122 is specifically used to: input control signals corresponding to the control interfaces to the scan engine sequentially through the multiple control interfaces according to the interface control timing of the scan control command; the interface control timing conforms to the control timing required by the scan engine.

[0057] The scanning control unit may include multiple control interfaces required by various scanning engines, thus enabling the scanning control unit to be adapted to multiple scanning engines. For example, Figure 5 The diagram uses multiple control interfaces, including the motor drive interface, the contact image sensor (CIS) interface, the analog front-end (AFE) interface, and the scanning sensor interface, as examples.

[0058] Furthermore, the scan processor core 121 can be pre-configured with the control timing required for different models of scan engines to adapt to various interface timings, achieving interface timing self-adaptation and improving the flexibility of the solution. The scan control commands include control commands for the control interfaces to be controlled, and the interface control timing of the scan control commands can be the sending timing of the control commands. For example, assuming the control timing required for model A scan engine is: motor drive interface - scan CIS interface - scan AFE interface - scan sensor interface, and the control timing required for model B scan engine is: scan CIS interface - scan AFE interface - motor drive interface - scan sensor interface, then when the connected scan engine is model A, the scan processor core 121 sends the control commands sequentially according to the following timing sequence: motor drive interface control commands, scan CIS interface control commands, scan AFE interface control commands, and scan sensor interface control commands. When the connected scan engine is model B, the scan processor core 121 sends the control commands sequentially according to the following timing sequence: scan CIS interface control commands, scan AFE interface control commands, motor drive interface control commands, and scan sensor interface control commands.

[0059] In the scan control interface unit 122, one control interface corresponds to one interface subunit. Each control command included in the scan control command can be sequentially sent to its corresponding interface subunit. For example, the control command for the motor drive interface can be sent to the motor drive interface subunit, the control command for the CIS interface can be sent to the CIS interface subunit, the control command for the AFE interface can be sent to the AFE interface subunit, and the control command for the sensor interface can be sent to the sensor interface subunit. Because these control commands are sent sequentially to their respective interface subunits according to the control timing sequence, each interface subunit inputs the control signal corresponding to its control interface to the scan engine sequentially according to this control timing sequence.

[0060] For example, taking the control timing as: motor drive interface - scanning CIS interface - scanning AFE interface - scanning sensor interface, the motor drive interface subunit first receives the control command for the motor drive interface, and in response to the control command, inputs a motor control signal to the scanning engine. Next, the CIS interface subunit receives the control command for the scanning CIS interface, and in response to the control command, inputs a CIS control signal to the scanning engine. Then, the AFE interface subunit receives the control command for the scanning AFE interface, and in response to the control command, inputs an AFE control signal to the scanning engine. Finally, the sensor interface subunit receives the control command for the scanning sensor interface, and in response to the control command, inputs a sensor control signal to the scanning engine.

[0061] The motor drive interface corresponds to the stepper motor in the scanning device used to move the scanning head. The motor control signal can include control parameters such as movement speed, movement direction, and number of steps. Accordingly, the scanning engine can control the movement speed and direction of the stepper motor based on the movement speed and direction in the motor control signal, so that the stepper motor drives the scanning head to scan the paper at a certain speed. Furthermore, the stepper motor can be controlled to stop moving when the actual number of steps moved by the stepper motor reaches the number of steps defined in the motor control signal.

[0062] A Photosensitive Image Sensor (CIS) consists of multiple closely spaced photosensitive elements. When light shines on the object being scanned (e.g., paper), the object reflects the light back to the CIS, which then converts the received light signal into an analog signal. The CIS control signal can include parameters for controlling the CIS's operating state, such as exposure time and gain. Accordingly, the scanning engine can control the CIS to operate according to the exposure time and gain specified in the CIS control signal. During scanning, the electrical signal output from the image sensor (e.g., CIS) is typically weak and may contain noise. An Image Filter (AFE) can be used to amplify and filter this electrical signal to improve signal quality. The AFE control signal can include control parameters such as amplification factor and filtering parameters. Accordingly, the AFE can be controlled to amplify and filter the signal according to the amplification factor and filtering parameters specified in the AFE control signal.

[0063] The scanning sensor interface is used to control auxiliary scanning sensors, such as position sensors, pressure sensors, temperature sensors, etc. The sensor control signals can include activation signals for each auxiliary sensor. Accordingly, the auxiliary sensors can be controlled to operate normally during the scanning process to detect abnormalities. For example, a position sensor can be used to detect the position of the scanning head to promptly identify abnormalities in its working position; a pressure sensor can be used to detect the pressure on the object being scanned to promptly detect any jamming; and a temperature sensor can be used to detect the internal temperature of the device to promptly detect any abnormal temperatures.

[0064] Of course, the scanning control unit may also include other control interfaces, and this embodiment of the invention does not limit this. For example, the scanning interface unit may also include a resolution and image type control interface. The resolution and image type control signals output by the resolution and image type control interface may include the sampling resolution and image type (e.g., black and white, color). The sampling resolution represents the number of points to be sampled per inch. The timing control circuit in the scanning engine can determine the sampling pulse frequency based on the sampling resolution and the scanning head's movement speed. For example, the product of the sampling resolution and the scanning head's movement speed can be used as the sampling pulse frequency. Then, light is emitted to the scanned object according to this sampling pulse frequency. Further, the operating mode of the analog-to-digital converter can be configured according to the image type. For example, for black and white, the analog-to-digital converter can convert the analog signal into signals in both black and white states to obtain and output black and white image data. For color, the analog-to-digital converter can convert the analog signal into signals with multiple color channels (e.g., red, green, blue) to obtain and output color image data. The aforementioned control signals may include signals of the Serial Peripheral Interface (SPI), Pulse Width Modulation (PWM), and General Purpose Input / Output (GPIO) types.

[0065] The acquisition signal output by the scanning engine is the aforementioned image data. Accordingly, the scanning acquisition unit can sample the image data output by the scanning engine according to a preset sampling frequency. Then, the sampled image data is cached locally to obtain the original scanned image.

[0066] In this embodiment of the invention, by setting multiple control interfaces in the scanning control interface unit 122, and according to the control timing required by the scanning engine, the control signals corresponding to the control interfaces are sequentially input to the scanning engine through the multiple control interfaces, thereby ensuring that the control timing meets the requirements and that the scanning engine can be driven to perform scanning normally.

[0067] Optionally, in this embodiment of the invention, the preprocessing unit 123 is equipped with a variety of preprocessing algorithms corresponding to different scanning engines, and the processing result types of different preprocessing algorithms are the same; the preprocessing unit 123 is specifically used to: take the preprocessing algorithm corresponding to the engine identifier of the scanning engine as the target preprocessing algorithm; and preprocess the original scanned image according to the target preprocessing algorithm.

[0068] The engine identifier of the scanning engine can be provided to the preprocessing unit 123 by the scanning processor core 121, or it can be predefined locally in the preprocessing unit 123. For example, the engine identifier of the scanning engine using the chip can be defined in the preprocessing unit 123, or the engine identifier of the scanning engine using the chip can be defined in the scanning processor core 121, and the scanning processor core 121 sends the engine identifier to the preprocessing unit 123.

[0069] The preprocessing unit 123 can store the correspondence between engine identifiers of various scanning engines and preprocessing algorithms. The preprocessing algorithm corresponding to the engine identifier can be found from this correspondence, and the found preprocessing algorithm is used as the target preprocessing algorithm. Then, the original scanned image is preprocessed according to the target preprocessing algorithm. The preprocessing algorithm corresponding to each scanning engine can be pre-designed by the developer; this embodiment of the invention does not impose any limitations on this.

[0070] In this design, the preprocessing algorithms for each scanning engine produce the same type of result, for example, an RGB color image. This ensures that when the chip is used with different scanning engines, the preprocessing components always produce the same type of preprocessing result. This eliminates the specific differences in the original scanned images caused by structural differences between different scanning engines, ensuring that the original scanned images provided to the image processor 11 are more standardized. This facilitates a unified and streamlined processing flow for the image processor 11 to handle the original scanned images acquired by different scanning engines.

[0071] For example, suppose there are three scanning engines: model A, model B, and model C. Model A has the following specific differences: uneven lighting, resulting in inconsistent image brightness. Model B has the following specific differences: non-linear response, resulting in image color distortion. Model C has the following specific differences: blurred color banding edges, resulting in loss of image edge details. The preprocessing algorithm corresponding to model A is used to perform brightness calibration on the original scanned image to adjust the image brightness; the calibrated image is then converted to an RGB color image. The preprocessing algorithm corresponding to model B is used to perform color compensation on the original scanned image to adjust the image color; the compensated image is then converted to an RGB color image. The preprocessing algorithm corresponding to model C is used to perform edge enhancement on the original scanned image; the enhanced image is then converted to an RGB color image. Of course, the above is only an example; the preprocessing algorithm may also include other operations, such as compression, etc., and this embodiment of the invention does not limit this.

[0072] Optionally, in this embodiment of the invention, the chip further includes a transmission controller 14; the main processor core 10 is further configured to, when the task to be processed is a scanning task, read the target scanned image from the memory storage unit; when the task requirement includes local display, transmit the target scanned image to the display module for display through the memory storage unit; and when the task requirement includes remote transmission, invoke the transmission controller 14 to transmit the target scanned image to the receiver. The printing processing module 13 includes a printing processor core 131 and a printing interface control unit 132; the printing processor core 131 is configured to, when the task to be processed is a copying task, control the printing interface control unit 132 to read the target scanned image from the memory storage unit and send it to an external printing device for printing.

[0073] After obtaining the target scan image, the image processor 11 uses its integrated DMA mechanism to send the target scan image and the receiver identifier to the memory controller 15 via the communication bus. The memory controller 15 then writes the target scan image into the memory storage unit. Following this, the memory controller 15 can notify the receiver represented by the receiver identifier. Specifically, after the target scan image undergoes first data processing, the receiver represented by the receiver identifier is identified as the main processor core 10. The main processor core 10 is in operating mode. When the task requires local display, the main processor core 10 notifies the display module. The display module can send a read request via the communication bus. In response to this read request, the memory controller 15 retrieves the target scan image from the memory storage unit and sends it to the display module via the communication bus for display, thus displaying the scanned image on the personal computer (PC) screen. When the task requires remote transmission, the main processor core 10 notifies the transmission controller 14, for example, the USB controller or network controller. The network controller manages a preset field corresponding to the task to be processed in the Ethernet network or Wi-Fi wireless local area network task requirements. Remote transmission and local display task requirements can be represented using different fields. The USB controller and network controller are connected to the USB external device and network external device, respectively. The transmission controller 14 can send a read request via the communication bus. The memory controller 15 responds to the read request by retrieving the target scan image from the memory storage unit and sending it to the transmission controller 14 via the communication bus. The transmission controller 14 remotely transmits the target scan image through the connected peripheral device. The receiving end of the remote transmission can be determined by user instructions. It is understood that the task requirements can simultaneously include local display and remote transmission; in this case, display and remote transmission can be performed concurrently. In this embodiment of the invention, the main processor core 10 performs local display and remote transmission of the target scan image according to the task requirements, enabling diverse scanning result processing.

[0074] If the target scanned image is obtained through the second data processing, the receiver identified by the receiver identifier is the scan processor core 121. Accordingly, the scan processor core 121 can activate the print interface control unit 132. The print interface control unit 132 sends a read request via the communication bus. In response to this read request, the memory controller 15 retrieves the target scanned image from the memory storage unit and sends it to the print interface control unit 132 via the communication bus. The print interface control unit 132 can output control information to the printing device and send the target scanned image to control the printing device to perform operations such as motor start-up, ink cartridge heating, laser activation, and LED activation, thereby achieving print output.

[0075] Printing is performed via a communication-connected printing device. The print processor core 131 runs an independent real-time system, directly controlling the print interface control unit 132 to communicate with the printing peripheral (i.e., the external printing device). The print interface control unit 132 controls the internal functional units of the printing device, such as PWM, GPIO, analog-to-digital converter (ADC), and digital-to-analog converter (DAC), to achieve real-time control of components such as the print motor, print mechanism, and temperature control unit. The print interface control unit 132 is compatible with various print mechanisms to ensure flexibility. In this embodiment, the target scanned image is printed using the independently operating scan processor core 121 and print interface control unit 132. The scan processing module 12 and the print processing module 13 process in parallel, thereby improving processing efficiency. It should be noted that this chip can also process print tasks. For example, the main processor core 10 can receive print data transmitted from the peripheral device and perform print data preprocessing in response to a print task. The print processor core 131 can load the corresponding print driver (e.g., ADC, PWM, motor driver, etc.) according to the model of the external print device's mechanism (e.g., laser type, LED type). Next, the print interface control unit 132 acquires the pre-processed data to be printed via a DMA mechanism, outputs control information to the print device, and sends the data to control the print device to perform operations such as motor start-up, ink cartridge heating, laser activation, and LED activation, thereby achieving print output.

[0076] In this embodiment of the invention, the multiple control interfaces in the scanning control interface unit 122 include interfaces required by mainstream scanning mechanisms to adapt to various scanning mechanism models. The multiple control interfaces in the printing interface control unit 132 include interfaces required by mainstream printing mechanisms to adapt to various printing mechanism models. This allows for convenient model adaptation according to actual user needs, with fewer limitations and higher flexibility, meeting the requirements of various application scenarios, greatly improving the chip's versatility, and thus expanding its application scope and facilitating promotion. In this embodiment of the invention, the printing interface control unit 132 and printing peripherals are independently and in real-time controlled by the printing processor core 131, and the scanning control interface unit 122 and scanning peripherals (e.g., the scanning engine) are independently and in real-time controlled by the scanning processor core 121, without affecting the main processor core 10. This allows the main processor core 10 to efficiently and independently complete operations such as printing data preprocessing and scanning output.

[0077] Optionally, the printing processing module 13 in this embodiment of the invention is further configured to: if the time remaining from the task completion time reaches a first preset time, and no task is received within the first preset time, then control the main processor core 10 and the scanning processor core 121 to enter a standby state; if no task is received within a second preset time after entering the standby state, then control the main processor core 10 and the scanning processor core 121 to power down to enter a hibernation state; if a wake-up command sent by a peripheral device is detected, then wake up the main processor core 10, and if the wake-up command indicates a scanning task or a copying task, wake up the scanning processor core 121.

[0078] In this embodiment of the invention, the chip's operating modes can be divided into operating mode, standby mode, and hibernation mode. Specifically, when the main processor core 10 and the scan processor core 121 enter standby mode, the chip is in standby mode; when the main processor core 10 and the scan processor core 121 enter hibernation mode, the chip is in hibernation mode. When the main processor core 10 and the scan processor core 121 are not in hibernation or standby mode, they are in operating mode. In the initial state after the chip is powered on, the main processor core 10 starts and runs the dedicated operating system, loading relevant device drivers. Then, the scan processor core 121 and the print processor core 131 are started. The print processor core 131 remains running and controls the main processor core 10 and the scan processor core 121 to enter standby or hibernation mode. Correspondingly, after entering hibernation mode, if a wake-up command sent by a peripheral device is detected, the main processor core 10 is woken up first. Then, if the wake-up command is a scan task or copy task submitted by the peripheral device, it is determined that the wake-up command indicates a scan task or copy task. Accordingly, the scan processor core 121 can be woken up. Upon waking, the print processor core 131 does not need to be activated again; only the scan processor core 121 is activated. When not in standby or hibernation mode, the main processor core 10 maintains the network USB controller, network control, and other transmission controllers 14 to monitor tasks. When in standby or hibernation mode, the print processor core 131 maintains the network USB controller, network control, and other transmission controllers 14 to monitor tasks. In this way, by dynamically monitoring and controlling the main processor core 10 and the scan processor core 121 to enter standby and hibernation modes through the print processor core 131, multiple mode switching can be achieved, reducing overall power consumption and meeting the requirements of low-power, high-performance, and energy-saving all-in-one printer applications. Simultaneously, task monitoring by the print processor core 131 ensures that tasks submitted by peripherals are responded to promptly.

[0079] Specifically, if the time elapsed since the last task was completed reaches a first preset time and no new task is received during this period, the print processor core 131 can control the main processor core 10 and the scan processor core 121 to enter standby mode. For example, the print processor core 131 can control the clock shutdown of the main processor core 10, the scan processor core 121, and other functional units in the scan processing module 12, causing the main processor core 10 to stop running the operating system, and the scan processor core 121 to stop running the operating system and shut down scanning peripherals. In standby mode, the main processor core 10 and the scan processor core 121 do not undergo power-off shutdown. This allows the main processor core 10 and the scan CPU to quickly resume working mode when a new task appears, thus ensuring processing efficiency.

[0080] If no new task is received within the second preset time period after entering standby mode, the main processor core 10 and the scan processor core 121 are powered off. Simultaneously, the print processor core 131 switches the transmission controller 14 to a low-power monitoring polling mode, responding only to specific wake-up commands from the transmission controller 14. The main processor core 10's operating system is saved in memory storage and enters self-refresh mode to prevent system data loss. Finally, the print processor core 131 automatically switches to a low-frequency, low-voltage, low-power monitoring mode, only detecting wake-up commands.

[0081] In sleep mode, if a valid wake-up command is received, the print processor core 131 first wakes up the main processor core 10. For example, it can restore power to other functional units within the main processor core 10. After power is restored, the clock-gated core reset state of the main processor core 10 is released. A wake-up operation is performed on the main processor core 10, causing it to restart. Next, if the valid wake-up command indicates a scan or copy task, power is restored to other functional units within the scan processor core 121. After power is restored, the clock-gated core reset state of the scan processor core 121 is released. Finally, the print processor core 131 returns to normal voltage and operating frequency.

[0082] It should be noted that the chip may also include other components, such as expansion device interfaces, including SDIO, eMMC, PWM, ADC, DAC, UART, GPIO, etc., which can connect to expansion devices. The transmission controller 14, memory controller 15, and expansion device interfaces can be shared and managed by the main processor core 10, print processor core 131, and scan processor core 121.

[0083] In one implementation, the main processor core 10 can adopt a high-performance architecture processor core, while the scanning processor core 121 and the printing processor core 131 can adopt a low-power architecture processor core. Thus, by employing a heterogeneous multi-core architecture, and through effective division of labor among the main processor core 10, the scanning processing module 12, the printing processing module 13, and the image processor 11, parallel processing of copying or scanning can be achieved, thereby improving overall processing efficiency. Furthermore, by using a custom processor core, it is possible to understand and master the internal functional structure of the main control chip.

[0084] Figure 6 This invention provides a chip processing method, wherein the chip includes: a main processor core, an image processor, a scanning processing module, a scanning processor core, a scanning control interface unit, a preprocessing unit, and a storage unit, wherein the storage unit stores a system program; for example Figure 6 As shown, the method may include: Step 201: The main processor core sends a task to be processed to the scanning processor core; the task to be processed is a scanning task or a copying task.

[0085] Step 202: The system program in the storage unit is loaded and run by the scan processor core at startup to send scan control commands to the scan control interface unit in response to the task to be processed.

[0086] Step 203: In response to the scan control command, the scan control interface unit inputs the scan control signal to the connected scan engine; the acquisition signal output by the scan engine is sampled to obtain the original scan image.

[0087] Step 204: The preprocessing unit preprocesses the original scanned image.

[0088] Step 205: The image processor processes the preprocessed original scanned image according to the task type of the task to be processed, to obtain the target scanned image.

[0089] Step 206: The main processor core scans and outputs the target scan image when the task to be processed is a scanning task.

[0090] Step 207: When the task to be processed is a copying task, the printing processing module prints out the target scanned image.

[0091] The implementation methods of each step and the technical effects that can be achieved can be referred to the relevant descriptions above, and will not be repeated here.

[0092] Figure 7This is another chip processing method provided in the embodiments of the present invention, such as... Figure 7 As shown, when the chip is powered on, after the main processor core starts up, it can first identify whether it is a wake-up operation. Specifically, if the main processor core is triggered to start after the chip powers on, it is determined not to be a wake-up operation. If the main processor core is triggered to start when a new task is received in sleep mode or standby mode, it is determined to be a wake-up operation. Further, if it is a wake-up operation, since the print processor core itself is already running in this case, only the scan processor core is started. If it is not a wake-up operation, both the print processor core and the scan processor core are started. Then, if there is a print task to process, the print processing module performs the printing work; if there is a scan task to process, the scan processing module and the image processing unit process it to obtain the target scan image. The main processor core or the print processor core scans or prints the target scan image. The specific implementation of obtaining the target scan image and scanning or printing the target scan image can be referred to the aforementioned description, and will not be repeated here.

[0093] Furthermore, if the time elapsed since the last task completion reaches a first preset duration (i.e., the idle time reaches a first preset duration), the print processor core controls the main processor core and the scan processor core to stop working, and the system enters standby mode. If a new task is received while in standby mode, the main processor core is triggered to start and process the task. If no new task is received and the standby time reaches a second preset duration, a hibernation mode is entered, powering down the main processor core and the scan processor core, and the print processor core switches to low-power monitoring polling mode. If a new task is received while in hibernation mode, the main processor core is triggered to start and process the task.

[0094] An embodiment of the present invention also provides an electronic device, including the chip described above; for example, the electronic device may be a scanning all-in-one machine.

[0095] This invention provides a machine-readable medium storing instructions that, when executed by one or more processors, enable the processors to perform the chip processing method described in the preceding embodiments. The machine-readable medium may be one or more.

[0096] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0097] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0098] It should be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with the authorization granted by the owner of the relevant device.

[0099] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0100] These computer program instructions may also be stored in a computer-readable storage medium capable of directing a computer or other programmable data processing terminal device to operate in a predictive manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 Figure 1 The steps of the function specified in one or more boxes.

[0102] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0103] Finally, it should be noted that in this paper, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0104] Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0105] The present invention has been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A chip, characterized in that, The chip includes: a main processor core, an image processor, a scanning processing module, a scanning processor core, a scanning control interface unit, a preprocessing unit, and a storage unit, wherein the storage unit stores the system program. The main processor core is used to send tasks to be processed to the scanning processor core; the tasks to be processed are scanning tasks or copying tasks. The scanning processor core is configured to load and run the system program in the storage unit upon startup, in response to the task to be processed, to send scanning control commands to the scanning control interface unit; the scanning control interface unit is configured to input the scanning control signal to the connected scanning engine in response to the scanning control command; sample the acquisition signal output by the scanning engine to obtain a raw scanning image; the preprocessing unit is configured to preprocess the raw scanning image; the image processor is configured to process the preprocessed raw scanning image according to the task type of the task to be processed to obtain a target scanning image; The main processor core is also used to scan and output the target scan image when the task to be processed is a scanning task; The printing processing module is used to print out the target scanned image when the task to be processed is a copying task.

2. The chip according to claim 1, characterized in that, The image processor is specifically used for: When the task type is a scanning task, the preprocessed original scanned image is subjected to first data processing according to the data processing method corresponding to the scanning task. When the task type is a copying task, the preprocessed original scanned image is subjected to second data processing according to the data processing method corresponding to the copying task.

3. The chip according to claim 2, characterized in that, The image processor is further configured to: When the task type is a scanning task, the preprocessed original scanned image is subjected to shadow calibration, gamma calibration, color conversion, scaling and compression operations to complete the first data processing. When the task type is a copying task, the preprocessed original scanned image is subjected to shadow calibration, gamma calibration, filtering, scaling, and halftone operations to complete the second data processing.

4. The chip according to claim 1, characterized in that, The chip also includes a shared cache, and the preprocessing unit and the image processor are respectively connected to the shared cache; the preprocessing unit is further configured to write the preprocessed original scan image into the shared cache, and the image processor is further configured to read the preprocessed original scan image from the shared cache; Alternatively, the chip may further include a communication bus, which connects the memory storage unit, the preprocessing unit, and the image processor; The preprocessing unit is further configured to write the preprocessed original scan image into the memory storage unit via the communication bus, and the image processor is further configured to read the preprocessed original scan image from the memory storage unit via the communication bus.

5. The chip according to claim 1, characterized in that, The scanning control interface unit includes multiple control interfaces; the scanning control interface unit is specifically used to: input the control signals corresponding to the control interfaces to the scanning engine sequentially through the multiple control interfaces according to the interface control timing of the scanning control command; The interface control timing conforms to the control timing required by the scanning engine.

6. The chip according to claim 1, characterized in that, The preprocessing unit deploys preprocessing algorithms corresponding to various scanning engines, and the processing results of different preprocessing algorithms are of the same type; the preprocessing unit is specifically used for: The preprocessing algorithm corresponding to the engine identifier of the scanning engine is used as the target preprocessing algorithm; The original scanned image is preprocessed according to the target preprocessing algorithm.

7. The chip according to any one of claims 1-6, characterized in that, The chip also includes a transmission controller; The main processor core is also configured to: read the target scan image from the memory storage unit when the task to be processed is a scanning task; transmit the target scan image to the display module for display through the memory storage unit when the task requirement includes local display; and call the transmission controller to transmit the target scan image to the receiver when the task requirement includes remote transmission.

8. The chip according to any one of claims 1-6, characterized in that, The printing processing module includes a printing processor core and a printing interface control unit; The print processor core is used to control the print interface control unit to read the target scan image from the memory storage unit and send it to the external print device when the task to be processed is a copying task, so that the print device can print it.

9. The chip according to any one of claims 1-6, characterized in that, The printing processing module is also used for: If the time remaining from the task completion time reaches a first preset time, and no task is received within the first preset time, then the main processor core and the scanning processor core are controlled to enter standby mode. If no task is received within a second preset time after entering the standby state, the main processor core and the scanning processor core are powered down to enter a hibernation state. If a wake-up command sent by a peripheral device is detected, the main processor core is woken up, and if the wake-up command indicates a scan task or a copy task, the scan processor core is woken up.

10. An electronic device, characterized in that, Includes the chip as described in any one of claims 1 to 9.