Point spectrum lens installation method, device, system, storage medium and product

Through machine vision technology and automated installation methods, the problem of low installation efficiency of point spectrum lenses is solved, and efficient and precise lens and lens barrel installation is achieved.

CN114755782BActive Publication Date: 2024-09-13SHENZHEN SHENSHI INTELLIGENT TECH CO LTD
View PDF 33 Cites 0 Cited by

Patent Information

Application Number
CN202210181131.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2024-09-13
Estimated Expiration
2042-02-25

AI Technical Summary

Technical Problem

The installation efficiency of the point spectrum confocal lens in the existing technology is low and requires manual control of a mechanical arm to install the lens and lens barrel.

Method used

By acquiring the image of the lens and lens barrel, image recognition processing is performed to determine the position of the lens and lens barrel, and machine vision technology is used to automatically install the lens into the corresponding lens barrel. Suction cups and motor modules are used to achieve automated installation.

Benefits of technology

It improves the installation efficiency and accuracy of point spectrum lenses, reduces manual intervention, saves time and manpower, and ensures accurate installation of lenses and lens barrels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114755782B
    Figure CN114755782B
Patent Text Reader

Abstract

The present application relates to a method, device, system, storage medium and product for installing a point spectrum lens. The method comprises: obtaining a lens image corresponding to at least one lens to be installed and a barrel image corresponding to at least one barrel to be installed; performing image recognition processing on the lens image and the barrel image to determine the lens position of the lens to be installed in the lens image and the barrel position of the barrel to be installed in the barrel image; according to the lens position, the barrel position and the positional correspondence between the lens to be installed and the barrel to be installed, installing the lens to be installed into the barrel to be installed at the corresponding position to obtain a point spectrum lens. The use of this method can improve the efficiency of point spectrum lens installation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of equipment installation, and in particular to a point spectrum lens installation method, device, system, storage medium and product. Background Art

[0002] At present, a large number of optical lenses are integrated inside the single-point spectral confocal lens. The single-point spectral confocal lens generally includes a lens and a lens barrel, that is, the lens can be obtained by assembling the lens and the lens barrel. The single-point spectral confocal lens can be used for optical measurement, so the installation requirements of the lens are relatively high.

[0003] In the related art, when installing a lens, a robotic arm is usually manually controlled to install each lens on each lens barrel to obtain an installed lens.

[0004] However, in the above technology, there is a problem of low installation efficiency during the process of installing the lens. Summary of the invention

[0005] Based on this, it is necessary to address technical issues and provide a point spectrum lens installation method, device, system, storage medium and product that can improve installation efficiency.

[0006] In a first aspect, the present application provides a method for installing a point spectrum lens. The method comprises:

[0007] Acquire a lens image corresponding to at least one lens to be installed and a lens barrel image corresponding to at least one lens barrel to be installed;

[0008] Performing image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image;

[0009] According to the lens position, the lens barrel position and the positional correspondence between the lens to be installed and the lens barrel to be installed, the lens to be installed is installed into the lens barrel to be installed at the corresponding position to obtain a point spectrum lens.

[0010] In one embodiment, obtaining a lens image corresponding to at least one lens to be installed and a barrel image corresponding to at least one lens barrel to be installed includes:

[0011] Using a first visual camera to collect data from at least one lens tray where a lens to be installed is located, to determine a lens image;

[0012] A second visual camera is used to collect data from at least one lens barrel tray where a lens barrel to be installed is located to determine a lens barrel image.

[0013] In one embodiment, performing image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image includes:

[0014] Performing Hough detection processing on the lens image to determine a first position and a second position in the lens image; wherein the first position is a first origin position of the lens tray in the lens image, and the second position includes a lens position of at least one lens to be installed;

[0015] The barrel image is subjected to Hough detection processing to determine a third position and a fourth position in the barrel image; wherein the third position is a second origin position of the barrel tray in the barrel image, and the fourth position includes a barrel position of at least one barrel to be installed.

[0016] In one embodiment, the method of installing the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position, and the positional correspondence between the lens to be installed and the lens barrel to be installed includes:

[0017] Obtaining the initial position of the suction cup; the suction cup is used to absorb the lens to be installed into the lens barrel to be installed, and the initial position is the first origin position or the second origin position;

[0018] According to the initial position, the lens position, the lens barrel position and the positional correspondence between the lens to be installed and the lens barrel to be installed, the lens to be installed is installed into the lens barrel to be installed at the corresponding position.

[0019] In one embodiment, according to the initial position, the lens position, the lens barrel position, and the position correspondence between the lens to be installed and the lens barrel to be installed, installing the lens to be installed into the lens barrel to be installed at the corresponding position includes:

[0020] If the initial position is the first origin position, the first moving distance of the suction cup is determined according to the position difference between the first origin position and the lens position; the first moving distance includes the moving distance in the X-axis direction and the moving distance in the Y-axis direction;

[0021] Control the suction cup to move to the lens position according to the first moving distance, and control the lens to be installed on the suction cup lens position;

[0022] Determine the lens barrel to be installed corresponding to the lens to be installed according to the position correspondence between the lens to be installed and the lens barrel to be installed and the position of the lens barrel;

[0023] The control suction cup installs the lens to be installed into the lens barrel to be installed at the corresponding position.

[0024] In one embodiment, according to the initial position, the lens position, the lens barrel position, and the position correspondence between the lens to be installed and the lens barrel to be installed, installing the lens to be installed into the lens barrel to be installed at the corresponding position includes:

[0025] If the initial position is the second origin position, the suction cup is controlled to move to the first origin position according to the origin position difference between the first origin position and the second origin position;

[0026] Determine a first moving distance of the suction cup according to a position difference between the first origin position and the lens position; the first moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction;

[0027] Control the suction cup to move to the lens position according to the first moving distance, and control the suction cup to adsorb the lens to be installed at the lens position;

[0028] Determine the lens barrel to be installed corresponding to the lens to be installed according to the position correspondence between the lens to be installed and the lens barrel to be installed and the position of the lens barrel;

[0029] The control suction cup installs the lens to be installed into the lens barrel to be installed at the corresponding position.

[0030] In one embodiment, installing the lens to be installed into the lens barrel to be installed at the corresponding position includes:

[0031] Calculating a second moving distance according to the lens position of the lens to be installed and the lens barrel position of the lens barrel to be installed at the corresponding position; the second moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction;

[0032] Control the suction cup to move to the top of the lens barrel to be installed at the corresponding position according to the second moving distance;

[0033] Obtaining a preset descending distance of the suction cup; the preset descending distance is related to the depth of the lens to be installed in the lens barrel to be installed;

[0034] The suction cup is controlled according to the preset descending depth to install the lens to be installed into the lens barrel to be installed at the corresponding position.

[0035] In one embodiment, before installing the lens to be installed into the lens barrel to be installed at the corresponding position, the method further includes:

[0036] Acquire multiple distances between the lens to be installed and the inner wall of the lens barrel to be installed;

[0037] Determine whether to adjust the position of the lens to be installed based on the multiple distance comparison results.

[0038] In one embodiment, determining whether to adjust the position of the lens to be installed according to multiple distance comparison results includes:

[0039] If at least two of the multiple distances are not equal, then the minimum distance among the multiple distances is determined;

[0040] Adjust the position of the lens to be installed in the opposite direction of the minimum distance.

[0041] In a second aspect, the present application also provides a point spectrum lens installation device. The device comprises:

[0042] An acquisition module, used to acquire a lens image corresponding to at least one lens to be installed and a barrel image corresponding to at least one barrel to be installed;

[0043] A recognition module, used to perform image recognition processing on the lens image and the lens barrel image, and determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image;

[0044] The installation module is used to install the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed, so as to obtain a point spectrum lens.

[0045] In a third aspect, the present application also provides a point spectrum lens installation system, the system comprising: a visual camera, a memory, a motor module and a controller, the controller comprising a processor, and the memory storing a computer program;

[0046] A visual camera, used to obtain a lens image corresponding to at least one lens to be installed and a barrel image corresponding to at least one barrel to be installed;

[0047] The controller is used to perform image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image when executing the computer program;

[0048] When executing the computer program, the controller is also used to control the motor module to install the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed, so as to obtain a point spectrum lens.

[0049] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0050] Acquire a lens image corresponding to at least one lens to be installed and a lens barrel image corresponding to at least one lens barrel to be installed;

[0051] Performing image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image;

[0052] According to the lens position, the lens barrel position and the positional correspondence between the lens to be installed and the lens barrel to be installed, the lens to be installed is installed into the lens barrel to be installed at the corresponding position to obtain a point spectrum lens.

[0053] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0054] Acquire a lens image corresponding to at least one lens to be installed and a lens barrel image corresponding to at least one lens barrel to be installed;

[0055] Performing image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image;

[0056] According to the lens position, the lens barrel position and the positional correspondence between the lens to be installed and the lens barrel to be installed, the lens to be installed is installed into the lens barrel to be installed at the corresponding position to obtain a point spectrum lens.

[0057] The above-mentioned point spectrum lens installation method, device, system, storage medium and product obtain the lens image corresponding to the lens to be installed and the barrel image corresponding to the barrel to be installed, then perform image recognition processing on the lens image and the barrel image, determine the lens position of the lens to be installed in the lens image and the barrel position of the barrel to be installed in the barrel image, and finally install the lens to be installed in the barrel to be installed at the corresponding position according to the lens position, the barrel position and the position correspondence between the lens to be installed and the barrel to be installed, so as to achieve the installation of the point spectrum lens. Since the installation method of the point spectrum lens adopts machine vision to automatically obtain images for image recognition and automatically install the lens by identifying the position of the lens to be installed and the position of the barrel to be installed, and combining the correspondence between the two types of positions, manual recognition and installation are not required, so manpower and time can be saved, thereby improving the installation efficiency of the point spectrum lens; at the same time, since the lens position and the barrel position obtained by image recognition are relatively accurate, on this basis, the lens is installed in the barrel in combination with the position correspondence, so the installed lens and barrel are relatively accurate, so the installation accuracy of the point spectrum lens can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a structural schematic diagram of a point spectrum lens installation system in one embodiment;

[0059] Figure 2A schematic diagram of a process of installing a point spectrum lens in an embodiment;

[0060] Figure 3 It is a flowchart of a method for installing a point spectrum lens in another embodiment;

[0061] Figure 4 It is a flowchart of a method for installing a point spectrum lens in another embodiment;

[0062] Figure 5 It is a flowchart of a method for installing a point spectrum lens in another embodiment;

[0063] Figure 6 It is a flowchart of a method for installing a point spectrum lens in another embodiment;

[0064] Figure 7 is a schematic diagram of the structure of another embodiment when the suction cup is in the lens barrel;

[0065] Figure 8 It is a schematic diagram of the structure of an infrared ranging sensor in another embodiment;

[0066] Fig. 9 It is a schematic diagram of the overall structure of a hydraulic buffer spring in another embodiment;

[0067] Fig.10 It is a schematic diagram of the cross-sectional structure of a hydraulic buffer spring in another embodiment;

[0068] Fig.11 It is a schematic diagram of the structure of a point spectrum lens installation device in an embodiment. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. 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.

[0070] It can be understood that the terms "first", "second", etc. used in the present application can be used herein to describe various elements and positions, etc., but these elements and positions are not limited by these terms.

[0071] The point spectrum lens installation method provided in this application can be applied to the point spectrum lens installation system. Figure 1 As shown, the system includes a visual camera, a memory, a motor module and a controller. A lens tray (for placing lenses to be installed) and a lens barrel tray (for placing lens barrels to be installed) are also placed on the operating table of the system.

[0072] The visual camera is used to obtain a lens image corresponding to at least one lens to be installed and a barrel image corresponding to at least one barrel to be installed. The number of visual cameras can be set according to actual conditions, for example, one visual camera, two visual cameras, three visual cameras, etc. The visual camera can be a CCD (Charge coupled Device) camera, or other cameras.

[0073] The memory is connected to the controller, and the memory stores a computer program. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium.

[0074] The controller may include a microprocessor with processing functions and a microcontroller with control functions that are interconnected. The motor module may be a motor module composed of motors in multiple directions, for example, a module composed of at least two motors including an X-axis motor in the X-axis direction (also referred to as a horizontal motor), a Y-axis motor in the Y-axis direction (also referred to as a front-rear motor), and a Z-axis motor in the Z-axis direction (also referred to as a vertical motor). The motor may be a three-phase motor, etc. Here, an infrared ranging suction cup may be connected to the bottom of the Z-axis motor, which can be used to absorb the lens.

[0075] The controller is connected to the motor module and the visual camera respectively, and the controller may include a processor for performing image recognition processing on the lens image and the lens barrel image when executing the computer program, determining the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image. And for controlling the motor module to install the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed, so as to obtain a point spectrum lens.

[0076] In short, the controller can process the data collected by the visual camera, and control the motor module to use the processed data to control the motor to achieve the installation of the lens and the lens barrel.

[0077] In one embodiment, Figure 2 As shown, a method for installing a point spectrum lens is provided, and the method is applied to Figure 1 The installation system of the point spectrum lens in FIG. 1 is taken as an example to illustrate, which includes the following steps:

[0078] S202, acquiring a lens image corresponding to at least one lens to be installed and a lens barrel image corresponding to at least one lens barrel to be installed.

[0079] The lenses to be installed may correspond one-to-one to the lens barrels to be installed, or multiple lenses to be installed may correspond to one lens barrel to be installed (ie, multiple lenses to be installed are installed in one lens barrel to be installed).

[0080] Specifically, before obtaining the lens image corresponding to the lens to be installed and the lens barrel image corresponding to the lens barrel to be installed, a lens tray for placing the lens to be installed can be set in advance, and each lens to be installed can be placed in the lens tray hole according to a preset order; and a lens barrel tray for placing the lens barrel to be installed can be set, and each lens barrel to be installed can be placed in the lens barrel tray hole according to a preset order. Then, on the installation operation table, the tray with the lens and the lens barrel to be installed is fixed in the respective installation holes of the lens tray and the lens barrel tray. Placing the lens and the lens barrel on the tray hole and fixing the tray to the tray installation hole can be completed by a robot arm or manually.

[0081] At the same time, a visual camera can be set up above the installation operating table in advance to collect data. Two visual cameras can be set up here to collect images of the lens to be installed and the lens barrel to be installed respectively, or one visual camera can be set up to collect images of the lens to be installed and the lens barrel to be installed at the same time. Of course, more visual cameras can be set up to collect images of the lens to be installed and the lens barrel to be installed.

[0082] In addition, the lens image here refers to the image of the entire tray and the lens to be installed after the lens to be installed is placed in the lens tray. The barrel image here refers to the image of the entire tray and the lens to be installed after the lens to be installed is placed in the barrel tray.

[0083] S204, performing image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image.

[0084] The image recognition process may be performed by using an image recognition algorithm, or by using a neural network recognition model, or other recognition methods.

[0085] In short, by performing image recognition processing on the lens image through an image recognition algorithm or a neural network recognition model, the position information of each lens to be installed in the lens image can be obtained; the position information of the lens to be installed is recorded as the lens position, which can include the number of the lens to be installed (for example, belonging to the first row and the first column, the number is 1.1), the center point coordinates, the contour point coordinates, etc. Of course, the origin position of the lens tray in the lens image can also be identified, such as the coordinates of the upper left corner of the lens tray.

[0086] Similarly, by performing image recognition processing on the lens barrel image through an image recognition algorithm or a neural network recognition model, the position information of each lens barrel to be installed in the lens barrel image can be obtained; the position information of the lens barrel to be installed is recorded as the lens barrel position, which can include the number of the lens barrel to be installed (for example, belonging to the second row and the first column, numbered 2.1), the center point coordinates, the contour point coordinates, etc. Of course, the origin position of the lens barrel tray in the lens barrel image can also be identified, such as the coordinates of the upper left corner of the lens barrel tray.

[0087] Of course, the number of lenses to be installed in the lens image and the number of lens barrels to be installed in the lens barrel image can also be identified through an image recognition algorithm or a neural network recognition model.

[0088] Step S206, according to the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed, the lens to be installed is installed into the lens barrel to be installed at the corresponding position to obtain a point spectrum lens.

[0089] In this step, when placing the lenses to be installed in the lens tray and placing the lens barrel to be installed in the lens barrel tray, the position correspondence between the lenses to be installed and the lens barrel to be installed can also be pre-set, for example, the lenses to be installed in the first row and first column (i.e., labeled 1.1) in the lens tray correspond to the lens barrel to be installed in the first row and first column (i.e., labeled 1.1) in the lens barrel tray, the lenses to be installed in the second row and third column (i.e., labeled 2.3) in the lens tray correspond to the lens barrel to be installed in the second row and third column (i.e., labeled 2.3) in the lens barrel tray, and so on.

[0090] Then, after obtaining the lens position of each lens to be installed and the barrel position of each lens barrel to be installed, each lens to be installed can be moved to the corresponding lens barrel to be installed and installed accordingly according to the lens position of each lens to be installed, the barrel position of each lens barrel to be installed and the correspondence between the two types of positions to obtain an installed point spectrum lens.

[0091] The above-mentioned point spectrum lens installation method obtains the lens image corresponding to the lens to be installed and the lens barrel image corresponding to the lens barrel to be installed, then performs image recognition processing on the lens image and the lens barrel image, determines the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image, and finally installs the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed, so as to achieve the installation of the point spectrum lens. Since the point spectrum lens installation method uses machine vision to automatically obtain images for image recognition and automatically installs the lens by identifying the position of the lens to be installed and the position of the lens barrel to be installed, and combining the correspondence between the two types of positions, manual recognition and installation are not required, so manpower and time can be saved, thereby improving the installation efficiency of the point spectrum lens; at the same time, since the lens position and the lens barrel position obtained by image recognition are relatively accurate, on this basis, the lens is installed in the lens barrel in combination with the position correspondence, so the installed lens and lens barrel are relatively accurate, so the installation accuracy of the point spectrum lens can be improved.

[0092] In the above embodiment, it is mentioned that one or more visual cameras can be used to collect images of the lens and the lens barrel. The following embodiment describes the specific process of using two visual cameras to collect images of the lens and the lens barrel. In another embodiment, another point spectrum lens installation method is provided. Based on the above embodiment, the above S202 may include the following steps A1 and A2:

[0093] Step A1, using a first visual camera to collect data from at least one lens tray where a lens to be installed is located, to determine a lens image.

[0094] Step A2: using a second visual camera to collect data from at least one lens barrel tray where the lens barrel to be installed is located, to determine the lens barrel image.

[0095] In steps A1-A2, the first visual cameras can be cameras of the same type, such as CCD cameras, or cameras of different types. The specific acquisition process can refer to the explanation of S202 above, which will not be repeated here.

[0096] It should be noted that there is no specific order for executing steps A1 and A2. Step A1 may be executed first and then step A2, or step A2 may be executed first and then step A1, or steps A1 and A2 may be executed simultaneously.

[0097] In this embodiment, by respectively collecting images of the lens to be installed and the lens barrel to be installed by two different visual cameras, the image collection efficiency can be improved, and further the installation efficiency of the subsequent point spectrum lens can be improved.

[0098] In the above embodiment, it is mentioned that the obtained lens image and lens barrel image can be subjected to image recognition processing. The following embodiment will describe in detail how to perform the recognition process. In another embodiment, another point spectrum lens installation method is provided. Based on the above embodiment, the above S204 may include the following steps B1 and B2:

[0099] Step B1, performing Hough detection processing on the lens image to determine a first position and a second position in the lens image; wherein the first position is a first origin position of a lens tray in the lens image, and the second position includes a lens position of at least one lens to be installed.

[0100] Step B2, performing Hough detection processing on the lens barrel image to determine a third position and a fourth position in the lens barrel image; wherein the third position is the second origin position of the lens barrel tray in the lens barrel image, and the fourth position includes at least one lens barrel position where the lens barrel is to be installed.

[0101] In step B1-B2, by processing the lens image with Hough detection, the origin position of the lens tray in the lens image can be identified and recorded as the first position, i.e., the first origin position, which can be, for example, the coordinates of the upper left corner of the lens tray. Of course, the position information of each lens to be installed can also be identified, and the position information of each lens to be installed is recorded as the second position, which can include, for example, the number of the lens to be installed, the coordinates of the center point, the coordinates of the contour point, etc.

[0102] Similarly, by processing the Hough detection of the lens barrel image, the origin position of the lens barrel tray in the lens barrel image can be identified and recorded as the third position, that is, the second origin position, which can be, for example, the coordinates of the upper left corner of the lens barrel tray. Of course, the position information of each lens barrel to be installed can also be identified, and the position information of each lens barrel to be installed is recorded as the fourth position, which can include, for example, the number of the lens barrel to be installed, the coordinates of the center point, the coordinates of the contour point, etc.

[0103] It should be noted that there is no specific order for executing steps B1 and B2. Step B1 may be executed first and then step B2, or step B2 may be executed first and then step B1, or steps B1 and B2 may be executed simultaneously.

[0104] In this embodiment, by performing Hough detection processing on the lens image and the lens barrel image, the tray origin position, the lens position and the lens barrel position in each image can be quickly identified, which can improve the efficiency of position recognition and the accuracy of image recognition, thereby providing an accurate data basis for the subsequent installation of the lens and the lens barrel, that is, the installation accuracy of the lens and the lens barrel can be improved.

[0105] In the above embodiment, it is mentioned that the lens installation can be realized by the lens position, the lens barrel position and the correspondence between the two types of positions. The following embodiment will describe in detail how to install the lens by using this information. In another embodiment, another point spectrum lens installation method is provided. Based on the above embodiment, Figure 3 As shown, the above S206 may include the following steps:

[0106] S302, obtaining the initial position of the suction cup; the suction cup is used to absorb the lens to be installed into the lens barrel to be installed, and the initial position is the first origin position or the second origin position.

[0107] Before introducing the installation process of this embodiment, the motor module in this application is first introduced. The motor module includes three motors, namely, an X-axis motor in the X-axis direction, a Y-axis motor in the Y-axis direction, and a Z-axis motor in the Z-axis direction; wherein the X-axis motor is a motor for controlling horizontal movement, and is used to control the Z-axis motor to move in the horizontal direction; the Y-axis motor is a motor for controlling front-to-back movement, and is used to control the Z-axis motor to move in the front-to-back direction; the Z-axis motor can also move up and down in the vertical direction after horizontal and front-to-back movement. The suction cup is mainly installed below the Z-axis motor to absorb the lens to be installed.

[0108] Usually, the Z-axis motor and the suction cup are generally placed at the origin position of the lens tray or the lens barrel tray. Of course, they can also be placed at other positions and moved to the origin position of the lens tray or the lens barrel tray before installing the lens. That is, the initial position of the suction cup here is the first origin position of the lens tray or the second origin position of the lens barrel tray. The first origin position and the second origin position can be obtained through the above image recognition, and then the initial position of the suction cup can be obtained.

[0109] Here, the initial position of the suction cup is at the origin, so the distance from the suction cup position to the position of the lens to be installed is equal to the distance from the origin position to the position of the lens to be installed, which makes the calculation of the moving distance simpler.

[0110] S304, installing the lens to be installed into the lens barrel to be installed at the corresponding position according to the initial position, the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed.

[0111] In this step, the suction cup can be moved to the lens position to adsorb the lens by obtaining the initial position of the suction cup and the lens position, and then the adsorbed lens can be installed in the lens barrel at the corresponding position based on the positional correspondence between the lens barrel position and the lens barrel position.

[0112] In this embodiment, the adsorbed lens is installed in the lens barrel at the corresponding position through the position correspondence between the suction cup's initial position, the lens position, the lens barrel position, and the lens barrel position. Here, the lens is adsorbed through the suction cup's initial position and the lens position, so that the adsorbed lens can be more accurate, thereby making the lens installation process more precise.

[0113] In the above embodiments, it is mentioned that the initial position of the suction cup can be the first origin position or the second origin position. The following embodiments will describe in detail how to install the lens through these two origin positions.

[0114] First, in another embodiment, another method for installing a point spectrum lens is provided. This embodiment mainly describes the process of installing the lens barrel when the initial position of the suction cup is the first origin position. Figure 4 As shown, the above S304 may include the following steps:

[0115] S402, if the initial position is the first origin position, determine the first moving distance of the suction cup according to the position difference between the first origin position and the lens position; the first moving distance includes the moving distance in the X-axis direction and the moving distance in the Y-axis direction.

[0116] In this step, the first origin position is the origin position of the lens tray, so the position difference between the first origin position and each lens position can be calculated first. The position difference can include the position difference on the X-axis and the Y-axis, which refers to the distance the suction cup moves on the X-axis and the Y-axis respectively to move to the lens position. The two position differences of each lens are recorded as the first moving distance, which includes the respective moving distances of the suction cup on the X-axis and the Y-axis.

[0117] It should be noted that each time the suction cup absorbs and installs a lens, it will automatically return to the original position of the suction cup to facilitate the next lens absorption and installation.

[0118] S404, controlling the suction cup to move to the lens position according to the first moving distance, and controlling the lens to be installed at the suction cup lens position.

[0119] In this step, after obtaining the first moving distance corresponding to each lens to be installed, including the moving distances of the suction cup on the X-axis and the Y-axis, the Z-axis motor corresponding to the suction cup can be controlled to move the corresponding distance on the X-axis and the Y-axis, and by moving up and down to the top of the lens to be adsorbed, and lowering the Z-axis motor to a certain height, the lens to be installed at the corresponding position can be adsorbed.

[0120] S406, determining the lens barrel to be installed corresponding to the lens to be installed according to the position correspondence between the lens to be installed and the lens barrel to be installed and the position of the lens barrel.

[0121] In this step, the lens to be installed and the lens barrel to be installed corresponding to the lens to be installed can be obtained through the position correspondence, for example, the above-mentioned numbers can be used as the lens position and the lens barrel position.

[0122] S408, controlling the suction cup to install the lens to be installed into the lens barrel to be installed at the corresponding position.

[0123] In this step, after determining the lens barrel to be installed, optionally, a second moving distance can be calculated according to the lens position of the lens to be installed and the lens barrel position of the lens barrel to be installed at the corresponding position; the second moving distance includes the moving distance in the X-axis direction and the moving distance in the Y-axis direction; according to the second moving distance, the suction cup is controlled to move to the top of the lens barrel to be installed at the corresponding position; the preset descending distance of the suction cup is obtained; the preset descending distance is related to the depth of the lens to be installed in the lens barrel to be installed; according to the preset descending depth, the suction cup is controlled to install the lens to be installed in the lens barrel to be installed at the corresponding position.

[0124] Specifically, the moving distance between the lens position of a lens to be installed adsorbed by the current suction cup and its corresponding lens barrel position can be calculated first, including the respective moving distances in the X-axis and Y-axis directions, both of which are recorded as the second moving distance. Afterwards, the Z-axis motor corresponding to the suction cup can be controlled to move the corresponding distances on the X-axis and Y-axis, and by moving up and down to the top of the lens barrel to be installed, and lowering the Z-axis motor to a preset lowering depth, the adsorbed lens is installed in the lens barrel at this position. The preset lowering depth here can be set according to actual conditions, for example, it can be 2mm, 5mm, etc. from the upper surface of the lens barrel.

[0125] In this embodiment, by calculating the position difference between the suction cup at the first origin position and the lens position, and moving the suction cup to adsorb the lens according to the position difference, and then installing the lens and lens barrel, the lens and lens barrel that need to be installed can be quickly and accurately determined, thereby improving the efficiency and accuracy of lens installation.

[0126] Secondly, in another embodiment, another method for installing a point spectrum lens is provided. This embodiment mainly describes the process of installing the lens barrel when the initial position of the suction cup is the second origin position. Figure 5 As shown, the above S304 may include the following steps:

[0127] S502: If the initial position is the second origin position, the suction cup is controlled to move to the first origin position according to the origin position difference between the first origin position and the second origin position.

[0128] In this step, the second origin position is the origin position of the lens barrel tray, so the position difference between the second origin position and the first origin position can be calculated first, and the suction cup is moved to the first origin position according to the position difference.

[0129] After the suction cup is moved to the first origin position, the lens installation can be performed according to the content of the above method embodiment. Here, the suction cup is moved from the second origin position to the first origin position, so that the lens can be quickly determined and adsorbed.

[0130] For the explanation of the steps after the suction cup is moved to the first origin position, please refer to the explanation of S402 above, which will not be repeated here.

[0131] S504, determining a first moving distance of the suction cup according to a position difference between the first origin position and the lens position; the first moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction.

[0132] The explanation of this step can be found in the explanation of S402 above, which will not be repeated here.

[0133] S506, controlling the suction cup to move to the lens position according to the first moving distance, and controlling the suction cup to adsorb the lens to be installed at the lens position.

[0134] The explanation of this step can be found in the explanation of S404 above, which will not be repeated here.

[0135] S508, determining the lens barrel to be installed corresponding to the lens to be installed according to the position correspondence between the lens to be installed and the lens barrel to be installed and the position of the lens barrel.

[0136] The explanation of this step can be found in the explanation of S406 above, which will not be repeated here.

[0137] S510, controlling the suction cup to install the lens to be installed into the lens barrel to be installed at the corresponding position.

[0138] The explanation of this step can be found in the explanation of S408 above, which will not be repeated here.

[0139] In this embodiment, the suction cup is first moved from the second origin position to the first origin position, the position difference between the suction cup and the lens position at the first origin position is calculated, and the suction cup is moved to adsorb the lens according to the position difference, and then the lens and lens barrel are installed. In this way, the lens and lens barrel that need to be installed can be quickly and accurately determined, thereby improving the efficiency and accuracy of lens installation.

[0140] In the above embodiment, it is mentioned that the lens can be installed in the corresponding lens barrel. Before installation, in order to avoid the lens being too close to the inner wall of the lens barrel, which may cause installation failure, another method for installing the point spectrum lens is provided here before installation, mainly describing the process of adjusting the position of the lens in the lens barrel. Figure 6 As shown, the above method may further include the following steps:

[0141] S602, obtaining a plurality of distances between the lens to be installed and the inner wall of the lens barrel to be installed.

[0142] In this step, see Figure 7 and Figure 8 As shown, a plurality of infrared ranging sensors can be arranged around the suction cup (the number of infrared ranging sensors can be set according to actual conditions. In this embodiment, four infrared ranging sensors are mainly used and are arranged at the center points of the four sides of the suction cup, respectively, so that it is convenient to quickly collect the distance between the lens and the four sides of the lens barrel). By setting a plurality of infrared ranging sensors, the distance between the lens to be installed adsorbed on the suction cup and the inner wall of the lens barrel to be installed can be obtained, thereby obtaining the distance in multiple directions.

[0143] S604: Determine whether to adjust the position of the lens to be installed according to the multiple distance comparison results.

[0144] In this step, after obtaining the distances in multiple directions, the distances in the multiple directions can be compared. Optionally, if at least two of the multiple distances are not equal, the minimum distance among the multiple distances is determined. Here, the minimum distance can be obtained by sorting the multiple distances. Afterwards, the position of the lens to be installed can be adjusted in the opposite direction of the minimum distance, that is, the lens to be installed can be moved in the opposite direction corresponding to the minimum distance, so that the distance from the inner wall in the direction corresponding to the minimum distance is increased, ensuring that the lens will not be bumped during the installation process.

[0145] In this embodiment, by obtaining multiple distances between the lens to be installed and the inner wall of the lens barrel and adjusting the lens, it is possible to avoid bumping the lens during the installation process, thereby improving the success rate of the lens installation process. Furthermore, by adjusting the lens in the opposite direction of the minimum distance, it is possible to increase the distance between the lens and the lens barrel, thereby further improving the accuracy and success rate of lens installation.

[0146] In addition, in another embodiment, see Fig. 9 and 10As shown, a hydraulic buffer spring and a hydraulic spring buffer valve are interconnected between the above-mentioned Z-axis motor and the suction cup. After the Z-axis motor receives the Z-axis feed signal from the controller, it will contact the hydraulic buffer spring and the hydraulic spring buffer valve when it drops to a certain height. As the compression amount increases, the resistance encountered by the Z-axis motor increases, thereby reducing the actual contact force between the suction cup and the lens, thereby achieving the effect of crushing the lens due to excessive feed amount, protecting the lens, avoiding damage or waste of the lens during lens installation, and thus saving lens installation costs.

[0147] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0148] Based on the same inventive concept, the embodiment of the present application also provides a point spectrum lens installation device for implementing the point spectrum lens installation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more point spectrum lens installation device embodiments provided below can refer to the limitations of the point spectrum lens installation method above, and will not be repeated here.

[0149] In one embodiment, Fig.11 As shown, a point spectrum lens installation device is provided, comprising: an acquisition module 11, an identification module 12 and an installation module 13, wherein:

[0150] Specifically, the acquisition module 11 is used to acquire a lens image corresponding to at least one lens to be installed and a lens barrel image corresponding to at least one lens barrel to be installed;

[0151] The recognition module 12 is used to perform image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image;

[0152] The installation module 13 is used to install the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed, so as to obtain a point spectrum lens.

[0153] In the point spectrum lens installation device provided in another embodiment, the acquisition module 11 includes: a first acquisition unit and a second acquisition unit;

[0154] Specifically, the first acquisition unit is used to use a first visual camera to acquire data from at least one lens tray where the lens to be installed is located, and determine the lens image;

[0155] The second acquisition unit is used to use a second visual camera to acquire data from at least one lens barrel tray where the lens barrel to be installed is located, and determine the lens barrel image.

[0156] In a point spectrum lens installation device provided in another embodiment, the identification module 12 includes: a first processing unit and a second processing unit;

[0157] Specifically, the first processing unit is used to perform Hough detection processing on the lens image to determine a first position and a second position in the lens image; wherein the first position is a first origin position of the lens tray in the lens image, and the second position includes a lens position of at least one lens to be installed;

[0158] The second processing unit is used to perform Hough detection processing on the lens barrel image to determine a third position and a fourth position in the lens barrel image; wherein the third position is a second origin position of the lens barrel tray in the lens barrel image, and the fourth position includes a lens barrel position of at least one lens barrel to be installed.

[0159] In a point spectrum lens installation device provided in another embodiment, the installation module 13 includes: a position acquisition unit and an installation unit;

[0160] A position acquisition unit, used for acquiring an initial position of a suction cup; the suction cup is used for adsorbing the lens to be installed into the lens barrel to be installed, and the initial position is a first origin position or a second origin position;

[0161] The installation unit is used to install the lens to be installed into the lens barrel to be installed at the corresponding position according to the initial position, the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed.

[0162] In a point spectrum lens installation device provided in another embodiment, the installation unit may include: a first determination subunit, a first movement subunit, a second determination subunit, and a first installation subunit;

[0163] Specifically, the first determining subunit is used to determine a first moving distance of the suction cup according to a position difference between the first origin position and the lens position when the initial position is the first origin position; the first moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction;

[0164] A first moving subunit is used to control the suction cup to move to the lens position according to the first moving distance, and control the suction cup to absorb the lens to be installed at the lens position;

[0165] A second determining subunit is used to determine the lens to be installed corresponding to the lens to be installed according to the position correspondence between the lens to be installed and the lens barrel to be installed and the position of the lens barrel;

[0166] The first mounting subunit is used to control the suction cup to mount the lens to be mounted into the lens barrel to be mounted at a corresponding position.

[0167] In a point spectrum lens installation device provided in another embodiment, the installation unit includes: a second moving subunit, a third determining subunit, a third moving subunit, a fourth determining subunit, and a second installation subunit;

[0168] The second moving subunit is used to control the suction cup to move to the first origin position according to the origin position difference between the first origin position and the second origin position when the initial position is the second origin position;

[0169] A third determining subunit is used to determine a first moving distance of the suction cup according to a position difference between the first origin position and the lens position; the first moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction;

[0170] A third moving subunit is used to control the suction cup to move to the lens position according to the first moving distance, and control the suction cup to adsorb the lens to be installed at the lens position;

[0171] A fourth determining subunit is used to determine the lens to be installed corresponding to the lens to be installed according to the position correspondence between the lens to be installed and the lens barrel to be installed and the position of the lens barrel;

[0172] The second mounting subunit is used to control the suction cup to mount the lens to be mounted into the lens barrel to be mounted at the corresponding position.

[0173] Optionally, the above-mentioned first installation subunit or second installation subunit is specifically used to calculate a second moving distance according to the lens position of the lens to be installed and the lens barrel position of the lens barrel to be installed at a corresponding position; the second moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction; according to the second moving distance, the suction cup is controlled to move to above the lens barrel to be installed at the corresponding position; a preset descent distance of the suction cup is obtained; the preset descent distance is related to the depth at which the lens to be installed is installed in the lens barrel to be installed; according to the preset descent depth, the suction cup is controlled to install the lens to be installed into the lens barrel to be installed at the corresponding position.

[0174] In a point spectrum lens installation device provided in another embodiment, the device further includes: a distance measurement module and a comparison module.

[0175] A distance measuring module, used for obtaining a plurality of distances between the lens to be installed and the inner wall of the lens barrel to be installed;

[0176] The comparison module is used to determine whether to adjust the position of the lens to be installed according to multiple distance comparison results.

[0177] Optionally, the above comparison module includes: a distance determination unit and an adjustment unit.

[0178] a distance determination unit, configured to determine a minimum distance among the multiple distances when at least two of the multiple distances are not equal;

[0179] The adjusting unit is used to adjust the position of the lens to be installed in the opposite direction of the minimum distance.

[0180] Each module in the above-mentioned point spectrum lens installation device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the controller in the point spectrum lens installation system in the form of hardware, or can be stored in the memory in the point spectrum lens installation system in the form of software, so that the controller can call and execute the corresponding operations of each of the above modules.

[0181] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0182] Acquire at least one lens image corresponding to a lens to be installed and at least one lens barrel image corresponding to a lens barrel to be installed; perform image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image; install the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position and the positional correspondence between the lens to be installed and the lens barrel to be installed, so as to obtain a point spectrum lens.

[0183] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0184] A first visual camera is used to collect data from a lens tray where at least one lens to be installed is located to determine a lens image; a second visual camera is used to collect data from a lens barrel tray where at least one lens barrel to be installed is located to determine a lens barrel image.

[0185] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0186] The lens image is subjected to Hough detection processing to determine a first position and a second position in the lens image; wherein the first position is a first origin position of a lens tray in the lens image, and the second position includes a lens position of at least one lens to be installed; the lens barrel image is subjected to Hough detection processing to determine a third position and a fourth position in the lens barrel image; wherein the third position is a second origin position of the lens barrel tray in the lens barrel image, and the fourth position includes a lens barrel position of at least one lens barrel to be installed.

[0187] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0188] The initial position of the suction cup is obtained; the suction cup is used to absorb the lens to be installed into the lens barrel to be installed, and the initial position is the first origin position or the second origin position; according to the initial position, the lens position, the lens barrel position and the positional correspondence between the lens to be installed and the lens barrel to be installed, the lens to be installed is installed into the lens barrel to be installed at the corresponding position.

[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0190] If the initial position is the first origin position, a first moving distance of the suction cup is determined according to the position difference between the first origin position and the lens position; the first moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction; the suction cup is controlled to move to the lens position according to the first moving distance, and the lens to be installed at the suction cup lens position is controlled; according to the position correspondence between the lens to be installed and the lens barrel to be installed and the lens barrel position, the lens barrel to be installed corresponding to the lens to be installed is determined; and the suction cup is controlled to install the lens to be installed into the lens barrel to be installed at the corresponding position.

[0191] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0192] If the initial position is the second origin position, the suction cup is controlled to move to the first origin position according to the origin position difference between the first origin position and the second origin position; the first movement distance of the suction cup is determined according to the position difference between the first origin position and the lens position; the first movement distance includes the movement distance in the X-axis direction and the movement distance in the Y-axis direction; the suction cup is controlled to move to the lens position according to the first movement distance, and the suction cup is controlled to adsorb the lens to be installed at the lens position; the lens barrel to be installed corresponding to the lens to be installed is determined according to the position correspondence between the lens to be installed and the lens barrel to be installed and the lens barrel position; the suction cup is controlled to install the lens to be installed into the lens barrel to be installed at the corresponding position.

[0193] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0194] A plurality of distances between the lens to be installed and the inner wall of the lens barrel to be installed are obtained; and it is determined whether to adjust the position of the lens to be installed according to the comparison results of the plurality of distances.

[0195] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0196] If at least two of the multiple distances are not equal, the minimum distance among the multiple distances is determined; and the position of the lens to be installed is adjusted in the opposite direction of the minimum distance.

[0197] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0198] Acquire at least one lens image corresponding to a lens to be installed and at least one lens barrel image corresponding to a lens barrel to be installed; perform image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image; install the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position and the positional correspondence between the lens to be installed and the lens barrel to be installed, so as to obtain a point spectrum lens.

[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0200] A first visual camera is used to collect data from a lens tray where at least one lens to be installed is located to determine a lens image; a second visual camera is used to collect data from a lens barrel tray where at least one lens barrel to be installed is located to determine a lens barrel image.

[0201] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0202] The lens image is subjected to Hough detection processing to determine a first position and a second position in the lens image; wherein the first position is a first origin position of a lens tray in the lens image, and the second position includes a lens position of at least one lens to be installed; the lens barrel image is subjected to Hough detection processing to determine a third position and a fourth position in the lens barrel image; wherein the third position is a second origin position of the lens barrel tray in the lens barrel image, and the fourth position includes a lens barrel position of at least one lens barrel to be installed.

[0203] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0204] The initial position of the suction cup is obtained; the suction cup is used to absorb the lens to be installed into the lens barrel to be installed, and the initial position is the first origin position or the second origin position; according to the initial position, the lens position, the lens barrel position and the positional correspondence between the lens to be installed and the lens barrel to be installed, the lens to be installed is installed into the lens barrel to be installed at the corresponding position.

[0205] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0206] If the initial position is the first origin position, a first moving distance of the suction cup is determined according to the position difference between the first origin position and the lens position; the first moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction; the suction cup is controlled to move to the lens position according to the first moving distance, and the lens to be installed at the suction cup lens position is controlled; according to the position correspondence between the lens to be installed and the lens barrel to be installed and the lens barrel position, the lens barrel to be installed corresponding to the lens to be installed is determined; and the suction cup is controlled to install the lens to be installed into the lens barrel to be installed at the corresponding position.

[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0208] If the initial position is the second origin position, the suction cup is controlled to move to the first origin position according to the origin position difference between the first origin position and the second origin position; the first movement distance of the suction cup is determined according to the position difference between the first origin position and the lens position; the first movement distance includes the movement distance in the X-axis direction and the movement distance in the Y-axis direction; the suction cup is controlled to move to the lens position according to the first movement distance, and the suction cup is controlled to adsorb the lens to be installed at the lens position; the lens barrel to be installed corresponding to the lens to be installed is determined according to the position correspondence between the lens to be installed and the lens barrel to be installed and the lens barrel position; the suction cup is controlled to install the lens to be installed into the lens barrel to be installed at the corresponding position.

[0209] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0210] A plurality of distances between the lens to be installed and the inner wall of the lens barrel to be installed are obtained; and it is determined whether to adjust the position of the lens to be installed according to the comparison results of the plurality of distances.

[0211] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0212] If at least two of the multiple distances are not equal, the minimum distance among the multiple distances is determined; and the position of the lens to be installed is adjusted in the opposite direction of the minimum distance.

[0213] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties.

[0214] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The microprocessor in the controller involved in each embodiment provided in the present application can be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but is not limited thereto.

[0215] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0216] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for installing a point spectrum lens, It is characterized in that The method comprises: Acquire at least one lens image corresponding to a lens to be installed and at least one lens barrel image corresponding to a lens barrel to be installed, wherein the lens image and the lens barrel image are acquired based on at least one visual camera; Performing image recognition processing on the lens image and the lens barrel image to determine a first origin position in the lens image and a lens position of the lens to be installed, and a second origin position in the lens barrel image and a lens barrel position of the lens barrel to be installed; According to the lens position, the lens barrel position, and the positional correspondence between the lens to be installed and the lens barrel to be installed, the lens to be installed is installed into the lens barrel to be installed at the corresponding position to obtain a point spectrum lens; The method of installing the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed comprises: Obtaining an initial position of the suction cup; the suction cup is used to absorb the lens to be installed into the lens barrel to be installed, and the initial position is the first origin position or the second origin position; According to the initial position, the lens position, the lens barrel position, and the positional correspondence between the lens to be installed and the lens barrel to be installed, installing the lens to be installed into the lens barrel to be installed at the corresponding position; The method of installing the lens to be installed into the lens barrel to be installed at a corresponding position according to the initial position, the lens position, the lens barrel position, and the position correspondence between the lens to be installed and the lens barrel to be installed comprises: If the initial position is the first origin position, a first moving distance of the suction cup is determined according to the position difference between the first origin position and the lens position; the first moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction; Controlling the suction cup to move to the lens position according to the first moving distance, and controlling the suction cup to absorb the lens to be installed at the lens position; Determining the lens barrel to be installed corresponding to the lens to be installed according to the position correspondence between the lens to be installed and the lens barrel to be installed and the position of the lens barrel; The suction cup is controlled to install the lens to be installed into the lens barrel to be installed at a corresponding position.

2. The method according to claim 1, It is characterized in that The step of acquiring at least one lens image corresponding to a lens to be installed and at least one lens barrel image corresponding to a lens barrel to be installed comprises: Using a first visual camera to collect data from the lens tray where the at least one lens to be installed is located, to determine the lens image; A second visual camera is used to collect data from the lens barrel tray where the at least one lens barrel to be installed is located to determine the lens barrel image.

3. The method according to claim 2, It is characterized in that The performing image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image comprises: Performing Hough detection processing on the lens image to determine a first position and a second position in the lens image; wherein the first position is a first origin position of the lens tray in the lens image, and the second position includes at least one lens position of the lens to be installed; The lens barrel image is subjected to Hough detection processing to determine a third position and a fourth position in the lens barrel image; wherein the third position is a second origin position of the lens barrel tray in the lens barrel image, and the fourth position includes at least one lens barrel position of the lens barrel to be installed.

4. The method according to claim 1, It is characterized in that The method of installing the lens to be installed into the lens barrel to be installed at a corresponding position according to the initial position, the lens position, the lens barrel position, and the position correspondence between the lens to be installed and the lens barrel to be installed comprises: If the initial position is the second origin position, controlling the suction cup to move to the first origin position according to the origin position difference between the first origin position and the second origin position; Determine a first moving distance of the suction cup according to the position difference between the first origin position and the lens position; the first moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction; Controlling the suction cup to move to the lens position according to the first moving distance, and controlling the suction cup to absorb the lens to be installed at the lens position; Determining the lens barrel to be installed corresponding to the lens to be installed according to the position correspondence between the lens to be installed and the lens barrel to be installed and the position of the lens barrel; The suction cup is controlled to install the lens to be installed into the lens barrel to be installed at a corresponding position.

5. The method according to any one of claims 1 to 4, It is characterized in that The step of installing the lens to be installed into the lens barrel to be installed at the corresponding position comprises: Calculating a second moving distance according to the lens position of the lens to be installed and the lens barrel position of the lens barrel to be installed at the corresponding position; the second moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction; Control the suction cup to move to a corresponding position above the lens barrel to be installed according to the second moving distance; Obtaining a preset descending distance of the suction cup; the preset descending distance is related to the depth at which the lens to be installed is installed in the lens barrel to be installed; The suction cup is controlled according to the preset descending depth to install the lens to be installed into the lens barrel to be installed at the corresponding position.

6. The method according to any one of claims 1 to 4, It is characterized in that Before installing the lens to be installed in the lens barrel to be installed at the corresponding position, the method further includes: Acquire multiple distances between the lens to be installed and the inner wall of the lens barrel to be installed; Determine whether to adjust the position of the lens to be installed according to the multiple distance comparison results.

7. The method according to claim 6, It is characterized in that The step of determining whether to adjust the position of the lens to be installed according to the multiple distance comparison results includes: If at least two of the plurality of distances are not equal, determining a minimum distance among the plurality of distances; The position of the lens to be installed is adjusted in the opposite direction of the minimum distance.

8. A point spectrum lens mounting device, It is characterized in that The device comprises: An acquisition module, used to acquire a lens image corresponding to at least one lens to be installed and a barrel image corresponding to at least one lens barrel to be installed, wherein the lens image and the barrel image are acquired based on at least one visual camera; A recognition module, used for performing image recognition processing on the lens image and the lens barrel image, determining a first origin position in the lens image and a lens position of the lens to be installed, and a second origin position in the lens barrel image and a lens barrel position of the lens barrel to be installed; An installation module, for installing the lens to be installed into the lens barrel to be installed at a corresponding position according to the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed, so as to obtain a point spectrum lens; The installation module includes an acquisition unit and an installation unit, wherein the acquisition unit is used to acquire an initial position of a suction cup; the suction cup is used to absorb the lens to be installed into the lens barrel to be installed, and the initial position is the first origin position or the second origin position; the installation unit is used to install the lens to be installed into the lens barrel to be installed at a corresponding position according to the initial position, the lens position, the lens barrel position, and the positional correspondence between the lens to be installed and the lens barrel to be installed; The installation unit includes a first determining subunit, a first moving subunit, a second determining subunit and a first installing subunit. The first determining subunit is used to determine a first moving distance of the suction cup according to the position difference between the first origin position and the lens position when the initial position is the first origin position; the first moving distance includes a moving distance in the X-axis direction and a moving distance in the Y-axis direction; the first moving subunit is used to control the suction cup to move to the lens position according to the first moving distance, and control the suction cup to adsorb the lens to be installed at the lens position; the second determining subunit is used to determine the lens barrel to be installed corresponding to the lens to be installed according to the position correspondence between the lens to be installed and the lens barrel position and the lens barrel position; the first installing subunit is used to control the suction cup to install the lens to be installed into the lens barrel to be installed at the corresponding position.

9. A point spectrum lens mounting system, It is characterized in that Used to perform the point spectrum lens installation method according to any one of claims 1 to 7, the system comprising: a visual camera, a memory, a motor module and a controller, the controller comprising a processor, and the memory storing a computer program; The visual camera is used to obtain a lens image corresponding to at least one lens to be installed and a barrel image corresponding to at least one barrel to be installed; The controller, when executing the computer program, is used to perform image recognition processing on the lens image and the lens barrel image to determine the lens position of the lens to be installed in the lens image and the lens barrel position of the lens barrel to be installed in the lens barrel image; When executing the computer program, the controller is also used to control the motor module to install the lens to be installed into the lens barrel to be installed at the corresponding position according to the lens position, the lens barrel position and the position correspondence between the lens to be installed and the lens barrel to be installed, so as to obtain a point spectrum lens.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Lens module group assembly device

    CN101311763A

  • Lens module measuring system and method

    CN102455172A

  • Optical lens assembly method

    CN104330866A

  • Installation and adjustment system and method for multi-layer nested X-ray grazing incidence optical lens

    CN105068208A

  • Assembly device and assembly method of optical lens

    CN107511661A