Method and device for adjusting printing data based on segmented positioning, equipment and medium
By using a segmented positioning and adjustment method to adjust the printing data, and by using a camera and color mark sensor to obtain offset data for image adjustment, the problem of poor printing splicing in traditional positioning algorithms is solved, and high-precision printing results are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2026-03-10
AI Technical Summary
In existing technologies, traditional positioning algorithms cannot accurately convert print positioning data into print image adjustment parameters, resulting in poor print splicing effects and affecting print quality.
The system acquires segmented unit surface images of the printing medium using a camera, calculates the offset data of the positioning points in the world coordinate system, and performs geometric transformations on the initial printing image in the pixel coordinate system, including rotation, translation, and shearing. After adjustment, inkjet printing is performed in the world coordinate system.
It improves the accuracy of printing positioning data and splicing accuracy, ensuring high quality and consistency of printing results.
Smart Images

Figure CN121625656A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of inkjet printing technology, and in particular to a method, apparatus, device, and medium for adjusting printing data based on segmented positioning. Background Technology
[0002] In the printing industry, with continuous technological advancements, the demand for high-precision and high-efficiency print quality is growing, especially for large-format and continuous paper printing. Traditional positioning technologies and image processing methods have gradually revealed their limitations. Traditional positioning algorithms only require the overall positioning output angle to other hardware for mechanical adjustments. However, the printing industry needs to adjust the image to be printed based on the positioning data before sending it to the printer. This process also involves complex operations such as image printing effect adjustments and RIP conversion.
[0003] Current technology employs a method of capturing two positioning points within the camera's field of view for positioning. This method involves moving the camera and printer while keeping the paper stationary, resulting in low efficiency and failing to meet the demands of industrial production. Furthermore, the positioning process often involves complex coordinate transformations, including from the camera coordinate system to the image coordinate system and then to the printer's world coordinate system. Current technology cannot solve the problem of accurately converting positioning data into print image adjustment parameters for image adjustment, leading to poor positioning accuracy and consistency. This, in turn, results in poor print stitching and ultimately affects the print quality. Summary of the Invention
[0004] In view of this, the present invention provides a method, apparatus, device and medium for adjusting printing data based on segmented positioning, in order to solve the problem that the accuracy of printing positioning data in the prior art is not high, resulting in poor printing splicing effect and affecting the printing effect.
[0005] The technical solution adopted in this invention is:
[0006] In a first aspect, the present invention provides a method for adjusting printed data based on segmented positioning, the method comprising:
[0007] The camera is controlled to acquire surface images of each segmented unit of the printing medium, wherein each segmented unit includes at least two first positioning points;
[0008] Obtain the offset data of the second positioning point in the world coordinate system in the surface image;
[0009] Based on the offset data, the initial printed image is adjusted in the pixel coordinate system;
[0010] The target printing image is obtained by converting the adjusted initial printing image into a world coordinate system, and the printing medium is inkjet printed according to the target printing image.
[0011] Preferably, the obtaining of the offset data of the second positioning point in the surface image in the world coordinate system comprises:
[0012] The surface image is preprocessed;
[0013] The position of the second positioning point in the preprocessed surface image is obtained;
[0014] The position of the second positioning point is converted from the pixel coordinate to the world coordinate system;
[0015] The position of the preset color mark is obtained by controlling the color mark sensor;
[0016] The position of the second positioning point is compared with the position of the preset color mark to obtain the offset data of the second positioning point in the surface image, wherein the offset data comprises an offset angle and an offset distance.
[0017] Preferably, the comparison of the position of the second positioning point with the position of the preset color mark to obtain the offset data of the second positioning point in the surface image, wherein the offset data comprises an offset angle and an offset distance comprises:
[0018] The offset angle of the segmented unit is calculated according to the position of the second positioning point in the world coordinate system;
[0019] The offset distance of the second positioning point of the segmented unit in the world coordinate system is calculated according to the position of the second positioning point in the world coordinate system and the position of the preset color mark.
[0020] Preferably, the adjusting of the printing image in the image coordinate system according to the offset data comprises:
[0021] The offset data is converted from the world coordinate system to the image coordinate system;
[0022] The printing image of the segmented unit where the positioning point is located is geometrically transformed according to the converted offset data, wherein the geometric transformation comprises image rotation, image translation and image clipping.
[0023] Preferably, the geometric transformation of the printing image of the segmented unit where the current positioning point is located according to the converted offset data, wherein the geometric transformation comprises image rotation, image translation and image clipping comprises:
[0024] The adjustment data is obtained according to the offset data, wherein the adjustment data comprises a stretching coefficient, a clipping amount, an actual adjustment amount in the X-axis direction and an actual adjustment amount in the Y-axis direction;
[0025] stretching the X-axis direction of the print image of the current segment unit according to the stretching coefficient of the X-axis direction;
[0026] shearing the print image of the current segment unit according to the shearing amount;
[0027] adjusting the print image of the current segment unit according to the X-axis direction actual adjustment amount;
[0028] stretching the second positioning point upper area of the print image of the current segment unit according to the Y-axis direction actual adjustment amount.
[0029] Preferably, the adjusting the print image in the image coordinate system according to the offset data further comprises:
[0030] obtaining adjustment data of the current segment unit;
[0031] calculating the theoretical position of the next segment unit according to the adjustment data of the current segment unit.
[0032] Preferably, the converting the adjusted print image in the world coordinate system and performing inkjet printing on the print medium according to the print image in the world coordinate system comprises:
[0033] converting the adjusted print image from the image coordinate system to the world coordinate system;
[0034] performing segment inkjet printing on the print medium according to the print image in the world coordinate system.
[0035] In a second aspect, the present application provides a device for adjusting print data based on segment positioning, which comprises:
[0036] a surface image acquisition module for controlling a camera to acquire surface images of each segment unit of a print medium, wherein the segment unit comprises at least one positioning point;
[0037] an offset data acquisition module for acquiring offset data of the positioning point in the camera coordinate system in the surface image;
[0038] a print image adjustment module for adjusting a print image in an image coordinate system according to the offset data;
[0039] an inkjet printing module for converting the adjusted print image in a world coordinate system and performing inkjet printing on the print medium according to the print image in the world coordinate system.
[0040] In a third aspect, the embodiments of the present application further provide an electronic device, comprising at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of the first aspect in the above-described embodiments.
[0041] In a fourth aspect, the embodiments of the present application further provide a storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the method of the first aspect in the above-described embodiments.
[0042] To sum up, the beneficial effects of the present application are as follows:
[0043] The method, device, equipment and medium for adjusting printing data based on segmentation positioning provided by the present application control a camera to acquire surface images of each segmentation unit of a printing medium, wherein the segmentation unit comprises at least one positioning point; acquire offset data of the positioning point in the surface image in a camera coordinate system; adjust a printing image in an image coordinate system according to the offset data; convert the adjusted printing image in a world coordinate system, and perform inkjet printing on the printing medium according to the printing image in the world coordinate system. The present application improves the accuracy of printing positioning data, further improves the splicing accuracy of each segmentation unit, and thus improves the printing effect. BRIEF DESCRIPTION OF DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly introduced as follows, and for those skilled in the art, other drawings can also be obtained without creative labor on the premise of these drawings, and these are within the protection scope of the present application.
[0045] Figure 1 The flowchart of the overall work of the method for adjusting printing data based on segmentation positioning in the embodiment 1 of the present application is shown.
[0046] Figure 2 The flowchart of the surface image acquisition in the embodiment 1 of the present application is shown.
[0047] Figure 3 The flowchart of the positioning point offset data acquisition in the embodiment 1 of the present application is shown.
[0048] Figure 4 The flowchart of the adjustment of the printing image in the embodiment 1 of the present application is shown.
[0049] Figure 5 The flowchart of the specific adjustment of the printing image in the embodiment 1 of the present application is shown.
[0050] Figure 6A flowchart for adjusting the print image of the next segment unit in the embodiment 1 of the present application;
[0051] Figure 7 A flowchart for inkjet printing of the adjusted print image in the embodiment 1 of the present application;
[0052] Figure 8 A structure block diagram of the print data adjusting device based on segment positioning in the embodiment 2 of the present application;
[0053] Figure 9 A structure diagram of the electronic device in the embodiment 3 of the present application. DETAILED DESCRIPTION
[0054] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. It should be noted that in this document, relationship 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 that there is any such actual relationship or order between these entities or operations. In the description of the present application, it should be understood that the orientations or positional relationships indicated by the terms “center”, “upper”, “lower”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inner”, “outer” and the like are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. Moreover, the terms “include”, “contain” or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or device. Without more limitations, the elements defined by the statement “include” do not exclude the presence of other identical elements in the process, method, article or device that includes the elements. If there is no conflict, the embodiments of the present application and the various features in the embodiments can be combined with each other, and are all within the protection scope of the present application.
[0055] Embodiment 1
[0056] In inkjet printing production, in order to improve the printing efficiency, the production of large-format printing medium is often segmented printing of large-format printing patterns, that is, in the process of conveying the printing medium, the camera acquires the image of the printing medium in the field of view of the camera, and then the corresponding printing image of the part is positioned and adjusted and printed, which can be regarded as dividing the printing medium into multiple units, and then the printing image is also correspondingly divided into multiple units, and then different units are printed respectively and then spliced, which can improve the printing efficiency and save the printing space, but the effect after segmented printing and splicing is often poor, because in the printing process, the printing medium will deviate in position, especially the materials such as paper and cloth which are easy to deform and large in size, if the original printing data is printed, there will be a large positional error, thereby affecting the subsequent splicing step, so a segmented positioning method is proposed to adjust the printing data, and the method proposed in the embodiment is used to solve the problem.
[0057] Please refer to Figure 1 Embodiment 1 of the present application discloses a method for adjusting printing data based on segmented positioning, which comprises:
[0058] S1: controlling a camera to acquire surface images of each segmented unit of a printing medium, wherein the segmented unit comprises at least two first positioning points;
[0059] Specifically, taking paper as an example, the paper is pre-printed with positioning points, each positioning point has its corresponding position sequence number, and each positioning point sequence number corresponds to different position information of the positioning point in the image. These positioning points (mark points) are pre-printed on the paper according to certain intervals and layouts, and are used for subsequent image analysis and positioning. The first positioning point is a positioning point on the printing medium, the paper moves on the conveying device, the visual positioning system is equipped with two high-resolution cameras, and the cameras are industrial CCD cameras, which are not limited here. The two industrial CCD cameras are located above the paper respectively, are synchronously triggered by the upper computer control, and capture images of the pre-printed positioning points on the paper. Each time, the two cameras acquire images of two positioning points or multiple positioning points of the same size. Two different positioning points or multiple different positioning points correspond to a segmented unit. This process is regarded as a process of segmenting the printed image. The printed image is also provided with the same positioning points. According to the corresponding positioning points, the printed image can be accurately printed on the paper. However, due to the physical position offset of the paper, the positioning point position on the paper may be different from the actual positioning point position. If the paper is printed according to the original plan, the position deviation may occur. The second reason is that the size of the paper is too large, and the paper needs to be printed in segments. The first reason is to improve the printing accuracy, and the second reason is to improve the printing efficiency. The reason for using two cameras for positioning is to improve the accuracy and stability of positioning. If a single camera is used for positioning, a larger error may occur.
[0060] S2: obtaining offset data of the second positioning point in the world coordinate system in the surface image;
[0061] Specifically, the second positioning point is a positioning point in the surface image. The surface image captured by the camera is first pre-processed, including image distortion correction and other methods, to eliminate the deformation caused by the camera lens. Subsequently, an image processing algorithm can be used to automatically identify the positioning points in the surface image. According to the obtained positioning point sequence number, the position information of the pre-stored standard positioning point is obtained. The position of the identified positioning point is compared with the position of the pre-stored standard positioning point. The offset data of the positioning point is calculated. The offset data includes the position deviation distance of the positioning point coordinate position and the offset angle of the printing medium of the segmented unit. According to these offset angles, the printed image can be adjusted. This step ensures that even if the paper has a slight offset during the conveying process, the offset information of the paper relative to the original point can be accurately obtained, and the printing data accuracy is improved.
[0062] In an embodiment, as shown in Figure 2 S2: obtaining offset data of the second positioning point in the world coordinate system in the surface image includes:
[0063] S21: pre-processing the surface image;
[0064] S22: Obtain the position of the second positioning point in the pre-processed surface image;
[0065] S23: Convert the position of the second positioning point from pixel coordinates to a world coordinate system;
[0066] S24: Control the color sensor to obtain the position of the preset color mark;
[0067] S25: Compare the position of the positioning point with the position of the preset color mark to obtain the offset data of the positioning point in the surface image.
[0068] Specifically, when the camera captures the surface image of the printing medium, the captured surface image may deviate due to the distortion of the camera. Therefore, the captured surface image is first pre-processed to eliminate the distortion caused by the lens, and then an image processing algorithm is used to automatically identify the position of the positioning point in the image. The image processing algorithm can use image recognition algorithms such as the Yo lo series of algorithms, such as template matching and feature detection, to automatically identify the positioning point features and calculate the coordinate position of the positioning point. The obtained coordinate position is the actual coordinate of the positioning point in the pixel coordinate system. If the offset angle of the real printing area of the printing medium is to be calculated, the pixel coordinate of the positioning point needs to be converted to the world coordinate system of the real printing area of the printing device for calculation. Specifically, the world coordinate system of the printer is established, the position of the positioning point in the world coordinate system is obtained according to the world coordinate system of the printer, and the position of the preset color mark is obtained by controlling the color sensor. The color sensor is a device used to detect specific color marks (color marks) on the printing medium. These color marks are usually small color blocks placed on the edge of the paper or other positions that do not affect the final printing effect during the printing process. Through these color marks, the system can monitor the difference between the actual printed color and the expected color, and can be used as a positioning reference. The color sensor quickly identifies and indicates the exact position of the mark, which is used as a positioning reference. The position information of the color mark is obtained by using the color sensor, and the position of the positioning point is compared and calculated with the position of the color mark, so as to obtain the offset data of the positioning point.
[0069] In an embodiment, as shown in Figure 3 S24: Compare the position of the positioning point with the position of the preset color mark to obtain the offset data of the positioning point in the surface image. It includes:
[0070] S241: Calculate the offset angle of the segmented unit according to the position of the second positioning point in the world coordinate system;
[0071] S242: calculating the offset distance of the second positioning point of the segment unit in the world coordinate system according to the position of the second positioning point in the world coordinate system and the position of the preset color scale.
[0072] Specifically, a world coordinate system is set according to the printer, wherein the origin and the coordinate axis direction match the physical layout of the printing area, the second positioning point coordinate position is converted into the world coordinate system, and according to the two second positioning points connected in a line, the angle between the two second positioning points and the horizontal direction can be calculated, which is the offset angle. Then, the position of the color scale in the world coordinate system and the position of the positioning point in the world coordinate system are calculated, wherein the position of the color scale in the world coordinate system is fixed, and the distance between the positioning point and the color scale is known before the printing medium deviates. When the printing medium deviates, the distance between the deviated positioning point and the color scale is calculated, and the deviation distance of the positioning point is calculated, which reflects the size of the error. Specifically, the compensation value of the color scale sensor sensing position is calculated by the method, and the position of the printing image is compensated, thereby further improving the positioning accuracy of the printing data.
[0073] S3: adjusting the initial printing image in the pixel coordinate system according to the offset data;
[0074] Specifically, the pixel coordinate system is a printing bitmap coordinate system, and the printing image is composed of printing data. According to the calculated offset data, the offset data includes the offset angle and the deviation distance. The offset data is converted from the printing world coordinate system to the printing bitmap BMP coordinate system to accurately adjust the printing image, for example, by a geometric method, including image rotation, translation and shear transformation, so as to eliminate the image misalignment caused by paper deviation. The image in the printing bitmap coordinate system is rich in color and information. The image offset adjustment in the printing bitmap coordinate system ensures less information loss, accurate color and the like, and the adjustment process ensures the correct alignment of the image content and improves the printing accuracy.
[0075] In an embodiment, as shown in Figure 4 S3: adjusting the initial printing image in the pixel coordinate system according to the offset data includes:
[0076] S31: converting the offset data from the world coordinate system to the pixel coordinate system;
[0077] S32: performing geometric transformation on the initial printing image of the segment unit where the second positioning point is located according to the converted offset data, wherein the geometric transformation includes image rotation, image translation and image shear.
[0078] Specifically, first, from the above calculated offset data, the offset data between the actual position and the theoretical position of the positioning point on the paper in the world coordinate system can be obtained, including the deviation distance and the offset angle of the position, specifically the translation distance of the X-axis and Y-axis, wherein the X-axis direction is the main printing direction and the Y-axis direction is the auxiliary printing direction. According to the offset data, a conversion matrix is constructed, the purpose of which is to convert these offset data into adjustment instructions in the pixel coordinate system, which includes the proportional relationship between the paper size and the BMP image size, the geometric mapping relationship between the camera field of view and the printing area, and the conversion relationship between the world coordinate system and the image coordinate system. The conversion matrix is used to convert the offset data in the world coordinate system into pixel position adjustment values in the BMP printing bitmap coordinate system, which includes calculating the number of pixels of the image in the X-axis and Y-axis, and the new position of each pixel after rotation. According to the rotation angle θ obtained after conversion, the BMP printing image is inversely rotated to offset the deflection of the paper, and the rotation center is usually the geometric center of the image or a specific reference point, which ensures the correct alignment of the image content after rotation. According to the X and Y axis pixel translation amount obtained by conversion, the printing image is translated in the horizontal and vertical directions, so that the image content matches the expected printing position on the paper. If the deformation or offset of the paper involves nonlinear changes, local cutting or deformation processing of the image is also required to further accurately align.
[0079] In an embodiment, as shown in Figure 5 S32: performing geometric transformation on the initial printing image of the segment unit where the second positioning point is located according to the converted offset data, wherein the geometric transformation includes image rotation, image translation and image cutting, including:
[0080] S321: obtaining adjustment data according to the converted offset data, wherein the adjustment data includes: stretching coefficient, cutting amount, actual adjustment amount in the X-axis direction and actual adjustment amount in the Y-axis direction;
[0081] S322: performing stretching transformation on the X-axis direction of the initial printing image of the segment unit according to the stretching coefficient in the X-axis direction;
[0082] S323: performing cutting transformation on the initial printing image of the segment unit according to the cutting amount;
[0083] S324: adjusting the initial printing image of the segment unit by partitioning and misplacing according to the actual adjustment amount in the X-axis direction;
[0084] S325: performing stretching processing on the upper part of the first positioning point of the initial printing image of the segment unit according to the actual adjustment amount in the Y-axis direction.
[0085] Specifically, assuming a known stretching in the X direction with a stretch factor of 1.02 (meaning the paper is stretched by 2% along the X-axis), an image processing algorithm is used to stretch the image along the X-axis by this factor, ensuring the printed content matches the stretched paper size. Based on the shearing amount determined by the aforementioned analysis, for example, the number of pixels to be cut due to uneven paper edges, a shearing transformation is applied to remove a specified pixel width from the image edges, ensuring the printed content does not exceed the actual usable printing area of the paper. If a slight misalignment is detected in the X direction, such as a 1-pixel misalignment every 10 centimeters, the image needs to be adjusted zone by zone. That is, within each specific length interval, the image is translated by 1 pixel to ensure perfect stitching after printing. At the stitching point, to eliminate jagged edges or abrupt line changes that may be caused by the misalignment adjustment, a gradient processing technique is applied to smoothly transition the stitching edges, ensuring that colors and lines blend seamlessly between adjacent units. The transitions between images are natural, improving visual continuity. If specific areas in the Y direction require stretching compensation, such as a slight bulge in the paper, the area where the positioning point is located is locally stretched based on the actual measured adjustment amount to maintain the image proportions of that area without distortion, while ensuring alignment with adjacent parts. After completing all adjustments, the shearing matrix is recalculated to remove image expansion caused by stretching and misalignment adjustments, ensuring that the final output image size perfectly matches the actual printable area of the paper, avoiding print overflow or blank spaces. For the first unit in the printing sequence, deviations detected by the color mark sensing system, such as slight offsets when the front end of the paper enters the printer, are finely adjusted to adjust the distance to the top edge of the image, achieving accurate compensation in the Y direction and ensuring that the top of the first printed sheet is correctly aligned. Through the above adjustments, the printing results can still maintain high accuracy and aesthetics under various complex paper offset and deformation conditions, improving the overall printing quality.
[0086] In one embodiment, such as Figure 6 As shown, step S3: adjusting the printed image in the image coordinate system according to the offset data further includes:
[0087] S33: Obtain the adjustment data for the current segmentation unit;
[0088] S34: Calculate the theoretical position of the next segment unit based on the adjustment data of the current segment unit.
[0089] Specifically, based on the adjustment information of the aforementioned positioning points, the adjustment data of the unit's positioning points are calculated, including but not limited to translation, rotation angle, and possible stretching or compression coefficients. These data reflect the specific deviation of the current printing unit from its theoretical state. First, the offset data of the current unit is analyzed to assess whether there are regular or trending changes, such as a gradual tilting or translation of the paper. A simple linear or nonlinear prediction model is constructed. Based on the current offset Δx, Δy, and rotation angle θ, the theoretical offset of the next unit is calculated. For example, if the paper has a gradually increasing translation on the x-axis, the model predicts the next Δx value based on this trend. If the current rotation angle is θ, then assuming the paper offset is continuous, the predicted rotation angle of the next unit may be θ+dθ, where dθ is the rotation increment estimated based on historical data. Based on the current Δx and Δy, plus the increments dx and dy predicted based on trend analysis, the theoretical position coordinates of the next positioning point on the x and y axes are calculated. Based on the above calculation, a pre-adjustment instruction for the next positioning point is generated, including the theoretical rotation angle, translation distance, and possible shape adjustment parameters. Each adjustment component is obtained, and the printed image of each unit is adjusted. In this way, the accuracy of the printing position and the calculation efficiency are improved.
[0090] S4: Convert the adjusted initial print image to the world coordinate system to obtain the target print image, and perform inkjet printing on the print medium according to the target print image.
[0091] After adjustment, the printed image data needs to be further converted to the printer's world coordinate system to match the actual printing area and mechanical characteristics of the printer. This process involves mapping the pixel coordinates of the image to the inkjet dot matrix of the print head to ensure that the precise position of the printed output is consistent with the expectation. Finally, the adjusted printed image data is sent to the printer to complete high-quality printing output. Through this method, seamless stitching and high definition of the images can be maintained even when the paper is moving continuously.
[0092] In one embodiment, such as Figure 7 As shown, step S4: converting the adjusted print image into the world coordinate system, and performing inkjet printing on the printing medium based on the print image in the world coordinate system includes:
[0093] S41: Transform the adjusted initial print image from the pixel coordinate system to the world coordinate system to obtain the target print image;
[0094] S42: Perform segmented inkjet printing on the printing medium according to the target printing image.
[0095] Specifically, each segment unit is positioned and the printing data is adjusted. Finally, all the segment units are spliced together to form a complete printed image. According to the calibration matrix, the adjusted printed image of each unit is transformed from the image coordinate system to the world coordinate system. The printed image is converted into a suitable printing format. The adjusted printed image of each unit is accurately printed onto the corresponding position on the printing medium. Finally, the printing of each unit's image is completed, and a complete printed product is obtained.
[0096] In summary, this embodiment proposes a method for adjusting print data based on segmented positioning. First, a camera is controlled to acquire surface images of each segmented unit of the print medium, wherein each segmented unit includes at least two first positioning points. Then, offset data of the second positioning points in the surface images in the world coordinate system is acquired. Based on the offset data, the initial print image is adjusted in the pixel coordinate system. The adjusted initial print image is then transformed back to the world coordinate system to obtain the target print image. Finally, inkjet printing is performed on the print medium based on the target print image. This embodiment obtains accurate values for each adjustment component through a series of coordinate system transformations, improving the accuracy of print positioning data, increasing data processing efficiency, and improving compatibility. This further enhances the splicing accuracy of each segmented unit, thereby improving the printing effect.
[0097] Example 2
[0098] Please see Figure 8 Embodiment 2 of the present invention also provides a segmented positioning adjustment printing data device 200, the device comprising:
[0099] Surface image acquisition module 201: used to control the camera to acquire surface images of each segment unit of the printing medium, wherein the segment unit includes at least two first positioning points;
[0100] Offset data acquisition module 202: used to acquire the offset data of the second positioning point in the surface image in the world coordinate system;
[0101] Print image adjustment module 203: used to adjust the initial print image in the pixel coordinate system according to the offset data;
[0102] Inkjet printing module 204: used to convert the adjusted initial print image to the world coordinate system to obtain the target print image, and to perform inkjet printing on the printing medium according to the target print image.
[0103] Specifically, this embodiment proposes a segmented positioning adjustment printing data device. First, a surface image acquisition module controls a camera to acquire surface images of each segmented unit of the printing medium, wherein each segmented unit includes at least two first positioning points. An offset data acquisition module acquires the offset data of the second positioning points in the surface image within the world coordinate system. A printing image adjustment module adjusts the initial printing image in the pixel coordinate system based on the offset data. An inkjet printing module transforms the adjusted initial printing image into the world coordinate system to obtain a target printing image, and then performs inkjet printing on the printing medium based on the target printing image. This embodiment obtains accurate values for each adjustment component through a series of coordinate system transformations, improving the accuracy of the printing positioning data, increasing data processing efficiency, and improving compatibility. This further improves the splicing accuracy of each segmented unit, thereby enhancing the printing effect.
[0104] Example 3
[0105] In addition, combined Figure 1 The method for adjusting print data based on segmented positioning described in Embodiment 1 of the present invention can be implemented by an electronic device. Figure 9 A schematic diagram of the hardware structure of the electronic device provided in Embodiment 3 of the present invention is shown.
[0106] Electronic devices may include processors and memory storing computer program instructions.
[0107] Specifically, the processor may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement embodiments of the present invention.
[0108] The memory may include a large-capacity storage device for data or instructions. For example, and not limitingly, the memory may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include removable or non-removable (or fixed) media. Where appropriate, the memory may be internal or external to a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, 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 flash memory, or a combination of two or more of these.
[0109] The processor reads and executes computer program instructions stored in memory to implement any of the methods for adjusting print data based on segmented positioning in the above embodiments.
[0110] In one example, the electronic device may also include a communication interface and a bus. For example, Figure 9 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.
[0111] The communication interface is mainly used to enable communication between various modules, devices, units and / or equipment in the embodiments of the present invention.
[0112] A bus, including hardware, software, or both, couples components of the device together. For example, and not limitingly, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth 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 buses, or combinations of two or more of these. Where appropriate, a bus may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.
[0113] Example 4
[0114] In addition, in conjunction with the method for adjusting print data based on segmented positioning in Embodiment 1 above, Embodiment 4 of the present invention can also provide a computer-readable storage medium for implementation. This computer-readable storage medium stores computer program instructions; when executed by a processor, these computer program instructions implement any of the methods for adjusting print data based on segmented positioning in the above embodiments.
[0115] In summary, the embodiments of the present invention provide a method, apparatus, device, and medium for adjusting print data based on segmented positioning.
[0116] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown 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 shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.
[0117] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "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, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0118] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0119] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred 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 can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A method of adjusting print data based on segment positioning, the method comprising: The method comprises: controlling a camera to acquire a surface image of each segmented unit of a printing medium, wherein the segmented unit comprises at least two first positioning points; acquiring offset data of a second positioning point in the surface image in a world coordinate system; adjusting an initial printing image in a pixel coordinate system according to the offset data; converting the adjusted initial printing image into the world coordinate system to obtain a target printing image, and performing inkjet printing on the printing medium according to the target printing image.
2. The method of adjusting print data based on segment positioning according to claim 1, wherein, The acquiring of the offset data of the second positioning point in the surface image in the world coordinate system comprises: preprocessing the surface image; acquiring the position of the second positioning point in the preprocessed surface image; converting the position of the second positioning point from a pixel coordinate to a world coordinate system; controlling a color standard sensor to acquire the position of a preset color standard; comparing the position of the second positioning point with the position of the preset color standard to obtain offset data of the second positioning point in the surface image, wherein the offset data comprises an offset angle and an offset distance.
3. The method of adjusting print data based on segment positioning according to claim 2, wherein, The comparison of the position of the second positioning point with the position of the preset color standard to obtain the offset data of the second positioning point in the surface image comprises: calculating the offset angle of the segmented unit according to the position of the second positioning point in the world coordinate system; calculating the offset distance of the second positioning point in the world coordinate system of the segmented unit according to the position of the second positioning point in the world coordinate system and the position of the preset color standard.
4. The method of adjusting print data based on segment positioning according to claim 3, wherein, The adjusting of the initial printing image in the pixel coordinate system according to the offset data comprises: converting the offset data from the world coordinate system to the pixel coordinate system; performing geometric transformation on the initial printing image of the segmented unit where the second positioning point is located according to the converted offset data, wherein the geometric transformation comprises image rotation, image translation and image clipping.
5. The method of adjusting print data based on segment positioning according to claim 4, wherein, The performing of the geometric transformation on the initial printing image of the segmented unit where the second positioning point is located according to the converted offset data, wherein the geometric transformation comprises image rotation, image translation and image clipping comprises: obtaining adjustment data according to the converted offset data, wherein the adjustment data comprises a stretching coefficient, a clipping amount, an actual adjustment amount in the X-axis direction and an actual adjustment amount in the Y-axis direction; performing stretching transformation on the X-axis direction of the initial printing image of the segmented unit according to the stretching coefficient in the X-axis direction; performing clipping transformation on the initial printing image of the segmented unit according to the clipping amount; performing partition misplacement adjustment on the initial printing image of the segmented unit according to the actual adjustment amount in the X-axis direction; performing stretching processing on the upper part of the initial printing image of the segmented unit according to the actual adjustment amount in the Y-axis direction.
6. The method of adjusting print data based on segment positioning according to claim 5, wherein, The adjusting of the initial printing image in the pixel coordinate system according to the offset data further comprises: acquiring adjustment data of a current segmented unit; calculating a theoretical position of a next segmented unit according to the adjustment data of the current segmented unit.
7. The method of adjusting print data based on segment positioning according to claim 6, wherein, The converting of the adjusted initial printing image into the world coordinate system to obtain the target printing image, and the performing of inkjet printing on the printing medium according to the target printing image comprises: convert the adjusted initial printing image from the pixel coordinate system to the world coordinate system to obtain a target printing image; perform the segmental inkjet printing on the printing medium according to the target printing image.
8. A device for adjusting printed data based on segmented positioning, characterized in that, The device comprises: a surface image acquisition module configured to control a camera to acquire a surface image of each segment unit of the printing medium, wherein the segment unit comprises at least two first positioning points; an offset data acquisition module configured to acquire offset data of a second positioning point in the world coordinate system in the surface image; a printing image adjustment module configured to adjust an initial printing image in the pixel coordinate system according to the offset data; an inkjet printing module configured to convert the adjusted initial printing image to the world coordinate system to obtain a target printing image, and perform inkjet printing on the printing medium according to the target printing image.
9. An electronic device, comprising: comprise: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any one of claims 1-7.
10. A storage medium having stored thereon computer program instructions, characterized in that, when the computer program instructions are executed by the processor, implement the method of any one of claims 1-7.