A system for anti-shake control of a mobile phone lens
The image stabilization control system, which works in collaboration with multiple modules, collects and dynamically adjusts the speed and movement distance of the ball motor in real time, solving the problem of poor image stabilization effect of mobile phone lenses in existing technologies and achieving more stable and clearer shooting results.
Patent Information
- Application Number
- CN202510623409.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2045-05-15
AI Technical Summary
Current mobile phone camera stabilization technology has poor image stabilization performance, especially in low light environments or when shooting with a telephoto lens, resulting in blurry images. Furthermore, traditional image stabilization systems have slow response speeds and insufficient compensation accuracy, making it difficult to cope with complex and ever-changing shaking scenarios.
The anti-shake control system employs a multi-module collaborative operation, including a data acquisition module, a shake processing module, a speed adjustment module, and a distance adjustment module. It collects shake parameters in real time, dynamically adjusts the speed and travel distance of the ball motor, and achieves precise anti-shake through multi-parameter collaborative optimization.
It significantly improves the stability and image clarity of mobile phone lenses during shooting, quickly responds to changes in shaking, adapts to different shaking scenarios, and improves the image stabilization effect and real-time performance.
Smart Images

Figure CN120264141B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of lens adjustment, in particular to a shake control system for a mobile phone lens. BACKGROUND
[0002] With the popularization of smartphone photography, users have increasingly high requirements for the quality of the photos. However, when shooting by hand, it is inevitable that the picture will be blurred due to hand shaking, especially in low light environments or long focal length shooting. In order to solve this problem, optical image stabilization (OIS) technology is widely used in mobile phone lenses.
[0003] Traditional anti-shake systems usually detect shaking through sensors and drive the lens or image sensor for compensation, but have problems such as slow response speed and insufficient compensation accuracy. In addition, existing technologies rely on a single parameter for compensation, making it difficult to cope with complex and variable shaking scenarios.
[0004] Therefore, it is necessary to provide a shake control system for a mobile phone lens to solve the problem of poor anti-shake effect of existing mobile phone lenses. SUMMARY
[0005] In view of this, the present application provides a shake control system for a mobile phone lens, which aims to solve the problem of poor anti-shake effect of existing mobile phone lenses.
[0006] The present application provides a shake control system for a mobile phone lens, comprising:
[0007] The acquisition module is configured to acquire the state of the mobile phone shooting, and if shaking occurs when the mobile phone is shooting, to acquire the shaking parameters of the mobile phone; wherein the shaking parameters include the shaking direction, the shaking speed and the shaking offset amplitude;
[0008] The shaking processing module is configured to control the balls in the ball motor to move in the opposite direction of the shaking direction according to the shaking direction, to obtain the initial speed of the balls according to the shaking speed, and to obtain the initial movement distance of the balls according to the shaking offset amplitude;
[0009] The speed adjustment module is configured to calculate the shaking offset amplitude per unit time, to calculate the shaking offset amplitude change value in adjacent two unit times, to determine whether to adjust the initial speed according to the shaking offset amplitude change value, to determine the adjustment coefficient of the initial speed according to the shaking offset amplitude change value if it is determined that the initial speed needs to be adjusted, to adjust the initial speed by the adjustment coefficient to obtain the final speed;
[0010] The distance adjustment module is configured to obtain a shaking acceleration according to the shaking speed, determine whether to adjust an initial moving distance of the ball according to the shaking acceleration, and adjust the initial moving distance according to the shaking acceleration to obtain a final moving distance if it is determined that the initial moving distance needs to be adjusted.
[0011] The decision module is configured to control the ball to move to a direction opposite to the shaking direction at the final speed and the final moving distance.
[0012] Further, the shaking processing module is configured to obtain an initial speed of the ball according to the shaking speed and an initial moving distance of the ball according to the shaking offset amplitude, and includes:
[0013] According to the shaking speed when the mobile phone shakes, an average shaking speed of the mobile phone shaking is calculated, and the average shaking speed is taken as the initial speed of the ball.
[0014] The shaking offset amplitude is taken as the initial moving distance of the ball.
[0015] Further, the speed adjustment module is configured to determine whether to adjust the initial speed according to the shaking offset amplitude change value, and includes:
[0016] An offset change average value of the shaking offset amplitude change value is calculated, and an adjustment coefficient is determined according to the offset change average value.
[0017] If the offset change average value is greater than zero, the adjustment coefficient is a positive value.
[0018] If the offset change average value is less than zero, the adjustment coefficient is a negative value.
[0019] If the offset change average value is zero, the adjustment coefficient is zero.
[0020] Further, if the offset change average value is greater than zero, the adjustment coefficient is a positive value, and includes:
[0021] A first offset change average value and a second offset change average value are set, the first offset change average value is less than the second offset change average value, and the first offset change average value is greater than zero.
[0022] If the offset change average value is greater than zero and less than or equal to the first offset change average value, the initial speed is adjusted by a first adjustment coefficient.
[0023] If the offset change average value is greater than the first offset change average value and less than or equal to the second offset change average value, the initial speed is adjusted by a second adjustment coefficient.
[0024] if the offset variation average is greater than the second offset variation average, adjusting the initial speed by a third adjustment coefficient;
[0025] wherein the first adjustment coefficient is less than the second adjustment coefficient, the second adjustment coefficient is less than the third adjustment coefficient, and the first adjustment coefficient is greater than zero.
[0026] Further, the if the offset variation average is less than zero, the adjustment coefficient is negative, comprising:
[0027] setting a third offset variation average and a fourth offset variation average, the third offset variation average is less than the fourth offset variation average, and the third offset variation average is less than zero;
[0028] if the offset variation average is less than zero, and the offset variation average is greater than or equal to the third offset variation average, adjusting the initial speed by a fourth adjustment coefficient;
[0029] if the offset variation average is less than the third offset variation average, and greater than or equal to the fourth offset variation average, adjusting the initial speed by a fifth adjustment coefficient;
[0030] if the offset variation average is less than the fourth offset variation average, adjusting the initial speed by a sixth adjustment coefficient;
[0031] wherein the fourth adjustment coefficient is greater than the fifth adjustment coefficient, the fifth adjustment coefficient is greater than the sixth adjustment coefficient, and the fourth adjustment coefficient is less than zero.
[0032] Further, the speed adjustment module is configured to adjust the initial speed by the adjustment coefficient to obtain a final speed, comprising:
[0033] calculating the final speed by the following formula:
[0034] V2 = V1 * (1 + ki);
[0035] In the above formula, V2 represents the final speed, V1 represents the initial speed, and ki represents the i adjustment coefficient, wherein i = 1, 2, 3, 4, 5, 6.
[0036] Further, the distance adjustment module is configured to obtain a jitter acceleration according to the jitter speed, and determine whether to adjust the initial moving distance of the ball according to the jitter acceleration, comprising:
[0037] The jitter acceleration of each unit time is calculated, and a jitter acceleration threshold is set. If there is a jitter acceleration whose absolute value is greater than or equal to the jitter acceleration threshold, it is determined that the initial moving distance of the ball needs to be adjusted.
[0038] Otherwise, it is determined that the initial moving distance of the ball does not need to be adjusted.
[0039] Further, the distance adjustment module is configured to adjust the initial moving distance according to the jitter acceleration to obtain a final moving distance, including:
[0040] A plurality of speed collection time points are set, the jitter acceleration at the speed collection time points is obtained, and the jitter acceleration change value of adjacent two speed collection time points is calculated.
[0041] The acceleration change average value of the jitter acceleration change value is calculated, and the acceleration change standard deviation is calculated according to the jitter acceleration change value and the acceleration change average value.
[0042] The initial moving distance is adjusted according to the acceleration change standard deviation and the acceleration change average value.
[0043] Further, when the initial moving distance is adjusted according to the acceleration change standard deviation and the acceleration change average value, including:
[0044] A first standard deviation and a second standard deviation are set, and the first standard deviation is less than the second standard deviation.
[0045] If the acceleration change standard deviation is less than the first standard deviation, a first adjustment coefficient is used to adjust the initial moving distance.
[0046] If the acceleration change standard deviation is greater than or equal to the first standard deviation and less than or equal to the second standard deviation, a second adjustment coefficient is used to adjust the initial moving distance.
[0047] If the acceleration change standard deviation is greater than the second standard deviation, a third adjustment coefficient is used to adjust the initial moving distance.
[0048] The first adjustment coefficient is less than the second adjustment coefficient, the second adjustment coefficient is less than the third adjustment coefficient, and the value range of the first adjustment coefficient, the second adjustment coefficient and the third adjustment coefficient is (0, 1).
[0049] Further, when the initial moving distance is adjusted according to the acceleration change standard deviation and the acceleration change average value, further including:
[0050] If the average value of the acceleration change is greater than or equal to zero, the final moving distance is calculated by the following formula:
[0051] S2 = S1 * (1 + tj) ;
[0052] In the above formula, S2 represents the final moving distance, S1 represents the initial moving distance, and tj represents the jth adjustment coefficient.
[0053] If the average value of the acceleration change is less than zero, the final moving distance is calculated by the following formula:
[0054] S2 = S1 * (1 - tj) ;
[0055] In the above formula, S2 represents the final moving distance, S1 represents the initial moving distance, and tj represents the jth adjustment coefficient.
[0056] Compared with the prior art, the beneficial effects of the present application are that the present application can effectively improve the stability of the mobile phone lens during shooting through the cooperative work of multiple modules. First, the acquisition module acquires the jitter parameters in real time to provide accurate data support for subsequent processing. The jitter processing module controls the reverse movement of the ball motor according to the jitter direction, and calculates the initial speed and moving distance of the ball in combination with the jitter speed and offset amplitude to quickly respond to jitter changes. The speed adjustment module dynamically adjusts the speed of the ball by analyzing the change value of the jitter offset amplitude, further improving the response speed and stability of the system. The distance adjustment module optimizes the moving distance of the ball according to the jitter acceleration to ensure that the lens can accurately offset the jitter. Finally, the decision module controls the ball motor to complete accurate anti-shake by comprehensively considering the final speed and moving distance. The advantages of the present application are: strong real-time performance, capable of quickly responding to jitter changes; flexible dynamic adjustment mechanism, suitable for different jitter scenes; through multi-parameter cooperative optimization, the anti-shake effect is significantly improved to ensure that the shooting picture is clear and stable. BRIEF DESCRIPTION OF DRAWINGS
[0057] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments with reference made to the accompanying drawings. The drawings are for purposes of illustration only and are not intended to be limiting in any respect. Moreover, the use of the same reference symbols in different drawings indicates similar or identical items.
[0058] Figure 1 A functional block diagram of the anti-shake control system for a mobile phone lens provided by the embodiments of the present application is shown. DETAILED DESCRIPTION
[0059] Exemplary embodiments of the present disclosure will be described in greater detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms without being limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be thoroughly and completely comprehended, and so that the scope of the present disclosure will be completely conveyed to those skilled in the art. It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
[0060] In some embodiments of the present application, referring to Figure 1 The present embodiment provides a system for anti-shake control of a mobile phone lens, comprising:
[0061] A collection module is configured to collect a mobile phone shooting state, and collect a shaking parameter of the mobile phone if shaking occurs when the mobile phone is shooting. The shaking parameter includes a shaking direction, a shaking speed, and a shaking offset amplitude.
[0062] A shaking processing module is configured to control a ball in a ball motor to move in a direction opposite to the shaking direction according to the shaking direction, obtain an initial speed of the ball according to the shaking speed, and obtain an initial moving distance of the ball according to the shaking offset amplitude.
[0063] A speed adjusting module is configured to calculate a shaking offset amplitude per unit time, calculate a shaking offset amplitude change value in adjacent two unit times, determine whether to adjust the initial speed according to the shaking offset amplitude change value, determine an adjustment coefficient of the initial speed according to the shaking offset amplitude change value if it is determined that the initial speed needs to be adjusted, adjust the initial speed by the adjustment coefficient to obtain a final speed, and output the final speed.
[0064] A distance adjusting module is configured to obtain a shaking acceleration according to the shaking speed, determine whether to adjust the initial moving distance of the ball according to the shaking acceleration, adjust the initial moving distance according to the shaking acceleration if it is determined that the initial moving distance needs to be adjusted, and obtain a final moving distance.
[0065] A decision module is configured to control the ball to move in the direction opposite to the shaking direction at the final speed and the final moving distance.
[0066] It can be understood that the present application can effectively improve the stability of the mobile phone lens during shooting through the cooperation of multiple modules. First, the acquisition module collects the jitter parameters in real time, providing accurate data support for subsequent processing. The jitter processing module controls the ball motor to move in the opposite direction according to the jitter direction, and calculates the initial speed and moving distance of the ball according to the jitter speed and offset amplitude, quickly responding to the jitter changes. The speed adjustment module dynamically adjusts the speed of the ball by analyzing the change value of the jitter offset amplitude, further improving the response speed and stability of the system. The distance adjustment module optimizes the moving distance of the ball according to the jitter acceleration, ensuring that the lens can accurately offset the jitter. Finally, the decision module controls the ball motor to complete the accurate anti-shake by comprehensively considering the final speed and moving distance. The advantages of the present application are: strong real-time, can quickly respond to jitter changes; dynamic adjustment mechanism is flexible, suitable for different jitter scenes; through multi-parameter collaborative optimization, the anti-shake effect is significantly improved, ensuring that the shooting picture is clear and stable.
[0067] Specifically, the ball motor is an electric mechanism commonly used to eliminate the jitter effect of camera or mobile phone lens during shooting. It uses ball technology to control the position and movement of the rolling ball to achieve image stabilization. The structure and working principle of the ball motor are as follows: Structure: The ball motor includes a magnet, a ball track and a vibration sensor. The magnet is an electromagnet used to generate a magnetic field, and the ball bearing is directly installed on the camera or mobile phone module, composed of a rolling ball and a supporting ring. The axial movement of the ball bearing is realized by the position and movement of the rolling ball, thereby eliminating the jitter of the camera or mobile phone lens. The vibration sensor is used to detect the jitter of the camera or mobile phone, and the direction and amplitude signals of these jitters are transmitted to the magnet, and the ball bearing generates reverse movement to offset the jitter of the camera or mobile phone. Principle: The ball motor uses the interaction of the magnetic field and the ball bearing to eliminate the jitter of the camera or mobile phone. When the vibration sensor detects the jitter of the camera or mobile phone, it transmits these signals to the magnet through the circuit. Under the action of the magnetic field, the ferromagnetic rolling ball inside the ferromagnetic ball bearing is magnetized and generates an attractive force, thereby moving a certain distance under the action of the magnetic field to offset the jitter of the camera or mobile phone. The moving distance and speed are determined by the current size and direction of the control magnetic field. As the direction and intensity of the camera or mobile phone jitter change, the ball bearing also moves accordingly. Therefore, the jitter effect of the camera or mobile phone is eliminated, and a more stable image is obtained.
[0068] In summary, the ball motor is an electric motor that controls the position and movement of the ferromagnetic ball bearing through electromagnetism to eliminate the jitter effect of the camera or mobile phone lens. It can sense the jitter of the photographic equipment, adjust the reverse jitter to balance the image, and thus provide a clearer and more stable image shooting effect.
[0069] In some embodiments of the present application, the jitter processing module is configured to obtain an initial speed of the ball according to the jitter speed, and obtain an initial movement distance of the ball according to the jitter offset amplitude, and the jitter processing module comprises:
[0070] According to the jitter speed when the mobile phone is jittering, the average jitter speed of the mobile phone jittering is calculated, and the average jitter speed is taken as the initial speed of the ball.
[0071] The jitter offset amplitude is taken as the initial movement distance of the ball.
[0072] It can be understood that by calculating the average jitter speed of the mobile phone jittering and taking it as the initial speed of the ball, the noise in the instantaneous jitter speed can be effectively smoothed, and the stability and reliability of the ball motor control are improved. At the same time, the jitter offset amplitude is directly taken as the initial movement distance of the ball, which simplifies the calculation process, reduces the system complexity, and ensures that the ball can quickly respond to jitter changes and achieve accurate compensation. This design not only improves the real-time performance and adaptability of the anti-jitter system, but also reduces the risk of over-adjustment or insufficient compensation, thereby significantly improving the stability and image clarity of the mobile phone lens during shooting.
[0073] In some embodiments of the present application, the speed adjustment module is configured to determine whether to adjust the initial speed according to the jitter offset amplitude change value, and the speed adjustment module comprises:
[0074] An offset change average value of the jitter offset amplitude change value is calculated, and an adjustment coefficient is determined according to the offset change average value;
[0075] If the offset change average value is greater than zero, the adjustment coefficient is a positive value;
[0076] If the offset change average value is less than zero, the adjustment coefficient is a negative value;
[0077] If the offset change average value is zero, the adjustment coefficient is zero.
[0078] It can be understood that by calculating the offset change average value of the jitter offset amplitude change value and determining the sign of the adjustment coefficient according to the positive and negative situations, the change trend of the jitter can be more accurately reflected. When the offset change average value is positive, the adjustment coefficient is positive, indicating that the ball speed needs to be increased to cope with the intensification of the jitter; when the offset change average value is negative, the adjustment coefficient is negative, indicating that the ball speed needs to be reduced to adapt to the weakening of the jitter; when the offset change average value is zero, the adjustment coefficient is zero, indicating that no adjustment is needed. This design enables the system to dynamically adapt to the change trend of the jitter, avoiding energy waste caused by excessive adjustment, and preventing the anti-jitter effect from being reduced due to insufficient compensation, thereby significantly improving the accuracy and efficiency of the anti-jitter control.
[0079] In some embodiments of the application, the step of adjusting the initial speed by an adjustment coefficient comprises:
[0080] setting a first offset change average and a second offset change average, the first offset change average being less than the second offset change average, and the first offset change average being greater than zero;
[0081] adjusting the initial speed by a first adjustment coefficient if the offset change average is greater than zero and the offset change average is less than or equal to the first offset change average;
[0082] adjusting the initial speed by a second adjustment coefficient if the offset change average is greater than the first offset change average and less than or equal to the second offset change average;
[0083] adjusting the initial speed by a third adjustment coefficient if the offset change average is greater than the second offset change average;
[0084] wherein the first adjustment coefficient is less than the second adjustment coefficient, the second adjustment coefficient is less than the third adjustment coefficient, and the first adjustment coefficient is greater than zero.
[0085] In some embodiments of the application, the step of adjusting the initial speed by an adjustment coefficient comprises:
[0086] setting a third offset change average and a fourth offset change average, the third offset change average being less than the fourth offset change average, and the third offset change average being less than zero;
[0087] adjusting the initial speed by a fourth adjustment coefficient if the offset change average is less than zero and the offset change average is greater than or equal to the third offset change average;
[0088] adjusting the initial speed by a fifth adjustment coefficient if the offset change average is less than the third offset change average and greater than or equal to the fourth offset change average;
[0089] adjusting the initial speed by a sixth adjustment coefficient if the offset change average is less than the fourth offset change average;
[0090] wherein the fourth adjustment coefficient is greater than the fifth adjustment coefficient, the fifth adjustment coefficient is greater than the sixth adjustment coefficient, and the fourth adjustment coefficient is less than zero.
[0091] In some embodiments of the present application, the speed adjustment module is configured to adjust the initial speed by the adjustment coefficient to obtain a final speed, including:
[0092] The final speed is calculated by the following formula:
[0093] V2 = V1 * (1 + ki);
[0094] In the above formula, V2 represents the final speed, V1 represents the initial speed, and ki represents the i adjustment coefficient, where i = 1, 2, 3, 4, 5, 6.
[0095] It can be understood that this embodiment can more finely dynamically adjust the initial speed of the ball according to different ranges of average value of jitter offset change by introducing multi-stage adjustment coefficients (first to sixth adjustment coefficients) and a segmented judgment mechanism. For positive average value of jitter offset change, the system is divided into three intervals according to its size, and the first, second, and third adjustment coefficients are used respectively, to ensure that the ball speed gradually increases when jitter intensifies. For negative average value of jitter offset change, the system is also divided into three intervals, and the fourth, fifth, and sixth adjustment coefficients are used respectively, to ensure that the ball speed gradually decreases when jitter weakens. This segmented adjustment mechanism not only improves the adaptability of the system, but also effectively avoids the problems of insufficient compensation or overcompensation caused by too large or too small adjustment amplitude. By calculating the final speed, the system can quickly and accurately respond to jitter changes, significantly improving the real-time performance and stability of the anti-shake control, while optimizing energy consumption and prolonging the device's battery life.
[0096] In some embodiments of the present application, the distance adjustment module is configured to obtain a jitter acceleration according to the jitter speed, and judge whether to adjust the initial movement distance of the ball, including:
[0097] Calculate the jitter acceleration per unit time and set a jitter acceleration threshold. If there is a jitter acceleration whose absolute value is greater than or equal to the jitter acceleration threshold, it is determined that the initial movement distance of the ball needs to be adjusted.
[0098] Otherwise, it is determined that the initial movement distance of the ball does not need to be adjusted.
[0099] In some embodiments of the present application, the distance adjustment module is configured to adjust the initial movement distance according to the jitter acceleration to obtain a final movement distance, including:
[0100] Set a plurality of speed collection time points, obtain the jitter acceleration at the speed collection time points, and calculate the jitter acceleration change value between adjacent two speed collection time points.
[0101] an acceleration variation average value of the shaking acceleration variation value is calculated, and a shaking acceleration variation standard deviation is calculated according to the shaking acceleration variation value and the acceleration variation average value;
[0102] The initial movement distance is adjusted according to the acceleration variation standard deviation and the acceleration variation average value.
[0103] It can be understood that, by introducing the analysis mechanism of shaking acceleration and its variation value, the initial movement distance of the ball can be more accurately judged and adjusted, thereby improving the performance of the anti-shake system. First, the distance adjustment module calculates the shaking acceleration of each unit time and compares it with the preset shaking acceleration threshold to determine whether the initial movement distance of the ball needs to be adjusted. This threshold judgment mechanism can effectively filter out minor shaking and avoid unnecessary adjustment, while ensuring timely response in the case of severe shaking. Second, the module sets multiple speed collection time points, calculates the shaking acceleration variation value of adjacent time points, and further calculates the acceleration variation average value and standard deviation to comprehensively reflect the dynamic change trend of shaking. Finally, the initial movement distance is adjusted based on the acceleration variation average value and standard deviation, so that the system can dynamically optimize the movement distance of the ball according to the intensity and volatility of shaking. Through the threshold judgment and dynamic adjustment mechanism, the real-time performance and adaptability of the system are improved; by using the acceleration variation average value and standard deviation, the complex changes of shaking can be more accurately reflected, avoiding overcompensation or undercompensation; the segmented adjustment strategy optimizes energy consumption and prolongs the device's battery life. Overall, this embodiment significantly improves the accuracy and stability of anti-shake control, providing users with a clearer shooting experience.
[0104] In some embodiments of the present application, when the initial movement distance is adjusted according to the acceleration variation standard deviation and the acceleration variation average value, it includes:
[0105] a first standard deviation and a second standard deviation are set, the first standard deviation being smaller than the second standard deviation;
[0106] If the acceleration variation standard deviation is smaller than the first standard deviation, a first adjustment coefficient is used to adjust the initial movement distance;
[0107] If the acceleration variation standard deviation is greater than or equal to the first standard deviation and smaller than or equal to the second standard deviation, a second adjustment coefficient is used to adjust the initial movement distance;
[0108] If the acceleration variation standard deviation is greater than the second standard deviation, a third adjustment coefficient is used to adjust the initial movement distance;
[0109] The first adjustment coefficient is less than the second adjustment coefficient, the second adjustment coefficient is less than the third adjustment coefficient, and the first adjustment coefficient, the second adjustment coefficient and the third adjustment coefficient are all in the range of (0, 1).
[0110] It can be understood that by introducing the segmented adjustment mechanism of the acceleration change standard deviation, the initial movement distance of the ball can be dynamically adjusted more finely according to the volatility of the jitter, thereby significantly improving the performance and adaptability of the anti-shake system. Specifically, the system sets two standard deviation thresholds (the first standard deviation and the second standard deviation), divides the acceleration change standard deviation into three intervals, and for each interval, the system uses different adjustment coefficients, and the adjustment coefficients increase in turn. This segmented adjustment mechanism can flexibly adjust the movement distance of the ball according to the volatility strength of the jitter: when the standard deviation is small, a smaller adjustment coefficient is used to avoid excessive adjustment; when the standard deviation is large, a larger adjustment coefficient is used to ensure that the system can effectively offset the severe jitter. In addition, the value range of the adjustment coefficient is limited to (0, 1), which ensures the rationality and controllability of the adjustment amplitude. Through the segmented adjustment mechanism, the system can more accurately respond to different intensity of jitter, improve the anti-shake effect; avoid the problem of overcompensation or insufficient compensation caused by a single adjustment strategy; optimize energy consumption and prolong the device battery life. Overall, this embodiment significantly improves the accuracy and stability of anti-shake control, providing users with a clearer shooting experience.
[0111] In some embodiments of the present application, when adjusting the initial movement distance according to the acceleration change standard deviation and the acceleration change average, the method further comprises:
[0112] If the acceleration change average is greater than or equal to zero, the final movement distance is calculated by the following formula:
[0113] S2=S1*(1+tj);
[0114] In the above formula, S2 represents the final movement distance, S1 represents the initial movement distance, and tj represents the jth adjustment coefficient.
[0115] If the acceleration change average is less than zero, the final movement distance is calculated by the following formula:
[0116] S2=S1*(1-tj);
[0117] In the above formula, S2 represents the final movement distance, S1 represents the initial movement distance, and tj represents the jth adjustment coefficient.
[0118] It can be understood that by combining the average value of acceleration change and the adjustment coefficient, the final moving distance calculation of the ball is further optimized, thereby improving the accuracy and adaptability of the anti-shake system. Specifically, the system uses different calculation formulas according to the positive and negative of the average value of acceleration change: when the average value of acceleration change is greater than or equal to zero, it indicates that the jitter trend is intensifying, and the system increases the moving distance of the ball through the formula to more effectively offset the jitter; when the average value of acceleration change is less than zero, it indicates that the jitter trend is weakening, and the system reduces the moving distance of the ball through the formula to avoid overcompensation. By judging the positive and negative of the average value of acceleration change, the system can more accurately reflect the dynamic trend of the jitter and achieve more reasonable adjustment; in combination with the adjustment coefficient, the system can flexibly adjust the moving distance according to the volatility strength of the jitter (determined by the standard deviation) to ensure the optimization of the anti-shake effect; the problems of energy waste or insufficient compensation caused by a single adjustment strategy are avoided, and the efficiency and stability of the system are improved. Overall, this embodiment significantly improves the real-time and accuracy of anti-shake control, providing users with a clearer and more stable shooting experience.
[0119] Those skilled in the art will appreciate that embodiments of the application can be provided as methods, systems or computer program products. Accordingly, the application can be embodied in the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the application can be embodied in the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk memory, CD-ROM, optical memory, etc.) having computer usable program code embodied therein.
[0120] The application is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in a flow or multiple flows and / or blocks Figure 1 The functions specified in a flow or multiple flows and / or blocks
[0121] These computer program instructions can also be stored in a computer-readable memory that can direct the computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction devices that implement the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in a flow or multiple flows and / or blocks Figure 1the function specified in the one or more blocks.
[0122] These computer program instructions can also be loaded into computer or other programmable data processing devices, so that a series of operation steps are performed on the computer or other programmable data processing devices to generate computer-implemented processes, so that the instructions executed on the computer or other programmable devices provide processes for implementing the flow Figure 1 one or more flows and / or blocks Figure 1 the steps of the function specified in the one or more blocks.
[0123] Finally, it should be noted that: the above examples are only used to illustrate the technical solutions of the present application, but not to limit it, although the above embodiments of the present application have been described in detail, those skilled in the art should understand: the specific embodiments of the present application can be modified or replaced by the same, without departing from the spirit and scope of the present application, any modification or equivalent replacement, which should be covered in the protection scope of the claims of the present application.
Claims
1. A system for anti-shake control of a mobile phone lens, characterized in that, The method comprises the following steps: A collection module is configured to collect a mobile phone shooting state, and collect a mobile phone jitter parameter if jitter occurs when the mobile phone is shooting; wherein the jitter parameter comprises a jitter direction, a jitter speed and a jitter offset amplitude; A jitter processing module is configured to control a ball in a ball motor to move in a direction opposite to the jitter direction according to the jitter direction, obtain an initial speed of the ball according to the jitter speed, and obtain an initial moving distance of the ball according to the jitter offset amplitude; A speed adjustment module is configured to calculate a jitter offset amplitude per unit time, calculate a jitter offset amplitude change value in adjacent two unit times, determine whether to adjust the initial speed according to the jitter offset amplitude change value, calculate an offset change average value of the jitter offset amplitude change value, and determine that the initial speed needs to be adjusted when the offset change average value is not zero; If it is determined that the initial speed needs to be adjusted, an adjustment coefficient of the initial speed is determined according to the jitter offset amplitude change value, the initial speed is adjusted by using the adjustment coefficient, and a final speed is obtained; wherein a plurality of intervals are set according to the offset change average value, different adjustment coefficients are used in different intervals, and the ball speed is gradually increased or decreased; A distance adjustment module is configured to obtain a jitter acceleration according to the jitter speed, determine whether to adjust the initial moving distance of the ball according to the jitter acceleration, calculate the jitter acceleration per unit time, set a jitter acceleration threshold, and determine that the initial moving distance of the ball needs to be adjusted when there is a jitter acceleration absolute value greater than or equal to the jitter acceleration threshold; If it is determined that the initial moving distance needs to be adjusted, the initial moving distance is adjusted according to the jitter acceleration, and a final moving distance is obtained; wherein an acceleration change standard deviation and an acceleration change average value are calculated, the acceleration change standard deviation is divided into a plurality of intervals, different adjustment coefficients are used in each interval to gradually increase or decrease the moving distance of the ball, and the positive or negative of the adjustment coefficient is determined according to the acceleration change average value; A decision module is configured to control the ball to move in a direction opposite to the jitter direction at the final speed and the final moving distance. 2.The anti-shake control system for a mobile phone lens according to claim 1, wherein, When the jitter processing module is configured to obtain the initial speed of the ball according to the jitter speed and obtain the initial moving distance of the ball according to the jitter offset amplitude, the following steps are included: An average jitter speed of the mobile phone is calculated according to the jitter speed when the mobile phone is jittering, and the average jitter speed is taken as the initial speed of the ball; The jitter offset amplitude is taken as the initial moving distance of the ball.
3. The anti-shake control system for a mobile phone lens according to claim 2, wherein, When the speed adjustment module is configured to determine whether to adjust the initial speed according to the jitter offset amplitude change value, the following steps are included: An offset change average value of the jitter offset amplitude change value is calculated, and an adjustment coefficient is determined according to the offset change average value; If the offset change average value is greater than zero, the adjustment coefficient is a positive value; If the offset change average value is less than zero, the adjustment coefficient is a negative value; If the offset change average value is zero, the adjustment coefficient is zero.
4. The anti-shake control system for a mobile phone lens according to claim 3, wherein, The method further comprises: setting a first offset change average and a second offset change average, the first offset change average being less than the second offset change average, and the first offset change average being greater than zero; if the offset change average is greater than zero and less than or equal to the first offset change average, adjusting the initial speed by a first adjustment coefficient; if the offset change average is greater than the first offset change average and less than or equal to the second offset change average, adjusting the initial speed by a second adjustment coefficient; if the offset change average is greater than the second offset change average, adjusting the initial speed by a third adjustment coefficient; wherein the first adjustment coefficient is less than the second adjustment coefficient, the second adjustment coefficient is less than the third adjustment coefficient, and the first adjustment coefficient is greater than zero.
5. The anti-shake control system for a mobile phone lens according to claim 4, wherein, The method further comprises: setting a third offset change average and a fourth offset change average, the third offset change average being less than the fourth offset change average, and the third offset change average being less than zero; if the offset change average is less than zero and greater than or equal to the third offset change average, adjusting the initial speed by a fourth adjustment coefficient; if the offset change average is less than the third offset change average and greater than or equal to the fourth offset change average, adjusting the initial speed by a fifth adjustment coefficient; if the offset change average is less than the fourth offset change average, adjusting the initial speed by a sixth adjustment coefficient; wherein the fourth adjustment coefficient is greater than the fifth adjustment coefficient, the fifth adjustment coefficient is greater than the sixth adjustment coefficient, and the fourth adjustment coefficient is less than zero.
6. The anti-shake control system for a mobile phone lens according to claim 5, wherein, The method further comprises: adjusting the initial speed by the adjustment coefficient to obtain a final speed, wherein the final speed is calculated by: V2=V1* (1+ki); wherein V2 represents the final speed, V1 represents the initial speed, and ki represents the i adjustment coefficient, wherein i=1, 2, 3, 4, 5, 6.
7. The anti-shake control system for a mobile phone lens according to claim 6, wherein, The method further comprises: calculating the jitter acceleration per unit time, and setting a jitter acceleration threshold value; if there is a jitter acceleration whose absolute value is greater than or equal to the jitter acceleration threshold value, it is determined that the initial movement distance of the ball needs to be adjusted; otherwise, it is determined that the initial movement distance of the ball does not need to be adjusted. The method further comprises:
8. The anti-shake control system for a mobile phone lens according to claim 7, wherein, adjusting the initial movement distance according to the jitter acceleration to obtain a final movement distance. A plurality of speed collection time points are set, the jitter acceleration at the speed collection time points is obtained, and the jitter acceleration change value of two adjacent speed collection time points is calculated; An acceleration change average value of the jitter acceleration change value is calculated, and an acceleration change standard deviation is calculated according to the jitter acceleration change value and the acceleration change average value; The initial moving distance is adjusted according to the acceleration change standard deviation and the acceleration change average value. 9.The anti-shake control system for a mobile phone lens according to claim 8, wherein, The adjustment of the initial moving distance according to the acceleration change standard deviation and the acceleration change average value comprises: A first standard deviation and a second standard deviation are set, and the first standard deviation is smaller than the second standard deviation; If the acceleration change standard deviation is smaller than the first standard deviation, a first adjustment coefficient is used to adjust the initial moving distance; If the acceleration change standard deviation is greater than or equal to the first standard deviation and smaller than or equal to the second standard deviation, a second adjustment coefficient is used to adjust the initial moving distance; If the acceleration change standard deviation is greater than the second standard deviation, a third adjustment coefficient is used to adjust the initial moving distance; The first adjustment coefficient is smaller than the second adjustment coefficient, the second adjustment coefficient is smaller than the third adjustment coefficient, and the value range of the first adjustment coefficient, the second adjustment coefficient and the third adjustment coefficient is (0, 1).
10. The anti-shake control system for a mobile phone lens according to claim 9, wherein, The adjustment of the initial moving distance according to the acceleration change standard deviation and the acceleration change average value further comprises: If the acceleration change average value is greater than or equal to zero, the final moving distance is calculated by the following formula: S2=S1*(1+tj); In the formula, S2 represents the final moving distance, S1 represents the initial moving distance, and tj represents the jth adjustment coefficient; If the acceleration change average value is smaller than zero, the final moving distance is calculated by the following formula: S2=S1*(1-tj); In the formula, S2 represents the final moving distance, S1 represents the initial moving distance, and tj represents the jth adjustment coefficient.
Citation Information
Patent Citations
Anti-shake stroke adjustment method and apparatus, mobile device and computer storage medium
CN107181914A
Lens anti-shake method and device, computer equipment and storage medium
CN113542612A