Lens position adjusting method and device, electronic equipment and readable storage medium

By obtaining the jitter position deviation of the lens during image shooting and performing motor drive compensation, the problem of poor optical anti-shake performance in traditional technology is solved, and the image quality is significantly improved.

CN119316713APending Publication Date: 2025-01-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411460079.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In traditional technology, optical anti-shake performance is not excellent, which makes it difficult to effectively solve the problem of blurring photos.

Method used

By obtaining the jitter position deviation of the lens during image shooting, and comparing the deviation and adjustment threshold value, the motor drives the lens for motion compensation to move the lens to an ideal position, optimizing optical anti-shake performance.

Benefits of technology

It effectively reduces the impact of lens jitter on image quality, improves the optimization performance of optical anti-shake, and optimizes the image quality captured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316713A_ABST
    Figure CN119316713A_ABST
Patent Text Reader

Abstract

The invention relates to a lens position adjusting method and device, electronic equipment and a readable storage medium. The method comprises the steps that in the image shooting process, the jitter position deviation of a lens is obtained, and the jitter position deviation is the deviation between the ideal position of the lens and the actual position of the lens; and in response to the jitter position deviation greater than an adjustment threshold, controlling a motor to drive the lens to perform motion compensation so as to move the lens to the ideal position. By adopting the method, the optical anti-vibration performance can be optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of imaging technology, and in particular to a lens position adjustment method, device, electronic device and readable storage medium. Background Art

[0002] With the development of camera module technology, more and more terminal devices have the function of taking photos. However, when using the terminal device, the operator may encounter the problem of blurry photos due to shaking. Therefore, it is necessary to compensate for the optical path where hand shaking occurs, so as to achieve the effect of reducing the blur of photos.

[0003] In traditional technology, optical image stabilization is mainly achieved by simulating and evaluating the fluctuation of the lens in advance, and improving the motor structure of the camera module to compensate for the optical path caused by hand shake.

[0004] However, conventional technologies may have the problem of poor optical image stabilization performance. Summary of the invention

[0005] The embodiments of the present application provide a lens position adjustment method, device, electronic device and readable storage medium, which can optimize the performance of optical image stabilization.

[0006] In a first aspect, an embodiment of the present application provides a lens position adjustment method, comprising:

[0007] During the image capture process, obtaining a jitter position deviation of the lens, wherein the jitter position deviation is a deviation between an ideal position of the lens and an actual position of the lens;

[0008] In response to the jitter position deviation being greater than an adjustment threshold, a motor is controlled to drive the lens to perform motion compensation so as to move the lens to the ideal position.

[0009] In a second aspect, an embodiment of the present application provides a lens position adjustment device, comprising:

[0010] A first acquisition module is used to acquire a jitter position deviation of the lens during image capture, wherein the jitter position deviation is a deviation between an ideal position of the lens and an actual position of the lens;

[0011] The control module is used for controlling the motor to drive the lens to perform motion compensation in response to the jitter position deviation being greater than an adjustment threshold, so as to move the lens to the ideal position.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the lens position adjustment method described in the first aspect.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the lens position adjustment method as described in the first aspect are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the lens position adjustment method as described in the first aspect.

[0015] The above-mentioned lens position adjustment method, device, electronic device and readable storage medium can further obtain the comparison result of the lens jitter position deviation and the adjustment threshold by obtaining the jitter position deviation between the ideal position of the lens and the actual position of the lens during the image capture process, so that during the image capture process, it can be determined whether the lens has undergone a large degree of jitter based on the comparison result of the lens jitter position deviation and the adjustment threshold, so that when the lens jitter position deviation is greater than the adjustment threshold, it can be determined that the lens has undergone a large degree of jitter and needs to perform position compensation on the lens, and in response to the jitter position deviation being greater than the adjustment threshold, the motor is controlled to drive the lens for motion compensation to move the lens to the ideal position, so that the blur of the captured image caused by lens jitter can be optimized during the image capture process. Compared with the method of improving the motor structure by simulating and evaluating the lens fluctuation in advance in the traditional technology, this method can optimize the captured image quality during the image capture process and improve the optimization performance of optical image stabilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] FIG1 is a flow chart of a lens position adjustment method according to an embodiment;

[0018] FIG2 is a flow chart of a lens position adjustment method according to another embodiment;

[0019] FIG3 is a flow chart of a lens position adjustment method according to another embodiment;

[0020] FIG4 is a flow chart of a lens position adjustment method according to another embodiment;

[0021] FIG5 is a flow chart of a lens position adjustment method according to another embodiment;

[0022] FIG6 is a flow chart of a lens position adjustment method according to an embodiment;

[0023] FIG7 is a structural block diagram of a lens position adjustment device in one embodiment;

[0024] FIG8 is a structural block diagram of a lens position adjustment device in another embodiment;

[0025] FIG9 is a structural block diagram of a lens position adjustment device in another embodiment;

[0026] FIG10 is a structural block diagram of a lens position adjustment device in another embodiment;

[0027] FIG11 is a structural block diagram of a lens position adjustment device in another embodiment;

[0028] FIG. 12 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0030] In one embodiment, as shown in FIG1 , a lens position adjustment method is provided. This embodiment is described by taking the method applied to an electronic device as an example. It is understandable that the method can also be applied to a server, and can also be applied to a system including an electronic device and a server, and is implemented through the interaction between the electronic device and the server. In this embodiment, the method includes the following steps:

[0031] S201, during image capture, obtaining a jitter position deviation of a lens, wherein the jitter position deviation is a deviation between an ideal position of the lens and an actual position of the lens.

[0032] The ideal position of the lens is the position where the lens should be located corresponding to the shooting angle of the lens, and the actual position of the lens is the position of the lens detected by the displacement sensor during the image shooting process.

[0033] In real life, when a user uses an electronic device to take photos, due to the user's misoperation, for example, the user's hand shakes when holding the electronic device, or the hand is hit when holding the electronic device, etc., the position of the lens may move, resulting in a deviation from the ideal position corresponding to the shooting angle of the lens, thereby causing the photographed photo to be blurred. In this embodiment, before performing optical image stabilization on the electronic device, it is necessary to first obtain the jitter position deviation between the ideal position of the lens and the actual position of the lens caused by the user's misoperation.

[0034] Typically, the processor of an electronic device can obtain data collected by each sensor in the electronic device through an Inter-Integrated Circuit (I2C) bus, and process the data collected by each sensor. Therefore, in this embodiment, as an optional implementation, the processor of the electronic device can obtain the jitter position deviation of the lens through a displacement sensor, or, as another optional implementation, the processor of the electronic device can determine the ideal position of the lens corresponding to the current shooting angle, and obtain the actual position of the lens through the displacement sensor, and obtain the jitter position deviation of the lens based on the ideal position of the lens and the obtained actual position of the lens.

[0035] S202 , in response to the jitter position deviation being greater than the adjustment threshold, controlling the motor to drive the lens to perform motion compensation to move the lens to an ideal position.

[0036] It should be noted that when the lens is in a stationary state, the position of the lens may fluctuate in the stationary state due to the noise of the motor's driving signal when the motor is driving the lens to move. In this embodiment, the electronic device may obtain the adjustment threshold value based on the fluctuation peak value in the data of the position fluctuation of the lens in the stationary state. For example, the electronic device may determine the average of the fluctuation peak values ​​in the data of the position fluctuation of the lens in the stationary state as the adjustment threshold value.

[0037] Optionally, in this embodiment, the electronic device may compare the jitter position deviation of the lens with an adjustment threshold to determine whether the jitter position deviation of the lens is greater than the adjustment threshold. If the electronic device determines that the jitter position deviation of the lens is greater than the adjustment threshold, it means that the lens jitter is relatively serious, and it is necessary to control the motor to drive the lens for motion compensation in response to the jitter position deviation of the lens being greater than the adjustment threshold, so as to move the lens to the above-mentioned ideal position to avoid the problem of blurred captured images due to lens jitter.

[0038] In addition, it should be noted that by simulating the method provided in this embodiment and obtaining a change curve of the actual position of the lens during image capture, it can be found that the lens position adjustment method provided in this embodiment can reduce the fluctuation range of the actual position of the lens, and can effectively reduce the influence of the jitter position deviation of the lens on the optical image stabilization.

[0039] In the above-mentioned lens position adjustment method, during the image shooting process, by obtaining the jitter position deviation between the ideal position of the lens and the actual position of the lens, the comparison result of the jitter position deviation of the lens and the adjustment threshold can be further obtained, so that during the image shooting process, it can be determined whether the lens has undergone a large degree of jitter according to the comparison result of the jitter position deviation of the lens and the adjustment threshold, so that when the jitter position deviation of the lens is greater than the adjustment threshold, it can be determined that the lens has undergone a large degree of jitter and needs to perform position compensation on the lens, and in response to the jitter position deviation being greater than the adjustment threshold, the motor is controlled to drive the lens for motion compensation to move the lens to the ideal position, so that the blur of the captured image caused by lens jitter can be optimized during the image shooting process. Compared with the method of improving the motor structure by simulating and evaluating the lens fluctuation in advance in the traditional technology, this method can optimize the captured image quality during the image shooting process and improve the optimization performance of optical image stabilization.

[0040] In this embodiment, the specific process of controlling the motor to drive the lens to perform motion compensation so as to move the lens to an ideal position is described in detail. In one embodiment, as shown in FIG. 2 , the above S202 includes:

[0041] S301, generating a driving signal according to the jitter position deviation.

[0042] Optionally, in this embodiment, after the processor of the electronic device obtains the above-mentioned lens shake position deviation, it can generate a driving signal according to the lens shake position deviation, that is, the generated driving signal can carry the lens shake position deviation information.

[0043] S302, controlling the motor to drive the lens to perform motion compensation according to the driving signal, so as to move the lens to an ideal position.

[0044] In this embodiment, the processor of the electronic device can control the motor to drive the lens to move for motion compensation according to the generated driving signal, so as to move the lens to the above-mentioned ideal position.

[0045] In this embodiment, if the jitter position deviation of the lens is greater than the adjustment threshold, it means that the lens has experienced relatively serious jitter. In this case, a driving signal can be generated according to the jitter position deviation of the lens, and the motor can be controlled according to the driving signal to drive the lens for motion compensation to move the lens to an ideal position, thereby avoiding the impact of relatively serious jitter of the lens on the quality of the captured image, optimizing the quality of the captured image, and improving the optical image stabilization performance of the electronic device.

[0046] The core point of optical image stabilization in the embodiment of the present application is to compare the jitter position deviation of the lens with the adjustment threshold to determine whether it is necessary to control the motor to drive the lens for motion compensation to move the lens to the ideal position. Therefore, the determination of the adjustment threshold plays an important role in the entire optical image stabilization optimization. In this embodiment, the method for determining the above adjustment threshold is explained in detail. In one embodiment, as shown in FIG3 , the method for determining the above adjustment threshold includes:

[0047] S401, obtaining a fluctuation curve corresponding to the position fluctuation of the lens in a static state.

[0048] It is understandable that the position fluctuation of the lens in a stationary state may be caused by the noise of the motor driving signal. In this embodiment, the electronic device can obtain the position fluctuation data of the lens in a stationary state through a displacement sensor, and generate a fluctuation curve corresponding to the position fluctuation of the lens in a stationary state based on the obtained position fluctuation data of the lens in a stationary state.

[0049] S402, determining a fluctuation peak value according to the fluctuation curve.

[0050] Optionally, in this embodiment, the electronic device can determine the peaks and troughs of the fluctuation curve corresponding to the position fluctuation of the lens in a stationary state, determine the peak value of the fluctuation curve based on the peaks and troughs of the fluctuation curve, and then determine the fluctuation peak value corresponding to the above fluctuation curve according to the peak of the fluctuation curve.

[0051] S403: Determine an adjustment threshold according to the fluctuation peak value and a preset adjustment coefficient.

[0052] The preset adjustment coefficient has a value range of 0-1. The larger the adjustment coefficient is, the greater the optimization of the jitter position deviation is. The adjustment coefficients corresponding to different motor structures are also different. In this embodiment, the value of the preset adjustment coefficient can be determined according to the structure of the above motor. As a preferred method, the optimal value of the preset adjustment coefficient is generally 0.5-0.8.

[0053] In this embodiment, as an optional implementation, the electronic device may determine the product value of the determined fluctuation peak value and the preset adjustment coefficient as the above adjustment threshold.

[0054] In the present embodiment, the process by which the electronic device acquires the fluctuation curve corresponding to the position fluctuation of the lens in a stationary state is relatively simple, and the fluctuation curve corresponding to the position fluctuation of the lens in a stationary state can be acquired relatively quickly, so that the fluctuation peak value can be quickly determined based on the acquired fluctuation curve, and then the adjustment threshold can be quickly determined based on the determined fluctuation peak value and the preset adjustment coefficient, thereby ensuring the efficiency of determining the adjustment threshold; in addition, since the adjustment threshold is acquired based on the fluctuation curve corresponding to the position fluctuation of the lens in a stationary state, the determination of the adjustment threshold takes into account the influence of the noise of the motor driving signal on the image capturing process, thereby accurately determining whether it is necessary to control the motor to drive the lens for position compensation based on the determined adjustment threshold and the jitter position deviation between the ideal position of the lens and the actual position of the lens during the image capturing process, thereby ensuring the optimized performance of optical image stabilization.

[0055] In this embodiment, the specific process of determining the fluctuation peak value according to the fluctuation curve will be described in detail. In one embodiment, as shown in FIG4 , the above S402 includes:

[0056] S501, performing filtering processing on the peak value of the fluctuation curve to obtain a filtered fluctuation curve.

[0057] In this embodiment, the frequency of occurrence of the peak value of the fluctuation curve corresponding to the position fluctuation of the lens in a stationary state can be first determined, and then the peak value of the fluctuation curve can be filtered according to the frequency of occurrence of the peak value to obtain a filtered fluctuation curve. Optionally, in this embodiment, the electronic device can perform defect filtering on the peak value of the fluctuation curve according to the frequency of occurrence of the peak value of the fluctuation curve to obtain a filtered fluctuation curve.

[0058] S502, performing curve fitting processing on the filtered fluctuation curve to determine a fitted fluctuation curve.

[0059] Optionally, in this embodiment, after the electronic device filters the peak value of the fluctuation curve corresponding to the position fluctuation of the lens in a static state, it can perform curve fitting processing on the filtered fluctuation curve using a linear fitting method to determine the fitted fluctuation curve.

[0060] S503, determining a peak value from the fitted fluctuation curve, and using the determined peak value as a fluctuation peak value.

[0061] In this embodiment, the electronic device can determine the peak in the fitted fluctuation curve, determine the peak value in the fitted fluctuation curve according to the value corresponding to the peak in the fitted fluctuation curve, and determine the determined peak value as the above-mentioned fluctuation peak value.

[0062] In this embodiment, filtering processing is first performed on the curve peak of the fluctuation curve corresponding to the position fluctuation of the lens in a static state, so that the peak with relatively large changes in the fluctuation curve can be filtered out, and then the filtered fluctuation curve is subjected to curve fitting processing to determine the fitted fluctuation curve. A peak is determined from the fitted fluctuation curve as the fluctuation peak, which can avoid the determined fluctuation peak being the extreme position fluctuation of the lens in a static state, making the determined fluctuation peak more universal, and further making the adjustment threshold determined according to the fluctuation peak and the preset adjustment coefficient more accurate, thereby ensuring the accuracy of the determined adjustment threshold.

[0063] In the above scenario of obtaining the jitter position deviation of the lens, the electronic device can determine the jitter position deviation of the lens according to the acquisition angle of the lens and the data collected by the position sensor of the lens. In one embodiment, as shown in FIG5 , the above S201 includes:

[0064] S601, obtaining the acquisition angle of the lens.

[0065] In this embodiment, after the angle sensor of the lens collects the angle data of the lens, the collected angle data can be sent to the processor of the electronic device through the I2C bus. The processor of the electronic device can determine the collection angle of the lens based on the data collected by the angle sensor of the lens.

[0066] S602, determining an ideal position of the lens according to the acquisition angle.

[0067] In this embodiment, a correspondence between different acquisition angles and the ideal position of the lens corresponding to each acquisition angle can be established in advance. In the actual process of capturing images, after the acquisition angle of the lens is obtained, the ideal position of the lens corresponding to the acquisition angle of the lens can be determined from the pre-established correspondence.

[0068] S603: Determine the actual position of the lens according to the data collected by the lens position sensor.

[0069] In this embodiment, the lens position sensor can collect the position of the lens in real time and send the collected data to the processor of the electronic device. Therefore, the processor of the electronic device can determine the actual position of the lens based on the data collected by the lens position sensor in real time.

[0070] S604: Determine the jitter position deviation according to the ideal position and the actual position.

[0071] In this embodiment, after the electronic device determines the actual position of the lens and the ideal position of the lens corresponding to the acquisition angle, it can obtain the difference between the actual position of the lens and the ideal position of the lens and determine the difference as the jitter position deviation of the lens.

[0072] In this embodiment, the electronic device can relatively quickly acquire the acquisition angle of the lens and the data acquired by the position sensor of the lens, so that the ideal position of the lens can be quickly determined according to the acquisition angle of the lens, and the actual position of the lens can be quickly determined according to the data acquired by the position sensor of the lens, and then the jitter position deviation of the lens can be quickly determined according to the ideal position and actual position of the lens, thereby ensuring the efficiency of acquiring the jitter position deviation of the lens, and then ensuring the efficiency of optimizing the performance of optical image stabilization of the electronic device.

[0073] To facilitate understanding by those skilled in the art, the lens position adjustment method provided by the present disclosure is described in detail below. As shown in FIG6 , the method may include:

[0074] S1, during the image capture process, obtaining the acquisition angle of the lens.

[0075] S2, determining the ideal position of the lens according to the acquisition angle of the lens.

[0076] S3, determining the actual position of the lens according to the data collected by the lens position sensor.

[0077] S4, determining the jitter position deviation of the lens according to the ideal position of the lens and the actual position of the lens.

[0078] S5, obtaining a fluctuation curve corresponding to the position fluctuation of the lens in a static state.

[0079] S6, performing filtering processing on the peak value of the fluctuation curve to obtain a filtered fluctuation curve.

[0080] S7, performing curve fitting processing on the filtered fluctuation curve to determine the fitted fluctuation curve.

[0081] S8, determining a peak value from the fitted fluctuation curve, and using the determined peak value as the fluctuation peak value.

[0082] S9, determining an adjustment threshold value according to the fluctuation peak value and a preset adjustment coefficient; wherein the adjustment coefficient is determined according to the structure of the motor.

[0083] S10, if the jitter position deviation of the lens is greater than the adjustment threshold, a driving signal is generated according to the jitter position deviation, and a motor is controlled according to the driving signal to drive the lens to perform motion compensation so as to move the lens to an ideal position.

[0084] S11: If the jitter position deviation of the lens is less than or equal to the adjustment threshold, the position of the lens is maintained at the current actual position.

[0085] It should be noted that for the description of the above steps, reference may be made to the relevant description in the above embodiment, and the effects are similar, so this embodiment will not be repeated here.

[0086] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0087] Based on the same inventive concept, the embodiment of the present application also provides a lens position adjustment device for implementing the lens position adjustment method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more lens position adjustment device embodiments provided below can refer to the limitations of the lens position adjustment method above, and will not be repeated here.

[0088] In one embodiment, as shown in FIG. 7 , a lens position adjustment device is provided, comprising: a first acquisition module 10 and a control module 11, wherein:

[0089] A first acquisition module 10 is used to acquire a jitter position deviation of the lens during image capture, wherein the jitter position deviation is a deviation between an ideal position of the lens and an actual position of the lens;

[0090] The control module 11 is used for controlling the motor to drive the lens to perform motion compensation in response to the jitter position deviation being greater than the adjustment threshold, so as to move the lens to an ideal position.

[0091] The lens position adjustment device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0092] Based on the above embodiment, as shown in FIG8 , optionally, the above control module 11 includes: a generating unit 111 and a control unit 112, wherein:

[0093] The generating unit 111 is used to generate a driving signal according to the shaking position deviation.

[0094] The control unit 112 is used to control the motor to drive the lens to perform motion compensation according to the driving signal, so as to move the lens to an ideal position.

[0095] The lens position adjustment device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0096] On the basis of the above embodiment, as shown in FIG9 , optionally, the above device further includes: a second acquisition module 12, a first determination module 13 and a second determination module 14, wherein:

[0097] The third acquisition module 12 is used to acquire a fluctuation curve corresponding to the position fluctuation of the lens in a static state.

[0098] The first determining module 13 is used to determine the fluctuation peak value according to the fluctuation curve.

[0099] The second determination module 14 is used to determine the adjustment threshold according to the fluctuation peak value and the preset adjustment coefficient.

[0100] Optionally, the preset adjustment coefficient is determined according to the structure of the motor.

[0101] The lens position adjustment device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0102] On the basis of the above embodiment, as shown in FIG10 , optionally, the above first determination module 13 includes: a first processing unit 131, a second processing unit 132 and a first determination unit 133, wherein:

[0103] The first processing unit 131 is used to perform filtering processing on the peak value of the fluctuation curve to obtain a filtered fluctuation curve.

[0104] The second processing unit 132 is used to perform curve fitting processing on the filtered fluctuation curve to determine a fitted fluctuation curve.

[0105] The first determining unit 133 is used to determine a peak value from the fitted fluctuation curve, and use the determined peak value as a fluctuation peak value.

[0106] The lens position adjustment device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0107] On the basis of the above embodiment, as shown in FIG11 , optionally, the above first acquisition module 10 includes: an acquisition unit 101, a second determination unit 102, a third determination unit 103 and a fourth determination unit 104, wherein:

[0108] The acquisition unit 101 is used to acquire the acquisition angle of the lens.

[0109] The second determining unit 102 is used to determine an ideal position of the lens according to the acquisition angle.

[0110] The third determining unit 103 is used to determine the actual position of the lens according to the data collected by the position sensor of the lens.

[0111] The fourth determining unit 104 is used to determine the jitter position deviation according to the ideal position and the actual position.

[0112] The lens position adjustment device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0113] Each module in the above lens position adjustment device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0114] In one embodiment, an electronic device is provided, and its internal structure diagram can be shown in FIG12. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a lens position adjustment method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0115] Those skilled in the art will understand that the structure shown in FIG. 12 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0116] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0117] During the image capture process, a jitter position deviation of the lens is obtained, wherein the jitter position deviation is a deviation between an ideal position of the lens and an actual position of the lens;

[0118] In response to the jitter position deviation being greater than the adjustment threshold, the motor is controlled to drive the lens to perform motion compensation so as to move the lens to the ideal position.

[0119] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0120] Generate a driving signal according to the jitter position deviation;

[0121] The motor is controlled according to the driving signal to drive the lens to perform motion compensation so as to move the lens to an ideal position.

[0122] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0123] Obtaining a fluctuation curve corresponding to the position fluctuation of the lens in a static state;

[0124] Determine the fluctuation peak value based on the fluctuation curve;

[0125] The adjustment threshold is determined based on the fluctuation peak value and the preset adjustment coefficient.

[0126] Optionally, the adjustment factor is determined according to the structure of the motor.

[0127] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0128] Performing filtering processing on the peak value of the fluctuation curve to obtain a filtered fluctuation curve;

[0129] Performing curve fitting processing on the filtered fluctuation curve to determine the fitted fluctuation curve;

[0130] A peak value is determined from the fitted fluctuation curve, and the determined peak value is used as the fluctuation peak value.

[0131] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0132] Get the acquisition angle of the lens;

[0133] Determine the ideal position of the lens based on the acquisition angle;

[0134] Determine the actual position of the lens according to the data collected by the position sensor of the lens;

[0135] Based on the ideal position and the actual position, the jitter position deviation is determined.

[0136] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0137] During the image capture process, a jitter position deviation of the lens is obtained, wherein the jitter position deviation is a deviation between an ideal position of the lens and an actual position of the lens;

[0138] In response to the jitter position deviation being greater than the adjustment threshold, the motor is controlled to drive the lens to perform motion compensation so as to move the lens to an ideal position.

[0139] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0140] Generate a driving signal according to the jitter position deviation;

[0141] The motor is controlled according to the driving signal to drive the lens to perform motion compensation so as to move the lens to an ideal position.

[0142] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0143] Obtaining a fluctuation curve corresponding to the position fluctuation of the lens in a static state;

[0144] Determine the fluctuation peak value based on the fluctuation curve;

[0145] The adjustment threshold is determined based on the fluctuation peak value and the preset adjustment coefficient.

[0146] Optionally, the adjustment factor is determined according to the structure of the motor.

[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0148] Performing filtering processing on the peak value of the fluctuation curve to obtain a filtered fluctuation curve;

[0149] Performing curve fitting processing on the filtered fluctuation curve to determine the fitted fluctuation curve;

[0150] A peak value is determined from the fitted fluctuation curve, and the determined peak value is used as the fluctuation peak value.

[0151] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0152] Get the acquisition angle of the lens;

[0153] Determine the ideal position of the lens based on the acquisition angle;

[0154] Determine the actual position of the lens according to the data collected by the position sensor of the lens;

[0155] Based on the ideal position and the actual position, the jitter position deviation is determined.

[0156] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0157] During the image capture process, a jitter position deviation of the lens is obtained, wherein the jitter position deviation is a deviation between an ideal position of the lens and an actual position of the lens;

[0158] In response to the jitter position deviation being greater than the adjustment threshold, the motor is controlled to drive the lens to perform motion compensation so as to move the lens to an ideal position.

[0159] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0160] Generate a driving signal according to the jitter position deviation;

[0161] The motor is controlled according to the driving signal to drive the lens to perform motion compensation so as to move the lens to an ideal position.

[0162] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0163] Obtaining a fluctuation curve corresponding to the position fluctuation of the lens in a static state;

[0164] Determine the fluctuation peak value based on the fluctuation curve;

[0165] The adjustment threshold is determined based on the fluctuation peak value and the preset adjustment coefficient.

[0166] Optionally, the adjustment factor is determined according to the structure of the motor.

[0167] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0168] Performing filtering processing on the peak value of the fluctuation curve to obtain a filtered fluctuation curve;

[0169] Performing curve fitting processing on the filtered fluctuation curve to determine the fitted fluctuation curve;

[0170] A peak value is determined from the fitted fluctuation curve, and the determined peak value is used as the fluctuation peak value.

[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0172] Get the acquisition angle of the lens;

[0173] Determine the ideal position of the lens based on the acquisition angle;

[0174] Determine the actual position of the lens according to the data collected by the position sensor of the lens;

[0175] Based on the ideal position and the actual position, the jitter position deviation is determined.

[0176] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0177] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0178] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A lens position adjustment method, characterized in that: include: During the image capture process, obtaining a jitter position deviation of the lens, wherein the jitter position deviation is a deviation between an ideal position of the lens and an actual position of the lens; In response to the jitter position deviation being greater than an adjustment threshold, a motor is controlled to drive the lens to perform motion compensation so as to move the lens to the ideal position.

2. The method according to claim 1, characterized in that The control motor drives the lens to perform motion compensation so as to move the lens to the ideal position, including: generating a driving signal according to the jitter position deviation; The motor is controlled according to the driving signal to drive the lens to perform motion compensation, so as to move the lens to the ideal position.

3. The method according to any one of claims 1 to 2, characterized in that: The method for determining the adjustment threshold includes: Obtaining a fluctuation curve corresponding to the position fluctuation of the lens in a static state; determining a fluctuation peak value according to the fluctuation curve; The adjustment threshold is determined according to the fluctuation peak value and a preset adjustment coefficient.

4. The method according to claim 3, characterized in that The determining of the fluctuation peak value according to the fluctuation curve comprises: Performing filtering processing on the peak value of the fluctuation curve to obtain a filtered fluctuation curve; Performing curve fitting processing on the filtered fluctuation curve to determine a fitted fluctuation curve; A peak value is determined from the fitted fluctuation curve, and the determined peak value is used as the fluctuation peak value.

5. The method according to claim 3, characterized in that: The adjustment coefficient is determined according to the structure of the motor.

6. The method according to claim 1, characterized in that The obtaining of the jitter position deviation of the lens comprises: Obtaining a collection angle of the lens; Determining an ideal position of the lens according to the acquisition angle; Determine the actual position of the lens according to the data collected by the position sensor of the lens; The jitter position deviation is determined according to the ideal position and the actual position.

7. A lens position adjustment device, characterized in that: include: A first acquisition module is used to acquire a jitter position deviation of the lens during image capture, wherein the jitter position deviation is a deviation between an ideal position of the lens and an actual position of the lens; The control module is used for controlling the motor to drive the lens to perform motion compensation in response to the jitter position deviation being greater than an adjustment threshold, so as to move the lens to the ideal position.

8. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the lens position adjustment method according to any one of claims 1 to 6.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.