Anti-aliasing printing method, device, storage medium and scanner

By means of high-resolution scanning, adjusting the image sensor angle and anti-aliasing processing, the problem of image jaggedness after scanner scanning is solved and the print quality is improved.

CN118769731BActive Publication Date: 2025-10-03GUANGZHOU ZHONO ELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410924819.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2025-10-03
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Existing scanners have jagged edges in scanned images, resulting in poor printing quality, especially in office documents.

Method used

By scanning the target document at high resolution, identifying and adjusting the image sensor angle to eliminate aliasing, and combining anti-aliasing processing and downsampling technology, a low-resolution image suitable for printing is generated.

Benefits of technology

It effectively reduces the jagged phenomenon in printed files and improves the quality of scanned images and printing effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118769731B_ABST
    Figure CN118769731B_ABST
Patent Text Reader

Abstract

The present application provides an anti-aliasing printing method, device, storage medium, and scanner, relating to the field of office equipment. The scanner scans a target document to obtain a first image of the target document; based on the first image, a second image of the target document is obtained, wherein the resolution of the first image is higher than that of the second image; and a printer is controlled to print the second image to obtain a printed file of the target document. Because a higher scanning resolution can reduce aliasing, the target document is scanned at a higher resolution to obtain a first image with less aliasing. The resolution of the first image is then reduced to a second image suitable for printing. This reduces aliasing in the printed file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of office equipment, and more specifically, to an anti-aliasing printing method, device, storage medium, and scanner. Background Art

[0002] With the increasing prevalence of automated office work, scanners are widely used in modern offices. Consequently, printers with integrated scanners have become a mainstream product in the printer market. Combined with scanning functionality, printers can scan paper documents and directly transfer them to a document or output them as images to a host computer, combining functionality with ease of use. Current consumer scanners typically use a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor (hereinafter referred to as a CIS) as the optical / electrical device. The scanner generates a light source to illuminate the image. The resulting reflected light signal is converted by the CIS into an analog electrical signal, which is then converted to a digital signal through an A / D converter, representing the image's grayscale and RGB information.

[0003] The CIS sensor is arranged in a two-dimensional matrix or vector structure (similar to pixels on a screen, where a vector represents a column). During scanning, it moves relative to the document, completing the image through multiple sampling cycles. The electrical signal generated by the CIS is in matrix form, and the sampling resolution depends on the CIS parameters. Therefore, the sampling accuracy of the sensor directly determines the scanning quality. Currently, the sampling accuracy of scanners integrated into printers is mostly 600DPI or 1200DPI.

[0004] However, in practice, it was found that in many scanning scenarios, the scanned image had jagged edges, resulting in poor final printing results. Summary of the Invention

[0005] In order to overcome at least one of the shortcomings of the prior art, the present application provides an anti-aliasing printing method, device, storage medium, and scanner, specifically comprising:

[0006] In a first aspect, the present application provides an anti-aliasing printing method, applied to a scanner, the method comprising:

[0007] Scanning a target document to obtain a first image of the target document;

[0008] Obtaining a second image of the target document based on the first image, wherein a resolution of the first image is higher than a resolution of the second image;

[0009] The printer is controlled to print the second image to obtain a print file of the target document.

[0010] In conjunction with an optional implementation manner of the first aspect, obtaining a second image of the target document based on the first image includes:

[0011] Downsampling the first image to obtain the second image.

[0012] In conjunction with an optional implementation manner of the first aspect, obtaining a second image of the target document based on the first image includes:

[0013] Performing anti-aliasing processing on the first image to obtain an optimized first image;

[0014] The optimized first image is downsampled to obtain the second image.

[0015] In conjunction with an optional implementation manner of the first aspect, performing anti-aliasing processing on the first image to obtain an optimized first image includes:

[0016] identifying pattern edges in the first image;

[0017] For each edge pixel located at the edge of the pattern, determining adjacent pixels located within a preset range of the edge pixel;

[0018] Fusing the pixel value of the edge pixel with the pixel value of the adjacent pixel to obtain an optimized edge pixel;

[0019] The optimized first image is obtained according to each optimized edge pixel.

[0020] In conjunction with an optional implementation manner of the first aspect, the scanner includes a rotatable image sensor for scanning a document, and scanning the target document to obtain a first image of the target document includes:

[0021] Controlling the image sensor to rotate to be consistent with the placement orientation of the target document;

[0022] The image sensor is kept in the placement orientation and the target document is scanned to obtain a first image of the target document.

[0023] In conjunction with an optional implementation manner of the first aspect, controlling the image sensor to rotate to be consistent with the placement orientation of the target document includes:

[0024] Obtaining a deflection angle of the target document, wherein the deflection angle represents an angle between a placement orientation of the target document and a standard orientation;

[0025] The image sensor is controlled to rotate the deflection angle in a direction close to the target document, so that the orientation of the image sensor is consistent with the placement orientation of the target document.

[0026] In conjunction with an optional implementation manner of the first aspect, the scanner includes a first processor and a second processor; the first image is each partial scanned image of the target document, and obtaining the second image of the target document based on the first image includes:

[0027] performing anti-aliasing processing on the partial scan image by the first processor to obtain an optimized partial scan image;

[0028] downsampling the optimized partial scan image by the second processor to obtain a downsampled partial scan image;

[0029] The downsampled local scanned image is used as the second image.

[0030] In a second aspect, the present application further provides an anti-aliasing printing device, applied to a scanner, the device comprising:

[0031] A document scanning module, configured to scan a target document to obtain a first image of the target document;

[0032] an image optimization module, configured to obtain a second image of the target document based on the first image, wherein a resolution of the first image is higher than a resolution of the second image;

[0033] The document printing module is used to control the printer to print the second image to obtain a print file of the target document.

[0034] In conjunction with the optional implementation manner of the second aspect, the image optimization module is further specifically configured to:

[0035] Downsampling the first image to obtain the second image.

[0036] In conjunction with the optional implementation manner of the second aspect, the image optimization module is further specifically configured to:

[0037] Performing anti-aliasing processing on the first image to obtain an optimized first image;

[0038] The optimized first image is downsampled to obtain the second image.

[0039] In conjunction with the optional implementation manner of the second aspect, the image optimization module is further specifically configured to:

[0040] identifying pattern edges in the first image;

[0041] For each edge pixel located at the edge of the pattern, determining adjacent pixels located within a preset range of the edge pixel;

[0042] Fusing the pixel value of the edge pixel with the pixel value of the adjacent pixel to obtain an optimized edge pixel;

[0043] The optimized first image is obtained according to each optimized edge pixel.

[0044] In conjunction with an optional implementation manner of the second aspect, the scanner includes a rotatable image sensor for scanning documents, and the document scanning module is further specifically configured to:

[0045] Controlling the image sensor to rotate to be consistent with the placement orientation of the target document;

[0046] The image sensor is kept in the placement orientation and the target document is scanned to obtain a first image of the target document.

[0047] In conjunction with the optional implementation manner of the second aspect, the document scanning module is further specifically configured to:

[0048] Obtaining a deflection angle of the target document, wherein the deflection angle represents an angle between a placement orientation of the target document and a standard orientation;

[0049] The image sensor is controlled to rotate the deflection angle in a direction close to the target document, so that the orientation of the image sensor is consistent with the placement orientation of the target document.

[0050] In conjunction with an optional implementation manner of the second aspect, the scanner includes a first processor and a second processor; the first image is each partial scanned image of the target document, and the image optimization module is further specifically configured to:

[0051] performing anti-aliasing processing on the partial scan image by the first processor to obtain an optimized partial scan image;

[0052] downsampling the optimized partial scan image by the second processor to obtain a downsampled partial scan image;

[0053] The downsampled local scanned image is used as the second image.

[0054] In a third aspect, the present application further provides a storage medium storing a computer program, which implements the anti-aliasing printing method when executed by a processor.

[0055] In a fourth aspect, the present application further provides a scanner, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the anti-aliasing printing method is implemented.

[0056] Compared with the prior art, this application has the following beneficial effects:

[0057] The present application provides an anti-aliasing printing method, device, storage medium, and scanner. The scanner scans a target document to obtain a first image of the target document; based on the first image, a second image of the target document is obtained, wherein the resolution of the first image is higher than that of the second image; and a printer is controlled to print the second image to obtain a printed file of the target document. Because a higher scanning resolution can reduce aliasing, the target document is scanned at a higher resolution to obtain a first image with less aliasing. The resolution of the first image is then reduced to a second image suitable for printing. This reduces aliasing in the printed file. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0059] Figure 1 A flowchart of the anti-aliasing printing method provided in an embodiment of the present application;

[0060] Figure 2 A schematic diagram of the deflection angle provided in an embodiment of the present application;

[0061] Figure 3 A schematic diagram of the rotation of the image sensor provided in an embodiment of the present application;

[0062] Figure 4 A schematic diagram of a partial scan image provided in an embodiment of the present application;

[0063] Figure 5 A schematic diagram of the structure of a scanner provided in an embodiment of the present application;

[0064] Figure 6 A schematic structural diagram of the anti-aliasing printing device provided in an embodiment of the present application.

[0065] Icons: 11 - image sensor; 12 - target document; 21 - processor; 22 - memory; 23 - system bus; 31 - document scanning module; 32 - image optimization module; 33 - document printing module. DETAILED DESCRIPTION

[0066] To make the objectives, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Generally, the components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.

[0067] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application without creative work are within the scope of protection of the present application.

[0068] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not require further definition or explanation in subsequent drawings.

[0069] In the description of this application, it should be noted that the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be understood as indicating or implying relative importance. In addition, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0070] Based on the above statement, as introduced in the background technology, in many scanning scenarios, there is a problem of jagged edges in the scanned image, which makes the final printing effect poor. Regarding this phenomenon, after a large number of experiments, it was found that the frequency of jagged edges in the scanned images of office documents is much higher than that of non-office documents. The reason for this phenomenon is that table elements are widely used in office documents and occupy a huge and important content in office documents. If there is a small angle difference between the CIS and the document, it will cause jagged features to appear in the long line segments in the scanned image, and the obviousness of the jagged edges is related to the CIS sampling accuracy and the horizontal angle between the straight edge and the sensor. The lower the CIS accuracy, the more obvious the jagged edges.

[0071] Based on the discovery of the above technical problems, the inventors have proposed the following technical solutions after creative work to solve or improve the above problems. It should be noted that the defects existing in the solutions in the above prior art are the results obtained by the inventors after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed in the embodiments of this application below for the above problems should all be the contributions made by the inventors to this application in the process of invention and creation, and should not be understood as technical contents known to those skilled in the art.

[0072] In light of the above findings, this embodiment provides an anti-aliasing printing method. In this method, a scanner scans a target document to obtain a first image of the target document; based on the first image, a second image of the target document is obtained, wherein the resolution of the first image is higher than that of the second image; and a printer is controlled to print the second image to obtain a printed file of the target document. Because a higher scanning resolution can reduce aliasing, the target document is scanned at a higher resolution to obtain a first image with less aliasing. The resolution of the first image is then reduced to a second image suitable for printing. This reduces aliasing in the printed file.

[0073] To make the solution provided by this embodiment clearer, the following Figure 1 Each step of the method is described in detail. However, it should be understood that the operations in the flowchart can be implemented in a non-sequential order, and steps that have no logical contextual relationship can be reversed or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart, or remove one or more operations from the flowchart, guided by the content of this application. Figure 1 As shown, the method includes:

[0074] S1, scanning a target document to obtain a first image of the target document.

[0075] In this embodiment, the target document is a document to be printed, which may include a text document, a graphic document, a business card, etc. Among them, the text document may include a report, a contract, an invoice, a receipt, etc. The graphic document may include a photo, a picture, a chart, etc.

[0076] Furthermore, assuming that the scanner supports sampling accuracies of 600 DPI and 1200 DPI, the target document is scanned at the higher DPI of 1200 to obtain the first image. In this way, the target document is scanned at the highest possible resolution, so that the scanned first image has fewer jagged edges.

[0077] Furthermore, given that aliasing in scanned images occurs because a small angle difference between the CIS and the document causes long line segments in the scanned image to appear jagged, and that the apparent degree of aliasing is related to the CIS sampling accuracy and the horizontal angle between the straight edge and the sensor, the scanner of this embodiment further includes a rotatable image sensor for scanning documents, and the angle of the image sensor is adjusted to reduce the occurrence of aliasing. Therefore, this embodiment also provides the following optional implementation of step S1:

[0078] S1-1, controlling the image sensor to rotate to be consistent with the placement orientation of the target document.

[0079] In this regard, it should be noted that the operating steps of a scanner usually include the following: first, place the target document to be scanned on the glass plate of the scanner and make sure it is face down; then, set the resolution, color mode and other settings on the scanner; next, start the scanner's scanning program, which can usually be operated through the buttons on the scanner or the software on the computer; during the scanning process, the scanner's light tube will move to capture the image of the target document; after the scan is completed, the scanned image can be obtained.

[0080] Among them, when preparing to place the target document on the glass plate of the scanner for scanning, the ideal operation is to place the target document face down and ensure that their edges are aligned parallel to the reference lines provided on the scanner glass plate. Such placement can ensure that the scanned image is clear and straight, and avoids image skew or distortion. However, in actual operation, due to the flatness or curvature of the document itself or slight errors in placement by the user, the placement orientation of the target document may not be completely consistent with the ideal standard orientation. This may cause the target document to have a small angle deflection during scanning. Although the angle of this deflection is usually small, perhaps within a few degrees, it may still affect the final scanning result, especially in application scenarios with high image quality requirements.

[0081] The orientation of the image sensor in the initial state is consistent with the standard orientation, which results in a horizontal angle between the straight edge of the document and the sensor. Figure 2 As shown, the orientation of the image sensor 11 is consistent with the standard orientation, but the target document 12 has a certain deflection angle with the standard orientation. Therefore, in this embodiment, the scanner uses the horizontally rotatable image sensor 11 to obtain the deflection angle of the target document 12, where the deflection angle represents the angle between the target document 12's orientation and the standard orientation. The image sensor 11 is then controlled to rotate the deflection angle toward the target document 12, ensuring that the orientation of the image sensor 11 remains consistent with the orientation of the target document 12. This reduces aliasing caused by the angular difference between the CIS and the document.

[0082] It is worth emphasizing that when scanning a target document, high-resolution scanning and adjusting the image sensor angle can be used simultaneously, or one of the two measures can be used alone. In this embodiment, the specific combination of these two strategies is not limited.

[0083] S1-2, keeping the image sensor in the placement direction, and scanning the target document to obtain a first image of the target document.

[0084] Continue with Figure 2 As an example, the image sensor and target document in Figure 3 As shown, Figure 2 The image sensor 11 in the image sensor 11 is rotated by a corresponding deflection angle toward the target document 12. , so that the image sensor 11 and the target document 12 are placed in the same orientation. Then, the scanner maintains the current orientation of the image sensor 11 and scans the target document 12 in a preset scanning direction until the entire target document 12 is scanned, thereby obtaining a first image of the target document 12.

[0085] Continue to see Figure 1 Based on the first image obtained in the above embodiment, the method further includes:

[0086] S2: Obtain a second image of the target document based on the first image.

[0087] The resolution of the first image is higher than the resolution of the second image.

[0088] As an optional implementation provided by this embodiment, the scanner can directly downsample the first image to obtain the second image. It should be noted that many mature downsampling algorithms are currently available, and this embodiment will not further elaborate on them. For example, the method for downsampling the first image can be the classic bilinear interpolation image scaling algorithm.

[0089] As another optional implementation provided by this embodiment, in order to further improve the image quality of the second image, the first image is subjected to anti-aliasing processing before being downsampled. In this way, edge jaggedness in the second image can be further reduced. Therefore, this embodiment also provides the following implementation of step S2:

[0090] S2-1, performing anti-aliasing processing on the first image to obtain an optimized first image.

[0091] In this embodiment, anti-aliasing is achieved by blending edge pixels with surrounding pixels to reduce grayscale differences at the edge of the image, thereby eliminating aliasing. In a specific embodiment, a scanner identifies pattern edges in a first image; for each edge pixel located at the pattern edge, adjacent pixels within a preset range of the edge pixel are determined; the pixel value of the edge pixel is fused with the pixel values ​​of the adjacent pixels to obtain an optimized edge pixel; and based on each optimized edge pixel, an optimized first image is obtained.

[0092] For example, the scanner can scan the first image in a size of The window is gradually traversed to perform edge detection and identify pattern edges in the first image. Pattern edges can be, for example, table edges or text edges in the first image. Edge types include U-shaped, L-shaped, and Z-shaped edges. A long Z-shaped edge can be decomposed into multiple L-shaped edges. For each edge pixel at the edge of the pattern, its pixel value is weighted with the pixel values ​​of the surrounding pixels to obtain the pixel value of the edge pixel. This reduces the grayscale difference at the edge of the pattern, making the jagged edges in the image less noticeable.

[0093] Based on the optimized first image obtained through anti-aliasing processing, step S2 further includes:

[0094] S2-2, downsampling the optimized first image to obtain a second image.

[0095] In this way, the optimized first image is downsampled to a second image suitable for printing. Figure 1 Based on the second image, the anti-aliasing printing method provided by this embodiment further includes:

[0096] S3, controlling the printer to print the second image to obtain a print file of the target document.

[0097] Exemplarily, the scanner sends the second image to the printer, so that the printer prints the second image.

[0098] In addition, the scanner in this embodiment may also include a first processor and a second processor. When scanning the target document, if the two can run in parallel, the scanning efficiency can be greatly improved. In practice, it is found that if the first image is a complete scanned image of the target document, it means that it is necessary to wait until the target document is scanned before the obtained first image can be optimized. Therefore, in order to make full use of the computing power of the first processor and the second processor, the first image in this embodiment can be each partial scanned image of the target document. It should be noted that, under normal circumstances, the size of the target document is much larger than the size of the image sensor in the scanner, which requires controlling the image sensor to scan the target document multiple times until the entire target document is scanned. Each time a part of the target document is scanned, a partial scanned image of the target document can be obtained. For example, Figure 4 As shown, in this embodiment, the target document 12 can be scanned line by line along the scanning direction by the image sensor, and the image obtained by scanning each line is used as a partial scan image. Figure 4 The scanning path shown is only an example provided by this embodiment. Of course, the target document can also be scanned through other scanning paths as long as the scanning of the entire target document can be completed.

[0099] To improve processing efficiency, a first processor scans a target document, performs anti-aliasing on the scanned partial image, and then downsamples it to a second processor. While the second processor downsamples the line scan image, the first processor continues to scan the target document and perform anti-aliasing on the scanned partial image. In this way, image acquisition, anti-aliasing, and downsampling operations can be performed simultaneously, thereby improving scanning efficiency. In a specific embodiment, the scanner can perform anti-aliasing on the partial scan image through the first processor to obtain an optimized partial scan image; downsample the optimized partial scan image through the second processor to obtain a downsampled partial scan image; and use the downsampled partial scan image as the second image.

[0100] For example, Figure 5 As shown, assume the scanner includes a CIS, an AD converter, two processors (named CPU0 and CPU1), and memory (including RAM and ROM). Each processor is an ARM processor and has its own L1 cache. There is a 16KB L2 cache between the two processors. When both processors run simultaneously, the data flow between the processors is: CIS -> AD converter -> RAM -> CPU0 -> L2 cache / RAM -> CPU1 -> printer. The specific process is as follows:

[0101] CPU0 controls the CIS to scan the target document and sends a line of scan signals to the ADC. After the ADC converts the scan signal into a line of partial scanned image, it generates an interrupt signal, prompting CPU0 to read the line of partial scanned image from the ADC and store it in RAM. CPU0 then performs anti-aliasing processing on the line of partial scanned image and stores the optimized partial scanned image in the L2 cache. When the processing of a line of partial scanned image is complete, CPU0 initiates a communication or interrupt to CPU1, which retrieves the line of partial scanned image from the L2 cache and scales it using a dual interpolation algorithm. The scaled data can then be stored by CPU1 in RAM / ROM or directly output to a printer for printing.

[0102] Based on the same inventive concept as the anti-aliasing printing method provided in this embodiment, this embodiment also provides an anti-aliasing printing device, which includes at least one software function module that can be stored in a memory or fixed in an electronic device in the form of software. The processor in the electronic device is used to execute the executable module stored in the memory. For example, the software function module and computer program included in the anti-aliasing printing device. Please refer to Figure 6 , functionally speaking, the anti-aliasing printing device may include:

[0103] The document scanning module 31 is used to scan a target document to obtain a first image of the target document;

[0104] An image optimization module 32 is configured to obtain a second image of the target document based on the first image, wherein a resolution of the first image is higher than a resolution of the second image;

[0105] The document printing module 33 is used to control the printer to print the second image to obtain a print file of the target document.

[0106] In this embodiment, the document scanning module 31 is used to implement Figure 1 In step S1, the image optimization module 32 is used to implement Figure 1 In S2, the document printing module 33 is used to implement Figure 1 For detailed descriptions of the above modules, please refer to the specific implementation of the corresponding steps. In addition, it should be noted that, since the anti-aliasing printing method has the same inventive concept, the above modules can also be used to implement other steps or sub-steps of the method, which will not be described in detail in this embodiment.

[0107] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0108] It should also be understood that if the above embodiments are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the portion that contributes to the prior art, or the portion of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application.

[0109] Therefore, this embodiment further provides a computer-readable storage medium. The storage medium stores a computer program that, when executed by a processor, implements the anti-aliasing printing method provided in this embodiment. The storage medium can be any medium capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0110] This embodiment provides a scanner that implements the above-mentioned anti-aliasing printing. Figure 5 The scanner may include a processor 21 and a memory 22. In addition, the memory 22 stores a computer program, and the processor implements the anti-aliasing printing method provided in this embodiment by reading and executing the computer program corresponding to the above embodiment in the memory 22.

[0111] Continue to see Figure 5 The memory 22, processor 21 and possible other components are directly or indirectly electrically connected through a system bus 23 to achieve data transmission or interaction.

[0112] The memory 22 may be an information recording device based on any electronic, magnetic, optical or other physical principles, for recording execution instructions, data, etc. In some embodiments, the memory 22 may be, but is not limited to, a volatile memory, a non-volatile memory, a storage drive, etc.

[0113] In some embodiments, the volatile memory may be a random access memory (RAM); in some embodiments, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, etc.; in some embodiments, the storage drive may be a magnetic disk drive, a solid-state drive, any type of storage disk (such as a CD, DVD, etc.), or a similar storage medium, or a combination thereof.

[0114] The processor 21 may be an integrated circuit chip having signal processing capabilities, and the processor may include one or more processing cores (e.g., a single-core processor or a multi-core processor). By way of example only, the processor may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), an application-specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computer (RISC), or a microprocessor, or any combination thereof.

[0115] I understand. Figure 5 The structure shown is for reference only. Figure 5 More or fewer components than shown, or with Figure 5The components shown in FIG5 can be implemented using hardware, software, or a combination thereof. For example, the scanner can also include direct memory access (DMA), a printer interface, a communication unit, an AD converter, and the like.

[0116] The printer interface is used for communication with the printer, so that the image scanned by the scanner can be sent to the printer through the printer interface.

[0117] An AD converter is used to convert analog signals into digital signals. "AD" stands for "Analog to Digital." Analog signals are ubiquitous in electronic devices and computer systems, such as sound, temperature, light, and pressure. However, computers process digital signals, so an AD converter is needed to convert these signals into digital signals. In this embodiment, the AD converter is used to convert the optical signal captured by the image sensor into a digital signal.

[0118] Direct memory access allows computer hardware subsystems (such as hard drives, graphics cards, and network interface cards) to directly access system memory to read or write data without the intervention of the central processing unit (CPU). This can significantly improve the efficiency of data transfers because DMA reduces the burden on the CPU, allowing the CPU to handle other tasks instead of being busy with the details of data transfers.

[0119] A communication unit configured to transmit and receive data via a network. In some embodiments, the network may include a wired network, a wireless network, a fiber optic network, a telecommunications network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), a wide area network (WAN), a public switched telephone network (PSTN), a Bluetooth network, a ZigBee network, or a near field communication (NFC) network, or any combination thereof. In some embodiments, the network may include one or more network access points. For example, the network may include a wired or wireless network access point, such as a base station and / or a network switching node, through which one or more components of the service request processing system may connect to the network to exchange data and / or information.

[0120] It should be understood that the devices and methods disclosed in the above embodiments may also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, may be implemented using a dedicated hardware-based system that performs a specified function or action, or may be implemented using a combination of dedicated hardware and computer instructions.

[0121] The above descriptions are merely examples of various embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be readily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. An anti-aliasing printing method, characterized in that: Applied to a scanner comprising a rotatable image sensor for scanning a document, the method comprising: Obtaining a deflection angle of a target document, wherein the deflection angle represents an angle between a placement orientation of the target document and a standard orientation; Controlling the image sensor to rotate the deflection angle in a direction close to the target document so that the orientation of the image sensor is consistent with the placement orientation of the target document; Keeping the image sensor in the placement orientation, and scanning the target document to obtain a first image of the target document; Obtaining a second image of the target document based on the first image, wherein a resolution of the first image is higher than a resolution of the second image; The printer is controlled to print the second image to obtain a print file of the target document.

2. The anti-aliasing printing method according to claim 1, wherein: The step of obtaining a second image of the target document according to the first image includes: Downsampling the first image to obtain the second image.

3. The anti-aliasing printing method according to claim 1, wherein: The step of obtaining a second image of the target document according to the first image includes: Performing anti-aliasing processing on the first image to obtain an optimized first image; The optimized first image is downsampled to obtain the second image.

4. The anti-aliasing printing method according to claim 3, wherein: The step of performing anti-aliasing processing on the first image to obtain an optimized first image includes: identifying pattern edges in the first image; For each edge pixel located at the edge of the pattern, determining adjacent pixels located within a preset range of the edge pixel; Fusing the pixel value of the edge pixel with the pixel value of the adjacent pixel to obtain an optimized edge pixel; The optimized first image is obtained according to each optimized edge pixel.

5. The anti-aliasing printing method according to claim 1, wherein: The scanner includes a first processor and a second processor; the first image is each partial scanned image of the target document, and obtaining a second image of the target document based on the first image includes: performing anti-aliasing processing on the partial scan image by the first processor to obtain an optimized partial scan image; downsampling the optimized partial scan image by the second processor to obtain a downsampled partial scan image; The downsampled local scanned image is used as the second image.

6. An anti-aliasing printing device, characterized in that: Applicable to a scanner comprising a rotatable image sensor for scanning documents, the device comprising: A document scanning module, configured to obtain a deflection angle of a target document, wherein the deflection angle represents an angle between a placement orientation of the target document and a standard orientation; Controlling the image sensor to rotate the deflection angle in a direction close to the target document so that the orientation of the image sensor is consistent with the placement orientation of the target document; Keeping the image sensor in the placement orientation, and scanning the target document to obtain a first image of the target document; an image optimization module, configured to obtain a second image of the target document based on the first image, wherein a resolution of the first image is higher than a resolution of the second image; The document printing module is used to control the printer to print the second image to obtain a print file of the target document.

7. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the anti-aliasing printing method according to any one of claims 1 to 5 is implemented.

8. A scanner, characterized in that: The scanner includes a processor and a memory, wherein the memory stores a computer program. When the computer program is executed by the processor, the anti-aliasing printing method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Image anti-aliasing processing method and electronic equipment

    CN113837955A

  • Image scanning method

    US20040036926A1