Shooting anti-shake method and device, computer readable medium and electronic equipment

By detecting and correcting the current true position of the optical anti-shake module and determining the target compensation position, it solves the problem of the optical anti-shake system failing when the camera position changes suddenly, improves the accuracy and effect of the optical anti-shake, and enables it to Start anti-shake immediately and follow the jitter data for effective compensation.

CN118632126APending Publication Date: 2024-09-10GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310237543.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing optical image stabilization system fails when the camera position changes suddenly, resulting in poor accuracy and effect of optical image stabilization results.

Method used

By detecting the current true position of the optical anti-shake module and correcting it according to the ideal compensation position, the target compensation position is determined, and then the optical anti-shake module is controlled to perform shake compensation, ensuring that anti-shake starts immediately after a sudden change in position, improving the accuracy of shake compensation. and followability.

Benefits of technology

It effectively avoids the problem of optical anti-shake failure in some sudden scenes, improves the accuracy and effect of optical anti-shake results, and enables the optical anti-shake module to accurately follow the shake data for anti-shake.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632126A
    Figure CN118632126A
Patent Text Reader

Abstract

The invention provides a shooting anti-shake method and device, a computer readable medium and electronic equipment, and relates to the technical field of image and video shooting. The method comprises the following steps: acquiring detected jitter data; determining an ideal compensation position of the optical anti-shake module according to the shake data; determining a current real position corresponding to the optical anti-shake module, and determining a target compensation position according to the ideal compensation position and the current real position; and controlling the optical anti-shake module to perform shake compensation based on the target compensation position. According to the invention, the ideal compensation position is corrected through the current real position of the optical anti-shake module, so that even if the real position of the optical anti-shake module is suddenly changed due to the influence of other factors such as external force, the corrected ideal compensation position can enable the whole anti-shake system to start anti-shake from the suddenly changed position; the accuracy of an anti-shake result is effectively improved, and the problem of optical anti-shake failure in part of scenes is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the development of science and technology, taking photos or videos with camera modules on terminal devices such as smartphones has become an indispensable way for people to record their lives. Currently, most camera modules are equipped with optical image stabilization (OIS), which roughly works by detecting tiny movements through the gyroscope in the lens and then transmitting the signal to the microprocessor. The processor then calculates the displacement that needs to be compensated, and then compensates it according to the lens shaking direction and displacement through the compensation lens group, thereby effectively overcoming the image blur caused by camera vibration.

[0003] At present, most optical image stabilization systems cannot effectively solve the problem of optical image stabilization failure caused by sudden changes in camera position in some scenarios, resulting in low accuracy of optical image stabilization results and poor optical image stabilization effect. Summary of the invention

[0004] The purpose of the present disclosure is to provide a shooting anti-shake method, a shooting anti-shake device, a computer-readable medium and an electronic device, so as to avoid the problem of optical anti-shake failure caused by sudden change of camera position in some scenes, improve the accuracy of optical anti-shake results, and ensure the optical anti-shake effect.

[0005] According to a first aspect of the present disclosure, a shooting anti-shake method is provided, comprising:

[0006] Get the detected jitter data;

[0007] Determining an ideal compensation position of an optical image stabilization module according to the jitter data;

[0008] Determine a current real position corresponding to the optical image stabilization module, and determine a target compensation position according to the ideal compensation position and the current real position;

[0009] The optical image stabilization module is controlled to perform shake compensation based on the target compensation position.

[0010] According to a second aspect of the present disclosure, there is provided a shooting anti-shake device, comprising:

[0011] A jitter detection module, used for acquiring detected jitter data;

[0012] A compensation position determination module, used to determine an ideal compensation position of an optical image stabilization module according to the jitter data;

[0013] A compensation position correction module, used to determine a current real position corresponding to the optical image stabilization module, and determine a target compensation position according to the ideal compensation position and the current real position;

[0014] The jitter compensation module is used to control the optical image stabilization module to perform jitter compensation based on the target compensation position.

[0015] According to a third aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.

[0016] According to a fourth aspect of the present disclosure, there is provided an electronic device, characterized in that it includes:

[0017] Processor; and

[0018] The memory is used to store one or more programs. When the one or more programs are executed by one or more processors, the one or more processors implement the above method.

[0019] An embodiment of the present disclosure provides a shooting anti-shake method, which can obtain the detected jitter data, determine the ideal compensation position of the optical anti-shake module according to the jitter data, and then determine the current real position corresponding to the optical anti-shake module, and determine the target compensation position according to the ideal compensation position and the current real position, and finally control the optical anti-shake module to perform jitter compensation based on the target compensation position. On the one hand, by detecting the current real position of the optical anti-shake module and correcting the ideal compensation position according to the current real position, the problem of optical anti-shake failure in some sudden change scenes can be effectively avoided, the accuracy of the target compensation position can be improved, and then the jitter compensation of the optical anti-shake module can be realized through the target compensation position, and the accuracy of the optical anti-shake result can be improved; on the other hand, because the target compensation position is determined based on the current real position, the optical anti-shake module can start anti-shake immediately after the position mutation occurs, so that the optical anti-shake result can accurately follow the jitter data for anti-shake, improve the followability of the optical anti-shake result, and improve the optical anti-shake effect.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0022] Figure 1 A schematic diagram showing an exemplary system architecture to which embodiments of the present disclosure may be applied;

[0023] Figure 2 A schematic diagram schematically illustrates a flow chart of a shooting anti-shake method in an exemplary embodiment of the present disclosure;

[0024] Figure 3 A schematic diagram schematically illustrates the principle of optical image stabilization in a related technical solution in an exemplary embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram schematically shows the position change of optical image stabilization in a normal shooting scene according to a related technical solution in an exemplary embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram schematically shows a position change of optical image stabilization in a sudden shooting scene of a related technical solution in an exemplary embodiment of the present disclosure;

[0027] Figure 6 A schematic diagram schematically shows a principle of achieving optical image stabilization by correcting an ideal compensation position in an exemplary embodiment of the present disclosure;

[0028] Figure 7 A schematic diagram schematically shows a position change of optical image stabilization by correcting an ideal compensation position in a sudden shooting scene in an exemplary embodiment of the present disclosure;

[0029] Figure 8 A schematic diagram schematically shows the composition of a shooting anti-shake device in an exemplary embodiment of the present disclosure;

[0030] Fig. 9 A schematic diagram of an electronic device to which the embodiments of the present disclosure can be applied is shown. DETAILED DESCRIPTION

[0031] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0032] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0033] Figure 1 A schematic diagram of a system architecture of an exemplary application environment in which a method and device for anti-shake shooting according to an embodiment of the present disclosure can be applied is shown.

[0034] like Figure 1 As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired or wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with optical image stabilization modules, including but not limited to smart phones, smart surveillance cameras, car cameras, smart robots, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.

[0035] The shooting anti-shake method provided in the embodiment of the present disclosure is generally executed by the terminal devices 101, 102, and 103, and accordingly, the shooting anti-shake device is generally set in the terminal devices 101, 102, and 103. However, it is easy for those skilled in the art to understand that the shooting anti-shake method provided in the embodiment of the present disclosure can also be executed by the server 105, and accordingly, the shooting anti-shake device can also be set in the server 105, which is not particularly limited in this exemplary embodiment. For example, in an exemplary embodiment, the user can collect jitter data through the terminal devices 101, 102, and 103, and upload the jitter data to the server 105. After the server generates the target compensation position through the shooting anti-shake method provided in the embodiment of the present disclosure, the target compensation position is transmitted to the terminal devices 101, 102, and 103, so that the terminal devices 101, 102, and 103 perform jitter compensation on the optical image stabilization module.

[0036] The following is a detailed description of the imaging anti-shake method and the imaging anti-shake device according to the exemplary embodiments of the present disclosure.

[0037] Figure 2 A schematic flow chart of a shooting anti-shake method in this exemplary embodiment is shown, which may include the following steps S210 to S240:

[0038] In step S210 , the detected jitter data is acquired.

[0039] In an exemplary embodiment, the jitter data refers to the data detected to characterize the jitter displacement of the camera module. For example, the jitter data can be the angular velocity data collected by the gyroscope sensor, or the acceleration data collected by the accelerometer. Of course, the jitter data can also be the displacement data of the feature points between adjacent original image frames. This exemplary embodiment does not impose any special restrictions on the collection method of the jitter data. For the sake of convenience, the following uses the angular velocity data collected by the gyroscope sensor as an example.

[0040] A gyroscope sensor can be set in the camera module of the terminal device to collect the jitter data of the camera module. In addition, since the camera module is fixedly set in the terminal device, the gyroscope sensor can also be set in the terminal device to collect the jitter data of the camera module. Of course, jitter data can also be collected by an external gyroscope sensor that is fixedly set relative to the terminal device or the camera module, which can also be used as the jitter data of the camera module. This example embodiment does not specifically limit the setting method of the gyroscope sensor.

[0041] In step S220, an ideal compensation position of the optical image stabilization module is determined according to the jitter data.

[0042] In an exemplary embodiment, the optical image stabilization module refers to an anti-shake system that realizes shake compensation by combining with a camera module through a corresponding anti-shake method. For example, the optical image stabilization module can fix the image sensor in the camera module, set a driving motor for the optical lens, and drive the optical lens to move by the driving motor to achieve shake compensation; the optical image stabilization module can also fix the optical lens in the camera module, set a driving motor for the image sensor, and drive the image sensor to move by the driving motor to achieve shake compensation; of course, the optical image stabilization module can also set a driving motor for the entire camera module, and drive the optical lens to move by the driving motor to achieve shake compensation. This embodiment does not make any special limitation on the configuration of the optical image stabilization module.

[0043] The ideal compensation position refers to the position to which the optical image stabilization module should drive the camera module to move, or the amount of jitter compensation displacement that should be moved, which is calculated directly based on the jitter data.

[0044] For example, if the jitter data is angular velocity data collected by a gyroscope sensor, then the ideal compensation position is to integrate the angular velocity data within a certain period of time to obtain the jitter compensation displacement. Since the optical image stabilization module will return to the center position in each shooting cycle, the obtained jitter compensation displacement is the position to which the optical image stabilization module should move.

[0045] In step S230, the current real position corresponding to the optical image stabilization module is determined, and the target compensation position is determined according to the ideal compensation position and the current real position.

[0046] In an exemplary embodiment, the current real position refers to the real position of the optical image stabilization module at the current moment, the ideal compensation position is an estimated value, and the current real position is the real value of a specific test.

[0047] The current real position corresponding to the optical image stabilization module can be determined by a pre-set sensor. For example, the current real position corresponding to the optical image stabilization module can be measured by a Hall sensor (Hall) set in the optical image stabilization module. Of course, the current real position corresponding to the optical image stabilization module can also be measured by a tunnel magnetoresistance effect sensor (Tunnel Magnetoresistance Effect, TMR). This example embodiment does not specifically limit the type of sensor for measuring the current real position corresponding to the optical image stabilization module.

[0048] After obtaining the current real position and the ideal compensation position, the ideal compensation position can be corrected by the current real position to obtain a more accurate target compensation position.

[0049] In step S240, the optical image stabilization module is controlled to perform shake compensation based on the target compensation position.

[0050] In an exemplary embodiment, shake compensation refers to a process of controlling the movement of an optical image stabilization module through a target compensation position to compensate for the shake generated by a camera module and improve the stability of the captured image. For example, a proportional integral differential (PID) system can be used to control a drive motor in the optical image stabilization module to displace the camera module to achieve shake compensation. Specifically, the target compensation position can be compared with the current real position. If the current real position of the optical image stabilization module does not reach the target compensation position, the PID system can be used to continue to control the drive motor in the optical image stabilization module to displace the camera module until the current real position reaches the target compensation position, thereby completing the shake compensation of the optical image stabilization module.

[0051] By detecting the current real position of the optical image stabilization module and correcting the ideal compensation position according to the current real position, the problem of optical image stabilization failure in some sudden change scenarios can be effectively avoided, and the accuracy of the target compensation position can be improved. Then, the jitter compensation of the optical image stabilization module can be realized through the target compensation position, thereby improving the accuracy of the optical image stabilization result. Since the target compensation position is determined based on the current real position, the optical image stabilization module can start anti-shake immediately after a position mutation occurs, so that the optical image stabilization result can accurately follow the jitter data for anti-shake, thereby improving the followability of the optical image stabilization result and improving the optical image stabilization effect.

[0052] Steps S210 to S240 are described in detail below.

[0053] Figure 3 The schematic diagram schematically shows the principle of optical image stabilization in a related technical solution in an exemplary embodiment of the present disclosure.

[0054] refer to Figure 3 As shown, angular velocity data can be detected by a gyroscope sensor 301, and the angular velocity data can be filtered 302 by an OIS algorithm unit, and then the filtered angular velocity data can be integrated 303 to obtain an ideal compensation position, and the ideal compensation position can be input into a PID control system 304, and the current real position of the optical image stabilization module can be determined by a Hall sensor 305, and the current real position can be input into the PID control system 304; the PID control system 304 can compare the input ideal compensation position and the current real position, and control the driving circuit 306 according to the comparison result, so that the driving circuit 306 drives the motor 307, and the motor 307 can drive the camera module to move, thereby realizing the jitter compensation of the camera module.

[0055] refer to Figure 4 As shown, if according to Figure 3 In the optical image stabilization control method, in a normal image stabilization scene, after the OIS algorithm outputs the ideal compensation position 401, the current real position 402 follows the ideal compensation position 401 for image stabilization compensation. However, when the terminal device is affected by a large external force, refer to Figure 5As shown, the current real position 502 of the optical image stabilization module in the first half moves following the ideal compensation position 501. At this time, when it is suddenly subjected to external force, the current real position 502 deviates from the ideal compensation position 501, such as the sudden change position area 503, while the ideal compensation position 501 is not adjusted accordingly. At this time, the optical image stabilization module is separated from the servo control of the PID system, especially when it is hit on the plane perpendicular to the optical axis, and the angular velocity does not change at this time. Therefore, the OIS algorithm cannot detect such jitter, and the ideal compensation position 501 does not change, resulting in the failure of the optical image stabilization processing. At the same time, the servo control will still pull the optical image stabilization module back to the predetermined track. This process requires a certain amount of stabilization time, so there will be certain water ripples or blurs on the image output, resulting in poor accuracy of the optical image stabilization result and poor optical image stabilization effect.

[0056] Based on the problems existing in the above technical solutions, in the embodiments provided by the present invention, by detecting the current real position of the optical image stabilization module and correcting the ideal compensation position according to the current real position, the problem of optical image stabilization failure in some sudden change scenarios can be effectively avoided, and the accuracy of the target compensation position can be improved. Then, the jitter compensation of the optical image stabilization module is realized through the target compensation position, and the accuracy of the optical image stabilization result is improved. Since the target compensation position is determined based on the current real position, the optical image stabilization module can start anti-shake immediately after the position mutation occurs, so that the optical image stabilization result can accurately follow the jitter data for anti-shake, thereby improving the followability of the optical image stabilization result and improving the optical image stabilization effect.

[0057] In an exemplary embodiment, the target compensation position may be determined according to the ideal compensation position and the current real position in the following steps:

[0058] The ideal displacement in the current shooting cycle can be determined according to the ideal compensation position, and the target compensation position can be determined by the ideal displacement and the current real position. The current shooting cycle refers to the cycle required to complete the shooting of a frame of image, for example, the current shooting cycle can be 50ms; the ideal displacement refers to the displacement that the camera module should be driven to perform in the current shooting cycle.

[0059] Optionally, the ideal displacement amount may be determined by the following steps: the ideal compensation position at the last moment may be acquired, and then the ideal displacement amount in the current shooting cycle may be determined according to the ideal compensation position at the current moment and the ideal compensation position at the last moment.

[0060] Optionally, the jitter data may be angular velocity data, and the detected angular velocity data may be acquired, and the angular velocity data may be filtered and integrated to obtain an ideal compensation position of the optical image stabilization module.

[0061] The angular velocity data detected by the gyroscope sensor in the historical shooting cycle of the previous moment can be integrated to obtain the ideal compensation position of the previous moment. The angular velocity data detected by the gyroscope sensor in the current shooting cycle of the current moment can be integrated to obtain the ideal compensation position of the current moment. For example, the ideal compensation position of the previous moment and the ideal compensation position of the current moment can be calculated by equation (1):

[0062]

[0063] Among them, Target N It can represent the ideal compensation position at the current moment (previous moment), V θ It can represent the angular velocity data detected by the gyroscope sensor, that is, the ideal compensation position output by the OIS algorithm is the result obtained by filtering and integrating the angular velocity data.

[0064] Furthermore, for the ideal compensation position at the current moment and the ideal compensation position at the previous moment, the following relationship (1) exists:

[0065] Target N =Target N-1 +Δdegree N (1)

[0066] Among them, Target N It can represent the ideal compensation position at the current moment, Target N-1 It can represent the ideal compensation position at the last moment, Δdegree N It can represent the displacement amount that needs to be moved or the jitter angle that needs to be compensated in the current shooting cycle, that is, the ideal displacement amount.

[0067] By transforming equation (2), we can obtain equation (3) for the ideal displacement in the current shooting cycle:

[0068] Δdegree N =Target N -Target N-1 (3)

[0069] Based on equation (3), the ideal displacement Δdegree in the current shooting cycle can be calculated: N , and determine the target compensation position by the ideal displacement and the current real position. For example, the target compensation position can be determined by equation (4):

[0070] Target N =Hall N +Δdegree N(4)

[0071] Among them, Target′ N It can represent the target compensation position after correction, Hall N It can represent the current real position of the camera module determined based on the data detected by sensors such as Hall sensors, Δdegree N It can indicate the ideal displacement in the current shooting cycle.

[0072] Optionally, equation (5) can be obtained based on equation (3) and equation (4):

[0073] Target N =Hall N +Target N -Target N-1 (5)

[0074] Based on the relation (5), it can be known that in this embodiment, the corrected target compensation position can be obtained according to the current real position, the ideal displacement at the previous moment and the ideal displacement at the current moment.

[0075] By detecting the current real position of the optical image stabilization module and correcting the ideal compensation position at the current moment according to the current real position and the ideal compensation position at the previous moment, the problem of optical image stabilization failure in the sudden change scenario at the current moment can be effectively avoided, and the accuracy of the target compensation position can be improved. In addition, since the target compensation position is determined based on the current real position, the optical image stabilization module can start image stabilization immediately after a sudden position change occurs, so that the optical image stabilization result can accurately follow the jitter data for image stabilization, thereby improving the followability of the optical image stabilization result and the optical image stabilization effect.

[0076] Figure 6 A schematic diagram schematically illustrates a principle of achieving optical image stabilization by correcting an ideal compensation position in an exemplary embodiment of the present disclosure.

[0077] refer to Figure 6As shown, the angular velocity data can be detected by the gyroscope sensor 601, and the angular velocity data can be filtered 602 by the OIS algorithm unit. Then, the filtered angular velocity data can be integrated 603 according to the relationship (1) to obtain the ideal compensation position at the current moment, and the ideal compensation position at the current moment is input into the correction unit 604. The correction unit 604 obtains the current real position of the optical image stabilization module from the Hall sensor 605, and determines the target compensation position according to the current real position, the ideal compensation position at the previous moment and the ideal compensation position at the current moment, and the correction unit 604 inputs the target compensation position into the PID control system 606; the PID control system 606 can obtain the current real position of the optical image stabilization module from the Hall sensor 605, and compare the input target compensation position with the current real position, and control the driving circuit 607 according to the comparison result, so that the driving circuit 607 drives the motor 608, and the motor 608 can drive the camera module (or the movable unit in different anti-shake modes such as the optical lens and the image sensor) to move, so as to realize the shake compensation of the camera module.

[0078] Figure 7 A schematic diagram schematically shows the position change of optical image stabilization by correcting an ideal compensation position in a sudden shooting scene in an exemplary embodiment of the present disclosure.

[0079] refer to Figure 7 As shown, according to Figure 6 In the optical image stabilization control method provided by the embodiment of the present disclosure, the OIS algorithm outputs an ideal compensation position, and the ideal compensation position is corrected by the correction unit 604 to obtain a target compensation position 701, and the current real position 702 moves following the target compensation position 701. When affected by a sudden external force in the sudden position area 703, the current real position 702 will produce a sudden change. At this time, the corrected current real position 702 still moves following the target compensation position 701. It can be seen that even if the current real position 702 of the optical image stabilization module is suddenly changed due to other factors such as external force, the corrected target compensation position 70 can allow the entire system to start optical image stabilization from the sudden change position, effectively avoiding the problem of optical image stabilization failure in some sudden change scenarios, improving the accuracy of the optical image stabilization results, and ensuring the optical image stabilization effect.

[0080] In an exemplary embodiment, the optical image stabilization module may adopt at least one of a mobile optical lens, a mobile image sensor, and a mobile optical image stabilization module. For example, it may be a three-axis image stabilization method of a mobile optical lens, a mobile image sensor, or a mobile optical image stabilization module, or a six-axis image stabilization method of a mobile optical lens and a mobile image sensor, a mobile optical lens and a mobile optical image stabilization module, or a mobile image sensor and a mobile optical image stabilization module. Of course, it may also be a nine-axis image stabilization method of a mobile optical lens, a mobile image sensor, and a mobile optical image stabilization module, but this exemplary embodiment is not limited thereto.

[0081] Among them, the mobile optical lens refers to fixing the other components of the camera module and driving the optical lens to move in three-axis directions through a motor to achieve an anti-shake method of jitter compensation; the mobile image sensor refers to fixing the other components of the camera module and driving the image sensor to move in three-axis directions through a motor to achieve an anti-shake method of jitter compensation; the mobile optical anti-shake module refers to directly driving the entire camera module to move in three-axis directions to achieve an anti-shake method of jitter compensation.

[0082] The accuracy of the optical image stabilization results can be further improved by combining an optical image stabilization module that adopts different image stabilization methods and the method provided in the disclosed embodiment of correcting the ideal compensation position output by the OIS algorithm by determining the current real position of the mobile unit in the camera module.

[0083] In an exemplary embodiment, the current shooting cycle can be divided into two stages. For example, the current shooting cycle can be divided into exposure time and non-exposure time. Optical image stabilization is performed during the exposure time, and the camera module (or a unit that moves in different anti-shake methods such as an optical lens, image sensor, etc.) is restored to the center position or the initial position during the non-exposure time (the initial position can be the position obtained after correction when part of the optical axis is offset from the center position).

[0084] Optionally, if it is at the exposure time of the current shooting cycle, the target compensation position can be compared with the current real position to obtain a comparison result, and the optical image stabilization module can be moved to the target compensation position according to the comparison result until the current real position is the same as the target compensation position. The servo control of the optical image stabilization module (camera module) is achieved through the comparison result between the target compensation position and the current real position, which can effectively improve the accuracy of the control, thereby effectively ensuring the accuracy of the optical image stabilization result.

[0085] Optionally, if it is in the non-exposure time of the current shooting cycle, the optical image stabilization module is moved to an initial position, wherein the initial position may be a geometric center position or an optical center position after correction of optical axis offset due to hardware defects, and this example embodiment does not specifically limit this.

[0086] In an exemplary embodiment, the current real position corresponding to the optical image stabilization module can be determined by setting a target sensor, wherein the target sensor can be a magnetic induction type sensor, for example, the target sensor can be any one of a Hall sensor, a tunnel magnetoresistive effect sensor, a capacitive sensor, and an inductive sensor, or a combination of a Hall sensor, a tunnel magnetoresistive effect sensor, a capacitive sensor, and an inductive sensor, and this exemplary embodiment does not specifically limit this. Of course, the target sensor can also be other sensors that can detect the current real position of the optical image stabilization module (a unit that can be displaced, such as an optical lens, an image sensor, and other components), and this exemplary embodiment does not specifically limit this.

[0087] The target sensor can accurately detect the current true position corresponding to the optical image stabilization module. The detected current true position is used to correct the ideal compensation position predicted by the OIS algorithm and for the servo control of the PID system, thereby effectively improving the accuracy of the optical image stabilization results and ensuring the optical image stabilization effect.

[0088] In summary, in this exemplary embodiment, the detected jitter data can be obtained, and the ideal compensation position of the optical image stabilization module can be determined according to the jitter data, and then the current real position corresponding to the optical image stabilization module can be determined, and the target compensation position can be determined according to the ideal compensation position and the current real position, and finally the optical image stabilization module can be controlled to perform jitter compensation based on the target compensation position. On the one hand, by detecting the current real position of the optical image stabilization module and correcting the ideal compensation position according to the current real position, the problem of optical image stabilization failure in some sudden change scenes can be effectively avoided, and the accuracy of the target compensation position can be improved, and then the jitter compensation of the optical image stabilization module can be realized through the target compensation position, and the accuracy of the optical image stabilization result can be improved; on the other hand, because the target compensation position is determined based on the current real position, the optical image stabilization module can start anti-shake immediately after the position mutation occurs, so that the optical image stabilization result can accurately follow the jitter data for anti-shake, improve the followability of the optical image stabilization result, and improve the optical image stabilization effect.

[0089] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0090] For further reference, Figure 8As shown, in the embodiment of this example, a shooting anti-shake device 800 is also provided, including a shake detection module 810, a compensation position determination module 820, a compensation position correction module 830 and a shake compensation module 840. Among them:

[0091] The jitter detection module 810 is used to obtain the detected jitter data;

[0092] The compensation position determination module 820 is used to determine the ideal compensation position of the optical image stabilization module according to the jitter data;

[0093] The compensation position correction module 830 is used to determine the current real position corresponding to the optical image stabilization module, and determine the target compensation position according to the ideal compensation position and the current real position;

[0094] The jitter compensation module 840 is used to control the optical image stabilization module to perform jitter compensation based on the target compensation position.

[0095] In an exemplary embodiment, the compensation position correction module 830 is configured to:

[0096] Determining an ideal displacement amount in a current shooting cycle according to the ideal compensation position;

[0097] The target compensation position is determined by the ideal displacement and the current real position.

[0098] In an exemplary embodiment, the compensation position correction module 830 is configured to:

[0099] Get the ideal compensation position at the last moment;

[0100] An ideal displacement in a current shooting cycle is determined according to the ideal compensation position and the ideal compensation position at the previous moment.

[0101] In an exemplary embodiment, the optical image stabilization module may be implemented in an anti-shake manner by at least one of moving an optical lens, moving an image sensor, and moving the optical image stabilization module.

[0102] In an exemplary embodiment, the jitter compensation module 840 is configured to:

[0103] If it is in the exposure time of the current shooting cycle, the target compensation position is compared with the current real position to obtain a comparison result;

[0104] The optical image stabilization module is moved toward the target compensation position according to the comparison result until the current real position is the same as the target compensation position.

[0105] In an exemplary embodiment, the shooting anti-shake device 800 further includes an optical anti-shake module recovery module, and the optical anti-shake module recovery module is configured as follows:

[0106] If it is in the non-exposure time of the current shooting cycle, the optical image stabilization module is moved to the initial position.

[0107] In an exemplary embodiment, the compensation position correction module 830 is configured to:

[0108] The current real position corresponding to the optical image stabilization module is determined by a set target sensor, and the target sensor includes at least one of a Hall sensor, a tunnel magnetoresistance effect sensor, a capacitive sensor, and an inductive sensor.

[0109] In an exemplary embodiment, the jitter data may include angular velocity data, and the compensation position determination module 820 is configured to:

[0110] Get the detected angular velocity data;

[0111] The angular velocity data is filtered and integrated to obtain an ideal compensation position of the optical image stabilization module.

[0112] The specific details of each module in the above device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0113] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0114] The exemplary embodiment of the present disclosure also provides an electronic device. The electronic device may be the above-mentioned terminal devices 101, 102, 103 and server 105. Generally, the electronic device may include a processor and a memory, the memory is used to store executable instructions of the processor, and the processor is configured to execute the above-mentioned shooting anti-shake method by executing the executable instructions.

[0115] Below Fig. 9 The mobile terminal 900 in FIG. 1 is taken as an example to exemplify the structure of the electronic device. It should be understood by those skilled in the art that, in addition to the components specifically used for mobile purposes, Fig. 9 The construction in can also be applied to fixed type equipment.

[0116] like Fig. 9As shown, the mobile terminal 900 may specifically include: a processor 901, a memory 902, a bus 903, a mobile communication module 904, an antenna 1, a wireless communication module 905, an antenna 2, a display screen 906, a camera module 907, an audio module 908, a power module 909 and a sensor module 910.

[0117] The processor 901 may include one or more processing units, for example, the processor 901 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc. The shooting anti-shake method in this exemplary embodiment may be executed by an AP, a GPU or a DSP. When the method involves processing related to a neural network, it may be executed by an NPU, for example, the NPU may load neural network parameters and execute algorithm instructions related to the neural network.

[0118] The encoder can encode (i.e. compress) an image or video to reduce the data size for easy storage or transmission. The decoder can decode (i.e. decompress) the encoded data of the image or video to restore the image or video data. The mobile terminal 900 can support one or more encoders and decoders, for example: image formats such as JPEG (Joint Photographic Experts Group), PNG (Portable Network Graphics), BMP (Bitmap), and video formats such as MPEG (Moving Picture Experts Group) 1, MPEG10, H.1063, H.1064, and HEVC (High Efficiency Video Coding).

[0119] The processor 901 may be connected to the memory 902 or other components via a bus 903 .

[0120] The memory 902 may be used to store computer executable program codes, which may include instructions. The processor 901 executes various functional applications and data processing of the mobile terminal 900 by running the instructions stored in the memory 902. The memory 902 may also store application data, such as images, videos, and other files.

[0121] The communication function of the mobile terminal 900 can be implemented by the mobile communication module 904, antenna 1, wireless communication module 905, antenna 2, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 904 can provide 3G, 4G, 5G and other mobile communication solutions applied to the mobile terminal 900. The wireless communication module 905 can provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. applied to the mobile terminal 900.

[0122] The display screen 906 is used to implement display functions, such as displaying a user interface, images, videos, etc. The camera module 907 is used to implement shooting functions, such as shooting images, videos, etc. The audio module 908 is used to implement audio functions, such as playing audio, collecting voice, etc. The power module 909 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc.

[0123] The sensor module 910 may include one or more sensors for implementing corresponding sensing detection functions. For example, the sensor module 910 may include an inertial sensor for detecting the motion posture of the mobile terminal 900 and outputting inertial sensing data.

[0124] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.

[0125] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0126] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0127] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0128] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0129] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A shooting anti-shake method, characterized in that: include: Get the detected jitter data; Determining an ideal compensation position of an optical image stabilization module according to the jitter data; Determine a current real position corresponding to the optical image stabilization module, and determine a target compensation position according to the ideal compensation position and the current real position; The optical image stabilization module is controlled to perform shake compensation based on the target compensation position.

2. The method according to claim 1, characterized in that The determining of the target compensation position according to the ideal compensation position and the current real position comprises: Determining an ideal displacement amount in a current shooting cycle according to the ideal compensation position; The target compensation position is determined by the ideal displacement and the current real position.

3. The method according to claim 2, characterized in that Determining the ideal displacement in the current cycle according to the ideal compensation position includes: Get the ideal compensation position at the last moment; An ideal displacement in a current shooting cycle is determined according to the ideal compensation position and the ideal compensation position at the previous moment.

4. The method according to claim 1, characterized in that: The optical image stabilization module is implemented in an anti-shake manner by at least one of moving an optical lens, moving an image sensor, and moving the optical image stabilization module.

5. The method according to claim 4, characterized in that The controlling the optical image stabilization module to perform shake compensation based on the target compensation position includes: If it is in the exposure time of the current shooting cycle, the target compensation position is compared with the current real position to obtain a comparison result; The optical image stabilization module is moved toward the target compensation position according to the comparison result until the current real position is the same as the target compensation position.

6. The method according to claim 4, characterized in that The method further comprises: If it is in the non-exposure time of the current shooting cycle, the optical image stabilization module is moved to the initial position.

7. The method according to claim 1, characterized in that The determining the current real position corresponding to the optical image stabilization module includes: The current real position corresponding to the optical image stabilization module is determined by a set target sensor, and the target sensor includes at least one of a Hall sensor, a tunnel magnetoresistance effect sensor, a capacitive sensor, and an inductive sensor.

8. The method according to claim 1, characterized in that: The jitter data includes angular velocity data, and determining an ideal compensation position of the optical image stabilization module according to the jitter data includes: Get the detected angular velocity data; The angular velocity data is filtered and integrated to obtain an ideal compensation position of the optical image stabilization module.

9. A shooting anti-shake device, characterized in that: include: A jitter detection module, used for acquiring detected jitter data; A compensation position determination module, used to determine an ideal compensation position of an optical image stabilization module according to the jitter data; A compensation position correction module, used to determine a current real position corresponding to the optical image stabilization module, and determine a target compensation position according to the ideal compensation position and the current real position; The jitter compensation module is used to control the optical image stabilization module to perform jitter compensation based on the target compensation position.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

11. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 8 by executing the executable instructions.

Citation Information

Cited By

  • Optical anti-shake test method and system, computer equipment and storage medium

    CN121253114A

  • Optical image stabilization testing methods, systems, computer equipment, and storage media

    CN121253114B