Curing power control method, device and equipment for printing of special-shaped rotating body and medium
By obtaining the vertical distance between the printing medium and the nozzle of the special-shaped rotating body, establishing a surface curve model, and dynamically adjusting the curing power, the problem of inconsistent curing effect on the surface of the special-shaped rotating body is solved, and the printing quality and stability are improved.
Patent Information
- Application Number
- CN202410310253.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-19
- Publication Date
- 2025-09-19
AI Technical Summary
In the prior art, when inkjet printing is performed on the surface of a special-shaped rotating body, the curing effect is inconsistent, resulting in uneven varnish leveling and some ink points not drying out after irradiation.
The vertical distance between the printing medium and the nozzle is obtained by pre-setting the interval, and the surface curve model is established. The curing power is adjusted according to the distance value to achieve dynamic curing control of each line of printing data.
The consistency of curing effect and quality optimization of the surface of special-shaped rotating bodies are achieved, the problems of uneven leveling of varnish and non-drying during irradiation are avoided, and the printing quality and stability are improved.
Smart Images

Figure CN120663665A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of inkjet printing, and in particular to a curing power control method, device, equipment and medium for printing a special-shaped rotating body. Background Art
[0002] Inkjet printing involves ejecting ink droplets onto print media, such as paper, bricks, or wood, through nozzles on a printhead to create an image or text. Reciprocating scanning printing, also known as multi-pass scanning, is a common technique in inkjet printing. Multi-pass scanning involves multiple interpolations of each unit of the printed image. Each unit is composed of multiple pixels. For example, in a two-pass scan, each unit consists of two pixels, while in a three-pass scan, each unit consists of three pixels.
[0003] The printing media printed on the surface of a rotating body are mostly curved surface printing, such as bottles, cans, non-columnar crafts, or printing media attached to a rotating mechanism, such as flexible and rollable printing media, such as cloth and paper. When printing on this type of printing media, the printing medium will rotate around a certain axis, and the nozzle will perform inkjet printing during the rotation process, so that the required pattern (including image and / or text) is formed on the printing medium.
[0004] like Figure 1 As shown, the printing substrate is a cylinder, which rotates about its axis. The print head moves horizontally from one end of the cylinder to the other. Simultaneously, the UV lamp located below the cylinder controls the lamp bead according to the nozzle's spraying position, drying the ink. Because each UV lamp bead is roughly the same distance from the cylinder's surface, the UV lamp bead's irradiation power (intensity) is set to the same, ensuring consistent irradiation intensity at every ink point on the cylinder.
[0005] Based on the UV lamp irradiation scheme of the cylinder, when processing special-shaped rotating bodies, such as Figure 2 As shown in the figure, due to the inconsistent distance between the UV lamp beads and the actual ink points, the irradiation intensity at different positions is inconsistent, resulting in inconsistent effects at different positions, such as different varnish leveling treatment, and even ink points that are far away may not dry after irradiation. Summary of the Invention
[0006] In view of this, the embodiments of the present invention provide a curing power control method, device, equipment and storage medium for printing of special-shaped rotating bodies, so as to solve the technical problem of inconsistent curing effect when curing the surface of special-shaped rotating bodies in the prior art.
[0007] In a first aspect, an embodiment of the present invention provides a curing power control method for printing a special-shaped rotating object, characterized in that the method is applied to a printer including a nozzle, and the method includes:
[0008] Obtaining the vertical distance between the surface of the printing medium and the nozzle at every preset interval, wherein the printing medium is a non-cylindrical rotating printing medium;
[0009] Modeling is performed according to the vertical distance to obtain a surface curve of the printing medium;
[0010] According to the surface curve, obtaining a distance value corresponding to each line of print data in the print file;
[0011] When performing inkjet printing, the corresponding curing power is set according to the distance value of each line of printing data to cure the printed image corresponding to each line of printing data.
[0012] As an optional embodiment of the present application, the print head is disposed on a printing carriage, and the printing carriage is further provided with a distance measuring device, the bottom surface of the distance measuring device being flush with the bottom surface of the print head, and the step of obtaining the vertical distance between the surface of the printing medium and the print head at each preset interval includes:
[0013] Controlling the printing carriage to move;
[0014] During the movement of the printing carriage, the distance measuring device is controlled to obtain the vertical distance between the printing medium and the nozzle at every preset interval.
[0015] As an optional embodiment of the present application, the step of modeling according to the vertical distance to obtain the surface curve of the printing medium includes:
[0016] Obtaining vertical distance data according to the vertical distance and the preset spacing, wherein the vertical distance includes a plurality of point data, and the point data includes a horizontal distance and a corresponding vertical distance;
[0017] Performing curve fitting based on a preset curve fitting algorithm and the vertical distance data to obtain a surface curve of the printing medium;
[0018] The preset curve fitting algorithm includes a least squares fitting algorithm, a polynomial fitting algorithm and a cubic spline interpolation algorithm.
[0019] As an optional embodiment of the present application, the preset curve fitting algorithm is a cubic spline interpolation algorithm.
[0020] As an optional embodiment of the present application, the step of obtaining the distance value corresponding to each line of print data in the print file according to the surface curve includes:
[0021] Parameterizing the surface curve to obtain a curve function, wherein a two-dimensional coordinate system of the curve function has an X-axis and a vertical direction as an X-axis, respectively.
[0022] Read the print data in the print file line by line and obtain the pixel position of each line of print data;
[0023] Converting the pixel position into an X-axis coordinate value in the two-dimensional coordinate system;
[0024] According to the X-axis coordinate value and the curve function, a distance value corresponding to each line of print data is obtained.
[0025] As an optional embodiment of the present application, the printer further includes a curing device, the curing device including a plurality of curing units arranged along the moving direction of the nozzle, the curing units being independently controllable, and the step of setting a corresponding curing power according to a distance value of each line of print data during inkjet printing to cure the printed image corresponding to each line of print data, including:
[0026] Printing the print data line by line according to each line of print data in the print file;
[0027] Obtaining curing power according to a distance value corresponding to each line of print data, wherein the distance value is proportional to the curing power;
[0028] When printing the print data, the curing unit corresponding to the X-axis coordinate position of the line of print data is turned on according to the corresponding curing power.
[0029] As an optional embodiment of the present application, the preset interval is 1 mm.
[0030] In a second aspect, an embodiment of the present invention provides a curing power control device for printing a special-shaped rotating body, characterized in that it is applied to a printer, the printer including a nozzle, and the device includes:
[0031] a first distance acquisition module, configured to acquire the vertical distance between the surface of the printing medium and the nozzle at predetermined intervals, wherein the printing medium is a non-cylindrical rotating printing medium;
[0032] a curve acquisition module, performing modeling based on the vertical distance to acquire a surface curve of the printing medium;
[0033] a second distance acquisition module, configured to acquire a distance value corresponding to each line of print data in the print file according to the surface curve;
[0034] The curing power setting module is used to set the corresponding curing power according to the distance value of each line of printing data during inkjet printing, so as to cure the printed image corresponding to each line of printing data.
[0035] In a third aspect, an embodiment of the present invention provides an electronic device comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of the first aspect of the above-mentioned embodiment.
[0036] In a fourth aspect, an embodiment of the present invention provides a storage medium having computer program instructions stored thereon, which implements the method of the first aspect of the above-mentioned embodiment when the computer program instructions are executed by a processor.
[0037] In summary, the beneficial effects of the present invention are as follows:
[0038] The curing power control method, device, equipment and medium for printing a special-shaped rotating body provided by the embodiment of the present invention obtains the vertical distance between the surface of the printing medium and the nozzle at each preset interval, wherein the printing medium is a non-cylindrical rotating body printing medium. By obtaining the vertical distance between the printing medium surface and the nozzle, the actual shape information of the printing medium can be obtained, providing a data basis for subsequent surface curve modeling; modeling is performed based on the vertical distance to obtain the surface curve of the printing medium. By modeling the surface curve of the printing medium, the actual shape of the special-shaped rotating body can be approximately described, so that in the subsequent curing power control, according to the distance at different positions, The curing power is adjusted according to the value to achieve optimization and consistency control of the printing effect; according to the surface curve, the distance value corresponding to each line of print data in the print file is obtained. By obtaining the distance value corresponding to each line of print data in the print file, the pixel position in the image is associated with the distance of the actual printing medium, providing position information for subsequent curing power control; when performing inkjet printing, the corresponding curing power is set according to the distance value of each line of print data to cure the printed image corresponding to each line of print data. By dynamically adjusting the curing power according to the vertical distance value corresponding to each line of print data, the curing effect at different positions of the special-shaped rotating body can be optimized. According to the surface curve model, different curing powers are set at the distance values at different positions, thereby ensuring the consistency and curing quality of the printed image on the surface of the special-shaped rotating body. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work, and these are all within the scope of protection of the present invention.
[0040] Figure 1 Schematic diagram of the printing and curing process of a cylindrical printing medium according to an embodiment of the present invention.
[0041] Figure 2 Schematic diagram of the printing and curing process of the special-shaped rotating body printing medium according to an embodiment of the present invention.
[0042] Figure 3 1 is a flow chart of a curing power control method for printing a special-shaped rotating object according to an embodiment of the present invention.
[0043] Figure 4 It is a structural schematic diagram of a curing power control device for printing a special-shaped rotating object according to an embodiment of the present invention.
[0044] Figure 5 It is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the objects, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. 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 the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present invention by illustrating examples of the present invention.
[0046] It should be noted that, in this document, relational terms such as first and second, etc., are used only 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 terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.
[0047] See Figure 3 An embodiment of the present invention provides a curing power control method for printing a special-shaped rotating object, characterized in that it is applied to a printer including a nozzle, and the method includes:
[0048] S1. Obtaining the vertical distance between the surface of the printing medium and the nozzle at every preset interval, wherein the printing medium is a non-cylindrical rotating printing medium;
[0049] Specifically, non-cylindrical rotating media may have complex geometric shapes, such as irregularly shaped surfaces and curves. Unlike traditional cylindrical printing media, the surface curvature of these non-cylindrical rotating media may vary at different locations. In order to achieve high-quality printing during the printing process, it is necessary to understand the geometric shape of the media surface in real time.
[0050] Obtaining interval vertical distance information helps adapt to the printing of irregular shaped rotating bodies. Because irregular shaped rotating bodies may have irregular shapes, measuring only at a single point or a single slice is not sufficient. Obtaining multiple vertical distance data points at intervals can provide a more comprehensive understanding of the overall shape of the printing medium surface, which is beneficial for subsequent curve modeling and optimized control of curing power.
[0051] The size of the preset spacing should be determined based on the complexity of the print media. For flatter media, the spacing can be slightly larger; for media with complex shapes, the spacing should be reduced to capture more surface information. A smaller preset spacing results in more measurement points, which increases printing time. Therefore, the spacing size needs to be balanced with the required print speed. If the print speed requirement is high, the spacing can be increased to reduce the number of measurement points.
[0052] In a specific embodiment, as an optional embodiment of the present application, the preset interval is 1 mm.
[0053] As an optional embodiment of the present application, the print head is disposed on a printing carriage, and the printing carriage is further provided with a distance measuring device, the bottom surface of the distance measuring device being flush with the bottom surface of the print head, and the step of obtaining the vertical distance between the surface of the printing medium and the print head at each preset interval includes:
[0054] S11, controlling the printing carriage to move;
[0055] Specifically, in an embodiment, the printer includes a printhead, which is mounted on a print carriage. The print carriage is also equipped with a distance measuring device for measuring the vertical distance between the print medium and the printhead. The bottom surface of the distance measuring device is flush with the bottom surface of the printhead, meaning that the distance measuring device can measure distance while remaining parallel to the surface of the print medium. First, the print carriage is controlled to move. The print carriage, equipped with the printhead and the distance measuring device, moves horizontally along the print medium from one end to the other. This allows the distance measuring device to measure vertical distances at different locations to obtain surface shape information.
[0056] S12. During the movement of the printing carriage, control the distance measuring device to obtain the vertical distance between the printing medium and the nozzle at every preset interval.
[0057] The distance measurement device measures the vertical distance at preset intervals during the movement of the print carriage. This allows the vertical distance data between the print medium and the print head to be obtained at different locations. This distance data is used for subsequent modeling, namely, to create a surface curve model of the print medium based on the vertical distance.
[0058] By acquiring real-time vertical distance data between the print medium and the printhead, the print medium's surface shape can be measured in real time. The distance measurement data allows for surface curve modeling. Based on this curve model, the curing power is dynamically adjusted to achieve the desired curing result for each line of print data. This ensures optimized and consistent curing results on irregularly shaped rotating print media, improving print quality and stability. Furthermore, because the bottom surface of the distance measurement device is flush with the bottom surface of the printhead, the measured vertical distance accurately reflects the actual distance between the print medium surface and the printhead, enhancing the accuracy and reliability of the measurement data.
[0059] S2. Modeling is performed based on the vertical distance to obtain a surface curve of the printing medium;
[0060] During the printing process, a distance measurement device acquires vertical distance data between the print medium and the printhead at preset intervals. To address potential noise or instability, the acquired data may need to be smoothed or filtered to obtain more accurate and stable vertical distance data. This data is then used as input for curve fitting, which can be used to find a curve that best describes the shape of the entire print medium surface. Curve fitting techniques can employ polynomial fitting, spline interpolation, or other mathematical models to produce one or more smooth curves that accurately fit the vertical distance data points. By completing curve fitting, a curve model of the print medium surface is now obtained. These curves describe the height or vertical distance at different locations on the print medium surface.
[0061] As an optional embodiment of the present application, the step of modeling according to the vertical distance to obtain the surface curve of the printing medium includes:
[0062] S21. Obtain vertical distance data according to the vertical distance and the preset spacing, wherein the vertical distance includes a plurality of point data, and the point data includes a horizontal distance and a corresponding vertical distance;
[0063] Specifically, during the printing process, the distance measurement device acquires vertical distance data between the print medium and the nozzle at preset intervals. This data includes multiple points, each of which includes a horizontal distance and a corresponding vertical distance. For example, a set of data can be obtained: (x1, y1), (x2, y2), ..., (xi, yi), where xi is the horizontal distance, yi is the corresponding vertical distance, and i is a positive integer.
[0064] S22, performing curve fitting according to a preset curve fitting algorithm and the vertical distance data to obtain a surface curve of the printing medium;
[0065] The preset curve fitting algorithm includes a least squares fitting algorithm, a polynomial fitting algorithm and a cubic spline interpolation algorithm.
[0066] Using the selected preset curve fitting algorithm, a curve fitting is performed on the vertical distance data to obtain a surface curve model of the printing medium. Different algorithms have different data fitting effects and curve shapes. For example, the least squares fitting algorithm can be used for straight line or polynomial fitting, while the cubic spline interpolation algorithm can approximate complex curves. Through appropriate curve fitting, an approximate curve model of the printing medium surface is obtained, thereby achieving modeling of the printing medium shape.
[0067] As an optional embodiment of the present application, the preset curve fitting algorithm is a cubic spline interpolation algorithm. The curve generated by the cubic spline interpolation algorithm is smooth and has no sharp inflection points. This is because it uses a cubic polynomial between each data point to approximate the actual curve shape, ensuring that the first-order and second-order derivatives of the curve are continuous at the data points, thereby making the curve change smoother and avoiding the oscillation problem that may occur in other interpolation algorithms. The cubic spline interpolation algorithm uses a cubic polynomial, which has lower computational complexity and faster computational speed than other high-order interpolation polynomials. At the same time, cubic spline interpolation can usually provide sufficient fitting accuracy in most cases, and there is no need to use higher-order polynomials;
[0068] In this embodiment, the step of performing curve fitting based on a preset curve fitting algorithm and the vertical distance data to obtain the surface curve of the printing medium includes:
[0069] S221. Obtain vertical distance data between the printing medium and the nozzle. This data is usually in the form of a series of points, and each point contains a horizontal position and a corresponding vertical distance value.
[0070] S222, setting boundary conditions of a cubic spline interpolation algorithm according to the positions of the two ends of the printing medium;
[0071] The natural boundary condition requires that the second derivative of the interpolation curve at the endpoints is zero. This means that the curve is straight at the endpoints, without any bends. For the surface curve of the printed medium, the natural boundary condition applies to both ends of the medium (for example, the two end points of the printed medium);
[0072] S223, performing curve calculation according to the vertical distance data and the boundary conditions to obtain a surface curve of the printing medium;
[0073] Calculate the spacing between each data point to obtain the step size of the data point, construct a tridiagonal matrix to calculate the coefficients of the interpolation curve, use the boundary conditions and the vertical distance values of the data points to solve the tridiagonal matrix to obtain the coefficients of the interpolation curve, and calculate the interpolation points of the curve between each data point based on the coefficients of the interpolation curve;
[0074] S3. Obtaining a distance value corresponding to each line of print data in the print file according to the surface curve;
[0075] In a print file, each line corresponds to a row of pixels or dots on the print medium. Based on the positional information in this print data, the horizontal coordinates (X coordinates) of the pixel locations or dots are converted to corresponding distance values. This step involves mapping the pixel locations in the image to the actual print medium based on the printer's coordinate system and the print medium's dimensions, thereby obtaining the vertical distance values corresponding to each line of print data.
[0076] As an optional embodiment of the present application, the step of obtaining the distance value corresponding to each line of print data in the print file according to the surface curve includes:
[0077] S31, parameterizing the surface curve to obtain a curve function, wherein the two-dimensional coordinate system of the curve function has the moving direction of the nozzle as the X-axis and the vertical direction as the Y-axis;
[0078] First, the surface curve of the printing medium obtained previously is parameterized. Parameterization is the process of expressing a curve as a function of a parameter, typically by expressing the points on the curve as functions of the parameter t: C(t) = (x(t), y(t)), where x(t) and y(t) represent the horizontal and vertical coordinates of the points on the curve, respectively, and the value range of t is usually an interval. After parameterization, the functional form of the surface curve is obtained, which can be used to obtain the corresponding Y coordinate value based on the X coordinate value of different positions, that is, to obtain the distance value corresponding to each X coordinate;
[0079] S32, reading the print data in the print file line by line, and obtaining the pixel position of each line of print data;
[0080] Each line of print data in the print file will be read line by line. The print data contains the image information to be printed, and the pixel position of each line represents the pixel position of the line image in the direction of nozzle movement;
[0081] S33, converting the pixel position into an X-axis coordinate value in the two-dimensional coordinate system;
[0082] Since the curve function is parameterized in a two-dimensional coordinate system, the pixel position in the print file needs to be converted into the X-axis coordinate value in the corresponding two-dimensional coordinate system. This conversion can be determined based on the pixel position in the print file and the moving direction of the print carriage;
[0083] S34. Obtain a distance value corresponding to each line of print data according to the X-axis coordinate value and the curve function.
[0084] By substituting the converted X-axis coordinate value into the surface curve function obtained previously, the Y-axis coordinate value corresponding to each line of print data, i.e., the distance value, can be obtained. In this way, the vertical distance information corresponding to each line of print data in the print file on the print medium surface is obtained;
[0085] By parameterizing the surface curve, converting pixel positions into X-axis coordinates in a two-dimensional coordinate system, and deriving the distance value corresponding to each line of print data based on the curve function, we can obtain the curing distance information for each line of print data on the irregular rotating body printing medium. This distance information is used for subsequent curing power control to achieve high-quality curing of the printed image on the irregular rotating body surface.
[0086] S4. When performing inkjet printing, a corresponding curing power is set according to the distance value of each line of printing data to cure the printed image corresponding to each line of printing data.
[0087] Based on the previously acquired distance values of the print medium, a mapping rule can be set to map the distance values to corresponding curing powers. For example, a linear or nonlinear function can be set to adjust the curing power based on the distance value, so that a lower power is used for smaller distance values and a higher power is used for larger distance values. During inkjet printing, the corresponding curing power is calculated and set in real time based on the distance value of each line of print data. The printer system will then map the distance values corresponding to different locations to the corresponding curing power values according to the set curing power setting rule.
[0088] As an optional embodiment of the present application, the printer further includes a curing device, the curing device including a plurality of curing units arranged along the moving direction of the nozzle, the curing units being independently controllable, and the step of setting a corresponding curing power according to a distance value of each line of print data during inkjet printing to cure the printed image corresponding to each line of print data, including:
[0089] S41, printing the print data line by line according to each line of print data in the print file;
[0090] The printer reads the print data line by line in the order in which it is printed and converts this data into actual inkjet operations. The print data contains the image information to be printed and the corresponding position information.
[0091] S42, obtaining a curing power according to a distance value corresponding to each line of print data, wherein the distance value is proportional to the curing power;
[0092] Based on the previous steps, the distance values corresponding to each line of print data are obtained from the print file. These distance values are used to calculate the corresponding curing power. In this step, the printer system calculates the corresponding curing power based on the distance values and the preset curing power setting rules. In this embodiment, the distance value and curing power are directly proportional. This proportional setting ensures that areas both farther and closer to the printhead receive the appropriate curing power. This effectively avoids uneven curing on the print medium surface and ensures consistent curing quality across the entire printed image.
[0093] S43 , when printing the print data, start the curing unit corresponding to the X-axis coordinate position of the line of print data according to the corresponding curing power.
[0094] During inkjet printing, the printhead selects and activates the corresponding curing unit based on the X-axis coordinate position of each line of print data. The curing unit is a light-emitting component, such as a UV lamp, used to cure inkjet ink or curing agent. Based on the previously set curing power rules, the printhead selects the appropriate curing power based on the distance value at different positions and controls the corresponding curing unit to ensure that each line of print data is properly cured on the print medium surface.
[0095] In summary, inkjet printing is performed line by line based on each line of print data in the print file. During printing, the corresponding curing power is calculated based on the distance value corresponding to each line of print data, and the corresponding curing unit is activated accordingly. This method achieves high-quality curing of each line of print data on the special-shaped rotating printing medium, resulting in better printing results. Furthermore, by setting the distance value and curing power proportionally, the curing power can be flexibly adjusted according to actual printing needs to adapt to different printing situations.
[0096] Example 2
[0097] See also Figure 3 An embodiment of the present invention provides a curing power control device for printing a special-shaped rotating body, characterized in that it is applied to a printer, the printer includes a nozzle, and the device includes:
[0098] a first distance acquisition module, configured to acquire the vertical distance between the surface of the printing medium and the nozzle at predetermined intervals, wherein the printing medium is a non-cylindrical rotating printing medium;
[0099] a curve acquisition module, performing modeling based on the vertical distance to acquire a surface curve of the printing medium;
[0100] a second distance acquisition module, configured to acquire a distance value corresponding to each line of print data in the print file according to the surface curve;
[0101] The curing power setting module is used to set the corresponding curing power according to the distance value of each line of printing data during inkjet printing, so as to cure the printed image corresponding to each line of printing data.
[0102] The curing power control device for printing a special-shaped rotating body provided by an embodiment of the present invention obtains a printing image; obtains size information of a printing medium, wherein the printing medium includes a combination of one or more of a conical printing medium, a spherical printing medium, and an ellipsoidal printing medium; obtains a target width of each line of the printing image based on the size information; processes the printing image based on the target width of each line of the printing image so that the width of each line of the processed printing image is the same as the corresponding target width. The printing image can be automatically processed according to the size of the printing medium so that the size of the printing image matches the printing medium, and the printing image can be fully presented without distortion, thereby improving the effect and efficiency of curing power control for printing a special-shaped rotating body.
[0103] Example 3
[0104] In addition, combined Figure 3The curing power control method for printing a special-shaped rotating object according to the embodiment of the present invention can be implemented by an electronic device. Figure 5 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention is shown.
[0105] An electronic device may include a processor and a memory storing computer program instructions.
[0106] Specifically, the processor may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits for implementing the embodiments of the present invention.
[0107] The memory may include a large capacity memory 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. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside 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). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0108] The processor reads and executes computer program instructions stored in the memory to implement any one of the curing power control methods for printing a special-shaped rotating object in the above embodiments.
[0109] In one example, the electronic device may further include a communication interface and a bus. Figure 4 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.
[0110] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.
[0111] Bus comprises hardware, software or both, couples the parts of electronic equipment to each other.For example, and not limitation, bus can comprise accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations.In suitable cases, bus can comprise one or more buses.Although the embodiment of the present invention describes and shows specific bus, the present invention considers any suitable bus or interconnection.
[0112] In addition, in conjunction with the curing power control method for printing a special-shaped rotating object in the above-mentioned embodiments, embodiments of the present invention may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when executed by a processor, the computer program instructions implement any of the curing power control methods for printing a special-shaped rotating object in the above-mentioned embodiments.
[0113] In summary, the curing power control method, device, equipment and storage medium for printing of special-shaped rotating bodies provided by the embodiments of the present invention obtain a printed image; obtain size information of a printing medium, wherein the printing medium includes a combination of one or more of a conical printing medium, a spherical printing medium and an ellipsoidal printing medium; obtain a target width of each line of the printed image based on the size information; process the printed image based on the target width of each line of the printed image so that the width of each line of the processed printed image is the same as the corresponding target width, and can automatically process the printed image according to the size of the printing medium so that the size of the printed image matches the printing medium, and the printed image can be fully presented without distortion, thereby improving the effect and efficiency of curing power control for printing of special-shaped rotating bodies.
[0114] It should be understood that the present invention is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted. In the above embodiments, several specific steps are described and illustrated as examples. However, the method of the present invention is not limited to the specific steps described and illustrated. Those skilled in the art may make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present invention.
[0115] The functional blocks shown in the above-described block diagram 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 unit, a function card or the like. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0116] It should also be noted that the exemplary embodiments described herein describe methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the steps described above. In other words, the steps may be performed in the order described in the embodiments, or in a different order, or several steps may be performed simultaneously.
[0117] The above description is only a specific embodiment of the present invention. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention.
Claims
1. A curing power control method for printing a special-shaped rotating body, characterized in that: Applied to a printer, the printer includes a print head, and the method includes: Obtaining the vertical distance between the surface of the printing medium and the nozzle at every preset interval, wherein the printing medium is a non-cylindrical rotating printing medium; Modeling is performed according to the vertical distance to obtain a surface curve of the printing medium; According to the surface curve, obtaining a distance value corresponding to each line of print data in the print file; When performing inkjet printing, the corresponding curing power is set according to the distance value of each line of printing data to cure the printed image corresponding to each line of printing data.
2. The curing power control method for printing a special-shaped rotating body according to claim 1, characterized in that: The print head is disposed on a printing carriage, and the printing carriage is further provided with a distance measuring device, the bottom surface of the distance measuring device being flush with the bottom surface of the print head, and the step of obtaining the vertical distance between the surface of the printing medium and the print head at each preset interval comprises: Controlling the printing carriage to move; During the movement of the printing carriage, the distance measuring device is controlled to obtain the vertical distance between the printing medium and the nozzle at every preset interval.
3. The curing power control method for printing a special-shaped rotating body according to claim 1, characterized in that: The step of modeling according to the vertical distance to obtain the surface curve of the printing medium includes: Obtaining vertical distance data according to the vertical distance and the preset spacing, wherein the vertical distance includes a plurality of point data, and the point data includes a horizontal distance and a corresponding vertical distance; Performing curve fitting based on a preset curve fitting algorithm and the vertical distance data to obtain a surface curve of the printing medium; The preset curve fitting algorithm includes a least squares fitting algorithm, a polynomial fitting algorithm and a cubic spline interpolation algorithm.
4. The curing power control method for printing a special-shaped rotating body according to claim 3, characterized in that: The preset curve fitting algorithm is a cubic spline interpolation algorithm.
5. The curing power control method for printing a special-shaped rotating body according to claim 1, characterized in that: The step of obtaining the distance value corresponding to each line of print data in the print file according to the surface curve comprises: Parameterizing the surface curve to obtain a curve function, wherein a two-dimensional coordinate system of the curve function has an X-axis and a vertical direction as an X-axis, respectively. Read the print data in the print file line by line and obtain the pixel position of each line of print data; Converting the pixel position into an X-axis coordinate value in the two-dimensional coordinate system; According to the X-axis coordinate value and the curve function, a distance value corresponding to each line of print data is obtained.
6. The curing power control method for printing a special-shaped rotating body according to claim 5, characterized in that: The printer further includes a curing device, the curing device including a plurality of curing units arranged along the moving direction of the nozzle, the curing units being independently controllable, and the step of setting a corresponding curing power according to the distance value of each line of print data during inkjet printing to cure the printed image corresponding to each line of print data, including: Printing the print data line by line according to each line of print data in the print file; Obtaining curing power according to a distance value corresponding to each line of print data, wherein the distance value is proportional to the curing power; When printing the print data, the curing unit corresponding to the X-axis coordinate position of the line of print data is turned on according to the corresponding curing power.
7. The curing power control method for printing a special-shaped rotating body according to any one of claims 1 to 6, characterized in that: The preset interval is 1 mm.
8. A curing power control device for printing a special-shaped rotating body, characterized in that: Applicable to a printer, the printer includes a nozzle, and the device includes: a first distance acquisition module, configured to acquire the vertical distance between the surface of the printing medium and the nozzle at predetermined intervals, wherein the printing medium is a non-cylindrical rotating printing medium; a curve acquisition module, performing modeling based on the vertical distance to acquire a surface curve of the printing medium; a second distance acquisition module, configured to acquire a distance value corresponding to each line of print data in the print file according to the surface curve; The curing power setting module is used to set the corresponding curing power according to the distance value of each line of printing data during inkjet printing, so as to cure the printed image corresponding to each line of printing data.
9. An electronic device, characterized in that: include: At least one processor, at least one memory, and computer program instructions stored in the memory, which implement the method according to any one of claims 1 to 7 when the computer program instructions are executed by the processor.
10. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.