Sensor back focus structure detection system including fixed structure
By automatically adjusting the position of the lens focus ring to obtain image clarity data, the problem of low back focus structure detection efficiency and insufficient reliability in the existing technology is solved, and high-precision back focus structure detection is achieved.
Patent Information
- Application Number
- CN202111240339.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-10-25
AI Technical Summary
In the existing technology, the precision detection of the back focus structure requires manual measurement, which is inefficient, costly and unreliable, and there is a possibility of missed detection or false detection.
Provide a sensor back focus structure detection system that includes a fixed structure. Through the linkage mechanism, power unit, subject template and control unit, it automatically adjusts the position of the lens focus ring, obtains near focus and far focus image sharpness data, and determines the quality of the back focus structure. Whether the accuracy meets the preset threshold.
It realizes automated back focus structure detection, reduces labor costs, improves detection accuracy and reliability, avoids missed detections and false detections, and provides effective error type determination and repair data.
Smart Images

Figure CN113984347B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of camera detection devices, and in particular to a sensor back-focus structure detection system including a fixed structure. Background Art
[0002] As people's living standards improve, image acquisition devices have entered every aspect of people's lives. They can be seen from smartphones to industrial automation production. Current image acquisition devices usually use lenses to focus light onto the sensor chip behind to capture images.
[0003] In the manufacturing process of image acquisition equipment, the sensor board carrying the sensor chip is usually attached to the back focus gasket, and then the back focus gasket is aligned with the lens rear shell carrying the lens. The structure composed of the sensor board, the back focus gasket and the lens rear shell is called the "back focus structure". Therefore, the manufacturing accuracy of the back focus structure, that is, the posture accuracy between the sensor chip and the lens, has a significant impact on the imaging performance of the image acquisition device.
[0004] In the prior art, the method for testing the manufacturing accuracy of the back focus structure is to use auxiliary measuring tools such as vernier calipers to perform manual measurement and testing. When the spacing error between the sensor plate, the back focus gasket and the rear shell of the lens is within a certain range, it is determined that the manufacturing accuracy of the back focus structure meets the imaging quality requirements.
[0005] This manual measurement and random inspection method of back-focus structure detection not only requires a lot of manpower, high cost and low efficiency, but also cannot guarantee reliability and there is a possibility of missed detection and false detection. Summary of the invention
[0006] The purpose of the present application is to solve the problem in the prior art that the precision detection of the back focus structure requires manual measurement.
[0007] The technical solution of the present application is: a sensor back focus structure detection system including a fixed structure is provided, and the detection system includes: a linkage mechanism, a power unit, a first photographed template, a second photographed template and a control unit; one end of the linkage mechanism is connected to the lens focus ring of the image acquisition device, and the other end of the linkage mechanism is connected to the power unit, and the linkage mechanism is used to rotate the lens focus ring under the drive of the power unit; the first photographed template and the second photographed template are arranged in an image shooting area of the image acquisition device in a front-to-back order, wherein the first photographed template can be converted from a vertical state to a horizontal state, or from a horizontal state to a vertical state under the drive of the power unit; the control unit is electrically connected to the image acquisition device and the power unit, and the control unit is used to control the image acquisition device to obtain a first image of the first photographed template when the first photographed template is in a vertical state, and to obtain a second image of the second photographed template when the first photographed template is in a horizontal state, and the control unit is also used to judge whether the manufacturing accuracy of the back focus structure of the image acquisition device meets a preset accuracy threshold according to the clarity of the first image and the second image.
[0008] In any of the above technical solutions, further, the power unit includes: a first power unit and a second power unit; the control end of the first power unit is electrically connected to the first output end of the control unit, and the rotating end of the first power unit is connected to the linkage mechanism. When the first power unit rotates, the lens focus ring is rotated from the starting position to the end position through the linkage mechanism, or the lens focus ring is rotated from the end position to the starting position; the control end of the second power unit is electrically connected to the second output end of the control unit, and the rotating end of the power unit is connected to the connecting rod of the first photographed template. When the second power unit rotates, the first photographed template is converted from a vertical state to a horizontal state, or from a horizontal state to a vertical state.
[0009] In any of the above technical solutions, further, the first image at least includes a near-focus starting image, a near-focus peak image and a near-focus termination image, the power unit at least includes a first power unit and a second power unit, and the control unit is used to control the image acquisition device to acquire the first image of the first photographed template when the first photographed template is in a vertical state, specifically including: step 101, the control unit controls the second power unit to rotate to place the first photographed template in a vertical state, and controls the first power unit to place the lens focus ring in the starting position through a linkage mechanism; step 102, the control unit controls the image acquisition device to acquire the near-focus starting image; step 103, the control unit controls the first power unit to rotate to drive the lens focus ring to rotate to a first peak position, and controls the image acquisition device to acquire the near-focus peak image, wherein the first peak position is the position of the lens focus ring when the clarity is at a maximum value when shooting the first photographed template; step 104, the control unit continues to control the first power unit to rotate to place the lens focus ring in the termination position through the linkage mechanism, and controls the image acquisition device to acquire the near-focus termination image.
[0010] In any of the above technical solutions, further, the first photographed template also includes: a texture target and an auxiliary lighting source; the texture target is arranged on the photographed surface of the first photographed template; the auxiliary lighting source is arranged on the back of the texture target, the auxiliary lighting source is electrically connected to the control unit, and the auxiliary lighting source is used to provide backlight to the texture target.
[0011] In any of the above technical solutions, further, the control unit is also used to control the auxiliary lighting source to perform exposure before acquiring the first image.
[0012] In any of the above technical solutions, further, the auxiliary lighting light source includes at least a DC light source.
[0013] In any of the above technical solutions, further, the auxiliary lighting light source also includes an infrared light source.
[0014] In any of the above technical solutions, further, the second image at least includes a telefocus starting image, a telefocus peak image and a telefocus ending image, and the control unit is used to control the image acquisition device to acquire the second image of the second photographed template when the first photographed template is in a horizontal state, specifically including: step 201, the control unit controls the second power unit to rotate to place the first photographed template in a horizontal state, and controls the first power unit to place the lens focus ring in the starting position through the linkage mechanism; step 202, the control unit controls the image acquisition device to acquire the telefocus starting image; step 203, the control unit controls the first power unit to rotate to drive the lens focus ring to rotate to the second peak position, and controls the image acquisition device to acquire the telefocus peak image, wherein the second peak position is the position of the lens focus ring when the clarity is at the maximum value when shooting the second photographed template; step 204, the control unit continues to control the first power unit to rotate to place the lens focus ring in the ending position through the linkage mechanism, and controls the image acquisition device to acquire the telefocus ending image.
[0015] In any of the above technical solutions, further, the first image at least includes a near-focus starting image, a near-focus peak image and a near-focus ending image, the second image at least includes a far-focus starting image, a far-focus peak image and a far-focus ending image, the back-focus structure manufacturing accuracy includes at least an inclination error and a distance error, and the control unit is further used to determine whether the back-focus structure manufacturing accuracy of the image acquisition device meets a preset accuracy threshold according to the clarity of the first image and the second image, specifically comprising: step 301, determining whether the clarity values of the near-focus peak image and the far-focus peak image are within the clarity standard threshold, if so, executing step 302, if not, determining the back-focus structure manufacturing accuracy of the image acquisition device. The inclination error in the manufacturing accuracy of the focus structure does not meet the preset accuracy threshold; step 302, respectively calculating the near focus margin according to the clarity of the near focus starting image, the near focus peak image and the near focus ending image, and calculating the far focus margin according to the clarity of the far focus starting image, the far focus peak image and the far focus ending image; step 303, respectively judging whether the near focus margin and the far focus margin are within the margin standard threshold, if so, judging that the manufacturing accuracy of the back focus structure meets the preset accuracy threshold, if not, judging that the distance error in the manufacturing accuracy of the back focus structure does not meet the preset accuracy threshold, wherein the preset accuracy threshold includes the clarity standard threshold and the margin standard threshold.
[0016] In any of the above technical solutions, further, the near focus margin at least includes a near focus starting margin and a near focus ending margin, wherein the near focus starting margin is the ratio of the clarity of the near focus starting image to the clarity of the near focus peak image, and the near focus ending margin is the ratio of the clarity of the near focus ending image to the clarity of the near focus peak image; the far focus margin at least includes a far focus starting margin and a far focus ending margin, wherein the far focus starting margin is the ratio of the clarity of the far focus starting image to the clarity of the far focus peak image, and the far focus ending margin is the ratio of the clarity of the far focus ending image to the clarity of the far focus peak image.
[0017] The beneficial effects of this application are:
[0018] The technical solution in the present application, by adjusting the lens focus ring position of the image acquisition device, respectively obtains the near focus starting image, near focus peak image and near focus ending image of the first photographed template, and the far focus starting image, far focus peak image and far focus ending image of the second photographed template, and uses the clarity values of the above six images to automatically complete the qualified detection of the accuracy of the back focus structure of the image acquisition device, which reduces labor costs and can effectively improve detection accuracy and reliability, avoiding missed detection and false detection.
[0019] In a preferred implementation of the present application, during detection, the clarity values corresponding to the above six images are grouped for detection, and two independent error type determination methods are proposed. The error type of the back focus structure can be obtained by analyzing the intermediate detection amount, including: 1. By analyzing the difference between the individual and standard clarity peak values, it can be known whether the error type is an angle error; 2. By analyzing the difference between the individual and standard start and end clarity values, it can be known whether the error type is a distance error. The reliability of the back focus structure manufacturing accuracy detection is further improved, and effective detection data can be provided for subsequent repair work.
[0020] In another preferred implementation of the present application, the composition of the first photographed template and the second photographed template is optimized, which not only effectively solves the problem of image flickering caused by automatic exposure under AC light source by setting an auxiliary lighting source as a backlight source, but also helps to improve the detection accuracy of the back focus structure and reduce the detection system's dependence on the detection environment. Moreover, the template is set to a mesh shape that is not related to the region, which has a high tolerance for the structural error of the detection system, and there will be no problem of large image differences caused by differences in the camera field of view caused by the structural error of the detection system. In addition, in order to effectively solve the problem of low detection efficiency of high-resolution and low-frame-rate cameras, the image region of interest ROI is also set to ensure that different models of image acquisition devices (such as cameras) have consistent fields of view during the detection process, thereby improving the consistency of the detection results. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The advantages of the above and / or additional aspects of the present application will become apparent and easily understood in the description of the embodiments in conjunction with the following drawings, in which:
[0022] Figure 1 is a schematic block diagram of a sensor back focus structure detection system including a fixed structure according to an embodiment of the present application;
[0023] Figure 2 is a schematic diagram of a first photographed template according to an embodiment of the present application;
[0024] Figure 3 is a schematic flow chart of back focus structure detection according to an embodiment of the present application;
[0025] Figure 4 is a schematic flow chart of an image clarity calculation method according to an embodiment of the present application.
[0026] 1-image acquisition device, 2-lens focus ring, 3-linkage mechanism, 4-first photographed template, 6-second photographed template, 7-control unit, 8-first power unit, 9-second power unit. DETAILED DESCRIPTION
[0027] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0028] In the following description, many specific details are elaborated to facilitate a full understanding of the present application. However, the present application may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present application is not limited to the specific embodiments disclosed below.
[0029] Those skilled in the art will understand that, in the same shooting environment, for the same lens and the same model of image acquisition device, without considering the differences in sensor and circuit structure, the difference in imaging clarity between different image acquisition devices mainly depends on the accuracy of their back focus structure. The relationship between the two is reflected in the following aspects:
[0030] 1) The relative inclination angle between the sensor plane and the lens plane is different, and the peak clarity of the image acquisition device is different;
[0031] 2) The relative distance between the sensor plane and the lens plane is different, and the clarity value of the image acquisition device is different when the focus ring position is the same.
[0032] Therefore, the method of analyzing the imaging clarity performance of the image acquisition device can be used to complete the detection of whether the accuracy of the back-focus structure is qualified.
[0033] The image acquisition device in this embodiment may be an industrial camera.
[0034] Embodiment 1:
[0035] like Figure 1 As shown, this embodiment provides a sensor back focus structure detection system including a fixed structure, and the detection system includes: a linkage mechanism 3, a power unit, a first photographed template 4, a second photographed template 6 and a control unit 7; wherein, one end of the linkage mechanism 3 is connected to the lens focus ring 2 of the image acquisition device 1, and the other end of the linkage mechanism 3 is connected to the power unit, and the linkage mechanism 3 is used to rotate the lens focus ring 2 driven by the power unit, wherein the power unit is also connected to the second photographed template 6.
[0036] It should be noted that this embodiment does not limit the connection method between the power unit and the linkage mechanism 3, the linkage mechanism 3 and the first photographed template 4, and the power unit and the second photographed template 6. The power unit can be realized by a motor, such as a stepping motor, and the linkage mechanism 3 can be realized by a structure with a linkage function such as a transmission belt, a chain, and a gear.
[0037] In this embodiment, in order to simplify the structural design of the power unit, the power unit includes: a first power unit 8 and a second power unit 9; wherein the control end of the first power unit 8 is electrically connected to the first output end of the control unit 7, and the rotation end of the first power unit 8 is connected to the linkage mechanism 3. When the first power unit 8 rotates, the lens focus ring 2 is rotated from the starting position to the ending position through the linkage mechanism 3, or the lens focus ring 2 is rotated from the ending position to the starting position, so that the image captured by the image acquisition device 1 has different clarity, and different image clarity characteristics are obtained, so as to judge whether the back focus structure is qualified;
[0038] In this embodiment, the control end of the second power unit 9 is electrically connected to the second output end of the control unit 7, and the rotating end of the power unit is connected to the connecting rod of the first photographed template 4. When the second power unit 9 rotates, the first photographed template 4 is converted from a vertical state to a horizontal state, or from a horizontal state to a vertical state.
[0039] It should be noted that this embodiment does not limit the specific implementation method of the control unit 7 controlling the first power unit 8 and the second power unit 9.
[0040] In this embodiment, the control unit 7 can also determine whether the template facing the lens of the image acquisition device 1 is the first template 4 or the second template 6 through the state information of the second power unit 9.
[0041] The first photographed template 4 and the second photographed template 6 are arranged in the image capturing area of the image acquisition device 1 in a front-to-back order, the first photographed template 4 is close to the image acquisition device 1, and the second photographed template 6 is arranged behind the first photographed template 4. The first photographed template 4 and the second photographed template 6 are objects with certain texture features, wherein the first photographed template 4 can be transformed from a vertical state to a horizontal state, or from a horizontal state to a vertical state under the drive of a power unit.
[0042] It should be noted that when the first photographed template 4 is in a horizontal state, the first photographed template 4 is outside the image capturing area of the image capturing device 1 , and does not affect the image capturing of the second photographed template 6 by the image capturing device 1 .
[0043] Embodiment 2:
[0044] On the basis of the above embodiment, in order to solve the problem that the unstable ambient light source causes large differences in the captured images and poor detection accuracy, the first photographed template 4 also includes: a texture target and an auxiliary lighting source; the texture target is set on the photographed surface of the first photographed template 4;
[0045] It should be noted that this embodiment does not limit the specific implementation method of the texture target. The texture target to be photographed should have the following characteristics: 1. The texture is clear; 2. The texture is basically not affected by the intensity of the auxiliary lighting source. The implementation method can be a mesh target composed of meshes that are not related to the region, that is, the same size, such as Figure 2 shown.
[0046] In this embodiment, the auxiliary lighting source is arranged on the back of the texture target, and the auxiliary lighting source is electrically connected to the control unit 7. The auxiliary lighting source is used to provide backlight to the texture target to ensure that the image acquisition device 1 can obtain a stable light source when shooting the first photographed template 4.
[0047] It should be noted that the image mean value of the image acquired by the image acquisition device 1 of this embodiment is between 105 and 135 pixels.
[0048] Furthermore, the control unit 7 is also used to control the auxiliary lighting source to expose before acquiring the first image. The exposure time interval is between the minimum exposure time supported by the sensor and 100000us to avoid affecting the detection efficiency. In addition, if the exposure time reaches the upper limit but the image grayscale mean is still not in the expected range (105-135 pixels), the plane light source brightness of the auxiliary lighting source is increased and re-exposed; if the exposure time reaches the lower limit but the image grayscale mean is still not in the expected range, the plane light source brightness of the auxiliary lighting source is reduced and re-exposed to acquire the first image.
[0049] Preferably, the auxiliary illumination light source includes at least a DC light source, which can ensure that the image captured by the image acquisition device 1 is stable when the exposure time is short, without flickering problems.
[0050] Preferably, the auxiliary lighting source also includes an infrared light source, so that the auxiliary lighting light source is switched under the control of the control unit 7 to meet the detection requirements of the image acquisition device 1 with infrared image acquisition function.
[0051] Based on the above embodiment, the control unit 7 is electrically connected to the image acquisition device 1 and the power unit, and the control unit 7 is used to control the image acquisition device 1 to acquire a first image of the first photographed template 4 when the first photographed template 4 is in a vertical state, and to acquire a second image of the second photographed template 6 when the first photographed template 4 is in a horizontal state.
[0052] It should be noted that, in order to solve the problem of detecting different types of image acquisition devices 1 during the image acquisition process, especially the problem of low detection accuracy caused by slow acquisition frame rate of high-resolution sensors due to bandwidth limitations, the control unit 7 needs to set the image region of interest ROI of the image acquisition device 1 before acquiring the first image and the second image. The process specifically includes:
[0053] Step A, according to the focal length of the lens of the image acquisition device 1 and the shooting distance between the first photographed template 4 or the second photographed template 6 and the image acquisition device 1, the estimated side length of the field of view is calculated, and the corresponding calculation formula is:
[0054]
[0055] Wherein, nROILenTmp is the estimated field of view side length, fFieldLen is the required field of view side length, is a preset value, fDis is the shooting distance, fFocus is the lens focal length, and fUnitCellSize is the pixel size of the image acquisition device 1.
[0056] It should be noted that the units of the above physical quantities are all meters, and the unit of nROILenTmp is the number of similarities.
[0057] Step B, determining the length of the shooting field of view according to the relationship between the estimated length of the field of view and the minimum length of the image of the image acquisition device 1, and determining the image region of interest ROI according to the length of the shooting field of view, wherein the calculation formula corresponding to the length of the shooting field of view is:
[0058]
[0059] In the formula, nROILen is the side length of the shooting field of view, and nImgSize is the minimum side length of the image, wherein the minimum side length of the image nImgSize is the minimum image width or the minimum image height of the image acquisition device 1, and its unit is the number of pixels.
[0060] like Figure 3 As shown, this embodiment shows a process for back-focus structure detection. When the detection starts, the near-focus detection of the back-focus structure is completed first, and then the far-focus detection is completed. The method of near-focus detection is basically similar to the method of far-focus detection. The condition for switching the near-focus and far-focus detection states is: the near-focus detection is qualified, that is, the near-focus detection is performed first, and then the far-focus detection is performed after the near-focus detection passes.
[0061] In this embodiment, the clockwise rotation direction of the lens focus ring 2 of the image acquisition device 1 is assumed to be the positive direction.
[0062] On the basis of the above embodiments, this embodiment shows a specific implementation method of an image acquisition device 1 acquiring a first image, wherein the first image at least includes a near-focus start image, a near-focus peak image, and a near-focus end image, the power unit at least includes a first power unit 8 and a second power unit 9, and the control unit 7 controls the image acquisition device 1 to acquire a first image of the first photographed template 4 when the first photographed template 4 is in a vertical state. The process specifically includes:
[0063] Step 101, after setting the image region of interest ROI of the image acquisition device 1, the control unit 7 controls the second power unit 9 to rotate to place the first photographed template 4 in a vertical state, and controls the first power unit 8 to place the lens focus ring 2 in a starting position through the linkage mechanism 3;
[0064] Step 102, the control unit 7 controls the image acquisition device 1 to acquire a near-focus starting image;
[0065] Step 103, the control unit 7 controls the first power unit 8 to rotate, so as to drive the lens focus ring 2 to rotate to a first peak position, and controls the image acquisition device 1 to acquire a near-focus peak image, wherein the first peak position is the position of the lens focus ring 2 when the clarity is at a maximum value when shooting the first photographed template 4;
[0066] Step 104 , the control unit 7 continues to control the first power unit 8 to rotate, so as to place the lens focus ring 2 at the end position through the linkage mechanism 3 , and controls the image acquisition device 1 to acquire a near-focus end image.
[0067] It should be noted that the above starting position and ending position are not necessarily different from the first peak position, that is, the first peak position may be the starting position or the ending position, or any position between the starting position and the ending position.
[0068] In order to determine whether the lens focus ring 2 is at the starting position or the ending position, a corresponding limit sensor can be installed on the lens in this embodiment. When the lens focus ring 2 is adjusted to the starting position or the ending position, a corresponding limit signal can be triggered to the control unit 7, and then the control unit 7 makes a judgment.
[0069] Furthermore, this embodiment can also determine whether the current focus ring is in a stationary state by analyzing image features. When the focus ring is in a stationary state, it can be determined whether it is in the starting position or the ending position in combination with the preset movement direction of the power unit. The basis for the judgment is that when the lens focus ring 2 is in a stationary state, the image clarity does not change basically; and when the lens focus ring 2 moves, the image clarity will change significantly.
[0070] Therefore, when the clarity value is stable and the power unit moves in the forward direction, the lens focus ring 2 is at the end position; and when the clarity value is stable and the power unit moves in the reverse direction, the lens focus ring 2 is at the start position.
[0071] Accordingly, in this embodiment, the second image includes at least a telefocus start image, a telefocus peak image, and a telefocus end image, and the control unit 7 is used to control the image acquisition device 1 to acquire a second image of the second photographed template 6 when the first photographed template 4 is in a horizontal state, specifically including:
[0072] Step 201, the control unit 7 controls the second power unit 9 to rotate so as to place the first photographed template 4 in a horizontal state, and controls the first power unit 8 to place the lens focus ring 2 in a starting position through the linkage mechanism 3;
[0073] Step 202, the control unit 7 controls the image acquisition device 1 to acquire a far-focus starting image;
[0074] Step 203, the control unit 7 controls the first power unit 8 to rotate, so as to drive the lens focus ring 2 to rotate to a second peak position, and controls the image acquisition device 1 to acquire a telephoto peak image, wherein the second peak position is the position of the lens focus ring 2 when the definition is at a maximum value when shooting the second photographed template 6;
[0075] Step 204 , the control unit 7 continues to control the first power unit 8 to rotate, so as to place the lens focus ring 2 at the end position through the linkage mechanism 3 , and controls the image acquisition device 1 to acquire a telefocus end image.
[0076] In this embodiment, the control unit 7 is further used to determine whether the manufacturing accuracy of the back focus structure of the image acquisition device 1 meets a preset accuracy threshold according to the clarity of the first image and the second image.
[0077] Specifically, the present embodiment introduces a near focus peak and a far focus peak to determine the relative inclination angle between the sensor (board) plane and the lens (back shell) plane in the back focus structure, wherein the near focus peak is the clarity value of the near focus peak image, and the near focus peak image is the image when the clarity is at the maximum when shooting the first photographed template 4; the far focus peak is the clarity value of the far focus peak image, and the far focus peak image is the image when the clarity is at the maximum when shooting the second photographed template 6.
[0078] The near focus margin and the far focus margin are introduced to judge the relative distance between the sensor (board) plane and the lens (back shell) plane in the back focus structure, so as to comprehensively detect the manufacturing accuracy of the back focus structure. The near focus margin at least includes the near focus start margin and the near focus end margin, wherein the near focus start margin is the ratio of the clarity of the near focus start image to the clarity of the near focus peak image, and the near focus end margin is the ratio of the clarity of the near focus end image to the clarity of the near focus peak image; the far focus margin at least includes the far focus start margin and the far focus end margin, wherein the far focus start margin is the ratio of the clarity of the far focus start image to the clarity of the far focus peak image, and the far focus end margin is the ratio of the clarity of the far focus end image to the clarity of the far focus peak image.
[0079] On the basis of the above embodiment, this embodiment further shows a method for implementing the judgment of the manufacturing accuracy of the back focus structure, wherein the first image at least includes a near focus start image, a near focus peak image and a near focus end image, and the second image at least includes a far focus start image, a far focus peak image and a far focus end image, and the control unit 7 is further used to judge whether the manufacturing accuracy of the back focus structure of the image acquisition device 1 meets a preset accuracy threshold according to the clarity of the first image and the second image, wherein the manufacturing accuracy of the back focus structure at least includes an inclination error and a distance error, and the process specifically includes:
[0080] Step 301, determine whether the clarity values of the near-focus peak image and the far-focus peak image are within the clarity standard threshold. If so, execute step 302. If not, determine that the inclination error in the manufacturing accuracy of the back-focus structure does not meet the preset accuracy threshold; that is, when the clarity values of the near-focus peak image and the far-focus peak image are within the clarity standard threshold, the relative inclination angle (inclination error) between the sensor (board) plane and the lens (back shell) plane in the back-focus structure meets the standard of the image acquisition device 1 of this model, and there is no situation where the relative distance between the sensor (board) plane and the lens (back shell) plane is too large to cause the focus to be unclear.
[0081] Step 302, calculating the near focus margin according to the clarity of the near focus start image, the near focus peak image and the near focus end image, and calculating the far focus margin according to the clarity of the far focus start image, the far focus peak image and the far focus end image;
[0082] Step 303, respectively determine whether the near focus margin and the far focus margin are within the margin standard threshold. If so, determine that the manufacturing accuracy of the back focus structure meets the preset accuracy threshold. If not, determine that the distance error in the manufacturing accuracy of the back focus structure does not meet the preset accuracy threshold. The distance error is the error in the relative distance between the sensor (board) plane and the lens (back shell) plane in the back focus structure.
[0083] The preset accuracy threshold includes a clarity standard threshold and a margin standard threshold, which can be set according to the model and design requirements of the image acquisition device 1 .
[0084] It should be noted that the present embodiment does not limit the method for calculating the image clarity, and the following methods may be used: Figure 4 The calculation method shown is not limited to the one shown in the figure. Other calculation methods may also be used.
[0085] The technical solution of the present application is described in detail above in conjunction with the accompanying drawings. The present application proposes a sensor back focus structure detection system including a fixed structure, the detection system comprising: a linkage mechanism, a power unit, a first photographed template, a second photographed template and a control unit; one end of the linkage mechanism is connected to the lens focus ring of the image acquisition device, and the other end of the linkage mechanism is connected to the power unit, and the linkage mechanism is used to rotate the lens focus ring under the drive of the power unit; the first photographed template and the second photographed template are arranged in an image capturing area of the image acquisition device in a front-to-back order, wherein the first photographed template can be converted from a vertical state to a horizontal state, or from a horizontal state to a vertical state under the drive of the power unit; the control unit is electrically connected to the image acquisition device and the power unit, the control unit is used to control the image acquisition device to obtain a first image of the first photographed template when the first photographed template is in a vertical state, and to obtain a second image of the second photographed template when the first photographed template is in a horizontal state, and the control unit is also used to judge whether the manufacturing accuracy of the back focus structure of the image acquisition device meets a preset accuracy threshold according to the clarity of the first image and the second image. Through the technical solution in the present application, the inspection of whether the back-focus structure is installed properly is automatically completed, which reduces labor costs and effectively improves the accuracy and reliability of the back-focus structure inspection.
[0086] In this application, the terms "install", "connect", "connect", "fix" and the like should be understood in a broad sense. For example, "connect" can be a fixed connection, a detachable connection, or an integral connection; "connect" can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0087] The shapes of the various components in the drawings are schematic, and certain differences from their actual shapes are not excluded. The drawings are only used to illustrate the principles of the present application and are not intended to limit the present application.
[0088] Although the present application is disclosed in detail with reference to the accompanying drawings, it should be understood that these descriptions are merely exemplary and are not intended to limit the application of the present application. The scope of protection of the present application is defined by the appended claims and may include various modifications, alterations and equivalents made to the invention without departing from the scope and spirit of the present application.
Claims
1. A sensor back focus structure detection system including a fixed structure, It is characterized in that The detection system comprises: a linkage mechanism, a power unit, a first photographed template, a second photographed template and a control unit; One end of the linkage mechanism is connected to the lens focus ring of the image acquisition device, and the other end of the linkage mechanism is connected to the power unit, and the linkage mechanism is used to rotate the lens focus ring driven by the power unit; The first photographed template and the second photographed template are arranged in a front-to-back order in an image capturing area of the image acquisition device, wherein the first photographed template can be transformed from a vertical state to a horizontal state, or from the horizontal state to the vertical state, driven by the power unit; The control unit is electrically connected to the image acquisition device and the power unit, and is used to control the image acquisition device to acquire a first image of the first photographed template when the first photographed template is in a vertical state, and to acquire a second image of the second photographed template when the first photographed template is in a horizontal state. The control unit is further used to determine whether the manufacturing accuracy of the back focus structure of the image acquisition device meets a preset accuracy threshold according to the clarity of the first image and the second image; The first image includes at least a near-focus start image, a near-focus peak image, and a near-focus end image, and the second image includes at least a far-focus start image, a far-focus peak image, and a far-focus end image. The control unit is further configured to determine whether the manufacturing accuracy of the back focus structure of the image acquisition device meets a preset accuracy threshold according to the clarity of the first image and the second image, specifically including: Step 301, determining whether the clarity values of the near-focus peak image and the far-focus peak image are within a clarity standard threshold, if so, executing step 302, if not, determining that the manufacturing accuracy of the back-focus structure does not meet the preset accuracy threshold; Step 302, calculating a near focus margin according to the clarity of the near focus start image, the near focus peak image, and the near focus end image, and calculating a far focus margin according to the clarity of the far focus start image, the far focus peak image, and the far focus end image; Step 303, respectively judging whether the near focus margin and the far focus margin are within the margin standard threshold, if so, judging that the manufacturing accuracy of the back focus structure meets the preset accuracy threshold, if not, judging that the manufacturing accuracy of the back focus structure does not meet the preset accuracy threshold, The preset accuracy threshold includes the clarity standard threshold and the margin standard threshold.
2. The sensor back focus structure detection system comprising a fixed structure as claimed in claim 1, It is characterized in that The power unit comprises: a first power unit and a second power unit; The control end of the first power unit is electrically connected to the first output end of the control unit, and the rotation end of the first power unit is connected to the linkage mechanism. When the first power unit rotates, the lens focus ring is rotated from the starting position to the ending position, or the lens focus ring is rotated from the ending position to the starting position through the linkage mechanism; The control end of the second power unit is electrically connected to the second output end of the control unit, and the rotating end of the power unit is connected to the connecting rod of the first photographed template. When the second power unit rotates, the first photographed template is converted from the vertical state to the horizontal state, or from the horizontal state to the vertical state.
3. The sensor back focus structure detection system comprising a fixed structure as claimed in claim 2, It is characterized in that The first image at least includes a near-focus start image, a near-focus peak image, and a near-focus end image, the power unit at least includes a first power unit and a second power unit, and the control unit is used to control the image acquisition device to acquire the first image of the first photographed template when the first photographed template is in a vertical state, specifically including: Step 101, the control unit controls the second power unit to rotate so as to place the first photographed template in the vertical state, and controls the first power unit to place the lens focus ring in the starting position through the linkage mechanism; Step 102, the control unit controls the image acquisition device to acquire the near-focus starting image; Step 103, the control unit controls the first power unit to rotate so as to drive the lens focus ring to rotate to a first peak position, and controls the image acquisition device to acquire the near-focus peak image, wherein the first peak position is the position of the lens focus ring when the clarity is at a maximum value when shooting the first photographed template; Step 104: the control unit continues to control the first power unit to rotate so as to place the lens focus ring at the end position through the linkage mechanism, and controls the image acquisition device to acquire the near-focus end image.
4. The sensor back focus structure detection system comprising a fixed structure as claimed in claim 3, It is characterized in that The first photographed template also includes: a texture target and an auxiliary lighting source; The texture target is arranged on the photographed surface of the first photographed template; The auxiliary lighting source is disposed on the back of the texture target, the auxiliary lighting source is electrically connected to the control unit, and the auxiliary lighting source is used to provide backlight for the texture target.
5. The sensor back focus structure detection system comprising a fixed structure as claimed in claim 4, It is characterized in that The control unit is further configured to control the auxiliary illumination light source to perform exposure before acquiring the first image.
6. The sensor back focus structure detection system comprising a fixed structure as claimed in claim 4, It is characterized in that The auxiliary lighting source at least includes a DC light source.
7. The sensor back focus structure detection system comprising a fixed structure as claimed in claim 6, It is characterized in that The auxiliary lighting source also includes an infrared light source.
8. The sensor back focus structure detection system comprising a fixed structure as claimed in claim 3, It is characterized in that The second image at least includes a far-focus start image, a far-focus peak image, and a far-focus end image, and the control unit is used to control the image acquisition device to acquire a second image of the second photographed template when the first photographed template is in a horizontal state, specifically including: Step 201, the control unit controls the second power unit to rotate so as to place the first photographed template in the horizontal state, and controls the first power unit to place the lens focus ring in the starting position through the linkage mechanism; Step 202, the control unit controls the image acquisition device to acquire the far-focus starting image; Step 203, the control unit controls the first power unit to rotate so as to drive the lens focus ring to rotate to a second peak position, and controls the image acquisition device to acquire the telephoto peak image, wherein the second peak position is the position of the lens focus ring when the clarity is at a maximum value when shooting the second photographed template; Step 204: the control unit continues to control the first power unit to rotate, so as to place the lens focus ring at the end position through the linkage mechanism, and controls the image acquisition device to acquire the far-focus end image.
9. The sensor back focus structure detection system comprising a fixed structure as claimed in claim 1, It is characterized in that The near focus margin at least includes a near focus start margin and a near focus end margin, wherein: The near-focus starting margin is the ratio of the clarity of the near-focus starting image to the clarity of the near-focus peak image. The near-focus termination margin is a ratio of the clarity of the near-focus termination image to the clarity of the near-focus peak image; The telephoto margin at least includes a telephoto start margin and a telephoto end margin, wherein: The far focus starting margin is the ratio of the clarity of the far focus starting image to the clarity of the far focus peak image. The far focus termination margin is a ratio of the clarity of the far focus termination image to the clarity of the far focus peak image.
