Method and device for scaling a print pattern of a conical bottle, electronic device and storage medium
By calculating the rotation angle and scaling of the gear and the conical glass bottle, the problem of inconsistent printing pattern length on the conical glass bottle was solved, and the correction and consistency of the printing pattern were achieved.
Patent Information
- Application Number
- CN202410827250.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2026-05-15
- Estimated Expiration
- 2044-06-25
AI Technical Summary
During the printing process, the inconsistent radii at both ends of the conical glass bottle cause inconsistent lengths of the gear's movement trajectory, resulting in deformation of the printed pattern's length.
By obtaining gear parameters and the dimensions of the printed pattern, the rotation angles of the gear and the conical glass bottle are calculated, and the scaling amount is calculated based on the dimensions of the conical glass bottle to correct the printed pattern.
It achieves consistent pattern length on conical glass bottles, ensuring that the printed pattern appears square.
Smart Images

Figure CN118665060B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of printing on conical glass bottles, and particularly to a method, apparatus, electronic device, and storage medium for scaling printed patterns on conical bottles. Background Technology
[0002] In the production and processing of glass bottles, to enhance their aesthetic appeal, printing is often applied to the outer surface. During printing, a rack and pinion mechanism drives a gear to rotate, simultaneously applying pressure to the squeegee. Through the movement of the screen and the rotation of the glass bottle, the colored enamel is forced through the small holes of the screen onto the substrate. The glass bottle is suctioned from the bottle neck or bottom, moving synchronously with the gear on the central shaft of the suction head. When the gear rotates 360°, the glass bottle also rotates 360°, causing the glass to... The bottle is printed by rotating around the suction head shaft once on the machine. However, when printing on a conical glass bottle, which has two ends, the first end is located at the top and has the smallest radius, while the second end is located at the bottom and has the largest radius. Therefore, the radius of the gear pitch circle (calculated from the number of gear teeth and the gear module) will inevitably have an area where the radius does not match the printed area on the conical glass bottle. When the radius of the gear pitch circle equals the radius of the first end of the conical glass bottle, the gear pitch... When the radius of the circle is smaller than the radius of the second end of the conical glass bottle, the arc length of the gear's motion trajectory will be the same as the arc length of the first end of the conical glass bottle. However, compared to the arc length of the second end of the conical glass bottle, the arc length of the motion trajectory of the second end of the conical glass bottle will be longer. This is because the larger the radius of the conical glass bottle, the longer the arc length when rotating by the same angle. This results in the printed pattern length at the second end of the conical glass bottle becoming longer, while the printed pattern length at the first end remains at its normal size. When the radius of the gear's pitch circle is larger than the radius of the first end of the conical glass bottle, and the radius of the gear's pitch circle is equal to the radius of the second end of the conical glass bottle, the gear's motion trajectory will be the same as that of the second end of the conical glass bottle. However, compared to the first end of the conical glass bottle, the motion trajectory of the first end of the conical glass bottle will be shorter. This results in the printed pattern length at the first end of the conical glass bottle becoming shorter, while the printed pattern length at the second end remains at its normal size. This causes the lengths of the motion trajectories of the two to be inconsistent when the gear drives the conical glass bottle to rotate by the same angle, resulting in the deformation of the printed pattern length when the square printed pattern is printed onto the conical glass bottle. Summary of the Invention
[0003] To solve the above-mentioned technical problems, the present invention provides a method, apparatus, electronic device and storage medium for scaling printed patterns on conical bottles. The purpose is to solve the technical problem that when a gear drives a conical glass bottle to rotate by the same angle, the lengths of the trajectories of the two movements are inconsistent, resulting in the deformation of the length of the printed pattern when the square printed pattern is printed on the conical glass bottle.
[0004] The technical solution of the present invention to solve the above-mentioned technical problems is as follows:
[0005] A method for scaling printed patterns on conical bottles is provided, used for printing correction of conical glass bottles by a printing machine, wherein the printing machine drives the conical glass bottle to rotate via gear transmission to complete the printing;
[0006] Obtain the gear parameters in the transmission and the size of the first printed pattern on the drawing;
[0007] The rotation angle of the gear is calculated based on the gear parameters and the size of the first printed pattern;
[0008] The rotation angle of the conical glass bottle is calculated based on the rotation angle of the gear.
[0009] Obtain the dimensions of the conical glass flask;
[0010] The size of the second printed pattern is calculated based on the rotation angle and the dimensions of the conical glass bottle.
[0011] The scaling amount is calculated based on the size of the first printed pattern and the size of the second printed pattern, so that the first printed pattern is corrected for printing according to the scaling amount.
[0012] During the process of acquiring gear parameters, the number of gear teeth and the gear module are obtained, as well as the length of the first printed pattern on the drawing. Based on the length of the first printed pattern, the gear module, and the number of gear teeth, the rotation angle of the gear is calculated. Since the gear is synchronously driven with the conical glass bottle suction head, the rotation angle of the gear is equal to the rotation angle of the conical glass bottle suction head. Thus, the rotation angle during printing on the conical glass bottle is calculated. Based on the radius of the bottom or top of the conical glass bottle and the printing angle of the conical glass bottle, the length of the second printed pattern, i.e., the actual length of the printed pattern, is calculated. Based on the length of the first printed pattern on the drawing and the actual length of the printed pattern, the scaling amount is calculated so that the first printed pattern on the drawing can be calibrated according to the scaling amount, so that the square pattern printed on the conical glass bottle appears square.
[0013] Furthermore, in this application, the gear parameters also include the gear module and the number of teeth on the gear.
[0014] The module and number of teeth of a gear can be obtained through manual measurement, which makes it easier to calculate the rotation angle of the conical glass bottle.
[0015] Furthermore, in this application, the step of obtaining gear parameters in the transmission includes:
[0016] Two adjacent teeth of the gear are selected as the starting and ending positions. The number of touches from the starting position to the ending position is recorded to generate multiple touch signals. The number of teeth of the gear is calculated based on the multiple touch signals.
[0017] After determining the starting and ending positions of two adjacent teeth, the number of teeth of the gear is calculated by rotating the gear once. Since each tooth will generate a touch signal, the number of touch signals is used to calculate the number of teeth of the gear.
[0018] Furthermore, in this application, the formula for calculating the rotation angle of the gear based on the gear parameters and the size of the first printed pattern is as follows:
[0019] c= ;
[0020] Where c is the rotation angle of the gear, L is the size of the first printed pattern, m is the gear module, and z is the number of teeth of the gear.
[0021] The formula for calculating the rotation angle of the conical glass bottle based on the rotation angle of the gear is as follows:
[0022] c= ;
[0023] in The rotation angle of the conical glass bottle.
[0024] Furthermore, in this application, the formula for calculating the size of the second printed pattern, based on the rotation angle of the conical glass bottle and the size of the conical glass bottle, is as follows:
[0025] ;
[0026] Where L1 is the actual pattern length, and r is the radius of the conical glass bottle;
[0027] L1-L=f;
[0028] Where f is the scaling amount and L is the size of the first printed pattern.
[0029] Furthermore, in this application, when m equals 2, the calculation formula for L1 is:
[0030] L1= * ;
[0031] L1= .
[0032] A printing pattern scaling device for conical bottles is used for printing correction of conical glass bottles by a printing machine body. The printing machine body drives the conical glass bottle to rotate via gear transmission to complete the printing.
[0033] The first acquisition module acquires the gear parameters in the transmission and the size of the first printed pattern on the drawing.
[0034] The first calculation module calculates the rotation angle of the gear based on the gear parameters and the size of the first printed pattern;
[0035] The second calculation module calculates the rotation angle of the conical glass bottle based on the rotation angle of the gear.
[0036] The second acquisition module acquires the dimensions of the conical glass bottle;
[0037] The third calculation module calculates the size of the second printed pattern based on the rotation angle and dimensions of the conical glass bottle.
[0038] The fourth calculation module calculates a scaling amount based on the size of the first printed pattern and the size of the second printed pattern, so that the first printed pattern is corrected for printing according to the scaling amount.
[0039] An electronic device includes a processor and a memory, the memory storing computer-readable instructions that, when executed by the processor, run the steps of the method.
[0040] A storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method.
[0041] The present invention has the following beneficial effects:
[0042] During the process of acquiring gear parameters, the number of gear teeth and the gear module are obtained, as well as the length of the first printed pattern on the drawing. Based on the length of the first printed pattern, the gear module, and the number of gear teeth, the rotation angle of the gear is calculated. Since the gear is synchronously driven with the conical glass bottle suction head, the rotation angle of the gear is equal to the rotation angle of the conical glass bottle suction head. Thus, the rotation angle during printing on the conical glass bottle is calculated. Based on the radius of the bottom or top of the conical glass bottle and the printing angle of the conical glass bottle, the length of the second printed pattern, i.e., the actual length of the printed pattern, is calculated. Based on the length of the first printed pattern on the drawing and the actual length of the printed pattern, the scaling amount is calculated so that the first printed pattern on the drawing can be calibrated according to the scaling amount, so that the square pattern printed on the conical glass bottle appears square. Attached Figure Description
[0043] Figure 1This is a flowchart of a method for scaling printed patterns on conical bottles.
[0044] Figure 2 This is a structural diagram of a device for scaling printed patterns on a conical bottle.
[0045] Figure 3 This is a structural diagram of an electronic device.
[0046] Labeling explanations: 201, First acquisition module; 202, First calculation module; 203, Second calculation module; 204, Second acquisition module; 205, Third calculation module; 206, Fourth calculation module; 101, Processor; 102, Memory. Detailed Implementation
[0047] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0048] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0049] The following disclosure provides many different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the invention. Furthermore, reference numerals and / or letters may be repeated in different examples; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed. In addition, examples of various specific processes and materials are provided in this invention, but those skilled in the art will recognize the application of other processes and / or the use of other materials.
[0050] In existing technology, when printing on conical glass bottles, the bottles have two ends. The first end is located at the top, so its radius is the smallest. The second end is located at the bottom, so its radius is the largest. Therefore, the radius of the gear's pitch circle (calculated from the number of gear teeth and the gear module) will inevitably have a region where the radius is inconsistent with the printed area on the conical glass bottle. When the gear's pitch circle radius is equal to the radius of the first end of the conical glass bottle, and when the gear's pitch circle radius is smaller than the radius of the second end, the arc length of the gear's trajectory will be the same as the arc length of the first end of the conical glass bottle. However, compared to the arc length of the second end, the arc length of the second end's trajectory will be longer because the larger the radius of the conical glass bottle... The longer the arc length when rotating by the same angle, the longer the printed pattern at the second end of the conical glass bottle becomes, while the printed pattern at the first end remains at its normal length. When the radius of the gear's pitch circle is greater than the radius of the first end of the conical glass bottle, and the radius of the gear's pitch circle is equal to the radius of the second end of the conical glass bottle, the gear's movement trajectory will be the same as that of the second end of the conical glass bottle. However, compared to the first end of the conical glass bottle, the movement trajectory of the first end is shorter, resulting in a shorter printed pattern at the first end of the conical glass bottle, while the printed pattern at the second end remains at its normal length. This causes the lengths of the movement trajectories of the two devices to be inconsistent when the gear drives the conical glass bottle to rotate by the same angle, resulting in a deformation of the printed pattern length when the square printed pattern is printed onto the conical glass bottle.
[0051] For this, please refer to Figure 1 A method for scaling printed patterns on conical bottles is provided for printing correction of conical glass bottles by a printing machine. The printing machine rotates the conical glass bottle through gear transmission to complete the printing.
[0052] S1. Obtain the gear parameters in the transmission and the size of the first printed pattern on the drawing;
[0053] S2. Calculate the rotation angle of the gear based on the gear parameters and the size of the first printed pattern;
[0054] S3. Calculate the rotation angle of the conical glass bottle based on the rotation angle of the gear;
[0055] S4. Obtain the dimensions of the conical glass bottle;
[0056] S5. Calculate the dimensions of the second printed pattern based on the rotation angle and size of the conical glass bottle;
[0057] S6. Calculate the scaling amount based on the size of the first printed pattern and the size of the second printed pattern, so that the first printed pattern can be corrected for printing according to the scaling amount.
[0058] When the radius of the gear pitch circle is equal to the radius of the first end of the conical glass bottle, and the radius of the gear pitch circle is less than the radius of the second end of the conical glass bottle, since the pattern on the first end of the conical glass bottle will not deform after printing, it is not necessary to calculate the scaling amount of the first end of the conical glass bottle. Instead, it is necessary to obtain the radius of the second end of the conical glass bottle. Based on the radius of the second end of the conical glass bottle and the rotation angle of the gear, the actual printed pattern length of the second end of the conical glass bottle is calculated to be variable. Combining the printed pattern on the drawing and the actual printed pattern length, the scaling amount of the second end of the conical glass bottle pattern length is calculated. At this time, the scaling amount is the shortening value of the second end of the conical glass bottle pattern length. The second end of the conical glass bottle pattern length is shortened according to the shortening value, and the two sides of the conical glass bottle pattern are also shortened as the second end pattern length is shortened, so that the final conical glass bottle pattern is displayed as a square, thus completing the pattern correction.
[0059] When the radius of the gear pitch circle is greater than the radius of the first end of the conical glass bottle, and the radius of the gear pitch circle is equal to the radius of the second end of the conical glass bottle, since the pattern on the second end of the conical glass bottle will not deform after printing, it is not necessary to calculate the scaling amount of the second end of the conical glass bottle. Instead, it is necessary to obtain the radius of the first end of the conical glass bottle. Based on the radius of the first end of the conical glass bottle and the rotation angle of the gear, the actual printed pattern length of the pattern on the first end of the conical glass bottle is shortened. Combining the printed pattern on the drawing and the actual printed pattern length, the scaling amount of the pattern length on the first end of the conical glass bottle is calculated. At this time, the scaling amount is the stretching value of the pattern length on the first end of the conical glass bottle. The pattern length on the first end of the conical glass bottle is stretched according to the shortening value, and the two sides of the pattern on the conical glass bottle are also stretched along with the stretching of the pattern length on the first end, so that the final pattern on the conical glass bottle is displayed as a square, thus completing the pattern correction.
[0060] Furthermore, the radius of the gear's pitch circle can also be equal to the radius of the middle part of the conical glass bottle. In this case, the radius of the gear's pitch circle is greater than the radius of the first end of the conical glass bottle, and the radius of the gear's pitch circle is less than the radius of the second end of the conical glass bottle. In this case, it is necessary to calculate the scaling amount of the first and second ends sequentially. This requires obtaining the radii of the first and second ends of the conical glass bottle separately. Based on the radius of the first end of the conical glass bottle and the rotation angle of the gear, the actual printed pattern length of the pattern at the first end of the conical glass bottle is shortened. Combining the printed pattern on the drawing and the actual printed pattern length at the first end, the scaling amount of the pattern length at the first end of the conical glass bottle is calculated. At this point, the scaling amount at the first end is the elongation value of the pattern length at the first end of the conical glass bottle. The pattern length at the first end of the conical glass bottle is then calculated based on this elongation value. The pattern on the conical glass bottle is stretched, and the area from the middle of the pattern to both sides of the first end is also stretched along with the length of the pattern at the first end, making the pattern at the first end a semi-square shape. The radius of the second end of the conical glass bottle and the rotation angle of the gear are calculated to determine the actual length of the printed pattern at the second end of the conical glass bottle, which is the length of the stretched pattern. Combining the length of the printed pattern on the drawing and the actual length of the printed pattern at the second end, the scaling amount of the pattern at the second end of the conical glass bottle is calculated. At this time, the scaling amount of the second end is the shortening value of the pattern at the second end of the conical glass bottle. The pattern at the second end of the conical glass bottle is shortened according to the shortening value, and the area from the middle of the pattern to both sides of the second end is also shortened along with the shortening of the pattern at the second end, so that the patterns at the first end and the second end form a square shape.
[0061] Specifically, gear parameters can be the radius or diameter of the gear pitch circle, or the number of gear teeth and the gear module. The radius or diameter of the gear pitch circle can be calculated based on the number of teeth and the module. The first printed pattern size includes the length of the first printed pattern on the drawing. The size of the conical glass bottle includes the top radius or bottom radius of the conical glass bottle. The second printed pattern size includes the length of the second printed pattern, which refers to the length of the printed pattern before calibration.
[0062] In the printing machine, multiple gears drive the machine. To ensure the synchronization between the gears and the conical glass bottle, the gear that drives the conical glass bottle suction head on the same axis must be selected as the object for obtaining the size. If the selected gear does not drive the conical glass bottle suction head on the same axis, the final calculated scaling amount will be inaccurate, resulting in a large error in the correction of the printed pattern.
[0063] The first printed pattern on the drawing can be square or rectangular, and the length of the first printed pattern is usually used as a parameter for calculation.
[0064] In order to prevent the first printed pattern from being connected end to end due to completely surrounding the conical glass bottle, the rotation angle of the gear is usually between 0 and 180 degrees. That is, when the first printed pattern is printed on the conical glass bottle, the first printed pattern only occupies half of the space of the conical glass bottle.
[0065] Since the maximum and minimum radii of the conical glass bottle are the easiest to obtain, the calculation formula of this application is most applicable to the case where the upper and lower edges of the first printed pattern are respectively attached to the upper and lower edges of the conical glass bottle.
[0066] In this process, multiple first printed patterns can be printed on a conical glass bottle simultaneously. When the multiple first printed patterns are arranged side by side, the length of one of the first printed patterns needs to be obtained for calculation. After calculation based on the upper and lower radii of the conical bottle, the two second printed patterns that are actually deformed will be obtained. In this way, two scaling values are obtained in sequence. The first printed pattern at the top and the first printed pattern at the bottom can be corrected based on the two scaling values. When the multiple first printed patterns are connected end to end, such as when there are two first printed patterns, only the total length of the two printed patterns needs to be obtained as the calculation parameter.
[0067] Through the above technical solution, in the process of obtaining gear parameters, the number of teeth and the module of the gear are obtained, as well as the length of the first printed pattern on the drawing. Based on the length of the first printed pattern, the gear module, and the number of teeth, the rotation angle of the gear is calculated. Since the gear is synchronously driven with the suction head of the conical glass bottle, the rotation angle of the gear is equal to the rotation angle of the suction head of the fixed conical glass bottle. Thus, the rotation angle of the conical glass bottle during printing is calculated. Based on the radius of the bottom or top of the conical glass bottle and the printing angle of the conical glass bottle, the length of the second printed pattern, i.e., the actual length of the printed pattern, is calculated. Based on the lengths of the first and second printed patterns on the drawing, the scaling amount is calculated so that the first printed pattern on the drawing can be calibrated according to the scaling amount, so that the square pattern printed on the conical glass bottle appears square.
[0068] Conical glass bottles typically have two radii: a minimum radius at the top and a maximum radius at the bottom. Therefore, when calculating the scaling, the two radii need to be calculated sequentially to obtain two scaling values, which are then used to correct the top and bottom edges of the first printed pattern on the drawing.
[0069] Gear parameters also include gear module and number of teeth.
[0070] Through the above technical solution, the module and number of teeth of the gear can be obtained by manual measurement, which makes it easier to calculate the rotation angle of the conical glass bottle.
[0071] The steps to obtain gear parameters in a transmission include:
[0072] Select two adjacent teeth of the gear as the starting and ending positions, record the number of touches from the starting position to the ending position to generate multiple touch signals, and calculate the number of teeth of the gear based on the multiple touch signals.
[0073] The touch signal can be acquired by a touch sensor installed inside the printing machine.
[0074] By using the above technical solution, after determining two adjacent teeth as the starting and ending positions, the number of teeth of the gear is calculated based on the number of touch signals generated by each tooth as the gear rotates once.
[0075] In addition, the gears of the semi-automatic printing machine can be fixed inside the printing machine through a detachable structure, allowing the gears to be disassembled for measurement of the number of teeth.
[0076] The formula for calculating the gear rotation angle based on the gear parameters and the size of the first printed pattern is as follows:
[0077] c= ;
[0078] Where c is the rotation angle of the gear, L is the size of the first printed pattern, m is the gear module, and z is the number of teeth of the gear.
[0079] With the above technical solution, the size of the first printed pattern is the length of the first printed pattern. When the length of the first printed pattern is 40mm, the module of the gear is 2, and the number of teeth of the gear is 28, according to the above formula, the rotation angle of the gear is 81.85°.
[0080] The formula for calculating the rotation angle of the conical glass bottle based on the rotation angle of the gear is as follows:
[0081] c= ;
[0082] in The angle of rotation of the conical glass bottle.
[0083] With the above technical solution, since the gear and the suction head of the fixed conical glass bottle are synchronously driven, the rotation angle of the gear is equal to the rotation angle of the conical glass bottle. Therefore, when the rotation angle of the gear is 81.85°, the rotation angle of the conical glass bottle is also 81.85°.
[0084] The formula for calculating the size of the second printed pattern, based on the rotation angle and dimensions of the conical glass bottle, is as follows:
[0085] ;
[0086] Where L1 is the size of the second printed pattern, and r is the radius of the conical glass bottle;
[0087] L1-L=f;
[0088] Where f is the scaling factor and L is the size of the first printed pattern.
[0089] Through the above technical solution, the size of the second printed pattern is the length of the second printed pattern. Based on the rotation angle of the conical glass bottle of 81.85° and the radius of the bottom or top of the conical glass bottle of 28.4mm, the length of the second printed pattern can be obtained from the above formula as 40.57mm. Therefore, by subtracting the length of the first printed pattern from the length of the second printed pattern, the scaling amount is 0.57mm, so as to correct the length of the first printed pattern.
[0090] The scaling amounts calculated using the above formula, based on the applicant's specific use of conical glass bottle dimensions, gear parameters, and drawing pattern length, are shown in the table below:
[0091] Serial Number Number of teeth of gear The radius of the conical glass bottle The length of the first printed pattern The rotation angle of the conical glass bottle The length of the second printed pattern scaling Pattern deformation length 1 28 28.4 40 81.85 40.57 0.57 39.43 2 27 26.6 40 84.88 39.41 -0.59 40.59 3 28 28.4 39.44 80.71 40 0.56 38.88 4 27 26.6 40.60 86.16 40 -0.60 41.20
[0092] When m equals 2, the formula for calculating L1 is:
[0093] L1= * ;
[0094] L1= .
[0095] According to the formula, based on the above technical solution, if the number of gear teeth is the same as the radius of the bottle at the location of the printed pattern (i.e., z=r, r / z=1), the actual printed pattern length will not change; if the number of gear teeth is smaller than the radius of the bottle at the location of the printed pattern (i.e., z<r, r / z>1), the actual printed pattern length will be enlarged; if the number of gear teeth is larger than the radius of the bottle at the location of the printed pattern (i.e., z>r, r / z<1), the actual printed pattern length will be reduced. Therefore, the above formula can effectively shorten the calculation process and speed up the calculation of scaling.
[0096] Specifically, please refer to Figure 2 A printing pattern scaling device for conical bottles is used for printing correction of conical glass bottles by the printing machine body. The printing machine body drives the conical glass bottle to rotate through gear transmission to complete the printing.
[0097] The first acquisition module 201 acquires the gear parameters in the transmission and the size of the first printed pattern on the drawing.
[0098] The first calculation module 202 calculates the rotation angle of the gear based on the gear parameters and the size of the first printed pattern;
[0099] The second calculation module 203 calculates the rotation angle of the conical glass bottle based on the rotation angle of the gear;
[0100] The second acquisition module 204 acquires the dimensions of the conical glass bottle;
[0101] The third calculation module 205 calculates the size of the second printed pattern based on the rotation angle and dimensions of the conical glass bottle.
[0102] The fourth calculation module 206 calculates the scaling amount based on the size of the first printed pattern and the size of the second printed pattern, so that the first printed pattern is corrected for printing based on the scaling amount.
[0103] Through the above technical solution, in the process of acquiring gear parameters, the first acquisition module 201 acquires the number of teeth and the module of the gear, and acquires the length of the first printed pattern on the drawing. Then, the first calculation module 202 calculates the rotation angle of the gear based on the length of the first printed pattern, the gear module, and the number of teeth. Since the gear is synchronously driven with the suction head of the conical glass bottle, the rotation angle of the gear is equal to the rotation angle of the suction head of the conical glass bottle. Thus, the second calculation module 203 calculates the rotation angle when printing on the conical glass bottle. Based on the radius of the bottom or top of the conical glass bottle acquired by the second acquisition module 204, and combined with the length of the second printed pattern calculated by the third calculation module 205 based on the printing angle of the conical glass bottle, that is, the actual length of the printed pattern, the fourth calculation module 206 calculates the scaling amount based on the length of the first printed pattern on the drawing and the actual length of the printed pattern, so that the first printed pattern on the drawing can be calibrated according to the scaling amount, so that the square pattern printed on the conical glass bottle is square.
[0104] An electronic device includes a processor and a memory, the memory storing computer-readable instructions that, when executed by the processor, perform the steps in the above method.
[0105] Through the above technical solution, the processor 101 and the memory 102 are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanism (not shown). The memory 102 stores computer-readable instructions that can be executed by the processor 101. When the electronic device is running, the processor 101 executes the computer-readable instructions to execute the method in any optional implementation of the above embodiments to achieve the following functions: obtaining the gear parameters in the transmission and the size of the first printed pattern of the drawing; calculating the rotation angle of the gear according to the gear parameters and the size of the first printed pattern; calculating the rotation angle of the conical glass bottle according to the rotation angle of the gear; obtaining the size of the conical glass bottle; calculating the size of the second printed pattern according to the rotation angle of the conical glass bottle and the size of the conical glass bottle; calculating the scaling amount according to the first printed pattern size and the second printed pattern size, so that the first printed pattern is printed and corrected according to the scaling amount.
[0106] A storage medium on which a computer program is stored, which, when executed by a processor, performs the steps of the above method.
[0107] When the computer program is executed by the processor using the above technical solution, it executes the method in any optional implementation of the above embodiments to achieve the following functions: obtaining the gear parameters in the transmission and the size of the first printed pattern of the drawing; calculating the rotation angle of the gear based on the gear parameters and the size of the first printed pattern; calculating the rotation angle of the conical glass bottle based on the rotation angle of the gear; obtaining the size of the conical glass bottle; calculating the size of the second printed pattern based on the rotation angle of the conical glass bottle and the size of the conical glass bottle; calculating the scaling amount based on the first printed pattern size and the second printed pattern size, so that the first printed pattern is printed and corrected according to the scaling amount.
[0108] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
Claims
1. A method for scaling printed patterns on conical bottles, used for printing correction of conical glass bottles by a printing machine, wherein the printing machine drives the conical glass bottle to rotate via gear transmission to complete the printing, characterized in that: Obtain the gear parameters in the transmission and the size of the first printed pattern on the drawing; The rotation angle of the gear is calculated based on the gear parameters and the size of the first printed pattern; The rotation angle of the conical glass bottle is calculated based on the rotation angle of the gear. Obtain the dimensions of the conical glass flask; The size of the second printed pattern is calculated based on the rotation angle of the conical glass bottle and the size of the conical glass bottle; The scaling amount is calculated based on the size of the first printed pattern and the size of the second printed pattern, so that the first printed pattern is corrected for printing according to the scaling amount; The gear parameters include the gear module and the number of teeth. The steps for obtaining gear parameters in the transmission include: Select two adjacent teeth of the gear as the start position and the end position, record the number of touches from the start position to the end position to generate multiple touch signals, and calculate the number of teeth of the gear based on the multiple touch signals; The formula for calculating the rotation angle of the gear based on the gear parameters and the size of the first printed pattern is as follows: c= ; Where c is the rotation angle of the gear, L is the size of the first printed pattern, m is the gear module, and z is the number of teeth of the gear; The formula for calculating the rotation angle of the conical glass bottle based on the rotation angle of the gear is as follows: c= ; in The rotation angle of the conical glass bottle; The formula for calculating the size of the second printed pattern, based on the rotation angle and dimensions of the conical glass bottle, is as follows: ; Where L1 is the size of the second printed pattern, and r is the radius of the conical glass bottle; L1-L=f; Where f is the scaling amount, and L is the size of the first printed pattern; When m equals 2, the formula for calculating L1 is: L1= * ; L1= 。 2. A device for scaling printed patterns on conical bottles, wherein the device is used to implement the method for scaling printed patterns on conical bottles as described in claim 1, for printing correction of the conical glass bottle by a printing machine, wherein the printing machine drives the conical glass bottle to rotate via gear transmission to complete the printing, characterized in that... : The first acquisition module acquires the gear parameters in the transmission and the size of the first printed pattern on the drawing. The first calculation module calculates the rotation angle of the gear based on the gear parameters and the size of the first printed pattern; The second calculation module calculates the rotation angle of the conical glass bottle based on the rotation angle of the gear. The second acquisition module acquires the dimensions of the conical glass bottle; The third calculation module calculates the size of the second printed pattern based on the rotation angle and dimensions of the conical glass bottle. The fourth calculation module calculates a scaling amount based on the size of the first printed pattern and the size of the second printed pattern, so that the first printed pattern is corrected for printing according to the scaling amount.
3. An electronic device, characterized in that, It includes a processor and a memory, the memory storing computer-readable instructions, which, when executed by the processor, perform the steps of the method as described in claim 1.
4. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it performs the steps of the method as described in claim 1.