AF module far and near scene linear region distribution detection method, system and terminal

By performing linear distribution detection of near and far views on the AF module before PDAF programming, and calculating sensitivity using mid-range travel and MTF peak test, the programming failure problem caused by non-linear code distribution in near and far views is solved, thus improving programming yield.

CN121967668APending Publication Date: 2026-05-01HENGDIAN GRP EAST MAGNETIC CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HENGDIAN GRP EAST MAGNETIC CO LTD
Filing Date
2025-03-31
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing technologies, AF modules experience programming failures during PDAF programming because the distribution of near and far view codes is not within the linear region of the motor.

Method used

Before PDAF programming, the center MTF peak value is tested by selecting the mid-range travel in the total travel of the far and near views, using the mid-range distance to calculate the motor sensitivity, determine whether the far and near views are in the linear zone, and adjust the AF module according to the results.

Benefits of technology

It improves the success rate of PDAF programming and increases the programming yield. By pre-determining whether the code distribution in the near and far views is in the linear region, the AF module is adjusted to ensure the success of subsequent programming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121967668A_ABST
    Figure CN121967668A_ABST
Patent Text Reader

Abstract

The invention discloses an AF module far and near scene linear region distribution detection method and system and a terminal, and solves the problem of burning failure caused by the fact that far and near scene codes of a product are not distributed in a motor linear region when far and near scene codes are burned in advance, and the method comprises the steps: respectively selecting distances corresponding to two strokes in the total stroke of a far scene and a near scene, and obtaining a middle scene stroke; selecting a corresponding medium-scene distance from the depth-of-scene table according to the medium-scene travel to serve as a test environment; performing center MTF peak value test on the middle-scene distance and the far-and-near-scene distance to obtain corresponding code values; respectively calculating the sensitivity of the voice coil motor according to the stroke value and the code value, judging whether the far and near scenes of the AF module are in a linear region or not, and adjusting the AF module according to the judgment result. Whether far and near scene codes are respectively distributed in a linear area or not is judged in advance in a station before PDAF burning, and corresponding measures can be taken for adjustment according to a result, so that the burning yield of a subsequent PDAF burning station is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of camera technology, and in particular to a method, system and terminal for detecting the linear distribution of near and far views in an AF module. Background Technology

[0002] Camera modules are primarily used in electronic terminal products such as mobile phones, tablets, drones, and medical devices, and have now become indispensable items in people's lives. Rear cameras typically use AF (autofocus) camera modules, which can focus clearly on objects at different distances before capturing images, adapting to various shooting distances. Many projects with a focus distance of 13 meters or more use PDAF (phase detection autofocus) to speed up focusing, and it is frequently used in everyday photography. Using PDAF requires the module manufacturer to pre-program the codes for near and far views, followed by PDAF verification.

[0003] Current PDAF programming solutions involve programming both distant and close-up codes, then capturing an image of a PDAF chart at a specified distance and calculating the programming data. Once the data passes the platform's standards, programming is considered successful. For example, the Chinese Patent Office published patent CN114385193A on April 22, 2022: "A method and programming device for improving the speed of AF code programming." When programming AF codes for multiple camera modules with the same configuration, the clear code value programmed by the first camera module is saved. A code value less than the clear code value is used as the starting search value to search for the AF codes of other camera modules, reducing focus search time. By saving the clear code value programmed by the first camera module and using it as a basis for searching when subsequent camera modules acquire clear code values, the time to acquire and program clear code values ​​into the module is accelerated, significantly improving programming efficiency. However, in actual production, some products may fail to program because the distribution of distant and close-up codes is not within the motor's linear range. Summary of the Invention

[0004] The purpose of this invention is to solve the problem in the prior art that the near and far view codes fail to be pre-programmed when they are not distributed in the linear area of ​​the motor. This invention provides a method, system and terminal for detecting the distribution of near and far view linear areas in AF modules. The invention pre-determines whether the distribution of near and far view codes is in the linear area at the station before PDAF programming and can take corresponding measures to adjust according to the results, thereby improving the programming yield of the subsequent PDAF programming stations.

[0005] To achieve the above objectives, the present invention adopts the following technical solution: A method for detecting the linear distribution of near and far views in an autofocus module includes the following steps: S1: Select the distances corresponding to two separate trips in the total trips for both long shot and close shot to obtain the mid-shot trip; S2: Select the appropriate mid-range distance from the depth of field table based on the mid-range travel distance to use as the test environment; S3: Perform center MTF peak test on medium shot distance and near and far shot distance to obtain the corresponding code value; S4: Calculate the motor sensitivity based on the stroke value and code value, determine whether the AF module is in the linear range for near and far objects, and adjust the AF module according to the judgment result.

[0006] The method provided by this invention selects the mid-range travel based on the near and far range travel, obtains the mid-range distance based on the mid-range travel, and uses the mid-range distance to test and calculate the focus codes at different distances in the station before PDAF burning, determines whether the distribution of near and far range codes is in the linear zone, and can adjust the AF module based on the results, which can ultimately improve the burning yield of the subsequent PDAF burning station.

[0007] Preferably, step S4 includes: calculating the standard sensitivity, far-field sensitivity, and near-field sensitivity of the motor based on the stroke value and the code value; if the absolute value of the difference between the standard sensitivity and the far-field sensitivity is greater than or equal to the judgment standard value, then the far-field sensitivity is determined to be outside the linear region; if the absolute value of the difference between the near-field sensitivity and the standard sensitivity is greater than or equal to the judgment standard value, then the near-field sensitivity is determined to be outside the linear region.

[0008] The preferred criterion value is 10% of the standard sensitivity. Using an absolute value for judgment, if the near-field (or far-field) sensitivity is greater than or less than the standard sensitivity exceeding the criterion value, it will be judged as the near-field (or far-field) being outside the linear zone. Sensitivity is calculated using the code values ​​corresponding to different distances obtained from focus code tests at various distances. This sensitivity is then used to determine whether the AF module's near and far-field objects are within the linear zone, resulting in low computational load and high accuracy.

[0009] Preferably, S4 includes: if the far-view sensitivity is less than the standard sensitivity or the near-view sensitivity is less than the standard sensitivity, then adjust the up and down rotation distribution position; if the far-view sensitivity is less than the standard sensitivity and the near-view sensitivity is less than the standard sensitivity, then re-evaluate whether the motor stroke is sufficient or whether the far-view and near-view positions can be adjusted; if the far-view sensitivity is greater than the standard sensitivity, then detect whether there is adhesive residue at the bottom of the motor.

[0010] After determining whether the foreground and background of the AF module are within the linear range, the reasons for each result are further analyzed based on the judgment results. This allows for adjustments to the AF module based on the judgment results, thereby improving the success rate of subsequent PDAF programming.

[0011] Preferably, S3 includes: focusing the environmental test charts at long-range, medium-range, and close-range distances respectively, and obtaining the code value corresponding to each distance based on the instruction value corresponding to the amount of motor movement when the MTF parsing reaches the highest point during focusing.

[0012] When comparing the performance of optical systems, a commonly used metric is the modulation transfer function (MTF), which is a way of expressing the resolution of a camera. The code is the command value controlling the amount of motor movement, typically set between 0 and 1023, and linearly corresponds to the motor drive current.

[0013] As a preferred method, in the long shot and short shot trips, a first medium shot trip closer to the long shot and a second medium shot trip closer to the short shot are selected; the first medium shot distance is selected in the depth of field table based on the first medium shot trip, and the second medium shot distance is selected in the depth of field table based on the second medium shot trip; a center MTF peak test is performed on the short shot distance to obtain the short shot code, a center MTF peak test is performed on the long shot distance to obtain the long shot code, a center MTF peak test is performed on the first medium shot distance to obtain the first medium shot code, and a center MTF peak test is performed on the second medium shot distance to obtain the second medium shot code.

[0014] This application selects two mid-range shots for calculation within the total travel distance of both the long-range and close-up shots. Specifically, it divides the travel distance between the long-range and close-up shots into three segments: one end is the long-range shot, and the other end is the close-up shot. The first mid-range shot travel distance is the segment closer to the long-range shot, and the second mid-range shot travel distance is the segment closer to the close-up shot. It should be noted that dividing it into two segments is a preferred embodiment of this invention; it can also be divided into four segments. A standard sensitivity is calculated from two mid-range shot travel distances, and another standard sensitivity is calculated from the other two mid-range shot travel distances. The final standard sensitivity is the average of the two standard sensitivity calculations.

[0015] Preferably, the first mid-range distance is the sum of one-nth of the difference between the near-range distance and the far-range distance and the far-range distance.

[0016] The optimal value for n is 3, which means: Mid-range travel 1 = (Near-range travel - Long-range travel) / 3 + Long-range travel.

[0017] Preferably, the first mid-range shot is half the length of the second mid-range shot.

[0018] Preferably, the following steps are taken: obtaining a first difference between the second medium-range travel and the first medium-range travel; obtaining a second difference between the second medium-range code and the first medium-range code; the standard sensitivity is the ratio of the first difference to the second difference; obtaining a third difference between the first medium-range travel and the long-range travel; obtaining a fourth difference between the first medium-range code and the long-range code; calculating the long-range sensitivity based on the ratio of the third difference to the fourth difference; obtaining a fifth difference between the close-range travel and the second medium-range travel; obtaining a sixth difference between the close-range code and the second medium-range code; calculating the close-range sensitivity based on the ratio of the fifth difference to the sixth difference.

[0019] Sensitivity is the slope in the motor current & stroke diagram. Based on the slope, it is determined whether the distribution of the near and far codes of the AF module is in the linear region and can be adjusted according to the results. Ultimately, this can improve the burning yield of the subsequent PDAF burning station.

[0020] An AF module for detecting linear region distribution in near and far views includes: The trip acquisition module selects the distances corresponding to two trips from the total trips of distant and close-up views to obtain the first mid-range trip and the second mid-range trip. The front-end module selects the corresponding mid-range distance from the depth-of-field table based on the mid-range travel distance to use as the test environment; The testing module performs center MTF peak tests on mid-range and near-range distances to obtain the corresponding code values; The sensitivity calculation module calculates the motor's standard sensitivity, near-field sensitivity, and far-field sensitivity based on the stroke value and code value, respectively. The judgment module determines whether the near and far views of the AF module are distributed in the linear region based on the calculation results of the sensitivity calculation module, and adjusts the AF module accordingly.

[0021] The front-facing module stores a depth-of-field table, which quantifies depth of field by clearly displaying the relationship between different aperture values, focal lengths, and depth-of-field ranges through a series of scales. Users can quickly preview the start and end positions of the depth of field under specific settings using the depth-of-field table, thereby enabling more precise control over the sharpness and visual effects of photos.

[0022] A terminal includes a memory and a processor, wherein the memory stores an AF module near-far linear region distribution detection program that can run on the processor, for use in the above-described AF module near-far linear region distribution detection method.

[0023] The memory also stores current test results and historical test data, including test time and the AF module tested. Additionally, a display screen is provided on the terminal, allowing users to view the current test results in real time. A QR code or RFID code is affixed to the AF module. The terminal scans the QR code to obtain and record the current AF module information, along with the test time and results, and outputs the corresponding adjustment plan.

[0024] Therefore, the present invention has the following beneficial effects: (1) In the station before PDAF burning, by testing and calculating the focus code at different distances in advance, it is determined whether the distribution of the near and far view codes (the original pixel values ​​output by the image sensor during image processing) is in the linear area and can be adjusted according to the results, which can ultimately improve the burning yield of the subsequent PDAF burning station.

[0025] (2) By making linear judgments based on the focus code at different distances, the distribution of linear areas in the foreground and background of the AF module can be batch-detected, thereby improving detection efficiency. Attached Figure Description

[0026] Figure 1 This is a stroke diagram of a common motor in Example 1.

[0027] Figure 2 This is a flowchart of the steps in the linear region distribution detection method of the AF module in Example 1.

[0028] Figure 3 This is a current-stroke curve of a common voice coil motor in Example 1.

[0029] Figure 4 This is a current-stroke curve of a typical mid-drive motor in Example 1.

[0030] Figure 5 This is a schematic diagram of the detection results in Example 1.

[0031] Figure 6 This is a flowchart of the AF module adjustment process in Example 1. Detailed Implementation

[0032] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments: Example 1: like Figure 1 The diagram shows the stroke of a typical motor, including the two revolutions in segment 0-A and the revolution at coordinates (80, c). Figure 1 The yellow circles are all located in the nonlinear region of the motor, and the circles in segment A-80 (i.e. Figure 1The blue and green circles are both located in the linear region of the motor. As the horizontal axis current increases from 0mA to 120mA (generally corresponding to 0 to 1023 codes depending on the selected driver IC), the motor travel increases upwards, and the AF module moves from focusing on distant objects to focusing on close-up objects. During the production process, the AF module needs to be adjusted by rotating it downwards, or by pulling up or down the AA (autofocus) mechanism, or by energizing the AA to ensure that the distance and close-up codes of the AF module are distributed in the linear region, thereby improving the yield of subsequent PDAF (PD AF) ​​programming.

[0033] For a motor with a known test stroke as described above (requiring a motor laser tester to obtain the curve), the linear region can be determined by converting current and code. However, in actual production, it's impossible to test a motor before producing a module, and the performance of a single motor and the assembled module may differ slightly. Therefore, determining linearity by performing focus code analysis at different distances after assembling the AF module is more suitable for actual production.

[0034] Based on the above, this embodiment provides a method for detecting the linear region distribution of near and far views in an AF module, such as... Figure 2 As shown, the operation process is as follows: Step 1, select the distances corresponding to the two strokes in the total stroke of the far and near scenes respectively to obtain the mid-range stroke; Step 2, select the corresponding mid-range distance in the depth of field table according to the mid-range stroke as the test environment; Step 3, perform center MTF peak test on the mid-range distance and the far and near distances to obtain the corresponding code value; Step 4, calculate the motor sensitivity according to the stroke value and code value, determine whether the far and near scenes of the AF module are in the linear region, and adjust the AF module according to the judgment result.

[0035] Using PDAF focusing requires the module manufacturer to pre-program the focus codes for near and far scenes before performing PDAF verification. Generally, to further improve focusing speed, autofocus modules pre-program corresponding code values ​​for near, medium, and far scenes before shipment. Currently, the conventional method is to set an initial code value, and then the drive motor searches according to this initial code value. The AF module near and far scene linear area distribution detection method provided in this embodiment selects the medium scene travel based on the near and far scene travel, obtains the medium scene distance based on the medium scene travel, and uses the medium scene distance to pre-test and calculate the focus codes (the raw pixel values ​​output by the image sensor during image processing) at different distances in the station before PDAF programming. This determines whether the distribution of near and far scene codes is within the linear area, and the AF module can be adjusted based on the results, ultimately improving the programming yield of subsequent PDAF programming stations.

[0036] The following examples and specific application scenarios further illustrate the technical solution and effects of the present invention. The following examples are explanations of the present invention, but the present invention is not limited to the following examples.

[0037] The specific process is as follows: Step 1: Select the distances corresponding to the two trips in the total trips for both the long shot and the close-up shot to obtain the mid-shot trip.

[0038] A medium shot travel refers to the process by which the camera lens gradually moves from a distant view to a medium shot during filming. In this embodiment, two medium shot travels are selected: a first medium shot travel closer to the distant view and a second medium shot travel closer to the close-up view, selected from the distant and close-up travels.

[0039] Specifically, in this embodiment, two mid-range shots are selected for calculation within the total travel distance of both the distant and near shots. This means the travel distance between the distant and near shots is divided into three segments: one end is the distant shot, and the other end is the near shot. The first mid-range shot travel distance is the segment closer to the distant shot, and the second mid-range shot travel distance is the segment closer to the near shot. It should be noted that dividing it into two segments is a preferred embodiment of this invention; it can also be divided into four segments. A standard sensitivity is calculated from two mid-range shot travel distances, and another standard sensitivity is calculated from the other two mid-range shot travel distances. The final standard sensitivity is the average of the two calculated values.

[0040] The first mid-range distance is the sum of one-nth of the difference between the near-range distance and the far-range distance and the far-range distance. n is preferably 3, i.e.: Mid-range distance 1 = (Near-range distance - Far-range distance) / 3 + Far-range distance.

[0041] The first medium shot travel distance is half of the second medium shot travel distance, that is: Medium shot travel distance 2 = 2 * (close shot travel distance - long shot travel distance) / 3 + long shot travel distance. For example... Figure 1 The mid-ground areas circled in blue are clearly distributed within the linear region.

[0042] Step 2: Select the appropriate mid-range distance from the depth of field table based on the mid-range travel distance to use as the test environment.

[0043] Based on the first medium shot travel distance, select the first medium shot distance in the depth of field table as the test environment; based on the second medium shot travel distance, select the second medium shot distance in the depth of field table as the test environment.

[0044] The depth-of-field table and the selected first and second medium-field distances used in this embodiment are as follows: A depth-of-field scale quantifies depth of field, expressing the depth of field at which a camera is shooting and the amount of lens movement. It clearly displays the relationship between different aperture values, focal lengths, and depth-of-field ranges through a series of scales. Photographers can use these scales to quickly preview the start and end points of the depth of field at specific settings, thus allowing for more precise control over the sharpness and visual effects of their photos.

[0045] Step 3: Perform center MTF peak test on the mid-range and near-range distances to obtain the corresponding code values.

[0046] When comparing the performance of optical systems, a commonly used metric is the modulation transfer function (MTF), which is a way of expressing the resolution of a camera and is a parameter used to describe the imaging quality of an optical system.

[0047] Code is the instruction value that controls the amount of motor movement. It is generally set to 0 to 1023 and corresponds linearly to the motor drive current.

[0048] In this embodiment, the code value corresponding to each distance is obtained by testing and recording the code at the center MTF peak for four distance environments: far-field distance, first mid-field distance, second mid-field distance, and near-field distance.

[0049] The specific process of recording the code for the MTF peak test is as follows: Focus the environmental test charts at long distance, medium distance, and close distance respectively, and obtain the code value corresponding to each distance based on the instruction value corresponding to the amount of motor movement when the MTF parsing reaches the highest point during focusing.

[0050] Specifically: perform a center MTF peak test on the close-up distance to obtain the close-up code; perform a center MTF peak test on the far-up distance to obtain the far-up code; perform a center MTF peak test on the first mid-range distance to obtain the first mid-range code; and perform a center MTF peak test on the second mid-range distance to obtain the second mid-range code.

[0051] Step 4: Calculate the motor sensitivity based on the stroke value and code value, determine whether the AF module is in the linear range for near and far objects, and adjust the AF module according to the judgment result.

[0052] In this embodiment, the sensitivity, i.e. the slope in the motor current & stroke diagram, determines whether the distribution of the near and far codes of the AF module is in the linear region and can be adjusted according to the results, which can ultimately improve the burning yield of the subsequent PDAF burning station.

[0053] The calculated sensitivity includes: standard sensitivity, far-view sensitivity, and near-view sensitivity.

[0054] Specifically: Based on the stroke value and code value, calculate the motor's standard sensitivity, far-field sensitivity, and near-field sensitivity respectively; if the absolute value of the difference between the standard sensitivity and the far-field sensitivity is greater than or equal to the judgment standard value, then the far-field sensitivity is determined to be outside the linear region; if the absolute value of the difference between the near-field sensitivity and the standard sensitivity is greater than or equal to the judgment standard value, then the near-field sensitivity is determined to be outside the linear region.

[0055] The preferred criterion value is 10% of the standard sensitivity. Using an absolute value for judgment, if the near-field (or far-field) sensitivity is greater than or less than the standard sensitivity exceeding the criterion value, it will be judged as the near-field (or far-field) being outside the linear zone. Sensitivity is calculated using the code values ​​corresponding to different distances obtained from focus code tests at various distances. This sensitivity is then used to determine whether the AF module's near and far-field objects are within the linear zone, resulting in low computational load and high accuracy.

[0056] To improve the accuracy of the linear region detection results for both near and far views using the AF module, the judgment standard value can be set as follows in this embodiment: For the sample AF module, select two distances corresponding to the total travel distance for both near and far views; select a mid-range distance in the depth-of-field table based on the first mid-range travel distance as the test environment; select a second mid-range distance in the depth-of-field table based on the second mid-range travel distance as the test environment; perform code tests and record the center MTF peak values ​​for the four distance environments: far distance, first mid-range distance, second mid-range distance, and near distance; calculate the standard sensitivity, far-view sensitivity, and near-view sensitivity. The judgment standard value is obtained based on the average difference between the far-view sensitivity and the standard sensitivity, and the average difference between the near-view sensitivity and the standard sensitivity of the sample AF module.

[0057] Among them, the sample AF module is a defective AF module in the non-linear region of near and far views, and it can be understood that there are multiple sample AF modules; the sample motor is a potential motor.

[0058] The specific process for calculating sensitivity is as follows: (1) Standard sensitivity: Obtain the absolute value of the first difference between the second medium-field travel and the first medium-field travel, and obtain the second difference between the second medium-field code and the first medium-field code. The standard sensitivity of the motor is the ratio of the first difference to the second difference, expressed by the formula: Standard sensitivity = |(first medium-field travel - far-field travel)| / (first medium-field code - far-field code).

[0059] (2) Distance sensitivity: Obtain the absolute value of the third difference between the first medium shot travel and the distance travel, and obtain the fourth difference between the first medium shot code and the distance code. The distance sensitivity is the ratio of the third difference to the fourth difference, expressed by the formula: Distance sensitivity = |(first medium shot travel - distance travel)| / (first medium shot code - distance code).

[0060] (3) Close-up sensitivity: Obtain the absolute value of the fifth difference between the close-up travel and the second medium shot travel, and obtain the sixth difference between the close-up code and the second medium shot code. The close-up sensitivity is the ratio of the fifth difference to the sixth difference, expressed by the formula: Close-up sensitivity = |(close-up travel - second medium shot travel)| / (close-up code - second medium shot code).

[0061] After determining whether the foreground and background of the AF module are within the linear range, the reasons for each result are further analyzed based on the judgment results. This allows for adjustments to the AF module based on the judgment results, thereby improving the success rate of subsequent PDAF programming.

[0062] like Figure 3 The figure shows a schematic diagram of the current and stroke of a common voice coil motor. The horizontal axis represents the current and the vertical axis represents the stroke (a mm, b mm, c mm). Then A = 40 - a ÷ [B ÷ (60 - 40)], B = ba.

[0063] like Figure 4 The diagram shown is a schematic of the current and stroke of a typical mid-drive motor. The horizontal axis represents the current, and the vertical axis represents the stroke. In the diagram, A represents the vertical coordinate of the corresponding horizontal line, B represents the vertical coordinate of the corresponding horizontal line, β represents the distance between A and B, a represents the horizontal coordinate of the corresponding vertical line, b represents the horizontal coordinate of the corresponding vertical line, and α represents the distance between a and b. From this, the standard sensitivity of the mid-drive motor can be calculated.

[0064] Using the AF module near-field linear region distribution detection method provided in this embodiment, the current and stroke diagram of the motor is drawn as follows. Figure 5 As shown. Then as Figure 6 As shown, the specific method for adjusting the AF module based on the judgment result is as follows: if the foreground and background are not in the linear zone, such as the travel change of the arrow in the 60mA-80mA segment (i.e. Figure 6 The yellow arrow at point ① or the arrow above the straight line in the 0-40mA segment (i.e., Figure 6The stroke change indicated by the yellow arrow at point ② (meaning the far-view sensitivity is less than the standard sensitivity or the near-view sensitivity is significantly less than the standard sensitivity) indicates a change in stroke. If the stroke change is indicated by both the 60mA-80mA segment arrow and the 0-40mA segment arrow above the straight line (meaning the far-view sensitivity is significantly less than the motor sensitivity and the near-view sensitivity is less than the standard sensitivity), the motor stroke needs to be reassessed. A motor with sufficient stroke needs to be replaced, or the position of the far and near views needs to be adjusted. If the stroke change is indicated by the arrow below the straight line (meaning the 0-40mA segment arrow), the motor stroke needs to be reassessed. Figure 6 If the stroke change indicated by the blue arrow at point ③ is greater than the standard sensitivity, then check whether there is adhesive residue at the bottom of the motor.

[0065] The AF module near-field linear area distribution detection method provided in this embodiment, in the station before PDAF burning, pre-tests and calculates the focus codes at different distances to determine whether the distribution of near-field codes (the raw pixel values ​​output by the image sensor during image processing) is within the linear area. Adjustments can be made based on the results, ultimately improving the burning yield of subsequent PDAF burning stations. It can also determine the linearity of focus codes at different distances. Module manufacturers, where conditions permit, can implement this method in mass production equipment to perform batch detection of the near-field linear area distribution of AF modules, improving detection efficiency. If conditions do not permit, a small-scale device can be fabricated to assist in testing and adjusting the code distribution range in the early stages of the process.

[0066] Example 2: This embodiment provides an AF module near-field linear region distribution detection system to implement the AF module near-field linear region distribution detection method in Embodiment 1.

[0067] Specifically, an AF module near-field linear region distribution detection system includes a travel acquisition module, a pre-amplifier module, a test module, a sensitivity calculation module, and a judgment module. The travel acquisition module is connected to the pre-amplifier module, the pre-amplifier module is connected to the test module, the test module is connected to the sensitivity calculation module, and the sensitivity calculation module is connected to the judgment module.

[0068] The trip acquisition module is used to select the distances corresponding to two trips from the total trips for distant and close-up views, respectively, to obtain the first mid-range trip and the second mid-range trip. Specifically, the first mid-range trip = (close-up trip - distant trip) / 3 + distant trip; the second mid-range trip = 2 * (close-up trip - distant trip) / 3 + distant trip.

[0069] The front-facing module selects the appropriate mid-field distance from the depth-of-field table based on the mid-field travel distance to serve as the testing environment. The front-facing module stores a depth-of-field table, which quantifies depth of field, clearly displaying the relationship between different aperture values, focal lengths, and depth-of-field ranges through a series of scales. Users can quickly preview the start and end positions of the depth of field under specific settings using the depth-of-field table, thereby more precisely controlling the sharpness and visual effects of the photos.

[0070] The testing module performs center MTF peak tests at the first medium-range distance, second medium-range distance, long-range distance, and close-range distance, respectively, to obtain the corresponding first medium-range code, second medium-range code, long-range code, and close-range code. The first medium-range code and second medium-range code are the instruction values ​​corresponding to the amount of movement of the voice coil motor when the MTF parsing reaches its highest point at a certain focusing distance.

[0071] The specific process of recording the code is as follows: focus on the environmental test chart at four distances: distant view, first medium view, second medium view, and close view. During focusing, the MTF will change with the sharpness. Record the command code value at the time when the MTF value is the highest.

[0072] The sensitivity calculation module calculates the motor's standard sensitivity, near-field sensitivity, and far-field sensitivity based on the stroke value and code value. Specifically: Standard sensitivity = |(Second mid-field stroke - First mid-field stroke)| / (Second mid-field code - First mid-field code); Far-field sensitivity = |(First mid-field stroke - Far-field stroke)| / (First mid-field code - Far-field code); Near-field sensitivity = |(Near-field stroke - Second mid-field stroke)| / (Near-field code - Second mid-field code).

[0073] The judgment module determines whether the foreground and background of the AF module are distributed in a linear area, and adjusts the AF module according to the judgment result.

[0074] The judgment is made based on the standard sensitivity - far-view sensitivity < judgment standard or the standard sensitivity - near-view sensitivity < judgment standard. The judgment standard is adjustable and can be initially set as standard sensitivity * 10% as the judgment standard.

[0075] This embodiment also provides a terminal, including a memory and a processor, wherein the memory stores an AF module near-far linear region distribution detection program that can run on the processor, for implementing the AF module near-far linear region distribution detection method in Embodiment 1.

[0076] The memory also stores current test results and historical test data, including test time and the AF module tested. Additionally, a display screen is provided on the terminal, allowing users to view the current test results in real time. A QR code or RFID code is affixed to the AF module. The terminal scans the QR code to obtain and record the current AF module information, along with the test time and results, and outputs the corresponding adjustment plan.

[0077] The terminal is also equipped with a prompt module, which is used to light up indicator lights, play prompt sounds, or display prompt messages on the screen. When the AF module detects that the distant or near view is not in the linear zone, it will issue a prompt to remind the staff to deal with it in time.

[0078] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any way. Other variations and modifications are possible without departing from the technical solutions described in the claims.

Claims

1. A method for detecting the linear distribution of near and far views in an AF module, characterized in that, include: S1: Select the distances corresponding to two separate trips in the total trips for both long shot and close shot to obtain the mid-shot trip; S2: Select the appropriate mid-range distance from the depth of field table based on the mid-range travel distance to use as the test environment; S3: Perform center MTF peak test on medium shot distance and near and far shot distance to obtain the corresponding code value; S4: Calculate the motor sensitivity based on the stroke value and code value, determine whether the AF module is in the linear range for near and far objects, and adjust the AF module according to the judgment result.

2. The method for detecting the linear distribution of near and far views in an AF module according to claim 1, characterized in that, S4 includes: calculating the standard sensitivity, far-field sensitivity, and near-field sensitivity of the motor based on the stroke value and code value; if the absolute value of the difference between the standard sensitivity and the far-field sensitivity is greater than or equal to the judgment standard value, then the far-field sensitivity is determined to be outside the linear region; if the absolute value of the difference between the near-field sensitivity and the standard sensitivity is greater than or equal to the judgment standard value, then the near-field sensitivity is determined to be outside the linear region.

3. The method for detecting the linear distribution of near and far views in an AF module according to claim 2, characterized in that, S4 includes: if the far-view sensitivity is less than the standard sensitivity or the near-view sensitivity is less than the standard sensitivity, then adjust the up and down rotation distribution position; if the far-view sensitivity is less than the standard sensitivity and the near-view sensitivity is less than the standard sensitivity, then reassess whether the motor stroke is sufficient or assess whether the far-view and near-view positions can be adjusted; if the far-view sensitivity is greater than the standard sensitivity, then detect whether there is adhesive residue at the bottom of the motor.

4. The method for detecting the linear distribution of near and far views in an AF module according to claim 1, characterized in that, The S3 includes: focusing the environmental test charts at long-range, medium-range, and close-range distances respectively, and obtaining the code value corresponding to each distance based on the instruction value corresponding to the amount of motor movement when the MTF parsing reaches the highest point during focusing.

5. A method for detecting the linear distribution of near and far views in an AF module according to claim 1, 2, 3, or 4, characterized in that, In the long shot and close-up shot trips, select the first medium shot trip closer to the long shot and the second medium shot trip closer to the close-up shot; select the first medium shot distance in the depth of field table based on the first medium shot trip, and select the second medium shot distance in the depth of field table based on the second medium shot trip; perform a center MTF peak test on the close-up distance to obtain the close-up code, perform a center MTF peak test on the long shot distance to obtain the long shot code, perform a center MTF peak test on the first medium shot distance to obtain the first medium shot code, and perform a center MTF peak test on the second medium shot distance to obtain the second medium shot code.

6. The method for detecting the linear distribution of near and far views in an AF module according to claim 5, characterized in that, The first mid-range distance is the sum of one-nth of the difference between the near-range distance and the far-range distance and the far-range distance.

7. The method for detecting the linear distribution of near and far views in an AF module according to claim 6, characterized in that, The first mid-range shot is half the length of the second mid-range shot.

8. The method for detecting the linear distribution of near and far views in an AF module according to claim 5, characterized in that, Obtain the first difference between the second medium shot travel and the first medium shot travel, and obtain the second difference between the second medium shot code and the first medium shot code. The standard sensitivity is the ratio of the first difference to the second difference. Obtain the third difference between the first medium shot travel and the long shot travel, obtain the fourth difference between the first medium shot code and the long shot code, and calculate the long shot sensitivity based on the ratio of the third difference and the fourth difference; obtain the fifth difference between the close shot travel and the second medium shot travel, obtain the sixth difference between the close shot code and the second medium shot code, and calculate the close shot sensitivity based on the ratio of the fifth difference and the sixth difference.

9. An AF module for detecting the linear distribution of near and far views, characterized in that, include: The trip acquisition module selects the distances corresponding to two trips from the total trips of distant and close-up views to obtain the first mid-range trip and the second mid-range trip. The front-end module selects the corresponding mid-range distance from the depth-of-field table based on the mid-range travel distance to use as the test environment; The testing module performs center MTF peak tests on mid-range and near-range distances to obtain the corresponding code values; Sensitivity calculation module calculates the motor's standard sensitivity, near-field sensitivity, and far-field sensitivity; The judgment module determines whether the foreground and background of the AF module are distributed in a linear area, and adjusts the AF module according to the judgment result.

10. A terminal, characterized in that, include: A memory and a processor, wherein the memory stores an AF module near-field linear region distribution detection program that can run on the processor, for executing the AF module near-field linear region distribution detection method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Method for increasing speed of burning AF Code value and burning equipment

    CN114385193A