Variable perimeter object printing method, apparatus, device, and storage medium

By adjusting the number and distribution of pixels on a variable perimeter object, the problem of color depth differences during printing was solved, achieving image uniformity and high-quality printing results. In particular, by adjusting the pixel density and weight calculation method, the color differences existing in the prior art were resolved. By adopting the method of pixel number and distribution, the color differences existing in the prior art were resolved, ensuring the overall image quality and color uniformity.

CN115729481BActive Publication Date: 2025-11-18SHENZHEN HOSONSOFT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111028039.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-02
Publication Date
2025-11-18
Estimated Expiration
2041-09-02

AI Technical Summary

Technical Problem

Existing technologies exhibit significant color variations when printing objects with varying perimeters, leading to a decrease in image quality.

Method used

By adjusting the perimeter of the cross-section of each pixel row in the image on the target object, the number and distribution of pixels are adjusted to make the pixel density uniform. A pixel number weight calculation method is used to select effective pixels and modify the printing data to ensure the color uniformity of the image at different locations.

Benefits of technology

This technology enables the printing of images with uniform pixel density on target objects with inconsistent cross-sectional perimeters, eliminating color differences and ensuring the overall image quality and color uniformity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115729481B_ABST
    Figure CN115729481B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of printing, and provides a variable perimeter object printing method, device, equipment and storage medium. The variable perimeter object printing is used for printing an image on a target object with inconsistent cross-sectional perimeter. Pixel points of the printed image are arranged into a plurality of pixel rows on the target object. The printing method comprises the following steps: S1: obtaining original printing data of the image; S2: adjusting the number and distribution of pixel points of each pixel row of the image according to the cross-sectional perimeter of the position of each pixel row on the target object; S3: modifying the original printing data according to the adjusted image; and S4: printing on the target object according to the modified printing data. The present application also comprises a device, equipment and storage medium for executing the above method. The present application can effectively eliminate color difference during variable perimeter object printing.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of inkjet printing technology, and in particular to a variable perimeter object printing method, device, equipment and storage medium. BACKGROUND

[0002] Inkjet printing refers to the process of ejecting ink droplets through nozzles on a printhead onto a print medium to obtain an image or text. The printed image is composed of many pixel points, and the denser the pixel points of the image, the higher the precision of the printed image. The precision of the image is usually represented by the number of pixels per inch, i.e. DPI (Dots Per Inch). The higher the DPI value, the higher the precision of the image, and vice versa. However, when printing objects with different perimeters at different positions, such as a cone, the pixel points at positions with small perimeters are denser than the pixel points at positions with large perimeters, i.e. the DPI value at positions with small perimeters is higher than the DPI value at positions with large perimeters. This results in obvious differences in color depth at different positions of the printed object with the same data amount, thereby affecting the quality of the printed image. SUMMARY

[0003] In view of the above, embodiments of the present application provide a variable perimeter object printing method, device, equipment and storage medium to solve the technical problem of obvious differences in color depth when printing a variable perimeter object in the prior art.

[0004] The technical solution adopted by the present application is as follows:

[0005] In a first aspect, the present application provides a variable perimeter object printing method for printing an image on a target object with inconsistent cross-sectional perimeters, wherein the pixel points of the printed image are arranged into a plurality of pixel rows on the target object, and the printing method comprises the following steps:

[0006] S1: obtaining original printing data of the image;

[0007] S2: adjusting the number of pixel points and the distribution of pixel points of each pixel row of the image according to the cross-sectional perimeter of the position of each pixel row on the target object;

[0008] S3: modifying the original printing data according to the adjusted image;

[0009] S4: printing on the target object according to the modified printing data.

[0010] Preferably, the S2: adjusting the number of pixel points and the distribution of pixel points of each pixel row of the image according to the cross-sectional perimeter of the position of each pixel row on the target object comprises the following steps:

[0011] S21: determining the number of valid pixel points of each pixel row according to the cross-sectional perimeter of the position of each pixel row on the target object;

[0012] S22: selecting valid pixel points from the original pixel points of each pixel row according to the number of valid pixel points of each pixel row.

[0013] Preferably, the S3: modifying the original printing data according to the adjusted image comprises the following steps:

[0014] S31: obtaining printing data corresponding to other pixel points in each pixel row except valid pixel points;

[0015] S32: obtaining modified printing data by performing inkless processing on the printing data corresponding to the other pixel points in the original printing data.

[0016] Preferably, the S21: determining the number of valid pixel points of each pixel row according to the cross-sectional perimeter of the position of each pixel row on the target object comprises the following steps:

[0017] S211: determining the pixel point weight Qx of each pixel row according to the cross-sectional perimeter of the position of each pixel row on the target object and the cross-sectional perimeter of the reference position on the target object;

[0018] S212: obtaining the number of pixel points Nc of the pixel row corresponding to the reference position on the target object;

[0019] S213: calculating the number of valid pixel points Nx of each pixel row according to the pixel point weight Qx of each pixel row and the number of pixel points Nc of the pixel row corresponding to the reference position, wherein Nx=Nc×Qx.

[0020] Preferably, the S211: determining the pixel point weight Qx of each pixel row according to the cross-sectional perimeter of the position of each pixel row on the target object and the cross-sectional perimeter of the reference position on the target object comprises the following steps:

[0021] S2111: obtaining the cross-sectional perimeter Lx of the position of each pixel row on the target object;

[0022] S2112: obtaining the cross-sectional perimeter Lc of the reference position on the target object;

[0023] S2113: calculating the pixel point weight Qx of each pixel row according to the cross-sectional perimeter Lx of the position of each pixel row on the target object and the cross-sectional perimeter Lc of the reference position on the target object, wherein Qx=Lx / Lc.

[0024] Preferably, in the S22, the effective pixel points of each pixel row are selected from the original pixel points of each pixel row according to the effective pixel point number of each pixel row after the adjustment, so that the effective pixel points of each pixel row are evenly distributed on each pixel row.

[0025] Preferably, the target object is a circular truncated cone, the circular truncated cone comprises a first end portion and a second end portion arranged oppositely, and the S2 comprises the following steps:

[0026] S201: obtaining a cross-sectional perimeter L1 of a first end portion of the circular truncated cone;

[0027] S202: obtaining a cross-sectional perimeter L2 of a second end portion of the circular truncated cone;

[0028] S203: obtaining a pixel point number Nc of a pixel row corresponding to the first end portion of the circular truncated cone and a total number H of pixel rows;

[0029] S204: calculating an effective pixel point number of each pixel row according to L1, L2 and Nc, wherein the effective pixel point number Ni of the i-th pixel row from the first end portion of the circular truncated cone is (1-i / H+(L2×i) / (L1×H))×Nc, wherein i is an integer;

[0030] S205: selecting effective pixel points of each pixel row from the original pixel points of each pixel row according to the effective pixel point number of each pixel row, so that the effective pixel points of each pixel row are evenly distributed on each pixel row.

[0031] The second aspect of the present application further provides a perimeter-variable object printing device for printing an image on a target object with inconsistent cross-sectional perimeters, wherein pixel points of the printed image are arranged into a plurality of pixel rows on the target object, and the device comprises:

[0032] a data acquisition module, configured to acquire original printing data of the image;

[0033] a pixel point adjustment module, configured to adjust a pixel point number and a pixel point distribution of each pixel row of the image according to a cross-sectional perimeter of a position of each pixel row on the target object;

[0034] an original printing data modification module, configured to modify the original printing data according to the adjusted image;

[0035] a printing module, configured to print on the target object according to the modified printing data.

[0036] In a third aspect, the present application also provides a variable perimeter object printing 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.

[0037] In a fourth aspect, the present application also provides a storage medium having stored thereon computer program instructions, which, when executed by a processor, implement the method of the first aspect.

[0038] Beneficial effects: The variable perimeter object printing method, device, equipment and storage medium of the present application, when printing an image on a target object with inconsistent cross-sectional perimeter, adjust the number of pixel points and the distribution of pixel points of each pixel row of the image according to the cross-sectional perimeter of the position of each pixel row on the target object, so that the number of pixel points and the distribution of pixel points of each pixel row after adjustment match the cross-sectional perimeter of the position of each pixel row on the target object. Although the cross-sectional perimeters of different positions of the target object are inconsistent, the pixel density of the entire image on the target object after the foregoing adjustment is very uniform, and the printed image will not have color difference. BRIEF DESCRIPTION OF DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiments of the present application will be briefly introduced below. For those skilled in the art, other drawings can also be obtained on the basis of these drawings without creative labor, and these are within the protection scope of the present application.

[0040] Figure 1 A schematic diagram of the cross section of the target object;

[0041] Figure 2 A flowchart of the variable perimeter object printing method of the present application;

[0042] Figure 3 A schematic diagram of the arrangement of pixel points in the prior art;

[0043] Figure 4 A flowchart of the method of adjusting the number of pixel points and the distribution of pixel points according to the cross-sectional perimeter of the present application;

[0044] Figure 5 A schematic diagram of selecting effective pixel points of the present application;

[0045] Figure 6 A flowchart of the method of modifying the printing data according to the adjusted image of the present application;

[0046] Figure 7 A flowchart of the method of determining the number of effective pixel points according to the cross-sectional perimeter of the present application;

[0047] Figure 8 Flow chart of the method for determining the number of pixel points according to the cross-sectional perimeter of the present application;

[0048] Figure 9 Flow chart of the method for printing an image on a frustum-shaped target object of the present application;

[0049] Figure 10 Structural schematic diagram of the variable-perimeter object printing device of the present application;

[0050] Figure 11 Structural schematic diagram of the variable-perimeter object printing device of the present application. DETAILED DESCRIPTION

[0051] 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 sequence between these entities or operations. In the description of the present application, it should be understood that the orientations or positional relationships indicated by terms such as center, upper, lower, front, back, left, right, vertical, horizontal, top, bottom, inner, and outer 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.

[0052] Embodiment 1

[0053] As Figure 1As shown in this paper, for a given three-dimensional object, arbitrarily specifying a direction as the reference direction, the planar figure obtained by cutting the three-dimensional object at a certain position in the reference direction using a plane perpendicular to the reference direction is called the cross-section of the three-dimensional object. When the three-dimensional object is cut from different positions in the reference direction, the perimeter of the resulting cross-section 21 may be the same or different. If the perimeter of the cross-section 21 obtained from at least two different positions of a three-dimensional object is different, then it belongs to the category of variable perimeter objects as described in this paper.

[0054] This embodiment discloses a method for printing objects with variable perimeters, used to print images on target objects 20 with inconsistent cross-sectional perimeters, such as... Figure 1 As shown, the aforementioned inconsistent cross-sectional perimeters refer to the fact that at least two cross-sections 21 obtained from different positions along the reference direction have different perimeters. When the image is printed onto the target object 20, the pixels of the printed image are arranged in several rows on the target object 20, such as... Figure 2 As shown, the printing method includes the following steps:

[0055] S1: Obtain the original print data of the image;

[0056] The image data obtained after color correction and halftone processing of the image to be printed can be used as the original printing data.

[0057] S2: Adjust the number and distribution of pixels in each pixel row of the image according to the cross-sectional perimeter of each pixel row on the target object;

[0058] like Figure 3 As shown, when an image is printed onto a target object, the pixels 11 that make up the image are arranged in rows and columns on the target object. For ease of description, the rows formed by the arrangement of pixels 11 are referred to as pixel rows 10 in this paper. The image printed on the target object can be considered as being composed of several rows of pixel rows 10. If the direction perpendicular to the pixel rows 10 is taken as the aforementioned reference direction, then each pixel row 10 is located at a different position on the target object in the reference direction. The cross-section obtained by cutting the target object from the position of a certain pixel row 10 is the cross-section of the position of that pixel row on the target object, and the perimeter of this cross-section is the perimeter of the cross-section of the position of that pixel row on the target object.

[0059] like Figure 4 As shown, in a preferred embodiment, S2 in this embodiment: adjusting the number and distribution of pixels in each pixel row of the image according to the cross-sectional perimeter of the position of each pixel row on the target object, includes the following steps;

[0060] S21: Determine the number of effective pixels in each pixel row based on the perimeter of the cross section at the position of each pixel row on the target object;

[0061] Once the perimeter of the cross-section at the location of a certain pixel row on the target object is known, the number and distribution of pixels in each pixel row of the image can be adjusted based on this perimeter. A smaller cross-sectional perimeter allows for a smaller number of pixels in that row, resulting in a sparser pixel distribution. For example, if an image consisting of 3 pixel rows is printed on a target object, before adjustment, all 3 rows have the same number of pixels, m pixels. Since the perimeter of the second pixel row on the target object is smaller than that of the first and second rows, the number of pixels in the second row can be reduced to k pixels. This means only k pixels are retained in the second row, and these retained k pixels are called the effective pixels of the second row. Here, m and k are positive integers, and m > k.

[0062] S22: Select valid pixels from the original pixels in each pixel row based on the number of valid pixels in each pixel row.

[0063] like Figure 5 As shown in the image, dashed circles represent unselected pixels, and solid circles represent valid pixels. This step adjusts the number and distribution of pixels by extracting them from the existing pixels in each pixel row. This adjustment can be performed on the existing data, requiring only partial processing, thus reducing the amount of data processed, increasing processing speed, and minimizing the difference from the original image. Because the perimeter of the cross-section of each pixel row on the target object varies, some pixel rows require pixel number adjustment, while others do not. For pixel rows that do not require pixel number adjustment, all existing pixels in that row can be selected as valid pixels.

[0064] In this embodiment, as a preferred implementation, effective pixels 12 are selected from the original pixels in each pixel row, and these selected effective pixels 12 are evenly distributed across each pixel row. This results in a uniform distribution of pixels across each pixel row in the final printed image. This not only minimizes color difference in the adjusted image but also ensures accurate reproduction of the original image, while also making the transitions within the same pixel row more natural.

[0065] like Figure 7 As shown, in this embodiment, step S21: determining the number of effective pixels in each pixel row based on the perimeter of the cross-section at the location of each pixel row on the target object includes the following steps:

[0066] S211: determining the pixel point quantity weight Qx of each pixel row according to the cross-sectional perimeter of the position of each pixel row on the target object and the cross-sectional perimeter of the reference position on the target object;

[0067] The reference position on the target object can be selected according to actual conditions, for example, the end of the target object can be selected as the position where the cross-sectional perimeter is easy to measure, of course, the middle of the target object can also be selected, and some positions where the cross-sectional perimeter is obtained by indirect measurement can also be selected. The position of the pixel row with known or easily calculated pixel point quantity can also be selected, and then the cross-sectional perimeter of the position is measured or calculated. The pixel point quantity weight Qx is a ratio, and the pixel point quantity weight Qx of a certain pixel row represents the ratio relationship between the number of pixel points of this row finally printed on the target object and the number of pixel points of other pixel rows. If the pixel point quantity weight Qx of this pixel row is larger, it means that the number of pixel points of this pixel row is more than that of other pixel rows, and vice versa. For example, the pixel point quantity weight Qx of the 7th pixel row is 0.7, which means that the number of pixel points of the 7th pixel row accounts for 70% of the reference pixel point quantity, and the pixel point quantity weight Qx of the 8th pixel row is 0.4, which means that the number of pixel points of the 8th pixel row accounts for 40% of the reference pixel point quantity.

[0068] As shown in Figure 8 In this embodiment, the S211: determining the pixel point quantity weight Qx of each pixel row according to the cross-sectional perimeter of the position of each pixel row on the target object and the cross-sectional perimeter of the reference position on the target object comprises the following steps:

[0069] S2111: obtaining the cross-sectional perimeter Lx of the position of each pixel row on the target object;

[0070] S2112: obtaining the cross-sectional perimeter Lc of the reference position on the target object;

[0071] S2113: calculating the pixel point quantity weight Qx of each pixel row according to the cross-sectional perimeter Lx of the position of each pixel row on the target object and the cross-sectional perimeter Lc of the reference position on the target object, wherein Qx=Lx / Lc.

[0072] The foregoing step is a method for calculating the pixel number weight according to the cross-sectional perimeter, i.e., taking the ratio of the cross-sectional perimeter of each pixel row at the position on the target object to the cross-sectional perimeter Lc of the reference position on the target object as the pixel number weight of each pixel row. The foregoing calculation method makes the pixel number weight of the pixel row corresponding to the position of the cross-sectional perimeter large, and the pixel number weight of the pixel row corresponding to the position of the short cross-sectional perimeter small. After the pixel number weight obtained in the foregoing manner adjusts the pixel number of each pixel row, the pixel number of each pixel row can be adapted to the cross-sectional perimeter corresponding to the pixel row, and the density of the pixel at each position of the entire image is more uniform, thereby ensuring that the final printed image does not appear.

[0073] S212: Obtain the pixel number Nc of the pixel row corresponding to the reference position on the target object;

[0074] In this step, the pixel number of the pixel row corresponding to the reference position determined in the original printing data can be directly taken as the final pixel number of the pixel row corresponding to the reference position, and the pixel number of other pixel rows is adjusted based on the foregoing pixel number. In this step, the pixel number of the pixel row corresponding to the reference position can also be set to the required pixel number according to the actual situation, and then the pixel number of other pixel rows is adjusted based on the set pixel number.

[0075] S213: Calculate the effective pixel number Nx of each pixel row according to the pixel number weight Qx of each pixel row and the pixel number Nc of the pixel row corresponding to the reference position, wherein Nx=Nc×Qx.

[0076] In this step, after knowing the pixel number weight of each pixel row, the effective pixel number of each pixel row can be obtained by directly multiplying the pixel number weight by the pixel number of the pixel row corresponding to the reference position.

[0077] In this embodiment, the pixel number weight Qx is adopted, no matter how the pixel number set for reference changes, the pixel number corresponding to the pixel row can be quickly calculated, and the density distribution of the pixel at each position of the entire image is uniform, thereby realizing the flexible adjustment of the pixel number.

[0078] S3: Modify the original printing data according to the adjusted image;

[0079] As a preferred manner, in the present embodiment, the variance of the ink amount per unit area of each region in the adjusted image is less than or equal to a preset value. The present embodiment uses the variance of the ink amount per unit area of each region in the image to represent the ink amount per unit area of each region in the image. Through the aforementioned adjustment of the image, the present embodiment controls the degree of change of the ink amount per unit area of each region in the image within an allowable range by controlling the variance of the ink amount per unit area of each region in the image, so that the printed image does not have obvious color difference. The preset value can be set according to the requirements of the printing effect, and in actual implementation, experiments can be performed first, and printing can be performed according to different preset values, so that the printing effect of different preset values is selected for formal printing.

[0080] As shown in Figure 6 the S3: modifying the original printing data according to the adjusted image comprises the following steps:

[0081] S31: obtaining the printing data corresponding to the other pixel points in each pixel row except the effective pixel points;

[0082] S32: performing no-ink processing on the printing data corresponding to the other pixel points in the original printing data to obtain modified printing data.

[0083] Each pixel point in the image has corresponding printing data. After the effective pixel points are selected from the original pixel points in each pixel row, the remaining unselected pixel points will not be finally printed on the target object. Therefore, the printing data corresponding to these unselected pixel points needs to be found out, and the printing data is processed so that the printing device can be controlled not to ink when printing the processed printing data, that is, the printing data is processed by no-ink processing. The method of processing the printing data by no-ink processing can be to set the value of the data to 0, so that the printing device performs no-ink operation when executing the printing of the printing data.

[0084] S4: printing on the target object according to the modified printing data.

[0085] After the printing data is modified according to the foregoing steps, when printing according to the modified printing data, the printing device only prints the effective pixel points in each pixel row, so that the pixel density of the printed image is uniform and there is no color difference.

[0086] In actual printing, printing on a circular table is a common application scenario. Since the circumferences of the cross sections at different positions of the circular table are different, color difference is prone to occur. Therefore, the present embodiment also provides a method for eliminating printing color difference for a circular table.

[0087] As shown in Figure 9As shown, the target object is a circular truncated cone, the circular truncated cone includes oppositely arranged first and second end portions, and the S2: adjusting the pixel point quantity and pixel point distribution of each pixel row of the image according to the cross-sectional circumference of the position of each pixel row on the target object, comprises the following steps:

[0088] S201: obtaining the cross-sectional circumference L1 of the first end portion position of the circular truncated cone;

[0089] S202: obtaining the cross-sectional circumference L2 of the second end portion position of the circular truncated cone;

[0090] S203: obtaining the pixel point quantity Nc of the pixel row corresponding to the first end portion position of the circular truncated cone and the total row number H of the pixel row;

[0091] S204: calculating the effective pixel point quantity of each pixel row according to L1, L2 and Nc, wherein the effective pixel point quantity Ni of the pixel row at the i-th position from the first end portion position of the circular truncated cone is (1-i / H+(L2×i) / (L1×H))×Nc;

[0092] Suppose that the image printed on the circular truncated cone has n rows of pixel points, i is a positive integer greater than or equal to 0 and less than or equal to n-1. When i is 0, Ni represents the effective pixel point quantity of the first end portion position of the circular truncated cone.

[0093] This step ingeniously utilizes the feature that the cross-sectional circumference of the circular truncated cone changes proportionally with the axial position of the circular truncated cone, directly calculates the effective pixel point quantity of each pixel row by using the row number of the pixel row from the pixel row of one segment of the circular truncated cone, under the condition that the interval distance between adjacent two rows of pixels is unchanged, so that the calculation process is simpler and is convenient for computer rapid processing.

[0094] For example, the target object is a cup with a circular truncated cone shape, wherein the circumference of the cup mouth is C1=20cm, the circumference of the cup bottom is C2=15cm, the distance from the cup mouth to the cup bottom is D=25cm, the printing accuracy in the direction from the cup mouth to the cup bottom is 900DPI, and the printing accuracy at the cup mouth is 600DPI, so that the pixel size of the actual image to be printed is 4724×8858; and the effective pixel point quantity of the pixel row at the i-th position from the cup mouth is (1-i / 8858+(15×i) / (20×8858)))×4724.

[0095] S205: selecting the effective pixel points of each pixel row from the original pixel points of each pixel row according to the effective pixel point quantity of each pixel row, so that the effective pixel points of each pixel row are uniformly distributed in each pixel row.

[0096] Embodiment 2

[0097] Please refer to Figure 10This embodiment provides a variable perimeter object printing apparatus for printing images on target objects with inconsistent cross-sectional perimeters. The pixels of the printed image are arranged in several rows on the target object. The apparatus includes:

[0098] A data acquisition module, which is used to acquire the original print data of the image;

[0099] A pixel adjustment module is used to adjust the number and distribution of pixels in each pixel row of the image according to the cross-sectional perimeter of each pixel row on the target object.

[0100] An original print data modification module is used to modify the original print data according to the adjusted image.

[0101] A printing module, which is used to print on a target object based on modified printing data.

[0102] The pixel adjustment module also includes;

[0103] The effective pixel count determination submodule is used to determine the effective pixel count of each pixel row based on the perimeter of the cross section at the position of each pixel row on the target object.

[0104] The effective pixel selection submodule is used to select effective pixels from the original pixels in each pixel row based on the number of effective pixels in each pixel row.

[0105] Example 3

[0106] In addition, combined Figure 11 The variable perimeter object printing method described in this embodiment of the invention can be implemented by a variable perimeter object printing device. Figure 11 A schematic diagram of the hardware structure of the variable perimeter object printing device provided in an embodiment of the present invention is shown.

[0107] The variable perimeter object printing device may include a processor 401 and a memory 402 storing computer program instructions.

[0108] Specifically, the processor 401 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 the embodiments of the present invention.

[0109] The memory 402 can include mass storage for data or instructions. By way of example, and not limitation, the memory 402 can include a hard disk drive (HDD), floppy disk drive, flash memory, compact disk (CD) or digital versatile disk (DVD), RAM, ROM, erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or a combination of two or more of these. Where appropriate, the memory 402 can include removable or non-removable (or fixed) media. Where appropriate, the memory 402 can include volatile, nonvolatile, or a combination of volatile and non-volatile memory. In particular embodiments, the memory 402 is non-volatile solid state memory. In particular embodiments, the memory 402 includes a read-only memory (ROM). Where appropriate, this ROM can be mask programmed ROM, programmable ROM (PROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), electrically alterable ROM (EAROM), or flash memory or a combination of two or more of these.

[0110] The processor 401 implements the data addressing method of any of the above-described embodiments by reading and executing computer program instructions stored in the memory 402.

[0111] In one example, the variable perimeter object printing device can also include a communication interface 403 and a bus 410. As shown, the processor 401, the memory 402, the communication interface 403 are connected by the bus 410 and complete the communication between each other. Figure 6

[0112] The communication interface 403 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the application.

[0113] The bus 410 includes hardware, software, or both, that couples components for fractional ink output to each other. By way of example, and not limitation, the bus can include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front-side bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (ISA) bus, an infiniband (IB) interconnect, a low pin count (LPC) bus, a memory bus, a Micro Channel 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 board (VLB) bus, or another suitable bus or interconnect, or a combination of two or more of these. Where appropriate, the bus 410 can include one or more buses. Although the example embodiments described and illustrated herein include a particular bus, the application contemplates any suitable bus or interconnect.

[0114] Embodiment 4​

[0115] In addition, in combination with the variable perimeter object printing method in the above embodiments, the embodiments of the present application can provide a computer readable storage medium for implementation. The computer readable storage medium has computer program instructions stored thereon; the computer program instructions are executed by a processor to implement any of the variable perimeter object printing methods in the above embodiments.

[0116] The above is a detailed introduction to the variable perimeter object printing method, device, equipment and storage medium provided by the embodiments of the present application.

[0117] It should be noted that the present application is not limited to the specific configurations and processes described above and shown in the drawings. For the sake of brevity, detailed descriptions of well-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 application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after understanding the spirit of the present application.

[0118] The functional blocks shown in the structural block diagram described above 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, etc. When implemented in software, the elements of the present application are program or code segments used to perform the required tasks. The program or code segments can be stored in a machine readable medium or transmitted on a transmission medium or communication link through a data signal carried in a carrier wave. The "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, optical fiber media, radio frequency (RF) links, etc. The code segments can be downloaded via a computer network such as the Internet, an intranet, etc.

[0119] It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, or in an order different from the embodiments, or several steps can be executed simultaneously.

[0120] The above merely describes specific implementation of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, module and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described herein again. It should be understood that the protection scope of the present application is not limited to this, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered within the protection scope of the present application.

Claims

1. A method for printing objects with variable perimeters, characterized in that, For printing images on target objects with inconsistent cross-sectional perimeters, the pixels of the printed image are arranged in several rows on the target object. The printing method includes the following steps: S1: Obtain the original print data of the image; S2: Adjust the number and distribution of pixels in each pixel row of the image according to the cross-sectional perimeter of each pixel row on the target object, reduce the number of pixels in the pixel row with smaller cross-sectional perimeter, select effective pixels from the original pixels in each pixel row, and make the effective pixels of the selected pixel row evenly distributed in each pixel row. S3: Modify the original print data according to the adjusted image; S4: Print on the target object based on the modified print data.

2. The variable perimeter object printing method according to claim 1, characterized in that, S2: Adjusting the number and distribution of pixels in each pixel row of the image according to the cross-sectional perimeter of each pixel row on the target object, including the following steps; S21: Determine the number of effective pixels in each pixel row based on the perimeter of the cross section at the position of each pixel row on the target object; S22: Select valid pixels from the original pixels in each pixel row based on the number of valid pixels in each pixel row.

3. The method for printing a variable perimeter object according to claim 2, characterized in that, S3: Modifying the original print data based on the adjusted image includes the following steps: S31: Obtain the print data corresponding to the pixels other than the valid pixels in each pixel row; S32: After performing ink removal processing on the print data corresponding to other pixels in the original print data, the modified print data is obtained.

4. The method for printing a variable perimeter object according to claim 2, characterized in that, S21: Determining the number of effective pixels in each pixel row based on the perimeter of the cross section at the location of each pixel row on the target object includes the following steps: S211: Determine the pixel count weight Qx of each pixel row based on the perimeter of the cross section at the position of each pixel row on the target object and the perimeter of the cross section at the reference position on the target object; S212: Obtain the number of pixels Nc in the pixel row corresponding to the reference position on the target object; S213: Calculate the effective pixel count Nx of each pixel row based on the pixel count weight Qx of each pixel row and the pixel count Nc of the pixel row corresponding to the reference position, where Nx = Nc × Qx.

5. The method for printing a variable perimeter object according to claim 4, characterized in that: S211: Determine the pixel count weight Qx of each pixel row based on the perimeter of the cross section at the position of each pixel row on the target object and the perimeter of the cross section at the reference position on the target object, including the following steps: S2111: Obtain the perimeter Lx of the cross section at the position of each pixel row on the target object; S2112: Obtain the perimeter Lc of the cross section at the reference position on the target object; S2113: Calculate the pixel count weight Qx of each row of pixels based on the perimeter Lx of the cross section at the position of each pixel row on the target object and the perimeter Lc of the cross section at the reference position on the target object, where Qx = Lx / Lc.

6. The method for printing a variable perimeter object according to claim 2, characterized in that, In step S22: Select effective pixels from the original pixels of each pixel row according to the number of effective pixels in each pixel row after adjustment, so that the selected effective pixels of each pixel row are evenly distributed in each pixel row.

7. The method for printing a variable perimeter object according to claim 1, characterized in that, The target object is a frustum, which includes a first end and a second end that are arranged opposite to each other. S2: Adjusting the number of pixels and the distribution of pixels in each pixel row of the image according to the cross-sectional perimeter of each pixel row on the target object includes the following steps; S201: Obtain the perimeter L1 of the cross section at the first end of the frustum; S202: Obtain the perimeter L2 of the cross section at the second end of the frustum; S203: Obtain the number of pixels Nc and the total number of rows H of the pixel row corresponding to the position of the first end of the frustum; S204: Calculate the number of effective pixels in each pixel row based on L1, L2, and Nc. The number of effective pixels in the pixel row that is i rows away from the first end of the frustum is Ni = (1-i / H+(L2×i) / (L1×H))×Nc, where i is an integer. S205: Select effective pixels from the original pixels of each pixel row according to the number of effective pixels in each pixel row, so that the effective pixels of each pixel row are evenly distributed in each pixel row.

8. A variable perimeter object printing device, characterized in that, Used for printing images on target objects with inconsistent cross-sectional perimeters, where the pixels of the printed image are arranged in several rows on the target object, including: A data acquisition module, which is used to acquire the original print data of the image; The pixel adjustment module is used to adjust the number and distribution of pixels in each pixel row of the image according to the cross-sectional perimeter of each pixel row on the target object. The number of pixels in the pixel row with a smaller cross-sectional perimeter is reduced, and effective pixels are selected from the original pixels in each pixel row so that the effective pixels of the selected pixel row are evenly distributed in each pixel row. An original print data modification module is used to modify the original print data according to the adjusted image. A printing module, which is used to print on a target object based on modified printing data.

9. A variable perimeter object printing device, characterized in that, include: 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 as described in any one of claims 1-7.

10. A storage medium storing computer program instructions thereon, characterized in that, The method as described in any one of claims 1-7 is implemented when the computer program instructions are executed by the processor.

Citation Information

Patent Citations

  • Print control apparatus, print data generating apparatus and print system

    CN101462413A

  • Three-dimensional model reconstruction method and device, electronic equipment and storage medium

    CN112233080A