Focusing system

By placing the target at the maximum depth of field and minimum depth of field positions of the camera module, and using image acquisition cards and computing devices to adjust the distance between the lens and the photosensitive element, the problem of low focus accuracy of the fixed-focus camera is solved, and the shooting accuracy is improved. Simplified focus process.

CN222030009UActive Publication Date: 2024-11-19SUNNIWELL AIOT TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420022305.1
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-03
Publication Date
2024-11-19
Estimated Expiration
2034-01-03

AI Technical Summary

Technical Problem

In the production process of fixed-focus cameras, how to improve the focus accuracy of the camera module, ensure the accurate alignment of the distance between the lens and the photosensitive element, and achieve the best image quality.

Method used

By placing the first target and the second target respectively at the maximum depth of field and the minimum depth of field positions of the camera module, and using the image acquisition card and computing device, the function value corresponding to the signal is calculated according to the preset function, and the lens and photosensitive element are adjusted. The distance between them makes it have a better imaging effect at a position with poor imaging, thereby improving the shooting accuracy.

Benefits of technology

The imaging effect is improved in poor imaging positions, the camera shooting accuracy is improved, and the focus process is simplified, avoiding the complexity of the detection of the clarity of the front and rear depth of field position after a single object distance is focused.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222030009U_ABST
    Figure CN222030009U_ABST
Patent Text Reader

Abstract

The utility model provides a focusing system. The focusing system can comprise a camera module to be focused, a first target and a second target, the first target is placed at the maximum depth of view of the camera module, and the second target is placed at the minimum depth of view of the camera module; the positions of the first target and the second target are within the shooting range of the camera module. Since the maximum depth of view and the minimum depth of view are poor shooting positions of the camera in the field depth range, the camera module to be focused is focused by placing the first target at the maximum depth of view of the camera module and placing the second target at the minimum depth of view of the camera module. That is, focusing is performed on the camera based on the imaging of the camera module at the position where the imaging is poor, so that the camera has a good imaging effect at the position where the imaging is poor, the imaging effects at other positions within the field depth range are generally higher than those at the maximum depth of view and the minimum depth of view, and the shooting precision of the camera is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of camera technology, and in particular to a focusing system. Background Art

[0002] In the production process of fixed-focus cameras, the camera needs to be focused, that is, the distance between the lens and the photosensitive element of the camera module is finely adjusted using a focusing device so that the focusing surface of the lens is aligned with the sensing surface of the photosensitive element to achieve the best image quality. How to focus the camera module so that the camera module after focusing can achieve a high shooting accuracy is a very important issue in camera technology. Utility Model Content

[0003] In view of this, an embodiment of the present application provides a focusing system to improve the camera shooting accuracy.

[0004] According to a first aspect of the present application, a focusing system is provided, which includes: a camera module to be focused, a first target and a second target; the first target is placed at a first distance from the camera module, and the first distance is the maximum depth of field of the camera module; the second target is placed at a second distance from the camera module, and the second distance is the minimum depth of field of the camera module; the positions of the first target and the second target are both within the shooting range of the camera module.

[0005] In a possible embodiment, the first target and the second target are in the central field of view or 0.7 field of view of the camera module.

[0006] In a possible embodiment, the maximum depth of field of the camera module is infinite.

[0007] In a possible embodiment, the first target is emitted by a collimator.

[0008] In a possible embodiment, the system further includes: a light box; the light box is used to provide lighting conditions for the second target.

[0009] In a possible embodiment, the system further includes: an image acquisition card and a computing device; the image acquisition card is communicatively connected to the camera module; the image acquisition card is communicatively connected to the computing device;

[0010] The image acquisition card is used to acquire the electrical signal transmitted by the camera module; and transmit the electrical signal to the computing device; the electrical signal is used to reflect the imaging of the first target and the second target in the camera module; the computing device is used to calculate the function value corresponding to the signal according to a preset function.

[0011] In a possible embodiment, the preset function is a modulation transfer function.

[0012] In a possible embodiment, the camera module includes: a lens and a photosensitive element; the lens is used to collect light signals of the first target and the second target; the photosensitive element is used to convert the light signal into an electrical signal and send the electrical signal to the image acquisition card.

[0013] In a possible embodiment, after focusing is completed, the distance between the lens and the photosensitive element satisfies: a difference between a function value corresponding to the first target and a function value corresponding to the second target is within a preset range.

[0014] In a possible embodiment, the center of the first target is aligned to the geometric center position of the photosensitive chip imaging.

[0015] Since the maximum depth of field and the minimum depth of field are poor shooting positions of the camera, in one or more technical solutions provided in the embodiments of the present application, the camera module to be focused is focused by placing the first target at the maximum depth of field from the camera module and placing the second target at the minimum depth of field from the camera module. That is, the camera is focused based on the imaging of the camera module at a position with poor imaging, so that the camera has a better imaging effect at the position with poor imaging, and the imaging effects at other positions within the depth of field are generally higher than the maximum depth of field and the minimum depth of field, thereby improving the shooting accuracy of the camera. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Further details, features and advantages of the present application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0017] Figure 1 A schematic diagram of the structure of a focusing system provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of the structure of a collimator used in a focusing system provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of another structure of the focusing system provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of test points of a first target and a second target in a focusing system provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of a field of view of a camera module in a focusing system provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of a process of focusing using the focusing system provided in an embodiment of the present application;

[0023] Figure 7 Schematic diagram of MTF curve for focusing based on targets at different positions;

[0024] Figure 8 It is a schematic diagram of the MTF curve of focusing in the prior art. DETAILED DESCRIPTION

[0025] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.

[0026] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.

[0027] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0028] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0029] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0030] In order to improve the clarity of camera image shooting, the present application provides a focusing system, and the present application scheme is described below with reference to the accompanying drawings:

[0031] See also Figure 1, Figure 1 A structural schematic diagram of a focusing system provided in the present application, the focusing system may include a camera module 1 to be focused, a first target 2 and a second target 3; the first target is placed at a first distance from the camera module, and the first distance is the maximum depth of field of the camera module; the second target is placed at a second distance from the camera module, and the second distance is the minimum depth of field of the camera module; the positions of the first target and the second target are both within the shooting range of the camera module.

[0032] Since the maximum depth of field and the minimum depth of field are the poor shooting positions of the camera within the depth of field range, the embodiment of the present application is applied to focus the camera module to be focused by placing the first target at the maximum depth of field of the camera module and the second target at the minimum depth of field of the camera module. That is, the camera is focused based on the imaging of the camera module at the position with poor imaging, so that the camera has a better imaging effect at the position with poor imaging, and the imaging effects at other positions within other depth of field ranges are generally higher than the maximum depth of field and the minimum depth of field, thereby improving the shooting accuracy of the camera.

[0033] In the present application, the depth of field of the camera module to be focused can be preset according to actual needs. The depth of field refers to the front and rear distance range of the object to be photographed measured by the imaging that can obtain a clear image at the front of the camera lens or other imager. In a possible embodiment, the above-mentioned camera module to be focused can be a security camera. Security cameras are usually installed at a higher position beside the road or other positions with a better field of view to capture a larger range of environmental images. Due to the need to capture a large range of environmental images, the depth of field of security cameras is usually larger, and the maximum can reach infinity. The minimum depth of field can be set according to actual needs, such as 250mm, 300mm, etc., and this application does not make specific limitations on this.

[0034] The first target and the second target can be targets of any feasible form, and the first target and the second target can be the same or different, and the present application does not specifically limit this. In a possible embodiment, the first target and / or the second target can be an origin array target, a checkerboard target, a spot diagram, a resolution test card 2000 lines, etc.

[0035] The first target is placed at the maximum depth of field of the camera module, and the second target is placed at the minimum depth of field of the camera module. Exemplarily, when the depth of field of the camera module is [S1, S2], where S1 is the minimum depth of field and S2 is the maximum depth of field, the first target can be placed at a distance of S2 from the camera module, and the second target can be placed at a distance of S1 from the camera module.

[0036] In a possible embodiment, in order to simulate normal daylight conditions, lighting conditions can be provided by placing a light box behind the first target and the second target. The light box can be placed behind the first target and the second target, respectively, so that the first target and the second target are clearly imaged in the camera module, and the brightness of the light box is adjustable.

[0037] In a possible embodiment, when the camera module is a security camera, the first target can be installed in a collimator, which can produce a projection of the first target at infinity, and the collimator can provide lighting conditions for the first target, so that the focusing environment is more in line with actual needs. Figure 2 As shown, Figure 2 Schematic diagram of the structure of a collimator used in an embodiment of the present application, wherein the collimator includes a light source, frosted glass, a first target and an objective lens.

[0038] The first target and the second target are both within the shooting range of the camera module. In a possible embodiment, the first target and the second target may be in the central field of view or the 0.7 field of view of the camera module. The above-mentioned central field of view refers to the 0 image height position, and the 0.7 field of view refers to the 70% image height position. The image height is the distance from the lens focus to the imaging focal plane; the focal length is the distance from the incident light plane of the camera lens to the focus. The relationship between image height and focal length is a proportional relationship, that is, the larger the focal length, the larger the image height, and vice versa, the smaller the focal length, the smaller the image height. By focusing the camera module based on multiple fields of view, the adaptability of the camera module under different shooting conditions is improved.

[0039] In the present application, the camera module to be focused includes a lens and a photosensitive element. In one possible embodiment, the lens is a fixed-focus lens, which refers to a lens with only a fixed focal length and no zoom function. The photosensitive element is an image sensor that can convert the light signal on the photosensitive surface into an electrical signal that is in a corresponding proportional relationship with the light signal, and the corresponding image can be obtained by solving the electrical signal. In the embodiment of the present application, the photosensitive element can be a CCD (Charge-Coupled Device) element or a CMOS (Complementary Metal Oxide Semiconductor) device, and the present application does not make specific limitations on this.

[0040] In the embodiment of the present application, the focal length of the camera module to be focused can be adjusted by adjusting the distance between the lens and the photosensitive element based on the images of the first target and the second target captured by the camera module. In a possible embodiment, the camera module to be focused can be fixed on a bracket. The bracket structure is not specifically limited in the present application. It is only necessary that the relative position of the lens and the photosensitive element and the relative position between the lens and the first target and the second target do not change during the image acquisition process of a single focus adjustment, and the distance between the lens and the photosensitive element can be adjusted after a single image acquisition.

[0041] In a possible embodiment, the center of the first target can be aligned to the geometric center position of the photosensitive element. In a possible embodiment, the overlap position of the second target and the first target can be treated to avoid air, so that the camera module can capture the complete image of the first target and the second target. As a possible implementation, in the case where the first target is emitted by a collimator and the second target is a checkerboard target, the collimator can be installed at a position higher than the upper edge of the checkerboard target, so that the parallel light emitted by the collimator is not blocked by the checkerboard target. As another possible implementation, a blank area can be set in the second target, and the collimator can be installed in the blank area, and the camera module can capture the image of the first target emitted by the collimator through the blank area. In other embodiments of the present application, the first target and the second target can also be treated to avoid air in other feasible ways, and the present application does not make specific limitations on this.

[0042] In a possible embodiment, Figure 3 As shown, the above-mentioned focusing system may also include: an image acquisition card and a computing device (PC); the image acquisition card is communicatively connected to the camera module; the image acquisition card is communicatively connected to the computing device;

[0043] The image acquisition card is used to acquire the electrical signal transmitted by the camera module; and transmit the electrical signal to the computing device; the electrical signal is used to reflect the imaging of the first target and the second target in the camera module; the computing device is used to calculate the function value corresponding to the signal according to a preset function.

[0044] An image acquisition card is a hardware device that can acquire digital video image information, store it, and play it out. Specifically, the image acquisition card can acquire the electrical signal transmitted by the photosensitive element and transmit the electrical signal to the computing device. The image acquisition card can be of any definition and any specification, and this application does not make specific restrictions on this.

[0045] The image acquisition card can be connected to the camera module via cables, networks, etc. Specifically, the image acquisition card is connected to the photosensitive element in the camera module. The image acquisition card can also be connected to a computing device via cables, networks, etc. The computing device can be any computer, mobile terminal, etc. with computing functions, and this application does not specifically limit this.

[0046] The computing device can calculate the preset function values ​​corresponding to the first target and the second target based on the imaging of the first target and the second target in the camera module. In a possible embodiment, the preset function can be MTF (Modulation Transfer Function). The MTF of a lens is a measure of its ability to transfer contrast from an object to an image at a specific resolution. The larger the MTF, the better the imaging quality of the system. Specifically, MTF = contrast of the output image / contrast of the input image, where image contrast refers to the measurement of different brightness levels between the brightest white and the darkest black in the light and dark areas of an image, that is, the size of the grayscale contrast of an image.

[0047] In a possible embodiment, a test area ROI (region of interest) can be determined in the first target and the second target, and corresponding MTF values ​​can be calculated based on the two test areas as the MTF values ​​corresponding to the first target and the second target. In the embodiment of the present application, any feasible method can be used to determine the ROI in the first target and the second target. As a possible implementation method, Figure 4 As shown, the test area at infinity is selected at the center ROI0 of the first target (chart at infinity), that is, at the center of the collimator, and the close-range test point is selected at ROI1 on the right side of the collimator on the second target (chart at close range).

[0048] In a possible embodiment, when acquiring a second target image in a 0.7 field of view, it is possible to select Figure 5 Any ROI shown in is used as the ROI of the second target.

[0049] When calculating the MTF values ​​corresponding to the first target and the second target, the contrast of the above-mentioned output image can be the grayscale difference between the brightest point and the darkest point in the ROI of the first target and the second target images captured by the image acquisition card, and the contrast of the input image can be the grayscale difference between the brightest point and the darkest point in the corresponding ROI in the first target and the second target images.

[0050] In a possible embodiment, the electronic device may display the MTF values ​​corresponding to the first target and the second target on the screen in real time, so that relevant personnel can judge the focusing result.

[0051] In a possible embodiment, after focusing is completed, the distance between the lens and the photosensitive element satisfies: a difference between a function value corresponding to the first target and a function value corresponding to the second target is within a preset range.

[0052] In the embodiment of the present application, an MTF difference threshold may be preset, and when the difference between the MTFs corresponding to the first target and the second target is smaller than the MTF difference threshold, it may be determined that the focusing is completed.

[0053] In a possible embodiment, an MTF minimum value may also be set. When the MTF values ​​corresponding to the first target and the second target are greater than or equal to the MTF minimum value, and the MTF difference between the two ROIs is less than the MTF difference threshold, it can be determined that the focusing is completed. The above-mentioned MTF minimum value and MTF difference threshold may be set according to product requirements. For example, different MTF minimum values ​​and MTF difference thresholds may be set according to the factory's requirements for pass rate. This application does not specifically limit this.

[0054] In a possible embodiment, different MTF difference thresholds may be set for different fields of view, for example, different MTF difference thresholds may be set for the central field of view and the 0.7 field of view.

[0055] In a possible embodiment, the MTF difference thresholds of the two ROI positions can be pre-set in the computing device, such as less than 3 in the central field of view and less than 5 in the 0.7 field of view. The test area of ​​the first target at infinity in the central field of view is set as ROI0, and the test area of ​​the second target at a close distance in the central field of view (i.e., at the depth of field S) is set as ROI1. A set of MTF data actually tested by the focusing system is: the dynamic MTF value of the position numbered ROI0 is 55lp / mm, and the dynamic MTF value of the position numbered ROI1 is 45lp / mm. At this time, the difference between the MTF values ​​of the two positions is greater than the MTF difference threshold corresponding to the central field of view, and the current position is not the best focus position. A dedicated focusing tool can be used to rotate the lens and adjust the relative position of the lens and the photosensitive chip until the difference between the two MTF values ​​obtained by the computing device is less than the preset MTF difference threshold. The best focus position can be easily found according to the tested MTF value.

[0056] In a possible embodiment, when the MTF values ​​at two positions are less than a preset MTF difference threshold, PASS may be displayed in the computing device to indicate that the focusing is completed, so as to further improve the focusing convenience of the focusing system.

[0057] like Figure 6 As shown, Figure 6 This is a flow chart of focusing using the focusing system provided in the embodiment of the present application, which may include the following steps:

[0058] S601, acquiring the first target and the second target test images acquired by the image acquisition card, and calculating the corresponding MTF values.

[0059] S602, determining whether the two MTFs meet the preset conditions. If not, adjusting the distance between the lens and the photosensitive element, and returning to S601; if they meet, executing S603;

[0060] S603, maintaining the distance between the lens and the photosensitive element, applying glue, and UV (Ultraviolet curing) curing to fix the distance between the lens and the photosensitive element.

[0061] In the embodiment of the present application, for a camera module with a depth of field range of [S, ∞], the MTF of a target with a close depth of field S and a target at infinity are measured simultaneously in the central field of view. When the difference in the MTF values ​​of these two positions is small, it is the best focus position, and the purpose of depth of field from ∞ to S can be achieved. Figure 7 As shown, the X-axis is the relative position of the lens and the photosensitive element, the Y-axis is the MTF value, curve I is the defocus curve when the object distance is ∞, curve II is the defocus curve when the object distance is 2S, the distance of 2S is the hyperfocal distance, which is usually the best point of the image within the depth of field, curve III is the defocus curve when the object distance is a short distance S, and HH′ in the figure is the best image plane.

[0062] Near point H′ where the MTF of defocus curves Ⅰ and Ⅲ are equal, the curve is very steep and sensitive, so the distribution of focus positions is very narrow. A slight change in the focus position near point H on the X-axis will cause a large change in the MTF values ​​of curves Ⅰ and Ⅲ. Therefore, by placing a target at distance ∞ and minimum depth of field S and focusing based on the target, a smaller focal length change can cause a larger MTF value change, thereby improving the focusing accuracy.

[0063] like Figure 8 As shown, in the related art, the best point of the image within the depth of field (2S) is checked. In actual operation, the MTF value of the defocus curve is near the peak value H', and the change in the relative position of the lens and the photosensitive element causes a small change in the MTF value, that is, the image quality near the best image plane is not sensitive to changes, so that the error range of the relative position of the lens and the photosensitive element is large, and it is difficult to determine the correct best position, resulting in low focusing accuracy. If the adjustment is too far to the left, the close-range image will be blurred, and if the adjustment is too far to the right, the long-range image will be blurred.

[0064] The focusing system provided by the present application is based on a target placed at the worst point of the image within the depth of field for focusing. It is understandable that a CMOS module that has passed the inspection at the best imaging effect (2S) cannot guarantee that the image quality at the worst point is qualified. However, a camera module that has passed the inspection at the worst point can ensure that the image quality at other points is better than the test point, thereby improving the camera's shooting accuracy. Furthermore, in the related art, the sensitivity is poor when focusing near the best imaging point, and the camera module that has passed the focusing may not be qualified in the final actual shooting. The focusing system provided by the present application is used to focus the camera module, which has high sensitivity and high requirements for image quality, effectively solving the problem of focusing accuracy, eliminating the clarity inspection process of the front and rear depth of field positions after focusing at a single object distance, and has a simple structure, which is convenient and fast, and is convenient for data comparison and analysis.

Claims

1. A focusing system, characterized in that: The focusing system includes: a camera module to be focused, a first target and a second target; the first target is placed at a first distance from the camera module, and the first distance is the maximum depth of field of the camera module; the second target is placed at a second distance from the camera module, and the second distance is the minimum depth of field of the camera module; the positions of the first target and the second target are both within the shooting range of the camera module.

2. The system according to claim 1, characterized in that The first target and the second target are in the center field of view or 0.7 field of view of the camera module.

3. The system according to claim 1, characterized in that The maximum depth of field of the camera module is infinite.

4. The system according to claim 1, characterized in that The first target is emitted by a collimator.

5. The system according to claim 1, characterized in that The system further includes: a light box; the light box is used to provide lighting conditions for the second target.

6. The system according to claim 1, characterized in that The system further comprises: an image acquisition card and a computing device; the image acquisition card is communicatively connected to the camera module; the image acquisition card is communicatively connected to the computing device; The image acquisition card is used to acquire the electrical signal transmitted by the camera module; and transmit the electrical signal to the computing device; the electrical signal is used to reflect the imaging of the first target and the second target in the camera module; the computing device is used to calculate the function value corresponding to the signal according to a preset function.

7. The system according to claim 6, characterized in that The preset function is a modulation transfer function.

8. The system according to claim 6, characterized in that The camera module includes: a lens and a photosensitive element; the lens is used to collect light signals of the first target and the second target; the photosensitive element is used to convert the light signal into an electrical signal and send the electrical signal to the image acquisition card.

9. The system according to claim 8, characterized in that After the focusing is completed, the distance between the lens and the photosensitive element satisfies: the difference between the function value corresponding to the first target and the function value corresponding to the second target is within a preset range.

10. The system according to claim 8, characterized in that The center of the first target is aligned to the geometric center position of the photosensitive chip imaging.