Printing method and system, electronic equipment and storage medium
By extracting the key features of the page to be printed and matching, the problem of inconsistent printing order is solved, the accurate correspondence between the page and the document is achieved, and printing efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202510124476.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-06-20
AI Technical Summary
In the prior art, the order of the jobs at the paper inlet is inconsistent with the order of the jobs to be printed in the printer queue, resulting in a disordered printing order, resulting in an incorrect matching between the correction opinions and the corresponding job page, which reduces the accuracy and efficiency of the review.
By extracting key features of the page image of the page to be printed and matching it with the document to be printed, we obtain the matching document, ensuring that the printer performs printing operations based on accurate page and document information.
The accurate correspondence between the page to be printed and the document to be printed is achieved, printing errors are avoided, the efficiency and accuracy of the correction process is improved, and the possibility of human error is reduced.
Smart Images

Figure CN120179190A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a printing method, system, electronic equipment and storage medium. Background Art
[0002] With the rapid development of information technology, especially breakthroughs in image processing, natural language processing, and big data analysis, automated marking technology has emerged, aiming to optimize or even replace some manual marking links through technical means, thereby improving marking efficiency and accuracy.
[0003] The homework grading process of the related technology is as follows: First, the entire homework consisting of multiple student assignments is scanned, entered and uploaded to the big model through a scanner. Then, the big model is used to grade the homework and a multi-page grading record is generated according to the order of scanning. This record is then sent to the printer for printing. In this process, it is necessary to ensure that the original homework is placed in the printer's paper feed in the correct order so that the document with annotation traces can be accurately printed.
[0004] However, if the position of the homework pages before printing deviates from the order when they were originally scanned due to manual adjustment of the homework order, operational errors or technical failures (such as unexpected situations such as printer jams), and the system still matches and arranges the correction results based on the original scan order, there will be a large number of mismatches between the correction comments and the corresponding homework pages. This mismatch will not only reduce the accuracy of homework grading and the overall efficiency of the grading process, but may also cause unnecessary confusion and misunderstanding to students, affecting their learning experience. Summary of the invention
[0005] The present invention provides a printing method, system, electronic device and storage medium, which are used to solve the defect in the prior art that the printing sequence is disordered due to the inconsistency between the operation sequence of a paper feed port and the sequence of jobs to be printed in a printer queue.
[0006] The present invention provides a printing method, comprising: Determine a page image of a page to be printed, and extract key features of the page image; Based on the key features, the page to be printed is matched with the document to be printed to obtain a matching document; The matching document is sent to a printer, so that the printer performs a printing operation based on the to-be-printed page and the matching document.
[0007] According to the printing method provided by the present invention, the to-be-printed page is matched with the to-be-printed document based on the key feature to obtain a matching document, including: Send the key features to a large language model so that the large language model performs text recognition on the key features to obtain the identification information of the page to be printed; The large language model determines a matching document that matches the identification information from the document to be printed; Receive the matching document returned by the large language model.
[0008] According to the printing method provided by the present invention, before determining the page image of the page to be printed, the method further includes: Obtain an integrated document composed of multiple pages to be printed; Send the integrated document to the large language model so that the large language model processes the integrated document to obtain the document to be printed.
[0009] According to the printing method provided by the present invention, the large language model processes the integrated document to obtain the document to be printed, including: The large language model corrects the integrated document to obtain the correction records of each page to be printed; Based on the correction records of each page to be printed, determine the document to be printed.
[0010] According to the printing method provided by the present invention, the determining the document to be printed based on the correction records of each page to be printed includes: Based on the correction records of each page to be printed, determine the correction marks and the positions of the correction marks on each page to be printed; Based on the correction marks and the positions, determine the document to be printed.
[0011] According to the printing method provided by the present invention, the sending the matching document to a printer so that the printer performs a printing operation based on the page to be printed and the matching document includes: Send the matching document to a printer so that the printer performs a printing operation based on the page to be printed and the matching document until all the pages to be printed are printed.
[0012] According to the printing method provided by the present invention, the method further includes: Based on the key features, match the page to be printed with the document to be printed. If no matching document is found, an alarm is issued; Receive user input; Based on the user input, determine the matching document from the document to be printed.
[0013] The present invention also provides a printing system, including: An image acquisition device, which is installed at the paper inlet of a printer and is used to acquire a page image of a page to be printed; An all-in-one machine, which is used to extract key features of the page image, match the page to be printed with a document to be printed based on the key features to obtain a matching document, and send the matching document to the printer; A printer, which is used to perform a printing operation based on the page to be printed and the matching document.
[0014] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the printing method described in any one of the above is implemented.
[0015] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the printing method described in any one of the above is implemented.
[0016] The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, the printing method described in any one of the above is implemented.
[0017] The printing method, system, electronic device, and storage medium provided by the present invention can ensure the accurate correspondence between the page to be printed and the document to be printed by extracting and matching the key features of the page image, avoiding printing errors caused by disordered page order or misoperation. The automated matching and printing process can quickly complete the processing and output of a large number of pages, significantly improving work efficiency. In addition, the automated matching process reduces the need for manual verification of page order and reduces the possibility of human errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0019] Figure 1 It is one of the flow diagrams of the printing method provided by the present invention.
[0020] Figure 2 It is the flow diagram of the implementation manner of step 120 in the printing method provided by the present invention.
[0021] Figure 3 It is the second flow diagram of the printing method provided by the present invention.
[0022] Figure 4 It is the third schematic flow chart of the printing method provided by the present invention.
[0023] Figure 5 It is the schematic structural diagram of the printing system provided by the present invention.
[0024] Figure 6 It is one of the schematic installation diagrams of the image acquisition device provided by the present invention.
[0025] Figure 7 It is the second schematic installation diagram of the image acquisition device provided by the present invention.
[0026] Figure 8 It is the schematic structural diagram of the electronic device provided by the present invention. Detailed implementation manners
[0027] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without creative efforts shall fall within the protection scope of the present invention.
[0028] In the description of the embodiments of the present invention, it should be understood that the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present invention, "a plurality of" means two or more unless otherwise specifically defined.
[0029] Aiming at the problem in the related art that the operation sequence of the paper inlet is inconsistent with the sequence of the print jobs in the printer queue, resulting in disordered printing sequence, the embodiments of the present invention provide a printing method. In this method, the page image of the page to be printed is determined, and the key features of the page image are extracted; based on the key features, the page to be printed is matched with the document to be printed to obtain a matching document; the matching document is sent to the printer so that the printer performs a printing operation based on the page to be printed and the matching document. This method can ensure the accurate correspondence between the page to be printed and the document to be printed by extracting the key features of the page image, avoiding printing errors caused by disordered page sequence or incorrect operations. The automated matching and printing process can quickly complete the processing and output of a large number of pages, significantly improving work efficiency. In addition, the automated matching process reduces the need for manual verification of the page sequence and reduces the possibility of human errors.
[0030] Embodiments of the present invention can be applied to scenarios where document printing is required, such as multiple fields including homework marking and printing, test paper marking, document management, book publishing, etc. The execution entity of this method can be an electronic device such as a terminal device, a computer, a server, a server cluster, or a specially designed printing device, or it can be a printing device set in the electronic device, and the printing device can be implemented through software, hardware, or a combination of both.
[0031] Figure 1 is one of the schematic flowcharts of the printing method provided by the present invention. As Figure 1 shown, the method includes the following steps: Step 110, determine the page image of the page to be printed, and extract the key features of the page image.
[0032] Specifically, the page to be printed refers to the page on which printing needs to be performed. The page to be printed can be the page formed by the paper to be printed. The present invention does not specifically limit the material of the paper to be printed. For example, it can be coated paper, photo paper, thermal paper, etc.
[0033] Here, the page to be printed is usually not blank, but contains various information, such as text, images, charts, tables, etc. The page image of the page to be printed can be obtained by an image acquisition device. In some embodiments, an image acquisition device can be installed at the paper inlet of the printer to collect the page image in real time.
[0034] After obtaining the page image, extract the key features of the page image. Key features refer to a set of attributes or information that can uniquely or approximately uniquely identify an image or an image area. Key features usually include content, color, texture, shape, edges, etc. Key features can be represented by a key feature image.
[0035] For key feature extraction, it can be implemented through an image processing algorithm or a trained feature extraction model. For example, by counting the number or proportion of pixels of various colors in the image to form a color histogram to extract color features; for another example, by using OCR (Optical Character Recognition) to automatically recognize the text in the page image.
[0036] Preferably, before extracting the key features of the page image, the page image can also be preprocessed to improve the accuracy and efficiency of key feature extraction. The preprocessing can specifically include grayscale processing, denoising processing, image enhancement, geometric transformation, and normalization processing, etc.
[0037] Step 120, based on the key features, match the page to be printed with the document to be printed to obtain a matching document.
[0038] Specifically, the document to be printed refers to the document that needs to be printed on the page to be printed. The document to be printed can be a document in any printable format such as word, PDF, etc. The document to be printed usually includes multiple pages, such as a 10-page or 20-page document. The document to be printed can be pre-sent to the printer queue.
[0039] Considering the problem in the related art that the page to be printed does not correspond to the document to be printed, resulting in disordered printing order. For example, the page to be printed currently is Zhang San's test paper, but the document to be printed in the current printing queue is Li Si's marking record. If printed directly, Li Si's marking record will be printed on Zhang San's test paper, resulting in incorrect marking of the test paper.
[0040] In this embodiment, after extracting the key features of the page image, the extracted key features can be compared with the document to be printed, and the feature matching algorithm is used to find the document corresponding to the printed page from the document to be printed, that is, the matching document. Here, the matching document corresponds one-to-one with the page to be printed. For example, the matching document is the marking record corresponding to the page to be printed, the page to be printed is Zhang San's homework page, and the matching document is the marking record of Zhang San's homework.
[0041] Step 130, send the matching document to the printer so that the printer performs a printing operation based on the page to be printed and the matching document.
[0042] Specifically, after obtaining the matching document, the one-to-one correspondence between the page to be printed and the document to be printed is realized. The matching document can be converted into a format recognizable by the printer (such as PDF, PostScript, etc.), and the matching document is sent to the printer using a print driver or an API (Application Programming Interface).
[0043] After the printer receives the matching document, the page to be printed is fed into the printing channel through the paper feed port, and then ink or toner is sprayed or coated at the corresponding position on the page according to the content and format of the matching document. Finally, the image or text is fixed on the page through a fixing device to complete the printing process.
[0044] The method provided by the embodiment of the present invention can ensure the accurate correspondence between the page to be printed and the document to be printed by extracting and matching the key features of the page image, avoiding printing errors caused by disordered page order or misoperation. The automated matching and printing process can quickly complete the processing and output of a large number of pages, significantly improving work efficiency. In addition, the automated matching process reduces the need for manual checking of page order and reduces the possibility of human errors.
[0045] Based on any of the above embodiments, Figure 2It is a schematic flowchart of the implementation manner of step 120 in the printing method provided by the present invention. As Figure 2 shown, based on the key features, the page to be printed is matched with the document to be printed to obtain a matching document. Specifically, step 120 includes: Step 121: Send the key features to a large language model so that the large language model performs text recognition on the key features to obtain the identification information of the page to be printed; Step 122: The large language model determines a matching document that matches the identification information from the document to be printed; Step 123: Receive the matching document returned by the large language model.
[0046] Specifically, for the matching between the page to be printed and the document to be printed, it can be achieved through a large language model. The large language model (Large Language Model, LLM) is abbreviated as the large model, which refers to a natural language processing (Natural Language Processing, NLP) model with a huge parameter scale. The number of model parameters and / or the complexity of the model structure exceed a preset threshold. The model processes a large amount of text data during training and has the ability to understand and generate natural language. For example, the large language model can include the Spark large model, etc.
[0047] Taking the example that this printing method is configured in a client that controls a printer, the client sends the extracted key features to the large language model. After receiving these features, the large language model uses its built-in text recognition ability or combines deep learning technology to analyze and recognize the key features. After the large language model performs text recognition on the key features, it outputs the identification information of the page to be printed. Here, the identification information may be the text content in the page, barcode encoding, QR code information, etc. For example, the identification information can be the name of a student, or a serial number, etc., used to uniquely identify the page to be printed. The identification information is used to match the content in the document to be printed.
[0048] After the large language model recognizes the identification information, it starts to search for the content that matches it in the document to be printed. The document to be printed can be a large document containing multiple pages. The large language model finds the matching document part by comparing the identification information in the document to be printed. Once the matching document part is found, the large language model marks it as the matching document.
[0049] After determining the matching document, the large language model returns the matching document to the client. After receiving the matching document, the client can further process it or display it to the user. For example, the client processes the matching document as the content to be printed, or can display the content of the matching document for the user to view or edit.
[0050] The method provided by the embodiments of the present invention uses the natural language processing ability of a large language model to perform text recognition and match the document to be printed, and can accurately correspond the page to be printed with the document to be printed one by one, thereby improving the printing reliability and efficiency.
[0051] Based on any of the above embodiments, Figure 3 is the second schematic flow chart of the printing method provided by the present invention. As Figure 3 shown, before determining the page image of the page to be printed, the method further includes: Step 310, obtaining an integrated document composed of multiple pages to be printed; Step 320, sending the integrated document to a large language model so that the large language model processes the integrated document to obtain the document to be printed.
[0052] Specifically, there may be multiple pages to be printed. For example, the pages to be printed may be the homework of 30 students in a class, that is, it includes 30 pages to be printed. The integrated document is a single document composed of multiple pages to be printed. The integrated document may be a PDF, Word document or other format document, which contains the content of all the pages that the user wants to print. The page content of multiple pages to be printed can be integrated into a single document through a document editing tool, and the integration process may include adjusting the page order, unifying the page size and orientation, etc.
[0053] In some embodiments, such as in the scenario of automatic homework grading, the entire homework composed of multiple student homeworks can be scanned by a scanner in a scanning and printing all-in-one machine to obtain an integrated document composed of multiple pages to be printed.
[0054] After the client obtains the integrated document, it uploads the integrated document to the server or platform where the large language model is located. After receiving the integrated document, the large language model starts to process the integrated document.
[0055] The processing of the integrated document here can be adjusted according to the actual application scenario. For example, in the scenario of automatic homework grading, the integrated document composed of multiple homeworks can be automatically graded; in the scenario of document translation, the integrated document composed of multiple documents can be automatically translated.
[0056] After processing, the large language model will generate a final document to be printed, which contains all the content that is expected to be printed.
[0057] The method provided by the embodiments of the present invention processes an integrated document composed of multiple pages to be printed through a large language model, which can further improve the efficiency of document processing, thereby improving the printing efficiency.
[0058] Based on any of the above embodiments, in step 320, the large language model processes the integrated document to obtain the document to be printed, including: Step 321, the large language model corrects the integrated document to obtain the correction records of each page to be printed; Step 322, based on the correction records of each page to be printed, determine the document to be printed.
[0059] Specifically, in the scenario of homework correction, the integrated document may include multiple students' homework to be reviewed. The large language model can also be used for automatic analysis and correction of homework content. The large language model first identifies each piece of homework in the integrated document. By parsing the document structure, it identifies the start and end positions of each piece of homework, as well as the separators between the homeworks.
[0060] For each piece of homework, the large language model will conduct a detailed correction. For example, it may include grammar and spelling checks: identifying and marking grammar errors and spelling mistakes; logic and coherence evaluation: analyzing the logical structure and coherence of the homework and giving corresponding evaluations and suggestions. Answer correctness verification: If the homework includes a question - answering section, the large language model will verify the correctness of the answers and give feedback.
[0061] The large language model generates detailed correction records for each piece of homework, that is, the correction records of each page to be printed. The correction records may include correction marks, such as error marks, correction suggestions, as well as scores and comments, etc. The correction records can be presented in text form, highlighted form or other easy - to - understand formats.
[0062] On this basis, the correction records of each piece of homework are integrated together to form a document including multiple correction records, that is, the document to be printed.
[0063] The method provided by the embodiments of the present invention can automatically correct multiple pieces of homework simultaneously by using the large language model to correct the integrated document, thereby improving the efficiency of homework correction.
[0064] Based on any of the above embodiments, based on the correction records of each page to be printed, determining the document to be printed includes: Based on the correction records of each page to be printed, determine the correction traces and the positions of the correction traces on each page to be printed; Based on the correction traces and positions, determine the document to be printed.
[0065] Specifically, for the generation of the document to be printed, it can be determined by the correction traces on each page to be printed and the positions of the correction traces.
[0066] Correction marks refer to error marks, correction suggestions, etc. specifically reflected in the correction records. The correction marks will be directly reflected on the pages to be printed to guide students to understand the errors and make corrections. For example, correction marks can include various symbols such as "√", "×", "?", etc., can also include various marks such as horizontal lines, wavy lines, etc., can also include correction suggestions in text form, and can also include scores and comments, etc.
[0067] The correction records generated by large language models usually exist in the form of text or structured data. The correction records can be parsed to extract specific correction marks, such as error marks, corrected text, etc.
[0068] The correction marks can be matched with each page to be printed in the original integrated document to ensure that each mark can be accurately corresponding to the corresponding page. Then determine the position of the correction marks on each page to be printed. Through the parsing and positioning of the page content, such as finding the page number, paragraph, line number, and character position where the mark is located through a text matching algorithm, or determining the position of the circumscribed rectangle of the correction mark in the page image through an image processing algorithm. The position information helps to accurately locate the position of the correction marks.
[0069] After obtaining the correction marks and the positions where the correction marks are located on each page to be printed, a document to be printed can be generated. The document to be printed can clearly display each correction mark and its position, while maintaining the readability and aesthetics of the page.
[0070] Preferably, before generating the document to be printed, a preview function can be provided to allow users to view the effect of the correction marks. Users can adjust the style, position, or content of the marks as needed.
[0071] Based on any of the above embodiments, the matching document is sent to the printer so that the printer performs a printing operation based on the pages to be printed and the matching document, including: The matching document is sent to the printer so that the printer performs a printing operation based on the pages to be printed and the matching document until all the pages to be printed are printed.
[0072] Specifically, for multiple pages to be printed, whenever a page to be printed is printed, the process described in the above embodiments is automatically repeated until all the pages to be printed are printed.
[0073] For example, after the correction record printing of the previous assignment is completed, first determine the page image of the current assignment, extract the key features of the page image, and based on the key features, match the current assignment with the document to be printed to obtain the correction record corresponding to the current assignment, that is, the matching document. Then send the matching document to the printer, and the printer prints the correction record on the current assignment, thereby completing the correction record printing of the current assignment. Immediately enter the correction record printing of the next assignment, and repeat this printing process until all pages to be printed are printed.
[0074] The method provided by the embodiment of the present invention realizes automated printing, improves printing efficiency, and ensures the accuracy of the printing order by sending the matching document to the printer and performing printing operations until all pages to be printed are printed.
[0075] Based on any of the above embodiments, the printing method further includes: Based on the key features, match the page to be printed with the document to be printed. If no matching document is found, give an alarm. Receive user input; Based on the user input, determine the matching document from the document to be printed.
[0076] Specifically, if no document matching the page to be printed is found in the document to be printed, trigger the alarm mechanism. The alarm can remind the user's attention through means such as sound, light, and screen display, and give corresponding error messages or suggestions.
[0077] The user input can be used to indicate information about the matching document. The user inputs keywords, descriptions related to the page to be printed, or selects specific options through a displayable input interface. For example, the page number of the page to be printed, the name or student number corresponding to the page to be printed, etc. can be input. In addition, the user input can be further verified to ensure its validity. If the input does not meet the requirements, give corresponding prompts or error messages to guide the user to re-enter.
[0078] Search in the document to be printed according to the content input by the user, find the document related to the input content as the matching document. The user can also be allowed to view, select, and confirm the matching result to ensure that the selected document meets the user's expectations.
[0079] The method provided by the embodiment of the present invention avoids unnecessary printing jobs and paper waste through precise matching and the alarm mechanism, thereby improving the utilization rate of the printer and the management efficiency of printing resources.
[0080] Based on any of the above embodiments, Figure 4 is the third flowchart of the printing method provided by the present invention. As Figure 4 shown, the method includes: The client installed on the local all-in-one computer will receive the job image data collected by the camera. First, the client preprocesses these images and extracts the key information pictures containing the student's name and student ID. Subsequently, this picture is uploaded to the cloud large model for analysis. Based on the identified personal information, the large model obtains the corresponding homework grading records and feeds them back to the client. Finally, the client sends the received grading records to the printer to perform specific printing operations.
[0081] Whenever the printing of one homework page is completed, the above process will automatically repeat until all pages of the entire homework have completed the marking process. This method not only improves the accuracy in the homework grading process but also enhances the flexibility and reliability of the entire system.
[0082] Based on any of the above embodiments, Figure 5 is a schematic structural diagram of the printing system provided by the present invention. As Figure 5 shown, the system includes: An image acquisition device 510, which is installed at the paper inlet of the printer and is used to acquire the page image of the page to be printed; An all-in-one machine 520, which is used to extract the key features of the page image, match the page to be printed with the document to be printed based on the key features, obtain the matching document, and send the matching document to the printer; A printer 530, which is used to perform printing operations based on the page to be printed and the matching document.
[0083] Specifically, Figure 6 and Figure 7 are schematic installation diagrams of the image acquisition device provided by the present invention. As Figure 6 shown, the camera is installed at the paper inlet of the paper tray. As Figure 7 shown, the camera is installed at the manual paper inlet. The camera can acquire the page image of the page to be printed in real time.
[0084] The all-in-one machine here can be an all-in-one computer, including an integrated design of a display screen (such as a touch screen) + a computer host, mainly used for human-computer interaction and printer control. A client for controlling the printer is configured on the all-in-one machine. The client is used to extract the key features of the page image, match the page to be printed with the document to be printed based on the key features, obtain the matching document, and send the matching document to the printer.
[0085] The printer can be an all-in-one scanner and printer. For example, the user scans the student's homework into the system through the scanner port of the printer, and the large language model corrects the homework. After the large language model finishes correcting, the teacher places the scanned homework into the printer paper feed slot, and the printer prints the generated corrected document (matching document) onto the homework until all the homework is corrected and the correction records are printed.
[0086] Preferably, the printing system further includes a multi-functional bracket, which plays an auxiliary role in supplying network, power, and providing structural support for the printing system.
[0087] The printing system provided by the embodiments of the present invention can ensure the accurate correspondence between the page to be printed and the document to be printed by extracting the key features of the page image for matching, avoiding printing errors caused by disordered page order or misoperation. The automated matching and printing process can quickly complete the processing and output of a large number of pages, significantly improving work efficiency. In addition, the automated matching process reduces the need for manual verification of page order and reduces the possibility of human error.
[0088] Based on any of the above embodiments, the all-in-one machine is specifically configured to: Send the key features to the large language model so that the large language model performs text recognition on the key features to obtain the identification information of the page to be printed; The large language model determines a matching document from the document to be printed that matches the identification information; Receive the matching document returned by the large language model.
[0089] Based on any of the above embodiments, the all-in-one machine is specifically configured to: Obtain an integrated document composed of multiple copies of the page to be printed; Send the integrated document to the large language model so that the large language model processes the integrated document to obtain the document to be printed.
[0090] Based on any of the above embodiments, the large language model is specifically configured to: The large language model corrects the homework for the integrated document to obtain the correction records of each page to be printed; Based on the correction records of each page to be printed, determine the document to be printed.
[0091] Based on any of the above embodiments, the large language model is specifically configured to: Based on the correction records of each page to be printed, determine the correction marks and the positions of the correction marks on each page to be printed; Based on the correction marks and the positions, determine the document to be printed.
[0092] Based on any of the above embodiments, the all-in-one machine is specifically configured to: Send the matching document to the printer so that the printer performs a printing operation based on the page to be printed and the matching document until all the pages to be printed are printed.
[0093] Based on any of the above embodiments, the all-in-one machine is specifically configured to: Match the page to be printed with the document to be printed based on the key features. If no matching document is found, an alarm is issued; Receive user input; Determine the matching document from the document to be printed based on the user input.
[0094] Figure 8 An example of the physical structure diagram of an electronic device is shown as Figure 8 shown. The electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840. Among them, the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logical instructions in the memory 830 to execute a printing method, which includes: determining a page image of the page to be printed and extracting key features of the page image; matching the page to be printed with the document to be printed based on the key features to obtain a matching document; sending the matching document to the printer so that the printer performs a printing operation based on the page to be printed and the matching document.
[0095] In addition, when the logical instructions in the above-mentioned memory 830 are implemented in the form of software functional units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0096] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the printing method provided by each of the above methods. The method includes: determining a page image of a page to be printed, and extracting key features of the page image; based on the key features, matching the page to be printed with a document to be printed to obtain a matching document; and sending the matching document to a printer so that the printer performs a printing operation based on the page to be printed and the matching document.
[0097] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the printing method provided by each of the above methods. The method includes: determining a page image of a page to be printed, and extracting key features of the page image; based on the key features, matching the page to be printed with a document to be printed to obtain a matching document; and sending the matching document to a printer so that the printer performs a printing operation based on the page to be printed and the matching document.
[0098] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0099] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A printing method, characterized in that: include: Determine a page image of a page to be printed, and extract key features of the page image; Based on the key features, the page to be printed is matched with the document to be printed to obtain a matching document; The matching document is sent to a printer, so that the printer performs a printing operation based on the to-be-printed page and the matching document.
2. The printing method according to claim 1, characterized in that: The step of matching the to-be-printed page with the to-be-printed document based on the key feature to obtain a matching document includes: Sending the key features to a large language model so that the large language model performs text recognition on the key features to obtain identification information of the page to be printed; The large language model determines a matching document that matches the identification information from the document to be printed; The matching document returned by the large language model is received.
3. The printing method according to claim 2, characterized in that: Before determining the page image of the page to be printed, the method further includes: Obtaining an integrated document consisting of a plurality of pages to be printed; The integrated document is sent to the large language model so that the large language model processes the integrated document to obtain the document to be printed.
4. The printing method according to claim 3, characterized in that: The large language model processes the integrated document to obtain the document to be printed, including: The large language model performs job correction on the integrated document to obtain correction records of each page to be printed; The document to be printed is determined based on the revision records of the pages to be printed.
5. The printing method according to claim 4, characterized in that: The step of determining the document to be printed based on the revision records of each page to be printed includes: Based on the revision records of the pages to be printed, determining the revision traces and the positions of the revision traces in the pages to be printed; The document to be printed is determined based on the correction trace and the position.
6. The printing method according to any one of claims 1 to 5, characterized in that: The step of sending the matching document to a printer so that the printer performs a printing operation based on the page to be printed and the matching document includes: The matching document is sent to a printer, so that the printer performs a printing operation based on the pages to be printed and the matching document until all the pages to be printed are printed.
7. The printing method according to any one of claims 1 to 5, characterized in that: The method further comprises: Based on the key features, the page to be printed is matched with the document to be printed, and an alarm is issued if no matching document is found; Receive user input; Based on the user input, the matching document is determined from the documents to be printed.
8. A printing system, characterized in that: include: An image acquisition device, which is installed at the paper inlet of the printer and is used to acquire a page image of a page to be printed; The all-in-one machine is used to extract key features of the page image, match the page to be printed with the document to be printed based on the key features, obtain a matching document, and send the matching document to the printer; A printer is used to perform a printing operation based on the to-be-printed page and the matching document.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the printing method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the printing method according to any one of claims 1 to 7 is implemented.