Double-sided printing method, device, equipment and medium
By using QR codes to automatically match the front and back images in the double-sided printing technology, the problems of high cost and manual matching errors in the existing technology are solved, and efficient and accurate double-sided printing effect is achieved.
Patent Information
- Application Number
- CN202510078889.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-06-10
AI Technical Summary
The existing double-sided printing technology is costly and manual matching of front and back sides is prone to errors, resulting in high labor costs and misoperation losses.
By obtaining the basic information of the front job and the mapping relationship between the front and back jobs, the basic information of the back job is determined, and converting it into a QR code to print it with the front image. Back printing is performed based on QR code images to achieve automatic matching of front and back images.
Reduces equipment and labor costs, reduces manual operation errors, ensures matching accuracy of front and back images, and does not have additional paper costs during the cutting process.
Smart Images

Figure CN120122900A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of printing technology, and in particular, to a duplex printing method, device, equipment and medium. Background Art
[0002] The onepass printing technology installs multiple nozzles perpendicular to the moving direction of the object to be printed in the printer. When the object to be printed passes through the printing platform at a constant speed, multiple nozzles work simultaneously to print ink to the preset positions, avoiding the time loss of the reciprocating movement of the nozzles in traditional scanning printing. The printer has a simple structure and high printing efficiency, and can meet the requirements of large-volume and high-efficiency printing scenarios.
[0003] For some scenarios that require duplex printing of the object to be printed, such as printing test papers, book pages, etc., the current onepass printing system usually needs to use a specific duplex printer for printing. However, due to the high price of the nozzles, it costs a lot to make a printer that can print both the front and the back. If a duplex printer is not used and the front and the back are printed separately, usually the user needs to manually flip the object to be printed to achieve duplex printing. Specifically, in a duplex printing scenario, additional labor is required to identify the front image, and then match the corresponding back pattern for printing. This solution not only has a high labor cost, but also is prone to errors in front-back matching and page missing during manual operation.
[0004] Therefore, there is an urgent need for a duplex printing method, device, equipment and medium. Summary of the Invention
[0005] The purpose of the present invention is to provide a duplex printing method, device, equipment and medium, which are used to solve the problems of high cost of existing duplex printing and easy errors in front-back matching using manual labor.
[0006] To achieve the above purpose, the present invention provides the following technical solutions:
[0007] In a first aspect, the present invention provides a duplex printing method, including:
[0008] Obtaining first basic information of a front job and a mapping relationship between the front job and a back job;
[0009] Determining second basic information of the back job corresponding to the front job according to the first basic information and the mapping relationship; the second basic information includes a back job name, a back job path, and a back job page number;
[0010] Convert the second basic information into a two-dimensional code, and print the two-dimensional code and the front operation to obtain a target printed image; the target printed image includes a two-dimensional code image and a front image located at the bleed area;
[0011] Perform back printing based on the two-dimensional code image to obtain a target printed piece.
[0012] Optionally, the first basic information at least includes the front operation page number; the determining of the second basic information of the back operation corresponding to the front operation according to the first basic information and the mapping relationship includes:
[0013] Substitute the front operation page number into:
[0014] b = a + n
[0015] Calculate to obtain the back operation page number;
[0016] Determine the back operation path and the back operation name according to the back operation page number;
[0017] Wherein, b is the back operation page number, a is the front operation page number, n is the number of front operations, and n is a positive integer greater than 0.
[0018] Optionally, the performing back printing based on the two-dimensional code image to obtain a target printed piece includes:
[0019] Scan the two-dimensional code image to obtain target second basic information;
[0020] Search for a target back operation that matches the target second basic information, and perform printing on the target back operation to obtain a printed piece;
[0021] Cut off the bleed area of the printed piece to obtain a target printed piece.
[0022] Optionally, after converting the second basic information into a two-dimensional code, it further includes:
[0023] Generate a to-be-printed image based on the two-dimensional code and the front operation;
[0024] Add color bar information to the to-be-printed image to obtain a target to-be-printed image; the first distance between the color bar and the front operation is equal to the second distance between the color bar and the target back operation;
[0025] Perform printing on the target to-be-printed image to obtain a target printed image.
[0026] Optionally, the converting the second basic information into a two-dimensional code includes:
[0027] Convert the second basic information into binary code;
[0028] Encode the binary code to obtain encoded data;
[0029] Generate a matrix composed of black and white squares according to the encoded data and a preset error-correcting word;
[0030] Add a locator and a correction mark to the matrix and perform masking processing on the matrix after addition to obtain a two-dimensional code.
[0031] Optionally, the printing the two-dimensional code and the front operation to obtain a target printed image includes:
[0032] Print the front operation and the two-dimensional code corresponding to each front operation in page number order to obtain a target printed image.
[0033] Optionally, the back printing based on the two-dimensional code image includes:
[0034] Scan the color mark image through a color mark sensor to obtain an electric eye signal; the color mark image is printed from the color mark information;
[0035] Determine the printing position of the target back operation according to the electric eye signal;
[0036] Perform printing of the target back operation according to the printing position.
[0037] Compared with the prior art, a double-sided printing method provided by the present invention determines second basic information of a back operation corresponding to a front operation according to first basic information and a mapping relationship; converts the second basic information into a two-dimensional code, and prints the two-dimensional code and the front operation to obtain a target printed image; performs back printing based on the two-dimensional code image to obtain a target printed copy. This solution matches the back operation and the front operation by identifying the two-dimensional code, which can not only control the equipment cost and perform double-sided printing with a single print head, but also reduce manual operations and the losses caused by misoperations. Since the two-dimensional code contains information such as the name of the back operation, the path of the back operation, and the page number of the back operation, the image to be printed on the back can be determined during back printing, ensuring that the printed image matches the front image, thereby further ensuring the accuracy of the matching between the front operation and the back operation; and the two-dimensional code image is set at the bleeding edge, and the bleeding edge is cut off after printing, without the need to additionally increase the paper cost.
[0038] In a second aspect, the present invention provides a double-sided printing device, including:
[0039] A first basic information and mapping relationship acquisition module, configured to acquire first basic information of a front operation and a mapping relationship between the front operation and a back operation;
[0040] A second basic information determination module, configured to determine second basic information of a back operation corresponding to a front operation according to the first basic information and the mapping relationship; the second basic information includes a back operation name, a back operation path, and a back operation page number;
[0041] A front printing module, configured to convert the second basic information into a two-dimensional code, and print the two-dimensional code and the front operation to obtain a target printed image; the target printed image includes a two-dimensional code image located at the bleed area and a front image;
[0042] A back printing module, configured to perform back printing based on the two-dimensional code image to obtain a target printed copy.
[0043] In a third aspect, the present invention provides a duplex printing device, including:
[0044] A communication unit / communication interface, configured to obtain first basic information of a front operation and a mapping relationship between the front operation and a back operation;
[0045] A processing unit / processor, configured to determine second basic information of a back operation corresponding to the front operation according to the first basic information and the mapping relationship; the second basic information includes a back operation name, a back operation path, and a back operation page number;
[0046] Convert the second basic information into a two-dimensional code, and print the two-dimensional code and the front operation to obtain a target printed image; the target printed image includes a two-dimensional code image located at the bleed area and a front image;
[0047] Perform back printing based on the two-dimensional code image to obtain a target printed copy.
[0048] In a fourth aspect, the present invention provides a computer storage medium, in which instructions are stored, and when the instructions are run, the duplex printing method is implemented.
[0049] Compared with the prior art, the beneficial effects of the device-related solution in the second aspect, the device-related solution in the third aspect, and the computer-readable storage medium-related solution in the fourth aspect provided by the present invention are the same as the beneficial effects of the duplex printing method in the above technical solution, and will not be elaborated here. Description of the Drawings
[0050] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute an improper limitation to the present invention. In the drawings:
[0051] Figure 1 Is a flowchart of a duplex printing method provided by the present invention;
[0052] Figure 2 Schematic diagram of the target printed image provided by the present invention;
[0053] Figure 3 Schematic diagram of the duplex printing process provided by the present invention;
[0054] Figure 4 Schematic structural diagram of a duplex printing device provided by the present invention;
[0055] Figure 5 Schematic structural diagram of a duplex printing device provided by the present invention.
[0056] Reference numerals:
[0057] 1 - Target printed image, 11 - Front image, 12 - Bleed area, 13 - QR code image. Detailed implementation manners
[0058] For the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, terms such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and do not limit their sequence. Those skilled in the art can understand that the terms such as "first" and "second" do not limit the quantity and execution order, and the terms such as "first" and "second" do not necessarily mean different.
[0059] It should be noted that in the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present invention should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" aims to present relevant concepts in a specific manner.
[0060] In the present invention, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item)" or its similar expression means any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b or c can represent: a, b, c, the combination of a and b, the combination of a and c, the combination of b and c, or the combination of a, b and c, where a, b and c can be single or multiple.
[0061] Due to the high cost of duplex printers, to reduce costs, printing on the front and back is usually done separately, which requires additional labor to identify the front image and then match the corresponding back image for printing. Although this method reduces the cost of the machine, it incurs additional labor costs and losses caused by human operation errors. Additionally, in the case of missing pages, it is easy to make mistakes when manually matching the front and back.
[0062] To solve the above problems, the present invention provides a duplex printing method, device, equipment, and medium. By identifying two-dimensional codes for matching the back image with the front image, and then cutting off the two-dimensional codes in the bleed area, it can not only control the equipment cost but also reduce labor costs and losses caused by human misoperation. Since the two-dimensional code on the front contains information such as the name, operation path, and page number of the back operation diagram, the image to be printed on the back can be determined during back printing to ensure that the printed image matches the front image. Next, it will be described in conjunction with the accompanying drawings.
[0063] Figure 1 The following is a flowchart of a duplex printing method provided by the present invention. The method includes the following steps:
[0064] Step 101: Obtain the first basic information of the front operation and the mapping relationship between the front operation and the back operation;
[0065] Specifically, select the front operation from the operation folder of the printer according to a preset rule, and then obtain the first basic information of the front operation; the first basic information includes the front operation page number and the front operation name. The front operation name can be the operation number or AB side converted according to the page number, or named by a label or letter. The front operation can be selected according to the page number. For example, for a test paper, the operation with an odd page number is the front operation. Optionally, the page number can refer to the page number on the diagram, and can be converted into information such as the operation number / AB side of the operation according to the page number, and then the corresponding file can be indexed according to the file name for printing. For example, if file A1 is on the front, then the back is A4; if file A2 is on the front, then the back is A3. In fact, even for operations without page numbers, a label or letter mark can be added by naming the operation file, and then the corresponding back file can be matched through the label and letter mark.
[0066] Step 102: Determine the second basic information of the back operation corresponding to the front operation according to the first basic information and the mapping relationship; the second basic information includes the back operation name, the back operation path, and the back operation page number;
[0067] As an optional way: the first basic information includes at least the front operation page number; determining the second basic information of the back operation corresponding to the front operation according to the first basic information and the mapping relationship includes:
[0068] Substitute the front operation page number into formula (1):
[0069] b = a + n (1)
[0070] Calculate the back operation page number;
[0071] Determine the back operation path and the back operation name according to the back operation page number;
[0072] Where b is the back operation page number, a is the front operation page number, n is the number of front operations, and n is a positive integer greater than 0.
[0073] It can be understood that formula (1) is the mapping relationship between the front operation and the back operation. The mapping relationship between the front operation and the back operation refers to the corresponding relationship between the front operation and the back operation. Exemplarily: For an 8-page test paper, at this time n is equal to 4, pages 1-4 are front operations, pages 5-8 are back operations, the front operation on page 1 corresponds to the back operation on page 5, the front operation on page 2 corresponds to the back operation on page 6, the front operation on page 3 corresponds to the back operation on page 7, and the front operation on page 4 corresponds to the back operation on page 8. For a book with a total of 8 pages, since each piece of paper only includes two sides, the front and the back, so n = 1, b = a + 1, pages 1, 3, 5, 7 are front operations, and pages 2, 4, 6, 8 are back operations. The front operation on page 1 corresponds to the back operation on page 2, the front operation on page 3 corresponds to the back operation on page 4, the front operation on page 5 corresponds to the back operation on page 6, and the front operation on page 7 corresponds to the back operation on page 8.
[0074] As another alternative: It is also possible to determine the second basic information of the back operation through the front operation name. Exemplarily: When the front operation name is A1 - A4 and the back operation name is B1 - B4, and the mapping relationship between the front operation and the back operation is: A1 corresponds to B1, A2 corresponds to B2, A3 corresponds to B3, and A4 corresponds to B4, the back operation name can be determined according to the front operation name and the mapping relationship, and then information such as the back operation page number and the back operation path can be determined according to the back operation name.
[0075] As another alternative, the determining of the second basic information of the back operation corresponding to the front operation according to the first basic information and the mapping relationship includes:
[0076] Substitute the front operation page number into formula (2):
[0077] b = h + 1 - a (2)
[0078] Calculate the back operation page number;
[0079] Determine the back operation path and the back operation name according to the back operation page number;
[0080] Where b is the back operation page number, a is the front operation page number, h is the sum of the number of front operations and the number of back operations, and h is a positive integer greater than 0.
[0081] It can be understood that formula (2) is the mapping relationship between the front operation and the back operation. The mapping relationship between the front operation and the back operation refers to the corresponding relationship between the front operation and the back operation. Exemplarily: for an 8-page test paper, at this time h is 8, pages 1-4 are front operations, pages 5-8 are back operations, the front operation on page 1 corresponds to the back operation on page 8, the front operation on page 2 corresponds to the back operation on page 7, the front operation on page 3 corresponds to the back operation on page 6, and the front operation on page 4 corresponds to the back operation on page 5.
[0082] As another alternative, the determining the second basic information of the back operation corresponding to the front operation according to the first basic information and the mapping relationship includes:
[0083] Substitute the front operation page number into formula (3):
[0084] b = d × h × 2 + h + 1 - a (3)
[0085] Calculate to obtain the back operation page number;
[0086] Where b is the back operation page number, a is the front operation page number, h is the sum of the number of front operations and the number of back operations, and d is the integer quotient of (a - 1) / h, and d is a positive integer greater than 0.
[0087] Determine the back operation path and the back operation name according to the back operation page number;
[0088] It can be understood that formula (3) is the mapping relationship between the front operation and the back operation. The mapping relationship between the front operation and the back operation refers to the corresponding relationship between the front operation and the back operation.
[0089] It should be noted that in this optional method, the front operation is the page operation printed first, and the back operation is the page operation printed later. The names of the front operation and the back operation do not limit the front and back sides of the operation. Exemplarily, for a 4-page test paper with pages 9 and 10 on the front and pages 11 and 12 on the back, if pages 9 and 10 are printed first, the front operation is the operation corresponding to pages 9 and 10, and the back operation is the operation corresponding to pages 11 and 12. If pages 11 and 12 are printed first, the front operation is the operation corresponding to pages 11 and 12, and the back operation is the operation corresponding to pages 9 and 10; in this example, page 9 of the test paper corresponds to page 12, and page 10 corresponds to page 11.
[0090] When the front operation is the operation corresponding to pages 9 and 10, the page number of the back operation corresponding to page 9 is determined as follows: substituting h = 4 and a = 9 into formula (3), we get b = 2×4×2 + 4 + 1 - 9 = 12; the page number of the back operation corresponding to page 10 is determined as follows: substituting h = 4 and a = 10 into formula (3), we get b = 2×4×2 + 4 + 1 - 10 = 11.
[0091] When the front operation is the operation corresponding to pages 11 and 12, the page number of the back operation corresponding to page 11 is determined as follows: substituting h = 4 and a = 11 into formula (3), we get b = 2×4×2 + 4 + 1 - 11 = 10; the page number of the back operation corresponding to page 12 is determined as follows: substituting h = 4 and a = 12 into formula (3), we get b = 2×4×2 + 4 + 1 - 12 = 9.
[0092] Optionally, if there are page numbers, file names containing page number information are usually used for matching. If there are no page numbers, the files can also be named using the generation order, etc. when generating the files. Corresponding numbers and letters are used for naming, and matching is performed according to the text and letters of the print job files. In the embodiments of the present invention, the corresponding relationship between the front operation and the back operation is determined by page numbers or letters. Only the mapping relationship between the page numbers or letters of the front operation and the back operation needs to be stored in the storage space, without specifically referring to the print data of the front operation and the back operation, saving storage space and improving the printing efficiency.
[0093] Step 103: Convert the second basic information into a two-dimensional code, and print the two-dimensional code and the front operation to obtain a target print image;
[0094] As an optional method, the printing the two-dimensional code and the front operation to obtain a target print image includes:
[0095] Print the front operation and the two-dimensional code corresponding to each front operation in ascending order of page numbers to obtain a target print image.
[0096] Among them, the target printed image is the image after the front operation is printed. The target printed image includes a two-dimensional code image located at the bleed area and a front image; the bleed area refers to the part reserved for convenient trimming when printing to retain the effective content of the picture. For printing applications such as books and test papers that need to be trimmed anyway, printing the two-dimensional code at the bleed area incurs no additional cost and will not affect the original printed content.
[0097] Exemplarily, as Figure 2 shown, the number of front operations is 4. The target printed image 1 includes four two-dimensional code images 13 located at the bleed area 12 and four front images 11; each front image 11 corresponds to a two-dimensional code image 13, and the two-dimensional code image and the front image are within the same width range. Since in many printing processes, the length or width of the paper is slightly larger than the actual required operation, after printing, the operation is trimmed to the required size through trimming. The two-dimensional code is usually placed at the position that needs to be trimmed, that is, the bleed area, and is printed simultaneously with the front operation. After printing, it is trimmed off. When changing the printed operation, the two-dimensional code does not need to be placed at a fixed position, as long as it is at the trimmed position and within the width range of the front image. When printing on the back, only the position of the code scanning device needs to be adjusted to adapt to different bleed area positions.
[0098] As an optional method, the two-dimensional code is a two-dimensional code in qr code format, which is generated through a standard two-dimensional code generation algorithm. After parsing the name and path of the reverse image from the two-dimensional code, the corresponding file of the reverse image can be found from the PC according to the path and name, so as to perform printing. The conversion of the second basic information into a two-dimensional code includes:
[0099] Converting the second basic information into binary code;
[0100] Performing encoding processing on the binary code to obtain encoded data;
[0101] Generating a matrix composed of black and white squares according to the encoded data and a preset error correction word;
[0102] Adding a positioning mark and a correction mark to the matrix and performing masking processing on the added matrix to obtain a two-dimensional code. Format information and version information also need to be added to the two-dimensional code. Among them, the format information represents parameters such as the error correction level of the two-dimensional code to ensure that the code scanning device can correctly decode the two-dimensional code, and the version information represents the specification size of the two-dimensional code. These information are usually redundantly stored in specific positions of the two-dimensional code to ensure correct reading even when the two-dimensional code is partially damaged.
[0103] As an optional method, in order to calibrate the position of the back operation, an additional color mark needs to be printed. Specifically, after converting the second basic information into a two-dimensional code, the following steps are further included:
[0104] Generate a to-be-printed image based on the two-dimensional code and the front operation;
[0105] Add color bar information to the to-be-printed image to obtain a target to-be-printed image; the first distance between the color bar and the front operation is equal to the second distance between the color bar and the target back operation;
[0106] Print the target to-be-printed image to obtain a target printed image.
[0107] After obtaining the target printed image, unload the paper and switch to the back side for printing.
[0108] The printing scenario in the embodiment of the present invention is roll-to-roll printing in a one-pass printing system, that is, the object to be printed passes through the printing platform, and both ends are detachably fixed on two reels respectively. After printing the front operation, the paper can be unloaded, and relevant personnel can manually switch to the back side for printing, or the mechanical structure of the printer reel can be used to control the front and back flipping of the object to be printed. Only single-sided printing is required. Compared with the existing devices that print on the front and back simultaneously, only one one-pass printhead group is required for printing, saving half of the number of printheads used and greatly reducing the equipment cost. The mechanical structure for controlling the front and back flipping of the object to be printed in this embodiment is not limited.
[0109] In an optional embodiment, the applicant has given a solution of obtaining the front printed image through a vision camera, obtaining the position of the front in the front printing sequence in the storage space according to the printed image, and then obtaining the back printed image in the back printing sequence according to the front and back printing data mapping relationship. On the one hand, after testing, it is found that this solution will continuously occupy a large storage space and cause low printing efficiency because it needs to repeatedly call the front and back printing data mapping relationship in real time. On the other hand, installing a vision camera will increase the cost of the printer and it is difficult to ensure the correct printing of the same or similar printed images. On this basis, the applicant further optimizes the printing process. By pre-obtaining the name, page number or path of the back printing data according to the page number or letter of the front, and then generating a two-dimensional code according to the name, page number or path of the back printing data. In this embodiment, the corresponding relationship between the front and back printing data can be deleted after the front printing is completed, saving storage space. There is no need to repeatedly call the mapping relationship between the front printing data and the back printing data when printing the back. The back printing data can be directly read by reading the two-dimensional code information to achieve real-time printing, with high printing efficiency, no need for a vision camera, and low printing cost. It realizes the accurate alignment of the front and back printing data when printing the same or different printing data on multiple objects to be printed.
[0110] It can be known from step 103 and step 104 that the second basic information is obtained based on the first basic information of the front operation, each front operation corresponds to a second basic information, and the QR code is converted from the second basic information, so each front operation corresponds to a QR code. In the prior art, a specific double-sided printer is used to print the front and back sides at the same time in the same printing, which requires the layout of the paper path, and the layout of the print nozzle is also subject to the restriction of the paper path, while the scheme does not require these additional paper paths and equipment, and is also convenient for reducing costs. When printing the back side by this method, it is not necessary to limit the paper feed direction, and it is not necessary to keep the same paper feed direction as the front side. For example, if the front side is printed in the order of page numbers from small to large, it is not necessary to change the paper feed direction when printing the back side. Whether it is from small to large, from large to small, or even printing any page number, it can ensure that the printed back side operation matches the front side operation. It can be seen that in the embodiment of the present invention, by printing the alignment QR code when printing the front side, the scheme of aligning the front and back printing data is realized, and the degree of freedom of setting the paper path is higher.
[0111] It should be noted that the solution of printing a QR code along with the front-side operation in the embodiment of the present invention is only applicable to the printer and printing scenario in which the back-side image is printed after printing the front sides of all objects to be printed at one time. If a specific double-sided printer is used to perform double-sided printing at the same time, there is no need to generate a QR code, and the corresponding front and back printing data can be directly called at the same time.
[0112] Step 104: Perform back-side printing based on the two-dimensional code image to obtain a target printout.
[0113] As an optional manner, the back printing is performed based on the two-dimensional code image to obtain a target printout, including:
[0114] Use a barcode scanner to scan the two-dimensional code image to obtain the second basic information of the target;
[0115] The software on the computer searches for the target back side job that matches the target second basic information, converts it into printing data, and then prints the target back side job to obtain a printout;
[0116] In the cutting stage, the bleed area of the print including the two-dimensional code image is cut off to obtain the target print.
[0117] By scanning the two-dimensional code image, the corresponding second basic information is obtained. The back pattern is matched through the second basic information, and then printing is performed, which can ensure that the back operation of printing matches the front operation. Compared with the solution of manually matching the front and back printing patterns, it reduces both labor costs and losses caused by manual identification errors. In some scenarios where it is necessary to ensure that the front and back images correspond one by one when there is a missing page, the problem of misalignment of the front side caused by the missing page can be avoided. It can be understood that in some large-scale printing scenarios, there may be a situation where the printing data of the front sides of some pages to be printed are the same. If the front printing data is obtained visually, the wrong back printing data may be obtained and printed. If some pages on the back need to be left blank, that is, not printed due to missing pages, it is more likely to obtain and print the wrong back printing data. This embodiment can adapt to various large-scale printing operation scenarios and ensure the accuracy of the alignment of the front and back printing data even when the printing volume is very large.
[0118] As an optional method, after adding the color mark, the step of performing back printing based on the two-dimensional code image is as follows:
[0119] The color mark sensor scans the color mark image to obtain an electro-optical signal; the color mark image is obtained after printing the color mark information;
[0120] According to the electro-optical signal, the actual printing position of the target back operation is determined by the paper feeding distance;
[0121] Print the target back operation according to the printing position.
[0122] As Figure 3 shown, in specific implementation, after determining the two-dimensional code corresponding to the front image, the front image and the two-dimensional code are printed. The two-dimensional code is printed at the bleeding edge. The paper is unloaded and switched to the back. The barcode scanner reads the two-dimensional code, matches the back image according to the read information, prints the back image, and finally cuts off the bleeding edge containing the two-dimensional code to complete the printing. Optionally, the barcode scanner can be installed at the position before the object to be printed enters the printing platform, and the two-dimensional code information on the front is read from below, so as to obtain the back printing data and perform back printing on the printing platform.
[0123] The present invention can achieve the following technical effects:
[0124] 1. Compared with the device that performs front and back printing simultaneously, the present invention only needs to perform front printing, saving half of the number of nozzles used and greatly reducing the equipment cost.
[0125] 2. Compared with the solution of manually matching the front and back printing patterns, the present invention reduces both labor costs and losses caused by manual identification errors.
[0126] 3. In printing applications such as books and test papers that originally require trimming, printing a QR code at the bleed area incurs no additional cost and does not affect the original printed content.
[0127] 4. In some scenarios where it is necessary to ensure that the front and back images correspond one by one when there is a missing page, the problem of misalignment between the front and back sides caused by a missing page can be avoided.
[0128] 5. When printing on the back side, there is no need to limit the paper feeding direction and it is not necessary to maintain the same paper feeding direction as the front side. That is, if the front side is printed in ascending order of page numbers, when printing on the back side, there is no need to deliberately change the paper direction, whether the page numbers are in ascending or descending order. The degree of freedom in setting the paper path is higher.
[0129] Embodiments of the present invention can perform functional module division according to the above method examples. For example, each functional module can be corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present invention is illustrative, only a logical function division, and there can be other division methods in actual implementation.
[0130] In the case of dividing each functional module corresponding to each function, Figure 4 The structure diagram of a double-sided printing device provided by the present invention is shown. As Figure 4 shown, the device includes:
[0131] A first basic information and mapping relationship acquisition module 401, configured to acquire the first basic information of the front-side job and the mapping relationship between the front-side job and the back-side job;
[0132] A second basic information determination module 402, configured to determine the second basic information of the back-side job corresponding to the front-side job according to the first basic information and the mapping relationship; the second basic information includes the back-side job name, the back-side job path, and the back-side job page number;
[0133] A front-side printing module 403, configured to convert the second basic information into a QR code, and print the QR code and the front-side job to obtain a target printed image; the target printed image includes a QR code image located at the bleed area and a front-side image;
[0134] A back-side printing module 404, configured to perform back-side printing based on the QR code image to obtain a target printed copy.
[0135] Optionally, the first basic information includes at least the front-side job page number; the second basic information determination module 402 can specifically be used for:
[0136] Substitute the positive operation page number into:
[0137] b = a + n
[0138] Calculate the negative operation page number;
[0139] Determine the negative operation path and negative operation name according to the negative operation page number;
[0140] Wherein, b is the negative operation page number, a is the positive operation page number, n is the number of positive operations, and n is a positive integer greater than 0.
[0141] Optionally, the negative printing module 404 may specifically include:
[0142] A scanning unit for scanning the two-dimensional code image to obtain target second basic information;
[0143] A searching unit for searching for a target negative operation that matches the target second basic information, and printing the target negative operation to obtain a printed copy;
[0144] A cutting unit for cutting off the bleeding area of the printed copy to obtain a target printed copy.
[0145] Optionally, the device further includes a color mark adding module for generating a to-be-printed image based on the two-dimensional code and the positive operation;
[0146] Add color mark information to the to-be-printed image to obtain a target to-be-printed image; the first distance between the color mark and the positive operation is equal to the second distance between the color mark and the target negative operation;
[0147] Print the target to-be-printed image to obtain a target printed image.
[0148] Optionally, the positive printing module 403 may include:
[0149] A binary code conversion unit for converting the second basic information into a binary code;
[0150] An encoding unit for performing encoding processing on the binary code to obtain encoded data;
[0151] A matrix generation unit for generating a matrix composed of black and white squares according to the encoded data and a preset error correction word;
[0152] A locator and correction symbol adding unit for adding locators and correction symbols to the matrix and performing masking processing on the added matrix to obtain a two-dimensional code.
[0153] Optionally, the front printing module 403 may be configured to print the front jobs and the two-dimensional codes corresponding to each of the front jobs in sequence according to the page numbers, to obtain a target printed image.
[0154] Optionally, the back printing module 404 may further include:
[0155] A color mark scanning unit, configured to scan a color mark image through a color mark sensor to obtain an electric eye signal; the color mark image is printed from the color mark information;
[0156] A printing position determining unit, configured to determine the printing position of a target back job according to the electric eye signal;
[0157] A back printing unit, configured to print the target back job according to the printing position.
[0158] The above double-sided printing device is a virtual device, including virtual units and virtual function modules. This device is used by building on a printer device. At the same time, a double-sided printing device provided by the present invention corresponds to a double-sided printing method and acts on the printer device.
[0159] The above mainly introduces the solution provided by the embodiments of the present invention from the perspective of the interaction between each module. It can be understood that, in order to implement the above functions, it includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments disclosed in this article, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0160] In the case of adopting corresponding integrated units, Figure 5 The structural schematic diagram of a double-sided printing device provided by the present invention is shown. As Figure 5 shown, the device includes:
[0161] A communication unit / communication interface, configured to obtain the first basic information of a front job and the mapping relationship between the front job and the back job;
[0162] A processing unit / processor, configured to determine the second basic information of the back job corresponding to the front job according to the first basic information and the mapping relationship; the second basic information includes the back job name, the back job path, and the back job page number;
[0163] Convert the second basic information into a QR code, and print the QR code and the front operation to obtain a target printed image; the target printed image includes a QR code image located at the bleed area and a front image;
[0164] Perform back printing based on the QR code image to obtain a target printed copy.
[0165] The above double-sided printing device is a virtual device, which is built on a printer device and used. At the same time, a double-sided printing device provided by the present invention corresponds to a double-sided printing method and acts on the printer device.
[0166] In some possible implementation manners, the above device may further include a storage module for storing program codes and data of the base station.
[0167] Among them, the processing module may be a processor or a controller. For example, it may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present invention. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on. The communication module may be a transceiver, a transceiver circuit, or a communication interface, etc. The storage module may be a memory.
[0168] As Figure 5 shown, the above processor may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the solution of the present invention. The above communication interface may be one or more. The communication interface may use any device such as a transceiver for communicating with other devices or communication networks.
[0169] As Figure 5 shown, the above terminal device may further include a communication line. The communication line may include a path for transmitting information between the above components.
[0170] Optionally, asFigure 5 As shown, the terminal device may further include a memory. The memory is used to store computer-executable instructions for implementing the solution of the present invention, and is controlled by the processor for execution. The processor is used to execute the computer-executable instructions stored in the memory, thereby implementing the method provided by the embodiments of the present invention.
[0171] As Figure 5 shown, the memory may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor through a communication line. The memory may also be integrated with the processor.
[0172] Optionally, the computer-executable instructions in the embodiments of the present invention may also be referred to as application code, and the embodiments of the present invention do not make specific limitations thereto.
[0173] In a specific implementation, as an embodiment, as Figure 5 shown, the processor may include one or more CPUs, such as Figure 5 CPU0 and CPU1 in
[0174] In a specific implementation, as an embodiment, as Figure 5 shown, the terminal device may include multiple processors, such as Figure 5 the processors in
[0175] On the one hand, a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium, and when the instructions are run, a duplex printing method is implemented.
[0176] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device, or other programmable devices. The computer program or instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired or wireless manner. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); or it can be a semiconductor medium, such as a solid state drive (SSD).
[0177] Although the present invention has been described in conjunction with various embodiments, however, in the process of implementing the claimed invention, those skilled in the art can understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "one" does not exclude a plurality. A single processor or other unit can implement several functions recited in the claims. Certain measures are recited in mutually different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0178] Although the present invention has been described in conjunction with specific features and their embodiments, it is obvious that various modifications and combinations can be made without departing from the spirit and scope of the present invention. Accordingly, the present specification and the drawings are merely exemplary descriptions of the present invention defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of the present invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these changes and modifications.
Claims
1. A double-sided printing method, characterized in that: include: Acquire the first basic information of the front operation and the mapping relationship between the front operation and the back operation; Determine, according to the first basic information and the mapping relationship, the second basic information of the back job corresponding to the front job; the second basic information includes the back job name, the back job path and the back job page number; Converting the second basic information into a two-dimensional code, and printing the two-dimensional code and the front side job to obtain a target printed image; the target printed image includes the two-dimensional code image located at the bleeding position and the front side image; The back side is printed based on the two-dimensional code image to obtain a target printout.
2. The double-sided printing method according to claim 1, characterized in that: The first basic information at least includes a front-side job page number; the second basic information of the back-side job corresponding to the front-side job is determined according to the first basic information and the mapping relationship, including: Substitute the front job page number into: b=a+n Calculate the back page number; Determine the back side operation path and the back side operation name according to the back side operation page number; Wherein, b is the page number of the back job, a is the page number of the front job, n is the number of the front jobs, and n is a positive integer greater than 0.
3. The double-sided printing method according to claim 1, characterized in that: The back printing is performed based on the two-dimensional code image to obtain a target printout, comprising: Scanning the two-dimensional code image to obtain the second basic information of the target; Searching for a target back side job matching the target second basic information, and printing the target back side job to obtain a printout; The bleeding area of the print is cut off to obtain a target print.
4. The double-sided printing method according to claim 3, characterized in that: After converting the second basic information into a QR code, the method further includes: Generate an image to be printed based on the two-dimensional code and the front job; Adding color mark information to the image to be printed to obtain a target image to be printed; a first distance between the color mark and the front job is equal to a second distance between the color mark and the target back job; The target image to be printed is printed to obtain a target printed image.
5. The double-sided printing method according to claim 1, characterized in that: The converting the second basic information into a QR code comprises: converting the second basic information into binary code; Encoding the binary code to obtain encoded data; Generating a matrix consisting of black and white squares according to the coded data and the preset error correction word; A locator and a corrector are added to the matrix and a mask process is performed on the added matrix to obtain a two-dimensional code.
6. The double-sided printing method according to claim 4, characterized in that: Printing the two-dimensional code and the front side job to obtain a target printed image includes: The front-side jobs and the two-dimensional code corresponding to each front-side job are printed in sequence according to the page numbers to obtain a target printed image.
7. The double-sided printing method according to claim 4, characterized in that: The back printing based on the two-dimensional code image includes: Scanning the color mark image by the color mark sensor to obtain an electric eye signal; the color mark image is obtained by printing the color mark information; Determine the printing position of the target back side job according to the electric eye signal; The target back side job is printed according to the printing position.
8. A double-sided printing device, characterized in that: include: A first basic information and mapping relationship acquisition module, used to acquire the first basic information of the front operation and the mapping relationship between the front operation and the back operation; A second basic information determination module, configured to determine second basic information of a back job corresponding to the front job according to the first basic information and the mapping relationship; the second basic information includes a back job name, a back job path, and a back job page number; A front printing module, used for converting the second basic information into a two-dimensional code, and printing the two-dimensional code and the front operation to obtain a target printed image; the target printed image includes a two-dimensional code image located at the bleeding position and a front image; The back printing module is used to perform back printing based on the two-dimensional code image to obtain a target printout.
9. A double-sided printing device, characterized in that: include: A communication unit / communication interface, used to obtain first basic information of the front operation and a mapping relationship between the front operation and the back operation; A processing unit / processor, configured to determine second basic information of a back job corresponding to the front job according to the first basic information and the mapping relationship; the second basic information includes a back job name, a back job path, and a back job page number; Converting the second basic information into a two-dimensional code, and printing the two-dimensional code and the front side job to obtain a target printed image; the target printed image includes the two-dimensional code image located at the bleeding position and the front side image; The back side is printed based on the two-dimensional code image to obtain a target printout.
10. A computer storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the double-sided printing method according to any one of claims 1 to 7 is implemented.