Printer label instruction analysis method and related device
By analyzing and processing printer tag instructions input by target users, and using identity information to optimize the analysis control parameters, the personalized analysis and processing of the printer is realized, solving the problem of lack of flexibility and intelligence of existing printer technologies, and improving user experience and Printer intelligence.
Patent Information
- Application Number
- CN202411416532.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-11
AI Technical Summary
The existing printer technology is relatively mechanized and lacks flexibility, resulting in poor user experience. How to improve the intelligence of the printer has become an urgent problem.
By obtaining the target label instructions for the target printer input by the target user, including the target user's identity information, tag attribute information and tag content, determining the corresponding analysis algorithm and control parameters, executing the analysis algorithm to parse the tag instructions, generating processing parameters and Process the tag content and finalize the processing result.
It realizes personalized analysis and processing of different label instructions, uses identity information to optimize the analysis control parameters, deeply adapt to user identity, meet user personalized needs, and improve user experience and printer intelligence.
Smart Images

Figure CN119473179A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of printer control technology or computer technology, and specifically to a printer label instruction parsing method and related devices. Background Art
[0002] With the rapid development of electronic technology, the speed of industrialization has also been improved, and printers have become more and more popular. Therefore, the demand for efficient and accurate analysis of printer label instructions has become more and more urgent. However, the printing in related technologies is relatively mechanical and not flexible enough, which reduces the user experience. Therefore, the problem of how to improve the intelligence of printers needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a printer label instruction parsing method and related devices, which can improve the intelligence of the printer.
[0004] In a first aspect, an embodiment of the present application provides a printer label instruction parsing method, which is applied to an electronic device, and the method includes:
[0005] Acquire a target label instruction for a target printer input by a target user, wherein the target label instruction includes target identity information of the target user, target label attribute information, and target label content;
[0006] Determine a target tag instruction parsing algorithm corresponding to the target tag attribute information;
[0007] Determine, according to the target identity information, a target label instruction parsing control parameter corresponding to the target label instruction parsing algorithm;
[0008] Execute the target tag instruction parsing algorithm to parse the target tag instruction according to the target tag instruction parsing control parameter to obtain the target processing parameter for the target tag content and the target tag content;
[0009] The target tag content is processed according to the target processing parameters to determine a target processing result.
[0010] In a second aspect, an embodiment of the present application provides a printer label instruction parsing device, which is applied to an electronic device, and the device includes: an acquisition unit, a determination unit, a parsing unit, and a processing unit, wherein:
[0011] The acquisition unit is used to acquire a target label instruction for a target printer input by a target user, wherein the target label instruction includes target identity information of the target user, target label attribute information and target label content;
[0012] The determination unit is used to determine a target tag instruction parsing algorithm corresponding to the target tag attribute information; and determine a target tag instruction parsing control parameter corresponding to the target tag instruction parsing algorithm according to the target identity information;
[0013] The parsing unit is used to execute the target tag instruction parsing algorithm to parse the target tag instruction according to the target tag instruction parsing control parameter to obtain the target processing parameter for the target tag content and the target tag content;
[0014] The processing unit is used to process the target tag content according to the target processing parameter to determine a target processing result.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0018] The implementation of the embodiments of the present application has the following beneficial effects:
[0019] It can be seen that the printer label instruction parsing method and related devices described in the embodiments of the present application are applied to electronic devices to obtain a target label instruction for a target printer input by a target user, the target label instruction including the target identity information, target label attribute information and target label content of the target user, determine a target label instruction parsing algorithm corresponding to the target label attribute information, determine a target label instruction parsing control parameter corresponding to the target label instruction parsing algorithm according to the target identity information, execute the target label instruction parsing algorithm according to the target label instruction parsing control parameter to parse the target label instruction, obtain a target processing parameter and a target label content for the target label content, process the target label content according to the target processing parameter, and determine a target processing result. First, corresponding label instruction parsing algorithms can be configured for different label instructions. Second, the label instruction parsing control parameter is optimized using identity information, so that the optimized label instruction parsing control parameter has identity attributes. Third, since the corresponding label instruction parsing algorithm is executed using the label instruction parsing control parameter optimized by the identity information, the parsing effect is deeply adapted to the user identity, and the processing effect is also deeply adapted to the user identity, thereby meeting the personalized needs of the user, helping to improve the user experience, and improving the intelligence of the printer. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a flowchart of a printer label instruction parsing method provided in an embodiment of the present application;
[0022] Figure 2 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0023] Figure 3 It is a block diagram of the functional units of a printer label instruction parsing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0026] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] The electronic devices described in the embodiments of the present application may include printers, smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, driving recorders, laptop computers, mobile Internet devices (MID, Mobile Internet Devices) or wearable devices (such as smart watches, Bluetooth headsets), etc. The above are only examples and not exhaustive, including but not limited to the above electronic devices. The electronic devices may also include servers, for example, cloud servers.
[0028] In the embodiment of the present application, the target printer may include at least one of the following: a laser printer, an inkjet printer, a dot matrix printer, a thermal printer, etc., which are not limited here.
[0029] In an embodiment of the present application, the target printer may include a label printer, which does not need to be connected to a computer. The label printer itself carries an input module (such as a touch screen, a keyboard, etc.), has certain fonts, character libraries, and a considerable number of label template formats built in, and then, through its built-in LCD screen, it can directly input, edit, and layout the label content as needed, and finally, directly print out the smart printer.
[0030] The following is a detailed description of the embodiments of the present application.
[0031] See also Figure 1 , Figure 1 1 is a flow chart of a printer label instruction parsing method provided by an embodiment of the present application. As shown in the figure, the printer label instruction parsing method is applied to an electronic device. The printer label instruction parsing method includes:
[0032] 101. Acquire a target label instruction for a target printer input by a target user, wherein the target label instruction includes target identity information of the target user, target label attribute information, and target label content.
[0033] In the embodiment of the present application, the target identity information may include at least one of the following: name, gender, position, age, work number, department, job title, authority, physical condition information, user portrait, membership level, etc., which are not limited here. The physical condition information may include at least one of the following: vision parameters, whether color blindness, etc., which are not limited here.
[0034] The target tag attribute information may include at least one of the following: tag type, tag function, tag format, etc., which are not limited here.
[0035] The target label content may include at least one of the following: content that needs to be printed, content that needs to be edited, content that needs to be typeset, content that needs to be printed and previewed, etc., which are not limited here.
[0036] The electronic device may be the target printer itself, or the electronic device may be in communication connection with the target printer.
[0037] In a specific implementation, the target label instruction for the target printer input by the target user can be obtained, wherein the target label instruction can carry the target identity information, target label attribute information and target label content of the target user. In this way, the target label instruction can carry the user identity information and can present the instruction parsing effect corresponding to the user identity information, which helps to meet the user's personalized needs and improve the user experience.
[0038] 102. Determine a target tag instruction parsing algorithm corresponding to the target tag attribute information.
[0039] The tag instruction parsing algorithm can be used to implement the relevant algorithm for parsing the tag instruction accordingly. One tag instruction can correspond to one or more tag instruction parsing algorithms.
[0040] In an embodiment of the present application, a mapping relationship between preset label attribute information and a label instruction parsing algorithm can be pre-stored, and then, a target label instruction parsing algorithm corresponding to the target label attribute information can be determined based on the mapping relationship, that is, corresponding label instruction parsing algorithms can be configured for different label instructions, which helps to improve the personalized parsing of label instructions, helps to improve the user experience, and improves the intelligence of the printer.
[0041] 103. Determine a target tag instruction parsing control parameter corresponding to the target tag instruction parsing algorithm according to the target identity information.
[0042] In the embodiments of the present application, different label instruction parsing algorithms may correspond to different label instruction parsing control parameters, and the label instruction parsing control parameters may realize at least one of the following functions: label instruction parsing speed control, label instruction parsing mode control, label instruction parsing step control, label instruction parsing timing control, label instruction parsing priority control, label instruction parsing display effect control, etc., which are not limited here. Furthermore, the identity information may be used to optimize the label instruction parsing control parameters, so that the optimized label instruction parsing control parameters have identity attributes, meet the personalized needs of users, help improve the user experience, and enhance the intelligence of the printer.
[0043] For example, if the priority of the user identity information is higher than the priority of the task currently being processed by the printer, the target instruction tag parsing task can be processed first. For another example, the user identity information can reflect the user portrait, and then, during the parsing process, the processing parameters corresponding to the user portrait can be presented, and based on the processing parameters, the presentation effect corresponding to the user identity information can be obtained.
[0044] In some possible examples, the above step 102, determining the target tag instruction parsing control parameter corresponding to the target tag instruction parsing algorithm according to the target identity information, may include the following steps:
[0045] Obtaining initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm;
[0046] Determining a first adjustment parameter corresponding to the target identity information;
[0047] The initial tag instruction parsing control parameter is adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameter.
[0048] In a specific implementation, different label instruction parsing algorithms may correspond to different label instruction parsing control parameters, and thus, the initial label instruction parsing control parameters corresponding to the target label instruction parsing algorithm may be obtained.
[0049] Among them, different identity information can make corresponding adjustments to the initial label instruction parsing control parameters, that is, the mapping relationship between the preset identity information and the adjustment parameters can be pre-stored, and then, the first adjustment parameter corresponding to the target identity information can be determined based on the mapping relationship, and then part or all of the parameters in the initial label instruction parsing control parameters can be adjusted according to the first adjustment parameter to obtain the target label instruction parsing control parameter, the target label instruction parsing control parameter = (1 + first adjustment parameter) * initial label instruction parsing control parameter, in this way, the identity information can be used to optimize the label instruction parsing control parameters, so that the optimized label instruction parsing control parameters have identity attributes, meet the user's personalized needs, help to improve user experience, and enhance the intelligence of the printer.
[0050] In some possible examples, the above step of adjusting the initial tag instruction parsing control parameter according to the first adjustment parameter to obtain the target tag instruction parsing control parameter may include the following steps:
[0051] The initial tag instruction parsing control parameter is adjusted according to the first adjustment parameter to obtain a first tag instruction parsing control parameter;
[0052] Acquire target environment parameters of the target printer;
[0053] Determining a first fine-tuning parameter corresponding to the target environmental parameter;
[0054] The first label instruction parsing control parameter is adjusted according to the first fine-tuning parameter to obtain the target label instruction parsing control parameter.
[0055] The environmental parameters of the target printer may include at least one of the following: hardware environment parameters, software environment parameters, physical environment parameters, etc., which are not limited here. The hardware environment parameters may include at least one of the following: the model of the target printer, processor parameters, memory parameters, etc., which are not limited here. The software environment parameters may include at least one of the following: software configuration parameters, system parameters, etc. of the target printer, which are not limited here. The physical environment parameters may include at least one of the following: the printing temperature of the target printer, the printing humidity of the target printer, the ambient light brightness of the target printer, the ink parameters of the target printer, etc., which are not limited here.
[0056] In a specific implementation, the initial label instruction parsing control parameter can be adjusted according to the first adjustment parameter to obtain the first label instruction parsing control parameter, for example, the first label instruction parsing control parameter = (1 + first adjustment parameter) * initial label instruction parsing control parameter. Of course, the target environment parameters of the target printer can also be obtained, and the mapping relationship between the preset environment parameters and the fine-tuning parameters can be pre-stored, and the first fine-tuning parameter corresponding to the target environment parameter can be determined based on the mapping relationship. The first label instruction parsing control parameter is adjusted according to the first fine-tuning parameter to obtain the target label instruction parsing control parameter, for example, the target label instruction parsing control parameter = (1 + first fine-tuning parameter) * first label instruction parsing control parameter. In this way, not only can the identity information be used to optimize the label instruction parsing control parameter so that the optimized label instruction parsing control parameter has identity attributes to meet the personalized needs of users, but the label instruction parsing control parameter can also be dynamically fine-tuned based on the printer's own environmental parameters, so that the final label instruction parsing control parameter is deeply consistent with the actual printing environment, further improving the user experience and the intelligence of the printer.
[0057] In some possible examples, the target environment parameter includes a target external environment parameter and a target internal environment parameter; and determining a first fine-tuning parameter corresponding to the target environment parameter includes:
[0058] determining initial fine-tuning parameters corresponding to the target internal environment parameters;
[0059] Determining a first optimization parameter corresponding to the target external environment parameter;
[0060] Acquiring target network parameters between the electronic device and the target printer;
[0061] Determining a second optimization parameter corresponding to the target network parameter;
[0062] The first fine-tuning parameter is determined according to the first optimization parameter, the second optimization parameter and the initial fine-tuning parameter.
[0063] The internal environment parameters of the target printer may include at least one of the following: hardware environment parameters, software environment parameters, etc., which are not limited here.
[0064] The external environment parameters of the target printer may include: physical environment parameters.
[0065] The target network parameters may include at least one of the following: network bandwidth, network rate, packet loss rate, network path, network topology, etc., which are not limited here.
[0066] In a specific implementation, a mapping relationship between preset internal environment parameters and fine-tuning parameters can be pre-stored, and then, initial fine-tuning parameters corresponding to target internal environment parameters can be determined based on the mapping relationship. A mapping relationship between preset external environment parameters and optimization parameters can also be pre-stored, and then, first optimization parameters corresponding to target external environment parameters can be determined based on the mapping relationship to obtain target network parameters between the electronic device and the target printer. A mapping relationship between preset network parameters and optimization parameters can be pre-stored, and second optimization parameters corresponding to the target network parameters can be determined based on the mapping relationship. Finally, the first fine-tuning parameter can be determined based on the first optimization parameter, the second optimization parameter and the initial fine-tuning parameter, that is, the first fine-tuning parameter = (1 + first optimization parameter) * (1 + second optimization parameter) * initial fine-tuning parameter. In this way, not only can the identity information be used to optimize the label instruction parsing control parameters, so that the optimized label instruction parsing control parameters have identity attributes to meet the personalized needs of users, but the label instruction parsing control parameters can also be dynamically fine-tuned based on the printer's own environmental parameters, so that the final label instruction parsing control parameters are deeply consistent with the actual printing environment, further improving the user experience and the intelligence of the printer.
[0067] 104. Execute the target tag instruction parsing algorithm according to the target tag instruction parsing control parameter to parse the target tag instruction to obtain the target processing parameter for the target tag content and the target tag content.
[0068] In the embodiment of the present application, different label instructions may correspond to different processing parameters. For example, for a label instruction for a preview function, the processing parameters are mainly for the preview effect. For another example, for a label instruction for a print function, the processing parameters are mainly for the print effect, and so on. For example, for a label instruction for a preview function, the target processing parameters may include at least one of the following: preview processing steps, preview font size, preview typesetting parameters, preview font color, preview duration, preview scrolling parameters, and so on, which are not limited here. For example, for a label instruction for a print function, the target processing parameters may include at least one of the following: print processing steps, print font size, print typesetting parameters, print font color, print duration, print temperature, print ink control parameters, and so on, which are not limited here.
[0069] In the specific implementation, the target label instruction parsing algorithm can be executed according to the target label instruction parsing control parameters to parse the target label instruction to obtain the target processing parameters and target label content for the target label content. In this way, the label instruction parsing control parameters optimized with identity information can be used to execute the corresponding label instruction parsing algorithm, so that the parsing effect deeply adapts to the user identity and meets the user's personalized needs, which helps to improve the user experience and enhance the intelligence of the printer.
[0070] In some possible examples, when the target label instruction includes a print instruction, processing the target label content according to the target processing parameter to determine a target processing result includes:
[0071] Get target attribute information of target printing paper;
[0072] Determining a first feedback adjustment parameter corresponding to the target attribute information;
[0073] Adjusting the target processing parameter according to the first feedback adjustment parameter to obtain a first processing parameter;
[0074] The target tag content is processed according to the first processing parameter to determine the target processing result.
[0075] In the embodiment of the present application, the attribute information of the target printing paper may include at least one of the following: paper brand, paper material, paper color, paper size, paper thickness, etc., which are not limited here.
[0076] In a specific implementation, when the target label instruction includes a printing instruction, the target attribute information of the target printing paper can be obtained, and the mapping relationship between the preset attribute information and the feedback adjustment parameter can be pre-stored. Then, the first feedback adjustment parameter corresponding to the target attribute information can be determined based on the mapping relationship, and then the target processing parameter is adjusted according to the first feedback adjustment parameter to obtain the first processing parameter, that is, the first processing parameter = (1 + first feedback adjustment parameter) * target processing parameter. Finally, the target label content can be processed according to the first processing parameter to determine the target processing result. In this way, the corresponding control parameters related to the printing effect (that is, the processing parameters) can be optimized and adjusted in combination with the paper characteristics, so that the final printing effect depth is consistent with the paper characteristics, further guaranteeing the printing effect in depth, improving the user experience, and thus improving the intelligence of the printer.
[0077] 105. Process the target tag content according to the target processing parameter to determine a target processing result.
[0078] In the embodiment of the present application, the target label content can be processed according to the target processing parameters to determine the target processing result. Since the label instruction parsing control parameters optimized by identity information are used to execute the corresponding label instruction parsing algorithm, the parsing effect is deeply adapted to the user identity, and the processing effect is also deeply adapted to the user identity, thereby meeting the user's personalized needs, helping to improve the user experience, and enhancing the intelligence of the printer.
[0079] In some possible examples, the following steps may also be included:
[0080] Detecting whether the target environmental parameters meet the preset conditions corresponding to the target processing parameters;
[0081] When the target environment parameter satisfies the preset condition, executing the step of processing the target tag content according to the target processing parameter to determine the target processing result;
[0082] When the target environment parameter does not meet the preset condition, a prompt operation is performed.
[0083] The preset conditions can be preset or set by system default. Different processing parameters can correspond to different conditions. For example, the conditions required for previewing the corresponding label instruction and printing the corresponding label instruction are different. Taking printing as an example, it is necessary to consider whether there is enough ink, paper, and the brightness of the printing environment.
[0084] In an embodiment of the present application, it is possible to detect whether the target environment parameters meet the preset conditions corresponding to the target processing parameters. When the target environment parameters meet the preset conditions, it means that the conditions for completing the entire target label instruction are met, and the steps of processing the target label content according to the target processing parameters and determining the target processing results are executed. Conversely, when the target environment parameters do not meet the preset conditions, it means that the conditions for completing the entire target label instruction are not met, and a prompt operation can be performed to prompt the user to eliminate the corresponding problem. Thus, when the target environment parameters meet the preset conditions, the steps of processing the target label content according to the target processing parameters and determining the target processing results can be executed. In this way, not only can the label instruction be carried out smoothly, but also queuing can be avoided, which helps to improve the efficiency of the printer.
[0085] Among them, the prompt operation may include at least one of the following: prompting the user to replenish paper, prompting the user to replenish ink, prompting printer failure, prompting printer network failure, prompting the user to wait, prompting the user to terminate this label instruction, etc., which are not limited here.
[0086] In the specific implementation, the difference parameters between the target environmental parameters and the preset conditions can also be determined. The difference parameters are used to reflect which environmental parameters do not meet the preset conditions. Then, corresponding prompt operations are generated based on the difference parameters. In this way, users can be prompted intelligently and in a targeted manner in a timely manner, which helps to improve user experience and enhance printing intelligence.
[0087] It can be seen that the printer label instruction parsing method described in the embodiment of the present application is applied to an electronic device to obtain a target label instruction for a target printer input by a target user, the target label instruction including the target identity information, target label attribute information and target label content of the target user, determine a target label instruction parsing algorithm corresponding to the target label attribute information, determine a target label instruction parsing control parameter corresponding to the target label instruction parsing algorithm according to the target identity information, execute the target label instruction parsing algorithm according to the target label instruction parsing control parameter to parse the target label instruction, obtain a target processing parameter and a target label content for the target label content, process the target label content according to the target processing parameter, and determine a target processing result. First, corresponding label instruction parsing algorithms can be configured for different label instructions. Second, the label instruction parsing control parameter is optimized using identity information, so that the optimized label instruction parsing control parameter has identity attributes. Third, since the corresponding label instruction parsing algorithm is executed using the label instruction parsing control parameter optimized by the identity information, the parsing effect is deeply adapted to the user identity, and the processing effect is also deeply adapted to the user identity, thereby meeting the personalized needs of users, helping to improve user experience, and improving the intelligence of the printer.
[0088] In accordance with the above embodiment, please refer to Figure 2 , Figure 2 : is a structural diagram of an electronic device provided in an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor. In the embodiment of the present application, the program includes instructions for executing the following steps:
[0089] Acquire a target label instruction for a target printer input by a target user, wherein the target label instruction includes target identity information of the target user, target label attribute information, and target label content;
[0090] Determine a target tag instruction parsing algorithm corresponding to the target tag attribute information;
[0091] Determine, according to the target identity information, a target label instruction parsing control parameter corresponding to the target label instruction parsing algorithm;
[0092] Execute the target tag instruction parsing algorithm to parse the target tag instruction according to the target tag instruction parsing control parameter to obtain the target processing parameter for the target tag content and the target tag content;
[0093] The target tag content is processed according to the target processing parameters to determine a target processing result.
[0094] In some possible examples, in determining the target tag instruction parsing control parameter corresponding to the target tag instruction parsing algorithm according to the target identity information, the program includes instructions for performing the following steps:
[0095] Obtaining initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm;
[0096] Determining a first adjustment parameter corresponding to the target identity information;
[0097] The initial tag instruction parsing control parameter is adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameter.
[0098] In some possible examples, in the aspect of adjusting the initial tag instruction parsing control parameter according to the first adjustment parameter to obtain the target tag instruction parsing control parameter, the above program includes instructions for executing the following steps:
[0099] The initial tag instruction parsing control parameter is adjusted according to the first adjustment parameter to obtain a first tag instruction parsing control parameter;
[0100] Acquire target environment parameters of the target printer;
[0101] Determining a first fine-tuning parameter corresponding to the target environmental parameter;
[0102] The first label instruction parsing control parameter is adjusted according to the first fine-tuning parameter to obtain the target label instruction parsing control parameter.
[0103] In some possible examples, the target environment parameter includes a target external environment parameter and a target internal environment parameter; in determining the first fine-tuning parameter corresponding to the target environment parameter, the program includes instructions for performing the following steps:
[0104] determining initial fine-tuning parameters corresponding to the target internal environment parameters;
[0105] Determining a first optimization parameter corresponding to the target external environment parameter;
[0106] Acquiring target network parameters between the electronic device and the target printer;
[0107] Determining a second optimization parameter corresponding to the target network parameter;
[0108] The first fine-tuning parameter is determined according to the first optimization parameter, the second optimization parameter and the initial fine-tuning parameter.
[0109] In some possible examples, when the target label instruction includes a printing instruction, in processing the target label content according to the target processing parameter and determining the target processing result, the program includes instructions for performing the following steps:
[0110] Get target attribute information of target printing paper;
[0111] Determining a first feedback adjustment parameter corresponding to the target attribute information;
[0112] Adjusting the target processing parameter according to the first feedback adjustment parameter to obtain a first processing parameter;
[0113] The target tag content is processed according to the first processing parameter to determine the target processing result.
[0114] In some possible examples, the above program also includes instructions for performing the following steps:
[0115] Detecting whether the target environmental parameters meet the preset conditions corresponding to the target processing parameters;
[0116] When the target environment parameter satisfies the preset condition, executing the step of processing the target tag content according to the target processing parameter to determine the target processing result;
[0117] When the target environment parameter does not meet the preset condition, a prompt operation is performed.
[0118] It can be seen that the electronic device described in the embodiment of the present application obtains a target label instruction for a target printer input by a target user, the target label instruction including the target identity information, target label attribute information and target label content of the target user, determines a target label instruction parsing algorithm corresponding to the target label attribute information, determines a target label instruction parsing control parameter corresponding to the target label instruction parsing algorithm according to the target identity information, executes the target label instruction parsing algorithm according to the target label instruction parsing control parameter to parse the target label instruction, obtains a target processing parameter and a target label content for the target label content, processes the target label content according to the target processing parameter, and determines a target processing result. First, corresponding label instruction parsing algorithms can be configured for different label instructions. Second, the label instruction parsing control parameter is optimized using identity information, so that the optimized label instruction parsing control parameter has identity attributes. Third, since the corresponding label instruction parsing algorithm is executed using the label instruction parsing control parameter optimized using identity information, the parsing effect is deeply adapted to the user identity, and the processing effect is also deeply adapted to the user identity, thereby meeting the personalized needs of users, helping to improve user experience, and improving the intelligence of the printer.
[0119] Figure 3 1 is a functional unit block diagram of a printer label instruction parsing device 300 involved in an embodiment of the present application. The printer label instruction parsing device 300 is applied to an electronic device, and the printer label instruction parsing device 300 includes: an acquisition unit 301, a determination unit 302, a parsing unit 303 and a processing unit 304, wherein:
[0120] The acquisition unit 301 is used to acquire a target label instruction for a target printer input by a target user, wherein the target label instruction includes target identity information, target label attribute information and target label content of the target user;
[0121] The determination unit 302 is used to determine a target tag instruction parsing algorithm corresponding to the target tag attribute information; determine a target tag instruction parsing control parameter corresponding to the target tag instruction parsing algorithm according to the target identity information;
[0122] The parsing unit 303 is used to execute the target tag instruction parsing algorithm to parse the target tag instruction according to the target tag instruction parsing control parameter to obtain the target processing parameter for the target tag content and the target tag content;
[0123] The processing unit 304 is used to process the target tag content according to the target processing parameter to determine a target processing result.
[0124] In some possible examples, in determining the target tag instruction parsing control parameter corresponding to the target tag instruction parsing algorithm according to the target identity information, the determining unit 302 is specifically configured to:
[0125] Obtaining initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm;
[0126] Determining a first adjustment parameter corresponding to the target identity information;
[0127] The initial tag instruction parsing control parameter is adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameter.
[0128] In some possible examples, in adjusting the initial tag instruction parsing control parameter according to the first adjustment parameter to obtain the target tag instruction parsing control parameter, the determining unit 302 is specifically used to:
[0129] The initial tag instruction parsing control parameter is adjusted according to the first adjustment parameter to obtain a first tag instruction parsing control parameter;
[0130] Acquire target environment parameters of the target printer;
[0131] Determining a first fine-tuning parameter corresponding to the target environmental parameter;
[0132] The first label instruction parsing control parameter is adjusted according to the first fine-tuning parameter to obtain the target label instruction parsing control parameter.
[0133] In some possible examples, the target environment parameter includes a target external environment parameter and a target internal environment parameter; in determining the first fine-tuning parameter corresponding to the target environment parameter, the determining unit 302 is specifically used to:
[0134] determining initial fine-tuning parameters corresponding to the target internal environment parameters;
[0135] Determining a first optimization parameter corresponding to the target external environment parameter;
[0136] Acquiring target network parameters between the electronic device and the target printer;
[0137] Determining a second optimization parameter corresponding to the target network parameter;
[0138] The first fine-tuning parameter is determined according to the first optimization parameter, the second optimization parameter and the initial fine-tuning parameter.
[0139] In some possible examples, when the target label instruction includes a print instruction, in processing the target label content according to the target processing parameter and determining the target processing result, the processing unit 304 is specifically configured to:
[0140] Get target attribute information of target printing paper;
[0141] Determining a first feedback adjustment parameter corresponding to the target attribute information;
[0142] Adjusting the target processing parameter according to the first feedback adjustment parameter to obtain a first processing parameter;
[0143] The target tag content is processed according to the first processing parameter to determine the target processing result.
[0144] In some possible examples, the printer label instruction parsing device 300 is further specifically used for:
[0145] Detecting whether the target environmental parameters meet the preset conditions corresponding to the target processing parameters;
[0146] When the target environment parameter satisfies the preset condition, executing the step of processing the target tag content according to the target processing parameter to determine the target processing result;
[0147] When the target environment parameter does not meet the preset condition, a prompt operation is performed.
[0148] It can be seen that the printer label instruction parsing device described in the embodiment of the present application is applied to an electronic device to obtain a target label instruction for a target printer input by a target user, the target label instruction including the target identity information, target label attribute information and target label content of the target user, determine a target label instruction parsing algorithm corresponding to the target label attribute information, determine a target label instruction parsing control parameter corresponding to the target label instruction parsing algorithm according to the target identity information, execute the target label instruction parsing algorithm according to the target label instruction parsing control parameter to parse the target label instruction, obtain a target processing parameter and a target label content for the target label content, process the target label content according to the target processing parameter, and determine a target processing result. First, corresponding label instruction parsing algorithms can be configured for different label instructions. Second, the label instruction parsing control parameter is optimized using identity information, so that the optimized label instruction parsing control parameter has identity attributes. Third, since the corresponding label instruction parsing algorithm is executed using the label instruction parsing control parameter optimized by the identity information, the parsing effect is deeply adapted to the user identity, and the processing effect is also deeply adapted to the user identity, thereby meeting the personalized needs of the user, helping to improve the user experience, and improving the intelligence of the printer.
[0149] It can be understood that the functions of each program module of the printer label instruction parsing device of this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0150] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments.
[0151] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the above method embodiment. The computer program product may be a software installation package.
[0152] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0153] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0154] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0155] The units described above 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 on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0157] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0158] A person 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 memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0159] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A printer label instruction parsing method, characterized in that: Applied to electronic equipment, the method comprises: Acquire a target label instruction for a target printer input by a target user, wherein the target label instruction includes target identity information of the target user, target label attribute information, and target label content; Determine a target tag instruction parsing algorithm corresponding to the target tag attribute information; Determine, according to the target identity information, a target label instruction parsing control parameter corresponding to the target label instruction parsing algorithm; Execute the target tag instruction parsing algorithm to parse the target tag instruction according to the target tag instruction parsing control parameter to obtain the target processing parameter for the target tag content and the target tag content; The target tag content is processed according to the target processing parameters to determine a target processing result.
2. The method according to claim 1, characterized in that: The step of determining the target label instruction parsing control parameter corresponding to the target label instruction parsing algorithm according to the target identity information includes: Obtaining initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm; Determining a first adjustment parameter corresponding to the target identity information; The initial tag instruction parsing control parameter is adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameter.
3. The method according to claim 2, characterized in that The step of adjusting the initial tag instruction parsing control parameter according to the first adjustment parameter to obtain the target tag instruction parsing control parameter includes: The initial tag instruction parsing control parameter is adjusted according to the first adjustment parameter to obtain a first tag instruction parsing control parameter; Acquire target environment parameters of the target printer; Determining a first fine-tuning parameter corresponding to the target environmental parameter; The first label instruction parsing control parameter is adjusted according to the first fine-tuning parameter to obtain the target label instruction parsing control parameter.
4. The method according to claim 3, characterized in that: The target environment parameters include target external environment parameters and target internal environment parameters; The determining of a first fine-tuning parameter corresponding to the target environment parameter comprises: determining initial fine-tuning parameters corresponding to the target internal environment parameters; Determining a first optimization parameter corresponding to the target external environment parameter; Acquiring target network parameters between the electronic device and the target printer; Determining a second optimization parameter corresponding to the target network parameter; The first fine-tuning parameter is determined according to the first optimization parameter, the second optimization parameter and the initial fine-tuning parameter.
5. The method according to claim 4, characterized in that When the target label instruction includes a print instruction, processing the target label content according to the target processing parameter to determine the target processing result includes: Get target attribute information of target printing paper; Determining a first feedback adjustment parameter corresponding to the target attribute information; Adjusting the target processing parameter according to the first feedback adjustment parameter to obtain a first processing parameter; The target tag content is processed according to the first processing parameter to determine the target processing result.
6. The method according to any one of claims 3 to 5, characterized in that: The method further comprises: Detecting whether the target environmental parameters meet the preset conditions corresponding to the target processing parameters; When the target environment parameter satisfies the preset condition, executing the step of processing the target tag content according to the target processing parameter to determine the target processing result; When the target environment parameter does not meet the preset condition, a prompt operation is performed.
7. A printer label instruction parsing device, characterized in that: Applied to electronic equipment, the device comprises: an acquisition unit, a determination unit, a parsing unit and a processing unit, wherein: The acquisition unit is used to acquire a target label instruction for a target printer input by a target user, wherein the target label instruction includes target identity information of the target user, target label attribute information and target label content; The determination unit is used to determine a target tag instruction parsing algorithm corresponding to the target tag attribute information; and determine a target tag instruction parsing control parameter corresponding to the target tag instruction parsing algorithm according to the target identity information; The parsing unit is used to execute the target tag instruction parsing algorithm to parse the target tag instruction according to the target tag instruction parsing control parameter to obtain the target processing parameter for the target tag content and the target tag content; The processing unit is used to process the target tag content according to the target processing parameter to determine a target processing result.
8. The device according to claim 7, characterized in that In the aspect of determining the target label instruction parsing control parameter corresponding to the target label instruction parsing algorithm according to the target identity information, the determining unit is specifically used to: Obtaining initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm; Determining a first adjustment parameter corresponding to the target identity information; The initial tag instruction parsing control parameter is adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameter.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the program comprises instructions for executing the steps in the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Drawing data processing method and device and electronic equipment
CN114461136A
Offline template generation method, electronic equipment and storage medium
CN115729487A
Label generation printing control system and method
CN116204141A
System and method for automatic selection of printer control parameters
US5488223A