Printing processing method, device and equipment

By performing width measurement and filtering error detection on multiple printing media, and combining the relationship between media width and image width for splitting or combining printing processing, the problem of low printing accuracy caused by skewed placement of the object to be printed is solved, and higher printing accuracy and efficiency are achieved.

CN119550739AActive Publication Date: 2025-03-04BEIJING BOYUAN HENGXIN TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411739193.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-04
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

During the plane or reel printing process, the placement position of the object to be printed causes the position of the printed image to be skewed, resulting in low printing accuracy. Especially in services with high requirements for printing accuracy, the prior art is difficult to effectively solve.

Method used

By measuring the width of multiple printing media, the position information of the printing cart and the image width of the printed image are obtained, the preset filter error detection algorithm is used to determine the effective triggering conditions of the sensor, the coordinates during the width measurement process are recorded, the media width is calculated, and the printing process is split or merged based on the relationship between the media width and the image width.

Benefits of technology

Improve printing accuracy and efficiency, avoid manual errors before width measurement, and enhance the accuracy of printing media position, thereby ensuring the accuracy of subsequent image printing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119550739A_ABST
    Figure CN119550739A_ABST
Patent Text Reader

Abstract

The invention discloses a printing processing method, device and equipment, relates to the technical field of printing, and aims to solve the problems of low printing precision and low printing efficiency when a plurality of printing media are printed in the prior art. The method comprises the following steps: acquiring position information of a printing trolley and image widths of a plurality of printing images; the printing trolley is controlled to move in the moving direction based on the initial position in the position information; a preset filtering error detection algorithm is adopted to determine whether each trigger of a sensor on the printing trolley meets an effective trigger condition, and if each trigger of the sensor meets the effective trigger condition, N coordinates corresponding to N triggers in the width measurement process are recorded; based on the N coordinates, determining the medium width of each printing medium; and after width measurement is finished, the multiple printing images are subjected to split printing processing or combined printing processing. According to the invention, the printing precision and the printing efficiency can be improved when a plurality of printing media are printed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of printing technology, and in particular to a printing processing method, device and equipment. Background Art

[0002] In flat printing or roll printing, it is usually necessary to place the objects to be printed, such as paper, glass and cardboard, close to the edge of the guide belt, so as to locate the area to be printed on the object according to the edge of the guide belt and the printing requirements, and then control the nozzle to print in the area to be printed.

[0003] However, if the placement of the object to be printed is skewed, the printing position of the printed image will be skewed, resulting in low printing accuracy. In actual applications, there may be many factors that cause the placement deviation of the object to be printed, such as accidental contact when placing the object to be printed on the printing platform causing the object to be printed to shift, mechanical jitter accumulation causing the object to be printed to shift, and related personnel walking nearby causing air flow causing the object to be printed to shift. It can be seen that the current positioning method of placing the object to be printed against the edge of the guide tape is difficult to apply to printing businesses that require high printing accuracy. Summary of the invention

[0004] The object of the present invention is to provide a printing processing method, device and equipment for improving the printing accuracy and printing efficiency when printing on multiple printing media.

[0005] In order to achieve the above object, the present invention provides the following technical solutions:

[0006] In a first aspect, the present invention provides a printing processing method, comprising:

[0007] When measuring the width of multiple printing media, obtaining the position information of the printing carriage and the image widths of multiple printed images;

[0008] Based on the initial position in the position information, the printing carriage is controlled to move along a moving direction; the initial position is a starting position for width measurement; the moving direction is parallel to a width direction of the printing medium;

[0009] Using a preset filtering error detection algorithm, determine whether each triggering of the sensor on the printing carriage meets the effective triggering condition. If each triggering of the sensor meets the effective triggering condition, record the N coordinates corresponding to the N triggerings in the width measurement process; wherein N is an even number;

[0010] Based on the N coordinates, determining a medium width of each printing medium;

[0011] After the width measurement is completed, the multiple print images are split and printed or merged and printed based on the size relationship between the medium width and the image width.

[0012] Compared with the prior art, the printing processing method provided by the present invention controls the movement of the carriage based on the initial position control, which can avoid some manual errors before width measurement, such as the printing carriage is not at the starting position of width measurement but on, for example, the printing medium. By determining the starting position of width measurement, the width measurement accuracy can be improved and thus the printing accuracy can be improved. In the width measurement process, a preset filtering error detection algorithm is also used to determine whether each triggering of the sensor meets the effective triggering conditions. Only when all are valid, all coordinates are recorded and the medium width is calculated. In this way, other external interferences affecting the position of the printing medium during the width measurement process can be avoided. Because the image needs to be printed after the position is determined, if the printing medium position moves, it affects the subsequent image printing accuracy and thus affects the overall printing accuracy. Finally, based on the size relationship between the medium width and the image width, the printed image is split for printing or merged for printing, which can improve the printing processing efficiency.

[0013] In a second aspect, the present invention further provides a printing processing device, comprising:

[0014] An acquisition module, used for acquiring position information of a printing carriage and image widths of multiple printed images when measuring the widths of multiple printing media;

[0015] A control module, configured to control the printing carriage to move along a moving direction based on an initial position in the position information; the initial position is a starting position for measuring width; and the moving direction is parallel to a width direction of the printing medium;

[0016] The first determination module is used to use a preset filtering error detection algorithm to determine whether each triggering of the sensor on the printing carriage meets the effective triggering condition, and if each triggering of the sensor meets the effective triggering condition, record N coordinates corresponding to N triggerings in the width measurement process; wherein N is an even number;

[0017] A second determination module, configured to determine a medium width of each printing medium based on the N coordinates;

[0018] The printing processing module is used to perform split printing processing or merge printing processing on the multiple print images based on the size relationship between the medium width and the image width after the width measurement is completed.

[0019] In a third aspect, the present invention also provides an electronic device, comprising: a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate via the communication bus; the memory stores a computer program that can be run by the processor; when the processor runs the computer program, the above-mentioned printing processing method is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0021] Figure 1 A schematic flow chart of a printing processing method provided by an embodiment of the present invention;

[0022] Figure 2 A schematic diagram of the structure of a printing device provided by an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of a state of recording coordinates of a printing device provided by an embodiment of the present invention;

[0024] Figure 4 A schematic diagram for explaining an algorithm of a preset filtering error detection algorithm provided by an embodiment of the present invention;

[0025] Figure 5 A schematic diagram of a flow chart of a width measurement process provided by an embodiment of the present invention;

[0026] Figure 6 A schematic diagram of the states of multiple objects to be printed provided by an embodiment of the present invention;

[0027] Figure 7 A schematic diagram of the structure of a printing processing device provided by an embodiment of the present invention;

[0028] Figure 8 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0030] It should be noted that, in the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0031] In the present invention, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the association relationship of the associated objects, indicating that three types of relationships may exist.

[0032] like Figure 1 As shown, an embodiment of the present invention provides a printing processing method, which may include:

[0033] Step 110: when measuring the width of a plurality of printing media, obtaining the position information of the printing carriage and the image widths of a plurality of printed images;

[0034] First of all, it should be noted that the printing processing method in the embodiment of the present invention includes at least two printing modes, the first printing mode is a plane printing mode, and the second printing mode is a roll printing mode.

[0035] The following takes the first printing mode, i.e., the plane printing mode, as an example to illustrate the technical solution and technical details.

[0036] Secondly, it should be noted that the printing processing method in the embodiment of the present invention is applied to the corresponding printing device. The printing device in the plane printing mode at least includes a printing carriage, a printing platform, a sensor and a grating ruler.

[0037] like Figure 2 As shown, multiple printing media, such as medium 1, medium 2 to medium 5, can be placed on the printing platform. For example, the printing medium can be paper. That is, the printing carriage can print images on multiple printing media. The sensor is set on the printing carriage, and the sensor is set so that the light emitted by the sensor is perpendicular to the printing medium. In this way, when the printing carriage moves, the sensor can move with the printing carriage. The printing platform and the printing medium do not move.

[0038] The grating ruler on the printing device is used to read the coordinates of the position of the printing carriage. The printing device can obtain the position information of the printing carriage through the grating ruler. The grating ruler is parallel to the table of the printing platform. The working principle of the grating ruler can refer to the relevant technology and will not be repeated here.

[0039] During the entire printing process, the printing carriage needs to perform two rounds of movement. The first round of movement corresponds to the width measurement process of the printing medium, and the second round of movement corresponds to the image printing process after the width measurement is completed.

[0040] The working principle of the sensor is: to transmit light signals to the object below the sensor, and receive light signals reflected back from the object below the sensor. The object below can be a printing platform or a printing medium. The light signals reflected back from different objects are different.

[0041] It should be noted that, in the embodiment of the present invention, if the object below is the ground, there will be no reflected light signal.

[0042] It is understandable that after receiving the reflected light signal, the sensor converts the light signal into a corresponding electrical signal, for example, the light signal reflected from the printing platform can be converted into a low level, and the light signal reflected from the printing medium such as paper can be converted into a high level. Moreover, when the sensor moves from the printing platform to the printing medium, the electrical signal can be converted from a low level to a high level, and when the sensor moves from the printing medium to the printing platform, the electrical signal can be converted from a high level to a low level.

[0043] The above content also involves the first trigger (first trigger behavior) and second trigger (second trigger behavior) of the sensor mentioned in the subsequent steps. The first trigger means that the sensor receives the light signal reflected by the printing platform or the printing medium, that is, as long as the sensor collects any electrical signal of high level or low level, it means that the sensor generates the first trigger. The second trigger means that the electrical signal collected by the sensor jumps, that is, when the electrical signal collected by the sensor changes from high level to low level, it indicates that the sensor generates the second trigger, and when the electrical signal collected by the sensor changes from low level to high level, it indicates that the sensor generates the second trigger.

[0044] Optionally, the embodiment of the present invention does not specifically limit the type of sensor, and the width measurement of the object to be printed can be achieved by cooperating with a grating sensor and a color sensor. The grating reader and the color sensor can be installed on the printing carriage, and move with the printing carriage along the direction of the beam parallel to the printer, wherein the color sensor is installed perpendicular to the plane of the printing platform, and the grating reader is installed perpendicular to the plane where the grating ruler is located. The grating ruler and the printing carriage can both be installed on the beam, and the length of the grating ruler should be greater than or equal to the length of the area to be printed, that is, the length of the moving area of ​​the printing carriage. It can be understood that during the movement of the printing carriage, there can be two working states: printing and width measurement, and the two working states need to be executed separately and independently. When the printing carriage is in the printing state, the nozzle loaded on the printing carriage performs inkjet printing according to the printing data received from the host computer; when the printing carriage is in the width measuring state, the color sensor loaded on the printing carriage starts detection. Since the colors of the object to be printed and the printing platform are different, the light signals of the object to be printed and the printing platform detected by the color sensor are different. When the color sensor detects a change in the light signal, a level jump will occur. The grating reader reads the coordinate data on the grating ruler in response to the jump level sent by the color sensor, and takes the coordinate difference between the first coordinate and the second coordinate as the width of the first object to be printed, and takes the coordinate difference between the third coordinate and the fourth coordinate as the width of the second object to be printed. By analogy, the width and position of all the objects to be printed placed on the printing platform can be obtained.

[0045] The premise of step 110 is to measure the width of multiple printing media. The width measurement process involved here is one of the important improvement links of the embodiment of the present invention. The reason why it is necessary to measure the width of multiple printing media is that if the width is not measured, as long as the width of one paper does not meet the set width due to incorrect placement, the entire printing process needs to be repeated, reducing the overall printing efficiency. Secondly, in some special printing scenarios, when the width of the printed image may not meet the set relationship with the width of the paper, it is necessary to adjust the paper that meets the parameter requirements for replacement. The replacement process requires stopping printing, which will affect the printing accuracy and printing efficiency. Based on the above analysis, the width measurement process of multiple printing media in the embodiment of the present invention needs to improve the accuracy.

[0046] It should be noted that, assuming that the printing carriage moves in the x-axis direction, the Y-axis of the printing device must be stationary before measuring the width, because if the Y-axis is in a running state, the test results may be inaccurate.

[0047] Step 120: Control the printing carriage to move along the moving direction based on the initial position in the position information; the initial position is the starting position for width measurement; the moving direction is parallel to the width direction of the printing medium;

[0048] It should be emphasized that the initial position of the printing carriage is the starting position for width measurement, and the starting position for width measurement represents a preset distance between the initial position of the printing carriage and the printing platform.

[0049] It is understandable that the printing carriage must have an initial position during the width measurement process. The reason why the initial position (this initial position is the starting position of the side width) is specifically proposed in the embodiment of the present invention, and the printing device is set to control the movement of the printing carriage based on this initial position, is because the inventor found that before the staff performs the width measurement operation in actual work, due to misoperation, the printing carriage is often placed at a random position, and this position is likely to be placed above the paper. It is understandable that the printing device cannot accurately measure the width of the printing medium without knowing the edge position of the paper, and it is even more impossible to print the print image on the paper without knowing the edge position of the paper. Therefore, the above-mentioned misoperation of the staff leads to the need to readjust the initial position of the printing carriage in actual production, which wastes time and reduces printing efficiency. Since the printing carriage can more accurately measure the width of the paper and print the image more accurately when it is at a certain distance from the printing platform, in an embodiment of the present invention, in order to avoid the above-mentioned misoperation before printing in the prior art, a fixed initial position is directly set, so that this initial position, that is, the starting position for measuring the width, is at a certain preset distance from the printing platform, and the printing carriage starts moving at this starting position for measuring the width. In this way, it can be ensured that the initial position of the printing carriage is absolutely not on the printing medium, thereby achieving a more accurate measurement of the width of the paper.

[0050] Based on the above analysis, in order to ensure that the initial position of the printing carriage is the starting position for width measurement, the following steps need to be performed before step 120:

[0051] When the printing carriage is at the initial position, determining whether the sensor generates a first trigger; wherein the first trigger indicates that the sensor receives a light signal reflected from the printing platform or the printing medium;

[0052] If the sensor does not generate the first trigger, the printing carriage is controlled to move along the moving direction;

[0053] If the sensor generates the first trigger, the printing carriage is controlled to move to the initial position.

[0054] It is understandable that if the sensor does not generate the first trigger, it means that the actual position of the sensor before moving is not above the printing platform, that is, the actual position of the sensor before moving is a preset distance from the printing platform. At this time, the printing carriage can be controlled to move along the moving direction.

[0055] Based on the stop position in the position information, the printing carriage is controlled to stop moving; the stop position is the width measurement end position. That is, when the printing carriage moves to the width measurement end position during the width measurement process, it can stop moving and the width measurement ends.

[0056] If the sensor generates the first trigger, that is, the sensor receives the light signal reflected by the printing platform or the printing medium, it indicates that the actual position of the sensor before moving may be above the printing platform, which may cause the subsequent width measurement to fail. At this time, the printing carriage needs to be moved to the specified initial position. In another case, if the sensor generates the first trigger, but after actual investigation, it is found that the sensor is indeed at the specified initial position, then this trigger may be caused by a machine failure of the printing device, which needs to be eliminated in time.

[0057] Step 130: using a preset filtering error detection algorithm to determine whether each triggering of the sensor on the printing carriage satisfies the valid triggering condition, if each triggering of the sensor satisfies the valid triggering condition, recording N coordinates corresponding to N triggerings in the width measurement process; wherein N is an even number;

[0058] It is understandable that the effective trigger condition is used to verify the effectiveness of the second trigger. Therefore, step 130 specifically includes:

[0059] (1) When the sensor is triggered for the second time, a preset number of electrical signals continuously collected by the sensor are obtained; the electrical signal is a high level or a low level; wherein the second trigger indicates that the electrical signal collected by the sensor jumps;

[0060] (2) Based on a preset number of electrical signals, determine whether the second trigger of the sensor is valid.

[0061] In step (2), there are two situations. The first situation is: if the electrical signal is converted from a low level to a high level, and a preset number of electrical signals are all high levels, then the second trigger of the sensor is determined to be valid; the second situation is: if the electrical signal is converted from a high level to a low level, and a preset number of electrical signals are all low levels, then the second trigger of the sensor is determined to be valid.

[0062] Of course, if each trigger of the sensor meets the effective trigger condition during the width measurement process, the N coordinates corresponding to the N triggers during the width measurement process are recorded, that is, after each trigger is valid, the corresponding coordinate is recorded.

[0063] Combination Figure 3 and Figure 4Step 130 is described exemplarily, assuming that the preset number is 10. When the printing carriage moves from the initial position to the printing platform, the sensor on the printing carriage receives the light signal reflected from the printing platform and converts it into a corresponding electrical signal: low level 0, the electrical signal is always low level during the process of the printing carriage moving on the printing platform; Figure 3 When the printing carriage reaches the left edge of medium 1, the electrical signal changes from low level 0 to high level 1. At this time, starting from the first high level, the sensor will collect electrical signals for 10 consecutive times. If the electrical signals for 10 consecutive times are all high levels, it indicates that the second trigger of the sensor is valid. At this time, the coordinate corresponding to the second trigger is recorded as X1. During the movement of the printing carriage on medium 1, the electrical signal is always at a high level; when the printing carriage enters the printing platform from the right edge of medium 1 again, the electrical signal changes from high level 1 to low level 0. At this time, starting from the first low level, the sensor will collect electrical signals for 10 consecutive times. If the electrical signals for 10 consecutive times are all low levels, it indicates that the second trigger of the sensor is valid. At this time, the coordinate corresponding to the second trigger is recorded as X2. The printing carriage continues to move until it moves to the end position of width measurement. A total of N coordinates corresponding to M printing media are recorded, where N=2M, and M is greater than 1.

[0064] If the printing device is not faulty, or the printing medium is moved in the x-axis direction by external force, it is possible that the electrical signals collected 10 times in a row are not completely the same. In this case, the width measurement is stopped to confirm whether the printing medium is moved or the machine fails. At this point, it can be designed that if a preset number of electrical signals are not completely the same, an alarm signal is issued and the width measurement is stopped.

[0065] In an optional embodiment, in addition to the filtering error detection algorithm described above, another filtering error detection algorithm is provided to improve the accuracy of the width measurement operation in a multi-printing object scene, and the specific implementation method is as follows: It can be understood that in a printing scene with multiple objects to be printed, although the objects to be printed and the printing platform can usually distinguish the boundaries through the color sensor, in some special scenes, if the objects to be printed themselves have a base color similar to the color of the printing platform, or a shadow is cast on the objects to be printed due to the light in the printing scene, it may affect the judgment of the color sensor. In order to further improve the accuracy of width measurement, another filtering error detection algorithm is provided to detect whether the total number of jump level signals is an even number, wherein the jump level signal includes two situations where the adjacent levels are 01 or 10. If the total number of jump level signals is an odd number, the width measurement data read into the memory must have errors, which may be a missed reading or over-reading of the boundary between the object to be printed and the printing platform. At this time, an alarm message is issued and the width measurement is stopped.

[0066] After the width measurement is completed, the next step is to proceed to step 140: based on the N coordinates, determine the medium width of each printing medium;

[0067] Step 140 may specifically include:

[0068] Determine the difference between the first coordinate and the second coordinate of the N coordinates as the medium width of the first printing medium;

[0069] Determine the difference between the third coordinate and the fourth coordinate of the N coordinates as the medium width of the second printing medium;

[0070] The differences between adjacent coordinates in the N coordinates are calculated one by one until the difference between the N-1th coordinate and the Nth coordinate in the N coordinates is obtained, and the medium widths of all printing media are determined.

[0071] Combination Figure 3 It is understood that the width of medium 1 W1 = X2-X1; the width of medium 2 W2 = X4-X3; the width of medium 3 W3 = X6-X5; the width of medium 4 W4 = X8-X7; the width of medium 5 W5 = X10-X9.

[0072] The complete process of width measurement can be combined with Figure 5 To sort out:

[0073] like Figure 5 As shown, step 500: start width measurement;

[0074] Step 501: The carriage moves to the starting position for width measurement; the carriage refers to the printing carriage;

[0075] Step 502: Determine whether the current sensor generates a first trigger; the first trigger refers to the sensor receiving a light signal reflected from the printing platform or the printing medium; if the sensor does not generate the first trigger, proceed to step 503; if the sensor generates the first trigger, proceed to step 507, and then next detect whether the printing device has a machine failure, or check whether the printing carriage is at the specified width measurement start position; if there is a machine failure, troubleshoot the failure; if the printing carriage is not at the specified width measurement start position, return to step 501;

[0076] Step 503: the car starts to move;

[0077] Step 504: Determine whether the second trigger of the sensor is valid; if the second trigger of the sensor is valid, proceed to step 505; if the second trigger of the sensor is invalid, proceed to step 507, then detect whether the printing device has a machine failure, or check whether the printing medium is disturbed by external force and has a position deviation; if there is a machine failure, troubleshoot the failure; if there is a position deviation of the printing medium, adjust the position of the printing medium and repeat step 500;

[0078] Step 505: recording the coordinates of the printing carriage when the sensor generates the second trigger through the grating ruler coordinate feedback;

[0079] Step 506: whether the measurement is completed; if the measurement is completed, proceed to step 507; if the measurement is not completed, continue to step 504 until the trolley moves to the width measurement end position and the measurement is completed;

[0080] Step 507: Width measurement ends.

[0081] Step 150: After the width measurement is completed, based on the size relationship between the medium width and the image width, the multiple print images are split and printed or merged and printed. Before performing step 150, the printing carriage is controlled to move to the initial position.

[0082] Step 150 may specifically include:

[0083] Split printing processing operation: if the image width of the target printing image is greater than the medium width of one printing medium, printing the target printing image on at least two adjacent printing media;

[0084] In the split printing processing operation, if the image width of the target printing image is greater than the media width of one printing medium and less than the sum of the media widths of two printing media, then the target printing image can be printed on two adjacent printing media; if the image width of the target printing image is greater than the media width of two printing media and less than the sum of the media widths of three printing media, then the target printing image can be printed on three adjacent printing media; and so on.

[0085] Step 150 may further include:

[0086] Merge print processing operation: If the media width of a print medium is greater than the sum of the image widths of two adjacent print images, the two adjacent print images are printed on the same print medium. Figure 6 As shown, the medium width of medium 1 is relatively large. If the medium width of medium 1 is greater than the sum of the image widths of two adjacent printed images, then the two adjacent printed images can be printed on medium 1 and can be cut after printing.

[0087] In an optional implementation, if the media width of the print medium is greater than or equal to the first preset width, or if the media width of the print medium is less than the second preset width, an alarm is issued to replace the appropriate print medium. This is generally for the case where the print medium is too large or too small, for example, the width of a print medium is much larger than the sum of the image widths of all images, which is no longer suitable for actual printing and requires replacement of the print medium; for example, the sum of the media widths of all print media is not as large as the image width of an image, that is, all print media cannot print an image, and the print medium also needs to be replaced.

[0088] In an optional embodiment, the number of objects to be printed may be one or more. It should be noted that when there are multiple objects to be printed, only the width of the objects to be printed in the X direction is measured. When the objects to be printed are placed on the printing platform, the Y-axis direction should be the same coordinate. Therefore, there is no need to measure the width of the Y axis. The size information of multiple objects to be printed can be obtained in advance, and the position of the image to be printed on the objects to be printed can be located by combining the size information and the width measurement data information. It can be ensured that multiple objects to be printed with overlapping Y-axis coordinates have the same Y-axis coordinates when placed on the printing platform by time and position. Specifically, multiple objects to be printed can be loaded at the same time, or the guide belt can be controlled to stop moving when multiple objects to be printed are loaded, so as to facilitate placing multiple objects to be printed at the same coordinate of the Y axis. Among them, the sizes of multiple objects to be printed in the X-axis and Y-axis directions can be the same or different.

[0089] Combination Figure 6The sizes of the multiple objects to be printed can be the same or different, and the printed images on the multiple objects to be printed can also be the same or different. When the objects to be printed move with the guide belt to the bottom of the printing carriage, the width data of the multiple objects to be printed are calculated based on the data obtained by the grating sensor, and the arrangement of the objects to be printed in the printing platform within the next preset time is obtained based on the width data and the size data of the objects to be printed obtained in advance, and the corresponding printing data is generated in real time according to the arrangement. It can be understood that when the images to be printed on multiple objects to be printed are the same, such as printing the letter A with a width of 5CM on 5 objects to be printed, the widths of the 5 objects to be printed can be obtained, such as 6CM, 12CM, 6CM, 7CM, and 10CM. Assuming that in this printing scenario, the objects to be printed can be directly printed from the boundary, it can be known that two letters A can be printed on the second and fifth objects to be printed, and one letter A can be printed on the first, third, and fourth objects to be printed, and corresponding printing data is generated in real time according to the width measurement results; when the images to be printed on multiple objects to be printed are different, such as printing 5CM English letters in sequence on 3 objects to be printed, the widths of the 3 objects to be printed are obtained, such as 6CM, 12CM, and 6CM. It can be known that A is printed on the first object to be printed, B and C are printed on the second object to be printed, and D is printed on the third object to be printed, and corresponding printing data is generated in real time according to the width measurement results.

[0090] In the prior art, the object to be printed is usually placed close to the edge of the printing platform, so as to calculate the placement position of the image to be printed on the object to be printed. In the embodiment of the present invention, the first object to be printed can be placed on the edge of the printing platform, or it can be placed without being close to the edge of the printing platform, which has a high degree of freedom and flexibility. It is understandable that before printing the print image, the print position of the image to be printed on the object to be printed can be preset according to requirements, and the print position can include, for example, the print position of the image to be printed on the object to be printed, the left alignment and the right alignment.

[0091] On the basis of the above embodiments, the width measurement method provided can also be used in width detection scenarios to check whether the size of the object to be printed is the same as the preset value. For example, a certain printing task is to print the personal information of all employees on multiple 10CM wide work badges in sequence. Some cards that do not meet the preset size, such as 10.5CM or 9.5CM cards, are detected through the width measurement scheme. In response to detecting the object to be printed that does not meet the preset size, an alarm signal is issued and printing is stopped. Unqualified objects to be printed are removed before printing, avoiding the need to print all employees' work badges and then check one by one to see if there are any unqualified work badges. The detection process is cumbersome and wastes manpower and material resources.

[0092] It can be seen from all the above that in the embodiments of the present invention, first, before the width measurement starts, the printing element is moved to the starting position of the width measurement. At this time, it will be determined whether the sensor generates the first trigger. If the sensor is triggered at this time, the width measurement will be stopped, and it is necessary to check whether the sensor is normal and whether the printing medium is in the printing platform. Such operation steps can improve the accuracy of the width measurement, thereby improving the printing accuracy and printing precision of subsequent image printing; second, in the process of measuring the width, a preset filtering error detection algorithm is used to continuously sample the second trigger of the sensor for 20 times, for example, if the trigger levels obtained in each sampling are the same, the trigger is valid. As long as there is a different level, it is considered that it has been interfered with by the outside world, and the trigger is invalid. It is necessary to eliminate the invalid cause in time and then continue printing. These operations can improve the accuracy of the width measurement, thereby improving the subsequent Image printing accuracy; third, realize multiple printing. Multiple printing can be realized in flat printing and scroll printing. For example, five copies can be printed at a time. Printing multiple copies at a time greatly improves the output; fourth, realize splicing printing. Splicing printing is realized in flat printing and scroll printing environments: when the image is too large, the printed image can be split, and the split images can be printed on different printing media respectively. After printing, the images can be glued together. Such operations can greatly improve the printing speed and printing efficiency; fifth, realize merged printing, for example, two images can be printed on one printing medium at the same time. After printing, the images can be cropped. Such operations can greatly improve the printing speed and printing efficiency; sixth, when the media width of the printing medium is too large or too small, an alarm prompts. Such operations can improve printing accuracy.

[0093] The printing processing device provided by the present invention is described below. The printing processing device described below and the printing processing method described above can be referred to each other.

[0094] like Figure 7 As shown, an embodiment of the present invention further provides a printing processing device, which is used to implement the printing processing method in any of the above embodiments. The printing processing device may include:

[0095] An acquisition module 710, for acquiring position information of a printing carriage and image widths of multiple printed images when measuring the widths of multiple printing media;

[0096] The control module 720 is used to control the printing carriage to move along the moving direction based on the initial position in the position information; the initial position is the starting position for width measurement; the moving direction is parallel to the width direction of the printing medium;

[0097] The first determination module 730 is used to use a preset filtering error detection algorithm to determine whether each triggering of the sensor on the printing carriage meets the effective triggering condition, and if each triggering of the sensor meets the effective triggering condition, record N coordinates corresponding to N triggerings in the width measurement process; wherein N is an even number;

[0098] A second determination module 740 is used to determine the medium width of each printing medium based on the N coordinates;

[0099] The printing processing module 750 is used to perform split printing processing or merge printing processing on multiple print images based on the size relationship between the medium width and the image width after the width measurement is completed.

[0100] The printing processing device also includes a judgment module, which is used to judge whether the sensor generates a first trigger at the initial position; wherein the first trigger refers to the sensor receiving a light signal reflected back from the printing platform or the printing medium;

[0101] If the sensor does not generate the first trigger, the printing carriage is controlled to move along the moving direction;

[0102] If the sensor generates the first trigger, the printing carriage is controlled to move to the initial position.

[0103] The printing processing device also includes a control stop module, which is used to control the printing carriage to stop moving based on the stop position in the position information; the stop position is the end position of the width measurement.

[0104] The first determining module 730 is specifically used for:

[0105] When the sensor is triggered for the second time, a preset number of electrical signals continuously collected by the sensor are obtained; the electrical signal is a high level or a low level; wherein the second trigger refers to a jump in the electrical signal collected by the sensor;

[0106] Based on a preset number of electrical signals, it is determined whether the second triggering of the sensor is valid.

[0107] The first determining module 730 is specifically used for:

[0108] If the electrical signal is converted from a low level to a high level, and a preset number of electrical signals are all at a high level, it is determined that the second trigger of the sensor is valid;

[0109] or,

[0110] If the electrical signal is converted from a high level to a low level, and a preset number of electrical signals are all low levels, it is determined that the second trigger of the sensor is valid.

[0111] The printing processing device also includes a control movement module, which is used to control the printing carriage to move to an initial position.

[0112] The printing processing module 750 is specifically used for:

[0113] If the image width of the target print image is greater than the medium width of one print medium, printing the target print image on at least two adjacent print media;

[0114] or,

[0115] If the medium width of one printing medium is greater than the sum of the image widths of two adjacent printing images, the two adjacent printing images are printed on the same printing medium.

[0116] The second determining module 740 is specifically used for:

[0117] Determine the difference between the first coordinate and the second coordinate of the N coordinates as the medium width of the first printing medium;

[0118] Determine the difference between the third coordinate and the fourth coordinate of the N coordinates as the medium width of the second printing medium;

[0119] The differences between adjacent coordinates in the N coordinates are calculated one by one until the difference between the N-1th coordinate and the Nth coordinate in the N coordinates is obtained, and the medium widths of all printing media are determined.

[0120] like Figure 8 As shown, an embodiment of the present invention further provides an electronic device, which may include: a processor (processor) 810, a communication interface (CommunicationsInterface) 820, a memory (memory) 830 and a communication bus, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus. The memory 830 stores a computer program that can be run by the processor 810; when the processor 810 runs the computer program, it can execute the printing processing method in any of the above embodiments.

[0121] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0122] On the other hand, the present invention further provides a non-transitory computer-readable storage medium, in which instructions are stored. When the instructions are executed, the printing processing method in any of the above embodiments is implemented.

[0123] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0124] Although the present invention has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present invention. Accordingly, this specification and the accompanying drawings are merely exemplary illustrations of the present invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present invention. Obviously, those skilled in the art may make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, the present invention is intended to include such modifications and variations if they fall within the scope of the claims of the present invention and their equivalents.

Claims

1. A printing processing method, characterized in that: include: When measuring the width of multiple printing media, obtaining the position information of the printing carriage and the image widths of multiple printed images; Based on the initial position in the position information, the printing carriage is controlled to move along a moving direction; the initial position is a starting position for width measurement; the moving direction is parallel to a width direction of the printing medium; Using a preset filtering error detection algorithm, determine whether each triggering of the sensor on the printing carriage meets the effective triggering condition. If each triggering of the sensor meets the effective triggering condition, record the N coordinates corresponding to the N triggerings in the width measurement process; wherein N is an even number; Based on the N coordinates, determining a medium width of each printing medium; After the width measurement is completed, the multiple print images are split and printed or merged and printed based on the size relationship between the medium width and the image width.

2. The printing processing method according to claim 1, characterized in that: Before controlling the printing carriage to move along the moving direction based on the initial position, the method further includes: When the printing carriage is located at the initial position, determining whether the sensor generates a first trigger; wherein the first trigger indicates that the sensor receives a light signal reflected from the printing platform or the printing medium; If the sensor does not generate the first trigger, controlling the printing carriage to move along the moving direction; If the sensor generates a first trigger, the printing carriage is controlled to move to the initial position.

3. The printing processing method according to claim 1, characterized in that: Before determining the medium width of each printing medium based on the N coordinates, the method further includes: Based on the stop position in the position information, the printing carriage is controlled to stop moving; the stop position is the width measurement end position.

4. The printing processing method according to claim 1, characterized in that: The method of using a preset filtering error detection algorithm to determine whether each triggering of the sensor on the printing carriage meets a valid triggering condition includes: When the sensor is triggered for the second time, a preset number of electrical signals continuously collected by the sensor are obtained; the electrical signal is a high level or a low level; wherein the second trigger indicates that the electrical signal collected by the sensor jumps; Based on the preset number of electrical signals, it is determined whether the second triggering of the sensor is valid.

5. The printing processing method according to claim 4, characterized in that: The determining whether the second triggering of the sensor is effective based on the preset number of electrical signals includes: If the electrical signal is converted from a low level to a high level, and the preset number of electrical signals are all high levels, it is determined that the second trigger of the sensor is valid; or, If the electrical signal is converted from a high level to a low level, and the preset number of electrical signals are all at a low level, it is determined that the second triggering of the sensor is valid.

6. The printing processing method according to claim 1, characterized in that: Before performing split printing or combined printing on the print images, the method further includes: Control the printing carriage to move to the initial position.

7. The printing processing method according to claim 1, characterized in that: The performing split printing processing or combined printing processing on the plurality of print images based on the size relationship between the medium width and the image width includes: If the image width of the target print image is greater than the medium width of one print medium, printing the target print image on at least two adjacent print media; or, If the medium width of one printing medium is greater than the sum of the image widths of two adjacent printing images, the two adjacent printing images are printed on the same printing medium.

8. The printing processing method according to claim 1, characterized in that: The determining of the medium width of each printing medium based on the N coordinates includes: Determine the difference between the first coordinate and the second coordinate of the N coordinates as the medium width of the first printing medium; Determine the difference between the third coordinate and the fourth coordinate of the N coordinates as the medium width of the second printing medium; The differences between adjacent coordinates in the N coordinates are calculated one by one until the difference between the N-1th coordinate and the Nth coordinate in the N coordinates is obtained, and the medium widths of all printing media are determined.

9. A printing processing device, characterized in that: include: An acquisition module, used for acquiring position information of a printing carriage and image widths of multiple printed images when measuring the widths of multiple printing media; A control module, configured to control the printing carriage to move along a moving direction based on an initial position in the position information; the initial position is a starting position for measuring width; and the moving direction is parallel to a width direction of the printing medium; The first determination module is used to use a preset filtering error detection algorithm to determine whether each triggering of the sensor on the printing carriage meets the effective triggering condition, and if each triggering of the sensor meets the effective triggering condition, record N coordinates corresponding to N triggerings in the width measurement process; wherein N is an even number; A second determination module, configured to determine a medium width of each printing medium based on the N coordinates; The printing processing module is used to perform split printing processing or merge printing processing on the multiple print images based on the size relationship between the medium width and the image width after the width measurement is completed.

10. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate via the communication bus; The memory stores a computer program that can be executed by the processor; when the processor executes the computer program, the printing processing method according to any one of claims 1 to 8 is executed.

Citation Information

Patent Citations

  • Methods and systems for handling printing of large-size objects

    CN111098612A

  • Intelligent printing equipment and control method thereof

    CN111301010A

  • Repeated-image seamless continuous printing control method, device and equipment, and storage medium

    CN112060786A

  • Scanning printing method and scanning type digital printing system

    CN114312023A

  • Method for detecting width of pole piece material of photoelectric sensor

    CN118623769A