Wide image printing method and device based on coordinate conversion, equipment and medium

By segmenting and coordinating the wide-format image, the image coordinate system changes and printing offset problems caused by the stitching method are solved, and the precise stitching and efficient printing of the image are achieved.

CN120162013APending Publication Date: 2025-06-17SHENZHEN HOSONSOFT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311719321.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

The stitching method in the prior art may cause changes in the spatial coordinate system of the image, resulting in a large offset during printing.

Method used

By segmenting the original wide-format image, the identification coordinates on the printing object and the image segment are obtained, and the mapping relationship between physical coordinates and image coordinates is established to ensure the accurate alignment of the image segments during stitching.

Benefits of technology

The printing offset caused by changes in the coordinate system is avoided, and the precise stitching and printing of images is ensured, which improves the accuracy and efficiency of printing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120162013A_ABST
    Figure CN120162013A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of ink-jet printing, solves the problem that a splicing method in the prior art possibly causes the change of a space coordinate system of an image and causes great offset during printing, and provides a wide image printing method and device based on coordinate conversion, equipment and a medium. The method comprises the following steps: segmenting an original wide image to obtain a plurality of wide image segments; acquiring first physical coordinates of a plurality of first identifications on a printing stock and first image coordinates of a plurality of second identifications on the wide image segment; establishing a first mapping relationship between the first physical coordinates of the first identifier and the corresponding first image coordinates of the second identifier; splicing the wide image segments according to the first mapping relation to obtain a spliced image; and performing ink-jet printing according to the spliced image to obtain a target image. According to the invention, the printing precision and effect of the wide image can be improved, and distortion and discontinuity are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of inkjet printing, and particularly to a method, apparatus, device and medium for wide-format image printing based on coordinate transformation. Background Art

[0002] Inkjet printing technology is a non-impact printing method that forms an image by ejecting tiny ink droplets onto a medium such as paper or plastic. Due to its high resolution, rich colors and speed advantages, this technology has been widely used in various commercial and household applications. Over time, inkjet printing technology has expanded from being limited to A4 or letter size to being able to handle larger sizes of paper, i.e., wide-format printing. Wide-format printers are commonly used to produce large advertisements, banners, posters and other large-sized graphic materials. Due to their size and scale, these printers often need to process large-sized images that exceed the working range of conventional printers.

[0003] When dealing with wide-format images, a core problem is often encountered: how to process images that exceed the system's processing range. For example, when the length of an image exceeds the field of view of a camera or the working range of a printer, the image may need to be divided into multiple parts for shooting or printing. To reconstruct the original wide-format image, these partial images need to be stitched together.

[0004] However, there is a key challenge here. Traditional image stitching methods, especially in the field of digital image processing, are mainly for obtaining a visually continuous and consistent image, rather than for maintaining the spatial coordinate system of the image. This means that when stitching, the spatial coordinate system of the image may change, resulting in a large offset during printing. This offset not only affects the printing effect, but may also lead to waste of resources and increased production costs. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a method, apparatus, device and storage medium for wide-format image printing based on coordinate transformation, to solve the problem that the stitching method in the prior art may cause the spatial coordinate system of the image to change, resulting in a large offset during printing.

[0006] In a first aspect, embodiments of the present invention provide a method for wide-format image printing based on coordinate transformation, the method including:

[0007] Segment an original wide-format image to obtain a plurality of wide-format image segments, where the image lengths of the plurality of wide-format image segments are the same or different;

[0008] Obtain the first physical coordinates of a plurality of first identifiers on a printing substrate and the first image coordinates of a plurality of second identifiers on the wide-format image segment, where the first identifiers and the second identifiers correspond one by one;

[0009] Establish a first mapping relationship between the first physical coordinates of the first identifier and the first image coordinates of the corresponding second identifier;

[0010] Perform splicing processing on the wide-format image segment according to the first mapping relationship to obtain a spliced image;

[0011] Perform inkjet printing according to the spliced image to obtain a target image.

[0012] As an optional embodiment of the present invention, the step of obtaining the physical coordinates of several first identifiers on the printing substrate and the image coordinates of several second identifiers on the wide-format image segment includes:

[0013] Shoot the first identifier on the printing substrate through an imaging device to obtain a printing substrate image;

[0014] Obtain the first physical coordinates of each first identifier according to the printing substrate image;

[0015] Establish a first two-dimensional coordinate system on the original wide-format image, and obtain the image coordinates of each second identifier on the second two-dimensional coordinate system.

[0016] As an optional embodiment of the present invention, the step of obtaining the physical coordinates of each first identifier according to the printing substrate image includes:

[0017] Establish a second two-dimensional coordinate system on the printing substrate image;

[0018] Obtain the second image coordinates of each first identifier in the second two-dimensional coordinate system;

[0019] Perform coordinate conversion on the second image coordinates to obtain the first physical coordinates of each first identifier in the physical two-dimensional coordinate system, where the physical two-dimensional coordinate system is established with the length direction of the printing substrate as the X-axis and the width direction of the printing substrate as the Y-axis.

[0020] As an optional embodiment of the present invention, the step of establishing a first mapping relationship between the first physical coordinates of the first identifier and the first image coordinates of the corresponding second identifier includes

[0021] Calibrate the imaging device to obtain the distortion coefficient of the imaging device;

[0022] Perform coordinate compensation on the first physical coordinates according to the distortion coefficient to obtain second physical coordinates;

[0023] Establish a first mapping relationship between the second physical coordinates of the first identifier and the first image coordinates of the corresponding second identifier.

[0024] As an alternative embodiment of the present invention, the step of splicing the wide - format image segments according to the first mapping relationship to obtain a spliced image includes:

[0025] According to the first mapping relationship, obtain the target printing position of each image segment on the substrate;

[0026] Obtain the second image coordinates of each image segment in the first two - dimensional coordinate system and the second physical coordinates of each target printing position in the physical coordinate system;

[0027] Establish a second mapping relationship between the second image coordinates of the image segments and the second physical coordinates of the corresponding target printing positions;

[0028] Splice each image segment according to the second mapping relationship to obtain the spliced image.

[0029] As an alternative embodiment of the present invention, the step of performing ink - jet printing on the spliced image to obtain a target image includes:

[0030] According to a preset image - processing algorithm, perform image processing on the transition region between adjacent image segments in the spliced image to obtain a target spliced image, where the preset image - processing algorithm at least includes an image fusion algorithm and / or an interpolation algorithm;

[0031] Perform ink - jet printing according to the target spliced image to obtain the target image.

[0032] As an alternative embodiment of the present invention, the target spliced image includes several spliced image segments, and the step of performing ink - jet printing according to the target spliced image to obtain a target image includes:

[0033] Perform rasterization processing on each spliced image segment to obtain corresponding printing data;

[0034] After the rasterization processing of each spliced image segment is completed to obtain the corresponding printing data, perform ink - jet printing according to the printing data until the printing of each spliced image segment is completed to obtain the target image.

[0035] In a second aspect, an embodiment of the present invention provides a wide - format image printing device based on coordinate conversion. The device includes:

[0036] An image segmentation module, configured to segment an original wide - format image to obtain several wide - format image segments, where the image lengths of several said wide - format image segments are the same or different;

[0037] A coordinate acquisition module, configured to acquire the first physical coordinates of a plurality of first identifiers on a printing substrate and the first image coordinates of a plurality of second identifiers on the wide-format image segment, wherein the first identifiers and the second identifiers are in one-to-one correspondence;

[0038] A mapping establishment module, configured to establish a first mapping relationship between the first physical coordinates of the first identifiers and the corresponding first image coordinates of the second identifiers;

[0039] An image stitching module, configured to perform stitching processing on the wide-format image segment according to the first mapping relationship to obtain a stitched image;

[0040] An inkjet printing module, configured to perform inkjet printing according to the stitched image to obtain a target image.

[0041] 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 according to the first aspect in the above-mentioned implementation manner is implemented.

[0042] 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 according to the first aspect in the above-mentioned implementation manner is implemented.

[0043] In summary, the beneficial effects of the present invention are as follows:

[0044] The wide - format image printing method, device, equipment and medium based on coordinate transformation provided by the embodiments of the present invention segment the original wide - format image to obtain several wide - format image segments. Among them, the image lengths of several said wide - format image segments are the same or different. First, segment the image that exceeds the single - camera field of view or the printer working range, which can ensure that each image segment is suitable for subsequent processing and printing; obtain the first physical coordinates of several first identifiers on the printing substrate and the first image coordinates of several second identifiers on the wide - format image segment, where the first identifier and the second identifier are in one - to - one correspondence. By using identifiers on the printing substrate and the image segment and obtaining their coordinates, it lays a foundation for establishing an accurate mapping relationship, which ensures accurate alignment of positions during subsequent image stitching; establish a first mapping relationship between the first physical coordinates of the first identifier and the corresponding first image coordinates of the second identifier, so as to ensure that the segmented image segments can be restored to their correct positions in the original wide - format image, avoiding the printing offset problem caused by the change of the coordinate system; perform stitching processing on the wide - format image segments according to the first mapping relationship to obtain a stitched image, ensuring that each image segment can be accurately and seamlessly stitched together to form a continuous and complete image without overlap or gap; perform ink - jet printing according to the stitched image to obtain a target image. Finally, the obtained stitched image is ink - jet printed to form a complete physical image corresponding to the original image. Since the previous steps ensure the accurate alignment between image segments, the printed result is consistent and without offset.

[0045] By creating identifiers for the printing substrate and the image segment and establishing a mapping relationship between them, it is ensured that the image segments can be accurately stitched together, thus avoiding offset during printing. This provides a more accurate and effective solution for wide - format image printing. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to these drawings, and these are all within the protection scope of the present invention.

[0047] Figure 1 It is a flowchart of the wide - format image printing method based on coordinate transformation according to the embodiments of the present invention.

[0048] Figure 2 It is a flowchart of the process of obtaining image coordinates and physical coordinates according to the embodiments of the present invention.

[0049] Figure 3 It is a flowchart of the process of obtaining physical coordinates according to the embodiments of the present invention.

[0050] Figure 4 It is a schematic flow chart for establishing the mapping relationship in the embodiment of the present invention.

[0051] Figure 5 It is a schematic structural diagram of a wide - format image printing device based on coordinate transformation in the embodiment of the present invention.

[0052] Figure 6 It is a schematic structural diagram of the printing device in the embodiment of the present invention. Detailed implementation manners

[0053] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. For the purpose of making the objectives, technical solutions and advantages of the present invention clearer, 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 to provide a better understanding of the present invention by showing examples of the present invention.

[0054] It should be noted that in this article, 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 actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non - exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, elements defined by the statement "including..." do not exclude the presence of additional identical elements in the process, method, article or device including the said elements.

[0055] Embodiment 1

[0056] Please refer to Figure 1 , in the first aspect, the embodiment of the present invention provides a wide - format image printing method based on coordinate transformation, and the method includes:

[0057] S1. Segment the original wide - format image to obtain a plurality of wide - format image segments, where the image lengths of the plurality of wide - format image segments are the same or different;

[0058] In this step, the original wide - format image refers to an image that cannot be processed at one time by the image processing system. In order for the image processing system to process it normally, the original wide - format image is first segmented to obtain several wide - format image segments. The image lengths of the segmented image segments can be the same or different;

[0059] In a specific embodiment, the original wide - format image is segmented according to a preset fixed size. The preset fixed size can be set according to the actual situation. For example, but not limited to, when the image length of the original wide - format image is 10 meters, the preset fixed size can be set to 1 meter or 2 meters. Using a fixed size for segmentation is a simple and intuitive method. It does not require complex algorithms or image analysis, so it is relatively easy to implement. And the segments of a fixed size can be processed or printed simultaneously on multiple processing units or printers, thus improving efficiency. Further, each segmented segment has the same size, so the processing and printing time of each segment will be very close, which is convenient for time management and task scheduling.

[0060] In another embodiment, referring to Figure 2 , the step of segmenting the original wide - format image to obtain several wide - format image segments includes:

[0061] S11. Extract features from the original wide - format image to obtain image features;

[0062] In this step, computer vision technology is used to extract key image features from the image. The computer vision technology can include existing image processing technologies such as Sobel operator, Laplacian operator, etc. The image features can include one or more of edges, colors, textures, and shapes. Feature extraction helps to more clearly define the regions and contents in the image and prepares for subsequent content recognition and segmentation.

[0063] S12. According to the image features, perform content recognition on the original wide - format image to obtain image content;

[0064] Specifically, content recognition can be achieved through a model based on machine learning algorithms. The machine learning algorithms include decision trees, random forests, SVM, neural networks, etc. First, obtain a sample set, which includes multiple sample images. Extract features from each sample image, form a feature vector for each image sample with the extracted features, divide the data into a training set and a test set, label the data in the training set, indicating the content or category represented by each sample, use the data in the training set to train the model, use the test set to evaluate the accuracy and performance of the model and make adjustments, and finally input the image features corresponding to the original wide - format image into the above - mentioned model to obtain the image content;

[0065] S13. Segment the original wide - format image according to the image content to obtain a number of image segments;

[0066] Once the key content in the image is recognized, it is possible to determine how to segment. For example, it is possible to choose to segment in the blank area between two adjacent objects to ensure that the objects are not cut. In wide - format printing, content - based segmentation can ensure that the key parts of the image are not wrongly cut, thus obtaining a better printing effect.

[0067] S2. Obtain the first physical coordinates of a number of first identifiers on the printing substrate and the first image coordinates of a number of second identifiers on the wide - format image segments, where the first identifiers and the second identifiers are in one - to - one correspondence;

[0068] The goal of this step is to determine the specific positions on the printing substrate. For this purpose, some recognizable marking points (such as specific patterns, shapes, color blocks or other conspicuous marks) are placed on the printing substrate. These marks are called first identifiers. The physical positions of these first identifiers are measured by sensors, cameras or other imaging devices to obtain the first physical coordinates. There is also a series of marking points on the segmented wide - format image segments. These marks are called second identifiers. Through image - processing techniques, the positions of these second identifiers in the image segments can be identified and determined to obtain their first image coordinates. Each first identifier on the printing substrate matches a certain second identifier on the wide - format image segment. This correspondence ensures that in the subsequent splicing and printing processes, the content of the image segments can be accurately aligned to specific positions on the printing substrate.

[0069] As an optional embodiment of the present invention, refer to Figure 3 , the step of obtaining the physical coordinates of a number of first identifiers on the printing substrate and the image coordinates of a number of second identifiers on the wide - format image segments includes:

[0070] S21. Shoot the first identifiers on the printing substrate through an imaging device to obtain a printing - substrate image;

[0071] In this step, first, the printing substrate is placed in an appropriate position to ensure that the first identifiers on it are clearly visible. The printing substrate is photographed using an imaging device. The imaging device can be, for example, a digital camera, a scanner or other specialized imaging systems, to obtain a digitized printing - substrate image, which clearly shows all the first identifiers. The purpose of shooting is to obtain the digitized image of the first identifiers on the printing substrate, so as to perform image processing and coordinate recognition in subsequent steps.

[0072] S22. According to the printing - substrate image, obtain the first physical coordinates of each of the first identifiers;

[0073] After obtaining the digital image of the substrate, the positions of each first identifier are identified through image processing techniques. Using image recognition or image analysis methods, the exact positions of each identifier in the image can be found. These positions will be converted into first physical coordinates, which represent the actual positions of each first identifier on the substrate. They are usually the X and Y coordinates relative to the boundary of the image or a certain reference point.

[0074] As an optional embodiment of the present invention, refer to Figure 4 , the step of obtaining the physical coordinates of each of the first identifiers according to the substrate image includes:

[0075] S221. Establish a second two-dimensional coordinate system in the substrate image;

[0076] First, establish a second two-dimensional coordinate system on the digital image of the substrate that has been obtained. This coordinate system is defined based on pixels, that is, each pixel has a unique coordinate position in this coordinate system. Usually, the upper left corner of the image is used as the origin, the right direction is the positive direction of the X axis, and the lower direction is the positive direction of the Y axis. The coordinate values of each point are determined based on the pixel positions.

[0077] S222. Obtain the second image coordinates of each of the first identifiers in the second two-dimensional coordinate system;

[0078] After establishing the second two-dimensional coordinate system, the next task is to determine the positions of each first identifier in this coordinate system. By using image processing and image recognition techniques, such as edge detection, feature matching, etc., the center or specific reference point of each first identifier in the substrate image can be accurately located. The positions of these centers or reference points are the second image coordinates. They are coordinates based on pixels and can be directly compared and calculated with other pixel points in the image.

[0079] S223. Perform coordinate conversion on the second image coordinates to obtain the first physical coordinates of each of the first identifiers in the physical two-dimensional coordinate system, where the physical two-dimensional coordinate system is established with the length direction of the substrate as the X axis and the width direction of the substrate as the Y axis.

[0080] Since our ultimate goal is to print on the real substrate, we need to convert the second image coordinates into real physical coordinates.

[0081] The physical two-dimensional coordinate system mentioned here is a coordinate system corresponding to the actual size and shape of the printing substrate. As described, its X-axis is along the length direction of the printing substrate, and its Y-axis is along the width direction of the printing substrate. Coordinate conversion usually involves a scale factor, which is determined based on the image resolution, image size, and actual size of the printing substrate. Using this scale factor, each second image coordinate can be converted into the corresponding first physical coordinate. The scale factor can be obtained through the known actual physical distance and pixel distance, so as to convert these pixel coordinates into actual physical coordinates, for example, determined according to the actual physical distance between adjacent first markers and the pixel distance between the corresponding two second markers;

[0082] In summary, the core purpose of these three sub-steps is to first determine the position of each identifier on the digital image of the printing substrate, and then convert these positions from a pixel-based coordinate system to a coordinate system based on actual physical dimensions. This ensures that during the actual printing process, the image content can accurately correspond to the positions on the printing substrate.

[0083] S23. Establish a first two-dimensional coordinate system on the original wide-format image, and obtain the image coordinates of each second identifier on the second two-dimensional coordinate system.

[0084] When processing the original wide-format image, it is first necessary to establish a two-dimensional coordinate system. This coordinate system is used to mark and reference the positions and regions of the entire image. The establishment of the coordinate system is usually based on the pixel size of the image and the actual size of the image. Once the coordinate system is established, it is possible to start identifying the second identifiers in the wide-format image. The positions of these second identifiers can be represented as image coordinates in the coordinate system, usually also in the form of X and Y. These image coordinates will be used later to match with the first physical coordinates to ensure the correct alignment and splicing of the image.

[0085] In summary, the purpose of these three sub-steps is to obtain the actual positions of the first identifiers on the printing substrate and the image positions of the second identifiers in the wide-format image, so as to provide the necessary data and references for subsequent image alignment and splicing.

[0086] S3. Establish a first mapping relationship between the first physical coordinates of the first identifier and the first image coordinates of the corresponding second identifier;

[0087] In this step, establishing the first mapping relationship between the first physical coordinates of the first identifier and the first image coordinates of the corresponding second identifier is used to correspond the physical coordinates of the first identifier on the printing substrate with the image coordinates of the second identifier on the wide-format image segment. Such a mapping relationship is very crucial for subsequent image splicing and printing, ensuring that each part of the image content matches the actual physical position.

[0088] The mapping relationship can be established using various methods. The simplest is linear mapping, but considering possible deformations or distortions, more complex methods such as affine transformation, perspective transformation, or higher-order polynomial transformation may be required. The choice of method depends on the actual application requirements and the characteristics of the data.

[0089] As an optional embodiment of the present invention, the step of establishing a first mapping relationship between the first physical coordinates of the first identifier and the corresponding first image coordinates of the second identifier includes

[0090] S31. Calibrate the imaging device to obtain the distortion coefficients of the imaging device;

[0091] Specifically, due to its internal optical characteristics, an imaging device often introduces a certain form of distortion. This distortion causes the objects in the captured image to shift from their positions in the real world. The calibration process can identify and quantify these shifts. The step of calibrating the imaging device to obtain the distortion coefficients of the imaging device specifically includes:

[0092] S311. Shoot a calibration template through the imaging device to obtain a number of calibration images;

[0093] Specifically, the calibration template can be a checkerboard or a circular ring template. The checkerboard contains a grid of alternating black and white rectangles. The camera can easily detect the corner points of these rectangles, which are often used as calibration points; the circular ring template contains regularly arranged circular rings. Similar to the checkerboard template, the centers of the circular rings are often used as calibration points; place the calibration template on a plane and then capture images from different angles and positions with the imaging device to obtain a number of calibration images; multiple images are needed to obtain a comprehensive view of the camera parameters. This helps to obtain the behavior of the camera under different rotations and translations.

[0094] S312. Obtain the distortion coefficients of the imaging device according to the calibration images;

[0095] After obtaining the calibration images, detect the feature points of the calibration object in each image. For the checkerboard, these feature points are the corner points where the black and white squares meet. Using the positions of the detected feature points in the image and the known 3D positions of these points on the calibration object, use a calibration algorithm to estimate the distortion coefficients of the camera.

[0096] S32. Perform coordinate compensation on the first physical coordinates according to the distortion coefficients to obtain second physical coordinates;

[0097] After obtaining the offsets introduced by the optical distortion of the imaging device, distortion coefficients can be used to correct these offsets. Coordinate compensation generally involves a mathematical operation that adjusts the original coordinates with the distortion coefficients to obtain coordinates closer to the actual position of the object in the real world. The compensated coordinates are called the second physical coordinates.

[0098] S33. Establish a first mapping relationship between the second physical coordinates of the first identifier and the first image coordinates of the corresponding second identifier.

[0099] With the corrected second physical coordinates, the mapping relationship between these coordinates and the image coordinates can be accurately established.

[0100] S4. Perform a splicing process on the wide-format image segments according to the first mapping relationship to obtain a spliced image.

[0101] When multiple wide-format image segments need to be spliced together to create a complete image, the mapping relationship plays a key role. Specifically, this mapping relationship can be understood as a transformation or conversion that indicates how to align one image segment with another to achieve the best effect during splicing. First, according to the first mapping relationship obtained in step S3, it can be determined how specific points in each wide-format image segment are aligned with points in other image segments, ensuring a natural and smooth transition between the splicing points.

[0102] As an optional embodiment of the present invention, the step of performing a splicing process on the wide-format image segments according to the first mapping relationship to obtain a spliced image includes:

[0103] S41. According to the first mapping relationship, obtain the target printing position of each image segment on the substrate.

[0104] The goal of this step is to clarify the position of each image segment on the substrate. Using the previously established first mapping relationship, we can determine where each image segment should be placed on the substrate to ensure that all image segments can be perfectly spliced after printing.

[0105] S42. Obtain the second image coordinates of each image segment in the first two-dimensional coordinate system and the second physical coordinates of each target printing position in the physical coordinate system.

[0106] Specifically, determine the position of each image segment in the image coordinate system, which can be understood as the coordinates of the starting point and the ending point of each image segment in the image coordinate system. At the same time, the coordinates of the predetermined printing position of each image segment on the substrate also need to be obtained, and these coordinates will be used as a reference during actual printing.

[0107] S43. Establish a second mapping relationship between the second image coordinates of the image segment and the second physical coordinates of the corresponding target printing position;

[0108] Based on the obtained image coordinates and physical coordinates above, establish a new mapping relationship. This second mapping relationship is used to describe how to transform from the coordinate space of the image to the actual physical coordinate space, so as to ensure that the image segment can be accurately placed at the predetermined position during printing;

[0109] S44. Stitch each of the image segments according to the second mapping relationship to obtain the stitched image.

[0110] According to the second mapping relationship, place each image segment at its predetermined printing position on the substrate, and perform corresponding geometric transformations (such as rotation, translation, etc.) on each image segment to ensure that they are correctly aligned in the final stitched image. After completing these operations, obtain the complete stitched image, which can be directly printed.

[0111] S5. Perform inkjet printing according to the stitched image to obtain the target image.

[0112] After obtaining the stitched image, inkjet printing can be performed to obtain the target image;

[0113] As an optional embodiment of the present invention, the step of performing inkjet printing according to the stitched image to obtain the target image includes:

[0114] S51. According to a preset image processing algorithm, perform image processing on the transition region between adjacent image segments in the stitched image to obtain a target stitched image, where the preset image processing algorithm at least includes an image fusion algorithm and / or an interpolation algorithm;

[0115] Specifically, when stitching multiple image segments, there may be obvious seams or color differences between adjacent image segments. Such mutations are unnatural to the vision and may affect the quality and appearance of the final print. Image fusion aims to naturally combine two or more image segments, eliminate edges and differences, so as to achieve seamless stitching. For example, through smooth color transitions or through the blending of weights, the stitched area is made more continuous visually. Interpolation is a common method used in image processing for estimating unknown pixel values in an image. Interpolation can be used to estimate the pixel values in the transition region between adjacent image segments, thus achieving a smoother transition.

[0116] S52. Perform inkjet printing according to the target stitched image to obtain the target image.

[0117] As an alternative embodiment of the present invention, the target stitched image includes a number of stitched image segments, and the step of performing inkjet printing according to the target stitched image to obtain a target image includes:

[0118] S521. Perform rasterization processing on each of the stitched image segments to obtain corresponding printing data;

[0119] S522. After the rasterization processing of each of the stitched image segments is completed to obtain corresponding printing data, perform inkjet printing according to the printing data until the printing of each of the stitched image segments is completed to obtain the target image.

[0120] Specifically, printing is directly performed immediately after the rasterization of each stitched image segment is completed. This way of printing by segments can achieve higher printing speed and efficiency. The printer does not need to wait for the entire stitched image to be completely rasterized, thus shortening the waiting time for the start of printing.

[0121] Embodiment 2

[0122] Please refer to FIG. 5. An embodiment of the present invention provides a wide-format image printing device based on coordinate transformation. The device includes:

[0123] An image segmentation module, configured to segment an original wide-format image to obtain a number of wide-format image segments, where the image lengths of the number of wide-format image segments are the same or different;

[0124] A coordinate acquisition module, configured to acquire the first physical coordinates of a number of first identifiers on a printing substrate and the first image coordinates of a number of second identifiers on the wide-format image segments, where the first identifiers and the second identifiers are in one-to-one correspondence;

[0125] A mapping establishment module, configured to establish a first mapping relationship between the first physical coordinates of the first identifiers and the corresponding first image coordinates of the second identifiers;

[0126] An image stitching module, configured to perform stitching processing on the wide-format image segments according to the first mapping relationship to obtain a stitched image;

[0127] An inkjet printing module, configured to perform inkjet printing according to the stitched image to obtain a target image.

[0128] It should be noted that each module and each unit in the wide-format image printing device based on coordinate transformation in this embodiment correspond one-to-one to each step in the wide-format image printing method based on coordinate transformation in the foregoing embodiment. Therefore, the specific implementation manners of this embodiment may refer to the implementation manners of the foregoing wide-format image printing method based on coordinate transformation, and will not be elaborated here.

[0129] Embodiment 3

[0130] In addition, the wide - format image printing method based on coordinate transformation according to the embodiments of the present invention described in combination with Figure 6 can be implemented by a printing device. Figure 6 FIG. shows a schematic hardware structure diagram of a printing device provided by an embodiment of the present invention.

[0131] The printing device may include a processor and a memory storing computer program instructions.

[0132] 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.

[0133] 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 disk, a magneto - optical disk, 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.

[0134] The processor reads and executes the computer program instructions stored in the memory to implement any one of the wide - format image printing methods based on coordinate transformation in the above - mentioned embodiments.

[0135] In one example, the printing device may further include a communication interface and a bus. Among them, as Figure 6 shown, the processor, the memory, and the communication interface are connected through the bus and complete communication with each other.

[0136] The communication interface is mainly used to implement communication between each module, device, unit, and / or device in the embodiments of the present invention.

[0137] A bus, which includes hardware, software, or both, couples components of a xxx device together. 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.

[0138] Embodiment 4

[0139] In addition, in combination with the wide-format image printing method based on coordinate transformation 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 wide-format image printing methods based on coordinate transformation in the above embodiments is implemented.

[0140] In summary, the wide - format image printing method, apparatus, device, and medium based on coordinate transformation provided by the embodiments of the present invention segment the original wide - format image to obtain a plurality of wide - format image segments, where the image lengths of the plurality of wide - format image segments are the same or different. First, segmenting the image that exceeds the field of view of a single camera or the working range of a printer can ensure that each image segment is suitable for subsequent processing and printing; obtain the first physical coordinates of a plurality of first identifiers on the substrate and the first image coordinates of a plurality of second identifiers on the wide - format image segment, where the first identifiers and the second identifiers are in one - to - one correspondence. By using identifiers on the substrate and the image segment and obtaining their coordinates, it lays a foundation for establishing an accurate mapping relationship, which ensures accurate alignment of positions during subsequent image stitching; establish a first mapping relationship between the first physical coordinates of the first identifiers and the first image coordinates of the corresponding second identifiers, so as to ensure that the segmented image segments can be restored to their correct positions in the original wide - format image, avoiding printing offset problems caused by coordinate system changes; perform stitching processing on the wide - format image segments according to the first mapping relationship to obtain a stitched image, ensuring that the individual image segments can be accurately and seamlessly stitched together to form a continuous and complete image without overlap or gaps; perform ink - jet printing according to the stitched image to obtain a target image. Finally, the obtained stitched image is ink - jet printed to form a complete physical image corresponding to the original image. Since the previous steps ensure the accurate alignment between the image segments, the printed result is consistent and without offset.

[0141] By creating identifiers for the substrate and the image segment and establishing a mapping relationship between them, it is ensured that the image segments can be accurately stitched together, thus avoiding offset during printing. This provides a more accurate and effective solution for wide - format image printing.

[0142] It should be clear 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 between steps after understanding the spirit of the present invention.

[0143] 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. "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.

[0144] It should also be noted that in the exemplary embodiments mentioned in the present invention, some methods or systems are described 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.

[0145] 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 elaborated herein. 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 printing wide - format images based on coordinate transformation, characterized in that, The method includes: Segmenting the original wide - format image to obtain a plurality of wide - format image segments, where the image lengths of the plurality of wide - format image segments are the same or different; Obtaining the first physical coordinates of a plurality of first identifiers on the printing substrate and the first image coordinates of a plurality of second identifiers on the wide - format image segments, where the first identifiers and the second identifiers are in one - to - one correspondence; Establishing a first mapping relationship between the first physical coordinates of the first identifiers and the first image coordinates of the corresponding second identifiers; Performing a splicing process on the wide - format image segments according to the first mapping relationship to obtain a spliced image; Performing ink - jet printing according to the spliced image to obtain a target image.

2. The method for printing wide - format images based on coordinate transformation according to claim 1, characterized in that, The step of obtaining the physical coordinates of a plurality of first identifiers on the printing substrate and the image coordinates of a plurality of second identifiers on the wide - format image segments includes: Taking a picture of the first identifiers on the printing substrate through an imaging device to obtain a printing - substrate image; Obtaining the first physical coordinates of each of the first identifiers according to the printing - substrate image; Establishing a first two - dimensional coordinate system on the original wide - format image and obtaining the image coordinates of each of the second identifiers on the second two - dimensional coordinate system.

3. The method for printing wide - format images based on coordinate transformation according to claim 2, characterized in that, The step of obtaining the physical coordinates of each of the first identifiers according to the printing - substrate image includes: Establishing a second two - dimensional coordinate system on the printing - substrate image; Obtaining the second image coordinates of each of the first identifiers in the second two - dimensional coordinate system; Performing coordinate transformation on the second image coordinates to obtain the first physical coordinates of each of the first identifiers in a physical two - dimensional coordinate system, where the physical two - dimensional coordinate system is established with the length direction of the printing substrate as the X - axis and the width direction of the printing substrate as the Y - axis.

4. The method for printing wide - format images based on coordinate transformation according to claim 3, characterized in that, The step of establishing a first mapping relationship between the first physical coordinates of the first identifiers and the first image coordinates of the corresponding second identifiers includes Calibrating the imaging device to obtain the distortion coefficient of the imaging device; Performing coordinate compensation on the first physical coordinates according to the distortion coefficient to obtain second physical coordinates; Establishing a first mapping relationship between the second physical coordinates of the first identifiers and the first image coordinates of the corresponding second identifiers.

5. The method for printing wide - format images based on coordinate transformation according to claim 4, characterized in that, The step of performing a splicing process on the wide - format image segments according to the first mapping relationship to obtain a spliced image includes: Obtaining the target printing position of each image segment on the printing substrate according to the first mapping relationship; Obtaining the second image coordinates of each image segment in the first two - dimensional coordinate system and the second physical coordinates of each target printing position in the physical coordinate system; Establishing a second mapping relationship between the second image coordinates of the image segments and the second physical coordinates of the corresponding target printing positions; Splicing each image segment according to the second mapping relationship to obtain the spliced image.

6. The method for printing wide - format images based on coordinate transformation according to any one of claims 1 - 5, characterized in that, The step of performing ink - jet printing according to the spliced image to obtain a target image includes: According to a preset image processing algorithm, perform image processing on the transition region between adjacent image segments in the stitched image to obtain a target stitched image, where the preset image processing algorithm at least includes an image fusion algorithm and / or an interpolation algorithm; Perform inkjet printing according to the target stitched image to obtain a target image.

7. The method for printing wide - format images based on coordinate transformation according to claim 6, characterized in that, The target stitched image includes a plurality of stitched image segments, and the step of performing inkjet printing according to the target stitched image to obtain a target image includes: Perform rasterization processing on each of the stitched image segments to obtain corresponding printing data; After the rasterization processing of each of the stitched image segments is completed to obtain the corresponding printing data, perform inkjet printing according to the printing data until the printing of each of the stitched image segments is completed to obtain the target image.

8. A wide-format image printing device based on coordinate transformation, characterized in that, The device includes: An image segmentation module, configured to segment an original wide-format image to obtain a plurality of wide-format image segments, where the image lengths of the plurality of wide-format image segments are the same or different; A coordinate acquisition module, configured to acquire the first physical coordinates of a plurality of first identifiers on a printing substrate and the first image coordinates of a plurality of second identifiers on the wide-format image segments, where the first identifiers and the second identifiers are in one-to-one correspondence; A mapping establishment module, configured to establish a first mapping relationship between the first physical coordinates of the first identifiers and the corresponding first image coordinates of the second identifiers; An image stitching module, configured to perform stitching processing on the wide-format image segments according to the first mapping relationship to obtain a stitched image; An inkjet printing module, configured to perform inkjet printing according to the stitched image to obtain a target image.

9. A printing device, characterized in that, Includes: 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 described in any one of claims 1-7 is implemented.

10. A storage medium, on which computer program instructions are stored, characterized in that, When the computer program instructions are executed by the processor, the method described in any one of claims 1-7 is implemented.

Citation Information

Cited By

  • Method for mapping plane printing data to spherical printing data, printing equipment and storage medium

    CN121921168A