Lens anti-shake control system based on ball motor
Through the ball motor lens anti-shake control system, real-time detection and dynamic adjustment of lens position are solved, and the problem of insufficient optical anti-shake compensation in the existing technology is not accurate enough, improving imaging quality and stability.
Patent Information
- Application Number
- CN202510623239.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-07-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing optical anti-shake system is not compensated accurately in complex motion situations, resulting in a decrease in imaging quality, especially in long-term dynamic shooting.
The lens anti-shake control system based on the ball motor is adopted. The detection module captures the lens jitter data in real time, the control module accurately controls the ball motor, and the model generation module establishes a relationship model between jitter and imaging evaluation value, and dynamically adjusts the compensation parameters.
Accurate compensation for complex movements is achieved, ensuring stable imaging quality, adapting to different shooting environments and jitter intensity, and avoiding the reduction in compensation effect caused by long-term use or environmental changes.
Smart Images

Figure CN120264140A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lens anti-shake control, and more particularly, to a lens anti-shake control system based on a ball motor. Background Art
[0002] With the development of photography technology and mobile devices, the application of anti-shake technology in modern cameras and video recording devices has become increasingly important. During daily shooting, slight shaking can seriously affect the quality of images or videos. Especially in low-light conditions or when using a telephoto lens, the shaking of the lens is more likely to cause image blurring. Therefore, how to effectively reduce the impact of camera shaking on the imaging effect has become one of the important research directions in the field of photography.
[0003] Currently, traditional anti-shake technologies are mainly divided into two types: optical image stabilization (OIS) and electronic image stabilization (EIS). Optical image stabilization compensates for shaking by mechanically adjusting the position of the lens or the image sensor, which has high precision but a complex system and high cost. Electronic image stabilization reduces the impact of shaking by processing the image after imaging through software algorithms. Although the cost is low, the effect is not as ideal as optical image stabilization in some scenarios. However, in existing anti-shake systems, how to achieve more efficient and real-time shake compensation still faces challenges. Due to the complex and changeable shaking conditions, traditional anti-shake systems may have problems with inaccurate compensation when dealing with complex movements. Especially during long-term dynamic shooting, the anti-shake effect may decay or fail.
[0004] In view of this, there is an urgent need to invent an anti-shake control technology for mechanically adjusting the lens, aiming to solve the problem of inaccurate optical image stabilization compensation in the prior art. Summary of the Invention
[0005] In view of this, the present invention proposes a lens anti-shake control system based on a ball motor, aiming to solve the problem of inaccurate optical image stabilization compensation in the current technology.
[0006] The present invention proposes a lens anti-shake control system based on a ball motor, comprising:
[0007] A detection module, configured to detect the shake data of the lens and generate a collection electrical signal according to the shake data;
[0008] A control module, electrically connected to the detection module and the ball motor respectively, the control module is configured to receive the collection electrical signal and control the ball motor according to the collection electrical signal;
[0009] The model generation module is electrically connected to the imaging module and the control module of the lens respectively. The model generation module is used to obtain the imaging evaluation value of the imaging module, and the control module establishes a compensation model for the relationship between the control compensation data and the jitter data when controlling the ball screw motor;
[0010] Wherein, the model generation module is further used to obtain the jitter data in the collected electrical signal, substitute it into the compensation model, and determine the preset control data of the ball screw motor. The model generation module is further used to determine whether to adjust the control compensation data according to the relationship between the control compensation data and the preset control data;
[0011] When the control compensation data is inconsistent with the preset control data, obtain the data difference between the control compensation data and the preset control data, and determine the adjustment coefficient according to the data difference. The model generation module is further used to adjust the control compensation data according to the adjustment coefficient.
[0012] Further, when the model generation module is used to obtain the imaging evaluation value of the imaging module and the control module establishes a compensation model for the relationship between the control compensation data and the jitter data when controlling the ball screw motor, it includes:
[0013] The model generation module is further used to obtain the difference degree between the pixels of the edge and texture of the imaging, and the uniformity of each color pixel in the imaging;
[0014] The model generation module is further used to substitute the difference degree between the pixels of the edge, the difference degree between the pixels of the texture, and the uniformity of each color pixel in the imaging into a formula to obtain the imaging evaluation value. The formula is as follows:
[0015]
[0016] Wherein, P is the imaging evaluation value, Gx and Gy are the gradients in the horizontal and vertical directions, F(i,j) is the element of the gray-level co-occurrence matrix, representing the occurrence frequency of pixel pairs with gray values of i and j, N is the number of gray levels, is the uniformity of the color pixels, n is the total number of each color pixel, w1, w2, and w3 are weight coefficients, and the sum of w1, w2, and w3 is 1;
[0017] The model generation module is further used to obtain the control compensation data and the jitter data corresponding to the imaging, establish a compensation relation formula according to the imaging evaluation value P of the imaging and the corresponding control compensation data and jitter data, and establish the compensation model according to each compensation relation formula.
[0018] Further, when the model generation module establishes the compensation model according to each of the compensation relationships, it includes:
[0019] The model generation module is further configured to obtain the imaging evaluation value P in each of the compensation relationships, and determine an effective compensation relationship according to the relationship between the imaging evaluation value P and a preset imaging evaluation value pre-configured in the model generation module;
[0020] When the imaging evaluation value P is less than the preset imaging evaluation value, the model generation module determines that the compensation relationship corresponding to the imaging evaluation value P is not the effective compensation relationship;
[0021] When the imaging evaluation value P is greater than or equal to the preset imaging evaluation value, the model generation module determines that the compensation relationship corresponding to the imaging evaluation value P is the effective compensation relationship;
[0022] The model generation module is further configured to obtain a distance metric in each of the effective compensation relationships according to the imaging evaluation value, and construct a distance matrix according to the distance metric;
[0023] The model generation module is further configured to recursively merge each of the effective compensation relationships according to the distance matrix;
[0024] The model generation module is further configured to establish the compensation model according to the effective compensation relationships after recursive merging.
[0025] Further, when the control module is configured to receive the collected electrical signal and control the ball motor according to the collected electrical signal, it includes:
[0026] The control module is further configured to obtain the shaking direction of the lens according to the collected electrical signal, and determine a compensation direction for controlling the ball motor according to the shaking direction, where:
[0027] The control module is further configured to determine the starting point of the ball motor according to the midpoint of the ball motor;
[0028] The control module is further configured to set at least eight moving areas according to the moving range of the ball motor. When the ball motor is located in any one of the moving areas, the control module obtains the relative moving area direction of the moving area, and determines the relative moving area direction of the moving area as the compensation direction.
[0029] Further, when the control module determines the compensation direction for controlling the ball motor, it includes:
[0030] The control module is further configured to obtain the jitter distance of the lens according to the collected electrical signal, and determine whether to control the ball screw motor according to the relationship between the jitter distance and a first preset jitter distance and a second preset jitter distance pre-configured in the control module:
[0031] When the jitter distance is less than the first preset jitter distance, the control module determines not to control the ball screw motor;
[0032] When the jitter distance is greater than the second preset jitter distance, the control module determines not to control the ball screw motor;
[0033] When the jitter distance is greater than or equal to the first preset jitter distance and less than the second preset jitter distance, the control module determines the electromagnetic intensity in the compensation direction according to the relationship between the jitter distance and the second preset jitter distance, and controls the ball screw motor according to the electromagnetic intensity in the compensation direction;
[0034] Wherein, the first preset jitter distance is less than the second preset jitter distance.
[0035] Further, when the control module determines the electromagnetic intensity in the compensation direction according to the relationship between the jitter distance and the second preset jitter distance, it includes:
[0036] The control module is further configured to obtain the distance difference between the jitter distance and the second preset jitter distance, and determine the electromagnetic intensity in the compensation direction according to the relationship between the distance difference and a first preset distance difference and a second preset distance difference pre-configured in the control module;
[0037] When the distance difference is less than or equal to the first preset distance difference, the control module determines that the electromagnetic intensity in the compensation direction is T1;
[0038] When the distance difference is greater than the first preset distance difference and less than or equal to the second preset distance difference, the control module determines that the electromagnetic intensity in the compensation direction is T2;
[0039] When the distance difference is greater than the second preset distance difference, the control module determines that the electromagnetic intensity in the compensation direction is T3;
[0040] Wherein, the first preset distance difference is less than the second preset distance difference, and T1 < T2 < T3.
[0041] Further, when the control module determines that the electromagnetic intensity in the compensation direction is Ti, i = 1, 2, 3, it includes:
[0042] The control module is further configured to obtain the jitter frequency of the lens according to the collected electrical signal within a preset time period, and determine the number of jitter times according to the jitter frequency;
[0043] The control module is further configured to determine whether to adjust the electromagnetic intensity Ti in the compensation direction according to the relationship between the number of jitter times and a preset number of jitter times pre-configured in the control module;
[0044] When the number of jitter times is less than the preset number of jitter times, the control module determines not to adjust the electromagnetic intensity Ti in the compensation direction;
[0045] When the number of jitter times is greater than or equal to the preset number of jitter times, the control module determines an adjustment coefficient according to the relationship between the number of jitter times and the preset number of jitter times, and adjusts the electromagnetic intensity Ti in the compensation direction according to the adjustment coefficient.
[0046] Further, when the control module determines the adjustment coefficient according to the relationship between the number of jitter times and the preset number of jitter times, it includes:
[0047] The control module is further configured to obtain the difference in the number of times between the number of jitter times and the preset number of jitter times, and determine the adjustment coefficient according to the relationship between the difference in the number of times and a first preset difference in the number of times and a second preset difference in the number of times pre-configured in the control module;
[0048] When the difference in the number of times is less than the first preset difference in the number of times, the control module determines that the adjustment coefficient is M3;
[0049] When the difference in the number of times is greater than or equal to the first preset difference in the number of times and less than the second preset difference in the number of times, the control module determines that the adjustment coefficient is M2;
[0050] When the difference in the number of times is greater than or equal to the second preset difference in the number of times, the control module determines that the adjustment coefficient is M1;
[0051] Wherein, the first preset difference in the number of times is less than the second preset difference in the number of times, and M1 < M2 < M3 < 1.
[0052] Further, when the control module determines that the adjustment coefficient is Mi, i = 1, 2, 3, it includes:
[0053] The control module is further configured to obtain the jitter speed of the lens according to the collected electrical signal, and determine whether to correct the adjustment coefficient Mi according to the relationship between the jitter speed and a first preset jitter speed and a second preset jitter speed pre-configured in the control module;
[0054] When the jitter speed is less than the first preset jitter speed, the control module determines not to correct the adjustment coefficient Mi;
[0055] When the jitter speed is greater than or equal to the second preset jitter speed, the control module determines not to correct the adjustment coefficient Mi;
[0056] When the jitter speed is greater than or equal to the first preset jitter speed and less than the second preset jitter speed, the control module determines a correction coefficient according to the relationship between the jitter speed and the second preset jitter speed, and corrects the adjustment coefficient Mi according to the correction coefficient;
[0057] Wherein, the first preset jitter speed is less than the second preset jitter speed.
[0058] Further, when the control module determines the correction coefficient according to the relationship between the jitter speed and the second preset jitter speed, it includes:
[0059] The control module is further configured to obtain a speed difference between the jitter speed and the second preset jitter speed, and determine the correction coefficient according to the relationship between the speed difference and the first preset speed difference and the second preset speed difference pre-configured by the control module;
[0060] When the speed difference is less than the first preset speed difference, the control module determines that the correction coefficient is L3;
[0061] When the speed difference is greater than or equal to the first preset speed difference and less than the second preset speed difference, the control module determines that the correction coefficient is L2;
[0062] When the speed difference is greater than or equal to the second preset speed difference, the control module determines that the correction coefficient is L1;
[0063] Wherein, the first preset speed difference is less than the second preset speed difference, and L1 < L2 < L3 < 1.
[0064] Compared with the prior art, the beneficial effects of the present invention are as follows: By introducing the combination of a detection module, a control module, and a model generation module, precise detection and compensation of lens jitter can be achieved. In practical applications, lens jitter is a common problem in photography, especially when shooting with handheld devices or in a moving state. Jitter often leads to blurred images and loss of details. Through the detection module of this system, the amplitude and direction of lens jitter can be obtained in real time, generating corresponding electrical signals to ensure precise capture of jitter data. After these electrical signals are transmitted to the control module, the ball motor can be precisely controlled according to the jitter situation in an extremely short time, and the position of the lens can be adjusted in a timely manner to offset the impact of jitter, improving the stability of the image. Secondly, through the model generation module, a relationship model between jitter data and control compensation data can be generated in real time based on the feedback information of the imaging module. In this way, the anti-shake system can not only handle ordinary jitter but also make more precise compensation for complex motion trajectories. The model generation module continuously obtains the imaging evaluation value and jitter data, establishes and optimizes the compensation model, enabling the lens to effectively adapt to different shooting environments and jitter intensities, ensuring the real-time and stability of the anti-shake effect. Finally, when it is detected that the control compensation data is inconsistent with the preset control data, the model generation module can automatically calculate the data difference between the two and determine an appropriate adjustment coefficient based on this difference, and then dynamically adjust the control compensation data. This automated adjustment mechanism can avoid the problem of the decline in compensation effect caused by long-term use or environmental changes of the anti-shake system. By introducing the adjustment coefficient, the compensation parameters can be adaptively adjusted, always keeping the anti-shake system running in the best state, thereby further improving the anti-shake accuracy and reducing the imaging error. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. Moreover, throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0066] Figure 1 is a functional block diagram of a lens anti-shake control system based on a ball motor provided by an embodiment of the present invention;
[0067] Figure 2 is a flow block diagram of a lens anti-shake control system based on a ball motor provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0068] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully conveyed to those skilled in the art. It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0069] As Figure 1 - Figure 2 shown, in some embodiments of the present application, this embodiment provides a lens anti-shake control system based on a ball motor, including: a detection module, a control module, and a model generation module.
[0070] Specifically, the detection module is used to detect the shake data of the lens and generate an acquisition electrical signal according to the shake data; the control module is electrically connected to the detection module and the ball motor respectively, and the control module is used to receive the acquisition electrical signal and control the ball motor according to the acquisition electrical signal; the model generation module is electrically connected to the imaging module and the control module of the lens respectively, and the model generation module is used to obtain the imaging evaluation value of the imaging module, and establish a compensation model for the relationship between the control compensation data and the shake data when the control module controls the ball motor; wherein, the model generation module is further used to substitute the shake data in the acquisition electrical signal into the compensation model to determine the preset control data of the ball motor, and the model generation module is further used to determine whether to adjust the control compensation data according to the relationship between the control compensation data and the preset control data; when the control compensation data is inconsistent with the preset control data, the data difference between the control compensation data and the preset control data is obtained, and an adjustment coefficient is determined according to the data difference, and the model generation module is further used to adjust the control compensation data according to the adjustment coefficient.
[0071] It can be seen that by combining the detection module, the control module, and the model generation module, an intelligent lens anti-shake control system is constructed. The detection module is responsible for detecting the shake data of the lens in real time and generating an acquisition electrical signal. The control module receives these electrical signals and controls the movement of the ball motor based on these data, thereby adjusting the lens position to offset the influence of the shake. The model generation module establishes a relationship model between the control compensation data and the shake data by obtaining the evaluation value of the imaging module and the shake data. The system generates preset control data according to this model, and determines whether it is necessary to adjust the control compensation data by comparing the actual control compensation data with the preset control data. When the two are inconsistent, the system calculates the data difference and generates an adjustment coefficient based on this difference to further adjust the control compensation data to ensure the accuracy and real-time performance of the anti-shake effect.
[0072] It is understandable that the detection module detects the jitter data of the lens in real time. Jitter is the main cause affecting image quality. Especially when shooting with a handheld device or in a low-light environment, even slight jitter will cause the image to blur. Through the detection module, the detection module can monitor the motion state of the lens in real time, capture the subtle displacement and rotation of the lens in space, and generate corresponding electrical signals. These electrical signals reflect the amplitude and direction of the lens jitter, which are the key basis for subsequent control and compensation. Secondly, the control module receives the electrical signals from the detection module and controls the operation of the ball screw motor according to these signals. The ball screw motor is a high-precision actuator that can quickly adjust the position of the lens according to the control instructions. When the detection module detects the jitter of the lens, the control module will respond immediately and adjust the position of the lens through the ball screw motor to offset the impact of the jitter. This adjustment process requires extremely high real-time performance to ensure compensation at the moment of shooting, thus avoiding the impact of jitter on the imaging effect. The accuracy and response speed of the ball screw motor directly determine the quality of the anti-shake effect. Therefore, the control module realizes efficient anti-shake compensation by precisely controlling the angle and movement amount of the ball screw motor. On this basis, the model generation module establishes a relationship model between the control compensation data and the jitter data by obtaining the imaging evaluation value and jitter data of the imaging module. The imaging module is used to evaluate the current imaging quality of the lens, which includes image clarity, stability, and other imaging parameters. The model generation module analyzes these imaging data and combines them with the jitter data to establish a compensation model for predicting and calculating the optimal control method of the ball screw motor under different jitter states. This model not only considers the actual jitter situation of the lens but also refers to the imaging effect, thus ensuring that the system can achieve the best anti-shake effect when adjusting the ball screw motor. Specifically, the role of the compensation model is to ensure that the lens can dynamically adjust the anti-shake parameters in a complex shooting environment. However, the jitter situation is not constant and may change continuously with factors such as the shooting environment, angle, and device movement. To adapt to this change, the model generation module generates the preset control data of the ball screw motor by obtaining real-time jitter data. These data are obtained based on the compensation model and are used to guide how the ball screw motor adjusts the lens position to offset the jitter. At the same time, the difference between the control compensation data and the preset control data is continuously monitored. If the model generation module finds that the actual control compensation data is inconsistent with the preset control data, the model generation module will calculate the difference between the two and generate an adjustment coefficient based on this difference. Finally, when the adjustment coefficient is determined, the model generation module will adjust the control compensation data according to this adjustment coefficient to ensure that the ball screw motor can adapt to the changing jitter situation and maintain the accuracy and real-time performance of the anti-shake effect. Such a dynamic adjustment mechanism enables the anti-shake system to not only cope with slight jitter in static scenes but also provide excellent anti-shake performance in complex dynamic scenes.Whether it is sports shooting, handheld video recording, or delicate shooting with a telephoto lens, it can respond in real time, continuously optimize the anti-shake parameters, and ensure the clarity and stability of the image.
[0073] Specifically, the detection module consists of a gyroscope and an accelerometer, and is responsible for monitoring the motion state of the lens in real time. The gyroscope is mainly used to measure the rotation speed of the lens and capture the angular velocity changes of the lens in three-dimensional space, while the accelerometer is used to detect the linear acceleration of the lens and record the movement of the device in different directions. These two sensors cooperate with each other to comprehensively reflect the motion trajectory and jitter amplitude of the lens. By collecting these accurate motion data, the system can generate corresponding electrical signals in real time and transmit them to the control module, enabling the anti-shake system to quickly respond to and compensate for jitters in different directions and types, thereby effectively improving the imaging quality.
[0074] Specifically, the model generation module is used to obtain the imaging evaluation value of the imaging module. When the control module establishes a compensation model for the relationship between the control compensation data and the jitter data during the control of the ball screw motor, it includes: The model generation module is also used to obtain the difference degree between the pixels of the edge and texture of the imaging, and the uniformity of the color pixels in the imaging. The model generation module is also used to substitute the difference degree between the pixels of the edge, the difference degree between the pixels of the texture, and the uniformity of the color pixels in the imaging into the formula to obtain the imaging evaluation value. The formula is as follows: Where P is the imaging evaluation value, Gx and Gy are the gradients in the horizontal and vertical directions, F(i,j) is the element of the gray-level co-occurrence matrix, representing the occurrence frequency of pixel pairs with gray values i and j, N is the number of gray levels, is the uniformity of the color pixels, n is the total number of color pixels, w1, w2, and w3 are weight coefficients, and the sum of w1, w2, and w3 is 1. The model generation module is also used to obtain the control compensation data and jitter data corresponding to the imaging, establish a compensation relationship based on the imaging evaluation value P of the imaging and the corresponding control compensation data and jitter data, and establish a compensation model based on each compensation relationship.
[0075] Specifically, when the model generation module establishes a compensation model based on each compensation relationship formula, it includes: The model generation module is also used to obtain the imaging evaluation value P in each compensation relationship formula, and determine the effective compensation relationship formula according to the relationship between the imaging evaluation value P and the preset imaging evaluation value pre-configured by the model generation module. When the imaging evaluation value P is less than the preset imaging evaluation value, the model generation module determines that the compensation relationship formula corresponding to the imaging evaluation value P is not an effective compensation relationship formula. When the imaging evaluation value P is greater than or equal to the preset imaging evaluation value, the model generation module determines that the compensation relationship formula corresponding to the imaging evaluation value P is an effective compensation relationship formula. The model generation module is also used to obtain the distance metric in each effective compensation relationship formula according to the imaging evaluation value, and construct a distance matrix based on the distance metric. The model generation module is also used to recursively merge each effective compensation relationship formula according to the distance matrix. The model generation module is also used to establish a compensation model according to the recursively merged effective compensation relationship formula.
[0076] It can be seen that the model generation module obtains the imaging evaluation value of the imaging module and establishes a compensation model based on the difference degree between the edge and texture pixels and the uniformity of the color pixels. The model generation module first calculates the imaging evaluation value P through a formula, and then combines the control compensation data and the dither data to establish a compensation relationship formula between the imaging evaluation value and these data. Then, the system filters out the effective compensation relationship formulas according to the preset imaging evaluation value. When the imaging evaluation value P reaches or exceeds the preset standard, the compensation relationship formula is determined to be effective. By recursively merging each effective compensation relationship formula, the system can construct a global compensation model and optimize the control of the ball motor according to this model, and adjust the lens position in real time to reduce the impact of jitter on the imaging quality.
[0077] It can be understood that the model generation module comprehensively analyzes the relationship between the lens shake situation and the imaging quality by obtaining the difference degree between the edge pixels and texture pixels during the lens imaging process, as well as the color pixel uniformity in the imaging. The imaging evaluation value P is calculated through a mathematical formula, which takes into account the gradient changes of the pixels and the elements in the gray-level co-occurrence matrix, and accurately reflects the multi-dimensional information of the imaging quality. Through these evaluation values, the model generation module can comprehensively judge the corresponding relationship between the current imaging state and the shake, providing basic data for subsequent anti-shake compensation. Based on the control compensation data and shake data, the model generation module establishes a compensation relationship formula. Each compensation relationship formula reflects the relationship between the imaging quality and the corresponding control compensation data. The construction of these compensation relationship formulas not only considers the impact of lens shake on the imaging quality, but also combines the changes in the imaging evaluation value P to ensure that the compensation process matches the actual imaging state of the lens. Through an accurate compensation model, the model generation module can predict the control requirements of the ball screw motor in real time and quickly make corresponding adjustments in different shooting scenarios to ensure stable image quality. In addition, the model generation module judges the effectiveness of each compensation relationship formula by using a preset imaging evaluation value as a benchmark. The imaging evaluation value P is compared with the preset value. When the P value is greater than or equal to the preset imaging evaluation value, this compensation relationship formula is determined to be effective and used as the basis for the subsequent compensation model. When the P value is less than the preset imaging evaluation value, the model generation module will eliminate this compensation relationship formula to ensure that only the effective data that makes a positive contribution to the imaging quality is retained during the model construction process. This screening mechanism improves the accuracy of the compensation model, avoids unnecessary data interference, and ensures a more accurate adjustment process of the ball screw motor. Based on the effective compensation relationship formulas, the model generation module will recursively merge each relationship formula. By analyzing the distance metrics in these relationship formulas, a distance matrix can be constructed. The distance matrix is used to quantify the differences between different compensation relationship formulas and merge these differences. The process of recursive merging can effectively integrate the imaging data and shake data under different conditions and establish a global compensation model. Through this recursive merging strategy, it can be ensured that the compensation model has wide adaptability in multiple scenarios and can flexibly respond to different imaging conditions. Finally, the model generation module constructs a complete compensation model based on the recursively merged compensation relationship formulas. This model can not only adjust the control strategy of the ball screw motor in real time, but also adapt to different shooting environments and shake situations by dynamically updating the compensation model. This adaptive compensation mechanism can maintain the stability and clarity of the image under various complex conditions, greatly improving the efficiency and accuracy of the anti-shake system. During the operation of the system, it can automatically adjust the parameters of the compensation model by monitoring the changes in the imaging quality in real time, thereby ensuring the continuous optimization of the lens anti-shake control. This anti-shake system is not only applicable to static shooting, but also can handle the complex shake problems in dynamic shooting scenarios, realizing efficient and intelligent image stabilization processing.
[0078] Specifically, when the control module is used to receive the collected electrical signal and control the ball motor according to the collected electrical signal, it includes: The control module is further configured to obtain the jitter direction of the lens according to the collected electrical signal, and determine the compensation direction for controlling the ball motor according to the jitter direction, where: The control module is further configured to determine the starting point of the ball motor according to the midpoint of the ball motor. The control module is further configured to set at least eight moving areas according to the moving range of the ball motor. When the ball motor is located in any moving area, the control module obtains the relative moving area direction of the moving area and determines the relative moving area direction of the moving area as the compensation direction.
[0079] Specifically, when the control module determines the compensation direction for controlling the ball motor, it includes: The control module is further configured to obtain the jitter distance of the lens according to the collected electrical signal, and determine whether to control the ball motor according to the relationship between the jitter distance and the first preset jitter distance and the second preset jitter distance pre-configured by the control module: When the jitter distance is less than the first preset jitter distance, the control module determines not to control the ball motor. When the jitter distance is greater than the second preset jitter distance, the control module determines not to control the ball motor. When the jitter distance is greater than or equal to the first preset jitter distance and less than the second preset jitter distance, the control module determines the electromagnetic intensity of the compensation direction according to the relationship between the jitter distance and the second preset jitter distance, and controls the ball motor according to the electromagnetic intensity of the compensation direction. Wherein, the first preset jitter distance is less than the second preset jitter distance.
[0080] Specifically, when the control module determines the electromagnetic intensity of the compensation direction according to the relationship between the jitter distance and the second preset jitter distance, it includes: The control module is further configured to obtain the distance difference between the jitter distance and the second preset jitter distance, and determine the electromagnetic intensity of the compensation direction according to the relationship between the distance difference and the first preset distance difference and the second preset distance difference pre-configured by the control module. When the distance difference is less than or equal to the first preset distance difference, the control module determines that the electromagnetic intensity of the compensation direction is T1. When the distance difference is greater than the first preset distance difference and less than or equal to the second preset distance difference, the control module determines that the electromagnetic intensity of the compensation direction is T2. When the distance difference is greater than the second preset distance difference, the control module determines that the electromagnetic intensity of the compensation direction is T3. Wherein, the first preset distance difference is less than the second preset distance difference, and T1 < T2 < T3.
[0081] Specifically, when the control module determines that the electromagnetic intensity in the compensation direction is Ti, where i = 1, 2, 3, it includes: The control module is also used to collect electrical signals within a preset period, obtain the jitter frequency of the lens, and determine the number of jitters according to the jitter frequency. The control module is also used to determine whether to adjust the electromagnetic intensity Ti in the compensation direction according to the relationship between the number of jitters and the preset number of jitters pre-configured by the control module. When the number of jitters is less than the preset number of jitters, the control module determines not to adjust the electromagnetic intensity Ti in the compensation direction. When the number of jitters is greater than or equal to the preset number of jitters, the control module determines an adjustment coefficient according to the relationship between the number of jitters and the preset number of jitters, and adjusts the electromagnetic intensity Ti in the compensation direction according to the adjustment coefficient.
[0082] Specifically, when the control module determines the adjustment coefficient according to the relationship between the number of jitters and the preset number of jitters, it includes: The control module is also used to obtain the difference in the number of jitters between the number of jitters and the preset number of jitters, and determine the adjustment coefficient according to the relationship between the difference in the number of jitters and the first preset difference in the number of jitters and the second preset difference in the number of jitters pre-configured by the control module. When the difference in the number of jitters is less than the first preset difference in the number of jitters, the control module determines that the adjustment coefficient is M3. When the difference in the number of jitters is greater than or equal to the first preset difference in the number of jitters and less than the second preset difference in the number of jitters, the control module determines that the adjustment coefficient is M2. When the difference in the number of jitters is greater than or equal to the second preset difference in the number of jitters, the control module determines that the adjustment coefficient is M1. Among them, the first preset difference in the number of jitters is less than the second preset difference in the number of jitters, and M1 < M2 < M3 < 1.
[0083] Specifically, when the control module determines that the adjustment coefficient is Mi, where i = 1, 2, 3, it includes: The control module is also used to collect electrical signals to obtain the jitter speed of the lens, and determine whether to correct the adjustment coefficient Mi according to the relationship between the jitter speed and the first preset jitter speed and the second preset jitter speed pre-configured by the control module. When the jitter speed is less than the first preset jitter speed, the control module determines not to correct the adjustment coefficient Mi. When the jitter speed is greater than or equal to the second preset jitter speed, the control module determines not to correct the adjustment coefficient Mi. When the jitter speed is greater than or equal to the first preset jitter speed and less than the second preset jitter speed, the control module determines a correction coefficient according to the relationship between the jitter speed and the second preset jitter speed, and corrects the adjustment coefficient Mi according to the correction coefficient. Among them, the first preset jitter speed is less than the second preset jitter speed.
[0084] Specifically, when the control module determines the correction coefficient according to the relationship between the jitter speed and the second preset jitter speed, it includes: the control module is further configured to obtain the speed difference between the jitter speed and the second preset jitter speed, and determine the correction coefficient according to the relationship between the speed difference and the first preset speed difference and the second preset speed difference pre-configured in the control module. When the speed difference is less than the first preset speed difference, the control module determines the correction coefficient as L3. When the speed difference is greater than or equal to the first preset speed difference and less than the second preset speed difference, the control module determines the correction coefficient as L2. When the speed difference is greater than or equal to the second preset speed difference, the control module determines the correction coefficient as L1. Among them, the first preset speed difference is less than the second preset speed difference, and L1 < L2 < L3 < 1.
[0085] It can be seen that the compensation direction of the ball motor is determined according to the jitter direction and the jitter distance. Through the preset jitter distance threshold, the control module can judge whether to perform anti-shake compensation control to avoid unnecessary compensation operations for small or large jitters. During the jitter compensation process, the control module also determines the electromagnetic intensity of the compensation direction according to the difference between the jitter distance and the preset threshold to ensure that the compensation strength matches the actual jitter degree. At the same time, the control module further finely adjusts the electromagnetic intensity by calculating the jitter frequency and the number of times to ensure the real-time performance and accuracy of the anti-shake compensation. Finally, the control module combines the data of the jitter speed, calculates the correction coefficient, and further optimizes the compensation parameters, so as to achieve dynamic and precise anti-shake control and ensure the image stability and clarity.
[0086] It can be understood that by obtaining the shaking direction of the lens based on the collected electrical signals and determining the compensation direction for the ball motor according to this direction. This process not only relies on the real-time monitored shaking data, but the control module also combines preset thresholds, such as the first preset shaking distance and the second preset shaking distance. By analyzing the shaking distance, the control module can effectively judge the intensity of the lens shaking, so as to decide whether to perform compensation control, ensuring to avoid unnecessary intervention in the case of small shaking, and timely adjusting when the shaking is large to maintain the stability of the image. In addition, the design of the control module takes into account the moving range of the ball motor. By setting at least eight moving areas, the control module can accurately locate the relative moving direction of the ball motor in different areas. This design enables the compensation control not only to adapt to different degrees of shaking, but also to dynamically adjust the compensation strategy according to the actual position of the ball motor. For example, when the ball motor is in a certain specific moving area, the control module will calculate the relative moving direction of this area and use it as the compensation direction. This flexible control method significantly improves the real-time performance and accuracy of the compensation effect. When controlling the shaking distance, the control module further analyzes the relationship between the shaking distance and the preset distance, and uses this relationship to determine the electromagnetic intensity of the compensation direction. By obtaining the distance difference and comparing it with the preset first and second preset distance differences, the control module can hierarchically define the electromagnetic intensity. When the distance difference is less than or equal to the first preset distance difference, the electromagnetic intensity is set to T1; when the distance difference is greater than the first preset distance difference but less than or equal to the second preset distance difference, the electromagnetic intensity is set to T2; when the distance difference exceeds the second preset value, the electromagnetic intensity is set to T3. This hierarchical setting ensures the accurate matching of the compensation intensity with the actual shaking degree and improves the adaptive ability of the control module. In addition, to further optimize the compensation effect, the control module also considers the relationship between the shaking frequency and the number of times. By obtaining the shaking frequency and comparing it with the preset number of shaking times, the control module can decide whether to adjust the electromagnetic intensity. When the number of shaking times is less than the preset value, the control module does not make adjustments to avoid overcompensation; while when the number of shaking times reaches or exceeds the preset value, the control module determines an adjustment coefficient according to the difference in the number of times to adjust the electromagnetic intensity of the compensation direction. Through this flexible adjustment mechanism, the control module can adapt to the changes in lens shaking in real time in different shooting environments and improve the imaging quality. Finally, the control module also monitors the shaking speed and determines the correction coefficient according to the relationship between the speed and the preset speed. In this process, by analyzing the speed difference and comparing it with the first and second preset speed differences, it is decided whether to correct the adjustment coefficient. By incorporating the speed difference into the compensation algorithm, it is possible to comprehensively handle different shaking situations, thus ensuring the efficiency and accuracy of the compensation control.This series of multi-level analysis and adjustment not only enhances the intelligence and flexibility of the lens anti-shake control system but also provides strong technical support for improving the overall imaging quality.
[0087] Specifically, the electromagnetic intensity of the ball motor directly affects its driving ability and motion accuracy, thus being closely related to the effectiveness of the compensation function. Specifically, the electromagnetic intensity is calculated by the control module based on the real-time detected jitter data, which reflects the system's response requirements for the jitter amplitude and direction. When the camera shakes, the detection module obtains the jitter information through the gyroscope and accelerometer, generates an electrical signal, and transmits it to the control module. The control module analyzes the intensity and direction of the jitter based on these signals and calculates the required electromagnetic intensity through a preset control algorithm. This electromagnetic intensity determines the driving force of the ball motor and affects the displacement generated by the motor during the compensation process. During the compensation process, a higher electromagnetic intensity means that the ball motor can generate a greater reverse drive to quickly counteract the camera shake, ensuring that the lens can adjust its position in a timely manner, thereby maintaining the stability and clarity of the imaging. On the contrary, if the electromagnetic intensity is low, it may cause the motor to respond slowly and fail to effectively cancel the shake, thus affecting the final imaging quality. Therefore, by dynamically adjusting the electromagnetic intensity, the system can achieve real-time compensation response and ensure the best imaging effect under different shooting conditions.
[0088] In the above embodiments, by introducing the combination of the detection module, the control module, and the model generation module, precise detection and compensation of lens jitter can be achieved. In practical applications, lens jitter is a common problem in photography. Especially when shooting with handheld devices or in a moving state, jitter often leads to blurred images and loss of details. Through the detection module of this system, the amplitude and direction of the lens jitter can be obtained in real time, generating corresponding electrical signals to ensure precise capture of jitter data. After these electrical signals are transmitted to the control module, the ball motor can be accurately controlled according to the jitter situation in an extremely short time, and the position of the lens can be adjusted in a timely manner to offset the impact of jitter, improving the stability of the image. Secondly, through the model generation module, a relationship model between jitter data and control compensation data can be generated in real time based on the feedback information of the imaging module. In this way, the anti-shake system can not only cope with ordinary jitter but also make more precise compensation for complex motion trajectories. The model generation module continuously obtains the imaging evaluation value and jitter data, establishes and optimizes the compensation model, enabling the lens to effectively adapt to different shooting environments and jitter intensities, ensuring the real-time performance and stability of the anti-shake effect. Finally, when it is detected that the control compensation data is inconsistent with the preset control data, the model generation module can automatically calculate the data difference between the two and determine an appropriate adjustment coefficient based on this difference, and then dynamically adjust the control compensation data. This automated adjustment mechanism can avoid the problem of the decline in the compensation effect of the anti-shake system due to long-term use or environmental changes. By introducing the adjustment coefficient, the compensation parameters can be adaptively adjusted, always keeping the anti-shake system running in the best state, thereby further improving the anti-shake accuracy and reducing the imaging error.
[0089] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0090] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the processes and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate for implementing in the process Figure 1 one process or multiple processes and / or blocksFigure 1 means for the functions specified in one or more boxes.
[0091] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to work in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction means that implements the functions specified in one Figure 1 process or more processes and / or boxes Figure 1 means for the functions specified in one or more boxes.
[0092] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus, such that a series of operational steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, so that the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in one Figure 1 process or more processes and / or boxes Figure 1 means for the functions specified in one or more boxes.
[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: it is still possible to modify the specific implementation manners of the present invention or make equivalent replacements, and any modification or equivalent replacement that does not depart from the spirit and scope of the present invention shall be covered by the protection scope of the claims of the present invention.
Claims
1. A lens anti-shake control system based on a ball motor, characterized in that, Including: A detection module, configured to detect the jitter data of the lens and generate an acquisition electrical signal according to the jitter data; A control module, electrically connected to the detection module and the ball screw motor respectively, the control module is configured to receive the acquisition electrical signal and control the ball screw motor according to the acquisition electrical signal; A model generation module, electrically connected to the imaging module and the control module of the lens respectively, the model generation module is configured to obtain the imaging evaluation value of the imaging module, and establish a compensation model for the relationship between the control compensation data and the jitter data when the control module controls the ball screw motor; Wherein, the model generation module is further configured to substitute the jitter data in the acquisition electrical signal into the compensation model to determine the preset control data of the ball screw motor, and the model generation module is further configured to determine whether to adjust the control compensation data according to the relationship between the control compensation data and the preset control data; When the control compensation data is inconsistent with the preset control data, obtain the data difference between the control compensation data and the preset control data, and determine the adjustment coefficient according to the data difference, and the model generation module is further configured to adjust the control compensation data according to the adjustment coefficient.
2. The lens anti-shake control system based on a ball motor according to claim 1, wherein, When the model generation module is configured to obtain the imaging evaluation value of the imaging module and establish a compensation model for the relationship between the control compensation data and the jitter data when the control module controls the ball screw motor, it includes: The model generation module is further configured to obtain the difference degree between the pixels of the edge and texture of the imaging, and the uniformity of each color pixel in the imaging; The model generation module is further configured to substitute the difference degree between the pixels of the edge, the difference degree between the pixels of the texture, and the uniformity of each color pixel in the imaging into a formula to obtain the imaging evaluation value, and the formula is as follows: where P is the imaging evaluation value, Gx and Gy are the gradients in the horizontal and vertical directions, F(i,j) is an element of the gray-level co-occurrence matrix, representing the occurrence frequency of pixel pairs with gray values i and j, and N is the number of gray levels. is the uniformity of the color pixels, n is the total number of the color pixels, w1, w2, and w3 are weighting coefficients, and the sum of w1, w2, and w3 is 1. The model generation module is further configured to obtain the control compensation data and the jitter data corresponding to the imaging, establish a compensation relation according to the imaging evaluation value P of the imaging and the corresponding control compensation data and jitter data, and establish the compensation model according to each compensation relation.
3. The lens anti-shake control system based on a ball motor according to claim 2, characterized in that, When the model generation module establishes the compensation model according to each compensation relation, it includes: The model generation module is further configured to obtain the imaging evaluation value P in each compensation relation, and determine the effective compensation relation according to the relationship between the imaging evaluation value P and the preset imaging evaluation value pre-configured by the model generation module; When the imaging evaluation value P is less than the preset imaging evaluation value, the model generation module determines that the compensation relation corresponding to the imaging evaluation value P is not the effective compensation relation; When the imaging evaluation value P is greater than or equal to the preset imaging evaluation value, the model generation module determines that the compensation relation corresponding to the imaging evaluation value P is the effective compensation relation; The model generation module is further configured to obtain the distance metric in each effective compensation relation according to the imaging evaluation value, and construct a distance matrix according to the distance metric; The model generation module is further configured to recursively merge each of the effective compensation relationships according to the distance matrix; The model generation module is further configured to establish the compensation model according to the effective compensation relationships after recursive merging.
4. The lens anti-shake control system based on a ball motor according to claim 1, characterized in that When the control module is configured to receive the collected electrical signal and control the ball motor according to the collected electrical signal, it includes: The control module is further configured to obtain the jitter direction of the lens according to the collected electrical signal, and determine the compensation direction for controlling the ball motor according to the jitter direction, where: The control module is further configured to determine the starting point of the ball motor according to the midpoint of the ball motor; The control module is further configured to set at least eight moving regions according to the moving range of the ball motor. When the ball motor is located in any one of the moving regions, the control module obtains the relative moving region direction of the moving region, and determines the relative moving region direction of the moving region as the compensation direction.
5. The lens anti-shake control system based on a ball motor according to claim 4, characterized in that, When the control module determines the compensation direction for controlling the ball motor, it includes: The control module is further configured to obtain the jitter distance of the lens according to the collected electrical signal, and determine whether to control the ball motor according to the relationship between the jitter distance and the first preset jitter distance and the second preset jitter distance pre-configured by the control module: When the jitter distance is less than the first preset jitter distance, the control module determines not to control the ball motor; When the jitter distance is greater than the second preset jitter distance, the control module determines not to control the ball motor; When the jitter distance is greater than or equal to the first preset jitter distance and less than the second preset jitter distance, the control module determines the electromagnetic intensity of the compensation direction according to the relationship between the jitter distance and the second preset jitter distance, and controls the ball motor according to the electromagnetic intensity of the compensation direction; Wherein, the first preset jitter distance is less than the second preset jitter distance.
6. The lens anti-shake control system based on a ball motor according to claim 5, characterized in that, When the control module determines the electromagnetic intensity of the compensation direction according to the relationship between the jitter distance and the second preset jitter distance, it includes: The control module is further configured to obtain the distance difference between the jitter distance and the second preset jitter distance, and determine the electromagnetic intensity of the compensation direction according to the relationship between the distance difference and the first preset distance difference and the second preset distance difference pre-configured by the control module; When the distance difference is less than or equal to the first preset distance difference, the control module determines that the electromagnetic intensity of the compensation direction is T1; When the distance difference is greater than the first preset distance difference and less than or equal to the second preset distance difference, the control module determines that the electromagnetic intensity of the compensation direction is T2; When the distance difference is greater than the second preset distance difference, the control module determines that the electromagnetic intensity of the compensation direction is T3; Among them, the first preset distance difference is less than the second preset distance difference, and T1 < T2 < T3.
7. The lens anti-shake control system based on a ball motor according to claim 6, characterized in that, When the control module determines that the electromagnetic intensity in the compensation direction is Ti, where i = 1, 2, 3, it includes: The control module is further configured to obtain the jitter frequency of the lens according to the collected electrical signal within a preset time period, and determine the number of jitters according to the jitter frequency; The control module is further configured to determine whether to adjust the electromagnetic intensity Ti in the compensation direction according to the relationship between the number of jitters and a preset number of jitters pre-configured in the control module; When the number of jitters is less than the preset number of jitters, the control module determines not to adjust the electromagnetic intensity Ti in the compensation direction; When the number of jitters is greater than or equal to the preset number of jitters, the control module determines an adjustment coefficient according to the relationship between the number of jitters and the preset number of jitters, and adjusts the electromagnetic intensity Ti in the compensation direction according to the adjustment coefficient.
8. The lens anti-shake control system based on a ball motor according to claim 7, wherein When the control module determines the adjustment coefficient according to the relationship between the number of jitters and the preset number of jitters, it includes: The control module is further configured to obtain the difference in the number of jitters between the number of jitters and the preset number of jitters, and determine the adjustment coefficient according to the relationship between the difference in the number of jitters and a first preset difference in the number of jitters and a second preset difference in the number of jitters pre-configured in the control module; When the difference in the number of jitters is less than the first preset difference in the number of jitters, the control module determines that the adjustment coefficient is M3; When the difference in the number of jitters is greater than or equal to the first preset difference in the number of jitters and less than the second preset difference in the number of jitters, the control module determines that the adjustment coefficient is M2; When the difference in the number of jitters is greater than or equal to the second preset difference in the number of jitters, the control module determines that the adjustment coefficient is M1; Among them, the first preset difference in the number of jitters is less than the second preset difference in the number of jitters, and M1 < M2 < M3 < 1.
9. The lens anti-shake control system based on a ball motor according to claim 8, characterized in that When the control module determines that the adjustment coefficient is Mi, where i = 1, 2, 3, it includes: The control module is further configured to obtain the jitter speed of the lens according to the collected electrical signal, and determine whether to correct the adjustment coefficient Mi according to the relationship between the jitter speed and a first preset jitter speed and a second preset jitter speed pre-configured in the control module; When the jitter speed is less than the first preset jitter speed, the control module determines not to correct the adjustment coefficient Mi; When the jitter speed is greater than or equal to the second preset jitter speed, the control module determines not to correct the adjustment coefficient Mi; When the jitter speed is greater than or equal to the first preset jitter speed and less than the second preset jitter speed, the control module determines a correction coefficient according to the relationship between the jitter speed and the second preset jitter speed, and corrects the adjustment coefficient Mi according to the correction coefficient; Among them, the first preset jitter speed is less than the second preset jitter speed.
10. The lens anti-shake control system based on a ball motor according to claim 9, characterized in that, When the control module determines the correction coefficient according to the relationship between the jitter speed and the second preset jitter speed, it includes: The control module is further configured to obtain the speed difference between the jitter speed and the second preset jitter speed, and determine the correction coefficient according to the relationship between the speed difference and the first preset speed difference and the second preset speed difference pre-configured in the control module; When the speed difference is less than the first preset speed difference, the control module determines that the correction coefficient is L3; When the speed difference is greater than or equal to the first preset speed difference and less than the second preset speed difference, the control module determines that the correction coefficient is L2; When the speed difference is greater than or equal to the second preset speed difference, the control module determines that the correction coefficient is L1; Wherein, the first preset speed difference is less than the second preset speed difference, and L1 < L2 < L3 < 1.