Camera zoom method, device, system and storage medium

By real-time correction of the focus curve and correcting the object distance curve using the picture clarity value, the problem of blurred and unsmooth zooming process in traditional zoom tracking technology is solved, and a high real-time and smooth zooming process is achieved.

CN116208852BActive Publication Date: 2025-04-25XIAMEN MILESIGHT IOT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211087918.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-07
Publication Date
2025-04-25
Estimated Expiration
2042-09-07

AI Technical Summary

Technical Problem

Traditional zoom tracking technology can easily cause blurred pictures during the zoom process and cannot effectively deal with the problem of object distance changes and the unsmooth zoom process.

Method used

By obtaining the picture clarity value in real time, comparing the clarity value of the front and back frames, and correcting the focus curve in real time to ensure the smoothness of the zoom process. The specific steps include selecting a reference point on the initial focus object distance curve, simulating the infinite object distance curve for correction, and correcting the object distance curve according to the clarity value during the zooming process.

Benefits of technology

The zoom process is achieved with clear clarity throughout the process, improving the real-timeness of the picture, avoiding lag in the zoom process, and improving the speed and accuracy of autofocus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208852B_ABST
    Figure CN116208852B_ABST
Patent Text Reader

Abstract

The present invention provides a camera zoom method, device, system and storage medium, including selecting a number of reference points at predetermined intervals on the initial focus object distance curve of the camera for correction at different focal lengths to obtain a corrected focus object distance curve; selecting one as the object distance curve currently used by the camera, controlling the time of each movement of the zoom motor and the focus motor to be the time of one frame of image; setting the detection step number when the camera zooms, and transforming the point to be reached by the zoom motor and the focus motor in the next movement to the new object distance curve according to the detection step number; correcting the object distance curve currently used by the camera according to the object distance curve corresponding to a frame of image with a larger clarity value during the two previous and subsequent movements, and repeating the above process until the camera zooms to the target magnification. Using the above technical solution, the whole process of zooming is clear, the real-time and smoothness of the picture are improved, and the focusing speed is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of zoom tracking technology, and in particular to a camera zoom method, device, system and storage medium. Background Art

[0002] Traditional zoom tracking technology mainly includes the following problems:

[0003] 1. For similar products, the image will become blurred when the camera changes from low magnification to high magnification. In scenarios with high real-time requirements, the zoom ratio cannot be guaranteed to be clear throughout the zoom process, so it is necessary to limit the zoom ratio. Or when the zoom ratio is not limited, the image will be blurred after zooming to a high magnification, and when the focus is completed, the important information of the image has been lost.

[0004] 2. Traditional zoom tracking technology assumes that the object distance remains unchanged. When the object distance changes, it will not be able to maintain full clarity.

[0005] 3. Traditional zoom tracking technology needs to detect two positions above and below the same focus position to compare the clarity value. The zoom process is not smooth and there will be a freeze. Summary of the invention

[0006] The embodiments of the present invention provide a camera zoom method and system, which can compare the clarity values ​​of previous and next frames according to the real-time acquired picture clarity value, and correct the focus curve in real time to ensure the smoothness of the camera zoom process.

[0007] In order to achieve the above object, on the one hand, a method for changing the magnification of a camera is provided, comprising the following steps:

[0008] S1: On the initial focus object distance curve of the camera, a number of reference points are selected at predetermined intervals at different focal lengths, the actual infinite object distance curve is simulated by the reference points, and the actual infinite object distance curve and the infinite object distance curve of the lens are corrected to obtain a corrected focus object distance curve;

[0009] S2: selecting one of the corrected focus object distance curves as the object distance curve currently used by the camera, controlling the zoom motor and the focus motor to move on the object distance curve currently used by the camera, and each movement lasts for a frame of image; setting the number of detection steps when the camera changes magnification, and transforming the point to be reached by the zoom motor and the focus motor in the next movement to the new object distance curve according to the number of detection steps;

[0010] S3: Compare the clarity values ​​of a frame of image in the two movements before and after the camera zooms in S2, correct the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value, and repeat S2 to S3 until the camera zooms to the target magnification.

[0011] In a specific embodiment, the S1 specifically includes:

[0012] S101: selecting an initial focus object distance curve for a certain object distance according to the initial focus object distance curve for different object distances provided by the manufacturer when the camera leaves the factory, and selecting a number of reference points at predetermined intervals at different focal lengths, wherein the intervals are selected according to the magnification of the lens, a larger interval is selected for a low-magnification lens, and a smaller interval is selected for a high-magnification lens;

[0013] S102: using a collimator to simulate infinity, aligning a lens with the collimator, and using an autofocus algorithm to focus clearly at the positions of the plurality of reference points;

[0014] S103: simulating a true infinite object distance curve using the plurality of reference points, and then using a linear interpolation method according to the positions of the plurality of reference points to obtain the focal points on the true infinite object distance curve excluding the focal lengths corresponding to the plurality of reference points;

[0015] S104: Subtract the actual infinite object distance curve from the infinite object distance curve of the lens to obtain a difference value, and according to the initial focus object distance curves of different object distances provided by the manufacturer when the camera leaves the factory, for each initial focus object distance curve of different object distances, translate according to the difference value to obtain a corresponding corrected focus object distance curve.

[0016] In a specific embodiment, the method for setting the number of detection steps includes:

[0017] Calculate the depth of focus based on the current focal length:

[0018] The formula is

[0019] T=±2F 2 λ

[0020] Wherein, F=f / D, called the aperture coefficient of the lens, D is the aperture size of the lens, λ is the wavelength of the spectrum, and T is the number of detection steps;

[0021] Calculated according to experience:

[0022] Set different detection steps at different magnifications, the formula is:

[0023]

[0024] Where Zratio represents the current magnification of the lens, and T is the number of detection steps.

[0025] In a specific embodiment, comparing the clarity values ​​of a frame of image in two adjacent motion processes and correcting the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value specifically includes:

[0026] A PI controller is used, and the difference in clarity values ​​of a frame of image during two adjacent movements is used as the input of the PI controller to calculate the amount of object distance that needs to be switched, and the object distance curve currently used by the camera is corrected according to the amount of object distance that needs to be switched.

[0027] In a specific embodiment, comparing the clarity values ​​of a frame of image in two adjacent motion processes and correcting the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value specifically includes:

[0028] Using the method of compressing confidence intervals, the object distance curves corresponding to a frame of image in two adjacent motion processes are respectively represented as the initial upper and lower boundaries of the confidence interval. During the lens zoom process, the confidence interval is updated by comparing the corresponding clarity values, and the middle curve of the updated confidence interval is used as the object distance curve currently used by the camera.

[0029] In a specific embodiment, comparing the clarity values ​​of a frame of image in two adjacent motion processes and correcting the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value specifically includes:

[0030] According to the formula

[0031]

[0032] The change ΔC of each object distance switch is calculated, and then the object distance curve currently used by the camera is switched according to the change, where ΔFcous is the number of detection steps, ΔFV is represented by the difference in the clarity value of a frame image during the two adjacent movements, and P is the inherent parameter of the zoom camera.

[0033] In a specific embodiment, comparing the clarity values ​​of a frame of image in two adjacent motion processes and correcting the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value specifically includes:

[0034] According to the formula

[0035]

[0036] Calculate the change ΔC of each object distance switch, and then switch the object distance curve currently used by the camera according to the change; where P and K are inherent parameters of the zoom camera, Z ratio The magnification of the current lens.

[0037] On the other hand, a camera zoom system is provided, comprising:

[0038] Object distance curve correction module: configured to select a number of reference points at predetermined intervals at different focal lengths on the initial focus object distance curve of the camera, simulate the actual infinite object distance curve with the reference points, and use the actual infinite object distance curve and the infinite object distance curve of the lens to perform correction to obtain a corrected focus object distance curve;

[0039] Camera zoom detection module: configured to select one of the calibrated focus object distance curves as the object distance curve currently used by the camera, control the zoom motor and the focus motor to move on the object distance curve currently used by the camera, and the time for each movement is the time of one frame of image; set the detection step number when the camera zooms, and transform the point to be reached by the zoom motor and the focus motor in the next movement to the new object distance curve according to the detection step number;

[0040] Object distance curve switching module: configured to compare the clarity values ​​of a frame of image in the camera magnification detection module before and after the camera magnification is changed, and correct the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value, and repeatedly execute the camera magnification detection module to the object distance curve switching module until the camera is magnified to the target magnification.

[0041] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a computer processor, the camera magnification method described above is implemented.

[0042] On the other hand, a camera magnification device is provided, comprising a memory and a processor, wherein the memory stores at least one program, and the at least one program is executed by the processor to implement the camera magnification method as described above.

[0043] The above technical solution has the following technical effects:

[0044] 1. According to the real-time acquisition of picture clarity value, the clarity values ​​of the previous and next frames are compared, and the focus curve is corrected in real time, so that the whole zoom process is clear and the real-time performance of the picture is improved.

[0045] 2. After the zoom is completed, the focus motor is near the focus point, making it easier for the autofocus algorithm to find the focus and the autofocus speed is faster.

[0046] 3. During the zooming process, the object distance curve used by the system is continuously changed to be close to the object distance curve corresponding to the image with a larger clarity value, so as to continuously correct the object distance curve used until the magnification is reached, so that the zooming process is smooth, there is no need to wait for the clarity value to be obtained, and there will be no lag. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic flow chart of a camera zoom method according to an embodiment of the present invention;

[0048] Figure 2 The characteristics of the focus object distance curve of the zoom camera according to an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of a camera movement process according to an embodiment of the present invention;

[0050] Figure 4 A structural diagram of a PI controller according to another embodiment of the present invention;

[0051] Figure 5 A flow chart of a method for compressing confidence intervals according to another embodiment of the present invention;

[0052] Figure 6 The present invention is a schematic structural diagram of a camera zoom device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0053] To further illustrate the various embodiments, the present invention provides drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, a person of ordinary skill in the art should be able to understand other possible implementations and advantages of the present invention. The components in the figures are not drawn to scale, and similar component symbols are generally used to represent similar components.

[0054] The present invention will now be further described with reference to the accompanying drawings and specific implementation methods.

[0055] Embodiment 1:

[0056] Figure 1 The present invention is a flowchart of a method for changing the magnification of a camera according to an embodiment of the present invention. In this embodiment, the following steps are included:

[0057] S1: On the initial focus object distance curve of the camera, a number of reference points are selected at predetermined intervals at different focal lengths, the actual infinite object distance curve is simulated by the reference points, and the actual infinite object distance curve and the infinite object distance curve of the lens are corrected to obtain a corrected focus object distance curve;

[0058] In a specific embodiment, the S1 specifically includes:

[0059] S101: selecting an initial focus object distance curve for a certain object distance according to the initial focus object distance curve for different object distances provided by the manufacturer when the camera leaves the factory, and selecting a number of reference points at predetermined intervals at different focal lengths, wherein the intervals are selected according to the magnification of the lens, a larger interval is selected for a low-magnification lens, and a smaller interval is selected for a high-magnification lens;

[0060] S102: using a collimator to simulate infinity, aligning a lens with the collimator, and using an autofocus algorithm to focus clearly at the positions of the plurality of reference points;

[0061] S103: simulating a true infinite object distance curve using the plurality of reference points, and then using a linear interpolation method according to the positions of the plurality of reference points to obtain the focal points on the true infinite object distance curve excluding the focal lengths corresponding to the plurality of reference points;

[0062] S104: Subtract the actual infinite object distance curve from the infinite object distance curve of the lens to obtain a difference value, and according to the initial focus object distance curves of different object distances provided by the manufacturer when the camera leaves the factory, for each initial focus object distance curve of different object distances, translate according to the difference value to obtain a corresponding corrected focus object distance curve.

[0063] S2: selecting one of the corrected focus object distance curves as the object distance curve currently used by the camera, controlling the zoom motor and the focus motor to move on the object distance curve currently used by the camera, and each movement lasts for a frame of image; setting the number of detection steps when the camera changes magnification, and transforming the point to be reached by the zoom motor and the focus motor in the next movement to the new object distance curve according to the number of detection steps;

[0064] Figure 2 The characteristic of the focus object distance curve of the zoom camera according to an embodiment of the present invention is as follows: Figure 2 ,At low magnification, the positions of the focus motors at different object distances are relatively close, and at high magnification, the positions of the focus motors are relatively scattered. According to S2, when the camera changes from low magnification to high magnification, the time for controlling each movement of the zoom motor and the focus motor is the time of one frame of image, and they are located on different object distance curves before and after the movement.

[0065] Figure 3 FIG. 1 is a schematic diagram of a camera movement process according to an embodiment of the present invention. Figure 3 The system shown drives the zoom motor and the focus motor to move from P1 to P2, then from P2 to P5, and finally from P5 to P4. P1, P2, P3, and P4 are on the same object distance curve S1, and their positions are (Z1, F1), (Z2, F2), (Z3, F3), and (Z4, F4). P5 is on the object distance curve S2, and its position is (Z3, F3+T).

[0066] The method for setting the number of detection steps includes:

[0067] 1. Calculate the depth of focus based on the current focal length:

[0068] The formula is

[0069] T=±2F 2 λ

[0070] Wherein, F=f / D, called the aperture coefficient of the lens, D is the aperture size of the lens, λ is the wavelength of the spectrum, and T is the number of detection steps;

[0071] 2. Calculated according to experience:

[0072] Set different detection steps at different magnifications, the formula is:

[0073]

[0074] Where Z ratio represents the current magnification of the lens, and T is the number of detection steps.

[0075] S3: Compare the clarity values ​​of a frame of image in the two movements before and after the camera zooms in S2, correct the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value, and repeat S2 to S3 until the camera zooms to the target magnification.

[0076] like Figure 3As shown, according to S3, the camera goes from P1 to P2, P5 and finally reaches P4. Calculate the step difference between each two positions and the motor movement speed in advance. Ensure that the time required for each action is the time required for one frame of image. When the motor moves to P2, obtain the current clarity value FV1, and at this time, FV1 corresponds to the corresponding clarity value of the movement process from P1 to P2. FV1 can be expressed as the clarity value of the corresponding object distance curve S1. When the motor moves to P5, obtain the current clarity value FV2, and at this time, FV2 corresponds to the corresponding clarity value of the movement process from P2 to P5. Because this movement tends to be biased towards the object distance curve S2, FV2 can be expressed as the clarity value of the corresponding object distance curve S2. Compare the sizes of FV1 and FV2, and the larger value indicates that the current object distance is more biased towards the corresponding object distance curve.

[0077] Embodiment 2:

[0078] In a specific embodiment, the process of correcting the object distance curve currently used by the camera according to the object distance curve corresponding to a frame of image with a larger clarity value may be:

[0079] like Figure 4 The PI controller structure diagram uses the PI controller, takes the difference in clarity value of a frame image during two adjacent motion processes as the input of the PI controller, calculates the amount of object distance that needs to be switched, and corrects the object distance curve currently used by the camera according to the amount of object distance that needs to be switched.

[0080] The amount of object distance that needs to be switched is based on the following formula

[0081] ΔS(k)=ΔS(k-1)+K P *[Δe(k)-Δe(k-1)]+K I *Δe(k)

[0082] Calculate, where ΔS(k) is the amount of object distance required for this switch, ΔS(k-1) is the amount of object distance switched last time, Δe(k) is the current FV value deviation, and Δe(k-1) is the previous FV value deviation. K P is the proportionality coefficient, K I The differential coefficient needs to be adjusted before use.

[0083] Embodiment three:

[0084] In a specific embodiment, the process of correcting the object distance curve currently used by the camera according to the object distance curve corresponding to a frame of image with a larger clarity value may be:

[0085] like Figure 5The flow chart of the compressed confidence interval method is as follows: using the compressed confidence interval method, the object distance curves corresponding to a frame of image in two adjacent motion processes are represented as the initial upper and lower boundaries of the confidence interval respectively; during the lens zooming process, the confidence interval is updated by comparing the corresponding clarity values, and the middle curve of the updated confidence interval is used as the object distance curve currently used by the camera.

[0086] According to the above method of compressing the confidence interval, Figure 3 In the figure, curves S1 and S5 represent the initial upper and lower boundaries of the confidence interval, respectively. Assume that when the zoom reaches position P, after comparing the clarity values, it is determined that the object distance curve needs to move closer to S5. Then the upper boundary of the confidence interval is updated from S1 to S2 to compress the confidence interval. Subsequently, the zoom is continued according to the middle curve S4 between S2 and S5, and the confidence interval is adjusted in the same way during the subsequent zoom process. The update method of the upper and lower boundaries of the confidence interval is shown in the following formula:

[0087]

[0088]

[0089] C use =(C up +C down ) / 2

[0090] Among them, C up The confidence interval boundaries on the table, C down is the lower confidence interval boundary. C use This is the object distance curve used by the current system. α is a coefficient between 0 and 1. It can be adjusted according to different lenses.

[0091] Embodiment 4:

[0092] In a specific embodiment, the process of correcting the object distance curve currently used by the camera according to the object distance curve corresponding to a frame of image with a larger clarity value may be:

[0093] According to the formula

[0094]

[0095] Calculate the change ΔC of each object distance switch, and then switch the object distance curve currently used by the camera according to the change, where ΔFcous is the number of detection steps, ΔFV is expressed as the difference in the clarity value of a frame image during the two adjacent movements, P is the inherent parameter of the zoom camera, and the adjustment coefficients of cameras with different magnifications may be different.

[0096] Embodiment five:

[0097] In a specific embodiment, the process of correcting the object distance curve currently used by the camera according to the object distance curve corresponding to a frame of image with a larger clarity value may be:

[0098] According to the formula

[0099]

[0100] Calculate the change ΔC of each object distance switch, and then switch the object distance curve currently used by the camera according to the change; where P and K are inherent parameters of the zoom camera, and the adjustment coefficients of cameras with different magnifications can be different, Z ratio The magnification of the current lens.

[0101] Embodiment six:

[0102] The present invention also provides a camera zoom device, such as Figure 6 As shown, the device includes a processor 601, a memory 602, a bus 603, and a computer program stored in the memory 602 and executable on the processor 601. The processor 601 includes one or more processing cores. The memory 602 is connected to the processor 601 via the bus 603. The memory 602 is used to store program instructions. When the processor executes the computer program, the steps in the above method embodiment of the first embodiment of the present invention are implemented.

[0103] Further, as an executable solution, the camera zoom device may be a computer unit, which may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The computer unit may include, but is not limited to, a processor and a memory. Those skilled in the art may understand that the composition structure of the above-mentioned computer unit is only an example of a computer unit and does not constitute a limitation on the computer unit, and may include more or less components than the above, or a combination of certain components, or different components. For example, the computer unit may also include input and output devices, network access devices, buses, etc., which are not limited in the embodiments of the present invention.

[0104] Further, as an executable solution, the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the computer unit, and various interfaces and lines are used to connect the various parts of the entire computer unit.

[0105] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the computer unit by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0106] Embodiment seven:

[0107] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method in the embodiment of the present invention are implemented.

[0108] If the module / unit integrated in the computer unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory) and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.

[0109] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.

Claims

1. A camera zoom method, characterized in that: The following steps are involved: S1: On the initial focus object distance curve of the camera, a number of reference points are selected at predetermined intervals at different focal lengths, the actual infinite object distance curve is simulated by the reference points, and the actual infinite object distance curve and the infinite object distance curve of the lens are corrected to obtain a corrected focus object distance curve; S2: selecting one of the corrected focus object distance curves as the object distance curve currently used by the camera, controlling the zoom motor and the focus motor to move on the object distance curve currently used by the camera, and each movement lasts for a frame of image; setting the number of detection steps when the camera changes magnification, and transforming the point to be reached by the zoom motor and the focus motor in the next movement to the new object distance curve according to the number of detection steps; S3: Compare the clarity values ​​of a frame of image in the two movements before and after the camera zooms in S2, and correct the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value, and repeat S2 to S3 until the camera zooms to the target magnification; S1 specifically includes: S101: selecting an initial focus object distance curve for a certain object distance according to initial focus object distance curves for different object distances provided by the manufacturer when the camera leaves the factory, and selecting a number of reference points at predetermined intervals at different focal lengths, wherein the intervals are selected according to the magnification of the lens; S102: using a collimator to simulate infinity, aligning a lens with the collimator, and using an autofocus algorithm to focus clearly at the positions of the plurality of reference points; S103: simulating a true infinite object distance curve using the plurality of reference points, and then using a linear interpolation method according to the positions of the plurality of reference points to obtain the focal points on the true infinite object distance curve excluding the focal lengths corresponding to the plurality of reference points; S104: Subtract the actual infinite object distance curve from the infinite object distance curve of the lens to obtain a difference value, and according to the initial focus object distance curves of different object distances provided by the manufacturer when the camera leaves the factory, for each initial focus object distance curve of different object distances, translate according to the difference value to obtain a corresponding corrected focus object distance curve.

2. The method according to claim 1, characterized in that The method for setting the number of detection steps includes: Calculate the depth of focus based on the current focal length: The formula is T = ± 2F 2 λ Wherein, F=f / D, called the aperture coefficient of the lens, D is the aperture size of the lens, λ is the wavelength of the spectrum, and T is the number of detection steps; Calculated according to experience: Set different detection steps at different magnifications, the formula is: Where Z ratio represents the current magnification of the lens, and T is the number of detection steps.

3. The method according to claim 1, characterized in that Comparing the clarity values ​​of a frame of image in two adjacent motion processes, and correcting the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value, specifically includes: A PI controller is used, and the difference in clarity values ​​of a frame of image during two adjacent movements is used as the input of the PI controller to calculate the amount of object distance that needs to be switched, and the object distance curve currently used by the camera is corrected according to the amount of object distance that needs to be switched.

4. The method according to claim 1, characterized in that: Comparing the clarity values ​​of a frame of image in two adjacent motion processes, and correcting the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value, specifically includes: Using the method of compressing confidence intervals, the object distance curves corresponding to a frame of image in two adjacent motion processes are respectively represented as the initial upper and lower boundaries of the confidence interval. During the lens zoom process, the confidence interval is updated by comparing the corresponding clarity values, and the middle curve of the updated confidence interval is used as the object distance curve currently used by the camera.

5. The method according to claim 1, characterized in that Comparing the clarity values ​​of a frame of image in two adjacent motion processes, and correcting the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value, specifically includes: According to the formula The change ΔC of each object distance switch is calculated, and then the object distance curve currently used by the camera is switched according to the change, where ΔFcous is the number of detection steps, ΔFV is represented by the difference in the clarity value of a frame image during the two adjacent movements, and P is the inherent parameter of the zoom camera.

6. The method according to claim 1, characterized in that Comparing the clarity values ​​of a frame of image in two adjacent motion processes, and correcting the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value, specifically includes: According to the formula Calculate the change ΔC of each object distance switch, and then switch the object distance curve currently used by the camera according to the change; where P and K are inherent parameters of the zoom camera, Z ratio The magnification of the current lens.

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

8. A camera zoom system, characterized in that: include: Object distance curve correction module: configured to select a number of reference points at predetermined intervals at different focal lengths on the initial focus object distance curve of the camera, simulate the actual infinite object distance curve with the reference points, and use the actual infinite object distance curve and the infinite object distance curve of the lens to perform correction to obtain a corrected focus object distance curve; Camera zoom detection module: configured to select one of the calibrated focus object distance curves as the object distance curve currently used by the camera, control the zoom motor and the focus motor to move on the object distance curve currently used by the camera, and the time for each movement is the time of one frame of image; set the detection step number when the camera zooms, and transform the point to be reached by the zoom motor and the focus motor in the next movement to the new object distance curve according to the detection step number; The object distance curve switching module is configured to compare the clarity values ​​of a frame of image in the camera zoom detection module before and after the camera zooms, and to correct the object distance curve currently used by the camera according to the object distance curve corresponding to the frame of image with a larger clarity value, and to repeatedly execute the camera zoom detection module to the object distance curve switching module until the camera zooms to the target magnification; The method of using the actual infinite object distance curve and the infinite object distance curve of the lens to perform correction to obtain a corrected focus object distance curve includes: S101: selecting an initial focus object distance curve for a certain object distance according to initial focus object distance curves for different object distances provided by the manufacturer when the camera leaves the factory, and selecting a number of reference points at predetermined intervals at different focal lengths, wherein the intervals are selected according to the magnification of the lens; S102: using a collimator to simulate infinity, aligning a lens with the collimator, and using an autofocus algorithm to focus clearly at the positions of the plurality of reference points; S103: simulating a true infinite object distance curve using the plurality of reference points, and then using a linear interpolation method according to the positions of the plurality of reference points to obtain the focal points on the true infinite object distance curve excluding the focal lengths corresponding to the plurality of reference points; S104: Subtract the actual infinite object distance curve from the infinite object distance curve of the lens to obtain a difference value, and according to the initial focus object distance curves of different object distances provided by the manufacturer when the camera leaves the factory, for each initial focus object distance curve of different object distances, translate according to the difference value to obtain a corresponding corrected focus object distance curve.

9. A camera zoom device, characterized in that: The method comprises a memory and a processor, wherein the memory stores at least one program, and the at least one program is executed by the processor to implement the camera zoom method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Zoom focusing method based on image analysis

    CN110933320A