Equipment calibration method, device and system
By using correction glass for image recognition and control signal adjustment, the problem of insufficient position correction accuracy of lens and voice coil motors in the prior art is solved, and the effect of improving product assembly accuracy at low cost is achieved.
Patent Information
- Application Number
- CN202411273368.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-06
AI Technical Summary
During the installation of existing cameras, the relative position correction of the lens and voice coil motor cannot achieve sufficient accuracy and cannot meet the product process requirements.
By using correction glass instead of voice coil motor, image recognition is performed using the positional relationship between the vehicle and the lens nozzle, and the control signal is adjusted to achieve accurate position calibration, ensuring the correct installation of the lens and voice coil motor.
At low cost, the accuracy of product assembly is improved, ensuring that the relative position of the lens and voice coil motor reaches a predetermined accuracy, and improving product quality.
Smart Images

Figure CN119094741A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cameras, and in particular to a device calibration method, apparatus and system. Background Art
[0002] When installing the camera, during the process of installing the lens (Lens) and voice coil motor (VCM), the lens is sucked by the lens nozzle, and the VCM carrier carries the VCM, and the VCM carrier is controlled to rise to complete the installation of the lens and VCM.
[0003] Before this process, the position of the lens nozzle and the VCM carrier must be calibrated to ensure the relative position of the lens and VCM is correct. However, the current calibration method can only roughly determine the relative position. If the product process requires a small deviation between the center of the lens and the center of the VCM, the current calibration method cannot fully meet the process requirements. Summary of the invention
[0004] In view of this, embodiments of the present invention provide a device calibration method, apparatus, and system, which can improve the accuracy of product assembly at a relatively low cost.
[0005] In a first aspect, an embodiment of the present invention provides a device calibration method, wherein the device includes a carrier, and the method includes:
[0006] Controlling the carrier to move to a first position according to a first control signal, a correction glass is arranged above the carrier, and a lens suction nozzle is arranged above the first position;
[0007] Controlling the carrier to rise so that the correction glass is adsorbed on the lens suction nozzle;
[0008] Acquire an image to be processed in which the correction glass is adsorbed on the lens nozzle;
[0009] Obtaining a recognition result of the image to be processed;
[0010] The first control signal is adjusted according to the recognition result of the image to be processed to obtain a second control signal, where the second control signal is a calibrated control signal.
[0011] In some embodiments, the correction glass is adsorbed to a predetermined position of the carrier by vacuum.
[0012] In some embodiments, controlling the carrier to rise so that the correction glass is adsorbed on the lens nozzle includes:
[0013] Controlling the carrier to rise until it contacts the lens nozzle;
[0014] Turning on the vacuum suction of the lens suction nozzle so that the correction glass is sucked onto the lens suction nozzle by vacuum;
[0015] The vacuum of the carrier is turned off.
[0016] In some embodiments, obtaining the recognition result of the image to be processed includes:
[0017] Determine a first coordinate of a center of the correction glass and a second coordinate of a center of the lens nozzle according to the image to be processed;
[0018] A difference between the first coordinate and the second coordinate is determined as the recognition result.
[0019] In some embodiments, determining the first coordinate of the center of the correction glass and the second coordinate of the center of the lens nozzle according to the image to be processed comprises:
[0020] Acquire a first reference image and a second reference image, wherein the first reference image is an image pre-photographed of the correction glass, and the second reference image is an image pre-photographed of the lens nozzle;
[0021] Determine the position of the correction glass according to the first reference image and the image to be processed;
[0022] Determine the position of the lens nozzle according to the second reference image and the image to be processed;
[0023] The first coordinate and the second coordinate are determined according to the position of the correction glass and the position of the lens nozzle.
[0024] In some embodiments, determining the first coordinate of the center of the correction glass and the second coordinate of the center of the lens nozzle according to the image to be processed comprises:
[0025] Determine the position of the correction glass and the position of the lens nozzle according to the image to be processed by image recognition;
[0026] The first coordinate and the second coordinate are determined according to the position of the correction glass and the position of the lens nozzle.
[0027] In some embodiments, adjusting the first control signal according to the recognition result of the image to be processed to obtain the second control signal includes:
[0028] In response to the recognition result that the distance corresponding to the difference between the first coordinate and the second coordinate is less than or equal to a predetermined value, determining the first control signal as the second control signal; or
[0029] In response to the recognition result that the distance corresponding to the difference between the first coordinate and the second coordinate is greater than a predetermined value, determining a compensation signal according to the recognition result, wherein the compensation signal is used to adjust the first control signal to obtain the second control signal;
[0030] The first control signal is a preset control signal, or the first control signal is a control signal adjusted last time.
[0031] In some embodiments, the diameter of the inner circle of the correction glass is greater than the diameter of the lens nozzle.
[0032] In a second aspect, an embodiment of the present invention provides a device calibration apparatus, wherein the device includes a carrier, and the apparatus includes:
[0033] A moving unit, used for controlling the carrier to move to a first position according to a first control signal, a correction glass is arranged above the carrier, and a lens suction nozzle is arranged above the first position;
[0034] A lifting unit, used for controlling the carrier to rise so that the correction glass is adsorbed on the lens suction nozzle;
[0035] An image acquisition unit, used for acquiring an image to be processed of the correction glass adsorbed on the lens nozzle;
[0036] A recognition result determination unit, used to obtain the recognition result of the image to be processed;
[0037] The control signal adjustment unit is used to adjust the first control signal according to the recognition result of the image to be processed to obtain a second control signal, where the second control signal is a calibrated control signal.
[0038] In a third aspect, an embodiment of the present invention provides a device calibration system, the system comprising:
[0039] Lens nozzle;
[0040] Vehicles;
[0041] Correction glass;
[0042] Image acquisition device;
[0043] Computing device;
[0044] The computing device comprises a memory and a processor, the memory is used to store one or more computer program instructions, and the one or more computer program instructions are executed by the processor to implement the method as described in any one of the first aspects.
[0045] The technical solution of the embodiment of the present invention controls the carrier to move to the first position, a correction glass is arranged above the carrier, a lens nozzle is arranged above the first position, the carrier is controlled to rise so that the correction glass is adsorbed on the lens nozzle, an image to be processed of the correction glass adsorbed on the lens nozzle is obtained, a recognition result of the image to be processed is obtained, and the first control signal is adjusted according to the recognition result of the image to be processed to obtain a second control signal, wherein the second control signal is a calibrated control signal. Thus, the accuracy of product assembly can be improved at a relatively low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0047] Figure 1 is a schematic diagram of a device calibration system according to an embodiment of the present invention;
[0048] Figure 2 is a flow chart of a device calibration method according to an embodiment of the present invention;
[0049] Figure 3 is a schematic diagram of a device calibration system after a carrier according to an embodiment of the present invention moves to a first position;
[0050] Figure 4 is a flow chart of adsorbing the correction glass to the lens nozzle according to an embodiment of the present invention;
[0051] Figure 5 is a schematic diagram of obtaining an image to be processed according to an embodiment of the present invention;
[0052] Figure 6 is a flow chart of obtaining the recognition result of the image to be processed according to an embodiment of the present invention;
[0053] Figure 7 is a flow chart of determining a first coordinate and a second coordinate according to an embodiment of the present invention;
[0054] Figure 8 is another flow chart for determining a first coordinate and a second coordinate according to an embodiment of the present invention;
[0055] Fig. 9 is a schematic diagram of a device calibration apparatus according to an embodiment of the present invention;
[0056] Fig.10 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.
[0058] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0059] Unless the context clearly requires otherwise, the words "include", "comprising" and similar words throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".
[0060] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.
[0061] Figure 1 is a schematic diagram of an equipment calibration system according to an embodiment of the present invention, wherein the equipment calibration system comprises a lens suction nozzle 11 , a correction glass 12 , a carrier 13 , an image acquisition device 14 and a calculation device 15 .
[0062] Among them, the carrier 13 is a VCM carrier, which plays the role of carrying the VCM when the lens and the VCM are spliced. The correction glass 12 is set on the carrier 13 in order to use the correction glass 12 instead of the VCM for testing, that is, the correction glass 12 is used to determine whether the relative position of the carrier 13 and the lens nozzle 11 is correct. This is because the cost of the correction glass is relatively low, and multiple pieces of correction glass can be used for testing under the requirement of low cost.
[0063] When the VCM and the lens are spliced, the lens is sucked by the lens suction nozzle 11, and the VCM is placed at a predetermined position of the carrier 13. First, the carrier 13 is controlled to move to the bottom of the lens suction nozzle 11 by a first control signal, and then the carrier 13 is raised to achieve the splicing of the VCM and the lens. The first control signal is a pre-set control signal. At this time, if the first control signal is not accurate enough, that is, the carrier 13 cannot be moved to the correct position, problems will occur when the VCM and the lens are spliced. Therefore, it is necessary to calibrate the first control signal that controls the movement of the carrier 13 so that the carrier 13 can move to the correct position.
[0064] like Figure 1As shown, the lens nozzle 11 is used to absorb the lens. The correction glass 12 is used to replace the VCM to determine the positional relationship. The carrier 13 carries the correction glass 12. Specifically, the correction glass 12 is vacuum-absorbed on the carrier 13, and the relative position with the carrier 13 is fixed. The carrier 13 can be moved by the transmission module 131. The image acquisition device 14 is used to obtain the image to be processed when the correction glass 12 is adsorbed on the lens nozzle 11. The image acquisition device 14 can be a camera or other device for acquiring images, and the embodiment of the present invention does not limit this. The calculation device 15 is used to identify the image to be processed to obtain a recognition result, and calculate a compensation signal for adjusting the first control signal according to the obtained recognition result. The first control signal is adjusted by the compensation signal so that the relative position of the carrier 13 and the lens nozzle 11 meets the predetermined condition.
[0065] Specifically, in the actual installation process, the VCM carried on the carrier 13 rises to the position where the lens nozzle 11 adsorbing the lens is located, so as to install the lens on the VCM. The embodiment of the present invention specifically indirectly determines the positional relationship between the lens nozzle 11 and the carrier 13 by setting a correction glass. Specifically, the correction glass 12 is placed at the position where the VCM is located on the carrier, and the correction glass 12 is adsorbed by the lens nozzle 11, so as to determine the positional relationship between the lens nozzle 11 and the correction glass 12, and then determine the positional relationship between the lens nozzle 11 and the carrier 13. If the positional relationship between the lens nozzle 11 and the carrier 13 does not meet the predetermined requirements, the first control signal is corrected according to the relative relationship between the position of the lens nozzle 11 and the position of the carrier 13, and the device is calibrated. After the device is calibrated, the calibrated carrier can be used to install the lens on the VCM, which can achieve more accurate installation of the lens and VCM, thereby improving the quality of the product.
[0066] The embodiment of the present invention controls the carrier to move to the first position, a correction glass is arranged above the carrier, a lens nozzle is arranged above the first position, the carrier is controlled to rise so that the correction glass is adsorbed on the lens nozzle, an image to be processed in which the correction glass is adsorbed on the lens nozzle is obtained, a recognition result of the image to be processed is obtained, and the first control signal is adjusted according to the recognition result of the image to be processed to obtain a second control signal, wherein the second control signal is a calibrated control signal. Thus, the accuracy of product assembly can be improved at a relatively low cost.
[0067] Figure 2 FIG. 1 is a flow chart of a device calibration method according to an embodiment of the present invention. Figure 2 As shown, the device calibration method includes the following steps:
[0068] Step S100: Control the carrier to move to a first position according to a first control signal, a correction glass is disposed above the carrier, and a lens nozzle is disposed above the first position.
[0069] The calibration glass is at a predetermined position on the carrier, and the embodiment of the present invention is specifically described by assuming that the center of the calibration glass coincides with the center of the carrier. In some embodiments, the calibration glass is vacuum-adsorbed on the carrier. The first control signal is specifically a signal for controlling the movement of the carrier, specifically, controlling the carrier to move to a first position, at which time the carrier and the lens nozzle are spaced a certain distance apart. The schematic diagram of the device calibration system at this time is as shown in FIG. Figure 3 As shown (the transmission device and the image acquisition device for controlling the movement of the carrier are omitted). It should be noted that the position of the carrier is not directly below the lens nozzle at this time, so it needs to be corrected in the subsequent steps.
[0070] Step S200: Control the carrier to rise so that the calibration glass is adsorbed on the lens nozzle.
[0071] After the carrier moves to the bottom of the lens nozzle, since there is a distance between the carrier and the lens nozzle, it is necessary to control the carrier to rise so that the correction glass on the carrier contacts the lens nozzle and is adsorbed. The shape of the correction glass can be various geometric shapes, such as a circle, a square, a polygon, etc., and the embodiment of the present invention does not limit this. The correction glass is provided with an inner circle groove, wherein the inner circle diameter of the correction glass is larger than the diameter of the lens nozzle, so that the part of the lens nozzle that contacts the correction glass during adsorption is completely contained inside the inner circle of the correction glass, which is convenient for subsequent identification.
[0072] Figure 4 FIG. 1 is a flow chart of adsorbing the correction glass to the lens nozzle according to an embodiment of the present invention. Figure 4 As shown, the following steps are included:
[0073] Step S210: Control the carrier to rise until it contacts the lens nozzle.
[0074] Specifically, since the lens suction nozzle is separated from the carrier by a distance, at this time, it is necessary to control the carrier to rise so that the carrier contacts the lens suction nozzle, thereby contacting the correction glass with the lens suction nozzle.
[0075] Step S220: Turn on the vacuum suction of the lens suction nozzle so that the correction glass is sucked onto the lens suction nozzle by vacuum suction.
[0076] Specifically, before the carrier contacts the lens nozzle, the correction glass and the carrier need to be fixed so that the relative position between the correction glass and the carrier does not change during the upward movement of the carrier. The carrier needs to use a vacuum adsorption method to firmly adsorb the correction glass on the carrier. Since the correction glass needs to be adsorbed on the lens nozzle, the vacuum adsorption of the lens nozzle needs to be turned on, and the correction glass is also firmly adsorbed on the vacuum nozzle.
[0077] Step S230, turning off the vacuum adsorption of the carrier.
[0078] Since the correction glass needs to be adsorbed to the lens nozzle and the correction glass needs to be adsorbed to the lens nozzle for shooting later, the vacuum adsorption of the carrier needs to be turned off so that the carrier can be moved to other positions. After the vacuum adsorption of the carrier is turned off, the correction glass is vacuum adsorbed to the lens nozzle and the carrier is in a free state.
[0079] It should be noted that the embodiment of the present invention does not limit the order of step S220 and step S230, that is, the vacuum adsorption of the carrier may be turned off first, and then the vacuum adsorption of the lens nozzle may be turned on so that the correction glass is adsorbed on the lens nozzle, or step S220 and step S230 may be performed simultaneously.
[0080] Through the above steps S210 - S230 , the conversion of the correction glass from vacuum adsorption on the carrier to vacuum adsorption on the lens nozzle is completed.
[0081] Step S300: obtaining an image to be processed of the calibration glass adsorbed on the lens nozzle.
[0082] Specifically, after the correction glass is adsorbed on the lens nozzle, first, the carrier is moved to another position to ensure that the carrier does not interfere with the acquisition of the image to be processed. Specifically, the carrier is first moved downward a certain distance, and then the carrier is translated to another position. After the carrier is moved to another position, the image acquisition device is moved to the bottom of the lens nozzle, and the image acquisition device is used to shoot below the lens nozzle, thereby acquiring a top view of the correction glass adsorbed on the lens nozzle as the image to be processed.
[0083] Figure 5 is a schematic diagram of obtaining an image to be processed according to an embodiment of the present invention. Figure 5 As shown, the image acquisition device 14 is located below the lens suction nozzle 11 and is used to capture the image to be processed of the correction glass 12 adsorbed on the lens suction nozzle 11 from below.
[0084] Step S400: Obtain the recognition result of the image to be processed.
[0085] Specifically, the recognition result is the positional relationship between the calibration glass and the lens nozzle, and more specifically, the recognition result is the relative positional relationship between the center of the calibration glass and the center of the lens nozzle. According to the relative positional relationship, the position of the carrier is adjusted in subsequent steps.
[0086] Figure 6 is a flow chart of obtaining the recognition result of the image to be processed according to an embodiment of the present invention. Figure 6 As shown, the step of obtaining the recognition result of the image to be processed specifically includes the following steps:
[0087] Step S410: determining a first coordinate of a center of the calibration glass and a second coordinate of a center of the lens nozzle according to the image to be processed.
[0088] Since the image to be processed is a photo of the correction glass adsorbed on the lens nozzle, the positions of the correction glass and the lens nozzle in the image to be processed can be determined, and the first coordinate of the center of the correction glass and the second coordinate of the center of the lens nozzle can be determined based on the positions of the correction glass and the lens nozzle.
[0089] Specifically, there are two methods to determine the first coordinate and the second coordinate. One method is as follows Figure 7 The process shown in FIG. 1 is to determine the first coordinate and the second coordinate by comparing the pre-taken image with the image to be processed. Another method is as follows: Figure 8 The process shown is to determine the first coordinate and the second coordinate in the image to be processed by image recognition. The two methods will be described in detail below.
[0090] Figure 7 is a flow chart of determining a first coordinate and a second coordinate according to an embodiment of the present invention. Figure 7 As shown, determining the first coordinate and the second coordinate includes:
[0091] Step S411, acquiring a first reference image and a second reference image, wherein the first reference image is an image pre-photographed of the calibration glass, and the second reference image is an image pre-photographed of the lens nozzle.
[0092] The first reference image is an image pre-photographed of the calibration glass, and the second reference image is an image pre-photographed of the lens nozzle, which can be obtained by photographing the calibration glass with a camera before step S100, or by other methods, which are not limited in the embodiment of the present invention. The first reference image and the second reference image are used as standard images to determine the positions of the calibration glass and the lens nozzle in the image to be processed.
[0093] Step S412: determine the position of the correction glass according to the first reference image and the image to be processed.
[0094] Specifically, after the first reference image is acquired, the position of the correction glass is determined by identifying a portion similar to the first reference image in the image to be processed.
[0095] Step S413: determining the position of the lens nozzle according to the second reference image and the image to be processed.
[0096] Similar to step S412, details are not given here.
[0097] Step S414: determining the first coordinate and the second coordinate according to the position of the calibration glass and the position of the lens nozzle.
[0098] Specifically, after determining the position of the correction glass and the position of the lens nozzle in the image to be processed, determine the first coordinate corresponding to the position of the center of the correction glass in the image, and determine the second coordinate corresponding to the position of the center of the lens nozzle in the image.
[0099] Figure 8 is another flow chart for determining the first coordinate and the second coordinate according to an embodiment of the present invention. Figure 8 As shown, determining the first coordinate and the second coordinate includes:
[0100] Step S415: determining the position of the calibration glass and the position of the lens nozzle according to the image to be processed through image recognition.
[0101] Specifically, the position of the correction glass and the position of the lens nozzle in the image to be processed are determined by a pre-trained image recognition model, wherein the image recognition model is pre-trained to acquire the ability to recognize the correction glass and / or the lens nozzle. It should be noted that the position of the correction glass and the position of the lens nozzle can be respectively recognized by two image recognition models, or the position of the correction glass and the position of the lens nozzle can be simultaneously recognized by one image recognition model, and the embodiment of the present invention does not limit this.
[0102] Step S416: determining the first coordinate and the second coordinate according to the position of the calibration glass and the position of the lens nozzle.
[0103] Specifically, after determining the position of the correction glass and the position of the lens nozzle, determine the first coordinate corresponding to the position of the center of the correction glass in the image to be processed, and determine the second coordinate corresponding to the position of the center of the lens nozzle in the image to be processed.
[0104] Step S420: determine the difference between the first coordinate and the second coordinate as the recognition result.
[0105] Specifically, the recognition result is determined to be the difference between the first coordinate and the second coordinate, which is used to determine the relative position of the calibration glass and the lens nozzle, and then indirectly determine the relative position of the lens nozzle and the carrier. For example, the first coordinate is (100.3, 100.4), the second coordinate is (100.0, 100.0), and the difference is (-0.3, -0.4).
[0106] Step S500: adjusting the first control signal according to the recognition result of the image to be processed to obtain a second control signal, where the second control signal is a calibrated control signal.
[0107] Specifically, through the recognition result obtained in step S400, the difference between the first coordinate and the second coordinate is obtained, that is, the relative position of the correction glass and the lens nozzle. The relative position also represents the relative position of the lens nozzle and the carrier, because the relative position of the carrier and the correction glass is determined. The smaller the relative position, the smaller the deviation between the center position of the lens nozzle and the center position of the carrier. Furthermore, when the VCM and the lens are installed through the lens nozzle and the carrier with a small relative position, the positional relationship between the VCM and the lens can be more accurate. Therefore, a predetermined value is set in advance to define whether the position of the carrier meets the process requirements.
[0108] Specifically, in response to the recognition result that the distance corresponding to the difference between the first coordinate and the second coordinate is less than or equal to the predetermined value, the first control signal is determined as the second control signal. Wherein, the second control signal is a calibrated control signal. The distance corresponding to the difference between the first coordinate and the second coordinate, that is, the modulus of the vector corresponding to the difference between the first coordinate and the second coordinate. Specifically, since the distance corresponding to the difference between the first coordinate and the second coordinate is less than or equal to the predetermined value, that is, the first control signal meets the requirements, the first control signal is used as a calibrated control signal to control the movement of the vehicle. For example, the first coordinate is (100.1, 100.0), and the second coordinate is (100.0, 100.0). If the predetermined value is 0.5, since the distance corresponding to the difference between the first coordinate and the second coordinate is 0.1, which is less than the predetermined value, that is, the first control signal at this time has met the requirements, the first control signal is used as a calibrated control signal to calibrate the device.
[0109] In response to the recognition result that the distance corresponding to the difference between the first coordinate and the second coordinate is greater than a predetermined value, a compensation signal is determined according to the recognition result, and the compensation signal is used to adjust the first control signal to obtain the second control signal. Specifically, since the distance corresponding to the difference between the first coordinate and the second coordinate is greater than the predetermined value, that is, the position of the carrier and the position of the lens nozzle deviate too much, the first control signal does not meet the requirements, and the first control signal is adjusted accordingly according to the recognition result to obtain the second control signal, and the adjustment is specifically determined by the compensation signal, and the compensation signal is determined according to the recognition result. Specifically, for example, the first coordinate is (100.6, 99.2) and the second coordinate is (100.0, 100.0). If the predetermined value is 0.5, since the distance corresponding to the difference between the first coordinate and the second coordinate is 1, which is greater than the predetermined value, the first control signal does not meet the requirements, and the first control signal needs to be adjusted by the compensation signal to obtain the second control signal. The compensation signal is determined by the difference between the second coordinate and the first coordinate, which is (-0.5, 0.2) in this example. The second control signal adjusted by the compensation signal is used to control the vehicle to move to a position directly below the lens.
[0110] Specifically, the first control signal may be a preset control signal or a control signal adjusted last time. After the first control signal is adjusted by the compensation signal to obtain the second control signal, the second control signal may be used as the first control signal in a new round, and the calibration of steps S100-S500 may be performed again. At this time, in the new round of device calibration, the first control signal is the control signal adjusted last time.
[0111] It should be noted that, in an embodiment of the present invention, after the first control signal is calibrated through steps S100-S500 to obtain a calibrated second control signal, the vehicle can be controlled to move to the second position through the second control signal. However, the second position may not necessarily meet the actual needs, and therefore, steps S100-S500 can be performed in an iterative manner, that is, the second control signal obtained in the last calibration is used as the first control signal in the new calibration to continue calibration until the recognition result is that the distance corresponding to the difference between the first coordinate and the second coordinate is less than or equal to the predetermined value. At this time, the control signal obtained through several calibrations is the control signal that meets the actual needs.
[0112] The embodiment of the present invention controls the carrier to move to the first position, a correction glass is arranged above the carrier, a lens nozzle is arranged above the first position, the carrier is controlled to rise so that the correction glass is adsorbed on the lens nozzle, an image to be processed in which the correction glass is adsorbed on the lens nozzle is obtained, a recognition result of the image to be processed is obtained, and the first control signal is adjusted according to the recognition result of the image to be processed to obtain a second control signal, wherein the second control signal is a calibrated control signal. Thus, the accuracy of product assembly can be improved at a relatively low cost.
[0113] Fig. 9 is a schematic diagram of a device calibration apparatus according to an embodiment of the present invention. Fig. 9 As shown, the device includes a moving unit 91, a rising unit 92, an image acquisition unit 93, a recognition result determination unit 94, and a control signal adjustment unit 95. The moving unit 91 is used to control the carrier to move to a first position according to a first control signal, a correction glass is arranged above the carrier, and a lens suction nozzle is arranged above the first position. The rising unit 92 is used to control the carrier to rise so that the correction glass is adsorbed on the lens suction nozzle. The image acquisition unit 93 is used to obtain a to-be-processed image in which the correction glass is adsorbed on the lens suction nozzle. The recognition result determination unit 94 is used to obtain a recognition result of the to-be-processed image. The control signal adjustment unit 95 is used to adjust the first control signal according to the recognition result of the to-be-processed image to obtain a second control signal, and the second control signal is a calibrated control signal.
[0114] In some embodiments, the correction glass is adsorbed to a predetermined position of the carrier by vacuum.
[0115] In some embodiments, the ascending unit comprises:
[0116] A carrier lifting subunit, used for controlling the carrier to rise until it contacts the lens suction nozzle;
[0117] An opening subunit, used for opening the vacuum adsorption of the lens adsorption nozzle so that the correction glass is adsorbed on the lens adsorption nozzle by vacuum;
[0118] The closing subunit is used to close the vacuum adsorption of the carrier.
[0119] In some embodiments, the determining unit includes:
[0120] a coordinate determination subunit, used for determining a first coordinate of a center of the correction glass and a second coordinate of a center of the lens nozzle according to the image to be processed;
[0121] The recognition result determination subunit is used to determine the difference between the first coordinate and the second coordinate as the recognition result.
[0122] In some embodiments, the coordinate determination subunit comprises:
[0123] An image acquisition module, used to acquire a first reference image and a second reference image, wherein the first reference image is an image pre-photographed of the correction glass, and the second reference image is an image pre-photographed of the lens nozzle;
[0124] A first position determination module, used for determining the position of the correction glass according to the first reference image and the image to be processed;
[0125] A second position determination module, used for determining the position of the lens nozzle according to the second reference image and the image to be processed;
[0126] The first coordinate determining module is used to determine the first coordinate and the second coordinate according to the position of the correction glass and the position of the lens suction nozzle.
[0127] In some embodiments, the coordinate determination subunit comprises:
[0128] A position determination module, used for determining the position of the correction glass and the position of the lens nozzle according to the image to be processed by image recognition;
[0129] The second coordinate determining module is used to determine the first coordinate and the second coordinate according to the position of the correction glass and the position of the lens suction nozzle.
[0130] In some embodiments, adjusting the first control signal according to the recognition result of the image to be processed to obtain the second control signal includes:
[0131] In response to the recognition result that the distance corresponding to the difference between the first coordinate and the second coordinate is less than or equal to a predetermined value, determining the first control signal as the second control signal; or
[0132] In response to the recognition result that the distance corresponding to the difference between the first coordinate and the second coordinate is greater than a predetermined value, determining a compensation signal according to the recognition result, wherein the compensation signal is used to adjust the first control signal to obtain the second control signal;
[0133] The first control signal is a preset control signal, or the first control signal is a control signal adjusted last time.
[0134] In some embodiments, the diameter of the inner circle of the correction glass is greater than the diameter of the lens nozzle.
[0135] The embodiment of the present invention controls the carrier to move to the first position, a correction glass is arranged above the carrier, a lens nozzle is arranged above the first position, the carrier is controlled to rise so that the correction glass is adsorbed on the lens nozzle, an image to be processed in which the correction glass is adsorbed on the lens nozzle is obtained, a recognition result of the image to be processed is obtained, and the first control signal is adjusted according to the recognition result of the image to be processed to obtain a second control signal, wherein the second control signal is a calibrated control signal. Thus, the accuracy of product assembly can be improved at a relatively low cost.
[0136] Fig.10 Schematic diagram of an electronic device according to an embodiment of the present invention. Fig.10 As shown, Fig.10 The electronic device shown is a general address query device, which includes a general computer hardware structure, which at least includes a processor 101 and a memory 102. The processor 101 and the memory 102 are connected via a bus 103. The memory 102 is suitable for storing instructions or programs executable by the processor 101. The processor 101 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 101 executes the instructions stored in the memory 102, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 103 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 104 and the display device and the input / output (I / O) device 105. The input / output (I / O) device 105 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 105 is connected to the system through an input / output (I / O) controller 106.
[0137] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0138] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.
[0139] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.
[0140] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.
[0141] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.
[0142] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0143] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A device calibration method, characterized in that: The device includes a carrier, and the method includes: Controlling the carrier to move to a first position according to a first control signal, a correction glass is arranged above the carrier, and a lens suction nozzle is arranged above the first position; Controlling the carrier to rise so that the correction glass is adsorbed on the lens suction nozzle; Acquire an image to be processed in which the correction glass is adsorbed on the lens nozzle; Obtaining a recognition result of the image to be processed; The first control signal is adjusted according to the recognition result of the image to be processed to obtain a second control signal, where the second control signal is a calibrated control signal.
2. The method according to claim 1, characterized in that The correction glass is adsorbed on a predetermined position of the carrier by vacuum.
3. The method according to claim 2, characterized in that The controlling the carrier to rise so that the correction glass is adsorbed on the lens suction nozzle comprises: Controlling the carrier to rise until it contacts the lens nozzle; Turning on the vacuum suction of the lens suction nozzle so that the correction glass is sucked onto the lens suction nozzle by vacuum; The vacuum of the carrier is turned off.
4. The method according to claim 1, characterized in that: The obtaining the recognition result of the image to be processed comprises: Determine a first coordinate of a center of the correction glass and a second coordinate of a center of the lens nozzle according to the image to be processed; A difference between the first coordinate and the second coordinate is determined as the recognition result.
5. The method according to claim 4, characterized in that The step of determining the first coordinate of the center of the correction glass and the second coordinate of the center of the lens nozzle according to the image to be processed comprises: Acquire a first reference image and a second reference image, wherein the first reference image is an image pre-photographed of the correction glass, and the second reference image is an image pre-photographed of the lens nozzle; Determine the position of the correction glass according to the first reference image and the image to be processed; Determine the position of the lens nozzle according to the second reference image and the image to be processed; The first coordinate and the second coordinate are determined according to the position of the correction glass and the position of the lens nozzle.
6. The method according to claim 4, characterized in that The step of determining the first coordinate of the center of the correction glass and the second coordinate of the center of the lens nozzle according to the image to be processed comprises: Determine the position of the correction glass and the position of the lens nozzle according to the image to be processed by image recognition; The first coordinate and the second coordinate are determined according to the position of the correction glass and the position of the lens nozzle.
7. The method according to claim 4, characterized in that The step of adjusting the first control signal according to the recognition result of the image to be processed to obtain the second control signal comprises: In response to the recognition result that the distance corresponding to the difference between the first coordinate and the second coordinate is less than or equal to a predetermined value, determining the first control signal as the second control signal; or In response to the recognition result that the distance corresponding to the difference between the first coordinate and the second coordinate is greater than a predetermined value, determining a compensation signal according to the recognition result, wherein the compensation signal is used to adjust the first control signal to obtain the second control signal; The first control signal is a preset control signal, or the first control signal is a control signal adjusted last time.
8. The method according to claim 1, characterized in that The diameter of the inner circle of the correction glass is greater than the diameter of the lens suction nozzle.
9. A device calibration apparatus, characterized in that: The equipment includes a carrier, and the device includes: A moving unit, used for controlling the carrier to move to a first position according to a first control signal, a correction glass is arranged above the carrier, and a lens suction nozzle is arranged above the first position; A lifting unit, used for controlling the carrier to rise so that the correction glass is adsorbed on the lens suction nozzle; An image acquisition unit, used for acquiring an image to be processed of the correction glass adsorbed on the lens nozzle; A recognition result determination unit, used to obtain the recognition result of the image to be processed; The control signal adjustment unit is used to adjust the first control signal according to the recognition result of the image to be processed to obtain a second control signal, where the second control signal is a calibrated control signal.
10. A device calibration system, characterized in that: The system comprises: Lens nozzle; Vehicles; Correction glass; Image acquisition device; Computing device; The computing device comprises a memory and a processor, the memory is used to store one or more computer program instructions, and the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 8.
