Image processing method and device, electronic device, and storage medium

By converting the text and image portions of the image to be printed into page description language and generating an image instruction, the problem of slow printing speed for multiple image pages in the prior art is solved, achieving faster printing speed and quality assurance.

CN117130568BActive Publication Date: 2026-01-23BEIJING PANTUM INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311075748.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-24
Publication Date
2026-01-23
Estimated Expiration
2043-08-24

AI Technical Summary

Technical Problem

Existing technology requires analyzing each PDL instruction and performing raster operations when printing multi-image pages, resulting in slow printing speed.

Method used

The text and image portions of the image to be printed are converted into Page Description Language (PDL) respectively, and an image instruction is generated and inserted into the PDL, reducing the number of times PDL instructions need to be analyzed and improving the image reconstruction speed.

Benefits of technology

By reducing the number of times PDL instructions are analyzed, the printing speed of the image forming device is improved while ensuring image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117130568B_ABST
    Figure CN117130568B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an image processing method and device, an electronic device and a storage medium. The method comprises obtaining a to-be-printed image, extracting a text part and an image part in the to-be-printed image; converting all the extracted image parts into first image data on a page; converting the extracted text part into a page description language; generating an image instruction based on the first image data and inserting the image instruction into the page description language to form a target page description language; and sending the target page description language to an image forming device to execute an image forming job. Through the method, one image PDL instruction can be generated based on multiple images contained in a to-be-printed image. Thus, when a printer restores a page, only one image in the to-be-printed image needs to be restored through the one image PDL instruction, thereby saving the time for analyzing the PDL instruction and the processing time of the image instruction and improving the printing speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular to an image processing method and apparatus, electronic device and storage medium. Background Technology

[0002] When a Page Description Language (PDL) printer performs a print job, each page to be printed is data independent of the imaging device (printer). The page needs to be drawn by the Page Description Language interpreter on the printer according to the instructions of the Page Description Language.

[0003] If a page to be printed contains multiple images, a corresponding number of image PDL instructions will be generated based on the multiple images. During printing, it takes time to analyze each PDL instruction and perform raster operations on the image on the page, thus affecting the printing speed. Summary of the Invention

[0004] This application provides an image processing method, apparatus, electronic device, and storage medium. The method generates an image PDL instruction based on multiple images contained in an image to be printed. Therefore, when the printer recreates the page, it only needs to use this single image PDL instruction to recreate the multiple images in the image to be printed, saving time on PDL instruction analysis and image raster operations, thus improving printing speed.

[0005] In a first aspect, embodiments of this application provide an image processing method applied to a driver-end device, comprising: acquiring an image to be printed; extracting text and image portions from the image to be printed; converting all extracted image portions into first image data on a page; converting the extracted text portions into a page description language; generating an image instruction based on the first image data and inserting it into the page description language to form a target page description language; and sending the target page description language to an image forming device to perform an image forming operation.

[0006] In one possible implementation, before converting all the extracted image portions into first image data on a single page, the method further includes: creating a first page and a second page; wherein the first page is used to describe the text portions, and the second page is used to describe the image portions.

[0007] In one possible implementation, converting all the extracted image portions into first image data on a single page includes converting all the extracted image portions into pixel-level image data on a second page.

[0008] In one possible implementation, before converting all the extracted image portions into first image data on a single page, the method further includes: determining whether the extracted text portions and image portions overlap; if there is no overlap, continuing with the step of converting all the extracted image portions into first image data on a single page; if there is overlap, canceling the execution of subsequent steps, generating a second image instruction based on the text portions and image portions, and sending a page description language containing the second image instruction to an image forming device to perform an image forming operation.

[0009] In one possible implementation, determining whether the text portion and the image portion overlap includes: determining the outline region of the image portion, and determining whether the pixel position of the text portion overlaps with the outline region of the image portion.

[0010] In one possible implementation, determining the contour region of the image portion includes: determining the minimum and maximum coordinates of the image in the image portion; and defining the bounding box determined based on the minimum and maximum coordinates as the contour region of the image.

[0011] In one possible implementation, the first page and the second page use the same cursor to perform position updates.

[0012] Secondly, embodiments of this application also provide an image processing method applied to an image forming device, comprising: reconstructing a page based on a received target page description language to obtain a third page; performing different halftone conversions on the images and text in the third page; merging the halftone converted images and text into a raster image, and performing printing based on the raster image.

[0013] Thirdly, embodiments of this application also provide an image processing apparatus, comprising: a receiving unit, configured to acquire an image to be printed, and extract text and image portions from the image to be printed; a processing unit, configured to convert all the extracted image portions into first image data on a single page, convert the extracted text portions into a page description language, and generate an image instruction based on the first image data and insert it into the page description language to form a target page description language; and a sending unit, configured to send the target page description language to an image forming device to perform an image forming operation.

[0014] Fourthly, embodiments of this application also provide an image processing apparatus, comprising: a page processing unit, configured to reconstruct a page based on a received target page description language to obtain a third page, and to perform different halftone conversions on the images and text in the third page; and a printing unit, configured to merge the halftone converted images and text into a raster image, and to perform printing based on the raster image.

[0015] Fifthly, embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory is used to store at least one instruction, which, when loaded and executed by the processor, implements the image processing method provided in the first aspect and / or the second aspect. In some embodiments, the electronic device may be a chip or a chip module.

[0016] In a sixth aspect, embodiments of this application also provide a driving end device, which includes the electronic device provided in the fifth aspect, and the device can at least implement the image processing method provided in the first aspect.

[0017] In a seventh aspect, embodiments of this application also provide an image forming apparatus, which includes the electronic device provided in the fifth aspect, and the apparatus performs an image processing method that can implement the image processing method provided in the second aspect.

[0018] Eighthly, embodiments of this application also provide an image processing system, which includes the driving end device provided in the sixth aspect and at least one image forming device provided in the seventh aspect.

[0019] In a ninth aspect, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the image processing method provided in the first aspect and / or the second aspect.

[0020] A tenth aspect is a computer program product comprising a computer program or instructions that, when executed by a processor, implement the image processing method provided in the first aspect and / or the second aspect. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a schematic diagram of the structure of an image forming apparatus provided in one embodiment of this application;

[0023] Figure 2A schematic diagram illustrating the generation of instructions for a multi-image page description language;

[0024] Figure 3 A schematic diagram illustrating the generation of multi-image page description language instructions is provided for one embodiment of this application;

[0025] Figure 4 A schematic flowchart of an image processing method provided in one embodiment of this application;

[0026] Figure 5 A schematic diagram of page combination provided for one embodiment of this application;

[0027] Figure 6 This is a schematic diagram illustrating the overlap of an image portion and a text portion according to one embodiment of this application;

[0028] Figure 7 A schematic flowchart illustrating an image processing method provided in another embodiment of this application;

[0029] Figure 8 A schematic flowchart of an image processing method provided in another embodiment of this application;

[0030] Figure 9 This is a schematic diagram of the structure of an image processing apparatus provided in one embodiment of this application;

[0031] Figure 10 This is a schematic diagram of the structure of an image processing apparatus provided in another embodiment of this application;

[0032] Figure 11 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0033] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0034] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0035] Figure 1 This is a schematic diagram of an image forming apparatus provided in one embodiment of this application.

[0036] Please see Figure 1 The image forming apparatus 100 is used to perform image forming jobs, such as generating, printing, receiving and sending image data, and examples of the image forming apparatus 100 include printers, scanners, copiers, fax machines, and multi-function peripherals (MFPs) that perform the above functions in a single device.

[0037] As an example of an image forming apparatus 100, the image forming apparatus 100 includes a photosensitive drum 101Y-K, a charging roller 102Y-K, a developing roller 103Y-K, a toner hopper 104Y-K, a transfer belt 105, a secondary transfer roller 106, a paper feed tray 107, a manual paper feed tray 108, a paper feed roller 109, a transfer roller 110, a paper detection sensor 120, a laser scanning unit (LSU) 111, a heating roller 112, a pressure roller 113, an ejection roller 114, and an ejection tray 115, etc. Generally, the processing cartridge CM includes a photosensitive drum 101Y-K, a charging roller 102Y-K, a developing roller 103Y-K, and a toner hopper 104Y-K for holding toner.

[0038] LSU 111 is a single LSU comprising four optical paths. Four charging rollers 102Y-K charge the surfaces of the four photosensitive drums 101Y-K respectively. The four optical paths of LSU 111 emit laser beams to form electrostatic latent images on the surfaces of the photosensitive drums 101Y-K. Four developing rollers 103Y-K develop toner images of a single color on the surfaces of the photosensitive drums 101Y-K respectively. The image forming apparatus 100 employs a two-stage transfer method, whereby the four photosensitive drums 101Y-K sequentially transfer the toner image onto the transfer belt 105, and then the colored toner image formed on the transfer belt 105 is transferred a second time onto the paper via the secondary transfer roller 106. The paper feed cassette 107 stores the paper, and the paper feed roller 109 transports the stored paper to the transport path (i.e., the paper path channel described later). The transport roller 110 transports the paper to the secondary transfer roller 106.

[0039] The secondary transfer roller 106 transports the imaged paper to the clamping area of ​​the hot roller 112 and the pressure roller 113. The hot roller 112 and the pressure roller 113 are used to fix the toner image on the paper. The hot roller 112 can be heated by ceramic heating. The hot roller 112 and the pressure roller 113 transport the fixed paper to the discharge roller 114. The discharge roller 114 discharges the paper into the discharge tray 115 and stacks it up.

[0040] The laser scanning unit 111 acquires an optical analog image signal of the original / source document through exposure of the light printhead. The paper detection sensor 120 is used to detect whether there is paper in the paper path at its location.

[0041] The paper feed cassette 107 is provided with a paper outlet. The paper feed roller 109 is specifically used to feed the paper contained in the paper feed cassette 107 from the paper outlet into the paper path for transfer requirements. The image forming apparatus 100 also includes a drive mechanism (not shown) for driving the paper feed roller 109. The drive mechanism is a drive motor used to drive the paper feed roller 109 to move, thereby realizing the paper feeding operation. The drive mechanism 181 is electrically connected to the controller (not shown) of the image forming apparatus to realize the controller's operation control of the drive mechanism. The controller is electrically connected to the paper detection sensor 120, which sends the detection result information of whether there is paper in the paper path to the controller.

[0042] The image forming apparatus 100 also includes an operation panel (not shown), which includes an operation section consisting of various keys (not shown) and a touchpad-type display section (not shown).

[0043] It is understood that the image forming apparatus 100 listed above is only an example, and the component configuration and component arrangement of the image forming apparatus 100 can be adjusted according to the actual situation without affecting the improvement idea of ​​the present invention.

[0044] Figure 2 This is a schematic diagram illustrating the generation of instructions for a multi-image page description language.

[0045] Reference Figure 2 As shown, if a page to be printed contains text and multiple images, the PDL printer will perform image processing based on the received image during the printing job, converting the image into a page description language that the printer can recognize. If the image to be printed contains multiple images, a corresponding number of image PDL instructions will be generated based on these images. During printing, time is required to analyze each PDL instruction, thus affecting printing speed. In this embodiment, "image to be printed containing multiple images" refers to graphic images.

[0046] To overcome the aforementioned problems, this application provides an image processing method, referring to... Figure 3 As shown, this method allows for the conversion of text in an image to be printed into a page description language (Page Description Language) when the image to be printed contains multiple images. The multiple images are then treated as a single image and inserted into this Page Description Language using a single image instruction. This Page Description Language instruction is then sent to the image forming device to perform the image generation operation. Therefore, the image forming device only needs to reconstruct one image instruction, significantly improving the image reconstruction speed and the speed of image generation (such as printing).

[0047] Figure 4 This is a schematic flowchart of an image processing method provided in one embodiment of this application.

[0048] Reference Figure 4 As shown, the method may include:

[0049] S401: Obtain the image to be printed, and extract the text and image portions from the image to be printed.

[0050] In some embodiments, before extracting the text and image portions from the image to be printed, it may be detected whether the image to be printed contains an image. If no image is contained, the text in the image to be printed is directly converted into a page description language and sent to the image forming device (such as a printer) for printing. If an image is contained, the text and image portions in the image to be printed are extracted.

[0051] S402: Convert all extracted image portions into first image data on a single page.

[0052] In some embodiments, prior to S402, the following steps may also be included:

[0053] S10: Create a first page and a second page, wherein the first page is used to describe the text portion of the image to be printed, and the second page is used to describe the image portion of the image to be printed.

[0054] S403: Convert the extracted text portion into page description language.

[0055] In some embodiments, the extracted text portions can be converted into a page description language to obtain the first drawn page, and all extracted image portions can be output using a single image instruction in a page description language to obtain the second drawn page.

[0056] In some embodiments, the size of the second page is the same as the size of the print page of the image forming device.

[0057] In some embodiments, converting all extracted image portions into first image data on a single page can be achieved by converting all extracted image portions into pixel-level image data on a single page (such as a second page). Specifically, after extracting the image portions from the image to be printed, the driver device draws the corresponding pixels on the second page based on all images. After drawing, it places the image onto the second page using a PDL image instruction based on the area occupied by the image (i.e., the position of each pixel in the image).

[0058] In some embodiments, if the driver device cannot determine the area occupied by the image portion, all images can be integrated into one image and output to the second page via an image instruction.

[0059] In some embodiments, the current position of the pen (cursor) on the first page and the second page is the same. In other words, the first page and the second page can share a single cursor, and the coordinate updates are synchronized with each other, i.e., the same as the coordinate update method when drawing on a single page.

[0060] S404: Generate an image instruction based on the first image data and insert it into the page description language to form the target page description language.

[0061] Figure 5 This is a schematic diagram of a page combination provided for one embodiment of this application.

[0062] Reference Figure 5 As shown, after obtaining the first and second pages after drawing, the first and second pages are merged to obtain the target page, and the target page is sent to the image forming device (such as a printer) to perform an image generation job (such as performing a printing task).

[0063] The first page is drawn by converting the text portion of the image to be printed into a page description language. The second page is drawn by outputting the image portion of the image to be printed using a PDL image instruction. Merging the first and second pages to obtain the target page can be achieved by inserting an image instruction corresponding to the image portion into the page description language converted from the text portion, thus obtaining the target page description language.

[0064] S405: Send the target page description language to the image forming device to perform the image forming operation.

[0065] When the image to be printed contains multiple images, the target page description language sent to the image forming device contains only one PDL image instruction. Based on this, when the image forming device receives the target page description language to perform page reconstruction, it only needs to reconstruct one image instruction, which greatly improves the speed of image reconstruction and thus improves the printing speed of the image forming device, while ensuring the quality of the image.

[0066] In some applications, the image portion and the text portion of the image to be printed may overlap.

[0067] Figure 6 This is a schematic diagram showing the overlap of an image portion and a text portion in one embodiment of this application.

[0068] Reference Figure 6 As shown, the image portion and text portion of the image to be printed 60 overlap. Specifically, the image portion includes image 601 and image 602, and the text portion is located between image 601 and image 602; that is, image 601 is at the bottom layer, the text portion is in the middle layer, and image 602 is at the top layer, and all three overlap. When the above-mentioned overlap between the graphic portion and the image / text portion occurs, if the following is used... Figure 4 The image processing method provided in the illustrated embodiment may result in the image covering the text, thus affecting the clarity of the text.

[0069] To overcome the above-mentioned technical problems, when the image part overlaps with the text part, this application embodiment also provides another image processing method for image processing.

[0070] Figure 7 This is a schematic flowchart of an image processing method provided in another embodiment of this application.

[0071] Reference Figure 7 As shown, before step S402, the following steps may also be included:

[0072] S1: Based on the extracted text portion and image portion, determine whether the text portion and the image portion overlap. If there is no overlap, continue to execute S402; if there is an overlap, execute S2.

[0073] One method for determining whether the text portion and the image portion overlap can be to determine the outline region of the image portion and whether the pixel position of the text portion overlaps with the outline region of the image portion.

[0074] In some embodiments, the contour region of an image can be determined based on the image's coordinate information. In one embodiment, the image contour can be determined simply by obtaining the minimum and maximum coordinates of the image. Specifically, a line segment can be determined based on the obtained minimum and maximum coordinates, and then a rectangle with the line segment as its diagonal can be determined as the image contour region. For example, the obtained image portion includes two images, image A and image B, and the minimum and maximum coordinates of image A can be further obtained. The minimum coordinate is the intersection point M between the vertical line containing the leftmost point of the image and the horizontal line containing the topmost point of the image; the maximum coordinate is the intersection point N between the vertical line containing the rightmost point of the image and the horizontal line containing the bottommost point of the image. Connecting points M and N yields the line segment MN, and a rectangle is determined based on the line segment MN, with the line segment MN being the diagonal of the rectangle. The resulting rectangle is the contour region of image A. The contour region of image B can be determined using the same method described above, and will not be repeated here.

[0075] After obtaining the image's contour information, it can be further determined whether the pixel positions of the text portion overlap with the contour area of ​​the image portion. Once it is determined that the pixel positions of the text portion overlap with the contour area of ​​the image portion, step S2 can be executed.

[0076] S2: Generate a second image instruction based on the text and image parts, and generate the target page description language based on the second image instruction.

[0077] When it is determined that the pixel position of the text part overlaps with the outline area of ​​the image part, the corresponding image to be printed can be regarded as an image, thereby generating a corresponding second image instruction, and generating the target page description language based on the second image instruction.

[0078] S3: Send the target page description language to the image forming device to perform the image forming job.

[0079] In some embodiments, if S10 is included before S402, then S1 can be executed before S10.

[0080] Figure 8This is a schematic flowchart of an image processing method provided in another embodiment of this application.

[0081] Reference Figure 8 As shown, the image processing method is performed in an image forming device, and the method may include:

[0082] S801: Reconstruct the page based on the received target page description language.

[0083] S802: Performs different halftone conversions on images and text.

[0084] S803: Merges images and text after different halftone transformations into a raster image, and performs printing based on the raster image.

[0085] The image forming device (such as a printer) receives a separate image and text print page (a page containing the target page description language) containing only one image instruction.

[0086] In some embodiments, the driver device can indicate to the image forming device (such as a printer) through the print driver that the current job is a text-image separation job.

[0087] After receiving a print job with separate image and text, the printer needs to use different data processing methods because the image needs to be smooth and the text needs to have clear edges. Therefore, during the page restoration process, different halftone conversions can be used on the image and text and the raster image required by the printing engine can be synthesized and sent to the printing engine for printing.

[0088] Figure 9 This is a schematic diagram of the structure of an image processing device provided in an embodiment of this application.

[0089] Reference Figure 9 As shown, the device may include a receiving unit 901, used to acquire an image to be printed and extract text and image portions from the image to be printed; a processing unit 902, used to convert all the extracted image portions into first image data on a single page, convert the extracted text portions into a page description language, generate an image instruction based on the first image data and insert it into the page description language to form a target page description language; and a sending unit 903, used to send the target page description language to an image forming device to perform an image forming operation.

[0090] In some embodiments, before converting all the extracted image portions into first image data on a single page, the method further includes: creating a first page and a second page; wherein the first page is used to describe the text portion, and the second page is used to describe the image portion.

[0091] In some embodiments, converting all the extracted image portions into first image data on a single page includes converting all the extracted image portions into pixel-level image data on a second page.

[0092] In some embodiments, before converting all the extracted image portions into first image data on a single page, the method further includes: determining whether the extracted text portions and image portions overlap; if there is no overlap, continuing with the step of converting all the extracted image portions into first image data on a single page; if there is overlap, canceling the execution of subsequent steps, generating a second image instruction based on the text portions and image portions, and sending a page description language containing the second image instruction to an image forming device to perform an image forming operation.

[0093] In some embodiments, determining whether the text portion and the image portion overlap includes: determining the outline region of the image portion, and determining whether the pixel position of the text portion overlaps with the outline region of the image portion.

[0094] In some embodiments, determining the contour region of the image portion includes: determining the minimum and maximum coordinates of the image in the image portion; and defining the bounding box determined based on the minimum and maximum coordinates as the contour region of the image.

[0095] In some embodiments, the first page and the second page use the same cursor to perform position updates.

[0096] Figure 10 This is a schematic diagram of the structure of an image processing apparatus provided in another embodiment of this application.

[0097] Reference Figure 10 As shown, the device may include a page processing unit 1001, used to reconstruct a page based on a received target page description language to obtain a third page, and to perform different halftone conversions on the images and text in the third page; and a printing unit 1002, used to merge the halftone converted images and text into a raster image, and to perform printing based on the raster image.

[0098] Figure 11 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application.

[0099] Reference Figure 11As shown, the device may include a processor 1101 and a memory 1102. The memory 1102 is used to store at least one instruction, which is loaded by the processor 1101 and executed as an image processing method provided in any embodiment of this application. In some embodiments, the electronic device may be a chip or a chip module.

[0100] This application embodiment also provides an image forming apparatus, which may include... Figure 11 The electronic device provided in the illustrated embodiment. In some embodiments, the image forming apparatus can implement... Figure 8 The image processing method provided in the illustrated embodiment.

[0101] This application also provides an image processing system, which may include a driver device and at least one image generating device, wherein both the driver device and the image generating device include... Figure 11 The electronic device provided in the illustrated embodiment, the driving end device can at least achieve Figure 4 or Figure 7 The illustrated embodiment provides an image processing method, and the image generation device can at least achieve... Figure 8 The image processing method provided in the illustrated embodiment.

[0102] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the image processing method provided in any embodiment of this application.

[0103] This application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the image processing method provided in any embodiment of this application.

[0104] It should be noted that the terminals involved in the embodiments of this application may include, but are not limited to, personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 players, MP4 players, etc.

[0105] It is understood that the application may be a native application installed on the terminal, or it may be a web application of a browser on the terminal. This application embodiment does not limit this.

[0106] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0107] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0108] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0109] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.

[0110] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0111] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. An image processing method, characterized in that, Applied to a driver-end device, the method includes: Obtain the image to be printed, and extract the text and image portions from the image to be printed; All the extracted image portions are converted into first image data on a single page; The extracted text portion is converted into page description language; An image instruction is generated based on the first image data and inserted into the page description language to form a target page description language; and The target page description language is sent to the image forming device to perform an image forming operation; Before converting all the extracted image portions into first image data on a single page, the process includes: Based on the extracted text and image portions, it is determined whether the text and image portions overlap. If there is no overlap, the step of converting all the extracted image portions into first image data on a single page continues. If there is overlap, the subsequent steps are canceled, and a second image instruction is generated based on the text and image portions. The page description language containing the second image instruction is then sent to the image forming device to perform the image forming operation.

2. The method according to claim 1, characterized in that, Before converting all the extracted image portions into first image data on a single page, the method further includes: Create the first page and the second page; The first page is used to describe the text portion, and the second page is used to describe the image portion.

3. The method according to claim 2, characterized in that, The step of converting all the extracted image portions into first image data on a single page includes: All extracted image portions are converted into pixel-level image data on the second page.

4. The method according to claim 1, characterized in that, Determining whether the text portion and the image portion overlap includes: The outline region of the image portion is determined, and it is determined whether the pixel position of the text portion overlaps with the outline region of the image portion.

5. The method according to claim 4, characterized in that, Determining the contour region of the image portion includes: Determine the minimum and maximum coordinates of the image within the image portion; and The rectangular frame determined based on the minimum and maximum coordinates is the outline region of the image.

6. An image processing method, characterized in that, Applied to an image forming apparatus, the method includes: The page is reconstructed based on the received target page description language to obtain a third page; wherein, when the text and image portions in the image to be printed do not overlap, the target page description language is formed by: converting all image portions in the image to be printed into first image data on a single page, converting the text portions into page description language, generating an image instruction based on the first image data and inserting it into the page description language to form the target page description language; when the text and image portions in the image to be printed overlap, the target page description language is formed by: generating a second image instruction based on the text and image portions, and using the page description language containing the second image instruction as the target page description language; Apply different halftone conversions to the images and text on the third page; The halftone converted image and text are merged into a raster image, and printing is performed based on the raster image.

7. An image processing apparatus, characterized in that, The device includes: The receiving unit is used to acquire the image to be printed and extract the text and image portions from the image to be printed. A processing unit is configured to convert all extracted image portions into first image data on a single page, convert extracted text portions into page description language, and generate an image instruction based on the first image data and insert it into the page description language to form a target page description language; and The sending unit is used to send the target page description language to the image forming device to perform an image forming operation; Before converting all the extracted image portions into first image data on a single page, the process further includes: determining whether the extracted text portions and image portions overlap; if there is no overlap, continuing with the step of converting all the extracted image portions into first image data on a single page; if there is overlap, canceling the subsequent steps, generating a second image instruction based on the text portions and image portions, and sending a page description language containing the second image instruction to an image forming device to perform an image forming operation.

8. An image processing apparatus, characterized in that, The device includes: A page processing unit is configured to reconstruct a page based on a received target page description language to obtain a third page, and to perform different halftone conversions on the images and text in the third page. Specifically, when the text and image portions of the image to be printed do not overlap, the target page description language is formed by: converting all image portions of the image to be printed into first image data on a single page, converting the text portions into page description language, generating an image instruction based on the first image data, and inserting it into the page description language to form the target page description language. When the text and image portions of the image to be printed overlap, the target page description language is formed by: generating a second image instruction based on the text and image portions, and using the page description language containing the second image instruction as the target page description language. The printing unit merges the halftone converted image and text into a raster image and performs printing based on the raster image.

9. An electronic device, characterized in that, The device includes: A processor and a memory, the memory being used to store at least one instruction that, when loaded and executed by the processor, implements the image processing method as described in any one of claims 1-6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the image processing method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Image processing apparatus

    JP2003226043A

  • Printing control program, information processing apparatus, storage medium, printing apparatus, and printing system

    JP2012014586A