Inkjet printing barcode processing method, device and electronic equipment
By arranging and decomposing the inkjet printing barcode layout and combining it with a composite dot matrix data format, efficient barcode generation and printing are achieved, solving the printing speed problem under high resolution and high firing frequency, and improving the system's printing efficiency and data processing capabilities.
Patent Information
- Application Number
- CN202111584425.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2041-12-22
AI Technical Summary
The existing technology has insufficient speed in generating barcodes using inkjet printing at high resolution and high firing frequency, which results in the printing system being unable to meet high-speed requirements. In addition, traditional methods have drawbacks such as low flexibility and large data volumes.
By arranging the barcode layout to be printed, generating a page description file, and splitting the tasks according to the number of inkjet heads, the barcode data is extracted from the database in real time, and a composite dot matrix data format is used for distributed storage and transmission to ensure that the inkjet heads print on demand.
It improves the speed of inkjet barcode generation, meets the printing requirements under high resolution and high firing frequency, reduces the workload of data handling, and improves the system's storage performance and data bandwidth efficiency.
Smart Images

Figure CN114330622B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of printing technology, and in particular to an inkjet printing barcode processing method, device, and electronic device. Background Art
[0002] With the development of barcode technology and the popularity of smartphones, barcodes are increasingly being used, driving demand for faster and broader barcode printing. Inkjet barcode printing, with its advantages of requiring no platemaking and rapid imaging, is widely used in the barcode printing industry. However, with increasing business volume, the demand for printing speeds is increasing. Simultaneously, the inkjet heads used in inkjet printing have also seen significant technological advancements. Currently, Fujifilm's Samba printheads have achieved a native horizontal resolution of 1200 pixels and a firing frequency of 100 kHz, resulting in a printing speed of 127 m / min at 1200 dpi. This creates even higher demands on the speed of barcode printing.
[0003] In traditional printing systems, there are generally two methods for generating barcode dot matrix. The first related technology is to separate the generation system from the printing system, generate the barcode dot matrix into a file in advance, and then read, transmit and print it when the printing system prints. Figure 1 The second related technology is to combine the generation system with the printing system, and generate a page of barcode dot matrix in real time, and then transmit and print it, such as Figure 2 shown.
[0004] Related technology 1 can better meet the high-speed requirements during printing, such as the use of high-performance disk solutions. However, this method generates files in advance, and after adjusting the version, proofreading, and fine-tuning during printing, the files must be regenerated and then loaded for printing. This method has defects such as low flexibility and complex procedures, and is not common in barcode printing. Related technology 2 places high demands on the real-time generation speed of barcodes to avoid the generation speed not keeping up, resulting in printing interruption. The traditional approach is to apply for a page of layout memory, copy the generated barcode data as a whole to the corresponding memory, and then transmit it to the CNC system, which controls the inkjet head for printing. In short, an increase in DPI will increase the amount of layout memory, and an increase in the ignition speed of the inkjet head will increase the throughput of the layout memory, requiring a larger amount of data per unit time. Summary of the Invention
[0005] In view of this, the present application proposes an inkjet printing barcode processing method, device and electronic equipment to solve the barcode generation speed and printing problems under high resolution and high firing frequency.
[0006] In the first aspect, an embodiment of the present application provides an inkjet printing barcode processing method, including: arranging the layout of the barcode to be printed to obtain a page number description file, the page number description file containing the position information, barcode information and barcode sequence of all barcodes on the layout; decomposing the printing task according to the number of inkjet heads to obtain multiple decomposition tasks; extracting the barcode data corresponding to the printing task from a database; determining the current page number dot matrix data and position information based on the barcode data and the page number description file; determining the regional dot matrix data and regional position information corresponding to each of the multiple decomposition tasks from the current page number dot matrix data and position information, the regional dot matrix data corresponding to the multiple decomposition tasks constituting the current page number dot matrix data, and the regional position information corresponding to the multiple decomposition tasks constituting the position information; sending the regional dot matrix data and regional position information corresponding to each decomposition task to a numerical control system.
[0007] The above-mentioned inkjet printing barcode processing method arranges the layout of the barcode to be printed and obtains a page number description file. Afterwards, the printing task is decomposed according to the number of inkjet heads to obtain multiple decomposition tasks. The page number dot matrix data and position information corresponding to the printing task are determined by the page number description file. Afterwards, the page number dot matrix data and position information are divided according to the multiple decomposition tasks obtained by task decomposition to obtain the regional dot matrix data and regional position information corresponding to each decomposition task. Finally, the regional dot matrix data and regional position information corresponding to each decomposition task are sent to the numerical control system, so that the numerical control system controls the inkjet head to print the barcode dot matrix to the accurate position according to the operating speed of the printing platform. The above-mentioned method can improve the generation speed of inkjet printed barcodes and meet the high requirements on inkjet printing speed.
[0008] In combination with the first aspect, in some possible implementations, the layout of the barcode to be printed is arranged to obtain a page number description file, including: obtaining a layout instruction input by a user, the layout instruction including: layout width, height, barcode width, height, horizontal coordinate, vertical coordinate, and an associated database name; and generating the page number description file based on the layout instruction.
[0009] In combination with the first aspect, in some possible implementations, the printing task is decomposed according to the number of inkjet heads to obtain multiple decomposed tasks, including: starting multiple decomposition task threads according to the number of columns of enabled inkjet heads, and the number of the multiple decomposition task threads is the same as the number of columns.
[0010] In combination with the first aspect, in some possible implementations, determining the current page number dot matrix data and position information based on the barcode data and the page number description file includes: calling the Windows Gdi Api and the barcode drawing library, combining the barcode data and the page number description file, and drawing to obtain the current page number dot matrix data and position information; storing the current page number dot matrix data and position information in a preset container in the form of a composite dot matrix, the composite dot matrix including dot matrix control information and dot matrix memory, and the control information including abscissa, ordinate, width, height, and dot matrix memory size.
[0011] In combination with the first aspect, in some possible implementations, the method further includes: storing the regional dot matrix data and regional position information corresponding to each disassembly task in the multiple disassembly tasks; wherein the storage format includes file control information, page control information, dot matrix control information and dot matrix, the file control information includes the task sequence number, the total page number within the file, the starting page number and the ending page number of the file, the page control information includes the page number and the number of dots, and the dot matrix control information includes the dot matrix horizontal coordinate, vertical coordinate, width, height and dot matrix amount.
[0012] In combination with the first aspect, in some possible implementations, the sending of the regional dot matrix data and regional position information corresponding to each disassembly task to the numerical control system includes: sending the regional dot matrix data and regional position information to the numerical control system through the data link corresponding to each disassembly task, so that the numerical control system controls the inkjet head to print the barcode dot matrix to the accurate position according to the operating speed of the printing platform.
[0013] In combination with the first aspect, in some possible implementations, the method further includes: performing synchronization processing between data links corresponding to each disassembly task.
[0014] In the second aspect, an embodiment of the present application provides an inkjet printing barcode processing device, including: a layout module, used to layout the layout of the barcode to be printed and obtain a page number description file, wherein the page number description file contains the position information, barcode information and barcode sequence of all barcodes on the layout; a task disassembly module, used to perform task disassembly on the printing task according to the number of inkjet heads to obtain multiple disassembly tasks; an extraction module, used to extract the barcode data corresponding to the printing task from the database; a first determination module, used to determine the current page number dot matrix data and position information based on the barcode data and the page number description file; a second determination module, used to determine the regional dot matrix data and regional position information corresponding to each of the multiple disassembly tasks from the current page number dot matrix data and position information, the regional dot matrix data corresponding to the multiple disassembly tasks constitute the current page number dot matrix data, and the regional position information corresponding to the multiple disassembly tasks constitute the position information; a sending module, used to send the regional dot matrix data and regional position information corresponding to each disassembly task to the numerical control system.
[0015] In a third aspect, an embodiment of the present application provides an electronic device comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the method as described in any one of the first aspects when executing the executable instructions.
[0016] In a fourth aspect, an embodiment of the present application provides a non-volatile computer-readable storage medium having computer program instructions stored thereon, and when the above-mentioned computer program instructions are executed by a processor, the method as described in any one of the first aspects is implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer-readable storage medium carrying computer-readable program instructions for enabling a processor to implement various aspects of the present application; when the computer program product is run on an electronic device, the electronic device executes any one of the methods described in the first aspect above.
[0018] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of related technology 1;
[0020] Figure 2 Schematic diagram of related technology 2;
[0021] Figure 3 A schematic diagram of the process of inkjet printing barcode processing provided in an embodiment of the present application;
[0022] Figure 4A schematic diagram of a page description file provided in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of the distribution structure of the nozzle modules provided in the embodiment of the present application;
[0024] Figure 6 A composite lattice data structure provided in an embodiment of the present application;
[0025] Figure 7 Synchronization and transmission process of distributed composite lattice data provided in the embodiment of the present application;
[0026] Figure 8 A schematic diagram of the process flow of the inkjet printing barcode processing device provided in an embodiment of the present application;
[0027] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the objectives, technical solutions, and advantages of the present invention more clearly understood, specific embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention. In some instances, methods, means, components, and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present application.
[0029] The embodiment of the present application is designed for higher dot matrix generation speed. During operation, the barcode is first arranged and a page description template file is output based on the page layout. After the barcode generation begins, the printing task is first disassembled, and then the barcode data is extracted from the barcode database in real time and applied to each task for parallel generation. Finally, the composite dot matrix data is distributed and stored on disk media or transmitted to the printing device. The barcode extraction and parallel task output are cycled until all barcodes are generated. This application adopts a distributed task and storage design suitable for inkjet printing and adopts a composite dot matrix data format, which can greatly improve the generation speed of inkjet printed barcodes and meet the high speed requirements of inkjet printing.
[0030] Figure 3 The flowchart of the inkjet printing barcode processing method provided in the embodiment of the present application is shown. Figure 3 , the above-mentioned inkjet printing barcode processing method is described in detail as follows.
[0031] Step 201: Arrange the layout of the barcode to be printed and obtain a page number description file.
[0032] The page description file includes the position information, barcode information and barcode sequence of all barcodes on the page.
[0033] In some embodiments, step 201 may include: obtaining a layout instruction input by a user, wherein the layout instruction includes: layout width, height, barcode width, height, horizontal coordinate, vertical coordinate, and associated database name; and generating the page number description file based on the layout instruction.
[0034] For example, the user can enter the layout information in the setting software, including the layout width, height, barcode width, height, horizontal coordinate, vertical coordinate, and the associated database name. After the user completes the above layout information and saves it, the layout instruction will be triggered and a page description file will be generated. This page description file records the layout information as described above. By opening this page description file, all barcode layout information and display can be restored, such as Figure 4 shown.
[0035] Step 202 : Decompose the printing task according to the number of inkjet heads to obtain a plurality of decomposed tasks.
[0036] In some embodiments, step 202 may include: starting a plurality of disassembly task threads according to the number of columns of enabled inkjet heads, where the number of the plurality of disassembly task threads is the same as the number of columns.
[0037] One of the starting points for the implementation of this application is the particularity of inkjet printing barcodes. Usually, the inkjet heads are installed independently, and each prints the barcode dot matrix responsible for the column, such as Figure 5 In this step, the number of inkjet heads enabled N ( Figure 5 N=6, which is only for illustrative purposes), with columns as division units, N disassembly task threads are started, and step 203 is executed simultaneously to extract the barcode data required for a page layout (corresponding to the printing task) from the database.
[0038] Step 203: extract the barcode data corresponding to the printing task from the database.
[0039] Step 204: Determine the current page dot matrix data and position information based on the barcode data and the page description file.
[0040] In some embodiments, step 204 may include: calling the Windows Gdi Api and the barcode drawing library, combining the barcode data and the page number description file, and drawing to obtain the current page number dot matrix data and position information; storing the current page number dot matrix data and position information in a preset container in the form of a composite dot matrix, wherein the composite dot matrix includes dot matrix control information and dot matrix memory, and the control information includes horizontal coordinates, vertical coordinates, width, height, and dot matrix memory size.
[0041] For example, the barcode data of a page obtained in step 203 can be applied to this step, calling the Windows Gdi Api and the barcode drawing library to output the current page number dot matrix data and position information. After the drawing is completed, this step needs to store all the position information and the corresponding dot matrix data address into a container, and notify N disassembly task threads. After all N disassembly task threads have taken them, the next cycle will be carried out.
[0042] It should be noted that in this step, not all dot matrices are output, but a composite dot matrix is used for output. Figure 6 As shown, the composite dot matrix includes dot matrix control information and dot matrix memory. The control information includes the horizontal coordinate, vertical coordinate, width, height, and dot matrix memory size. In common printing layouts, using composite dot matrix output can reduce data handling by about 50%.
[0043] Step 205 : Determine, from the current page number dot matrix data and position information, the region dot matrix data and region position information corresponding to each of the plurality of disassembly tasks.
[0044] The regional dot matrix data corresponding to the multiple disassembly tasks constitute the current page number dot matrix data, and the regional position information corresponding to the multiple disassembly tasks constitutes the position information.
[0045] Exemplarily, after step 205, the method may further include storing the regional dot matrix data and regional location information corresponding to each of the multiple disassembly tasks. The storage format includes file control information, page control information, dot matrix control information, and dot matrix. The file control information includes the task sequence number, the total page number within the file, the starting page number, and the ending page number of the file. The page control information includes the page number and the number of dot matrices. The dot matrix control information includes the dot matrix horizontal coordinate, vertical coordinate, width, height, and dot matrix quantity.
[0046] Specifically, each of the N task threads stores the obtained composite dot matrix information, and can selectively use compression methods to store files based on the layout and the user's disk performance indicators. Figure 7 As shown, it can be directly used as input for step 5 without being stored; it can also be stored and used as input for other system solutions.
[0047] Step 206: Send the regional dot matrix data and regional position information corresponding to each disassembly task to the numerical control system.
[0048] For example, the regional dot matrix data and regional position information can be sent to the CNC system through the data link corresponding to each disassembly task, so that the CNC system controls the inkjet head to print the barcode dot matrix to the accurate position according to the running speed of the printing platform.
[0049] Specifically, the regional dot matrix data and regional position information corresponding to each disassembly task can be distributed and sent to the CNC system through the data links corresponding to N disassembly tasks in units of pages. The CNC system controls the inkjet head to print the barcode dot matrix to the accurate position according to the running speed of the printing platform.
[0050] In some possible implementations, the above method may further include: performing synchronization processing between data links corresponding to each disassembly task.
[0051] Specifically, for N data links, synchronous management is required, mainly to complete load balancing and abnormal situation handling. During printing, N nozzle modules need to have dot matrix data at the same time before they can complete the printing. If the data of one link is not sent, this will cause the system to report an error and the printing cannot be completed. Synchronous management must ensure that the dot matrix data on each nozzle module is balanced. Abnormal situation handling needs to be completed. For example, if an error occurs in a data link, how to terminate the data transmission of other links and how to return the system to standby state, etc., to ensure that the next printing can start normally after the fault is resolved.
[0052] The above-mentioned inkjet printing barcode processing method is mainly aimed at the scenario of inkjet printing barcodes, performs multi-task disassembly, and performs distributed composite dot matrix storage or transmission, so that the entire system efficiently meets the high-speed requirements of barcode printing.
[0053] In an embodiment of the present application, the layout of the barcode to be printed is arranged to obtain a page number description file. Then, the printing task is decomposed according to the number of inkjet heads to obtain multiple decomposed tasks. The page number dot matrix data and position information corresponding to the printing task are determined through the page number description file. Then, the page number dot matrix data and position information are divided according to the multiple decomposed tasks obtained by task decomposition to obtain the regional dot matrix data and regional position information corresponding to each decomposed task. Finally, the regional dot matrix data and regional position information corresponding to each decomposed task are sent to the numerical control system, so that the numerical control system controls the inkjet head to print the barcode dot matrix to the accurate position according to the operating speed of the printing platform.
[0054] By effectively coordinating with the layout software, task decomposition, and composite distributed storage, the system can quickly generate barcode position information and valid dot matrixes, reducing useless dot matrixes to zero, improving storage performance and reducing data bandwidth requirements. Using the solution of the embodiment of the present application, the existing system can meet the firing frequency of the two superimposed Samba nozzles and fully meet the high-speed printing requirements of 260m / min.
[0055] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0056] Corresponding to the inkjet printing barcode processing method described in the above embodiment, Figure 8 A structural block diagram of an inkjet printing barcode processing device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0057] See also Figure 8 The inkjet printing barcode processing device in the embodiment of the present application may include a layout module 301, a task decomposition module 302, an extraction module 303, a first determination module 304, a second determination module 305 and a sending module 306.
[0058] Among them, the layout module 301 is used to layout the layout of the barcode to be printed and obtain a page number description file, which contains the position information, barcode information and barcode order of all barcodes on the layout. The task disassembly module 302 is used to disassemble the printing task according to the number of inkjet heads to obtain multiple disassembly tasks. The extraction module 303 is used to extract the barcode data corresponding to the printing task from the database. The first determination module 304 is used to determine the current page number dot matrix data and position information based on the barcode data and the page number description file. The second determination module 305 is used to determine the regional dot matrix data and regional position information corresponding to each of the multiple disassembly tasks from the current page number dot matrix data and position information. The regional dot matrix data corresponding to the multiple disassembly tasks constitute the current page number dot matrix data, and the regional position information corresponding to the multiple disassembly tasks constitute the position information. The sending module 306 is used to send the regional dot matrix data and regional position information corresponding to each disassembly task to the numerical control system.
[0059] Optionally, the layout module 301 can be specifically used to: obtain the layout instructions input by the user, the layout instructions including: layout width, height, barcode width, height, horizontal coordinate, vertical coordinate, and associated database name; generate the page number description file based on the layout instructions.
[0060] Optionally, the task disassembling module 302 may specifically include: starting a plurality of disassembling task threads according to the number of columns of enabled inkjet heads, where the number of the plurality of disassembling task threads is the same as the number of columns.
[0061] Optionally, the first determination module 304 can be specifically used to: call the Windows Gdi Api and the barcode drawing library, combine the barcode data and the page number description file, and draw the current page number dot matrix data and position information; store the current page number dot matrix data and position information in a preset container in the form of a composite dot matrix, and the composite dot matrix includes dot matrix control information and dot matrix memory, and the control information includes horizontal coordinates, vertical coordinates, width, height, and dot matrix memory size.
[0062] Optionally, the above-mentioned device may also include: a storage module for storing the regional dot matrix data and regional position information corresponding to each disassembly task in the multiple disassembly tasks; wherein the storage format includes file control information, page control information, dot matrix control information and dot matrix, the file control information includes the task sequence number, the total page number within the file, the starting page number and the ending page number of the file, the page control information includes the page number and the number of dots, and the dot matrix control information includes the dot matrix horizontal coordinate, vertical coordinate, width, height and dot matrix quantity.
[0063] Optionally, the sending module 306 can be specifically used to send the regional dot matrix data and regional position information to the CNC system through the data link corresponding to each disassembly task, so that the CNC system controls the inkjet head to print the barcode dot matrix to the accurate position according to the running speed of the printing platform.
[0064] Optionally, the above device may further include: a synchronization module, configured to synchronize data links corresponding to various disassembly tasks.
[0065] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0066] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0067] Figure 9 This is a structural diagram of an electronic device 400 provided in an embodiment of the present application. The electronic device 400 may include: at least one processor 410, a memory 420, and a computer program 421 stored in the memory 420 and executable on the at least one processor 410. When the processor 410 executes the computer program, the steps in any of the above-mentioned method embodiments are implemented, for example Figure 3 Steps 201 to 206 in the embodiment shown. Alternatively, when the processor 510 executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are realized, for example Figure 8 Functions of modules 301 to 306 are shown.
[0068] For example, the computer program may be divided into one or more modules / units, one or more modules / units being stored in the memory 420 and executed by the processor 410 to complete the present application. The one or more modules / units may be a series of computer program segments capable of completing specific functions, and the program segments are used to describe the execution process of the computer program in the electronic device 400.
[0069] Those skilled in the art will understand that Figure 8 These are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, buses, etc.
[0070] The processor 410 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0071] The memory 420 may be an internal storage unit of the electronic device 400 or an external storage device of the electronic device 400, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. The memory 420 is used to store the computer program and other programs and data required by the electronic device. The memory 420 may also be used to temporarily store data that has been output or is about to be output.
[0072] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be classified into address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.
[0073] In an exemplary embodiment, a non-volatile computer-readable storage medium, such as a memory, including computer program instructions is also provided. The computer program instructions can be executed by a processor of an electronic device to perform the above method.
[0074] The present application may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.
[0075] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
[0076] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in the computer-readable storage medium in each computing / processing device.
[0077] The computer program instructions for performing the operation of the present application can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data or source code or object code written in any combination of one or more programming languages, wherein the programming language includes object-oriented programming languages such as Smalltalk, C++, and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or executed completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer by any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (such as by using an Internet service provider to connect to the Internet). In certain embodiments, by utilizing the state information of computer-readable program instructions to personalize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions, thereby realizing various aspects of the present application.
[0078] Various aspects of the present application are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0079] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0080] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0081] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a special hardware-based system that performs the function or action of the specification, or can be implemented by a combination of special hardware and computer instructions.
[0082] The embodiments of the present application have been described above. The above description is illustrative and not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, practical applications, or technical improvements to existing technologies, or to enable other persons skilled in the art to understand the embodiments disclosed herein.
Claims
1. A method for processing inkjet printed barcodes, characterized in that: include: Arranging the layout of the barcodes to be printed to obtain a page description file, wherein the page description file includes position information, barcode information and barcode sequence of all barcodes on the layout; Decompose the printing task according to the number of inkjet heads to obtain multiple decomposed tasks; Extracting barcode data corresponding to the printing task from a database; Determining the current page number dot matrix data and position information according to the barcode data and the page number description file; Determining, from the current page dot matrix data and position information, regional dot matrix data and regional position information corresponding to each of the multiple disassembly tasks, wherein the regional dot matrix data corresponding to the multiple disassembly tasks constitute the current page dot matrix data, and the regional position information corresponding to the multiple disassembly tasks constitute the position information; Send the regional dot matrix data and regional position information corresponding to each disassembly task to the CNC system; The step of determining the current page number dot matrix data and position information based on the barcode data and the page number description file includes: Calling the Windows Gdi Api and the barcode drawing library, combining the barcode data and the page description file, and drawing to obtain the current page dot matrix data and position information; The current page number dot matrix data and position information are stored in a preset container in the form of a composite dot matrix. The composite dot matrix includes dot matrix control information and dot matrix memory. The control information includes abscissa, ordinate, width, height, and dot matrix memory size.
2. The inkjet printing barcode processing method according to claim 1, characterized in that: The layout of the barcode to be printed is arranged to obtain a page number description file, including: Obtaining a layout instruction input by a user, wherein the layout instruction includes: layout width, height, barcode width, height, horizontal coordinate, vertical coordinate, and associated database name; The page number description file is generated based on the layout instruction.
3. The inkjet printing barcode processing method according to claim 1, characterized in that: The printing task is decomposed according to the number of inkjet heads to obtain multiple decomposed tasks, including: According to the number of columns of enabled inkjet heads, a plurality of disassembly task threads are started, and the number of the plurality of disassembly task threads is the same as the number of columns.
4. The inkjet printing barcode processing method according to claim 1, characterized in that: The method further comprises: Storing the regional dot matrix data and regional position information corresponding to each of the multiple disassembly tasks; Among them, the storage format includes file control information, page control information, dot matrix control information and dot matrix. The file control information includes the task sequence number, the total page number within the file, the starting page number and the ending page number of the file. The page control information includes the page number and the number of dots. The dot matrix control information includes the dot matrix horizontal coordinate, vertical coordinate, width, height and dot matrix amount.
5. The inkjet printing barcode processing method according to claim 1, characterized in that: The sending of the regional dot matrix data and regional position information corresponding to each disassembly task to the numerical control system includes: The regional dot matrix data and regional position information are sent to the numerical control system through the data link corresponding to each disassembly task, so that the numerical control system controls the inkjet head to print the barcode dot matrix to the accurate position according to the running speed of the printing platform.
6. The inkjet printing barcode processing method according to claim 5, characterized in that: The method further comprises: Perform synchronization between the data links corresponding to each disassembly task.
7. An inkjet printing barcode processing device, characterized in that: include: A page layout module is used to layout the page for printing barcodes and obtain a page description file, wherein the page description file includes the position information, barcode information and barcode sequence of all barcodes on the page; A task disassembly module is used to disassemble the printing task according to the number of inkjet heads to obtain multiple disassembled tasks; An extraction module, used for extracting barcode data corresponding to the printing task from a database; A first determining module, configured to determine the dot matrix data and position information of the current page number according to the barcode data and the page number description file; a second determining module, configured to determine, from the current page dot matrix data and the position information, regional dot matrix data and regional position information corresponding to each of the plurality of disassembly tasks, wherein the regional dot matrix data corresponding to the plurality of disassembly tasks constitute the current page dot matrix data, and the regional position information corresponding to the plurality of disassembly tasks constitute the position information; The sending module is used to send the regional dot matrix data and regional position information corresponding to each disassembly task to the CNC system; The step of determining the current page number dot matrix data and position information based on the barcode data and the page number description file includes: Calling the Windows Gdi Api and the barcode drawing library, combining the barcode data and the page description file, and drawing to obtain the current page dot matrix data and position information; The current page number dot matrix data and position information are stored in a preset container in the form of a composite dot matrix. The composite dot matrix includes dot matrix control information and dot matrix memory. The control information includes abscissa, ordinate, width, height, and dot matrix memory size.
8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 6 when executing the executable instructions.
9. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Electronic supervision code printing method and system
CN104281418A
Print data splitting processing method, apparatus, and printing apparatus
CN109471602A