Information processing method, printing processing method, and device
By performing step-by-step downgrade processing on the cloud printer's order information on the server side, a target instruction set suitable for the memory threshold is generated, which solves the printing failure and lag problems caused by the cloud printer's excessive order information and improves printing efficiency.
Patent Information
- Application Number
- CN202410741999.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-07
AI Technical Summary
When the cloud printer processes a large amount of order information, the instruction set takes up too much memory, causing printing failures or lags, affecting printing efficiency.
Generate an instruction set corresponding to the original order information on the server side, and determine whether it exceeds the preset memory threshold. If it exceeds, the order information will be processed through step-by-step downgrade until the memory occupied by the instruction set does not exceed the threshold, and the target instruction set will be generated and provided. Print to the cloud printer.
It effectively solves the printing failure and lag problems caused by excessive order information, improves the printing efficiency of cloud printers, and reduces crashes.
Smart Images

Figure CN118312115B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information processing method, a printing processing method, an information processing device, a printing processing device, an electronic device, and a computer storage medium. Background Art
[0002] With the development of cloud printing technology, cloud printing technology can be used for printing through various models of cloud printers. When printing an order to be printed, the cloud printer needs to parse the instruction set corresponding to the order information of the order to be printed sent by the server into the memory of the cloud printer, and then execute the printing operation.
[0003] However, when using a cloud printer to print an order, the order information is too large and the memory occupied by the instruction set corresponding to the order information exceeds the storage capacity of the cloud printer memory, resulting in the cloud printer failing to print or freezing.
[0004] Therefore, how to solve the problem of cloud printer printing failure or cloud printer freezing due to the large amount of order information is an urgent problem that needs to be solved. Summary of the invention
[0005] The present application provides an information processing method, which solves the problem of cloud printer printing failure or cloud printer jamming due to excessive order information content, thereby improving the printing efficiency of orders; the present application also provides a printing processing method, an information processing device, a printing processing device, an electronic device and a computer storage medium.
[0006] The present application provides an information processing method, which is applied to a server, and the method includes: obtaining original order information to be printed provided by a cloud printer; generating a first instruction set corresponding to the original order information based on the original order information; judging whether the memory occupied by the first instruction set exceeds a preset memory threshold; if the memory occupied by the first instruction set exceeds the preset memory threshold, downgrading the original order information to obtain downgraded target order information; based on the downgraded target order information, obtaining a target instruction set corresponding to the downgraded target order information, wherein the memory occupied by the target instruction set does not exceed the preset memory threshold; and providing the target instruction set to the cloud printer so that the cloud printer prints the order to be printed based on the target instruction set.
[0007] Optionally, the downgrading the original order information to obtain downgraded target order information includes: downgrading the original order information step by step according to a preset order information downgrade priority to obtain downgraded target order information.
[0008] Optionally, the downgrading the original order information step by step according to the preset order information downgrade priority to obtain the downgraded target order information includes: downgrading the original order information according to the first order information downgrade level to obtain the downgraded first order information; determining whether the memory occupied by the second instruction set corresponding to the downgraded first order information exceeds the preset memory threshold; if the memory occupied by the second instruction set does not exceed the preset memory threshold, using the downgraded first order information as the downgraded target order information; if the memory occupied by the second instruction set exceeds the preset memory threshold, downgrading the downgraded first order information according to the second order information downgrade level. Processing to obtain the second order information after the downgrade; judging whether the memory occupied by the third instruction set corresponding to the second order information after the downgrade exceeds the preset memory threshold; if the memory occupied by the third instruction set does not exceed the preset memory threshold, taking the second order information after the downgrade as the target order information after the downgrade; if the memory occupied by the third instruction set exceeds the preset memory threshold, downgrading the second order information after the downgrade according to the downgrade level of the third order information to obtain the third order information after the downgrade; and so on, until the memory occupied by the instruction set corresponding to the downgraded order information does not exceed the preset memory threshold, then taking the order information downgraded for the last time as the target order information after the downgrade.
[0009] Optionally, downgrading the original order information according to the downgrade level of the first order information to obtain the downgraded first order information includes: traversing the original order information to determine whether there is information of the same type in the original order information; if there is information of the same type in the original order information, merging the information of the same type to obtain the merged order information, and using the merged order information as the downgraded first order information.
[0010] Optionally, the downgrading the downgraded first order information according to the downgrade level of the second order information to obtain the downgraded second order information includes: traversing the downgraded first order information to determine whether there is an image in the downgraded first order information; if there is an image in the downgraded first order information, performing image downgrading on the image to obtain the downgraded second order information.
[0011] Optionally, downgrading the downgraded second order information according to the downgrade level of the third order information to obtain the downgraded third order information includes: traversing the downgraded second order information to determine whether there is non-core order information in the downgraded second order information; if there is non-core order information in the downgraded second order information, deleting the non-core order information in the downgraded second order information to obtain the downgraded third order information.
[0012] Optionally, after obtaining the downgraded first order information, the method further includes: generating a second instruction set corresponding to the downgraded first order information based on the downgraded first order information; after obtaining the downgraded second order information, the method further includes: generating a third instruction set corresponding to the downgraded second order information based on the downgraded second order information; after obtaining the downgraded third order information, the method further includes: generating a fourth instruction set corresponding to the downgraded third order information based on the downgraded third order information.
[0013] Optionally, the image includes a logo image used to represent a logo; and the image degradation processing on the image includes: converting the logo image into logo text used to represent a logo.
[0014] Optionally, the image includes a coded image for performing a scanning operation; and the image degradation processing on the image includes: performing dimensionality reduction processing on the dimensionality of the coded image.
[0015] Optionally, it also includes: determining whether the dimension of the encoded image exceeds a preset dimension; if the dimension of the encoded image exceeds the preset dimension, executing the step of dimensionality reduction processing on the dimension of the encoded image; if the dimension of the encoded image does not exceed the preset dimension, converting the encoded image into text associated with the encoded image, wherein the encoded image is used to obtain the text associated with the encoded image after performing a scanning operation.
[0016] The present application provides a printing processing method, which is applied to a cloud printer, and the method includes: sending original order information to be printed to a server so that the server obtains the original order information, and generating a first instruction set corresponding to the original order information based on the original order information; judging whether the memory occupied by the first instruction set exceeds a preset memory threshold; if the memory occupied by the first instruction set exceeds the preset memory threshold, downgrading the original order information to obtain downgraded target order information; based on the downgraded target order information, obtaining a target instruction set corresponding to the downgraded target order information, wherein the memory occupied by the target instruction set does not exceed the preset memory threshold; obtaining the target instruction set provided by the server; and printing the order to be printed based on the target instruction set.
[0017] Optionally, after the order to be printed is printed, the method further includes: voice broadcasting of the order to be printed that has been printed.
[0018] The present application provides an information processing device, which is applied to a server, and the device includes: an original order information acquisition unit, which is used to acquire the original order information to be printed provided by a cloud printer; a first instruction set generation unit, which is used to generate a first instruction set corresponding to the original order information based on the original order information; a first judgment unit, which is used to judge whether the memory occupied by the first instruction set exceeds a preset memory threshold; a downgraded target order information acquisition unit, which is used to downgrade the original order information if the memory occupied by the first instruction set exceeds the preset memory threshold to obtain the downgraded target order information; a target instruction set acquisition unit, which is used to obtain a target instruction set corresponding to the downgraded target order information based on the downgraded target order information, and the memory occupied by the target instruction set does not exceed the preset memory threshold; a target instruction set providing unit, which is used to provide the target instruction set to the cloud printer, so that the cloud printer prints the order to be printed based on the target instruction set.
[0019] The present application provides a printing processing device, which is applied to a cloud printer. The device includes: an original order information sending unit, which is used to send the original order information to be printed to a server, so that the server obtains the original order information, and generates a first instruction set corresponding to the original order information based on the original order information; determines whether the memory occupied by the first instruction set exceeds a preset memory threshold; if the memory occupied by the first instruction set exceeds the preset memory threshold, downgrades the original order information to obtain downgraded target order information; based on the downgraded target order information, obtains a target instruction set corresponding to the downgraded target order information, and the memory occupied by the target instruction set does not exceed the preset memory threshold; a target instruction set obtaining unit, which is used to obtain the target instruction set provided by the server; and a printing unit, which is used to print the order to be printed based on the target instruction set.
[0020] The present application provides an electronic device, comprising: a processor; a memory for storing a computer program, wherein the computer program is run by the processor to execute the above-mentioned information processing method and printing processing method.
[0021] The present application provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is run by a processor to execute the above-mentioned information processing method and printing processing method.
[0022] Compared with the prior art, the embodiments of the present application have the following advantages:
[0023] The present application provides an information processing method. When processing original order information to be printed provided by a cloud printer, the information processing method can generate a first instruction set corresponding to the original order information based on the original order information after obtaining the original order information to be printed provided by the cloud printer, and then determine whether the memory occupied by the first instruction set exceeds a preset memory threshold. When the memory occupied by the first instruction set exceeds the preset memory threshold, the original order information is downgraded to obtain downgraded target order information. Based on the downgraded target order information, a target instruction set corresponding to the downgraded target order information is obtained, and the memory occupied by the target instruction set does not exceed the preset memory threshold. Finally, the target instruction set is provided to the cloud printer, so that the cloud printer prints the order to be printed based on the target instruction set. The method solves the problem of order printing failure caused by excessive order information content and thus excessive corresponding instruction set by downgrading the original order information corresponding to the order information. The printing efficiency of the order is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] 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 recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0025] Figure 1 A schematic diagram of the first scenario of the information processing method provided in this application.
[0026] Figure 2 A schematic diagram of the second scenario of the information processing method provided in this application.
[0027] Figure 3 Schematic diagram of the original order information provided for this application.
[0028] Figure 4 Schematic diagram of the downgraded target order information provided for this application.
[0029] Figure 5 This is a flowchart of the information processing method provided in the first embodiment of the present application.
[0030] Figure 6 This is a flowchart of the printing processing method provided in the second embodiment of the present application.
[0031] Figure 7 A schematic diagram of an information processing device provided in the third embodiment of the present application.
[0032] Figure 8 A schematic diagram of a printing processing device provided in the fourth embodiment of the present application.
[0033] Fig. 9 A schematic diagram of an electronic device provided in accordance with the fifth embodiment of the present application. DETAILED DESCRIPTION
[0034] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific implementation disclosed below.
[0035] The present application provides an information processing method, a printing processing method, an information processing device, a printing processing device, an electronic device, and a computer storage medium. The following describes the information processing method, the printing processing method, the information processing device, the printing processing device, the electronic device, and the computer storage medium through specific embodiments. The printing processing method, the information processing device, the printing processing device, the electronic device, and the computer storage medium are all implemented based on the information processing method. In order to more clearly demonstrate the information processing method provided by the embodiment of the present application, the application scenario of the information processing method provided by the embodiment of the present application is first introduced.
[0036] Before introducing the application scenarios of the information processing method provided by the embodiment of the present application, the implementation background of the embodiment of the present application is briefly introduced. With the development of cloud printing technology, cloud printing technology can refer to printing through various models of cloud printers. When printing an order to be printed, the cloud printer needs to parse the instruction set corresponding to the order information of the order to be printed issued by the server into the memory of the cloud printer, and then execute the printing operation. However, when using a cloud printer to print an order, due to the large content of the order information, the memory occupied by the instruction set corresponding to the order information exceeds the storage capacity of the cloud printer memory. Usually, the cloud printer hardware RAM (Random Access Memory) can cache up to 30K. When the instruction set corresponding to the order information exceeds 30K, the cloud printer will freeze, resulting in a failure to print the order.
[0037] Based on this, an embodiment of the present application provides an information processing method. When processing the original order information to be printed provided by the cloud printer, the information processing method can generate a first instruction set corresponding to the original order information based on the original order information after obtaining the original order information to be printed provided by the cloud printer, and then determine whether the memory occupied by the first instruction set exceeds the preset memory threshold, and when the memory occupied by the first instruction set exceeds the preset memory threshold, downgrade the original order information according to the preset order information downgrade priority until the memory occupied by the instruction set corresponding to the downgraded order information does not exceed the preset memory threshold, and use the last downgraded order information as the downgraded target order information, and based on the downgraded target order information, obtain the target instruction set corresponding to the downgraded target order information, and the memory occupied by the target instruction set does not exceed the preset memory threshold, and finally provide the target instruction set to the cloud printer, so that the cloud printer prints the order to be printed based on the target instruction set.
[0038] The method solves the problem of order printing failure caused by excessive order information content and thus excessive corresponding instruction set by downgrading the original order information whose content is too large and thus the corresponding instruction set is too large. At the same time, it reduces the phenomenon of cloud printer jams and freezes, thereby improving the printing efficiency of orders.
[0039] The following combination Figures 1 to 4 A detailed introduction to the application scenarios of the information processing method provided by this application. Figure 1 , Figure 1 A schematic diagram of the first scenario of the information processing method provided in this application.
[0040] First, the cloud printer 10 executes step S101: sends the original order information to be printed to the server; then, the server 20 executes step S102: generates a first instruction set based on the original order information; determines whether the memory occupied by the first instruction set exceeds the preset memory threshold; if the memory occupied by the first instruction set exceeds the preset memory threshold, the original order information is downgraded to obtain the downgraded target order information; based on the downgraded target order information, the target instruction set is obtained, and the memory occupied by the target instruction set does not exceed the preset memory threshold. After that, the server 20 executes step S103: provides the target instruction set to the cloud printer; finally, the cloud printer 10 executes step S104: prints the order to be printed based on the target instruction set, and voice broadcasts the printed order to be printed.
[0041] The above is the overall implementation scenario of the information processing method provided in the embodiment of the present application. Figure 2 , Figure 3 and Figure 4 The server-side downgrade process for original order information is introduced in detail.
[0042] Please refer to Figure 2 , Figure 2 The second scenario diagram of the information processing method provided by the present application is shown in FIG. 1 . The information processing method is applied to the server. First, step S201 is executed: the original order information to be printed sent by the cloud printer is obtained. The content of the original order information can be found in FIG. Figure 3 , Figure 3 The original order information provided for this application is a schematic diagram. The original order information to be printed takes the order information in the customer order ticket to be printed in the catering delivery industry as an example. Figure 3 It can be seen that the original order information includes the bill type information "customer copy", the logo image representing the merchant logo ( Figure 3The product area includes the following information: a bear image on the left), business information "Bear Seafood", product information: "Crayfish × 1 ¥50, Crayfish × 1 ¥50, Seabass × 1 ¥40, Hairy Crab × 1 ¥80", customer information (including customer phone number and customer address), event discount information (including discounts for purchases over a certain amount, store discounts, and member discounts), QR codes, and other information.
[0043] Step S202: Generate a first instruction set corresponding to the original order information based on the original order information. After the first instruction set is generated, execute step S203: determine whether the memory occupied by the first instruction set exceeds the preset memory threshold; if the memory occupied by the first instruction set does not exceed the preset memory threshold (if not), use the first instruction set as the target instruction set, and execute step S209: issue the target instruction set, that is, issue the target instruction set, i.e., the first instruction set, to the cloud printer, so that the cloud printer prints the order to be printed based on the target instruction set. If the memory occupied by the first instruction set exceeds the preset memory threshold (if yes), execute step S204: merge the same type of information in the original order information to obtain the downgraded first order information, and generate the second instruction set based on the downgraded first order information.
[0044] If the memory occupied by the first instruction set corresponding to the original order information exceeds the preset memory threshold, the same type of information in the original order information is merged. For example, the same dish information is merged. The dish information in the original order information is: "crayfish × 1 ¥50 crayfish × 1 ¥50 sea bass × 1 ¥40 hairy crab × 1 ¥80", and "crayfish × 1 ¥50 crayfish × 1 ¥50" is merged into "crayfish × 2 ¥100". The specific merged dish information can be found in Figure 4 , Figure 4 The schematic diagram of the downgraded target order information provided by the present application is as follows: The merged order information is used as the downgraded first order information, and a second instruction set is generated based on the downgraded first order information.
[0045] After the second instruction set is generated, step S205 is executed: determine whether the memory occupied by the second instruction set exceeds the preset memory threshold. If the memory occupied by the second instruction set does not exceed the preset memory threshold, the second instruction set is used as the target instruction set and step S209 is executed; please refer to the above steps for details, which will not be described in detail here. If the memory occupied by the second instruction set exceeds the preset memory threshold, step S206 is executed: image downgrading processing is performed on the image in the downgraded first order information to obtain the downgraded second order information, and a third instruction set is generated based on the downgraded second order information.
[0046] If the memory occupied by the second instruction set corresponding to the downgraded first order information exceeds the preset memory threshold, the image in the downgraded first order information is downgraded. When downgrading the image, the identification image can be downgraded to the corresponding identification text, or the high-dimensional coded image can be downgraded to a low-dimensional coded image. For example, the identification image of the bear in the order information is downgraded to the identification text "bear", or the two-dimensional coded image (two-dimensional code image) is downgraded to a one-dimensional coded image (one-dimensional code image).
[0047] After the third instruction set is generated, step S207 is executed: determine whether the memory occupied by the third instruction set exceeds the preset memory threshold. If the memory occupied by the third instruction set does not exceed the preset memory threshold, the third instruction set is used as the target instruction set, and step S209 is executed; please refer to the above steps for details, which will not be described in detail here. If the memory occupied by the third instruction set exceeds the preset memory threshold, step S208 is executed: the non-core order information in the downgraded second order information is deleted to obtain the downgraded third order information, and the fourth instruction set is generated based on the downgraded third order information; and so on, until the memory occupied by the instruction set corresponding to the downgraded order information does not exceed the preset memory threshold, then the last downgraded order information is used as the downgraded target order information, and the target instruction set is generated based on the downgraded target order information.
[0048] If the memory occupied by the third instruction set corresponding to the downgraded second order information exceeds the preset memory threshold, the non-core order information in the downgraded second order information will be deleted, for example, the promotion information, "customer link", "dishes" and other non-core order information in the order information will be deleted.
[0049] If the memory occupied by the fourth instruction set corresponding to the third order information after the downgrade does not exceed the preset memory threshold, the fourth instruction set is used as the target instruction set and step S209 is executed; if the memory occupied by the fourth instruction set corresponding to the third order information after the downgrade exceeds the preset memory threshold, the downgraded third order information is continued to be downgraded until the memory occupied by the instruction set corresponding to the downgraded order information does not exceed the preset memory threshold, the last downgraded order information is used as the target order information after the downgrade, and the target instruction set is generated based on the downgraded target order information.
[0050] The above is the entire process of the information processing method provided by the present application. When processing the original order information to be printed provided by the cloud printer, the information processing method can generate a first instruction set corresponding to the original order information based on the original order information after obtaining the original order information to be printed provided by the cloud printer, and then determine whether the memory occupied by the first instruction set exceeds the preset memory threshold, and when the memory occupied by the first instruction set exceeds the preset memory threshold, downgrade the original order information according to the preset order information downgrade priority until the memory occupied by the instruction set corresponding to the downgraded order information does not exceed the preset memory threshold, and use the last downgraded order information as the target order information after downgrading.
[0051] Afterwards, based on the downgraded target order information, a target instruction set corresponding to the downgraded target order information is obtained, and the memory occupied by the target instruction set does not exceed the preset memory threshold. Finally, the target instruction set is provided to the cloud printer so that the cloud printer prints the order to be printed based on the target instruction set.
[0052] The method solves the problem of order printing failure caused by excessive order information content and thus excessive corresponding instruction set by downgrading the original order information whose content is too large and thus the corresponding instruction set is too large. At the same time, it reduces the phenomenon of cloud printer jams and freezes, thereby improving the printing efficiency of orders.
[0053] The above-mentioned Figures 1 to 4 That is, it is a diagram of an application scenario of the information processing method of the present application. The application scenario of the information processing method is not specifically limited in the embodiments of the present application. The application scenario of the above-mentioned information processing method is only an embodiment of the application scenario of the information processing method provided by the present application. The purpose of providing the application scenario embodiment is to facilitate the understanding of the information processing method provided by the present application, and is not used to limit the information processing method provided by the present application. Other application scenarios of the information processing method in the embodiments of the present application are not described one by one.
[0054] First embodiment
[0055] This embodiment provides an information processing method, as follows Figure 5 The applicable scenarios of the information processing method can refer to the above scenario embodiments, and some examples of this embodiment can refer to the above scenario embodiments.
[0056] Please refer to Figure 5 , which is a flowchart of the information processing method provided in the first embodiment of the present application.
[0057] The information processing method of the embodiment of the present application is applied to the server and includes the following steps.
[0058] Step S501: Obtain the original order information to be printed provided by the cloud printer.
[0059] This step is used to obtain the original order information to be printed provided by the cloud printer. In this embodiment, taking the catering delivery industry as an example, the original order information to be printed is the order information in the customer copy order ticket to be printed in the catering delivery industry as an example. The original order information to be printed can also be the order information in the merchant copy, kitchen copy and other order tickets to be printed. The order information can be the specific content information contained in the order ticket. In fact, the original order information to be printed can also refer to the specific content information contained in the order ticket to be printed in other industries.
[0060] In the embodiments of this application, the customer connection is taken as an example. Figure 3 The original order information includes the ticket type information "customer slip", the logo image representing the merchant logo, the merchant information "Little Bear Seafood", the dish area contains dish information: "Crayfish × 1 ¥50 Crayfish × 1 ¥50 Sea bass × 1 ¥40 Hairy crab × 1 ¥80", customer information, event discount information, QR code and other information.
[0061] Step S502: Based on the original order information, generate a first instruction set corresponding to the original order information.
[0062] This step is used to generate a first instruction set corresponding to the original order information based on the original order information.
[0063] It should be noted that after the server obtains the data to be printed, it needs to convert the data to be printed into an instruction set recognizable by the cloud printer, and then send the instruction set to the cloud printer. After receiving the instruction set sent by the server, the cloud printer can cache it and recognize the printing characters in the instruction set, thereby printing the data to be printed.
[0064] The instruction set may specifically be an ESC instruction set, which is a simplified version of the ESC print control command. Currently, most order ticket printing uses the ESC instruction set. A notable feature of the ESC instruction set is that a large portion of the instructions are a string of codes starting with the ESC control character. Therefore, after obtaining the original order information to be printed, the original order information needs to be converted into a corresponding instruction set. There is a corresponding relationship between the order information and the corresponding instruction set, and based on the corresponding relationship, a first instruction set corresponding to the original order information can be generated.
[0065] Step S503: Determine whether the memory occupied by the first instruction set exceeds a preset memory threshold.
[0066] This step is used to determine whether the memory occupied by the first instruction set exceeds a preset memory threshold.
[0067] It should be noted that when using a cloud printer to print an order, the memory occupied by the instruction set corresponding to the order information generally does not exceed the storage capacity of the cloud printer's memory. For example, the cloud printer hardware RAM (Random Access Memory) usually caches up to 30K. When the instruction set corresponding to the order information exceeds 30K, the cloud printer will become stuck or freeze, resulting in order printing failure.
[0068] Therefore, after obtaining the first instruction set corresponding to the original order information, it is necessary to determine whether the memory occupied by the first instruction set exceeds the preset memory threshold. After obtaining the first instruction set corresponding to the original order information, determine whether the memory occupied by the first instruction set exceeds the preset memory threshold. If the memory occupied by the first instruction set does not exceed the preset memory threshold, the first instruction set can be used as the target instruction set and directly provided to the cloud printer for printing. Among them, the memory occupied by the first instruction set does not exceed the preset memory threshold means that the memory occupied by the first instruction set is less than or equal to the preset memory threshold, and the preset memory threshold is such as 30K. If the memory occupied by the first instruction set exceeds the preset memory threshold, the original order information is downgraded.
[0069] Step S504: If the memory occupied by the first instruction set exceeds the preset memory threshold, the original order information is downgraded to obtain the downgraded target order information.
[0070] This step is used to downgrade the original order information when the memory occupied by the first instruction set exceeds a preset memory threshold.
[0071] Step S505: Based on the downgraded target order information, a target instruction set corresponding to the downgraded target order information is obtained, and the memory occupied by the target instruction set does not exceed a preset memory threshold.
[0072] This step is used to obtain a target instruction set corresponding to the downgraded target order information based on the downgraded target order information.
[0073] Specifically, downgrading the original order information to obtain the downgraded target order information includes: downgrading the original order information level by level according to the preset order information downgrading priority to obtain the downgraded target order information. When downgrading the original order information to obtain the downgraded target order information, downgrading is performed level by level according to the preset order information downgrading priority; in this embodiment, the downgrading priority of the first order information downgrading level is higher than the downgrading priority of the second order information downgrading level, and the downgrading priority of the second order information downgrading level is higher than the downgrading priority of the third order information downgrading level.
[0074] The method of downgrading the original order information step by step according to a preset order information downgrade priority to obtain the downgraded target order information may mean: first, downgrading the original order information according to the downgrade level of the first order information to obtain the downgraded first order information; then, determining whether the memory occupied by the second instruction set corresponding to the downgraded first order information exceeds the preset memory threshold; if the memory occupied by the second instruction set does not exceed the preset memory threshold, using the downgraded first order information as the downgraded target order information.
[0075] If the memory occupied by the second instruction set exceeds the preset memory threshold, the downgraded first order information is downgraded according to the downgrade level of the second order information to obtain the downgraded second order information; determine whether the memory occupied by the third instruction set corresponding to the downgraded second order information exceeds the preset memory threshold; if the memory occupied by the third instruction set does not exceed the preset memory threshold, the downgraded second order information is used as the downgraded target order information.
[0076] If the memory occupied by the third instruction set exceeds the preset memory threshold, the downgraded second order information will continue to be downgraded according to the downgrade level of the third order information to obtain the downgraded third order information; and so on, until the memory occupied by the instruction set corresponding to the downgraded order information does not exceed the preset memory threshold, the last downgraded order information will be used as the target order information after downgrading.
[0077] In this embodiment, after obtaining the downgraded first order information, it also includes: generating a second instruction set corresponding to the downgraded first order information based on the downgraded first order information; after obtaining the downgraded second order information, generating a third instruction set corresponding to the downgraded second order information based on the downgraded second order information; after obtaining the downgraded third order information, generating a fourth instruction set corresponding to the downgraded third order information based on the downgraded third order information.
[0078] The following is a detailed introduction to the downgrade process for original order information.
[0079] Specifically, if the memory occupied by the first instruction set corresponding to the original order information exceeds the preset memory threshold, the original order information is downgraded according to the downgrade level of the first order information. Downgrading the original order information according to the downgrade level of the first order information to obtain the downgraded first order information may refer to: traversing the original order information to determine whether there is information of the same type in the original order information; if there is information of the same type in the original order information, merging the information of the same type to obtain the merged order information, and using the merged order information as the downgraded first order information.
[0080] In actual application, the first order information downgrade level can determine whether there is the same type of information in the original order. Figure 3 and Figure 4 After traversing the original order information, it is found that the same type of information exists in the original order information, the dish information "crayfish×1 ¥50 crayfish×1 ¥50", then the same dish information "crayfish×1 ¥50 crayfish×1 ¥50" can be merged and processed, specifically merged into "crayfish×2 ¥100".
[0081] The merged order information is used as the downgraded first order information, and the second instruction set is generated based on the downgraded first order information. It should be noted that the merged order information includes not only the merged order information, but also the unmerged order information. For example, the merged order information includes "Crawfish × 2 ¥100"; the unmerged order information is Figure 3 The order information except "Crayfish × 1 ¥50 Crayfish × 1 ¥50".
[0082] After generating the second instruction set, determine whether the memory occupied by the second instruction set exceeds the preset memory threshold. If the memory occupied by the second instruction set does not exceed the preset memory threshold, the downgraded first order information will be used as the downgraded target order information, and the second instruction set will be sent to the cloud printer as the target instruction set, so that cloud printing can print the order to be printed based on the second instruction set.
[0083] If the memory occupied by the second instruction set exceeds the preset memory threshold, the downgraded first order information is downgraded according to the downgrade level of the second order information to obtain the downgraded second order information. Downgrading the downgraded first order information according to the downgrade level of the second order information to obtain the downgraded second order information may refer to: traversing the downgraded first order information to determine whether there is an image in the downgraded first order information; if there is an image in the downgraded first order information, performing image downgrading on the image to obtain the downgraded second order information.
[0084] In specific implementation, if the memory occupied by the second instruction set exceeds the preset memory threshold, the downgraded first order information is downgraded according to the downgrade level of the second order information. The downgrade level of the second order information is mainly to determine whether there is an image in the downgraded first order information. The image mainly includes an identification image used to represent an identification or a coded image for performing a scanning operation. The coded image for performing a scanning operation is such as a QR code image, which can be scanned by the customer who places the order to trace the source and query the goods therein.
[0085] When an image includes a logo image used to represent a logo, the image degradation process may be: converting the logo image into logo text used to represent the logo. Figure 3 and Figure 4 , convert the logo image of the little bear in the order information into the logo text "little bear".
[0086] When the image includes a coded image for performing a scanning operation, image degradation processing on the image mainly refers to: reducing the dimension of the coded image. The dimension of the coded image can be two-dimensional or three-dimensional or higher.
[0087] If the image includes a coded image for performing a scanning operation, before performing dimensionality reduction processing on the coded image, it is necessary to pre-determine whether the dimensionality of the coded image exceeds the preset dimension; if the dimensionality of the coded image exceeds the preset dimension, perform the step of dimensionality reduction processing on the coded image.
[0088] If the dimension of the coded image does not exceed the preset dimension, the embodiment further includes: converting the coded image into text associated with the coded image, wherein the coded image is used to obtain the text associated with the coded image after a scanning operation is performed. The preset dimension is one dimension.
[0089] In fact, when the coded image is a two-dimensional coded image or a coded image of two dimensions or above, the dimension of the coded image can be reduced, such as reducing the dimensionality of a three-dimensional coded image to a two-dimensional coded image, or reducing the dimensionality of a two-dimensional coded image to a one-dimensional coded image (a one-dimensional coded image is such as a barcode image).
[0090] If the dimension of the coded image does not exceed the preset dimension, for example, when the coded image is a one-dimensional coded image, and the text displayed after the one-dimensional coded image is scanned is: Pay XX, then the coded image can be converted into text associated with the coded image obtained after the coded image is scanned; for example, the one-dimensional coded image is converted into the text "Pay XX". "Pay XX" is the text associated with the one-dimensional coded image, which is used to be displayed after the scanning operation is performed.
[0091] For example, when a user buys a product at a merchant, he scans the one-dimensional code (the one-dimensional code may be a one-dimensional coded image) provided by the merchant for payment, and then "Pay to XX" may be displayed. In fact, in this embodiment, if the dimension of the coded image exceeds the preset dimension, the coded image may also be converted into text associated with the coded image, that is, the preset dimension may also be two-dimensional or more. For example, the two-dimensional code image is directly converted into text associated with the two-dimensional code image.
[0092] After obtaining the downgraded second order information, a third instruction set corresponding to the downgraded second order information can be generated based on the downgraded second order information. After generating the third instruction set, determine whether the memory occupied by the third instruction set exceeds the preset memory threshold. If the memory occupied by the third instruction set does not exceed the preset memory threshold, the downgraded second order information is used as the downgraded target order information, and the third instruction set is sent to the cloud printer as the target instruction set, so that the cloud printer prints the order to be printed based on the third instruction set. The downgraded second order information not only includes the information after the image downgrade processing in the downgraded first order information, but also includes the information after the image downgrade processing in the downgraded first order information.
[0093] If the memory occupied by the third instruction set exceeds the preset memory threshold, the downgraded second order information is downgraded according to the downgrade level of the third order information. Downgrading the downgraded second order information according to the downgrade level of the third order information to obtain the downgraded third order information may refer to: traversing the downgraded second order information to determine whether there is non-core order information in the downgraded second order information; if there is non-core order information in the downgraded second order information, deleting the non-core order information in the downgraded second order information to obtain the downgraded third order information.
[0094] In specific implementation, if the memory occupied by the third instruction set corresponding to the downgraded second order information exceeds the preset memory threshold, the downgraded second order information will continue to be downgraded according to the downgrade level of the third order information. The downgrade level of the third order information may specifically refer to deleting non-core order information in the downgraded second order information. Please refer to Figure 3 and Figure 4 , delete non-core order information such as promotional information, "customer association", "dishes", "free draw for a bottle of Coke" in the order information, and obtain the third order information after downgrading.
[0095] After obtaining the third order information after the downgrade, a fourth instruction set corresponding to the third order information after the downgrade can be generated based on the third order information after the downgrade. After generating the fourth instruction set, it can be further determined whether the memory occupied by the fourth instruction set exceeds the preset memory threshold. If the memory occupied by the fourth instruction set does not exceed the preset memory threshold, the third order information after the downgrade is used as the target order information after the downgrade, and the fourth instruction set is sent to the cloud printer as the target instruction set, so that the cloud printer prints the order to be printed based on the fourth instruction set. In this embodiment, Figure 4 The third order information after downgrading is shown. The third order information after downgrading is the order information after deleting the non-core order information based on the second order information after downgrading.
[0096] Of course, if the memory occupied by the fourth instruction set still exceeds the preset memory threshold, the downgraded third order information will continue to be downgraded until the memory occupied by the instruction set corresponding to the downgraded order information does not exceed the preset memory threshold. The last downgraded order information will be used as the target order information after the downgrade, and the target instruction set will be generated based on the downgraded target order information.
[0097] Step S506: Provide the target instruction set to the cloud printer so that the cloud printer prints the order to be printed based on the target instruction set.
[0098] This step is used to provide a target instruction set that meets a preset memory threshold condition to the cloud printer, so that the cloud printer prints the order to be printed based on the target instruction set.
[0099] The present application provides an information processing method. When processing original order information to be printed provided by a cloud printer, the information processing method can generate a first instruction set corresponding to the original order information based on the original order information after obtaining the original order information to be printed provided by the cloud printer, and then determine whether the memory occupied by the first instruction set exceeds a preset memory threshold. When the memory occupied by the first instruction set exceeds the preset memory threshold, the original order information is downgraded to obtain downgraded target order information. Based on the downgraded target order information, a target instruction set corresponding to the downgraded target order information is obtained, and the memory occupied by the target instruction set does not exceed the preset memory threshold. Finally, the target instruction set is provided to the cloud printer, so that the cloud printer prints the order to be printed based on the target instruction set. The method solves the problem of order printing failure caused by excessive order information content and thus excessive corresponding instruction set by downgrading the original order information corresponding to the order information. The printing efficiency of the order is improved.
[0100] Second embodiment
[0101] Corresponding to the first embodiment, the second embodiment of the present application provides a printing processing method, which is applied to a cloud printer. The same parts of the second embodiment as the first embodiment will not be introduced again, and please refer to the relevant parts of the first embodiment for details.
[0102] Please refer to Figure 6 , which is a flowchart of the printing processing method provided in the second embodiment of the present application.
[0103] The printing processing method of the embodiment of the present application is applied to a cloud printer and includes the following steps.
[0104] Step S601: Send the original order information to be printed to the server.
[0105] Sending original order information to be printed to a server so that the server obtains the original order information, and generating a first instruction set corresponding to the original order information based on the original order information; determining whether the memory occupied by the first instruction set exceeds a preset memory threshold; if the memory occupied by the first instruction set exceeds the preset memory threshold, downgrading the original order information to obtain downgraded target order information; based on the downgraded target order information, obtaining a target instruction set corresponding to the downgraded target order information, and the memory occupied by the target instruction set does not exceed the preset memory threshold.
[0106] Step S602: Obtain a target instruction set provided by the server.
[0107] Step S603: Print the order to be printed based on the target instruction set.
[0108] In this embodiment, after the order to be printed is printed, the printed order to be printed can also be announced by voice, so that the merchant can be informed of the printed order in time.
[0109] In an embodiment of the present application, the cloud printer sends the original order information to be printed to the server, so that the server downgrades the original order information to generate a target order, and obtains a target instruction set corresponding to the downgraded target order information, and the memory occupied by the target instruction set does not exceed the preset memory threshold. After that, the cloud printer obtains the target instruction set provided by the server, and prints the order to be printed based on the target instruction set, which reduces the phenomenon of freezing of the cloud printer and ensures printing efficiency. After printing the order to be printed, the cloud printer voice broadcasts the printed order to remind the merchant that the order printing is complete.
[0110] Third embodiment
[0111] Corresponding to the information processing method provided in the first embodiment of the present application, the third embodiment of the present application also provides an information processing device. Since the device embodiment is basically similar to the first embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the first embodiment. The device embodiment described below is only illustrative.
[0112] Please refer to Figure 7 , which is a schematic diagram of an information processing device provided in the third embodiment of the present application.
[0113] The information processing device 700 is applied to the server side, and the device includes: an original order information acquisition unit 701, which is used to acquire the original order information to be printed provided by the cloud printer; a first instruction set generation unit 702, which is used to generate a first instruction set corresponding to the original order information based on the original order information; a first judgment unit 703, which is used to judge whether the memory occupied by the first instruction set exceeds the preset memory threshold; a downgraded target order information acquisition unit 704, which is used to downgrade the original order information if the memory occupied by the first instruction set exceeds the preset memory threshold, and obtain the downgraded target order information; a target instruction set acquisition unit 705, which is used to obtain a target instruction set corresponding to the downgraded target order information based on the downgraded target order information, and the memory occupied by the target instruction set does not exceed the preset memory threshold; a target instruction set providing unit 706, which is used to provide the target instruction set to the cloud printer, so that the cloud printer prints the order to be printed based on the target instruction set.
[0114] Optionally, the downgraded target order information obtaining unit is specifically used to: perform downgrade processing on the original order information step by step according to a preset order information downgrade priority to obtain the downgraded target order information.
[0115] Optionally, the unit for obtaining the downgraded target order information is specifically used to: downgrade the original order information according to the downgrade level of the first order information to obtain the downgraded first order information; determine whether the memory occupied by the second instruction set corresponding to the downgraded first order information exceeds the preset memory threshold; if the memory occupied by the second instruction set does not exceed the preset memory threshold, use the downgraded first order information as the downgraded target order information; if the memory occupied by the second instruction set exceeds the preset memory threshold, downgrade the downgraded first order information according to the downgrade level of the second order information to obtain the downgraded second order information ; Determine whether the memory occupied by the third instruction set corresponding to the second order information after the downgrade exceeds the preset memory threshold; if the memory occupied by the third instruction set does not exceed the preset memory threshold, the second order information after the downgrade is used as the target order information after the downgrade; if the memory occupied by the third instruction set exceeds the preset memory threshold, the downgraded second order information is downgraded according to the downgrade level of the third order information to obtain the downgraded third order information; and so on, until the memory occupied by the instruction set corresponding to the downgraded order information does not exceed the preset memory threshold, then the last downgraded order information is used as the target order information after the downgrade.
[0116] Optionally, the unit for obtaining the target order information after downgrading is specifically used to: traverse the original order information to determine whether the same type of information exists in the original order information; if the same type of information exists in the original order information, merge the same type of information to obtain the merged order information, and use the merged order information as the first order information after downgrading.
[0117] Optionally, the unit for obtaining the target order information after downgrading is specifically used to: traverse the first order information after downgrading, and determine whether there is an image in the first order information after downgrading; if there is an image in the first order information after downgrading, perform image downgrading processing on the image to obtain the second order information after downgrading.
[0118] Optionally, the unit for obtaining the downgraded target order information is specifically used to: traverse the downgraded second order information to determine whether there is non-core order information in the downgraded second order information; if there is non-core order information in the downgraded second order information, delete the non-core order information in the downgraded second order information to obtain the downgraded third order information.
[0119] Optionally, it also includes: a second instruction set generating unit, a third instruction set generating unit, and a fourth instruction set generating unit; the second instruction set generating unit is used to generate a second instruction set corresponding to the downgraded first order information based on the downgraded first order information after obtaining the downgraded first order information; the third instruction set generating unit is used to generate a third instruction set corresponding to the downgraded second order information based on the downgraded second order information after obtaining the downgraded second order information; the fourth instruction set generating unit is used to generate a fourth instruction set corresponding to the downgraded third order information based on the downgraded third order information after obtaining the downgraded third order information.
[0120] Optionally, the image includes a logo image used to represent a logo; the downgraded target order information obtaining unit is specifically used to: convert the logo image into a logo text used to represent a logo.
[0121] Optionally, the image includes a coded image for performing a scanning operation; the downgraded target order information obtaining unit is specifically used to: perform dimensionality reduction processing on the coded image.
[0122] Optionally, it also includes: a second judgment unit, used to judge whether the dimension of the encoded image exceeds the preset dimension; if the dimension of the encoded image exceeds the preset dimension, executing the step of dimensionality reduction processing on the dimension of the encoded image; if the dimension of the encoded image does not exceed the preset dimension, converting the encoded image into text associated with the encoded image, wherein the encoded image is used to obtain the text associated with the encoded image after performing a scanning operation.
[0123] Fourth embodiment
[0124] Corresponding to the second embodiment, the fourth embodiment of the present application provides a printing processing device. Since the device embodiment is basically similar to the second embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the second embodiment. The device embodiment described below is only illustrative.
[0125] Please refer to Figure 8 , which is a schematic diagram of a printing processing device provided in the fourth embodiment of the present application.
[0126] The printing processing device 800 is applied to a cloud printer, and the device includes: an original order information sending unit 801, which is used to send the original order information to be printed to the server, so that the server obtains the original order information, and generates a first instruction set corresponding to the original order information based on the original order information; determines whether the memory occupied by the first instruction set exceeds the preset memory threshold; if the memory occupied by the first instruction set exceeds the preset memory threshold, downgrades the original order information to obtain the downgraded target order information; based on the downgraded target order information, obtains the target instruction set corresponding to the downgraded target order information, and the memory occupied by the target instruction set does not exceed the preset memory threshold; a target instruction set obtaining unit 802, which is used to obtain the target instruction set provided by the server; a printing unit 803, which is used to print the order to be printed based on the target instruction set.
[0127] Optionally, it also includes: a voice broadcast unit, which is used to voice broadcast the printed order after the order to be printed is printed.
[0128] Fifth embodiment
[0129] Corresponding to the methods of the first to second embodiments of the present application, the fifth embodiment of the present application further provides an electronic device.
[0130] like Fig. 9 As shown, Fig. 9 A schematic diagram of an electronic device provided in accordance with the fifth embodiment of the present application.
[0131] In this embodiment, an optional hardware structure of the electronic device 900 can be as follows: Fig. 9 As shown, it includes: at least one processor 901, at least one memory 902 and at least one communication bus 905; the memory 902 contains a program 903 and data 904.
[0132] The bus 905 may be a communication device for transmitting data between components inside the electronic device 900, such as an internal bus (e.g., a CPU-memory bus, where the processor is a central processing unit, CPU for short), an external bus (e.g., a universal serial bus port, a peripheral component interconnect express port), etc.
[0133] In addition, the electronic device also includes: at least one network interface 906, at least one peripheral interface 907. The network interface 906 provides wired or wireless communication related to an external network 908 (for example, the Internet, an intranet, a local area network, a mobile communication network, etc.); in some embodiments, the network interface 906 may include any number of network interface controllers (NICs), radio frequency (RF) modules, repeaters, transceivers, modems, routers, gateways, any combination of wired network adapters, wireless network adapters, Bluetooth adapters, infrared adapters, near field communication (NFC) adapters, cellular network chips, etc.
[0134] The peripheral interface 907 is used to connect to a peripheral device, and the peripheral device may be the peripheral device 1 ( Fig. 9 909 in), peripheral 2 ( Fig. 9 910) and peripheral 3 ( Fig. 9 911 in the figure). Peripherals are peripheral devices, which may include but are not limited to cursor control devices (such as mice, touch pads or touch screens), keyboards, displays (such as cathode ray tube displays, liquid crystal displays). Displays or light-emitting diode displays, video input devices (such as cameras or communication interfaces coupled to video files), etc.
[0135] The processor 901 may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0136] The memory 902 may include a high-speed RAM (full name: Random Access Memory) memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0137] The processor 901 calls the program and data stored in the memory 902 to execute the methods of the first embodiment to the second embodiment of the present application.
[0138] Sixth embodiment
[0139] Corresponding to the methods of the first to second embodiments of the present application, the sixth embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is run by a processor to execute the methods of the first to second embodiments of the present application.
[0140] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
[0141] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0142] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer readable media does not include non-transitory computer readable storage media (non-transitory computer readable storage media), such as modulated data signals and carrier waves.
[0143] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0144] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
Claims
1. An information processing method, characterized in that: Applied to the server, the method includes: Obtain the original order information to be printed provided by the cloud printer; Based on the original order information, generating a first instruction set corresponding to the original order information; Determining whether the memory occupied by the first instruction set exceeds a preset memory threshold; If the memory occupied by the first instruction set exceeds the preset memory threshold, the original order information is downgraded to obtain the downgraded target order information, including: downgrading the original order information step by step according to the preset order information downgrade priority from high downgrade priority to low downgrade priority to obtain the downgraded target order information; the downgrade processing refers to a processing method of reducing the content of the order information so that the memory occupied by the instruction set corresponding to the order information is reduced to not more than the preset memory threshold; wherein, each pair of order information is downgraded once, and it is determined whether the memory occupied by the instruction set corresponding to the downgraded order information exceeds the preset memory threshold, until the memory occupied by the instruction set corresponding to the order information after the last downgrade does not exceed the preset memory threshold; Based on the downgraded target order information, obtaining a target instruction set corresponding to the downgraded target order information, wherein the memory occupied by the target instruction set does not exceed the preset memory threshold; The target instruction set is provided to the cloud printer so that the cloud printer prints the order to be printed based on the target instruction set.
2. The method according to claim 1, characterized in that The step of downgrading the original order information step by step from a high downgrading priority to a low downgrading priority according to the preset order information downgrading priority to obtain downgraded target order information includes: Downgrading the original order information according to the downgrade level of the first order information to obtain the downgraded first order information; Determining whether the memory occupied by the second instruction set corresponding to the downgraded first order information exceeds the preset memory threshold; If the memory occupied by the second instruction set does not exceed the preset memory threshold, using the downgraded first order information as the downgraded target order information; If the memory occupied by the second instruction set exceeds the preset memory threshold, downgrading the downgraded first order information according to the downgrade level of the second order information to obtain the downgraded second order information; Determining whether the memory occupied by the third instruction set corresponding to the downgraded second order information exceeds the preset memory threshold; If the memory occupied by the third instruction set does not exceed the preset memory threshold, using the downgraded second order information as the downgraded target order information; If the memory occupied by the third instruction set exceeds the preset memory threshold, the downgraded second order information is downgraded according to the downgrade level of the third order information to obtain the downgraded third order information; and so on, until the memory occupied by the instruction set corresponding to the downgraded order information does not exceed the preset memory threshold, the last downgraded order information is used as the downgraded target order information.
3. The method according to claim 2, characterized in that The downgrading the original order information according to the downgrade level of the first order information to obtain the downgraded first order information includes: Traversing the original order information, and determining whether there is information of the same type in the original order information; If the same type of information exists in the original order information, the same type of information is merged to obtain merged order information, and the merged order information is used as the downgraded first order information.
4. The method according to claim 2, characterized in that: The step of downgrading the downgraded first order information according to the downgrade level of the second order information to obtain the downgraded second order information includes: Traversing the first order information after the downgrade, and determining whether there is an image in the first order information after the downgrade; If the downgraded first order information contains an image, image downgrading processing is performed on the image to obtain the downgraded second order information.
5. The method according to claim 2, characterized in that: The downgrading the downgraded second order information according to the downgrade level of the third order information to obtain the downgraded third order information includes: Traversing the downgraded second order information, and determining whether there is non-core order information in the downgraded second order information; If non-core order information exists in the downgraded second order information, the non-core order information in the downgraded second order information is deleted to obtain downgraded third order information.
6. The method according to claim 2, characterized in that After obtaining the downgraded first order information, the method further includes: Based on the downgraded first order information, generating a second instruction set corresponding to the downgraded first order information; After obtaining the downgraded second order information, the method further includes: Based on the downgraded second order information, generating a third instruction set corresponding to the downgraded second order information; After obtaining the downgraded third order information, the method further includes: Based on the downgraded third order information, a fourth instruction set corresponding to the downgraded third order information is generated.
7. The method according to claim 4, characterized in that The image includes a logo image for representing a logo; The performing image degradation processing on the image includes: converting the logo image into logo text for representing the logo.
8. The method according to claim 4, characterized in that The image comprises an encoded image for a scanning operation to be performed; The performing image degradation processing on the image includes: performing dimension reduction processing on the dimension of the encoded image.
9. The method according to claim 8, characterized in that Also includes: Determining whether the dimension of the encoded image exceeds a preset dimension; If the dimension of the encoded image exceeds the preset dimension, a step of reducing the dimension of the encoded image is performed; If the dimension of the encoded image does not exceed a preset dimension, the encoded image is converted into text associated with the encoded image, wherein the encoded image is used to obtain the text associated with the encoded image after a scanning operation is performed on the encoded image.
10. A printing processing method, characterized in that: Applied to a cloud printer, the method comprises: The original order information to be printed is sent to the server so that the server obtains the original order information, generates a first instruction set corresponding to the original order information based on the original order information, determines whether the memory occupied by the first instruction set exceeds a preset memory threshold, performs downgrade processing on the original order information if the memory occupied by the first instruction set exceeds the preset memory threshold, and obtains downgraded target order information; obtains a target instruction set corresponding to the downgraded target order information based on the downgraded target order information, and the memory occupied by the target instruction set does not exceed the preset memory threshold; the downgrade processing refers to reducing the content of the order information so that the memory occupied by the order information A processing method for reducing the memory occupied by the instruction set to no more than the preset memory threshold; wherein, if the memory occupied by the first instruction set exceeds the preset memory threshold, the original order information is downgraded to obtain the downgraded target order information, including: downgrading the original order information step by step from a high downgrade priority to a low downgrade priority according to the preset order information downgrade priority to obtain the downgraded target order information; wherein, each pair of order information is downgraded once, and it is determined whether the memory occupied by the instruction set corresponding to the downgraded order information exceeds the preset memory threshold, until the memory occupied by the instruction set corresponding to the order information after the last downgrade does not exceed the preset memory threshold; Obtaining the target instruction set provided by the server; The order to be printed is printed based on the target instruction set.
11. The method according to claim 10, characterized in that After the order to be printed is printed, the following steps are also included: The orders to be printed that have been printed are announced by voice.
