A method for correcting pattern transfer position based on visual image coordinate system

Through the automated optical inspection system based on the visual image coordinate system, the problems of low manual alignment efficiency and poor mechanical alignment flexibility in the traditional pattern transfer process are solved, high-precision correction of the pattern transfer position is achieved, and production is improved. efficiency and product quality.

CN118485722BActive Publication Date: 2024-10-01IRIS (XIAMEN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410940159.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-01
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

The traditional pattern transfer process relies on manual alignment, which has low efficiency and large errors. The mechanical alignment system has fixed errors and poor flexibility, making it difficult to meet the high-precision and high-efficiency requirements of pattern transfer.

Method used

Using the pattern transfer position correction method based on the visual image coordinate system, the lens carrier coordinate system and the steel plate pattern coordinate system are established through the automated optical inspection system (AOI), and the pattern position is obtained and corrected in real time to achieve high-precision alignment. .

Benefits of technology

It significantly improves the accuracy and consistency of pattern transfer, reduces errors, improves production efficiency and product quality, and is suitable for the diversified needs of different products and patterns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118485722B_ABST
    Figure CN118485722B_ABST
Patent Text Reader

Abstract

The present invention provides a method for correcting the pattern transfer position based on a visual image coordinate system, and relates to the field of image processing technology. The method comprises the following steps: a. obtaining a lens carrier coordinate system; b. obtaining a steel plate pattern coordinate system; c. performing lens carrier position correction; d. performing steel plate pattern position correction; e. obtaining correction of pattern transfer position deviation. The method realizes accurate detection and correction of the pattern transfer position through an automated optical detection system. By establishing a lens carrier coordinate system, correcting the lens carrier position, obtaining a steel plate pattern coordinate system, correcting the steel plate pattern position, and obtaining correction of the pattern transfer position deviation, the pattern position can be obtained and corrected in real time, ensuring high-precision alignment of the pattern, thereby improving production efficiency and product quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a pattern transfer position correction method based on a visual image coordinate system. Background Art

[0002] In modern manufacturing, pattern transfer technology is widely used in the appearance decoration and functional marking of various products, such as pattern printing on electronic product shells, logo transfer on automotive parts, etc. The quality of pattern transfer directly affects the appearance and market competitiveness of the product, so it is crucial to ensure accurate alignment and high-quality transfer of the pattern.

[0003] Traditional pattern transfer processes usually rely on manual alignment, and the operator needs to manually adjust the position of the pattern under a microscope or through a magnifying glass. This method is not only time-consuming, but also labor-intensive. Moreover, due to errors in human vision and manual operation, the accuracy of manual alignment is difficult to guarantee, which can easily lead to problems such as pattern offset and ghosting, affecting product quality. Some mechanical alignment systems use mechanical positioning devices to align patterns. Although this can increase the alignment speed, factors such as wear and thermal expansion of the mechanical device will still introduce fixed errors, affecting the alignment accuracy. Mechanical alignment systems are usually designed for specific products, lack flexibility, and are difficult to adapt to the diverse needs of different products and patterns.

[0004] Therefore, in view of the low efficiency and large errors of traditional manual alignment methods, and the fixed errors and poor flexibility of existing mechanical alignment methods, there is an urgent need for a pattern transfer position correction method that uses automated visual inspection technology for position correction, which can significantly improve the alignment accuracy and production efficiency to meet the needs of pattern transfer process. Summary of the invention

[0005] In view of this, in order to overcome the shortcomings of the traditional pattern transfer process and mechanical alignment system, the purpose of the present invention is to propose a pattern transfer position correction method based on a visual image coordinate system, aiming to improve the accuracy and consistency of the pattern transfer position, and to achieve accurate detection and correction of the pattern transfer position through an automated optical inspection system (AOI). This method can obtain the pattern position in real time and perform corrections by establishing a lens carrier coordinate system, correcting the lens carrier position, obtaining a steel plate pattern coordinate system, correcting the steel plate pattern position, and obtaining corrections for pattern transfer position deviations, thereby ensuring high-precision alignment of the pattern and improving production efficiency and product quality.

[0006] Based on the above purpose, in a first aspect, the present invention provides a method for correcting a pattern transfer position based on a visual image coordinate system, comprising the following steps:

[0007] Step 1: Obtain the lens carrier coordinate system, establish the world coordinate system of the carrier position through camera calibration, and calculate the deviation;

[0008] Step 2: Correct the lens carrier position by fitting the circular edge through image processing and edge extraction to determine the carrier position;

[0009] Step 3: Obtain the steel plate pattern coordinate system, and establish the reference coordinate system of the steel plate position through camera calibration and position adjustment;

[0010] Step 4: Correct the position of the steel plate pattern. By image enhancement and Mark point extraction, calculate the center coordinates of the pattern and compare them with the reference coordinates to obtain the deviation.

[0011] Step 5: Correct the deviation of the pattern transfer position and realize the pad printing action of the pattern in the correct position by moving the equipment.

[0012] As a further solution of the present invention, obtaining the lens carrier coordinate system includes the following steps:

[0013] Camera calibration: Use the calibration board to calibrate the camera and obtain the camera's intrinsic and extrinsic parameters;

[0014] Move the camera and establish a world coordinate system corresponding to the pixel coordinate system at each vehicle position. The Z axis of the world coordinate system is parallel to the optical axis of the camera.

[0015] Through multiple sampling and statistics, the reference position of each vehicle is determined.

[0016] As a further solution of the present invention, when determining the reference position of each carrier, a trolley is selected as a reference (trolley No. 1), a standard sample is placed, the equipment and the AOI program are started to run automatically 20 times, 20 reference images of each carrier position are obtained, and the average of each carrier position is calculated as the reference coordinate position, for a total of 8 reference positions (O1, O2, O3, O4, O5, O6, O7, O8).

[0017] As a further solution of the present invention, when determining the reference position of each carrier, it also includes calculating the deviation. For subsequent carriers, the deviation of each carrier position is calculated, for example, δx = X1 - Xo1, δy = Y1 - Yo1.

[0018] As a further solution of the present invention, obtaining the lens carrier coordinate system also includes pad printing calibration, including the following steps:

[0019] Sample placement: Align the rubber head to each hole of the flower on the No. 1 trolley, place the flower, start the equipment and AOI program, and save the pictures of the 8 holes of product n;

[0020] Calculation of reference coordinates: Ensure that the AOI program runs 20 times. If it is less than 20 times, repeat the step of placing the flower. If it is reached, calculate the reference coordinates according to the acupuncture point distribution map.

[0021] As a further solution of the present invention, obtaining the lens carrier coordinate system also includes pad printing positioning, including the following steps:

[0022] Deviation adjustment: The AOI system obtains the coordinates of each acupuncture point, calculates the deviation value based on the reference coordinates, and adjusts the alignment position of the rubber head.

[0023] As a further solution of the present invention, the lens carrier position correction includes the following steps:

[0024] Image processing: Input the image, perform threshold segmentation to extract the black circle, extract the black circle part and fill the holes and remove the edge burrs, calculate the maximum convex hull and the maximum circumscribed fitting circle of the area;

[0025] Edge extraction: Use the center and radius of the maximum circumscribed fitting circle to establish a circle-finding tool, divide the area into several regions, calculate the edge gradient, extract the edge points of each region, and fit a circle based on all the extracted edge points using the least squares method.

[0026] As a further solution of the present invention, when calculating edge points, an edge search area with a length of 25 is established every 10 pixels along the circumference direction, and a Gaussian filter is used to smooth the image. Points with a gradient value from dark to bright greater than 15 are found and extracted, and the edge point with the largest difference is taken. Then, the least squares method is used to fit the circle using the obtained edge points.

[0027] As a further solution of the present invention, when Gaussian filtering is used to smooth the image, the smoothing coefficient is 1.5.

[0028] As a further solution of the present invention, obtaining a steel plate pattern coordinate system includes the following steps:

[0029] Calibrate the lens to obtain the internal and external parameters of the camera;

[0030] Establish a world coordinate system corresponding to the pixel coordinate system at each steel plate position, and the Z axis of the world coordinate system is parallel to the optical axis of the camera;

[0031] Confirm that the pattern falls in the middle of the field of view and adjust the X and Y axes to meet the benchmark requirements.

[0032] As a further solution of the present invention, when obtaining the steel plate pattern coordinate system, when the pattern does not fall in the middle position of the field of view, continue to adjust the X-axis and Y-axis to meet the benchmark requirements. When the pattern falls in the middle position of the field of view, record the current reference coordinate system position. When the next pattern comes in, adjust the X-axis and Y-axis directions of the steel plate according to the previously recorded reference coordinates to obtain the correct pattern coordinates of the rubber head.

[0033] As a further solution of the present invention, the steel plate pattern position correction includes the following steps:

[0034] Delineate pattern areas and perform image enhancement;

[0035] Use dynamic threshold to find the Mark point area and filter the Mark points by morphological features;

[0036] Get the center of gravity of two Mark points, calculate the center coordinates of the pattern and display the crosshairs;

[0037] Compare with the reference coordinates to obtain the X-axis and Y-axis deviations.

[0038] As a further solution of the present invention, correction of the pattern transfer position deviation is obtained, comprising the following steps:

[0039] The benchmark determination process includes alignment in the pattern coordinate system and alignment in the carrier coordinate system;

[0040] Production alignment printing process, including compensation alignment of pattern coordinate system and carrier coordinate system;

[0041] Move the pad of the device to achieve pad printing at the correct position of the pattern.

[0042] As a further solution of the present invention, the benchmark determination process also includes camera calibration and benchmark determination, wherein:

[0043] Alignment within the pattern coordinate system, with the equipment rubber head aligned with the pattern center;

[0044] The alignment circle in the carrier coordinate system, the equipment rubber head is aligned with the center of the carrier;

[0045] Move the rubber head of the device to achieve the transfer action of the pattern to the correct position.

[0046] As a further solution of the present invention, the production alignment printing process also includes:

[0047] Alignment within the pattern coordinate system, calculation and compensation of deviations in the horizontal and vertical directions of the steel plate;

[0048] The alignment circle in the carrier coordinate system calculates and compensates for the deviations in the horizontal and vertical axis directions;

[0049] Move the rubber head of the device to achieve the transfer action of the pattern to the correct position.

[0050] Through the above steps, the present invention can achieve high-precision correction of the pattern transfer position, greatly improve production efficiency and product quality, and has significant application value and promotion prospects.

[0051] In another aspect of the present invention, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, any one of the above-mentioned methods for correcting the pattern transfer position based on the visual image coordinate system according to the present invention is executed.

[0052] In another aspect of the present invention, a computer-readable storage medium is provided, which stores computer program instructions, and when the computer program instructions are executed, any one of the above-mentioned methods for correcting the pattern transfer position based on the visual image coordinate system according to the present invention is implemented.

[0053] Compared with the prior art, the pattern transfer position correction method based on the visual image coordinate system proposed by the present invention has the following beneficial effects:

[0054] 1. High-precision positioning and correction are achieved: by obtaining the lens carrier coordinate system and the steel plate pattern coordinate system, accurate positioning at different positions and angles is ensured. This high-precision positioning and correction can significantly improve the accuracy of pattern transfer and reduce errors.

[0055] 2. High degree of automation: The pattern transfer position correction method based on the visual image coordinate system of the present invention uses visual imaging technology to automatically obtain and correct the coordinate system, reducing the interference and error of manual operation. The automated process improves production efficiency and reduces the difficulty of operation.

[0056] 3. Strong adaptability: Through dynamic threshold and morphological feature screening, it can adapt to different patterns and carriers, so that the method can maintain high accuracy and high reliability under different production conditions.

[0057] 4. Improved production efficiency: Through automatic correction and compensation alignment, the time for manual adjustment in the production process is reduced, and the overall production efficiency is improved. This effect is particularly significant in mass production.

[0058] 5. Reduced scrap rate: High-precision positioning and correction reduce errors in the pattern transfer process, thereby reducing scrap rate and saving materials and costs; multiple sampling and statistical determination of the reference position ensures the stability and reliability of the entire correction process. Even in long-term operation, it can maintain high accuracy.

[0059] 6. Wide application: The pattern transfer position correction method based on the visual image coordinate system of the present invention is not only applicable to the pattern transfer of lenses and steel plates, but can also be extended to other fields that require high-precision pattern transfer, such as electronic component manufacturing, precision instrument production, etc. The automated correction and positioning process reduces the errors and instability caused by human operation and improves the consistency and controllability of the overall operation.

[0060] In summary, the pattern transfer position correction method based on the visual image coordinate system of the present invention has significant beneficial effects in improving the accuracy, efficiency and stability of pattern transfer, while also expanding its application scope and being able to meet the needs of high precision and high efficiency in industrial production.

[0061] These and other aspects of the present application will be more concise and understandable in the following description of the embodiments. It should be understood that the above general description and the following detailed description are only exemplary and explanatory and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0063] In the figure:

[0064] Figure 1 The figure is a flow chart of a method for correcting pattern transfer position based on a visual image coordinate system according to an embodiment of the present invention.

[0065] Figure 2 It is a structural schematic diagram of a calibration plate in a pattern transfer position correction method based on a visual image coordinate system according to an embodiment of the present invention.

[0066] Figure 3 Schematic diagram of the world coordinate system in the pattern transfer position correction method based on the visual image coordinate system according to an embodiment of the present invention.

[0067] Figure 4 Schematic diagram of eight reference positions in a pattern transfer position correction method based on a visual image coordinate system according to an embodiment of the present invention.

[0068] Figure 5 The present invention is a flowchart of obtaining a lens carrier coordinate system in a pattern transfer position correction method based on a visual image coordinate system according to an embodiment of the present invention.

[0069] Figure 6 It is a schematic diagram of the maximum circumscribed fitting circle in the pattern transfer position correction method based on the visual image coordinate system according to an embodiment of the present invention.

[0070] Figure 7 It is a schematic diagram of the maximum fitting circle in the pattern transfer position correction method based on the visual image coordinate system according to an embodiment of the present invention.

[0071] Figure 8The diagram is a schematic diagram of calculating edge points for each region in a pattern transfer position correction method based on a visual image coordinate system according to an embodiment of the present invention.

[0072] Fig. 9 It is a schematic diagram of a circle-finding tool in a pattern transfer position correction method based on a visual image coordinate system according to an embodiment of the present invention.

[0073] Fig.10 The figure is a flow chart of the lens carrier position correction in the pattern transfer position correction method based on the visual image coordinate system according to an embodiment of the present invention.

[0074] Fig.11 The present invention is a flowchart of obtaining a steel plate pattern coordinate system in a pattern transfer position correction method based on a visual image coordinate system in an embodiment of the present invention.

[0075] Fig.12 It is a schematic diagram of the center coordinates of the pattern for correcting the position of the pattern on the steel plate in the pattern transfer position correction method based on the visual image coordinate system according to an embodiment of the present invention.

[0076] Fig.13 The present invention is a flow chart of the correction of the steel plate pattern position in the pattern transfer position correction method based on the visual image coordinate system in an embodiment of the present invention.

[0077] Fig.14 The present invention is a flowchart of a camera calibration and a reference determination process in a pattern transfer position correction method based on a visual image coordinate system according to an embodiment of the present invention.

[0078] Fig.15 It is a schematic flow chart of the production alignment transfer process in the pattern transfer position correction method based on the visual image coordinate system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0079] Below, the present application is further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0080] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0081] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, other steps or units inherent to a process, method, system, product or device that includes a series of steps or units.

[0082] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0083] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0084] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0085] In order to overcome the shortcomings of traditional pattern transfer processes and mechanical alignment systems, the present invention proposes a pattern transfer position correction method based on a visual image coordinate system, which aims to improve the accuracy and consistency of the pattern transfer position and realize accurate detection and correction of the pattern transfer position through an automated optical inspection system (AOI). This method can obtain the pattern position in real time and perform corrections by establishing a lens carrier coordinate system, correcting the lens carrier position, obtaining the steel plate pattern coordinate system, correcting the steel plate pattern position, and obtaining the correction of the pattern transfer position deviation, thereby ensuring high-precision alignment of the pattern and improving production efficiency and product quality.

[0086] See also Figure 1 As shown, an embodiment of the present invention provides a method for correcting pattern transfer position based on a visual image coordinate system, comprising the following steps:

[0087] Step S10: Acquire the lens carrier coordinate system, establish the world coordinate system of the carrier position through camera calibration, and calculate the deviation.

[0088] In this step, see Figures 2 to 5 As shown, when obtaining the lens carrier coordinate system, the following steps are included:

[0089] Step S101, camera calibration: calibrate the camera using a calibration board to obtain the camera's intrinsic and extrinsic parameters;

[0090] Step S102, moving the camera, establishing a world coordinate system corresponding to the pixel coordinate system at each vehicle position, where the Z axis of the world coordinate system is parallel to the optical axis of the camera;

[0091] Step S103: Determine the reference position of each carrier through multiple sampling and statistics.

[0092] Among them, when determining the reference position of each carrier, select a trolley as a reference (trolley No. 1), place the standard sample, start the equipment and AOI program to run automatically 20 times, obtain 20 reference pictures of each carrier position, and calculate the average of each carrier position as the reference coordinate position, with a total of 8 reference positions (O1, O2, O3, O4, O5, O6, O7, O8).

[0093] When determining the reference position of each carrier, it also includes calculating the deviation. For subsequent carriers, the deviation of each carrier position is calculated, for example, δx = X1 - Xo1, δy = Y1 - Yo1.

[0094] In this step, the lens carrier coordinate system is obtained, and pad printing calibration is also included, including the following steps:

[0095] Sample placement: Align the rubber head to each hole of the flower on the No. 1 trolley, place the flower, start the equipment and AOI program, and save the pictures of the 8 holes of product n;

[0096] Calculation of reference coordinates: Ensure that the AOI program runs 20 times. If it is less than 20 times, repeat the step of placing the flower. If it is reached, calculate the reference coordinates according to the acupuncture point distribution map.

[0097] In this step, the lens carrier coordinate system is obtained, and pad printing positioning is also included, including the following steps:

[0098] Deviation adjustment: The AOI system obtains the coordinates of each acupuncture point, calculates the deviation value based on the reference coordinates, and adjusts the alignment position of the rubber head.

[0099] Step S20, calibrating the lens carrier position, fitting the circular edge through image processing and edge extraction, and determining the carrier position.

[0100] In this step, see Figures 6 to 10 As shown, the lens carrier position correction includes the following steps:

[0101] Step S201, image processing: input a picture, perform threshold segmentation to obtain a black circle, extract the black circle part and perform hole filling and edge burr removal, calculate the maximum convex hull and the maximum circumscribed fitting circle of the region;

[0102] Step S202, edge extraction: establish a circle-finding tool with the center and radius of the maximum circumscribed fitting circle, divide the area into several regions, calculate the edge gradient, extract the edge points of each region, and fit a circle based on all the extracted edge points by the least squares method.

[0103] When calculating the edge points, an edge search area with a length of 25 is established every 10 pixels along the circumference. The image is smoothed using a Gaussian filter. Points with a gradient value from dark to bright greater than 15 are found and extracted. The edge point with the largest difference is taken, and the least squares method is used to fit the circle.

[0104] When the Gaussian filter is used to smooth the image, the smoothing coefficient is 1.5.

[0105] Step S30, obtaining the steel plate pattern coordinate system, and establishing the reference coordinate system of the steel plate position through camera calibration and position adjustment.

[0106] In this step, see Fig.11 As shown, obtaining the steel plate pattern coordinate system includes the following steps:

[0107] Step S301, calibrate the lens to obtain the internal and external parameters of the camera;

[0108] Step S302: establish a world coordinate system corresponding to the pixel coordinate system at each steel plate position, where the Z axis of the world coordinate system is parallel to the optical axis of the camera;

[0109] Step S303: confirm whether the pattern falls in the middle of the field of view and adjust the X-axis and Y-axis to meet the reference requirements.

[0110] Among them, when obtaining the steel plate pattern coordinate system, when the pattern does not fall in the middle of the field of view, continue to adjust the X-axis and Y-axis to meet the benchmark requirements. When the pattern falls in the middle of the field of view, record the current reference coordinate system position. When the next pattern comes in, adjust the X-axis and Y-axis directions of the steel plate according to the previously recorded reference coordinates to obtain the correct pattern coordinates of the rubber head.

[0111] Step S40, steel plate pattern position correction, through image enhancement and Mark point extraction, calculate the pattern center coordinates, and compare the reference coordinates to obtain the deviation.

[0112] In this step, see Fig.12 and Fig.13 As shown, the steel plate pattern position correction includes the following steps:

[0113] Step S401, delineating the pattern area and performing image enhancement;

[0114] Step S402: Use a dynamic threshold to find the Mark point area, and select the Mark points by morphological features;

[0115] Step S403, obtain the centroids of the two Mark points, calculate the center coordinates of the pattern and display the crosshairs;

[0116] Step S404: Compare with the reference coordinates to obtain the X-axis and Y-axis deviations.

[0117] Step S50, obtaining correction of the pattern transfer position deviation, and realizing the transfer printing action of the pattern at the correct position by moving the device.

[0118] See also Fig.14 and Fig.15 As shown, the correction of the pattern transfer position deviation is obtained, including the following steps:

[0119] The benchmark determination process includes alignment in the pattern coordinate system and alignment in the carrier coordinate system;

[0120] Production alignment printing process, including compensation alignment of pattern coordinate system and carrier coordinate system;

[0121] Move the pad of the device to achieve pad printing at the correct position of the pattern.

[0122] For details, see Fig.14 As shown, the benchmark determination process also includes camera calibration and benchmark determination, where:

[0123] Alignment within the pattern coordinate system, with the equipment rubber head aligned with the pattern center;

[0124] The alignment circle in the carrier coordinate system, the equipment rubber head is aligned with the center of the carrier;

[0125] Move the rubber head of the device to achieve the transfer action of the pattern to the correct position.

[0126] In this step, see Fig.15 As shown, the production alignment printing process also includes:

[0127] Alignment within the pattern coordinate system, calculation and compensation of deviations in the horizontal and vertical directions of the steel plate;

[0128] The alignment circle in the carrier coordinate system calculates and compensates for the deviations in the horizontal and vertical axis directions;

[0129] Move the rubber head of the device to achieve the transfer action of the pattern to the correct position.

[0130] Through the above steps, the present invention can achieve high-precision correction of the pattern transfer position, greatly improve production efficiency and product quality, and has significant application value and promotion prospects.

[0131] According to a second aspect of an embodiment of the present invention, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method of any one of the above embodiments is implemented.

[0132] The computer device includes a processor and a memory, and may also include an input system and an output system. The processor, memory, input system and output system may be connected via a bus or other means, and the input system may receive input digital or character information, and generate signal input related to the migration of the pattern transfer position correction method based on the visual image coordinate system. The output system may include display devices such as a display screen.

[0133] As a non-volatile computer-readable storage medium, the memory can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the pattern transfer position correction method based on the visual image coordinate system in the embodiment of the present application. The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of the pattern transfer position correction method based on the visual image coordinate system, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the local module 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.

[0134] In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor is generally used to control the overall operation of the computer device. In this embodiment, the processor is used to run the program code stored in the memory or process data. The processors of the multiple computer devices of the computer device of this embodiment execute various functional applications and data processing of the server by running non-volatile software programs, instructions and modules stored in the memory, that is, implementing the steps of the pattern transfer position correction method based on the visual image coordinate system of the above method embodiment.

[0135] It should be understood that, without conflicting with each other, all the embodiments, features and advantages described above for the pattern transfer position correction method based on the visual image coordinate system according to the present invention are also applicable to the pattern transfer position correction method based on the visual image coordinate system and storage medium according to the present invention.

[0136] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or implemented as hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0137] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0138] It should be understood that, as used herein, the singular form "a" or "an" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the items listed in association. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments.

[0139] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for correcting pattern transfer position based on a visual image coordinate system, characterized in that: The following steps are involved: Get the lens carrier coordinate system, establish the world coordinate system of the carrier position through camera calibration, and calculate the deviation; Correct the lens carrier position, fit the circular edge through image processing and edge extraction, and determine the carrier position; Obtain the steel plate pattern coordinate system, and establish the reference coordinate system of the steel plate position through camera calibration and position adjustment; Steel plate pattern position correction: by image enhancement and Mark point extraction, the pattern center coordinates are calculated and compared with the reference coordinates to obtain the deviation; Correct the deviation of pattern transfer position and realize the pad printing action of the pattern in the correct position by moving the equipment; The process of obtaining the lens carrier coordinate system also includes pad printing calibration, including the following steps: Sample placement: Align the rubber head to each hole of the flower on trolley No. 1, place the flower, start the equipment and AOI program, and save the hole picture of product n; Calculation of reference coordinates: Ensure the number of AOI program runs. If it is insufficient, repeat the step of placing flowers. If it is reached, calculate the reference coordinates according to the acupuncture point distribution map. The lens carrier position correction includes the following steps: Image processing: Input the image, perform threshold segmentation to extract the black circle, extract the black circle part and fill the holes and remove the edge burrs, calculate the maximum convex hull and the maximum circumscribed fitting circle of the area; Edge extraction: Use the center and radius of the maximum circumscribed fitting circle to establish a circle-finding tool, divide the area into several regions, calculate the edge gradient, extract the edge points of each region, and fit a circle based on all the extracted edge points using the least squares method; Among them, the correction of the steel plate pattern position includes the following steps: Delineate pattern areas and perform image enhancement; Use dynamic threshold to find the Mark point area and filter the Mark points by morphological features; Get the center of gravity of two Mark points, calculate the center coordinates of the pattern and display the crosshairs; Compare with the reference coordinates to obtain the X-axis and Y-axis deviations; The correction of the pattern transfer position deviation comprises the following steps: The benchmark determination process includes alignment in the pattern coordinate system and alignment in the carrier coordinate system; Production alignment printing process, including compensation alignment of pattern coordinate system and carrier coordinate system; Move the pad of the device to achieve pad printing at the correct position of the pattern.

2. The pattern transfer position correction method based on the visual image coordinate system according to claim 1, characterized in that: Obtaining the lens carrier coordinate system includes the following steps: Camera calibration: Use the calibration board to calibrate the camera and obtain the camera's intrinsic and extrinsic parameters; Move the camera and establish a world coordinate system corresponding to the pixel coordinate system at each vehicle position. The Z axis of the world coordinate system is parallel to the optical axis of the camera. Through multiple sampling and statistics, the reference position of each vehicle is determined.

3. The pattern transfer position correction method based on the visual image coordinate system according to claim 2, characterized in that: Obtaining the lens carrier coordinate system also includes pad printing positioning and deviation adjustment: the AOI system obtains the coordinates of each acupoint, calculates the deviation value based on the reference coordinates, and adjusts the alignment position of the glue head.

4. The pattern transfer position correction method based on the visual image coordinate system according to claim 3, characterized in that: When calculating edge points, a 25-pixel-length edge search area is established every 10 pixels along the circumference. The image is smoothed using a Gaussian filter. Points with a gradient value from dark to bright greater than 15 are found and extracted. The edge point with the largest difference is taken, and the least squares method is used to fit the circle.

5. The pattern transfer position correction method based on the visual image coordinate system according to claim 4, characterized in that: When using Gaussian filtering to smooth the image, the smoothing factor is 1.

5.

6. The pattern transfer position correction method based on the visual image coordinate system according to claim 5, characterized in that: Obtaining the steel plate pattern coordinate system includes the following steps: Calibrate the lens to obtain the internal and external parameters of the camera; Establish a world coordinate system corresponding to the pixel coordinate system at each steel plate position, and the Z axis of the world coordinate system is parallel to the optical axis of the camera; Confirm that the pattern falls in the middle of the field of view and adjust the X and Y axes to meet the benchmark requirements.

7. The pattern transfer position correction method based on the visual image coordinate system according to claim 6, characterized in that: When obtaining the steel plate pattern coordinate system, when the pattern does not fall in the middle of the field of view, continue to adjust the X-axis and Y-axis to meet the benchmark requirements. When the pattern falls in the middle of the field of view, record the current reference coordinate system position. When the next pattern comes in, adjust the steel plate X-axis and Y-axis directions according to the previously recorded reference coordinates to obtain the correct pattern coordinates of the rubber head.