Label printing method, system and portable label printing device
By realizing the selection of composite printing mode and adaptive printing mode on the label printer, combined with plain text keyword library analysis and barcode processing, the problem of poor adaptability of existing label printing technology is solved, and the rapid and efficient printing of labels under multiple environments and multiple objects is achieved, reducing user costs.
Patent Information
- Application Number
- CN202411049596.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The existing label printing technology has poor adaptability and cannot adapt to the fast and efficient printing of labels under multiple environments and multiple objects, and has high user costs.
A label printing method is proposed. Through a label printer with a composite printing mode, the printing mode is adaptively selected based on the data volume, printing resolution and printing area of the label content, and the plain text keyword library analysis and barcode processing are used to realize automatic label printing in multiple environments and multiple objects.
It realizes the automation, fast and efficient label printing, and is suitable for a variety of environments and objects, without changing the printer, reducing the hardware cost of users.
Smart Images

Figure CN119025058B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of label printing and computer control technology, and in particular relates to a label printing method, system and portable label printing device, a computer-readable storage medium and a computer program product for implementing the method. Background Art
[0002] In the process of manufacturing, transportation, display and sales of goods, it is common to use labels to display product information elements. A unified label language can make the product packaging leave a deep impression on consumers, continuously strengthen the brand value, and also save design costs. Unified label elements require condensed graphics and text information in packaging design, and strive for simplicity. Label elements focus on the image display of brand image and cultural connotation, while taking into account the relevant requirements of laws and regulations. Therefore, different labels contain more complex product information and the styles of labels vary.
[0003] Currently, product labels are printed in batches by developing corresponding dedicated printers. The specifications of the dedicated printers can only adapt to the specific product and cannot be universal or adjusted, so the promotion is poor. To design and print labels, users need to write instructions through the program client, and then configure the instructions into the system. The method of sending instructions to the printer through the background code is inconvenient and less intuitive. When the amount of information that needs to be displayed on the product label changes or the information format changes, the corresponding printer needs to be redeveloped, which increases user costs.
[0004] Therefore, the current label printing solutions have poor adaptability and cannot meet the needs of fast and efficient printing of labels in multiple environments and multiple objects. Summary of the invention
[0005] In order to solve the above technical problems, in a first aspect of the present invention, a label printing method is provided, the method being executed by a label printer having a composite printing mode;
[0006] The method comprises the following steps:
[0007] S100: Obtain the content of the label to be printed;
[0008] S200: Obtaining the data volume D of the label content, the printing resolution P of the label printer, and the size M of the printing area;
[0009] S300: When the data volume D, the printing resolution P, and the printing area size M meet the adaptability conditions, the label content is used as the printing object and the process proceeds to step S600;
[0010] Otherwise, proceed to step S400;
[0011] S400: analyzing whether the label content contains plaintext keywords; if so, dividing the label content into a plaintext keyword area and a non-plaintext keyword area;
[0012] S500: barcoding the label content corresponding to the non-plaintext keyword area to obtain barcoded content, and combining the barcoded content with the label content corresponding to the plaintext keyword area as a printing object;
[0013] S600: Automatically select label printing mode according to the printing object;
[0014] S700: Print out labels;
[0015] The label printing modes include thermal printing mode, laser printing mode and ink cartridge printing mode; the plain text keyword area is an area that cannot be barcoded, and the non-plain text keyword area is an area that can be barcoded.
[0016] Furthermore, the method further comprises:
[0017] Before executing step S100 of the method, a preset plaintext keyword library is established;
[0018] The preset plaintext keyword library includes a plurality of plaintext keywords, and the plaintext keywords include: a combination of at least two of: validity period, production date, precautions, storage conditions, and trademark;
[0019] The step S400 analyzes whether the label content contains plain text keywords based on the preset plain text keyword library.
[0020] The step S400 further includes:
[0021] If the label content does not contain a plaintext keyword, the label content is divided into a first part and a second part, and the first part contains a data volume D 0 Print resolution P, print area size M 0 Satisfy the adaptability conditions;
[0022] The label content corresponding to the second part is barcoded to obtain a barcoded block, and the area of the barcoded block is M 1 , and M 1 +M 0 <M;
[0023] The first part is combined with the barcoded block as a printing object, and the process jumps to step S600.
[0024] The step S500 barcodes the label content corresponding to the non-plaintext keyword area to obtain barcoded content, specifically including:
[0025] Based on the label content corresponding to the non-plaintext keyword area, a barcoding method is selected, and the barcoding method includes generating a barcode or generating a QR code.
[0026] The step S600 automatically selects a label printing mode according to the printing object, specifically including:
[0027] If the printing object does not include barcoded content, select thermal printing mode;
[0028] If the printing object includes barcoded content, a laser printing mode is used for the barcoded content, and an ink cartridge printing mode is used for the non-barcoded content.
[0029] To implement the method, in a second aspect of the present invention, a label printing system is provided, the label printing system comprising a label printer unit having a composite printing mode;
[0030] The label printing system also includes:
[0031] A label content acquisition unit, used to acquire the label content to be printed;
[0032] A printing parameter acquisition unit, used to acquire the data volume D of the label content, the printing resolution P of the label printer, and the size M of the printing area;
[0033] A fitness condition judgment unit, used to judge whether the data volume D, the printing resolution P, and the printing area size M meet the fitness condition;
[0034] A label content analysis unit, used to analyze whether the label content contains plain text keywords;
[0035] A label content segmentation unit, used for segmenting the label content;
[0036] When the fitness condition judgment unit judges that the data volume D, the printing resolution P, and the printing area size M meet the fitness condition, a printing instruction is sent to the label printer unit, and the label printer unit starts the thermal printing mode to print the label content;
[0037] Otherwise, the label content analyzing unit and the label content segmenting unit are activated.
[0038] The system also includes a barcoding unit;
[0039] When the label content analysis unit analyzes that the label content contains plain text keywords, the label content segmentation unit is activated to segment the label content, specifically including:
[0040] The label content segmentation unit segments the label content into plain text keyword areas and non-plain text keyword areas;
[0041] The barcoding unit barcodes the label content corresponding to the non-plaintext keyword area to obtain barcoded content, combines the barcoded content and the label content corresponding to the plaintext keyword area as a printing object, and sends a printing instruction to the label printer unit. The label printer unit adopts a laser printing mode for the barcoded content and an ink cartridge printing mode for the non-barcoded content.
[0042] The system also includes a barcoding unit;
[0043] When the label content analysis unit analyzes that the label content does not contain a plain text keyword, activating the label content segmentation unit to segment the label content specifically includes:
[0044] The label content segmentation unit segments the label content into a first part and a second part, and the first part includes a data volume D 0 With the printing resolution P, printing area size M 0 Satisfy the adaptability conditions;
[0045] The label content corresponding to the second part is barcoded to obtain a barcoded block, and the area of the barcoded block is M 1 , and M 1 +M 0 <M;
[0046] The first part is combined with the barcoded block as a printing object, and a printing instruction is sent to the label printer unit. The label printer unit adopts a laser printing mode for barcoded content and an ink cartridge printing mode for non-barcoded content.
[0047] The system also includes a preset plaintext keyword library;
[0048] The preset plaintext keyword library includes a plurality of plaintext keywords, and the plaintext keywords include: a combination of at least two of: validity period, production date, precautions, storage conditions, and trademark;
[0049] The label content analysis unit analyzes whether the label content contains plain text keywords based on the preset plain text keyword library.
[0050] Part or all of the steps of the label printing method described in the first aspect can be automatically implemented through various forms of electronic devices through computer program instructions; the computer program instructions can be stored in storage media of different forms and loaded into computer electronic devices for execution.
[0051] Preferably, the electronic device may be a portable label printing device, which includes a memory and a processor, wherein the memory stores computer program instructions, and the processor executes the computer program instructions to implement all steps of a label printing method described in the first aspect.
[0052] In a third aspect of the present invention, a computer-readable storage medium is provided for storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a label printing method as described in the first aspect.
[0053] In a fourth aspect of the present invention, a computer program product is also provided, the product comprising a computer program, and when the computer program is executed, the label printing method described in the first aspect is implemented.
[0054] The label printing method proposed in the present invention can adaptively select the printing mode and content display method according to the content of the label to be printed, thereby realizing automatic fast and efficient printing of labels in multiple environments and multiple objects without losing important information. It has universal applicability and can be applied to a variety of label printing environments, thereby reducing the user's hardware cost.
[0055] Further advantages of the present invention will be further reflected in detail in the specific embodiments section in conjunction with the drawings of the specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 This is a schematic diagram of the main flow of a label printing method according to an embodiment of the present invention.
[0058] Figure 2 yes Figure 1 Schematic diagram of a two-dimensional matrix lookup table used in the label printing method for performing adaptability judgment
[0059] Figure 3 This is a schematic diagram of the printing effect of a label printing method described in the present invention.
[0060] Figure 4 This is a schematic diagram of the functional modules of a label printing system according to an embodiment of the present invention.
[0061] Figure 5 yes Figure 4Schematic diagram of some functional modules of a further preferred embodiment of the label printing system DETAILED DESCRIPTION
[0062] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments that are the same as the present application. Instead, they are only examples of devices and methods that are the same as some aspects of the present application as detailed in the attached claims.
[0063] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0064] At the same time, in the specific implementation of this application, if user-related data is involved, when the embodiment of this application is applied to a specific product or technology, the user's permission or consent must be obtained, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0065] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0066] See also Figure 1 , Figure 1 A schematic diagram showing the main flow of a label printing method according to an embodiment of the present invention. Figure 1 In order to make the process clear, the numbering of the process steps is omitted.
[0067] In order to better introduce from the perspective of computer process language Figure 1 The execution process of the method is as follows:
[0068] S100: Obtain the content of the label to be printed.
[0069] Specifically, in step S100, the label printer with the composite printing mode can obtain the label content to be printed in various ways.
[0070] For example, the content of the label to be printed can be obtained through a built-in wireless network communication module, a near field communication module, a wired data communication interface, etc.
[0071] As a preferred embodiment, the label content to be printed can be sent to the label printer with the composite printing mode by the upper control computer through wireless communication.
[0072] In one embodiment, the upper control computer needs to repeatedly print a large number of product labels, so it only needs to be sent once;
[0073] In another embodiment, the upper control computer needs to print different quality control labels multiple times, and therefore needs to send different label contents to be printed each time.
[0074] In another preferred embodiment, the label printer with the composite printing mode has a built-in scanning module, and the scanning module can be used to scan the target object to obtain the content of the label to be printed.
[0075] Therefore, the technical solution of the present invention can realize fast and efficient printing of labels in automated multi-environment and multi-object environments without losing important information, has universal applicability, and can be applied to a variety of label printing environments.
[0076] Next, the process proceeds to step S200: obtaining the data volume D of the label content, the printing resolution P of the label printer, and the size M of the printing area.
[0077] In different printing environments, different printer print resolutions P and print area sizes M can be set, which are set by the user according to actual conditions. In the embodiment of the present invention, the label printer with a composite printing mode supports multiple print resolutions and can set print outputs of multiple sizes (i.e., supports multiple different print area sizes M).
[0078] After selecting the target object, the user can set the print resolution P and print area size M of the label printer suitable for the current object;
[0079] However, according to the acquired data volume D of the label content to be printed of the target object, further determination is performed, namely, subsequent printing mode control.
[0080] The data volume D of the label content to be printed can be measured by one or more indicators, such as the number of characters Num to be printed, the amount of data to be printed (in megabytes Mb), etc.; the data volume D can be obtained in real time when receiving (the upper control computer sends the label content to be printed to the label printer with a composite printing mode through wireless communication) or scanning (the scanning module scans the target object to obtain the label content to be printed).
[0081] Next, the data volume D is taken as an example to be introduced as the data volume (Mb) to be printed.
[0082] When the data volume D is small, it means that the content to be printed is small, and the print resolution P and print area size M of the label printer can meet the requirements at this time; however, it can be understood that the larger the data volume D, generally means that there is more content to be printed, but since the print resolution P and print area size M of the label printer of the current object are limited, therefore, if the data volume D is too large, it is incompatible with the print resolution P and print area size M of the label printer of the current object, if it is printed directly, it will not present a normal printing effect.
[0083] Therefore, the embodiment of the present invention first needs to determine whether the data volume D, the printing resolution P, and the printing area size M meet the adaptability conditions.
[0084] The adaptability conditions here can be set in advance.
[0085] Preferably, the adaptability condition may be:
[0086] Under the restrictions of print resolution P and print area M, the maximum amount of text data that can be supported is D max , the maximum amount of non-text data supported is and
[0087]
[0088] in, , D max maxD is preset by the user, and the preset value may be obtained based on experience and actual parameters of the device, historical output, etc.
[0089] Preferably, a two-dimensional matrix lookup table with different printing resolutions P and printing area areas M is pre-set to determine the maximum text data volume D that can be supported. max , the maximum amount of non-text data that can be supported To perform the adaptability condition judgment, see Figure 2 .
[0090] For example, Figure 2It is shown that under the restrictions of print resolution P = 100 × 100 and print area M = 10 × 10 (units are all centimeters), the maximum text data volume that can be supported is D max1,1 , the maximum amount of non-text data supported is and
[0091] Under the restrictions of print resolution P = 200 × 300 and print area M = 20 × 20 (in centimeters), the maximum text data volume that can be supported is D max4,4 , the maximum amount of non-text data supported is and
[0092] In the above example, it is determined whether the data volume D, the printing resolution P, and the printing area size M meet the adaptability condition, specifically, it can be:
[0093] Obtaining the amount of text data and the amount of non-text data contained in the amount of data D;
[0094] When the following conditions (1), (2), and (3) are met simultaneously,
[0095] (1) The amount of text data is less than the maximum amount of text data D max ;
[0096] (2) The amount of non-text data is less than the maximum amount of non-text data
[0097] (3) The data volume D (=text data volume + non-text data volume) is less than maxD;
[0098] It is considered that the data volume D, the printing resolution P, and the printing area size M meet the adaptability conditions.
[0099] Of course, those skilled in the art may also set other adaptability conditions according to actual conditions. For example, if the content to be printed is plain text, the plain text threshold is directly set, and the adaptability condition is considered to be met as long as the data volume D does not exceed the plain text threshold, etc.
[0100] On this basis, step S300 is executed: when the data volume D, the printing resolution P, and the printing area size M meet the adaptability conditions, the label content is used as the printing object, and step S600 is entered;
[0101] For details, see Figure 1 When the data volume D, the printing resolution P, and the printing area size M meet the adaptability conditions, the label content is used as the printing object, and the label printing mode is automatically selected according to the printing object, and then the printed output label is output.
[0102] The label printing modes include thermal printing mode, laser printing mode and ink cartridge printing mode.
[0103] Otherwise, when the data volume D, the printing resolution P, and the printing area size M do not meet the adaptability condition, the process proceeds to step S400: analyzing whether the label content contains plain text keywords.
[0104] When analyzing that the label content contains plaintext keywords, the label content is divided into plaintext keyword areas and non-plaintext keyword areas;
[0105] Then enter step S500: barcode the label content corresponding to the non-plaintext keyword area to obtain barcoded content, combine the barcoded content and the label content corresponding to the plaintext keyword area as a printing object, automatically select the label printing mode according to the printing object, and then output the printed label.
[0106] Otherwise, if the label content does not contain a plaintext keyword, the label content is divided into a first part and a second part, and the first part contains a data volume D 0 Print resolution P, print area size M 0 Satisfy the adaptability conditions;
[0107] The label content corresponding to the second part is barcoded to obtain a barcoded block, and the area of the barcoded block is M 1 , and M 1 +M 0 <M;
[0108] The first part is combined with the barcode block as a printing object, and a label printing mode is automatically selected according to the printing object, so as to output a printed label.
[0109] The starting point of the above process is that the data volume D, the printing resolution P, and the printing area size M do not meet the adaptability conditions. At this time, if printing is performed directly, a normal printing effect will not be presented.
[0110] Therefore, further analysis and processing is needed.
[0111] The inventor noticed that during the label printing process, the label contained some important content and some unimportant content. Therefore, the improved technical solution is as follows:
[0112] Establish a preset plaintext keyword library;
[0113] The preset plaintext keyword library includes a plurality of plaintext keywords, and the plaintext keywords include: a combination of at least two of: validity period, production date, precautions, storage conditions, and trademark.
[0114] The plain text keyword library here refers to the "important content" of the label that the user considers (or that is required by laws and regulations), which must be printed, posted and clearly indicated on the relevant objects.
[0115] Step S400: Analyze whether the label content contains plain text keywords.
[0116] Specifically, the step S400 analyzes whether the label content contains plain text keywords based on the preset plain text keyword library.
[0117] When analyzing that the label content contains plaintext keywords, the label content is divided into plaintext keyword areas and non-plaintext keyword areas;
[0118] The plaintext keyword area is an area that cannot be barcoded, and the non-plaintext keyword area is an area that can be barcoded.
[0119] The plain text keyword area must be printed and posted and clearly indicated on the relevant object, so it needs to be displayed in its original form. In practical applications, this part of the content is important, but the amount of data will not be too large.
[0120] Based on this, when the overall data volume is large, the plaintext keyword area can be printed in plain text, and the non-plaintext keyword area can be barcoded.
[0121] Specifically, the step S500 barcodes the label content corresponding to the non-plaintext keyword area to obtain barcoded content, which specifically includes:
[0122] Based on the label content corresponding to the non-plaintext keyword area, a barcoding method is selected, and the barcoding method includes generating a barcode or generating a QR code.
[0123] Preferably, when the data volume of the label content corresponding to the non-plaintext keyword area is large (greater than the set barcode data carrying capacity), a method of generating a QR code can be selected, otherwise, a method of generating a barcode can be selected.
[0124] Figure 3 It is a schematic diagram of the printing effect of a label printing method described in the present invention.
[0125] In the above figure, the label content is directly printed and output in full; in the figure below, part of the content (plain text keyword area XXXX) is originally printed, and the rest of the content is printed by selecting the barcode method. Later users can obtain relevant information by scanning the barcode.
[0126] Furthermore, if the label content does not contain any plaintext keywords at all (but the actual data volume D is too large to be printed directly), the label content is divided into a first part and a second part, and the first part contains a data volume D. 0Print resolution P, print area size M 0 Satisfy the adaptability conditions;
[0127] The label content corresponding to the second part is barcoded to obtain a barcoded block, and the area of the barcoded block is M 1 , and M 1 +M 0 <M;
[0128] The first part is combined with the barcoded block as a printing object, and the process jumps to step S600.
[0129] At this time, you can choose to segment the label content. For example, you can extract important paragraphs as the first part through preset keyword analysis, and barcode other unimportant paragraphs as the second part. At the same time, the segmentation principle ensures that the final display effect can meet the adaptability conditions.
[0130] In the above embodiment, the printing area finally occupied by the first part is M 0 The second part (barcode block) finally occupies a printing area of M 1 , M 1 +M 0 <M。
[0131] The above improvement process at least solves the problem of how to print out normally without losing important information when the data volume D, the printing resolution P, and the printing area size M do not meet the adaptability conditions.
[0132] On this basis, in order to further solve the cost problem caused by universal printing, the method embodiment of the present application is further improved as follows:
[0133] The step S600 automatically selects a label printing mode according to the printing object, specifically including:
[0134] If the printing object does not include barcoded content, select thermal printing mode;
[0135] If the printing object includes barcoded content, a laser printing mode is used for the barcoded content, and an ink cartridge printing mode is used for the non-barcoded content.
[0136] According to the above embodiments, when the print object does not include barcoded content, either the amount of data in the print content is small or the importance of the print content is low (basically does not contain plain text keywords). At this time, the content to be printed is generally a general short-term label with a limited service life, such as express delivery bills and receipts in the express delivery, catering and other industries. At this time, select the thermal printing mode.
[0137] The principle of thermal printer is to cover a light-colored material (usually paper) with a transparent film, and then heat the film for a period of time to turn it into a dark color (usually black, but also blue). The image is generated by heating the film to produce a chemical reaction. This chemical reaction takes place at a certain temperature. High temperature will accelerate this chemical reaction. When the temperature is below 60°C, the film will take a long time, even several years, to turn dark; when the temperature is 200°C, this reaction will be completed within a few microseconds.
[0138] Thermal printers selectively apply heat to certain locations on the thermal paper, thereby producing a corresponding pattern. The heat is provided by a small electronic heater on the print head that contacts the thermal material. The heaters are arranged in square dots or strips and are logically controlled by the printer. When driven, a pattern corresponding to the heated elements is produced on the thermal paper. The same logic circuit that controls the heated elements also controls the paper feed, so that the pattern can be printed on the entire label or paper.
[0139] If the printing object includes barcoded content, it usually means that the printed content has a large amount of data, or contains more important content, which requires a longer readable life and a longer shelf life. At this time, laser printing mode is used for barcoded content, and ink cartridge printing mode is used for non-barcoded content to achieve the above effects in a targeted manner.
[0140] The cartridge printing mode uses an inkjet printer, which is generally a color printer, and is generally composed of four colors CMYK (C stands for cyan, M stands for magenta, Y stands for yellow, and K stands for black); an inkjet printer turns colored liquid ink into tiny particles through a nozzle and sprays it onto the printing paper. Some inkjet printers have three or four print heads to print yellow, magenta, cyan and black; some share one print head and print in four colors.
[0141] The laser printing mode uses a laser printer. The basic working principle is that the binary data information transmitted from the computer is converted into a video signal through the video controller, and then the video interface / control system converts the video signal into a laser drive signal. The laser scanning system then generates a laser beam carrying the character information. Finally, the electronic photography system images the laser beam and transfers it to paper.
[0142] The working principle of inkjet printer is roughly the same as that of laser printer. First, a computer or other device converts the content we want to print into a code that can be recognized by the machine, and then transmits the content to be printed to the signal processing part of the printer by wired or wireless means. Then the control circuit will instruct the mechanical part of the printer to work together to start printing. The paper enters from the top or bottom of the printer, and the paper pickup wheel is driven by the motor to transport the paper to the printing area. The stepper motor drives the carriage to reciprocate on the guide rail through the belt. The control circuit determines when, how much ink, and what color of ink to spray on the nozzle of the carriage, and finally the printing is completed.
[0143] It can be seen that the label printing method proposed in the present invention can adaptively select the printing mode and content display method according to the content of the label to be printed, thereby realizing automatic fast and efficient printing of labels in multiple environments and multiple objects without losing important information.
[0144] It is understandable that after the embodiment in the form of method flow is elaborated in detail, the corresponding embodiment in the form of system function architecture does not need to be repeated again, but those skilled in the art can directly and unambiguously determine that the embodiment in the form of system function architecture also corresponds to all the contents of the embodiment in the form of method flow. The same is true for the embodiment in the form of computer program code pseudo language.
[0145] For this purpose, see Figure 4 , is a schematic diagram of the functional modules of a label printing system according to an embodiment of the present invention.
[0146] Figure 4 A label printing system is shown, the label printing system comprising a label printer unit having a composite printing mode;
[0147] The label printing system also includes:
[0148] A label content acquisition unit, used to acquire the label content to be printed;
[0149] A printing parameter acquisition unit, used to acquire the data volume D of the label content, the printing resolution P of the label printer, and the size M of the printing area;
[0150] A fitness condition judgment unit, used to judge whether the data volume D, the printing resolution P, and the printing area size M meet the fitness condition;
[0151] A label content analysis unit, used to analyze whether the label content contains plain text keywords;
[0152] A label content segmentation unit, used for segmenting the label content;
[0153] When the fitness condition judgment unit judges that the data volume D, the printing resolution P, and the printing area size M meet the fitness condition, a printing instruction is sent to the label printer unit, and the label printer unit starts the thermal printing mode to print the label content;
[0154] Otherwise, the label content analyzing unit and the label content segmenting unit are activated.
[0155] exist Figure 4 On the basis of Figure 5 Show Figure 4 A schematic diagram of some functional modules of a further preferred embodiment of the label printing system.
[0156] exist Figure 5 In the embodiment of the system, the system also includes a barcoding unit (other functional module units refer to Figure 4 );
[0157] When the label content analysis unit analyzes that the label content contains plain text keywords, the label content segmentation unit is activated to segment the label content, specifically including:
[0158] The label content segmentation unit segments the label content into plain text keyword areas and non-plain text keyword areas;
[0159] The barcoding unit barcodes the label content corresponding to the non-plaintext keyword area to obtain barcoded content, combines the barcoded content and the label content corresponding to the plaintext keyword area as a printing object, and sends a printing instruction to the label printer unit. The label printer unit adopts a laser printing mode for the barcoded content and an ink cartridge printing mode for the non-barcoded content.
[0160] The system also includes a barcoding unit;
[0161] When the label content analysis unit analyzes that the label content does not contain a plain text keyword, activating the label content segmentation unit to segment the label content specifically includes:
[0162] The label content segmentation unit segments the label content into a first part and a second part, and the first part includes a data volume D 0 With the printing resolution P, printing area size M 0 Satisfy the adaptability conditions;
[0163] The label content corresponding to the second part is barcoded to obtain a barcoded block, and the area of the barcoded block is M 1 , and M 1 +M 0 <M;
[0164] The first part is combined with the barcoded block as a printing object, and a printing instruction is sent to the label printer unit. The label printer unit adopts a laser printing mode for barcoded content and an ink cartridge printing mode for non-barcoded content.
[0165] The system also includes a preset plaintext keyword library;
[0166] The preset plaintext keyword library includes a plurality of plaintext keywords, and the plaintext keywords include: a combination of at least two of: validity period, production date, precautions, storage conditions, and trademark;
[0167] The label content analysis unit analyzes whether the label content contains plain text keywords based on the preset plain text keyword library.
[0168] The label printing method proposed in the present invention can adaptively select the printing mode and content display method according to the content of the label to be printed, thereby realizing automatic fast and efficient printing of labels in multiple environments and multiple objects without losing important information. It has universal applicability and can be applied to a variety of label printing environments, thereby reducing the user's hardware cost.
[0169] The present invention provides multiple embodiments, each of which can constitute an independent technical solution and may contribute to the prior art and solve corresponding technical problems. However, it should be pointed out that different embodiments can be combined with each other without violating logic; at the same time, each embodiment can solve at least one technical problem, but it is not required that each individual embodiment solves multiple or all technical problems.
[0170] For other technologies, principles, algorithms or models not elaborated in detail in this application, please refer to the prior art.
[0171] 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.
[0172] The foregoing has shown and described the method embodiments and system of the present invention, but it is understandable to those skilled in the art that various changes, modifications, substitutions and variations may be made to these embodiments without departing from the principles and spirit of the present invention, and the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A label printing method, the method being performed by a label printer having a composite printing mode, characterized in that: The method comprises the following steps: S100: Obtain the content of the label to be printed; S200: Obtaining the data volume D of the label content, the printing resolution P of the label printer, and the size M of the printing area; S300: When the data volume D, the printing resolution P, and the printing area size M meet the adaptability conditions, the label content is used as the printing object and the process proceeds to step S600; Otherwise, proceed to step S400; S400: Analyze whether the label content contains plain text keywords; If yes, dividing the label content into a plain text keyword area and a non-plain text keyword area; S500: barcoding the label content corresponding to the non-plaintext keyword area to obtain barcoded content, and combining the barcoded content with the label content corresponding to the plaintext keyword area as a printing object; S600: If the print object does not include barcoded content, select a thermal printing mode; If the print object includes barcoded content, a laser printing mode is used for the barcoded content, and an ink cartridge printing mode is used for the non-barcoded content; S700: Print out labels; The label printing modes include thermal printing mode, laser printing mode and ink cartridge printing mode; the plain text keyword area is an area that cannot be barcoded, and the non-plain text keyword area is an area that can be barcoded.
2. A label printing method according to claim 1, characterized in that: The method further comprises: Establish a preset plaintext keyword library; The preset plaintext keyword library includes a plurality of plaintext keywords, and the plaintext keywords include: a combination of at least two of: validity period, production date, precautions, storage conditions, and trademark; The step S400 analyzes whether the label content contains plain text keywords based on the preset plain text keyword library.
3. A label printing method as claimed in claim 1, characterized in that: The step S400 further includes: If the label content does not contain plain text keywords, the label content is divided into a first part and a second part, and the data volume D0 contained in the first part, the printing resolution P, and the printing area size M0 meet the adaptability condition; The label content corresponding to the second part is barcoded to obtain a barcoded block, the area of the barcoded block is M1, and M1+M0 <M; The first part is combined with the barcoded block as a printing object, and the process jumps to step S600.
4. A label printing method as claimed in claim 1, characterized in that: The step S400 further includes: The step S500 barcodes the label content corresponding to the non-plaintext keyword area to obtain barcoded content, specifically including: Based on the label content corresponding to the non-plaintext keyword area, a barcoding method is selected, and the barcoding method includes generating a barcode or generating a QR code.
5. A label printing system, comprising a label printer unit having a composite printing mode, characterized in that: The label printing system also includes: A label content acquisition unit, used to acquire the label content to be printed; A printing parameter acquisition unit, used to acquire the data volume D of the label content, the printing resolution P of the label printer, and the size M of the printing area; A fitness condition judgment unit, used to judge whether the data volume D, the printing resolution P, and the printing area size M meet the fitness condition; A label content analysis unit, used to analyze whether the label content contains plain text keywords; A label content segmentation unit, used for segmenting the label content; When the fitness condition judgment unit judges that the data volume D, the printing resolution P, and the printing area size M meet the fitness condition, a printing instruction is sent to the label printer unit, and the label printer unit starts the thermal printing mode to print the label content; Otherwise, activating the label content analysis unit and the label content segmentation unit; The system also includes a barcoding unit; When the label content analysis unit analyzes that the label content contains plain text keywords, the label content segmentation unit is activated to segment the label content, specifically including: The label content segmentation unit segments the label content into plain text keyword areas and non-plain text keyword areas; The barcoding unit barcodes the label content corresponding to the non-plaintext keyword area to obtain barcoded content, combines the barcoded content and the label content corresponding to the plaintext keyword area as a printing object, and sends a printing instruction to the label printer unit. The label printer unit adopts a laser printing mode for the barcoded content and an ink cartridge printing mode for the non-barcoded content.
6. A label printing system as claimed in claim 5, characterized in that: The system also includes a barcoding unit; When the label content analysis unit analyzes that the label content does not contain a plain text keyword, activating the label content segmentation unit to segment the label content specifically includes: The label content segmentation unit segments the label content into a first part and a second part, and the data volume D0 contained in the first part, the printing resolution P, and the printing area size M0 meet the adaptability condition; The label content corresponding to the second part is barcoded to obtain a barcoded block, the area of the barcoded block is M1, and M1+M0 <M; The first part is combined with the barcoded block as a printing object, and a printing instruction is sent to the label printer unit.
7. A label printing system as claimed in claim 5, characterized in that: The system also includes a preset plaintext keyword library; The preset plaintext keyword library includes a plurality of plaintext keywords, and the plaintext keywords include: a combination of at least two of: validity period, production date, precautions, storage conditions, and trademark; The label content analysis unit analyzes whether the label content contains plain text keywords based on the preset plain text keyword library.
8. A portable label printing device, the device comprising a memory and a processor, the memory storing computer program instructions, the computer program instructions being executed by the processor to implement all steps of a label printing method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Printing system and printing device and installation method thereof
CN103838595A
Printer system and printer
CN1432902A