A method for correcting the position of steel plate patterns based on steel plate pattern coordinate system
By combining camera calibration and dynamic threshold image processing technology, high-precision correction of the steel plate pattern position is achieved, which solves the problems of insufficient accuracy, complex adjustment, and poor adaptability in the existing technology, improves production efficiency and product consistency, and meets the needs of High precision, high efficiency and high adaptability production requirements.
Patent Information
- Application Number
- CN202411001087.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-25
AI Technical Summary
The existing technology has problems such as insufficient accuracy, complex adjustment, poor adaptability and slow processing speed in steel plate pattern position correction, making it difficult to meet the needs of high-precision, high-efficiency and high-adaptability production.
Using a method based on the steel plate pattern coordinate system, combined with camera calibration technology, dynamic threshold image processing technology and automatic optical detection system, through lens calibration, establishment of pixel and world coordinate systems, confirmation of reference coordinates, image enhancement processing, dynamic threshold method and morphology Feature screening is used to achieve high-precision, high-efficiency, and high-adaptability steel plate pattern position correction.
It improves the accuracy and consistency of pattern transfer, reduces the scrap rate, saves labor costs, improves production efficiency and adaptability, and ensures product quality stability and market competitiveness.
Smart Images

Figure CN118521634B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a steel plate pattern position correction method based on a steel plate pattern 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] During the pattern transfer and processing, if the pattern position is inaccurate, it will lead to product quality problems, increase the scrap rate, and affect production efficiency. Therefore, accurate pattern position correction is a key link to ensure product quality and production efficiency. In the prior art, the commonly used pattern position correction methods are mainly the following:
[0004] 1. Manual correction: Workers align and correct the patterns on the steel plate visually or using simple instruments. The main problem with this method is that it relies on the experience and skills of the workers, is prone to human errors, and is inefficient.
[0005] 2. Semi-automatic equipment: Semi-automatic equipment is used to calibrate the pattern position, usually in combination with optical detection and mechanical adjustment equipment. Although the accuracy is improved compared to pure manual calibration, the following problems still exist:
[0006] (1) Insufficient accuracy: The calibration accuracy of semi-automatic equipment still cannot meet the requirements of high-precision manufacturing.
[0007] (2) Complex adjustment: The calibration process of the equipment is relatively complicated, requires manual participation, and takes a long time to adjust.
[0008] (3) Poor consistency: Due to manual involvement, the consistency of the calibration results is difficult to ensure.
[0009] 3. Traditional optical detection: The traditional optical detection system can automatically detect the position of the pattern on the steel plate and make corresponding corrections, but it has the following shortcomings:
[0010] (1) Complex calibration: The calibration process of the camera’s intrinsic and extrinsic parameters is complex and easily affected by the environment.
[0011] (2) Poor adaptability: Different steel plate materials and surface characteristics will affect the detection results, and the system has poor adaptability.
[0012] (3) Slow processing speed: The image processing algorithm is complex and the processing speed is slow, which makes it difficult to meet the needs of high-speed production lines.
[0013] Based on the defects of the above-mentioned pattern position correction method, the pattern position correction of steel plates faces the challenges of high precision requirements, adaptation to complex environments and efficient processing. The position of the steel plate pattern needs to be highly accurate, and any slight deviation may affect the quality of subsequent processing links. Factors such as lighting changes in the production environment, reflections on the steel plate surface, and pattern complexity will affect the image detection results, requiring the system to have strong adaptability. On high-speed production lines, the speed of image processing and position correction must be guaranteed so as not to affect the overall production efficiency.
[0014] In order to overcome the above problems and challenges, a new method for steel plate pattern position correction is urgently needed so that the camera parameters and pattern position can be accurately calibrated, errors can be reduced, manual participation can be minimized, and a fully automated pattern position correction process can be realized so that it can work stably under different lighting conditions and steel plate materials with good robustness. Summary of the invention
[0015] In view of this, in order to overcome the problems of insufficient accuracy, complex adjustment, poor adaptability and slow processing speed in the existing steel plate pattern position correction technology, which is difficult to meet the needs of high-precision, high-efficiency and high-adaptability production, the purpose of the present invention is to propose a steel plate pattern position correction method based on a steel plate pattern coordinate system, which combines camera calibration technology, dynamic threshold image processing technology and automatic optical detection system to achieve high-precision, high-efficiency and high-adaptability steel plate pattern position correction.
[0016] Based on the above purpose, in a first aspect, the present invention provides a method for correcting the position of a steel plate pattern based on a steel plate pattern coordinate system, comprising the following steps:
[0017] Calibrate the lens to obtain the camera's intrinsic and extrinsic parameters;
[0018] A pixel coordinate system and a corresponding world coordinate system are established at each steel plate position, and the Z axis of the world coordinate system is parallel to the optical axis of the camera;
[0019] Confirm the reference coordinates, obtain the coordinates of the pattern through AOI, adjust the X-axis and Y-axis directions and lock the reference parameters. When confirming the reference coordinates, confirm the first reference, obtain the coordinates of the pattern through AOI (automatic optical inspection), and the default reference coordinates are (0, 0); after confirming the first reference, adjust the X-axis and Y-axis directions and lock the reference parameters, first adjust the direction of the steel plate X-axis trolley to determine whether the X-axis is aligned. If it is aligned, lock the X-axis reference parameters; if it is not aligned, adjust the AOI X-axis reference coordinate parameters and lock them; then adjust the direction of the steel plate Y-axis lead screw to determine whether the Y-axis is aligned. If it is aligned, lock the Y-axis reference parameters; if it is not aligned, adjust the AOI Y-axis reference coordinate parameters and lock them;
[0020] Delineate the pattern area and perform image enhancement processing on the area;
[0021] Use the dynamic threshold method to find the Mark point area, filter the Mark points by morphological features, and obtain the centroid of two Mark points;
[0022] Calculate the center coordinates of the pattern and display the crosshairs;
[0023] Compare the pattern center coordinates with the reference coordinates to obtain the deviations of the X-axis and Y-axis;
[0024] Adjust the X-axis and Y-axis directions of the steel plate according to the deviation and correct the pattern position.
[0025] As a further solution of the present invention, when confirming the reference coordinates, the reference is aligned for the nth time, and the coordinates of the pattern are obtained through AOI (automatic optical inspection), and the reference coordinates are (a, b).
[0026] As a further scheme of the present invention, when aligning the benchmark for the nth time, first adjust the direction of the steel plate X-axis trolley to determine whether the X-axis is aligned. If it is aligned, the correct X-axis dispensing position is obtained. If it is not aligned, readjust the direction of the steel plate X-axis trolley; then adjust the direction of the steel plate Y-axis lead screw to determine whether the Y-axis is aligned. If it is aligned, the correct Y-axis dispensing position is obtained; if it is not aligned, adjust the equipment lead screw compensation value and obtain the correct Y-axis dispensing position.
[0027] 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.
[0028] As a further solution of the present invention, when correcting the pattern position, the X-axis and Y-axis directions of the steel plate are adjusted according to the deviation to obtain the correct pattern coordinates.
[0029] The present invention realizes accurate correction of the position of the steel plate pattern through the method, improves the accuracy and consistency of pattern transfer, and has high application value.
[0030] In another aspect 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, any one of the above-mentioned methods for correcting the position of a steel plate pattern based on a steel plate pattern coordinate system according to the present invention is executed.
[0031] In another aspect of the present invention, a computer-readable storage medium is provided, storing computer program instructions, which, when executed, implement any of the above-mentioned methods for correcting the position of a steel plate pattern based on a steel plate pattern coordinate system according to the present invention.
[0032] Compared with the prior art, the steel plate pattern position correction method based on the steel plate pattern coordinate system proposed in the present invention has the following beneficial effects:
[0033] 1. Improved processing accuracy: Through the visual inspection system and image processing technology, the position deviation of the steel plate pattern can be accurately detected and corrected in real time to ensure the pattern position accuracy of each steel plate during the processing. This high-precision correction can reduce the processing error caused by inaccurate pattern position and improve product quality.
[0034] 2. Enhanced production consistency: Ensure that the pattern position of each steel plate is strictly corrected, eliminate the pattern position differences between different batches of steel plates, and enhance product consistency and repeatability. This is especially important for mass production and helps maintain stable product quality.
[0035] 3. Reduced scrap rate: Accurate pattern position control can significantly reduce the scrap rate. By reducing defective products and rework caused by inaccurate pattern position, production efficiency is improved and production costs are reduced.
[0036] 4. Save labor costs: The automated pattern position correction process reduces the reliance on manual inspection and adjustment. Through automatic optical inspection and image processing technology, it can replace traditional manual visual inspection and manual adjustment, saving human resources and reducing human errors.
[0037] 5. Improved efficiency and adaptability: The automated correction system can detect and adjust the pattern position in real time while the pattern is being transferred, greatly improving production efficiency. Compared with traditional manual detection and adjustment, the automated system can complete the task more quickly and accurately. This method uses advanced image processing technologies such as dynamic threshold and morphological feature extraction, which can adapt to patterns of different types and complexities and has good flexibility and adaptability. Whether it is a simple geometric pattern or a complex pattern, it can be accurately detected and corrected.
[0038] 6. High integration, conducive to benchmark coordinate locking: This method can be seamlessly integrated with existing pattern transfer equipment and production lines. Through standardized interfaces and data transmission protocols, it can be easily integrated with existing production management systems and quality control systems to improve the overall production management level. Through precise benchmark coordinate locking steps, the stability and accuracy of the benchmark are guaranteed. Whether in mechanical adjustment or software calibration, there is reliable solution support to ensure the long-term stability of the benchmark.
[0039] 7. Reduced maintenance costs: The system has a high degree of automation and simple maintenance, which reduces the maintenance frequency and cost caused by complex manual operations. Through regular system calibration and maintenance, the system can maintain efficient operation for a long time. Improve customer satisfaction and brand reputation. High-quality steel plate products can better meet customer needs and enhance market competitiveness.
[0040] To sum up, the steel plate pattern position correction method based on the steel plate pattern coordinate system of the present invention not only significantly improves the accuracy and consistency of pattern transfer, but also brings production and economic benefits in many aspects. It has broad application prospects and significant practical value.
[0041] 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
[0042] 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.
[0043] In the figure:
[0044] Figure 1 The present invention is a flowchart of a method for correcting the position of a steel plate pattern based on a steel plate pattern coordinate system according to an embodiment of the present invention.
[0045] Figure 2 The present invention is a flowchart of confirming the reference for the first time in the steel plate pattern position correction method based on the steel plate pattern coordinate system in an embodiment of the present invention.
[0046] Figure 3 This is a flowchart of the nth alignment reference in the steel plate pattern position correction method based on the steel plate pattern coordinate system in an embodiment of the present invention.
[0047] Figure 4 It is a schematic diagram of the center coordinates of the pattern and the display crosshairs in the steel plate pattern position correction method based on the steel plate pattern coordinate system in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] In order to overcome the problems of insufficient accuracy, complex adjustment, poor adaptability and slow processing speed in the existing steel plate pattern position correction technology, which is difficult to meet the needs of high-precision, high-efficiency and high-adaptability production, the present invention proposes a steel plate pattern position correction method based on a steel plate pattern coordinate system, which combines camera calibration technology, dynamic threshold image processing technology and automatic optical detection system to achieve high-precision, high-efficiency and high-adaptability steel plate pattern position correction.
[0055] See also Figure 1 and Figure 4 As shown, a method for correcting the position of a steel plate pattern based on a steel plate pattern coordinate system provided by an embodiment of the present invention comprises the following steps:
[0056] Step S10, calibrate the lens to obtain camera intrinsic parameters and extrinsic parameters;
[0057] Step S20, establishing a pixel coordinate system and a corresponding world coordinate system at each steel plate position, wherein the Z axis of the world coordinate system is parallel to the optical axis of the camera;
[0058] Step S30, confirm the reference coordinates, obtain the coordinates of the pattern through AOI, adjust the X-axis and Y-axis directions and lock the reference parameters;
[0059] Step S40, demarcating a pattern area and performing image enhancement processing on the area;
[0060] Step S50: Use a dynamic threshold method to find the Mark point area, select the Mark points by morphological features, and obtain the centroid of two Mark points;
[0061] Step S60, calculating the center coordinates of the pattern and displaying the crosshairs;
[0062] Step S70, comparing the pattern center coordinates with the reference coordinates to obtain the deviations of the X-axis and the Y-axis;
[0063] Step S80, adjusting the X-axis and Y-axis directions of the steel plate according to the deviation to correct the pattern position.
[0064] Through the above steps, the present invention realizes the accurate correction of the position of the steel plate pattern, improves the accuracy and consistency of the pattern transfer, and has high application value.
[0065] In this embodiment, the lens is calibrated to obtain the internal and external parameters of the camera, and a world coordinate system corresponding to the pixel coordinate system is established at each steel plate position. The Z axis of the world coordinate system is parallel to the optical axis of the camera, so that the pattern falls roughly in the middle of the field of view. Confirm that the X-axis and Y-axis of the position meet the benchmark requirements. If not, continue to adjust to meet the requirements. If it meets the requirements, 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.
[0066] In this embodiment, see Figure 2 As shown, when confirming the reference coordinates, confirm the first reference, and obtain the coordinates of the pattern through AOI (automatic optical inspection). The default reference coordinates are (0, 0). After confirming the first reference, when adjusting the X-axis and Y-axis directions and locking the reference parameters, first adjust the direction of the steel plate X-axis trolley to determine whether the X-axis is aligned. If it is aligned, lock the X-axis reference parameters; if it is not aligned, adjust the AOI X-axis reference coordinate parameters and lock them; then adjust the steel plate Y-axis lead screw direction to determine whether the Y-axis is aligned. If it is aligned, lock the Y-axis reference parameters; if it is not aligned, adjust the AOI Y-axis reference coordinate parameters and lock them.
[0067] In this embodiment, see Figure 3As shown, when confirming the reference coordinates, align the reference for the nth time, and obtain the coordinates of the pattern through AOI (automatic optical inspection), and the reference coordinates are (a, b). When aligning the reference for the nth time, first adjust the direction of the steel plate X-axis trolley to determine whether the X-axis is aligned. If it is aligned, obtain the correct X-axis dispensing position. If it is not aligned, readjust the direction of the steel plate X-axis trolley; then adjust the direction of the steel plate Y-axis lead screw to determine whether the Y-axis is aligned. If it is aligned, obtain the correct Y-axis dispensing position; if it is not aligned, adjust the equipment lead screw compensation value and obtain the correct Y-axis dispensing position.
[0068] See also Figures 1 to 4 As shown, 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.
[0069] When correcting the pattern position, the X-axis and Y-axis directions of the steel plate are adjusted according to the deviation to obtain the correct pattern coordinates.
[0070] The steel plate pattern position correction method based on the steel plate pattern coordinate system of the embodiment of the present invention can accurately detect and correct the position deviation of the steel plate pattern in real time through the visual inspection system and image processing technology, ensuring the pattern position accuracy of each steel plate during the processing. This high-precision correction can reduce the processing error caused by inaccurate pattern position and improve product quality. This method enhances production consistency, ensures that the pattern position of each steel plate is strictly corrected, eliminates the pattern position differences between different batches of steel plates, and enhances product consistency and repeatability. This is particularly important for mass production and helps maintain stable product quality.
[0071] The steel plate pattern position correction method based on the steel plate pattern coordinate system of the present invention can significantly reduce the scrap rate through accurate pattern position control. By reducing the defective products and rework caused by inaccurate pattern position, the production efficiency is improved and the production cost is reduced. The automated pattern position correction process reduces the dependence on manual inspection and adjustment. Through automatic optical inspection and image processing technology, traditional manual visual inspection and manual adjustment can be replaced, saving human resources and reducing human errors.
[0072] Moreover, the automated correction system can detect and adjust the pattern position in real time while the pattern is being transferred, greatly improving production efficiency. Compared with traditional manual detection and adjustment, the automated system can complete the task more quickly and accurately. This method uses advanced image processing technologies such as dynamic threshold and morphological feature extraction, which can adapt to patterns of different types and complexities and has good flexibility and adaptability. Whether it is a simple geometric pattern or a complex pattern, it can be accurately detected and corrected.
[0073] This method can be seamlessly integrated with existing pattern transfer equipment and production lines. Through standardized interfaces and data transmission protocols, it can be easily integrated with existing production management systems and quality control systems to improve the overall production management level. The stability and accuracy of the reference coordinates are guaranteed through precise reference coordinate locking steps. Whether in mechanical adjustment or software calibration, there is reliable solution support to ensure the long-term stability of the benchmark. The system has a high degree of automation and simple maintenance, which reduces the maintenance frequency and cost caused by complex manual operations. Through regular system calibration and maintenance, the efficient operation of the system can be maintained for a long time. Improve customer satisfaction and brand reputation. High-quality steel plate products can better meet customer needs and enhance market competitiveness.
[0074] To sum up, the steel plate pattern position correction method based on the steel plate pattern coordinate system of the present invention not only significantly improves the accuracy and consistency of pattern transfer, but also brings production and economic benefits in many aspects. It has broad application prospects and significant practical value.
[0075] 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.
[0076] 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 steel plate pattern position correction method based on the steel plate pattern coordinate system. The output system may include display devices such as a display screen.
[0077] 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 steel plate pattern position correction method based on the steel plate pattern 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 steel plate pattern position correction method based on the steel plate pattern 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.
[0078] The processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. 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, to implement the steps of the steel plate pattern position correction method based on the steel plate pattern coordinate system of the above method embodiment.
[0079] It should be understood that, without conflicting with each other, all the embodiments, features and advantages described above for the steel plate pattern position correction method based on the steel plate pattern coordinate system according to the present invention are also applicable to the steel plate pattern position correction method and storage medium based on the steel plate pattern coordinate system according to the present invention.
[0080] 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 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.
[0081] 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.
[0082] 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.
[0083] 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 the position of a steel plate pattern based on a steel plate pattern coordinate system, characterized in that: The following steps are involved: Calibrate the lens to obtain the camera's intrinsic and extrinsic parameters; A pixel coordinate system and a corresponding world coordinate system are established at each steel plate position, and the Z axis of the world coordinate system is parallel to the optical axis of the camera; Confirm the reference coordinates, obtain the coordinates of the pattern through AOI, adjust the X-axis and Y-axis directions and lock the reference parameters. When confirming the reference coordinates, confirm the first reference, obtain the coordinates of the pattern through AOI, the default reference coordinates are (0, 0), after confirming the first reference, adjust the X-axis and Y-axis directions and lock the reference parameters, first adjust the X-axis trolley direction of the steel plate to determine whether the X-axis is aligned, if it is aligned, lock the X-axis reference parameters; If the AOI X-axis reference coordinate parameters are adjusted and locked without following the criteria; Then adjust the direction of the Y-axis lead screw of the steel plate to determine whether the Y-axis is aligned. If it is aligned, lock the Y-axis reference parameters. If the AOIY axis reference coordinate parameters are adjusted and locked without following the rules; Delineate the pattern area and perform image enhancement processing on the area; Use the dynamic threshold method to find the Mark point area, filter the Mark points by morphological features, and obtain the centroid of two Mark points; Calculate the center coordinates of the pattern and display the crosshairs; Compare the pattern center coordinates with the reference coordinates to obtain the deviations of the X-axis and Y-axis; Adjust the X-axis and Y-axis directions of the steel plate according to the deviation to correct the pattern position; Among them, when confirming the reference coordinates, align the reference for the nth time, and obtain the coordinates of the pattern through AOI, and the reference coordinates are (a, b); when aligning the reference for the nth time, first adjust the direction of the steel plate X-axis trolley to determine whether the X-axis is aligned. If it is aligned, obtain the correct X-axis dispensing position. If it is not aligned, readjust the direction of the steel plate X-axis trolley; then adjust the direction of the steel plate Y-axis lead screw to determine whether the Y-axis is aligned. If it is aligned, obtain the correct Y-axis dispensing position; if it is not aligned, adjust the equipment lead screw compensation value and obtain the correct Y-axis dispensing position.
2. The method for correcting the position of a steel plate pattern based on a steel plate pattern coordinate system according to claim 1, 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.
3. The method for correcting the position of a steel plate pattern based on a steel plate pattern coordinate system according to claim 2, characterized in that: When correcting the pattern position, adjust the X-axis and Y-axis directions of the steel plate according to the deviation to obtain the correct pattern coordinates.
4. A computer device comprising a memory and a processor, characterized in that: The memory stores a computer program, which, when executed by the processor, executes the steel plate pattern position correction method based on the steel plate pattern coordinate system as described in any one of claims 1 to 3.
5. A computer-readable storage medium storing computer program instructions, which, when executed, implement the steel plate pattern position correction method based on the steel plate pattern coordinate system as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Multi-lens joint calibration method and device based on microscopic detection machine
CN113592956A
Calibration method and three-dimensional reconstruction method based on high-precision line laser 3D camera
CN114820817A
