Adaptive printing method and system for printer
By collecting and analyzing the print list and parameters in the printer, dynamically matching the printing mode and environment, the printing effect problem caused by the printer environment attenuation is solved, and adaptive adjustment and printing effect are improved.
Patent Information
- Application Number
- CN202411314199.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-20
AI Technical Summary
The printer's printing environment decays with use, resulting in inadequate printing mode and environment, affecting the printing effect.
By positioning the printer, collecting print lists and parameters, dividing the printing space, matching the theoretical printing mode and environment, dynamically adjusting to adapt to environmental changes, and controlling the mode according to abnormal parts of the printing content to ensure the printing effect.
It realizes adaptive adjustment of the printing environment and theoretical mode, improves the printing effect of the printer, and ensures that the printed content meets the preset requirements.
Smart Images

Figure CN118819437B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printers, and in particular to an adaptive printing method and system for a printer. Background Art
[0002] With the development of science and technology, printers are gradually used in life. The printer receives a print signal and presents the print content contained in the print signal on the paper to be printed. At this time, the printer prints according to the preset print mode, and uses the same print mode for different print contents. However, the printing environment will gradually deteriorate with the use of the printer, resulting in the incompatibility between the printing environment and the printing mode, which affects the actual printing effect of the printer. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides an adaptive printing method and system for a printer, which locates the printer and collects the current print list of the printer; divides multiple print spaces based on the print list, and defines corresponding print contents according to the multiple print spaces; matches the corresponding theoretical print mode according to the print content and the corresponding content level; traverses the printer and collects multiple print parameters of the printer, and defines the printing environment of the printer according to the multiple print parameters and the service life of the printer, so as to introduce the printing environment and the theoretical printing mode, thereby further processing the printing environment and the theoretical printing mode, and then controlling the printing environment and the theoretical printing mode.
[0004] Furthermore, the printing environment and the theoretical printing mode are matched, and adaptive parameters are defined according to the difference between the matching coefficient and the preset matching coefficient threshold. The adaptive state between the printing environment and the theoretical printing mode is constructed based on the adaptive parameters, thereby ensuring the adaptive adjustment between the printing environment and the theoretical printing mode, and better ensuring the printing work of the printer. At the same time, when the printing environment and the theoretical printing mode are in the adaptive state, an image of the content printed by the printer is collected, and the abnormal part of the printed content is marked according to the recognition of the image, and printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further regulated based on the printing influencing parameters. Therefore, the printing work of the printer is further actually controlled, so as to facilitate real-time control of the abnormal part of the printed content, thereby introducing printing influencing parameters, and further adjusting the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements, thereby ensuring the actual printing effect of the printer.
[0005] An embodiment of the present invention provides an adaptive printing method of a printer, which is applied to an adaptive printing scenario of a printer;
[0006] The adaptive printing method of the printer comprises:
[0007] Locate the printer and collect the printer's current print list;
[0008] Dividing a plurality of print spaces based on the print list, and defining corresponding print contents according to the plurality of print spaces;
[0009] Matching the corresponding theoretical printing mode according to the printing content and the corresponding content level;
[0010] Traversing the printers and collecting a plurality of printing parameters of the printers, and defining a printing environment of the printers according to the plurality of printing parameters and the service life of the printers;
[0011] Matching the printing environment and the theoretical printing mode, defining an adaptive parameter according to a difference between a matching coefficient and a preset matching coefficient threshold, and constructing an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameter;
[0012] When the printing environment and the theoretical printing mode are in an adaptive state, the printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements.
[0013] Optionally, the locating the printer and collecting the current print list of the printer includes:
[0014] Locate the printer;
[0015] Traverse the printers and define the printing modules according to the traversal of the printers;
[0016] Outputting a print list of the current time of the printer according to the matching of the print module and the current time;
[0017] Collect the printer's current print list;
[0018] The corresponding print data is matched based on the tracing of the print list of the printer at the current time, and the print data in an abnormal state is output according to the detection of the print data, and the print list is optimized according to the print data in the abnormal state to ensure that the print content in the print list can be printed by the printer.
[0019] Optionally, dividing the print list into multiple print spaces and defining corresponding print contents according to the multiple print spaces includes:
[0020] Freeze print list;
[0021] Parse the print list and output the distribution style of the print list;
[0022] Match the corresponding division mode based on the distribution style of the print list and the model of the printer;
[0023] Associating a partitioning mode with a print list, and partitioning a plurality of print spaces based on the partitioning mode and the print list;
[0024] In the multiple printing spaces, multiple space combinations are constructed based on the multiple printing spaces;
[0025] Defining a relationship coefficient of each space combination, and triggering the merging of the space combinations based on the comparison between the relationship coefficient and a preset correlation coefficient threshold, so as to optimize multiple printing spaces;
[0026] Synchronously traverse multiple print spaces;
[0027] In the synchronous traversal of the multiple print spaces, corresponding print contents are defined according to the multiple print spaces.
[0028] Optionally, matching a corresponding theoretical printing mode according to the printing content and the corresponding content level includes:
[0029] Freeze each printed content;
[0030] Compare the various printed contents, and define the importance coefficients of the various printed contents according to the various printers and the corresponding comparison mechanisms;
[0031] Define the corresponding content level according to the importance coefficient of each printed content and the level interval table;
[0032] Associate printed content with corresponding content levels;
[0033] Defining corresponding mode coefficients based on the printed content and the corresponding content level;
[0034] The corresponding theoretical printing mode is matched according to the mode coefficient and the corresponding printing mode matching table.
[0035] Optionally, traversing the printers and collecting a plurality of printing parameters of the printers, and defining the printing environment of the printers according to the plurality of printing parameters and the service life of the printers, includes:
[0036] Freeze the printer and traverse it for the printer;
[0037] During the traversal process of the printer, multiple printing parameters of the printer are collected; the multiple printing parameters correspond to the working parameters of the printer in different dimensions respectively;
[0038] Defining abnormal parameters based on the detection of multiple printing parameters, and marking corresponding abnormal parts according to the tracing of abnormal parameters;
[0039] Freeze the abnormal part, and perform adaptive control on the abnormal part until the abnormal part is optimized, and output the optimized printing parameters;
[0040] Correlate multiple printing parameters and the age of the printer;
[0041] Define the printing environment for the printer based on multiple printing parameters and the age of the printer.
[0042] Optionally, matching the printing environment and the theoretical printing mode, defining an adaptive parameter according to a difference between a matching coefficient and a preset matching coefficient threshold, and constructing an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameter includes:
[0043] Freeze-frame printing environment and theoretical printing mode;
[0044] A matching coefficient is defined based on the matching of the printing environment and the theoretical printing mode;
[0045] Defining a preset matching coefficient threshold value according to the model of the printer and the corresponding age of use;
[0046] comparing a preset matching coefficient threshold with the matching coefficient;
[0047] The difference amount is defined according to the comparison between the preset matching coefficient threshold and the matching coefficient.
[0048] Optionally, matching the printing environment and the theoretical printing mode, defining an adaptive parameter according to a difference between a matching coefficient and a preset matching coefficient threshold, and constructing an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameter, further includes:
[0049] defining adaptive parameters based on the difference amount, the model of the printer, and a parameter matching table;
[0050] Establishing a corresponding adaptive relationship according to the adaptive parameters and the print head in the printer;
[0051] Dynamically associate the adaptive relationship between the printing environment and the theoretical printing mode;
[0052] An adaptive state between the printing environment and the theoretical printing mode is constructed based on the adaptive relationship, the printing environment and the theoretical printing mode.
[0053] Optionally, when the printing environment and the theoretical printing mode are in an adaptive state, printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements, including:
[0054] The adaptive state between the freeze-frame printing environment and the theoretical printing mode;
[0055] When the printing environment and the theoretical printing mode are in an adaptive state, the printer is triggered to print on the printing paper;
[0056] During the printing process of the printer, an image of the content printed by the printer is dynamically collected, and the image is formed along with the printing of the printer on the paper to be printed.
[0057] Optionally, when the printing environment and the theoretical printing mode are in an adaptive state, printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements, and further includes:
[0058] Freeze the image of the content printed by the printer;
[0059] Associating the image with a corresponding recognition mechanism, and performing recognition based on the image and the recognition mechanism;
[0060] marking abnormal portions of the printed content based on the recognition of the image;
[0061] Freeze each abnormal part and mark the location of each abnormal part;
[0062] Define printing impact parameters according to each abnormal part and the corresponding position;
[0063] The theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements. At this time, actual control is performed on the printer under the printing of the theoretical printing mode.
[0064] In addition, an embodiment of the present invention further provides an adaptive printing system for a printer, the adaptive printing system for a printer comprising:
[0065] The acquisition module is used to locate the printer and acquire the current print list of the printer;
[0066] A print content module, used for dividing a plurality of print spaces based on the print list, and defining corresponding print contents according to the plurality of print spaces;
[0067] A matching module, used for matching a corresponding theoretical printing mode according to the printing content and the corresponding content level;
[0068] A printing environment module, used to traverse the printers and collect multiple printing parameters of the printers, and define the printing environment of the printers according to the multiple printing parameters and the service life of the printers;
[0069] An adaptive module is used to match the printing environment and the theoretical printing mode, define adaptive parameters according to the difference between the matching coefficient and the preset matching coefficient threshold, and construct an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameters;
[0070] The control module is used to define printing influencing parameters according to each abnormal part and the corresponding position when the printing environment and the theoretical printing mode are in an adaptive state, and further control the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements.
[0071] In an embodiment of the present invention, through the method in the embodiment of the present invention, the printer is located, and the print list of the printer at the current time is collected; multiple print spaces are divided based on the print list, and corresponding print contents are defined according to the multiple print spaces; the corresponding theoretical print mode is matched according to the print content and the corresponding content level; the printer is traversed, and multiple print parameters of the printer are collected, and the printing environment of the printer is defined according to the multiple print parameters and the service life of the printer, so as to introduce the printing environment and the theoretical printing mode, so as to further process the printing environment and the theoretical printing mode, and then control the printing environment and the theoretical printing mode.
[0072] Furthermore, the printing environment and the theoretical printing mode are matched, and adaptive parameters are defined according to the difference between the matching coefficient and the preset matching coefficient threshold. The adaptive state between the printing environment and the theoretical printing mode is constructed based on the adaptive parameters, thereby ensuring the adaptive adjustment between the printing environment and the theoretical printing mode, and better ensuring the printing work of the printer. At the same time, when the printing environment and the theoretical printing mode are in the adaptive state, an image of the content printed by the printer is collected, and the abnormal part of the printed content is marked according to the recognition of the image, and printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further regulated based on the printing influencing parameters. Therefore, the printing work of the printer is further actually controlled, so as to facilitate real-time control of the abnormal part of the printed content, thereby introducing printing influencing parameters, and further adjusting the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements, thereby ensuring the actual printing effect of the printer. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0074] Figure 1 is a schematic flow chart of an adaptive printing method of a printer in an embodiment of the present invention;
[0075] Figure 2 is a schematic flow chart of S11 in the adaptive printing method of the printer in the embodiment of the present invention;
[0076] Figure 3 is a schematic flow chart of S12 in the adaptive printing method of a printer in an embodiment of the present invention;
[0077] Figure 4 is a schematic flow chart of S13 in the adaptive printing method of the printer in the embodiment of the present invention;
[0078] Figure 5 is a schematic flow chart of S14 in the adaptive printing method of the printer in the embodiment of the present invention;
[0079] Figure 6 is a schematic flow chart of S15 in the adaptive printing method of the printer in the embodiment of the present invention;
[0080] Figure 7 is a schematic flow chart of S16 in the adaptive printing method of the printer in the embodiment of the present invention;
[0081] Figure 8 is a schematic diagram of the structure of an adaptive printing system of a printer in an embodiment of the present invention;
[0082] Fig. 9 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0083] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0084] See also Figures 1 to 9 , an adaptive printing method of a printer, applied to an adaptive printing scenario of a printer; the adaptive printing method of a printer comprises:
[0085] Step S11: locate the printer and collect the current print list of the printer;
[0086] Step S12: dividing the print list into multiple print spaces, and defining corresponding print contents according to the multiple print spaces;
[0087] Step S13: matching a corresponding theoretical printing mode according to the printing content and the corresponding content level;
[0088] Step S14: traverse the printers and collect multiple printing parameters of the printers, and define the printing environment of the printers according to the multiple printing parameters and the service life of the printers;
[0089] Step S15: matching the printing environment and the theoretical printing mode, defining an adaptive parameter according to a difference between a matching coefficient and a preset matching coefficient threshold, and constructing an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameter;
[0090] Step S16: When the printing environment and the theoretical printing mode are in an adaptive state, the printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements.
[0091] In an embodiment of the present invention, through the method in the embodiment of the present invention, the printer is located, and the print list of the printer at the current time is collected; multiple print spaces are divided based on the print list, and corresponding print contents are defined according to the multiple print spaces; the corresponding theoretical print mode is matched according to the print content and the corresponding content level; the printer is traversed, and multiple print parameters of the printer are collected, and the printing environment of the printer is defined according to the multiple print parameters and the service life of the printer, so as to introduce the printing environment and the theoretical printing mode, so as to further process the printing environment and the theoretical printing mode, and then control the printing environment and the theoretical printing mode.
[0092] Furthermore, the printing environment and the theoretical printing mode are matched, and adaptive parameters are defined according to the difference between the matching coefficient and the preset matching coefficient threshold. The adaptive state between the printing environment and the theoretical printing mode is constructed based on the adaptive parameters, thereby ensuring the adaptive adjustment between the printing environment and the theoretical printing mode, and better ensuring the printing work of the printer. At the same time, when the printing environment and the theoretical printing mode are in the adaptive state, an image of the content printed by the printer is collected, and the abnormal part of the printed content is marked according to the recognition of the image, and printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further regulated based on the printing influencing parameters. Therefore, the printing work of the printer is further actually controlled, so as to facilitate real-time control of the abnormal part of the printed content, thereby introducing printing influencing parameters, and further adjusting the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements, thereby ensuring the actual printing effect of the printer.
[0093] refer to Figure 2, in step S11, locate the printer and collect the current print list of the printer;
[0094] In the specific implementation process of the present invention, the specific steps may be:
[0095] S111: Positioning the printer;
[0096] S112: traversing the printers, and defining a printing module according to the traversal of the printers;
[0097] S113: Outputting a print list of the current time of the printer according to the matching of the print module and the current time;
[0098] S114: Collect the current print list of the printer;
[0099] S115: Match the corresponding print data based on the tracing of the print list of the printer at the current time, output the print data in an abnormal state according to the detection of the print data, and optimize the print list according to the print data in the abnormal state to ensure that the print contents in the print list can be printed by the printer.
[0100] In an embodiment of the present application, the printer is located and further processed to facilitate traversal based on the printer. At this time, the printer is traversed and a printing module is defined based on the traversal of the printer, thereby freezing the printing module, which serves as a control module for storing a print list in the printer.
[0101] At this time, the printer's current print list is output based on the matching of the print module and the current time, so as to be compatible with the consideration of the print module and the current time, thereby controlling the printer's current print list in the time dimension, so as to facilitate further processing of the print list.
[0102] Therefore, the print list of the printer at the current time is collected; the corresponding print data is matched based on the tracing of the print list of the printer at the current time to trigger the tracing of the print list, thereby freezing the corresponding print data in the tracing of the print list, clarifying the print data, so as to output the print data in an abnormal state according to the detection of the print data, and optimize the print list according to the print data in the abnormal state to ensure that the print content in the print list can be printed by the printer.
[0103] refer to Figure 3 , in step S12, a plurality of print spaces are divided based on the print list, and corresponding print contents are defined according to the plurality of print spaces;
[0104] In the specific implementation process of the present invention, the specific steps may be:
[0105] S121: freeze-print list;
[0106] S122: parsing the print list and outputting the distribution style of the print list;
[0107] S123: matching a corresponding division mode based on the distribution style of the print list and the model of the printer;
[0108] S124: associating the division mode and the print list, and dividing the plurality of print spaces based on the division mode and the print list;
[0109] S125: constructing a plurality of space combinations based on the plurality of printing spaces in the plurality of printing spaces;
[0110] S126: defining a relationship coefficient of each space combination, and triggering a merging of the space combinations based on a comparison between the relationship coefficient and a preset correlation coefficient threshold, so as to optimize the multiple printing spaces;
[0111] S127: Synchronously traverse multiple printing spaces;
[0112] S128: In the synchronous traversal of the multiple print spaces, corresponding print contents are defined according to the multiple print spaces.
[0113] In an embodiment of the present application, the print list is frozen to facilitate parsing of the print list and outputting the distribution style of the print list. The distribution style of the print list is introduced, and the distribution style of the print list is further controlled to facilitate matching the corresponding division pattern based on the distribution style of the print list and the model of the printer, thereby taking the distribution style of the print list and the model of the printer into overall consideration to ensure the accuracy of the division pattern. Optionally, the division mode is local division, tracking division, and overall division, which is not limited here.
[0114] At this time, the division mode and the print list are associated, and multiple print spaces are divided based on the division mode and the print list, so that multiple print spaces are introduced, thereby controlling the multiple print spaces.
[0115] Therefore, among multiple printing spaces, multiple space combinations are constructed based on multiple printing spaces to facilitate control of multiple space combinations, thereby defining the relationship coefficients of each space combination, and triggering the merging of space combinations based on the comparison between the relationship coefficients and the preset correlation coefficient threshold to optimize multiple printing spaces. This achieves the optimization of multiple printing spaces and facilitates the merging of some printing spaces.
[0116] Furthermore, a synchronous traversal is performed on multiple printing spaces; in the synchronous traversal of multiple printing spaces, corresponding printing contents are defined according to the multiple printing spaces, so as to output the printing contents corresponding to each printing space and further control the printing contents.
[0117] refer to Figure 4 , in step S13, matching the corresponding theoretical printing mode according to the printing content and the corresponding content level;
[0118] In the specific implementation process of the present invention, the specific steps may be:
[0119] S131: freeze each printed content;
[0120] S132: Compare each printed content, and define an important coefficient of each printed content according to each printer and a corresponding comparison mechanism;
[0121] S133: defining corresponding content levels according to the importance coefficients of each printed content and the level interval table;
[0122] S134: Associating the printed content with the corresponding content level;
[0123] S135: defining corresponding mode coefficients based on the printed content and the corresponding content level;
[0124] S136: Matching the corresponding theoretical printing mode according to the mode coefficient and the corresponding printing mode matching table.
[0125] In an embodiment of the present application, each printed content is frozen to facilitate further processing of each printed content, so that each printed content can be compared, and the important coefficients of each printed content are defined according to each printer and the corresponding comparison mechanism, so that the important coefficients of each printed content are introduced, and the important coefficients of each printed content are marked, so as to freeze the corresponding important coefficients, so as to facilitate sorting according to the size of the important coefficients.
[0126] Therefore, the corresponding content level is defined according to the importance coefficient of each printed content and the level interval table, which is compatible with the consideration of the importance coefficient of each printed content and the level interval table, so as to further control the importance coefficient of each printed content and the level interval table, so as to clarify the content level and ensure the accuracy of the content level.
[0127] Furthermore, the print content and the corresponding content level are associated to further control the print content and the corresponding content level, thereby defining the corresponding mode coefficient based on the print content and the corresponding content level, introducing the mode coefficient, associating the mode coefficient with the corresponding print mode matching table, and then matching the corresponding theoretical print mode according to the mode coefficient and the corresponding print mode matching table, clarifying the theoretical print mode, and realizing the accurate derivation of the theoretical print mode. Optionally, the theoretical print mode includes a fast print mode, a slow print mode, a uniform print mode, or a variable print mode, etc.
[0128] refer to Figure 5 , S14: traverse the printers and collect multiple printing parameters of the printers, and define the printing environment of the printers according to the multiple printing parameters and the service life of the printers;
[0129] In the specific implementation process of the present invention, the specific steps may be:
[0130] S141: freeze the printer and traverse the printer;
[0131] S142: During the traversal process of the printer, a plurality of printing parameters of the printer are collected; the plurality of printing parameters respectively correspond to working parameters of the printer in different dimensions;
[0132] S143: defining abnormal parameters based on the detection of multiple printing parameters, and marking corresponding abnormal parts according to the tracing of the abnormal parameters;
[0133] S144: freeze the abnormal part, and perform adaptive control on the abnormal part until the abnormal part is optimized, and output the optimized printing parameters;
[0134] S145: Associating a plurality of printing parameters with the service life of the printer;
[0135] S146: defining a printing environment of the printer according to a plurality of printing parameters and the service life of the printer.
[0136] In an embodiment of the present application, the printer is frozen and traversed to facilitate control of the printer. At this time, during the traversal of the printer, multiple printing parameters of the printer are collected; the multiple printing parameters respectively correspond to the working parameters of the printer in different dimensions, and control is performed in different dimensions through the multiple printing parameters, and the multiple printing parameters are associated.
[0137] At this time, abnormal parameters are defined based on the detection of multiple printing parameters, and the abnormal parameters are screened from the multiple printing parameters to facilitate processing of the abnormal parameters. Furthermore, the corresponding abnormal parts are marked according to the tracing of the abnormal parameters.
[0138] Therefore, the abnormal part is frozen, and adaptive adjustment is performed on the abnormal part until the abnormal part is optimized, and the optimized printing parameters are output; multiple printing parameters and the service life of the printer are associated; the printing environment of the printer is defined according to the multiple printing parameters and the service life of the printer, so as to be compatible with the consideration of multiple printing parameters and the service life of the printer, thereby performing multi-dimensional control among multiple printing parameters and the service life of the printer, ensuring the accuracy of the printing environment of the printer. Optionally, the printing environment of the printer is formed based on a combination of multiple printing parameters.
[0139] refer to Figure 6 , S15: matching the printing environment and the theoretical printing mode, defining an adaptive parameter according to a difference between a matching coefficient and a preset matching coefficient threshold, and constructing an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameter;
[0140] In the specific implementation process of the present invention, the specific steps may be:
[0141] S151: freeze-frame printing environment and theoretical printing mode;
[0142] S152: defining a matching coefficient based on the matching of the printing environment and the theoretical printing mode;
[0143] S153: defining a preset matching coefficient threshold according to the model of the printer and the corresponding service life;
[0144] S154: Compare the preset matching coefficient threshold with the matching coefficient;
[0145] S155: defining a difference amount according to a comparison between a preset matching coefficient threshold and the matching coefficient;
[0146] S156: defining adaptive parameters based on the difference amount, the model of the printer and the parameter matching table; and constructing a corresponding adaptive relationship according to the adaptive parameters and the print head in the printer;
[0147] S157: dynamically associating the printing environment and the theoretical printing mode with the adaptive relationship; and constructing an adaptive state between the printing environment and the theoretical printing mode based on the adaptive relationship, the printing environment and the theoretical printing mode.
[0148] In an embodiment of the present application, the printing environment and the theoretical printing mode are matched, and an adaptive parameter is defined according to the difference between the matching coefficient and a preset matching coefficient threshold. The adaptive state between the printing environment and the theoretical printing mode is constructed based on the adaptive parameter, thereby ensuring the adaptive adjustment between the printing environment and the theoretical printing mode and better ensuring the printing work of the printer.
[0149] At this time, the printing environment and the theoretical printing mode are frozen to facilitate the management of the printing environment and the theoretical printing mode, thereby defining the matching coefficient based on the matching of the printing environment and the theoretical printing mode, and controlling the matching coefficient in multiple dimensions to ensure the accuracy of the matching coefficient.
[0150] Furthermore, a preset matching coefficient threshold is defined according to the model of the printer and the corresponding years of use, and thus the preset matching coefficient threshold is limited based on the printing environment and the theoretical printing mode, so as to compare the preset matching coefficient threshold with the matching coefficient, and thus define the difference amount based on the comparison between the preset matching coefficient threshold and the matching coefficient.
[0151] Therefore, adaptive parameters are defined based on the difference amount, the model of the printer and the parameter matching table; the corresponding adaptive relationship is constructed according to the adaptive parameters and the print head in the printer; the adaptive relationship is dynamically associated with the printing environment and the theoretical printing mode; and the adaptive state between the printing environment and the theoretical printing mode is constructed based on the adaptive relationship, the printing environment and the theoretical printing mode, thereby ensuring the adaptive adjustment between the printing environment and the theoretical printing mode and better ensuring the printing work of the printer.
[0152] refer to Figure 7 , S16: when the printing environment and the theoretical printing mode are in an adaptive state, a printing influencing parameter is defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further adjusted based on the printing influencing parameter until the content printed by the printer meets the preset requirements;
[0153] In the specific implementation process of the present invention, the specific steps may be:
[0154] S161: Adaptive state between the freeze-frame printing environment and the theoretical printing mode;
[0155] S162: When the printing environment and the theoretical printing mode are in an adaptive state, triggering the printer to print on the printing paper;
[0156] S163: During the printing process of the printer, dynamically collecting an image of the content printed by the printer, the image being formed along with the printing of the printer on the paper to be printed;
[0157] S164: Freeze the image of the content printed by the printer;
[0158] S165: Associating the image with a corresponding recognition mechanism, and performing recognition based on the image and the recognition mechanism; marking abnormal parts of the printed content based on the recognition of the image;
[0159] S166: freeze each abnormal part and mark the position of each abnormal part; define printing influencing parameters according to each abnormal part and the corresponding position;
[0160] S167: The theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements. At this time, actual control is performed on the printing of the printer under the theoretical printing mode.
[0161] In the specific implementation process of the present invention, when the printing environment and the theoretical printing mode are in an adaptive state, an image of the content printed by the printer is collected, and the abnormal part of the printed content is marked according to the recognition of the image, and the printing influence parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further regulated based on the printing influence parameters. Therefore, the printing work of the printer is further actually controlled, so as to facilitate real-time control of the abnormal part of the printed content, thereby introducing the printing influence parameters, and further adjusting the theoretical printing mode based on the printing influence parameters until the content printed by the printer meets the preset requirements, thereby ensuring the actual printing effect of the printer.
[0162] At this time, the adaptive state between the printing environment and the theoretical printing mode is frozen, and the actual printing of the printer in the adaptive state is controlled. Therefore, when the printing environment and the theoretical printing mode are in the adaptive state, the printer is triggered to print on the to-be-printed paper; during the printing process of the printer, an image of the content printed by the printer is dynamically collected. The image is formed along with the printing of the to-be-printed paper by the printer, so as to introduce the image, and then further process the image to define the printing effect.
[0163] Furthermore, an image of the content printed by the printer is frozen; the image is associated with a corresponding recognition mechanism, and recognition is performed based on the image and the recognition mechanism; and abnormal parts of the printed content are marked based on the recognition of the image, so as to introduce each abnormal part.
[0164] Therefore, freeze each abnormal part and mark the location of each abnormal part; define printing influencing parameters according to each abnormal part and the corresponding location; further adjust the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements. At this time, actual control is carried out on the printer under the printing of the theoretical printing mode.
[0165] Furthermore, the printing work of the printer is further actually controlled so as to perform real-time control on abnormal parts of the printed content, thereby introducing printing influencing parameters, and further adjusting the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements, thereby ensuring the actual printing effect of the printer.
[0166] In an embodiment of the present invention, through the method in the embodiment of the present invention, the printer is located, and the print list of the printer at the current time is collected; multiple print spaces are divided based on the print list, and corresponding print contents are defined according to the multiple print spaces; the corresponding theoretical print mode is matched according to the print content and the corresponding content level; the printer is traversed, and multiple print parameters of the printer are collected, and the printing environment of the printer is defined according to the multiple print parameters and the service life of the printer, so as to introduce the printing environment and the theoretical printing mode, so as to further process the printing environment and the theoretical printing mode, and then control the printing environment and the theoretical printing mode.
[0167] Furthermore, the printing environment and the theoretical printing mode are matched, and adaptive parameters are defined according to the difference between the matching coefficient and the preset matching coefficient threshold. The adaptive state between the printing environment and the theoretical printing mode is constructed based on the adaptive parameters, thereby ensuring the adaptive adjustment between the printing environment and the theoretical printing mode, and better ensuring the printing work of the printer. At the same time, when the printing environment and the theoretical printing mode are in the adaptive state, an image of the content printed by the printer is collected, and the abnormal part of the printed content is marked according to the recognition of the image, and printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further regulated based on the printing influencing parameters. Therefore, the printing work of the printer is further actually controlled, so as to facilitate real-time control of the abnormal part of the printed content, thereby introducing printing influencing parameters, and further adjusting the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements, thereby ensuring the actual printing effect of the printer.
[0168] See also Figure 8 , Figure 8 It is a schematic diagram of the structural composition of the adaptive printing system of the printer in the embodiment of the present invention.
[0169] like Figure 8 As shown, an adaptive printing system of a printer, the adaptive printing system of the printer comprises:
[0170] The acquisition module 21 is used to locate the printer and acquire the current print list of the printer;
[0171] A print content module 22, used to divide a plurality of print spaces based on the print list, and define corresponding print contents according to the plurality of print spaces;
[0172] A matching module 23, used for matching a corresponding theoretical printing mode according to the printing content and the corresponding content level;
[0173] The printing environment module 24 is used to traverse the printers and collect a plurality of printing parameters of the printers, and define the printing environment of the printers according to the plurality of printing parameters and the service life of the printers;
[0174] An adaptive module 25 is used to match the printing environment and the theoretical printing mode, define an adaptive parameter according to the difference between the matching coefficient and a preset matching coefficient threshold, and construct an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameter;
[0175] The control module 26 is used to define printing influencing parameters according to each abnormal part and the corresponding position when the printing environment and the theoretical printing mode are in an adaptive state, and further control the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements.
[0176] See also Fig. 9 , refer to the following Fig. 9 The electronic device 40 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0177] like Fig. 9 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: at least one processing unit 41, at least one storage unit 42, and a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41).
[0178] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.
[0179] The storage unit 42 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .
[0180] The storage unit 42 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0181] Bus 43 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0182] The electronic device 40 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 40, and / or any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 44. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 45. Fig. 9 As shown, the network adapter 45 communicates with other modules of the electronic device 40 via the bus 43. It should be understood that although Fig. 9 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup planning systems.
[0183] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0184] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. In addition, it stores computer program instructions, and when the computer program instructions are executed by a computer, the computer executes the above method.
[0185] In addition, the adaptive printing method and system of the printer provided in the embodiments of the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. An adaptive printing method for a printer, characterized in that: Adaptive printing scenarios applied to printers; The adaptive printing method of the printer comprises: Locate the printer and collect the printer's current print list; Dividing a plurality of print spaces based on the print list, and defining corresponding print contents according to the plurality of print spaces; Matching the corresponding theoretical printing mode according to the printing content and the corresponding content level; Traversing the printers and collecting a plurality of printing parameters of the printers, and defining a printing environment of the printers according to the plurality of printing parameters and the service life of the printers; Matching the printing environment and the theoretical printing mode, defining an adaptive parameter according to a difference between a matching coefficient and a preset matching coefficient threshold, and constructing an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameter; When the printing environment and the theoretical printing mode are in an adaptive state, the printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements; The traversing of the printer and collecting multiple printing parameters of the printer, and defining the printing environment of the printer according to the multiple printing parameters and the service life of the printer, includes: freezing the printer and traversing the printer; during the traversal of the printer, collecting multiple printing parameters of the printer; the multiple printing parameters correspond to the working parameters of the printer in different dimensions; defining abnormal parameters based on the detection of multiple printing parameters, and marking the corresponding abnormal part according to the tracing of the abnormal parameters; freezing the abnormal part, and adaptively regulating the abnormal part until the abnormal part is optimized, and outputting the optimized printing parameters; associating multiple printing parameters with the service life of the printer; defining the printing environment of the printer according to the multiple printing parameters and the service life of the printer; The method of matching the printing environment and the theoretical printing mode, defining an adaptive parameter according to the difference between the matching coefficient and the preset matching coefficient threshold, and constructing an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameter includes: freezing the printing environment and the theoretical printing mode; defining a matching coefficient based on the matching of the printing environment and the theoretical printing mode; defining a preset matching coefficient threshold according to the model of the printer and the corresponding service life; comparing the preset matching coefficient threshold with the matching coefficient; defining a difference according to the comparison between the preset matching coefficient threshold and the matching coefficient; defining an adaptive parameter based on the difference, the model of the printer and a parameter matching table; constructing a corresponding adaptive relationship according to the adaptive parameter and the print head in the printer; dynamically associating the printing environment and the theoretical printing mode with the adaptive relationship; and constructing an adaptive state between the printing environment and the theoretical printing mode based on the adaptive relationship, the printing environment and the theoretical printing mode. When the printing environment and the theoretical printing mode are in an adaptive state, printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements, including: freezing the adaptive state between the printing environment and the theoretical printing mode; when the printing environment and the theoretical printing mode are in an adaptive state, triggering the printer to print the to-be-printed paper; during the printing process of the printer, dynamically collecting an image of the content printed by the printer, the image is formed along with the printing of the to-be-printed paper by the printer; freezing the image of the content printed by the printer; associating the image with the corresponding recognition mechanism, and identifying it based on the image and the recognition mechanism; marking the abnormal part of the printed content based on the recognition of the image; freezing each abnormal part, and marking the position of each abnormal part; defining printing influencing parameters according to each abnormal part and the corresponding position; further adjusting the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements, at which time, actual control is performed on the printer under the printing of the theoretical printing mode.
2. The adaptive printing method of a printer according to claim 1, characterized in that: The method of locating the printer and collecting the current print list of the printer includes: Locate the printer; Traverse the printers and define the printing modules according to the traversal of the printers; Outputting a print list of the current time of the printer according to the matching of the print module and the current time; Collect the printer's current print list; The corresponding print data is matched based on the tracing of the print list of the printer at the current time, and the print data in an abnormal state is output according to the detection of the print data, and the print list is optimized according to the print data in the abnormal state to ensure that the print content in the print list can be printed by the printer.
3. The adaptive printing method of a printer according to claim 2, characterized in that: The dividing the multiple print spaces based on the print list and defining corresponding print contents according to the multiple print spaces includes: Freeze print list; Parse the print list and output the distribution style of the print list; Match the corresponding division mode based on the distribution style of the print list and the model of the printer; Associating a partitioning mode with a print list, and partitioning a plurality of print spaces based on the partitioning mode and the print list; In the multiple printing spaces, multiple space combinations are constructed based on the multiple printing spaces; Defining a relationship coefficient of each space combination, and triggering the merging of the space combinations based on the comparison between the relationship coefficient and a preset correlation coefficient threshold, so as to optimize multiple printing spaces; Synchronously traverse multiple print spaces; In the synchronous traversal of the multiple print spaces, corresponding print contents are defined according to the multiple print spaces.
4. The adaptive printing method of a printer according to claim 3, characterized in that: The matching of the corresponding theoretical printing mode according to the printing content and the corresponding content level includes: Freeze each printed content; Compare the various printed contents, and define the importance coefficients of the various printed contents according to the various printers and the corresponding comparison mechanisms; Define the corresponding content level according to the importance coefficient of each printed content and the level interval table; Associate printed content with corresponding content levels; Defining corresponding mode coefficients based on the printed content and the corresponding content level; The corresponding theoretical printing mode is matched according to the mode coefficient and the corresponding printing mode matching table.
5. An adaptive printing system for a printer, characterized in that: The adaptive printing system of the printer is applied to the adaptive printing method of the printer as claimed in any one of claims 1 to 4, and the adaptive printing system of the printer comprises: The acquisition module is used to locate the printer and acquire the current print list of the printer; A print content module, used for dividing a plurality of print spaces based on the print list, and defining corresponding print contents according to the plurality of print spaces; A matching module, used for matching a corresponding theoretical printing mode according to the printing content and the corresponding content level; A printing environment module, used to traverse the printers and collect multiple printing parameters of the printers, and define the printing environment of the printers according to the multiple printing parameters and the service life of the printers; An adaptive module is used to match the printing environment and the theoretical printing mode, define adaptive parameters according to the difference between the matching coefficient and the preset matching coefficient threshold, and construct an adaptive state between the printing environment and the theoretical printing mode based on the adaptive parameters; A control module, used for defining printing influencing parameters according to each abnormal part and the corresponding position when the printing environment and the theoretical printing mode are in an adaptive state, and further controlling the theoretical printing mode based on the printing influencing parameters until the content printed by the printer meets the preset requirements; When the printing environment and the theoretical printing mode are in an adaptive state, the printing influencing parameters are defined according to each abnormal part and the corresponding position, and the theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements, including: The adaptive state between the freeze-frame printing environment and the theoretical printing mode; When the printing environment and the theoretical printing mode are in an adaptive state, the printer is triggered to print on the printing paper; During the printing process of the printer, an image of the content printed by the printer is dynamically collected, and the image is formed along with the printing of the printer on the printing paper; Freeze the image of the content printed by the printer; Associating the image with a corresponding recognition mechanism and performing recognition based on the image and the recognition mechanism; marking abnormal portions of the printed content based on the recognition of the image; Freeze each abnormal part and mark the location of each abnormal part; define printing influencing parameters according to each abnormal part and the corresponding location; The theoretical printing mode is further adjusted based on the printing influencing parameters until the content printed by the printer meets the preset requirements. At this time, actual control is performed on the printer under the printing of the theoretical printing mode.
Citation Information
Patent Citations
Self-adaptive printing control method and system and readable storage medium
CN114089930A
Abnormity detection method and device based on miniprinter, and electronic equipment
CN117141138A
Pattern printing control method and system of thermal printer
CN118656042A
Resource provisioning
US20170322758A1
