Spray head splicing position adjusting method and device, electronic equipment and storage medium
By adopting an automated method in the inkjet printing equipment, image recognition and preprocessing technology are used to calculate the offset of the nozzle position, and automatic adjustment is performed through the adjustment module, the problems of manual adjustment error and low efficiency after the nozzle splicing are solved, and efficient and accurate inkjet printing effect is achieved.
Patent Information
- Application Number
- CN202411970014.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-12-30
AI Technical Summary
In existing wide-format inkjet printing equipment, the position of the nozzle needs to be manually adjusted after splicing to avoid incomplete printing, but manual adjustment has problems of error and low efficiency.
An automated method is adopted to perform inkjet operation on the test sample through an inkjet printing device, and the ink lines are obtained using image recognition and preprocessing techniques, offset is calculated, and the nozzle position is automatically adjusted through the adjustment module.
Automatic fine-tuning of the nozzle position is realized, printing efficiency is improved, labor costs are reduced, and printing effect is ensured.
Smart Images

Figure CN119550727A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of inkjet printing, and in particular to a nozzle splicing position adjustment method, device, electronic device and storage medium. Background Art
[0002] With the rise of the wide-format inkjet printing market, wide-format inkjet printing equipment has become the mainstream. The width of a single inkjet print head is often narrow, so a large number of nozzles are required for each color in the wide-format inkjet printing equipment. In order to prevent uneven printing at the joints after multiple nozzles are spliced, and the printed image is not parallel to the moving direction of the paper, an adjustable bottom plate device is usually set at the position where the nozzle is fixed. However, most of the current inkjet printing equipment uses manual methods to adjust the nozzle position to obtain better printing effects. However, manually adjusting the bottom plate according to the test sample will cause errors, and multiple fine-tuning after multiple test samples are required. Whether the nozzle bottom plate is accurately adjusted is judged subjectively, which affects efficiency and cannot guarantee good results. Summary of the invention
[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a nozzle splicing position adjustment method, device, electronic device and storage medium, which can automatically fine-tune the nozzles whose positions are inconsistent after splicing without manual adjustment, thereby improving efficiency and ensuring the effect of subsequent inkjet.
[0004] The nozzle splicing position adjustment method according to the first aspect of the present application is applied to an inkjet printing device, wherein the inkjet printing device comprises an adjustment module and a nozzle module, wherein the nozzle module comprises a first nozzle assembly and a second nozzle assembly, wherein the first nozzle assembly and the second nozzle assembly are arranged in an alternating manner; and the adjustment module is connected to the first nozzle assembly and the second nozzle assembly respectively.
[0005] The method comprises:
[0006] Controlling the first nozzle assembly and the second nozzle assembly to alternately perform inkjet operation on the test sample to obtain a test sample with ink marks;
[0007] Performing image recognition on the ink on the test sample with ink to obtain a first image;
[0008] Preprocessing the first image to obtain a second image;
[0009] Obtaining a first ink line and a second ink line based on the second image; wherein the first ink line is formed by the first nozzle assembly spraying ink, and the second ink line is formed by the second nozzle assembly spraying ink;
[0010] Calculate an offset based on the first ink line and the second ink line;
[0011] When it is detected that the offset is a non-zero value, the adjusting module is controlled to adjust the position of the second nozzle assembly based on the offset.
[0012] The nozzle splicing position adjustment method according to the embodiment of the present application has at least the following beneficial effects: firstly, the first nozzle assembly and the second nozzle assembly to be adjusted are subjected to inkjet operation on the test sample, the ink marks on the test sample are identified and collected, and then pre-processed to obtain a second image, and the first ink line and the second ink line in the second image are obtained, wherein the first ink line is formed by the first inkjet assembly by inkjet, and the second ink line is formed by the second inkjet assembly by inkjet, and the offset is calculated according to the first ink line and the second ink line, and when the offset is non-zero, the second nozzle assembly is adjusted according to the offset control adjustment module. In this way, there is no need for manual adjustment, and automatic fine-tuning of the spliced nozzles is achieved, which improves efficiency while reducing labor costs.
[0013] According to some embodiments of the present application, the calculating the offset based on the first ink line and the second ink line includes:
[0014] Converting the first ink line into a first straight line equation, determining the slope of the first straight line equation, and obtaining a first slope;
[0015] Converting the second ink line into a second straight line equation, determining the slope of the second straight line equation, and obtaining a second slope;
[0016] The first slope and the second slope are compared, and when the first slope and the second slope are different, the offset is calculated.
[0017] According to some embodiments of the present application, when the first slope and the second slope are the same, the distance between the first ink line and the second ink line is calculated according to the first straight line equation and the second straight line equation to obtain a first distance and a second distance;
[0018] When the first distance and the second distance are different, the offset is calculated.
[0019] According to some embodiments of the present application, the offset includes a first offset and a second offset;
[0020] The calculating the offset comprises:
[0021] Calculating the geometric center coordinates of the first ink line to obtain first center coordinates;
[0022] Calculating the geometric center coordinates of the second ink line to obtain the second center coordinates;
[0023] The first center coordinates include a first ordinate and a first abscissa, the second center coordinates include a second ordinate and a second abscissa, and the absolute value of the difference between the first ordinate and the second ordinate is calculated to obtain the first offset;
[0024] The absolute value of the difference between the first horizontal coordinate and the second horizontal coordinate is calculated to obtain the second offset.
[0025] According to some embodiments of the present application, the inkjet printing device includes:
[0026] A first connecting plate and a second connecting plate are provided on opposite sides of the second nozzle assembly, a first mounting plate is provided on the first connecting plate, a second mounting plate is provided on the second connecting plate, a first convex portion is provided on the first mounting plate, and a second convex portion and a third convex portion are provided on the second mounting plate;
[0027] The adjusting module comprises a first adjusting component and a second adjusting component, the first adjusting component comprises a first driving member and a first pushing block, the first driving member is connected to the first pushing block, the side wall of the first pushing block abuts against the side wall of the first protrusion, the second adjusting component comprises a second driving member and a second pushing block, the second driving member is connected to the second pushing block, the side wall of the second pushing block abuts against the side wall of the second protrusion, and the side wall of the second pushing block also abuts against the side wall of the third protrusion;
[0028] The step of controlling the adjustment module to adjust the position of the second nozzle assembly based on the offset comprises:
[0029] Controlling the second driving member to lock;
[0030] The first driving member is controlled to drive the first pushing block so that the first protrusion drives the second nozzle assembly, and the second nozzle assembly is prompted to adjust along the longitudinal coordinate direction according to the first offset.
[0031] According to some embodiments of the present application, after causing the second nozzle assembly to adjust along the longitudinal coordinate direction according to the first offset, the method includes:
[0032] Controlling the first driving member to lock;
[0033] The second driving member is controlled to drive the second push block so that the second convex portion and the third convex portion drive the nozzle assembly, thereby causing the second nozzle assembly to be adjusted along the horizontal axis direction according to the second offset.
[0034] According to some embodiments of the present application, preprocessing the first image to obtain the second image includes:
[0035] grayscale and denoise the first image to obtain a third image;
[0036] The third image is processed using a Canny edge detection algorithm to obtain the second image.
[0037] The nozzle adjustment device according to the second aspect of the present application is applied to an inkjet printing device, wherein the inkjet printing device comprises an adjustment module and a nozzle module, wherein the nozzle module comprises a first nozzle assembly and a second nozzle assembly, wherein the first nozzle assembly and the second nozzle assembly are arranged in an alternating manner; and the adjustment module is connected to the first nozzle assembly and the second nozzle assembly respectively.
[0038] The device comprises:
[0039] An inkjet control module is configured to control the first nozzle assembly and the second nozzle assembly to alternately perform inkjet operations on the test sample to obtain a test sample with ink marks;
[0040] The image detection processing module is configured to perform image recognition on the ink on the test sample with ink to obtain a first image; pre-process the first image to obtain a second image; and obtain a first ink line and a second ink line based on the second image; wherein the first ink line is formed by the first nozzle assembly through inkjet, and the second ink line is formed by the second nozzle assembly through inkjet;
[0041] an offset analysis module, configured to calculate an offset based on the first ink line and the second ink line;
[0042] The deviation correction control module is configured to control the adjustment module to adjust the position of the second nozzle assembly based on the offset when it is detected that the offset is a non-zero value.
[0043] According to the electronic device of the embodiment of the third aspect of the present application, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the nozzle splicing position adjustment method described in the embodiment of the first aspect of the present application when executing the computer program.
[0044] According to the computer-readable storage medium of the fourth aspect embodiment of the present application, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for adjusting the nozzle splicing position described in the first aspect embodiment of the present application is implemented.
[0045] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0047] Figure 1 This is a flowchart of the steps of the nozzle splicing position adjustment method according to an embodiment of the present application;
[0048] Figure 2 This is a schematic structural diagram of the second driving member of an embodiment of the present application;
[0049] Figure 3 This is a schematic structural diagram of the first driving member of an embodiment of the present application;
[0050] Figure 4 A schematic diagram of the structure of an inkjet printing device according to an embodiment of the present application;
[0051] Figure 5 is a specific flow chart of step S103;
[0052] Figure 6 is a specific flow chart of step S105;
[0053] Figure 7 A schematic diagram of a specific process of calculating an offset according to an embodiment of the present application;
[0054] Figure 8 is a specific flow chart of step S106;
[0055] Fig. 9 This is a schematic diagram of the nozzle adjustment device according to an embodiment of the present application;
[0056] Fig.10 A schematic diagram of an inkjet operation according to an embodiment of the present application;
[0057] Fig.11 A schematic diagram of the structure of an electronic device according to an embodiment of the present application.
[0058] Reference numerals:
[0059] Bottom plate 100; first mounting plate 101; second mounting plate 102; first ink tube 103; second ink tube 104; second nozzle assembly 110; first connecting plate 120; first convex portion 121; second connecting plate 130; second convex portion 131; third convex portion 132; first driving member 140; first push block 141; second driving member 150; second push block 151; first fixing frame 160; second spring 161; first spring 162; first nozzle assembly 170; test sample 200 with ink; first ink line 210; second ink line 220; inkjet control module 1001; image detection processing module 1002; offset analysis module 1003; deviation correction control module 1004; processor 1101; memory 1102; input / output interface 1103; communication interface 1104; bus 1105. DETAILED DESCRIPTION
[0060] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0061] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0062] In the description of this application, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0063] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.
[0064] At present, wide-format inkjet printing equipment has become the mainstream, and each color in the wide-format inkjet printing equipment requires a large number of nozzles to be spliced. People usually set an adjustable bottom plate 100 device at the position where the nozzles are fixed, so as to avoid uneven printing at the splicing point after multiple nozzles are spliced, and the printed image is not parallel to the moving direction of the paper; but this adjustable device usually needs to be adjusted manually, and it is necessary to subjectively judge whether it has been accurately adjusted. This method takes a lot of time, the adjustment efficiency is not high, and deviations may often still occur after adjustment, which leads to poor inkjet effects.
[0065] Based on this, the present application proposes a nozzle splicing position adjustment method, device, electronic device and storage medium, aiming to achieve automatic fine-tuning of the nozzle assembly, thereby improving efficiency while reducing labor costs and making the nozzle adjustment more precise.
[0066] Reference Figure 2 , Figure 3 and Figure 4 , Figure 4The inkjet printing device used in the nozzle splicing position adjustment method of the embodiment of the present application includes a base plate 100, an adjustment module and a nozzle module, the nozzle module includes a first nozzle assembly 170 and a second nozzle assembly 110, the first nozzle assembly 170 and the second nozzle assembly 110 are arranged in an alternating manner; the adjustment module is connected to the first nozzle assembly 170 and the second nozzle assembly 110 respectively. The adjustment module includes a first adjustment component and a second adjustment component, the first adjustment component includes a first driving member 140 and a first push block 141, the first driving member 140 is connected to the first push block 141, and the side wall of the first push block 141 is against the side wall of the first protrusion 121, the second adjustment component includes a second driving member 150 and a second push block 151, the second driving member 150 is connected to the second push block 151, the side wall of the second push block 151 is against the side wall of the second protrusion 131, and the side wall of the second push block 151 is also against the side wall of the third protrusion 132; the second nozzle assembly 110 is connected to the bottom plate 100 through the third spring, and the second nozzle assembly 1 A first connecting plate 120 and a second connecting plate 130 are provided on opposite sides of 10, a first mounting plate 101 is provided on the first connecting plate 120, a second mounting plate 102 is provided on the second connecting plate 130, a first convex portion 121 is provided on the first mounting plate 101, a second convex portion 131 and a third convex portion 132 are provided on the second mounting plate 102; a first fixing frame 160 is provided on the bottom plate 100, the first driving member 140 and the first pushing block 141 are connected by a first connecting rod, the first connecting rod shell is movably penetrated in the first fixing frame 160, and the first fixing frame 160 is connected to the first mounting plate 101 by a first spring 162 and a second spring 161. The first driving member 140 is used to drive the first push block 141 to move in the vertical direction after receiving the first offset, so that the first protrusion 121 drives the second nozzle assembly 110 away from or close to the side where the first protrusion 121 is provided. The second driving member 150 is used to drive the second push block 151 to move in the vertical direction after receiving the second offset, so that the second protrusion 131 and the third protrusion 132 drive the second nozzle assembly 110 away from or close to the first push block 141, thereby realizing fine-tuning operation of the second nozzle assembly 110.
[0067] The first embodiment of the present application is based on Figure 4 The inkjet printing device shown in the figure provides a method for adjusting the nozzle joint position. Figure 1 , Figure 1 This is a flow chart of the steps of the nozzle splicing position adjustment method according to an embodiment of the present application. Figure 1 The illustrated process steps include but are not limited to steps S101 to S106.
[0068] Step S101, controlling the first nozzle assembly and the second nozzle assembly to alternately perform inkjet operation on a test sample to obtain a test sample with ink marks.
[0069] Step S102: performing image recognition on the ink on the test sample sheet with ink to obtain a first image.
[0070] Step S103: pre-process the first image to obtain a second image.
[0071] Step S104, obtaining a first ink line and a second ink line based on the second image; wherein the first ink line is formed by inkjetting the first nozzle assembly, and the second ink line is formed by inkjetting the second nozzle assembly.
[0072] Step S105 , calculating the offset based on the first ink line and the second ink line.
[0073] Step S106: When it is detected that the offset is a non-zero value, the position of the second nozzle assembly is adjusted based on the offset control adjustment module.
[0074] In the steps S101 to S106 shown in the embodiment of the present application, the first nozzle assembly 170 and the second nozzle assembly 110 are alternately subjected to inkjet operation on the test sample to generate ink marks for subsequent judgment; the first image is preprocessed to more accurately capture the image contour on the first image, and at the same time, unnecessary elements on the first image are omitted, so that the second image occupies less memory, thereby making the processing more efficient. The first ink line 210 and the second ink line 220 are obtained to determine the splicing position of the first nozzle assembly 170 and the second nozzle assembly 110, and the calculation of the offset facilitates the first drive member 140 and the second drive member 150 to adjust the position of the nozzle assembly according to the offset, thereby realizing automatic fine-tuning of the nozzle assembly.
[0075] The nozzle splicing position adjustment method according to the embodiment of the present application has at least the following beneficial effects: firstly, the first nozzle assembly 170 and the second nozzle assembly 110 to be adjusted are subjected to inkjet operation on the test sample, and the ink marks on the test sample are identified and collected and then pre-processed to obtain a second image, and the first ink line 210 and the second ink line 220 in the second image are obtained, wherein the first ink line 210 is formed by inkjetting of the first inkjet assembly, and the second ink line 220 is formed by inkjetting of the second inkjet assembly, and the offset is calculated according to the first ink line 210 and the second ink line 220, and when the offset is non-zero, the second nozzle assembly 110 is adjusted according to the offset control adjustment module. In this way, there is no need for manual adjustment, and automatic fine-tuning of the spliced nozzles is realized, which improves efficiency and reduces labor costs.
[0076] In step S101 of some embodiments, reference Fig.10The test sample is arranged on a conveyor belt, and the conveyor belt is arranged on an operating table. When the first nozzle assembly 170 and the second nozzle assembly 110 are ready to perform inkjet operation, the operating table will be started, thereby driving the conveyor belt to move along the first direction, and the conveyor belt will drive the test sample to move along the first direction, and the first nozzle assembly 170 and the second nozzle assembly 110 will perform inkjet operation on the test sample according to a preset time interval. The specific operation is as follows: as the conveyor belt drives the test sample to move along the first direction, the first nozzle assembly first performs the first inkjet operation, and then leaves the first ink mark on the test sample, and identifies it as the first first ink line 210. When the preset time interval has passed, After that, the second nozzle assembly performs a second inkjet operation, thereby leaving a second ink mark on the test sample, and identifies it as the second ink line 220. After the preset time interval passes again, the first nozzle assembly performs a third inkjet operation, thereby leaving a third ink mark on the test sample, and identifies it as the second first ink line 210. In this way, the inkjet operation of the first nozzle assembly 170 and the second nozzle assembly 110 on the test sample is completed, and two first ink marks and one second ink mark, a total of three ink marks, are left on the test sample, thereby obtaining a test sample 200 with ink marks, so as to compare the positional relationship between the first nozzle assembly 170 and the second nozzle assembly 110.
[0077] In addition, in step S101 of another embodiment, referring to Fig.10 , a first sample 230 and a second sample 240 are further provided on opposite sides of the test sample, and the first sample 230 and the second sample 240 are also provided on the conveyor belt and move along the first direction with the conveyor belt. In the present embodiment, the ink on the test sample corresponds to the ink sprayed by the overlapping part after the first nozzle assembly 170 and the second nozzle assembly 110 are spliced, that is, the range covered by the test sample is the range to which the first nozzle assembly 170 and the second nozzle assembly 110 can spray ink at the same time, and the ink on the first sample 230 corresponds to the ink sprayed by the non-overlapping part of the first nozzle assembly 170, that is, a part of the first ink line 210. Similarly, the ink on the second sample 240 corresponds to the ink sprayed by the non-overlapping part of the second nozzle assembly 110, that is, a part of the second ink line 220. Then, the first ink line and the second ink line on the test sample 200 with ink can be distinguished by identifying the ink on the first sample 230 and the second sample 240.
[0078] In step S102 of some embodiments, the test sample 200 with ink is identified and captured by a camera with an electrically coupled device image sensor and a visual sensor to obtain a first image. The use of a camera with an electrically coupled device image sensor can capture the test sample 200 with ink more clearly.
[0079] Reference Figure 5In some embodiments, step S103 may include but is not limited to steps S201 to S202.
[0080] Step S201, grayscale and denoise the first image to obtain a third image.
[0081] Step S202: Use the Canny edge detection algorithm to process the third image to obtain a second image.
[0082] In step S201 of some embodiments, grayscale processing is used, that is, the red, green and blue channels of each pixel in the first image are compressed into a gray channel, that is, the red, green and blue pixel values of each pixel in the first image are replaced with a grayscale value, and the grayscale value used in this application is 0.2989×R+0.587×G+0.114×B, where R, G and B are the pixel values of the red, green and blue channels in the first image, respectively. Grayscale processing of the first image can facilitate subsequent processing operations on the first image and improve efficiency. After the first image is grayscaled, Gaussian filtering is used to denoise the first image and retain edge information to a certain extent, where Gaussian filtering uses a Gaussian function to perform a convolution operation on the first image, and its formula is as follows:
[0083]
[0084] Among them, G is a two-dimensional Gaussian function, δ is the standard deviation of the Gaussian distribution, which controls the degree of smoothing, and x and y represent the horizontal and vertical coordinates of the pixel, respectively. The convolution operation is to apply the Gaussian function to each pixel in the first image, and replace each pixel with the weighted average of the surrounding pixels adjacent to the pixel, so as to achieve a smoothing effect and then realize denoising. The weight is determined by the Gaussian function, but the Gaussian function weights each pixel inconsistently. The pixel located at the center of the first image is heavily weighted, while the weight of the surrounding pixels is gradually reduced. Replacing each pixel with the weighted average of the surrounding pixels adjacent to the pixel allows the edge information to be better preserved, thereby obtaining the third image.
[0085] In step S202 of some embodiments, this step is actually an operation of enhancing the third image, and its specific steps are: using the Canny edge detection algorithm to extract the edge in the third image to obtain accurate edge information, and its specific steps are: using the Sobel operator to calculate the gradient of each pixel in the third image, and the magnitude of the gradient represents the rate of change of the brightness in the third image, that is, the strength of the edge. The calculation formula of the gradient is:
[0086]
[0087] Among them, I is the brightness value of the image, Gx and G y is the gradient in the x and y directions, where x and y are the horizontal and vertical coordinates of the pixel respectively.
[0088] At the same time, the edge intensity may be uneven in different directions, so the non-maximum suppression method is used to remove the edges of non-local maxima and retain the prominent edges. Finally, according to the preset high threshold and low threshold, the pixels with edge intensity higher than the high threshold are regarded as edges, and the pixels with edge intensity lower than the low threshold are regarded as non-edges. If the pixel point with edge intensity between the high threshold and the low threshold is adjacent to the pixel point with edge intensity higher than the high threshold, the pixel point is also regarded as an edge, otherwise it is regarded as a non-edge. The pixels belonging to the edge are further connected to obtain the second image.
[0089] Steps S201 to S202 shown in the embodiment of the present application complete the preprocessing operation on the first image, so that the obtained second image is more convenient for recognition and operation in subsequent steps.
[0090] In step S104 of some embodiments, there are two first ink lines 210 and only one second ink line 220, wherein, referring to Fig.10 The second ink line 220 is printed by the second nozzle assembly 110 between the two first ink lines 210, so as to better judge the positional relationship between the first nozzle assembly 170 and the second nozzle assembly 110. Since the two first ink lines 210 are formed by inkjet printing by the first nozzle assembly 170, the two first ink lines 210 are in parallel, and the test sample moves along the first direction.
[0091] Reference Figure 6 In some embodiments, step S105 may include but is not limited to steps S301 to S303.
[0092] Step S301, converting the first ink line into a first straight line equation, determining the slope in the first straight line equation, and obtaining a first slope.
[0093] Step S302, converting the second ink line into a second straight line equation, determining the slope of the second straight line equation, and obtaining a second slope.
[0094] Step S303: compare the first slope and the second slope, and when the first slope and the second slope are different, calculate the offset.
[0095] In step S301 of some embodiments, the two first ink lines 210 are converted into polar coordinates using the Hough transform straight line detection method, and then the two first ink lines 210 in polar coordinates are converted into first straight line equations with slope and intercept based on the relationship between polar coordinates and rectangular coordinates, and the slope is extracted to obtain the first slope, wherein, since the two first ink lines 210 are parallel, the first slopes of the two first ink lines 210 are equal.
[0096] In step S302 of some embodiments, the Hough transform straight line detection method is used to convert the second ink line 220 into polar coordinates, and then the second ink line 220 in polar coordinates is converted into a second straight line equation with a slope and an intercept based on the relationship between polar coordinates and rectangular coordinates, and the slope is obtained to obtain the second slope.
[0097] In step S303 of some embodiments, the first slope and the second slope are compared. If the slopes are equal, the next step is performed. If the slopes are not equal, the offset is calculated.
[0098] Steps S301 to S303 shown in the embodiment of the present application can reflect whether the corresponding first nozzle assembly 170 and the second nozzle assembly 110 are in a parallel state by comparing the first slope and the second slope. If the slopes are not equal, the first nozzle assembly 170 and the second nozzle assembly 110 are in a non-parallel state. At this time, the splicing position of the nozzle should be regarded as an offset state, and then proceed to the step of calculating the offset.
[0099] Reference Figure 6 In some embodiments, step S303 may also include but is not limited to steps S304 to S305.
[0100] Step S304: when the first slope and the second slope are the same, the distance between the first ink line and the second ink line is calculated according to the first straight line equation and the second straight line equation to obtain the first distance and the second distance.
[0101] Step S305: when the first distance and the second distance are different, an offset is calculated.
[0102] In step S304 of some embodiments, referring to Fig.10 The second ink line 220 is located between the two first ink lines 210 , the first distance is the distance between the second ink line 220 and the first ink line 210 located above, and the second distance is the distance between the second ink line 220 and the first ink line 210 located below.
[0103] In step S305 of some embodiments, the values of the first distance and the second distance are compared, and if the values are not equal, the process proceeds to the step of calculating the offset.
[0104] Steps S305 to S306 shown in the embodiment of the present application calculate the distance between the second ink line 220 and the two first ink lines 210, so as to determine whether the second ink line 220 is located in the middle of the first ink line 210. When the first distance and the second distance are equal, the first nozzle assembly 170 and the second nozzle assembly 110 are regarded as perfectly spliced, and when the first distance and the second distance are not equal, the offset is calculated.
[0105] Reference Figure 7 In some embodiments, step S303 and step S305 may include but are not limited to steps S401 to S404.
[0106] Step S401, calculating the geometric center coordinates of the first ink line to obtain the first center coordinates.
[0107] Step S402, calculating the geometric center coordinates of the second ink line to obtain the second center coordinates.
[0108] Step S403: the first center coordinate includes a first ordinate and a first abscissa, the second center coordinate includes a second ordinate and a second abscissa, and the absolute value of the difference between the first ordinate and the second ordinate is calculated to obtain a first offset.
[0109] Step S404: Calculate the absolute value of the difference between the first horizontal coordinate and the second horizontal coordinate to obtain a second offset.
[0110] In step S401 of some embodiments, since there are two first ink lines 210, in order to facilitate the calculation of the geometric center coordinates of the first ink lines 210, the outlines of the two first ink lines 210 are extracted as a thick line, and the second ink line 220 is located inside the thick line at this time. At this time, the geometric center coordinates of the thick line are calculated again to obtain the first center coordinates, wherein the first center coordinates include the horizontal and vertical coordinates of the point.
[0111] In step S402 of some embodiments, the geometric center coordinates of the first ink line 210 are calculated according to the second straight line equation to obtain second center coordinates, wherein the second center coordinates include the horizontal coordinate and the vertical coordinate of the point.
[0112] In step S403 of some embodiments, the ordinates of the first center coordinate and the second center coordinate are respectively obtained to obtain the first ordinate and the second ordinate, and then the first ordinate and the second ordinate are subtracted and the absolute value is taken to obtain the first offset.
[0113] In step S404 of some embodiments, the horizontal coordinates of the first center coordinate and the second center coordinate are respectively obtained to obtain the first horizontal coordinate and the second horizontal coordinate, and then the first horizontal coordinate and the second horizontal coordinate are subtracted and the absolute value is taken to obtain the second offset.
[0114] In steps S401 to S404 shown in the embodiment of the present application, the outlines of the two first ink lines 210 are extracted as a thick line to facilitate the subsequent comparison of the geometric center coordinates, and the absolute value of the difference between the vertical coordinates of the first center coordinate and the second center coordinate is calculated to determine the amount of adjustment required for the second nozzle assembly 110 in the vertical coordinate direction, and the absolute value of the difference between the horizontal coordinates of the first center coordinate and the second center coordinate is calculated to determine the amount of adjustment required for the second nozzle assembly 110 in the horizontal coordinate direction, thereby judging the offset of the first ink line 210 in two directions, so that the subsequent adjustment of the second nozzle assembly 110 is more accurate.
[0115] Reference Figure 8 In some embodiments, step S106 may include but is not limited to steps S501 to S502.
[0116] Step S501, controlling the second driving member to lock.
[0117] Step S502, controlling the first driving member to drive the first pushing block so that the first protrusion drives the second nozzle assembly, causing the second nozzle assembly to be adjusted along the longitudinal coordinate direction according to the first offset.
[0118] In step S501 of some embodiments, after receiving the offset, the second driving member 150 is first locked by controlling the adjustment module to ensure that the second pushing block 151 connected to the second driving member 150 is also in a locked state.
[0119] In step S502 of some embodiments, the adjustment module controls the first driving member 140 to drive the first push block 141 connected thereto to move in the vertical direction according to the first offset. When the first push block 141 moves downward in the vertical direction, the side wall of the first push block 141 squeezes the first convex portion 121, and the first convex portion 121 is provided on the first connecting plate 120, the first connecting plate 120 is fixed on the first mounting plate 101, and the first mounting plate 101 is provided on the second nozzle assembly 110, so the movement of the first convex portion 121 will drive the second nozzle assembly 110 moves toward the side where the first protrusion 121 is provided, that is, it moves along the length direction of the first spring 162 and compresses the first spring 162. At the same time, the movement of the second nozzle assembly 110 will also cause the third spring to deform. When the first push block 141 moves upward in the vertical direction, the side wall of the first push block 141 no longer squeezes the first protrusion 121. At this time, under the reaction force of the third spring and the first spring 162, the second nozzle assembly 110 moves along the length direction of the first spring 162 toward the side away from the first protrusion 121.
[0120] Steps S501 to S502 shown in the embodiment of the present application lock the second driving member 150 and the second push block 151 to ensure that only one end of the second nozzle assembly 110 is movable when fine-tuning is performed, thereby ensuring the accuracy of the adjustment. The first protrusion 121 is a structure in which the cross-sectional area gradually decreases from top to bottom, and the first push block 141 is used to enable the first protrusion 121 to drive the second nozzle assembly 110 to move, so that the second nozzle assembly 110 provided with one end of the first protrusion 121 can perform a "tail swinging" activity along the vertical coordinate, thereby achieving fine-tuning of the second nozzle assembly 110 on the vertical coordinate, wherein the distance moved by the first push block 141 in the vertical direction is linearly related to the distance moved by the second nozzle assembly 110 on the vertical coordinate. When different first push blocks 141 are replaced, the linear relationship is also different, which is convenient for adapting to more scenarios.
[0121] Reference Figure 8 In some embodiments, step S502 may also include but not limited to steps S503 to S504.
[0122] Step S503, controlling the first driving member to lock.
[0123] Step S504, controlling the second driving member to drive the second pushing block to make the second convex portion and the third convex portion drive the nozzle assembly, so as to cause the second nozzle assembly to be adjusted along the horizontal axis direction according to the second offset.
[0124] In step S503 of some embodiments, after receiving the offset, the first driving member 140 is first locked by controlling the adjustment module to ensure that the first pushing block 141 connected to the first driving member 140 is also in a locked state.
[0125] In step S504 of some embodiments, the adjustment module controls the second driving member 150 to drive the second push block 151 connected thereto to move in the vertical direction according to the second offset. When the second push block 151 moves downward in the vertical direction, the side wall of the second push block 151 squeezes the second convex portion 131 and the third convex portion 132 abutting against it. The second convex portion 131 and the third convex portion 132 are arranged on the second connecting plate 130, and the second connecting plate 130 is fixed on the second mounting plate 102. The second mounting plate 102 is arranged on the second nozzle assembly 110, so the second convex portion 131 and the third convex portion 132 The movement will drive the second nozzle assembly 110 to move toward the direction close to the first push block 141, that is, it moves along the length direction of the second spring 161 and compresses the second spring 161. At the same time, the movement of the second nozzle assembly 110 will also cause the third spring to deform. When the second push block 151 moves upward in the vertical direction, the side wall of the second push block 151 no longer squeezes the second protrusion 131 and the third protrusion 132. At this time, under the reaction force of the third spring and the second spring 161, the second nozzle assembly 110 moves along the length direction of the second spring 161 toward the side away from the first push block 141.
[0126] It should be noted that, in some embodiments, after completing step S504, the process will jump to step S101 to implement a cycle, so as to monitor the splicing position of the second nozzle assembly 110 in real time to ensure the accuracy of the adjustment. At the same time, the automatic adjustment of the second nozzle assembly 110 is also fully realized. Even if the second nozzle assembly 110 is manually offset after adjustment, it can still be accurately adjusted in the next cycle.
[0127] It should be noted that the method of the embodiment of the present application is aimed at adjusting the positions of two nozzle assemblies. When a new nozzle assembly is introduced and needs to be adjusted, the original second nozzle assembly 110 will serve as the new first nozzle assembly 170, and the newly introduced nozzle assembly will serve as the new second nozzle assembly 110, and then the method of the embodiment of the present application will be implemented to achieve position adjustment when multiple nozzle assemblies are spliced.
[0128] Steps S503 to S504 shown in the embodiment of the present application lock the first driving member 140 and the first push block 141 to ensure that only one end of the second nozzle assembly 110 is movable when fine-tuning is performed, thereby ensuring the accuracy of the adjustment. The second push block 151 is also a structure in which the cross-sectional area of the assembly decreases from top to bottom, and the second push block 151 is used to drive the second protrusion 131 and the third protrusion 132 to drive the movement of the nozzle assembly, so that the second nozzle assembly 110 moves in the direction of the horizontal axis, that is, moves in a direction away from or close to the first push block 141, thereby achieving fine-tuning of the second nozzle assembly 110 on the horizontal axis, wherein the distance moved by the second push block 151 in the vertical direction is linearly related to the distance moved by the second nozzle assembly 110 on the horizontal axis, and the linear relationship is different when different second push blocks 151 are replaced, so as to adapt to more scenarios.
[0129] Reference Fig. 9 , Fig. 9 The schematic diagram of the structure of the nozzle adjustment device of the second embodiment of the present application; the nozzle adjustment device of the embodiment of the present application is applied to Figure 4 Schematic diagram of an inkjet printing device. The nozzle adjustment device includes:
[0130] The inkjet control module 1001 is configured to control the first nozzle assembly 170 and the second nozzle assembly 110 to alternately perform inkjet operation on the test sample to obtain a test sample 200 with ink marks;
[0131] The image detection processing module 1002 is configured to perform image recognition on the ink on the test sample 200 with ink to obtain a first image; pre-process the first image to obtain a second image; obtain a first ink line 210 and a second ink line 220 based on the second image; wherein the first ink line 210 is formed by the first nozzle assembly 170 through inkjet, and the second ink line 220 is formed by the second nozzle assembly 110 through inkjet;
[0132] The offset analysis module 1003 is configured to calculate the offset based on the first ink line 210 and the second ink line 220;
[0133] The deviation correction control module 1004 is configured to adjust the position of the second nozzle assembly 110 based on the offset control adjustment module when it is detected that the offset is a non-zero value.
[0134] In the embodiment of the present application, the first nozzle assembly 170 and the second nozzle assembly 110 that need to be adjusted are first operated to perform inkjet operation on the test sample through the inkjet control module 1001, and the ink marks on the test sample are identified and collected by the image detection control module and then preprocessed to obtain the second image, and the first ink line 210 and the second ink line 220 in the second image are obtained, wherein the first ink line 210 is formed by the first inkjet assembly and the second ink line 220 is formed by the second inkjet assembly, and the offset analysis module 1003 calculates the offset according to the first ink line 210 and the second ink line 220, and finally the correction control module 1004 is used to adjust the second nozzle assembly 110 according to the offset control adjustment module when the offset is non-zero. In this way, there is no need for manual adjustment, and automatic fine-tuning of the spliced nozzles is realized, which improves efficiency and reduces labor costs.
[0135] The third aspect of the present application also provides an electronic device, which includes a memory 1102 and a processor 1101. The memory 1102 stores a computer program, and the processor 1101 implements the nozzle splicing position adjustment method of the first aspect of the present application when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.
[0136] Reference Fig.11 , Fig.11 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. The electronic device includes:
[0137] The processor 1101 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0138] The memory 1102 can be implemented in the form of a read-only memory, a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1102 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1102, and the processor 1101 is called to execute the television frame laser method of the embodiment of this application;
[0139] Input / output interface 1103, used to implement information input and output;
[0140] The communication interface 1104 is used to realize the communication interaction between the device and other devices, and the communication can be realized by wired mode or wireless mode;
[0141] Bus 1105, which transmits information between the various components of the device;
[0142] The processor 1101 , the memory 1102 , the input / output interface 1103 and the communication interface 1104 are connected to each other in communication within the device via the bus 1105 .
[0143] The fourth aspect embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method for adjusting the nozzle splicing position of the above-mentioned first aspect embodiment is implemented.
[0144] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0145] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0146] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0147] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0148] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0149] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0150] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0151] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0152] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0154] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or 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 multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0155] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.
Claims
1. A method for adjusting the nozzle splicing position, characterized in that: Applicable to an inkjet printing device, the inkjet printing device comprises an adjustment module and a nozzle module, the nozzle module comprises a first nozzle assembly and a second nozzle assembly, the first nozzle assembly and the second nozzle assembly are arranged in a staggered manner; the adjustment module is connected to the first nozzle assembly and the second nozzle assembly respectively; The method comprises: Controlling the first nozzle assembly and the second nozzle assembly to alternately perform inkjet operation on the test sample to obtain a test sample with ink marks; Performing image recognition on the ink on the test sample with ink to obtain a first image; Preprocessing the first image to obtain a second image; Obtaining a first ink line and a second ink line based on the second image; wherein the first ink line is formed by the first nozzle assembly spraying ink, and the second ink line is formed by the second nozzle assembly spraying ink; Calculate an offset based on the first ink line and the second ink line; When it is detected that the offset is a non-zero value, the adjusting module is controlled to adjust the position of the second nozzle assembly based on the offset.
2. The nozzle splicing position adjustment method according to claim 1, characterized in that: The calculating the offset based on the first ink line and the second ink line includes: Converting the first ink line into a first straight line equation, determining the slope of the first straight line equation, and obtaining a first slope; Converting the second ink line into a second straight line equation, determining the slope of the second straight line equation, and obtaining a second slope; The first slope and the second slope are compared, and when the first slope and the second slope are different, the offset is calculated.
3. The nozzle splicing position adjustment method according to claim 2, characterized in that: After comparing the first slope and the second slope, the method further includes: When the first slope and the second slope are the same, the distance between the first ink line and the second ink line is calculated according to the first straight line equation and the second straight line equation to obtain a first distance and a second distance; When the first distance and the second distance are different, the offset is calculated.
4. The nozzle splicing position adjustment method according to claim 2 or 3, characterized in that: The offset includes a first offset and a second offset; The calculating the offset comprises: Calculating the geometric center coordinates of the first ink line to obtain first center coordinates; Calculating the geometric center coordinates of the second ink line to obtain the second center coordinates; The first center coordinates include a first ordinate and a first abscissa, the second center coordinates include a second ordinate and a second abscissa, and the absolute value of the difference between the first ordinate and the second ordinate is calculated to obtain the first offset; The absolute value of the difference between the first horizontal coordinate and the second horizontal coordinate is calculated to obtain the second offset.
5. The nozzle splicing position adjustment method according to claim 4, characterized in that: The inkjet printing device comprises: A first connecting plate and a second connecting plate are provided on opposite sides of the second nozzle assembly, a first mounting plate is provided on the first connecting plate, a second mounting plate is provided on the second connecting plate, a first convex portion is provided on the first mounting plate, and a second convex portion and a third convex portion are provided on the second mounting plate; The adjusting module comprises a first adjusting component and a second adjusting component, the first adjusting component comprises a first driving member and a first pushing block, the first driving member is connected to the first pushing block, the side wall of the first pushing block abuts against the side wall of the first protrusion, the second adjusting component comprises a second driving member and a second pushing block, the second driving member is connected to the second pushing block, the side wall of the second pushing block abuts against the side wall of the second protrusion, and the side wall of the second pushing block also abuts against the side wall of the third protrusion; The step of controlling the adjustment module to adjust the position of the second nozzle assembly based on the offset comprises: Controlling the second driving member to lock; The first driving member is controlled to drive the first pushing block so that the first protrusion drives the second nozzle assembly, and the second nozzle assembly is prompted to adjust along the longitudinal coordinate direction according to the first offset.
6. The nozzle splicing position adjustment method according to claim 5, characterized in that: After causing the second nozzle assembly to adjust along the longitudinal coordinate direction according to the first offset, the method further comprises: Controlling the first driving member to lock; The second driving member is controlled to drive the second push block so that the second convex portion and the third convex portion drive the nozzle assembly, thereby causing the second nozzle assembly to be adjusted along the horizontal axis direction according to the second offset.
7. The nozzle splicing position adjustment method according to claim 1, characterized in that: The preprocessing of the first image to obtain the second image includes: grayscale and denoise the first image to obtain a third image; The third image is processed using a Canny edge detection algorithm to obtain the second image.
8. A nozzle adjustment device, characterized in that: Applicable to an inkjet printing device, the inkjet printing device comprises an adjustment module and a nozzle module, the nozzle module comprises a first nozzle assembly and a second nozzle assembly, the first nozzle assembly and the second nozzle assembly are arranged in a staggered manner; the adjustment module is connected to the first nozzle assembly and the second nozzle assembly respectively; The device comprises: An inkjet control module is configured to control the first nozzle assembly and the second nozzle assembly to alternately perform inkjet operations on the test sample to obtain a test sample with ink marks; The image detection processing module is configured to perform image recognition on the ink on the test sample with ink to obtain a first image; pre-process the first image to obtain a second image; and obtain a first ink line and a second ink line based on the second image; wherein the first ink line is formed by the first nozzle assembly through inkjet, and the second ink line is formed by the second nozzle assembly through inkjet; an offset analysis module, configured to calculate an offset based on the first ink line and the second ink line; The deviation correction control module is configured to control the adjustment module to adjust the position of the second nozzle assembly based on the offset when it is detected that the offset is a non-zero value.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the nozzle splicing position adjustment method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for adjusting the nozzle splicing position according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Large-breadth conduction band UV digital printer
CN110949007A
Nozzle adjusting device of jet printing equipment and jet printing equipment
CN111098598A
Ink-jet printing head splicing correction system and correction method thereof
CN112319066A
Image printing method and device during offset of splicing nozzle, equipment and storage medium
CN115476590A
Method and system for detecting ink droplets jetted by jet printing nozzle array
CN116381266A