Label image calibration printing method and device, equipment and storage medium
By obtaining the positioning points on the background image, calculating the deviation amount and calibrating the label image, the problem of misalignment between the label image and the background image is solved, and high-quality label image printing is achieved.
Patent Information
- Application Number
- CN202410140276.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-01
- Publication Date
- 2025-08-01
AI Technical Summary
When the multi-tip module is variable printing, due to paper removal or unstable platform, there is a misalignment between the label image and the background image, which affects the printing effect.
By obtaining the positioning points on the background image, calculating the deviation amount between the background image and the label image, calibrating the label image according to the deviation amount, generating calibration printing data, and controlling the nozzle to inkjet printing to print the label image on the background image.
Overcome the printing deviation caused by paper removal or platform instability during printing, ensure that the label image is correctly printed and reserved in the background image, improving the overall image printing quality.
Smart Images

Figure CN120406869A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of inkjet printers, and in particular to a label image calibration printing method, device, equipment and storage medium. Background Art
[0002] With the widespread use of computers for graphics and text processing, printers have become increasingly common. Printers allow people to easily output text or graphics from computers onto images. Onepass printing involves aligning the nozzle's length (X-direction) perpendicular to the print medium's movement (Y-direction). The nozzle is typically stationary, and the print medium passes under it once to create the desired pattern. The print medium moves continuously, without pause. OnePass has gained popularity due to its unique speed advantage. OnePass's support for variable printing is a key feature of the OnePass printing market. Variable printing involves printing different label images on the same background image.
[0003] When using a multi-nozzle module for variable printing, in order to ensure printing speed and efficiency, the background image and label image are generally printed separately. For example, the background image is printed first and the label image is printed later. This requires leaving a blank area on the background image to facilitate label printing. However, due to paper feeding or platform instability, printing deviation may occur, causing misalignment between the label image and the background image, affecting the final image printing effect. Summary of the Invention
[0004] In view of this, an embodiment of the present invention provides a label image calibration printing method, device and equipment to solve the problem of misalignment between the label and the background image caused by deviation in label printing due to paper feeding or platform instability in the prior art.
[0005] In a first aspect, an embodiment of the present invention provides a method for calibrating and printing a label image, which includes:
[0006] A label image calibration printing method comprises the following steps:
[0007] S1: Get the positioning point on the background image;
[0008] S2: obtaining an image deviation between the background image and the label image according to the positioning point;
[0009] S3: calibrating the label image according to the image deviation to obtain calibration printing data of the label image;
[0010] S4: Controlling the nozzle to perform inkjet printing according to the calibration printing data to print the label image on the background image.
[0011] Preferably, obtaining the positioning points of the background image includes:
[0012] Controlling an image acquisition device to acquire the background image to obtain a first image;
[0013] Identifying the images corresponding to the positioning points in the first image to obtain the positioning points on the background image.
[0014] Preferably, the image deviation amount includes a deviation angle, the positioning points include a first positioning point and a second positioning point, and obtaining the image deviation amount according to the positioning points includes:
[0015] Establishing a two-dimensional preset image coordinate system according to the coordinate system of the printing platform;
[0016] Obtaining the first positioning point coordinates and the second positioning point coordinates corresponding to the first positioning point and the second positioning point in the preset image coordinate system;
[0017] Obtaining the deviation angle according to the first positioning point coordinates and the second positioning point coordinates.
[0018] Preferably, obtaining the deviation angle according to the first positioning point coordinates and the second positioning point coordinates includes:
[0019] Denoting the first positioning point coordinates as (Xa, Ya), and the second positioning point coordinates as (Xb, Yb);
[0020] Obtaining the distance L between the first positioning point and the second positioning point;
[0021] Obtaining the deviation angle according to the following formula:
[0022] α = arcTan(|Yb - Ya| / L).
[0023] Preferably, the image deviation amount further includes a deviation distance, and obtaining the image deviation amount according to the positioning points further includes:
[0024] Obtaining the coordinates of a preset positioning point in the preset image coordinate system, denoted as the preset positioning point coordinates;
[0025] Obtaining the distance between the preset positioning coordinates and the first positioning point coordinates in the X-axis direction to obtain the deviation distance.
[0026] Preferably, calibrating the label image according to the image deviation amount to obtain the calibrated printing data of the label image includes:
[0027] Obtaining the original printing data corresponding to the label image;
[0028] Rotating the original print data according to the deviation angle to obtain the print data after rotation processing, which is the calibrated print data.
[0029] Preferably, controlling the print head to perform inkjet printing according to the calibrated print data to print the label image on the background image includes:
[0030] Obtaining the original print trigger position of the label image;
[0031] Obtaining the delay inkjet distance according to the deviation distance;
[0032] Obtaining the actual print trigger position of the label image according to the original print trigger position and the delay inkjet distance;
[0033] Triggering the print head to inkjet-print the label image onto the background image according to the calibrated print data according to the actual print trigger position.
[0034] In a second aspect, an embodiment of the present invention provides a label image calibration printing device, and the device includes:
[0035] A positioning point acquisition module, configured to acquire the positioning points of the background image through a sensor;
[0036] A deviation amount acquisition module, configured to obtain deviation data obtained by calculation according to the expected image position and the actual image position;
[0037] A calibration module, configured to calibrate the data to be printed through the obtained deviation data to obtain the calibrated print data of the label image;
[0038] A print control module, configured to control the print head to perform inkjet printing according to the calibrated print data to print the label image on the background image.
[0039] In a third aspect, an embodiment of the present invention provides a printing device, including: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method in the first aspect of the above-mentioned embodiment is implemented.
[0040] In a fourth aspect, an embodiment of the present invention provides a storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by the processor, the method in the first aspect of the above-mentioned embodiment is implemented.
[0041] In summary, the beneficial effects of the present invention are as follows:
[0042] A method, device, equipment and storage medium for calibrating and printing label images provided by an embodiment of the present invention obtain positioning points located on a background image, obtain an image deviation amount between the background image and the label image according to the obtained positioning points, calibrate the label image according to the image deviation amount to obtain calibration printing data of the label image, and control an inkjet head to perform inkjet printing according to the calibration printing data to print the label image on the background image, overcoming printing deviations caused by paper feeding or unstable printing platforms during the printing process, ensuring that the label image can be correctly printed at a reserved position in the background image, and improving the overall image printing quality. Description of the Drawings
[0043] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments of the present invention will be briefly introduced below. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to these drawings, and all of these are within the protection scope of the present invention.
[0044] Figure 1 It is a flowchart of a method for calibrating and printing label images provided in Embodiment 1.
[0045] Figure 2 It is a schematic diagram of obtaining positioning points in a background image in Embodiment 1.
[0046] Figure 3 It is a schematic diagram of confirming the deviation angle in Embodiment 1.
[0047] Figure 4 It is a schematic diagram of confirming the deviation distance in Embodiment 1.
[0048] Figure 5 It is a schematic diagram of calibrating and printing label images in Embodiment 1.
[0049] Figure 6 It is a schematic diagram of the structure of a label image calibration and printing device according to Embodiment 2 of the present invention.
[0050] Figure 7 It is a schematic diagram of the structure of a label image calibration and printing device according to Embodiment 3 of the present invention. Detailed Embodiments
[0051] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. To make the objectives, technical solutions, and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without some of these specific details. The following description of the embodiments is only provided to provide a better understanding of the present invention by showing examples of the present invention.
[0052] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Thus, features defined with "first", "second" may explicitly or implicitly include one or more of such features. In the description of this embodiment, unless otherwise specified, the meaning of "a plurality" is two or more. Moreover, the terms "include", "comprise" or any other variation thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, elements defined by the statement "comprising..." do not preclude the presence of additional identical elements in the process, method, article or device comprising the said elements.
[0053] Embodiment 1
[0054] The embodiment of the present invention provides a method for calibrating and printing label images, referring to Figure 1 , the steps of the method are as follows:
[0055] S1: Obtain the positioning points located on the background image;
[0056] The positioning points are specific positions or features in the image, and they can be key points, markers of an object, or unique landmarks. In image processing, positioning points are usually used to identify or locate objects, detect specific patterns, or perform other tasks.
[0057] In one embodiment, a sensor is set in the printing device. The background image is slowly moved to the lower position through the conveyor belt of the printing table. When an object passes by the sensor, the sensor senses the object and sends a signal. When the image acquisition device receives the signal sent by the sensor, it will take a picture of the background image. After the picture-taking is completed, by uploading the acquired background image to the controller of the printing device, it can be achieved through machine vision algorithms, such as the sift algorithm and the surf algorithm, to detect the positioning points in the image and perform matching to obtain the positioning points.
[0058] In another embodiment, after placing the background image on the printing table, the tester views the background image through specific positions or features in the known image to confirm the positioning points of the background image.
[0059] S2: Obtain the image deviation amount between the background image and the label image according to the positioning points;
[0060] In one embodiment, after the image acquisition device acquires the positioning points of the background image, it will send the acquired background image to the controller. After the controller obtains the actual position of the background image positioning points, it compares them with the previously stored label image positioning points, and calculates the deviation amount of the image.
[0061] S3: Calibrate the label image according to the image deviation amount to obtain the printing data of the calibrated label image of the label image;
[0062] Specifically, after obtaining the image deviation amount, calibrate the label image according to the image deviation amount. For example, when the image deviation amount is an angular deviation, then rotate the label image, and then obtain the printing data corresponding to the rotated label image.
[0063] S4: Control the nozzle to perform inkjet printing according to the calibrated printing data to print the label image on the background image;
[0064] Specifically, after obtaining the printing data of the calibrated label image, the controller will control the nozzle to print at the corresponding position in the background image according to the obtained printing data.
[0065] In one embodiment, the obtaining of the positioning points located on the background image includes:
[0066] S11: Control the image acquisition device to acquire the background image to obtain a first image;
[0067] S12: Identify the image corresponding to the positioning points in the first image, so as to obtain the positioning points on the background image according to the first image.
[0068] Specifically, refer to Figure 2, when the method of obtaining the positioning points on the background image is machine acquisition, after the sensor senses the background image, the sensor will send a signal to the controller, and the controller will control the image acquisition device to acquire the background image, and the acquired image is the first image.
[0069] After acquiring the first image, the controller will implement through machine vision algorithms, such as the sift algorithm and the surf algorithm, to detect the images corresponding to the positioning points in the first image of the ground image, and perform matching, and finally identify the positioning points in the first image.
[0070] When the method of obtaining the positioning points on the background image is manual acquisition, when the first image is moved to the printing platform, the tester views the background image through specific positions or features in the known image, and finally determines the positioning points in the first image. In one embodiment, obtaining the image deviation amount between the background image and the label image according to the positioning points includes:
[0071] S21: Establish a two-dimensional preset image coordinate system according to the coordinate system of the printing platform;
[0072] S22: Obtain the first positioning point coordinates and the second positioning point coordinates corresponding to the first positioning point and the second positioning point in the preset image coordinate system;
[0073] S23: Obtain the deviation angle according to the first positioning point coordinates and the second positioning point coordinates.
[0074] Specifically, when the image deviation amount includes a deviation angle, the deviation angle can be obtained according to at least two positioning points in the background image. Refer to Figure 3 , the positioning points include a first positioning point and a second positioning point. After obtaining the first positioning point and the second positioning point of the background image, the controller records the positioning points of the background image as the first positioning point coordinates (Xa, Ya) and the second positioning point coordinates (Xb, Yb). The distance from the first positioning point to the second positioning point is L. According to the tangent theorem, the formula α = arcTan(|Yb - Ya| / L) can be obtained, and the deviation angle a is calculated after that.
[0075] In one embodiment, obtain the coordinates of the preset positioning point in the preset image coordinate system, and record them as the preset positioning point coordinates;
[0076] Obtain the deviation distance between the preset positioning coordinates and the first positioning point coordinates in the X-axis direction.
[0077] Specifically, refer to Figure 4, the controller obtains the coordinates of the preset image positioning points in the preset image coordinate system, which are the preset positioning point coordinates, and obtains the deviation distance by the distance between the obtained preset positioning point coordinates and the first positioning point collected in the X-axis direction of the coordinate system. In an embodiment, the calibrating the label image according to the image deviation amount to obtain the calibrated printing data of the label image includes:
[0078] S31: Obtain the original printing data corresponding to the label image;
[0079] S32: Rotate the original printing data according to the deviation angle, and obtain the rotated printing data, which is the calibrated printing data.
[0080] Specifically, after obtaining the deviation angle, the controller starts to obtain the original printing data corresponding to the label image, rotates the obtained original printing data according to the obtained deviation angle, and obtains the rotated printing data, which is the calibrated printing data.
[0081] In an embodiment, controlling the nozzle to perform inkjet printing according to the calibrated printing data to print the label image on the background image includes:
[0082] S41: Obtain the original printing trigger position of the label image;
[0083] S42: Obtain the delay inkjet distance according to the deviation distance;
[0084] S43: Obtain the actual printing trigger position of the label image according to the original printing trigger position and the delay inkjet distance;
[0085] S44: Trigger the nozzle to inkjet-print the label image onto the background image according to the actual printing trigger position according to the calibrated printing data.
[0086] Specifically, referring to Figure 5 , after obtaining the deviation distance, the controller starts to obtain the original printing trigger position of the label image, determines the delay inkjet distance according to the obtained deviation distance, obtains the actual printing trigger position of the label image according to the obtained original printing trigger position and the determined delay inkjet distance, and triggers the nozzle to inkjet-print the label image onto the background image according to the obtained actual printing trigger position according to the obtained calibrated printing data.
[0087] In summary, the label image calibration printing method according to the embodiments of the present invention obtains the positioning points located on the background image, obtains the image deviation amount between the background image and the label image according to the obtained positioning points, calibrates the label image according to the image deviation amount to obtain the calibrated printing data of the label image, and controls the nozzle to perform inkjet printing according to the calibrated printing data to print the label image on the background image, overcoming the printing deviation caused by unstable paper feeding or printing platform during the printing process, ensuring that the label image can be correctly printed at the reserved position in the background image, and improving the overall image printing quality.
[0088] Embodiment 2
[0089] Embodiment 2 of the present invention discloses a label image calibration printing device, referring to Figure 6 , including:
[0090] A positioning point acquisition module, configured to acquire the positioning points of the background image through a sensor;
[0091] A deviation amount acquisition module, configured to obtain the deviation data calculated according to the expected image position and the actual image position;
[0092] A calibration module, configured to calibrate the data to be printed through the obtained deviation data to obtain the calibrated printing data of the label image;
[0093] A printing control module, configured to control the nozzle to perform inkjet printing according to the calibrated printing data to print the label image on the background image.
[0094] Preferably, the positioning point acquisition module includes:
[0095] A device control unit: controlling the image acquisition device to acquire the background image to obtain a first image;
[0096] An image recognition unit: recognizing the image corresponding to the positioning point in the first image to obtain the positioning points on the background image according to the first image.
[0097] Preferably, the deviation amount acquisition module includes:
[0098] A coordinate system establishment unit: establishing a two-dimensional preset image coordinate system according to the coordinate system of the printing platform;
[0099] A coordinate point acquisition unit: acquiring the first positioning point coordinates and the second positioning point coordinates corresponding to the first positioning point and the second positioning point in the preset image coordinate system;
[0100] A deviation angle acquisition unit: acquiring the deviation angle according to the first positioning point coordinates and the second positioning point coordinates.
[0101] Preferably, the deviation amount obtaining module further includes:
[0102] A positioning point obtaining unit: obtaining the coordinates of a preset positioning point in the preset image coordinate system, denoted as the preset positioning point coordinates;
[0103] A deviation distance obtaining unit: obtaining the distance between the preset positioning coordinates and the first positioning point coordinates in the X-axis direction to obtain the deviation distance.
[0104] Preferably, the calibration module includes:
[0105] An original data obtaining unit: obtaining the original print data corresponding to the label image;
[0106] A data calibration obtaining unit: performing a rotation process on the original print data of the label image according to the deviation angle to obtain the print data after the rotation process, which is the calibrated print data.
[0107] Preferably, the print control module includes:
[0108] An original print position obtaining unit: obtaining the original print trigger position for printing the label image;
[0109] A delay inkjet distance obtaining unit: obtaining the delay inkjet distance according to the deviation distance;
[0110] An actual print position obtaining unit: obtaining the actual print trigger position of the label image according to the original print trigger position and the delay inkjet distance;
[0111] A nozzle control unit: triggering the nozzle to inkjet-print the label image onto the background image according to the actual print trigger position according to the calibrated print data.
[0112] In summary, the label image calibration and printing device according to the embodiment of the present invention obtains a positioning point located on the background image, obtains the image deviation amount between the background image and the label image according to the obtained positioning point, calibrates the label image according to the image deviation amount to obtain the calibrated print data of the label image, and controls the nozzle to perform inkjet printing according to the calibrated print data to print the label image on the background image, overcoming the printing deviation caused by paper feeding or unstable printing platform during the printing process, ensuring that the label image can be correctly printed at the reserved position in the background image, and improving the overall image printing quality.
[0113] Embodiment 3
[0114] Embodiment 3 of the present invention discloses a label image calibration printing device, including at least one processor, at least one memory, and computer program instructions stored in the memory. Refer to Figure 7 .
[0115] Specifically, the above-mentioned processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0116] The memory may include a mass storage for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory may include a removable or non-removable (or fixed) medium. In a suitable case, the memory may be internal or external to the data processing device. In a specific embodiment, the memory is a non-volatile solid state memory. In a specific embodiment, the memory includes a read-only memory (ROM). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0117] The processor reads and executes the computer program instructions stored in the memory to implement any one of the OnePass variable printing calibration compensation methods in the above embodiments.
[0118] In one example, the label image calibration printing device may further include a communication interface and a bus. Among them, as Figure 7 shown, the processor, the memory, and the communication interface are connected by the bus and complete communication with each other.
[0119] The communication interface is mainly used to implement communication between the various modules, devices, units, and / or devices in the embodiments of the present invention.
[0120] A bus includes hardware, software, or both, and couples components of a xxx device to each other. By way of example and not limitation, the bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable bus or a combination of two or more of these. Where appropriate, the bus can include one or more buses. Although embodiments of the present invention describe and illustrate specific buses, the present invention contemplates any suitable bus or interconnect.
[0121] Embodiment 4
[0122] In addition, in combination with the label image calibration printing method in the above embodiments, an embodiment of the present invention can be implemented by providing a computer-readable storage medium. Computer program instructions are stored on the computer-readable storage medium; when the computer program instructions are executed by a processor, any one of the label image calibration printing methods in the above embodiments is implemented.
[0123] A label image calibration printing method, apparatus, device, and storage medium provided by an embodiment of the present invention obtain a positioning point located on a background image, obtain an image deviation amount between the background image and the label image according to the obtained positioning point, calibrate the label image according to the image deviation amount to obtain calibration printing data of the label image, and control an inkjet head to perform inkjet printing according to the calibration printing data to print the label image on the background image, overcoming the printing deviation caused by paper feeding or unstable printing platform during the printing process, ensuring that the label image can be correctly printed at a reserved position in the background image, and improving the overall image printing quality.
[0124] It should be clear that the present invention is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present invention is not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps after understanding the spirit of the present invention.
[0125] The functional blocks shown in the above-described structural block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. When implemented in software, the elements of the present invention are programs or code segments for performing the required tasks. The program or code segment can be stored in a machine-readable medium or transmitted via a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.
[0126] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, can be different from the order in the embodiments, or several steps can be executed simultaneously.
[0127] As described above, the above is only the specific implementation manner of the present invention. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, modules, and units can refer to the corresponding processes in the foregoing method embodiments and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A method for calibrating and printing label images, characterized in that, The method described above includes: Obtaining a positioning point located on the background image; Obtaining an image deviation amount between the background image and the label image according to the positioning point; Calibrating the label image according to the image deviation amount to obtain calibrated printing data of the label image; Controlling an inkjet head to perform inkjet printing according to the calibrated printing data to print the label image on the background image.
2. The method according to claim 1, wherein The obtaining of the positioning point of the background image includes: Controlling an image acquisition device to acquire the background image to obtain a first image; Identifying the image corresponding to the positioning point in the first image to obtain the positioning point on the background image.
3. The method according to claim 1, wherein The image deviation amount includes a deviation angle, the positioning point includes a first positioning point and a second positioning point, and the obtaining of the image deviation amount according to the positioning point includes: Establishing a two-dimensional preset image coordinate system according to the coordinate system of the printing platform; Obtaining the first positioning point coordinates and the second positioning point coordinates corresponding to the first positioning point and the second positioning point in the preset image coordinate system; Obtaining the deviation angle according to the first positioning point coordinates and the second positioning point coordinates.
4. The method according to claim 3, characterized in that, The obtaining of the deviation angle according to the first positioning point coordinates and the second positioning point coordinates includes: Denoting the first positioning point coordinates as (Xa, Ya), and the second positioning point coordinates as (Xb, Yb); Obtaining the distance L between the first positioning point and the second positioning point; Obtaining the deviation angle according to the following formula: α = arcTan(|Yb - Ya| / L).
5. The method according to claim 3, wherein The image deviation amount further includes a deviation distance, and the obtaining of the image deviation amount according to the positioning point further includes: Obtaining the coordinates of a preset positioning point in the preset image coordinate system, denoted as preset positioning point coordinates; Obtaining the distance in the X-axis direction between the preset positioning coordinates and the first positioning point coordinates to obtain the deviation distance.
6. The method according to claim 3, characterized in that, The calibrating of the label image according to the image deviation amount to obtain the calibrated printing data of the label image includes: Obtaining the original printing data corresponding to the label image; Performing a rotation process on the original printing data according to the deviation angle to obtain the rotated printing data, which is the calibrated printing data.
7. The method according to claim 1, wherein The controlling of the inkjet head to perform inkjet printing according to the calibrated printing data to print the label image on the background image includes: Obtaining the original printing trigger position of the label image; Obtaining a delay inkjet distance according to the deviation distance; Obtaining the actual printing trigger position of the label image according to the original printing trigger position and the delay inkjet distance; Triggering the inkjet head to inkjet-print the label image onto the background image according to the actual printing trigger position according to the calibrated printing data.
8. A printing device, characterized in that, The device includes: A positioning point obtaining module, configured to obtain the positioning point of the background image through a sensor; A deviation amount obtaining module, configured to obtain the image deviation amount between the background image and the label image according to the positioning point; A calibration module, configured to calibrate the label image according to the image deviation amount to obtain the calibrated printing data of the label image; The printing control module controls the print head to perform inkjet printing according to the calibrated print data, and prints the label image on the background image.
9. A printing device, characterized in that, The printing device includes: at least one processor, at least one memory, and computer program instructions stored in the memory, which implement the method according to any one of claims 1-7 when the computer program instructions are executed by the processor.
10. A storage medium, on which computer instructions are stored, characterized in that, Comprising: Implement the method according to any one of claims 1-7 when the computer program instructions are executed by the processor.