Lens assembly machine, lens assembly line and positioning calibration method
By using the positioning and calibration method of multiple cameras and marking features in the lens assembly machine, the problem of environmental factors affecting the accuracy of lens assembly is solved, automatic pose detection and calibration is achieved, and assembly accuracy and production efficiency are improved.
Patent Information
- Application Number
- CN202410916843.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-10
AI Technical Summary
During the lens assembly process, environmental factors such as jitter and thermal deformation affect the camera's posture, resulting in a decrease in lens assembly accuracy. The existing technology lacks effective recognition accuracy judgment and automatic calibration methods, affecting production efficiency.
Design a lens assembly machine and positioning calibration method. By setting multiple cameras and marking features, the detection and calibration of the camera and pickup head positions are realized. The first camera, the second camera and the linear module are used to cooperate with the markers and Mark features, carry out image recognition and coordinate system establishment to ensure the correctness of pose, and perform coordinate correction and compensation when necessary.
It ensures lens assembly accuracy, improves production efficiency, reduces manual intervention and downtime through automatic detection and calibration, and improves assembly accuracy and reliability.
Smart Images

Figure CN118492915B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lens assembly, and in particular to a lens assembly machine, a lens assembly line and a positioning and calibration method. Background Art
[0002] In lens assembly equipment, such as mobile phone lenses, automotive lenses or security lens assembly equipment, cameras are needed to identify the position and posture of materials (such as lenses or accessories). The recognition accuracy of the camera has a great influence on the assembly accuracy of the lens. However, in actual operation, environmental factors (such as jitter, thermal deformation, etc.) will affect the camera's position and posture, thereby affecting the assembly accuracy of the lens. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a lens assembly machine, a lens assembly line and a positioning calibration method, which can detect the installation posture of the camera, thereby ensuring the lens assembly accuracy.
[0004] On the one hand, an embodiment of the present invention provides a lens assembly machine, comprising:
[0005] A first linear module is installed with an adjacent material taking head and a marker, the marker is provided with a first marking feature, and the material taking head and the marker both move along a first moving track;
[0006] A first camera is arranged above the first moving track, a field of view of the first camera intersects with the first moving track, a second marking feature and a third marking feature are arranged in the field of view of the first camera, and the first camera is used to perform posture detection according to the second marking feature and the third marking feature, and perform posture detection of the material picking head and the marker according to the first marking feature;
[0007] A second camera is arranged below the first moving track, a field of view of the second camera intersects with the first moving track, and the second camera is used to perform posture detection according to the first marking feature.
[0008] According to some embodiments of the present invention, the first marking feature is a circular hole.
[0009] According to some embodiments of the present invention, a thinning area is provided on the marker and located on at least one side of the circular hole.
[0010] According to some embodiments of the present invention, the thinned area is a tapered hole.
[0011] According to some embodiments of the present invention, the marker has a first connecting portion and a second connecting portion that are vertically connected to each other, the first connecting portion is connected to the material taking head, and the first marking feature is arranged on the second connecting portion.
[0012] According to some embodiments of the present invention, a second linear module is disposed below the first camera, a movable platform is mounted on the second linear module, and the second marking feature and the third marking feature are disposed on the movable platform.
[0013] According to some embodiments of the present invention, the second marking feature and the third marking feature are both circular holes.
[0014] On the other hand, an embodiment of the present invention provides a lens assembly line, including the above-mentioned lens assembly machine.
[0015] In another aspect, an embodiment of the present invention provides a positioning calibration method, which is applied to the above-mentioned lens assembly machine, comprising:
[0016] Acquire a first image through the first camera, wherein the first image at least includes the second marking feature and the third marking feature;
[0017] Establishing a first coordinate system based on the first image, and determining the correctness of the position and posture of the first camera according to the coordinates of the second marking feature and the third marking feature;
[0018] When the position and posture of the first camera is correct, the marker is moved into the field of view of the first camera by the first linear module, and a second image is acquired by the first camera, wherein the second image includes at least the first marking feature;
[0019] Establishing a second coordinate system based on the second image, and determining the correctness of the position and posture of the material picking head and the marker according to the first coordinate of the first marking feature;
[0020] When the positions of the material picking head and the marker are correct, the marker is moved into the field of view of the second camera by the first linear module, and a third image is acquired by the second camera, wherein the third image includes at least the first marking feature;
[0021] A third coordinate system is established based on the third image, and the correctness of the position and posture of the second camera is determined according to the second coordinate of the first marking feature.
[0022] According to some embodiments of the present invention, the positioning calibration method further includes at least one of the following:
[0023] When the position and posture of the first camera is incorrect, performing coordinate correction on the first coordinate system according to the coordinates of the second marking feature and the third marking feature;
[0024] Alternatively, when the postures of the material taking head and the marking object are incorrect, the coordinates of the moving position of the material taking head are compensated according to the first coordinates of the first marking feature;
[0025] Alternatively, when the posture of the second camera is incorrect, the third coordinate system is corrected according to the second coordinate of the first marking feature.
[0026] The embodiments of the present invention have at least the following beneficial effects:
[0027] The first camera performs its own posture detection according to the second marking feature and the third marking feature, and performs posture detection on the material picking head and the marker according to the first marking feature, to ensure that the posture of the first camera itself, the material picking head and the marker is correct. The second camera performs posture detection according to the first marking feature to ensure that its own posture is correct, which is conducive to ensuring the correct posture of the material picking head for picking and placing materials, thereby ensuring the accuracy of lens assembly.
[0028] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0030] Figure 1 A schematic diagram of the structure of a lens assembly line according to an embodiment of the present invention;
[0031] Figure 2 for Figure 1 The internal structure schematic diagram of the lens assembly machine is shown;
[0032] Figure 3 for Figure 2 A partial structural schematic diagram of a lens assembly machine is shown;
[0033] Figure 4 for Figure 2 A schematic diagram of the structure of the marker of the lens assembly machine shown;
[0034] Figure 5 The figure is a flowchart of the steps of the positioning calibration method according to an embodiment of the present invention.
[0035] Reference numerals:
[0036] Lens assembly machine 10, accessory assembly machine 20, first linear module 100, material picking head 110, marker 120, first connecting part 121, second connecting part 122, first marking feature 1221, thinning area 1222, first camera 200, second camera 300, second linear module 400, movable stage 410, second marking feature 411, third marking feature 412. DETAILED DESCRIPTION
[0037] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals 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 invention, and cannot be understood as limiting the present invention.
[0038] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention 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 invention.
[0039] In the description of the present invention, "several" means one or more, "multiple" means more than two, greater than, less than, and exceeding are understood as not including the number itself, and "above", "below", and "within" are understood as including the number itself. If there is a description of "first", "second", etc., 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.
[0040] In the description of the present invention, unless otherwise clearly defined, words such as “setting”, “installation” and “connection” should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above words in the present invention in combination with the specific content of the technical solution.
[0041] Lenses are common optical components, widely used in mobile phones, security and automobiles, etc. The following uses mobile phone lenses as an example: mobile phones are common electronic products in daily life, and lenses are components used by mobile phones to obtain images or videos. During the assembly process, multiple lenses and light shields need to be assembled into the lens barrel according to different process sequences. Due to the small size of mobile phone lenses, the size of lenses and light shields is also very small, and the assembly accuracy is required to be high, reaching the micron level. In the related art, the assembly of mobile phone lenses is usually to use a material pick-up head to suck the lens at the lens feeding mechanism, and then move it along a straight line to the tray where the semi-finished lens is located under the drive of a linear moving module for placement and assembly. In this process, the position of the lens on the lens feeding mechanism and the posture of the lens on the material pick-up head need to be detected by a camera, and the accuracy of the camera detection has a great impact on the assembly accuracy. In actual operation, environmental factors such as equipment vibration and thermal deformation will affect the posture of the camera, causing a deviation between the angle of the camera shooting image and the preset angle, resulting in inaccurate lens posture recognition, causing a position error between the material pick-up head and the lens, or unnecessary posture correction of the lens, thereby affecting the assembly accuracy of the lens. However, the related art lacks corresponding technical means to judge the recognition accuracy of the camera, and if the accuracy of camera recognition is found to decrease each time, an alarm prompt is issued to wait for shutdown and debugging, which will seriously affect production efficiency. To this end, this embodiment proposes a lens assembly machine, a lens assembly line and a positioning calibration method, which can detect the installation posture of the camera, thereby ensuring the lens assembly accuracy.
[0042] Please refer to Figure 1 and Figure 2 This embodiment discloses a lens assembly line, including a lens assembly machine, wherein the lens assembly machine can be a lens assembly machine 10 or an accessory assembly machine 20 according to different assembly parts. For example, the lens assembly line has multiple lens assembly machines, and the multiple lens assembly machines include multiple lens assembly machines 10 and multiple accessory assembly machines 20 arranged in the order of assembly process. Among them, the overall structure of the lens assembly machine 10 and the accessory assembly machine 20 is similar, and the main difference lies in the difference in the material feeding mechanism and the difference in the material taking head 110. Of course, this difference is not the focus of this embodiment and will not be explained here.
[0043] Please refer to Figure 2 and Figure 3The lens assembly machine includes a first linear module 100, a first camera 200 and a second camera 300. The first linear module 100 is equipped with an adjacent material pick-up head 110 and a marker 120. The marker 120 is provided with a first marking feature 1221. The material pick-up head 110 and the marker 120 can move linearly as a whole under the drive of the first linear module 100, so that the material pick-up head 110 and the marker 120 move along a first moving track. It should be noted that the material pick-up head 110 can be adaptively adjusted or selected according to different assembly materials.
[0044] The first camera 200 is arranged above the first moving track, that is, the first camera 200 is located above the material picking head 110 and the marker 120, and the field of view of the first camera 200 intersects with the first moving track. It should be conceived that the first camera 200 can be fixed by a structure such as a support frame or a support plate. In addition, it should be noted that, similar to the related art, the lower part of the first camera 200 is the feeding end of the material (such as a lens or an accessory), and the first camera 200 is relatively stationary and is used to identify the position or posture of the material, so that the material picking head 110 can locate and absorb the material. Different from the related art, the second marking feature 411 and the third marking feature 412 are arranged in the field of view of the first camera 200, and the first camera 200 is used to perform posture detection according to the second marking feature 411 and the third marking feature 412, and to perform posture detection on the material picking head 110 and the marker 120 according to the first marking feature 1221.
[0045] The second camera 300 is arranged below the first moving track, that is, the second camera 300 is located below the material picking head 110 and the marker 120, and the field of view of the second camera 300 intersects with the first moving track. In the related art, the second camera 300 is usually used to detect the posture of the material adsorbed on the material picking head 110. In addition to being able to achieve the same function, the second camera 300 of this embodiment is different from the related art in that the second camera 300 is used to detect its own posture according to the first marking feature 1221. It is worth mentioning that since the first camera 200 and the second camera 300 are respectively located above and below the first moving track, the shooting angles of the first camera 200 and the second camera 300 are limited, that is, the first camera 200 can only capture the top view image of the material picking head 110, and the second camera 300 can only capture the bottom view image of the material picking head 110. In order to enable the first camera 200 and the second camera 300 to capture the same marking feature, a marker 120 is disposed adjacent to the material removal head 110 so that the first camera 200 can capture the marker 120 from above and the second camera 300 can capture the marker 120 from below.
[0046] In this way, the first camera 200 performs its own posture detection according to the second marking feature 411 and the third marking feature 412, and performs posture detection on the material picking head 110 and the marker 120 according to the first marking feature 1221, ensuring that the postures of the first camera 200 itself, the material picking head 110 and the marker 120 are correct. The second camera 300 performs posture detection according to the first marking feature 1221, which can ensure that its own posture is correct, which is conducive to ensuring that the posture of the material picking head 110 for picking and placing materials is correct, thereby ensuring the accuracy of lens assembly. It is worth mentioning that in order to avoid affecting production efficiency as much as possible, posture detection can be performed during the idle time of the equipment, such as the self-test stage of equipment startup or the material replacement stage. Of course, if the problem of production efficiency is not considered, posture detection can be performed during each material picking and placing process of the material picking head 110.
[0047] Please refer to Figure 3 and Figure 4 , the first marking feature 1221 is a circular hole, the first camera 200 takes a photo from above the circular hole, and when the marker 120 moves into the field of view of the second camera 300, the second camera 300 takes a photo from below the circular hole. It is possible to identify whether the posture of the first camera 200 and the second camera 300 has changed based on the center coordinates of the circular hole. When the image obtained by taking a photo is processed, after binarization, there is a significant difference in light and dark between the circular hole feature and the features around the circular hole, which is conducive to accurately extracting the circular hole feature and determining the center coordinates of the circular hole, thereby ensuring the accuracy of camera posture recognition. It should be noted that the first camera 200, the second camera 300 and the marker 120 will be calibrated during the research and development, production and debugging stages of the equipment, so that the images taken by the first camera 200 and the second camera 300 of the marker 120 meet expectations, thereby ensuring that the coordinates of the first marking feature 1221 meet expectations.
[0048] During the research and development process, the circular hole was used as the first marking feature 1221 to preliminarily solve the problem of identifying the marking features of the first camera 200 and the second camera 300. However, it was found in the experimental stage that in addition to image processing technology, the identification of marking features also needs to consider issues such as the mechanical strength of the structure and processing accuracy. For example, a common method for processing circular holes on metal parts is drilling. When thicker metal parts are used for processing, due to the limitation of drilling accuracy, there is a problem of center offset between the circular holes on the upper surface and the lower surface of the metal parts, resulting in the circular holes observed by the first camera 200 and the second camera 300 not being the same marking feature, that is, the coordinates of the identified circular holes are inconsistent. If a thinner metal part is used for processing, although the problem of center offset of the circular holes on the upper and lower surfaces can be solved, due to insufficient mechanical strength, the metal parts are prone to deformation during use, resulting in the failure of the first marking feature 1221. After many improvements, the following solution was determined based on various factors: a thinning area 1222 is provided on the marker 120 and located on at least one side of the circular hole. For example, the thinning area 1222 is provided on the upper side, the lower side, or both sides of the circular hole. This can ensure that the marker 120 has sufficient mechanical strength and ensure that the thickness of the circular hole is thin enough to avoid the center offset of the circular hole on the upper and lower surfaces due to processing accuracy, so that the circular holes observed by the first camera 200 and the second camera 300 are the same marking features.
[0049] In the test phase, an attempt was made to process a larger hole on one side of the first mark feature 1221, so that the first mark feature 1221 is a step through hole. Although this solution meets the requirements to a certain extent, after a long period of use test, it was found that the step through hole still has a local mechanical strength problem, that is, although the overall mechanical strength of the marker 120 is sufficient, there will still be a slight deformation at the local position where the step through hole is located. Although the test results in the test phase did not show that the slight deformation would affect the recognition results of the first camera 200 and the second camera 300, in order to improve the reliability of use, it is necessary to further optimize the thinning area 1222. Considering that the purpose of the thinning area 1222 is to thin the processing thickness at the location of the first mark feature 1221, the thickness of the peripheral position of the first mark feature 1221 is gradually changed toward the location of the first mark feature 1221 by a gradual thickness change, which can not only make the thickness at the location of the first mark feature 1221 thin enough, but also make the peripheral position of the first mark feature 1221 have a sufficient thickness, so as to have good mechanical strength. Among them, the conical hole is a hole with a conical side wall, which can achieve a gradual thickness change between the upper and lower surfaces. Therefore, the thinning area 1222 is a conical hole, which can determine that the performance of the first marking feature 1221 is good, thereby improving the accuracy of the posture detection of the first camera 200 and the second camera 300.
[0050] Please continue to refer to Figure 3and Figure 4 The marker 120 has a first connection portion 121 and a second connection portion 122 connected vertically to each other, the first connection portion 121 is connected to the material retrieving head 110, and the first marking feature 1221 is arranged on the second connection portion 122. Through the vertical connection structure of the first connection portion 121 and the second connection portion 122, it is convenient to install the marker 120 on the material retrieving head 110, and the first marking feature 1221 can be made to protrude from the material retrieving head 110, so that the first camera 200 and the second camera 300 can observe the first marking feature 1221. In some application examples, the marker 120 can be a plate-like structure, and the marker 120 is inserted or connected to the material retrieving head 110 through a threaded structure such as a screw or a bolt.
[0051] Please refer to Figure 2 and Figure 3 A second linear module 400 is disposed below the first camera 200, a mobile platform 410 is mounted on the second linear module 400, and a second marking feature 411 and a third marking feature 412 are disposed on the mobile platform 410. The mobile platform 410 is used to support a tray on which lenses are placed, and to take the tray out of the material cage and move it to a preset position so that the material picking head 110 can pick up the lenses on the tray. During the material picking process, the first camera 200 performs image recognition on the tray to locate the position of the lens. The second mark feature 411 and the third mark feature 412 are set on the mobile stage 410, and the mobile stage 410 can be used as a calibration reference, which is beneficial to improve the absorption accuracy of the lens. For example, the assembly accuracy of the lens mainly depends on the absorption accuracy and placement accuracy of the lens, and the factors affecting the absorption accuracy of the lens mainly include the position accuracy of the mobile stage 410 and the position accuracy of the material picker 110. Since the positions of the second mark feature 411 and the third mark feature 412 are fixed relative to the mobile stage 410, if the positions of the second mark feature 411 and the third mark feature 412 are detected to have changed, either the position of the mobile stage 410 is offset or the position of the first camera 200 is offset. In any case, calibration can be performed by coordinate correction. In this way, the mobile stage 410 can be used as a calibration reference, so that the positioning of the lens is more accurate, which is beneficial to improve the accuracy of the relative position between the material picker 110 and the lens, and then improve the absorption accuracy of the lens. Of course, in some application examples, the second mark feature 411 and the third mark feature 412 can be set on a workbench used as an assembly reference.
[0052] Among them, the second marking feature 411 and the third marking feature 412 are both circular holes, which are convenient for image recognition. In image recognition, posture recognition can be performed by detecting the coordinates between the second marking feature 411 and the third marking feature 412, for example, calculating the relative distance between the second marking feature 411 and the third marking feature 412 based on the coordinates, or calculating the angle between the line between the two relative to the X-axis or Y-axis, etc.
[0053] Please refer to Figure 5 This embodiment provides a positioning calibration method, which is applied to the above-mentioned lens assembly machine, including steps S100 to S600. It should be noted that the steps in this embodiment are numbered only for the convenience of review and understanding, and do not limit the execution order of the steps. Figures 2 to 4 The contents of each step are described in detail:
[0054] S100, acquiring a first image through a first camera 200, the first image at least including a second marking feature 411 and a third marking feature 412;
[0055] Exemplarily, when posture detection is required, such as during the equipment power-on self-test phase or the material replacement phase, the first image is acquired through the first camera 200. When the second marking feature 411 and the third marking feature 412 are fixedly arranged below the first camera 200, the first camera 200 can directly take a picture to acquire the first image; and when the second marking feature 411 and the third marking feature 412 are arranged on the mobile platform 410, it is necessary to move the mobile platform 410 to a preset position through the second linear module 400 so that the second marking feature 411 and the third marking feature 412 enter the field of view of the first camera 200, thereby capturing the first image.
[0056] S200, establishing a first coordinate system based on the first image, and determining the correctness of the position and posture of the first camera 200 according to the coordinates of the second marking feature 411 and the third marking feature 412;
[0057] Exemplarily, under normal circumstances, the shooting area corresponding to the first image is in line with expectations, that is, the relative positions of the second marking feature 411, the third marking feature 412 and a certain point on the first image, such as the origin of the coordinates, are unchanged, that is, the relative distance between the second marking feature 411 and the third marking feature 412, or the relative angle between the line between the second marking feature 411 and the third marking feature 412 and the X-axis, the Y-axis or the edge of the first image is unchanged. Based on these principles, according to the coordinates of the second marking feature 411 and the third marking feature 412, it can be determined whether the posture of the first camera 200 is correct. For example, when it is detected that the change in the coordinates between the second marking feature 411 and the third marking feature 412 exceeds a preset threshold, it means that the first camera 200 has a posture change relative to the reference plane where the second marking feature 411 and the third marking feature 412 are located, and the posture of the first camera 200 does not meet expectations, that is, the posture of the first camera 200 is incorrect. On the contrary, the posture of the first camera 200 is correct.
[0058] S300, when the position of the first camera 200 is correct, the marker 120 is moved into the field of view of the first camera 200 by the first linear module 100, and a second image is acquired by the first camera 200, wherein the second image includes at least the first marking feature 1221;
[0059] Exemplarily, when it is determined that the position and posture of the first camera 200 is correct, the material retrieving head 110 and the second camera 300 can be synchronized by the first camera 200. For example, since the marker 120 and the material retrieving head 110 are arranged adjacently, and the position and posture between the marker 120 and the material retrieving head 110 is relatively fixed, that is, the position and posture of the material retrieving head 110 can be indirectly determined by detecting the position and posture of the marker 120. The second image is obtained by the first camera 200, and image analysis can be performed according to the information of the first marking feature 1221 in the second image.
[0060] S400, establishing a second coordinate system based on the second image, and determining the correctness of the position and posture of the material taking head 110 and the marker 120 according to the first coordinate of the first marking feature 1221;
[0061] Exemplarily, since the posture of the first camera 200 has been determined to be correct before this step, if the first coordinate of the first marking feature 1221 in the second coordinate system is as expected, it means that the posture of the marker 120 is correct, and indirectly indicates that the posture of the material picking head 110 is correct.
[0062] S500, when the positions of the material picking head 110 and the marker 120 are correct, the marker 120 is moved to the field of view of the second camera 300 by the first linear module 100, and a third image is acquired by the second camera 300, and the third image at least includes the first marking feature 1221;
[0063] Exemplarily, when it is determined that the position of the marker 120 is correct, whether the position of the first marking feature 1221 is in line with expectations, that is, the movement accuracy of the marker 120 driven by the first linear module 100 is in line with expectations. At this time, when the first linear module 100 moves the marker 120 to the field of view of the second camera 300, if no abnormality occurs, the third image acquired by the second camera 300 should also be in line with expectations, wherein the third image at least includes the first marking feature 1221, and the first marking feature 1221 can be used as an association feature between the first camera 200 and the second camera 300 to achieve synchronization of the coordinates of the first camera 200 and the second camera 300.
[0064] S600 , establishing a third coordinate system based on the third image, and determining the correctness of the position and posture of the second camera 300 according to the second coordinate of the first marking feature 1221 .
[0065] Exemplarily, when the second coordinate position of the first marking feature 1221 in the third coordinate system meets expectations, it means that the position and posture of the second camera 300 meets expectations, that is, the position and posture of the second camera 300 is correct. In this way, the coordinate synchronization of the first camera 200 and the second camera 300 is achieved through the first marking feature 1221, and the position and posture detection of the second camera 300 is achieved.
[0066] In actual operation, abnormal situations are inevitable, such as the first camera 200 or the second camera 300 changing its position, or the moving position of the material taking head 110 shifting, etc. Therefore, the positioning calibration method also includes at least one of the following:
[0067] When the position and posture of the first camera 200 is incorrect, the first coordinate system is corrected according to the coordinates of the second marking feature 411 and the third marking feature 412;
[0068] Exemplarily, since the second marking feature 411 and the third marking feature 412 serve as reference datums for detection, the relative positions of the two are unchanged. According to the coordinates of the second marking feature 411 and the third marking feature 412, the coordinate difference between the actual coordinates and the expected coordinates can be determined, so that coordinate calculations can be performed based on the coordinate difference to achieve correction of the first coordinate system. Automatic calibration can be achieved without downtime and waiting, which is beneficial to saving maintenance costs.
[0069] Alternatively, when the positions of the material taking head 110 and the marking object 120 are incorrect, coordinate compensation is performed on the moving position of the material taking head 110 according to the first coordinate of the first marking feature 1221;
[0070] Exemplarily, since the posture of the first camera 200 has been determined to be correct before the posture detection of the material picking head 110 and the marker 120, the incorrect posture of the material picking head 110 and the marker 120 is most likely caused by insufficient movement accuracy of the first linear module 100. Therefore, during the movement of the material picking head 110, the coordinate difference between the actual position and the expected position can be determined based on the first coordinate of the first marking feature 1221, so that the coordinate compensation of the moving position of the material picking head 110 can ensure the movement accuracy of the material picking head 110.
[0071] Alternatively, when the position and posture of the second camera 300 is incorrect, the third coordinate system is corrected according to the second coordinate of the first marking feature 1221 .
[0072] Exemplarily, the position of the first marking feature 1221 is detected and calibrated, and the incorrect posture of the second camera 300 is most likely caused by the posture offset of the second camera 300. Therefore, according to the second coordinate position of the first marking feature 1221, the deviation between the actual coordinates and the expected coordinates of the first marking feature 1221 can be determined, thereby performing coordinate correction on the third coordinate system.
[0073] In this way, the first camera 200 performs posture detection and coordinate correction according to the second marking feature 411 and the third marking feature 412 to ensure that the detection coordinates corresponding to the current posture of the first camera 200 are correct, and performs posture detection and compensation on the material picking head 110 and the marker 120 according to the first marking feature 1221 to ensure that the moving position of the material picking head 110 is accurate. The second camera 300 performs posture detection and coordinate correction according to the first marking feature 1221 to ensure that the detection coordinates corresponding to its own posture are correct, which is conducive to ensuring that the posture of the material picking head 110 for picking and placing materials is correct, thereby ensuring the accuracy of lens assembly.
[0074] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A lens assembly machine, characterized in that: include: A first linear module (100) is installed with adjacent material taking heads (110) and markers (120), wherein the markers (120) are provided with first marking features (1221), and the material taking heads (110) and the markers (120) both move along a first moving track; A first camera (200) is arranged above the first moving track, a field of view of the first camera (200) intersects with the first moving track, a second marking feature (411) and a third marking feature (412) are arranged in the field of view of the first camera (200), the first camera (200) performs its own posture detection according to the second marking feature (411) and the third marking feature (412), and performs posture detection on the material picking head (110) and the marker (120) according to the first marking feature (1221); The second camera (300) is arranged below the first moving track, the field of view of the second camera (300) intersects with the first moving track, and the second camera (300) performs its own posture detection according to the first marking feature (1221).
2. The lens assembly machine according to claim 1, characterized in that: The first marking feature (1221) is a circular hole.
3. The lens assembly machine according to claim 1 or 2, characterized in that: A thinned area (1222) is provided on the marker (120) and located on at least one side of the first marking feature (1221).
4. The lens assembly machine according to claim 3, characterized in that: The thinned area (1222) is a tapered hole.
5. The lens assembly machine according to claim 1, 2 or 4, characterized in that: The marker (120) comprises a first connecting portion (121) and a second connecting portion (122) which are vertically connected to each other, the first connecting portion (121) being connected to the material taking head (110), and the first marking feature (1221) being arranged on the second connecting portion (122).
6. The lens assembly machine according to claim 1, characterized in that: A second linear module (400) is arranged below the first camera (200), a movable platform (410) is mounted on the second linear module (400), and the second marking feature (411) and the third marking feature (412) are arranged on the movable platform (410).
7. The lens assembly machine according to claim 1 or 6, characterized in that: The second marking feature (411) and the third marking feature (412) are both circular holes.
8. A lens assembly line, characterized in that: Comprising a lens assembly machine according to any one of claims 1 to 7.
9. A positioning and calibration method, applied to the lens assembly machine according to any one of claims 1 to 7, characterized in that: include: Acquiring a first image through the first camera (200), the first image comprising at least the second marking feature (411) and the third marking feature (412); Establishing a first coordinate system based on the first image, and determining the correctness of the position and posture of the first camera (200) according to the coordinates of the second marking feature (411) and the third marking feature (412); When the position and posture of the first camera (200) is correct, the marker (120) is moved into a field of view of the first camera (200) by means of the first linear module (100), and a second image is acquired by means of the first camera (200), wherein the second image at least includes the first marking feature (1221); Establishing a second coordinate system based on the second image, and determining the correctness of the position and posture of the material taking head (110) and the marker (120) according to the first coordinate of the first marking feature (1221); When the positions of the material picking head (110) and the marker (120) are correct, the marker (120) is moved into the field of view of the second camera (300) by the first linear module (100), and a third image is acquired by the second camera (300), wherein the third image at least includes the first marking feature (1221); A third coordinate system is established based on the third image, and the correctness of the position and posture of the second camera (300) is determined according to the second coordinate of the first marking feature (1221).
10. The positioning calibration method according to claim 9, characterized in that: The positioning calibration method further includes at least one of the following: When the position and posture of the first camera (200) is incorrect, coordinate correction is performed on the first coordinate system according to the coordinates of the second marking feature (411) and the third marking feature (412); Alternatively, when the positions of the material taking head (110) and the marking object (120) are incorrect, the coordinates of the moving position of the material taking head (110) are compensated according to the first coordinates of the first marking feature (1221); Alternatively, when the position and posture of the second camera (300) is incorrect, the third coordinate system is corrected according to the second coordinate of the first marking feature (1221).
