WO2023011119A1 - 光学防抖方法、***、计算机可读存储介质及电子设备 - Google Patents

光学防抖方法、***、计算机可读存储介质及电子设备 Download PDF

Info

Publication number
WO2023011119A1
WO2023011119A1 PCT/CN2022/104981 CN2022104981W WO2023011119A1 WO 2023011119 A1 WO2023011119 A1 WO 2023011119A1 CN 2022104981 W CN2022104981 W CN 2022104981W WO 2023011119 A1 WO2023011119 A1 WO 2023011119A1
Authority
WO
WIPO (PCT)
Prior art keywords
lens
photosensitive element
driving
data
compensation
Prior art date
Application number
PCT/CN2022/104981
Other languages
English (en)
French (fr)
Inventor
陈伟
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023011119A1 publication Critical patent/WO2023011119A1/zh
Priority to US18/408,078 priority Critical patent/US20240147069A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/683Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/685Vibration or motion blur correction performed by mechanical compensation
    • H04N23/687Vibration or motion blur correction performed by mechanical compensation by shifting the lens or sensor position

Definitions

  • the present application relates to the field of electronic technology, and in particular to an optical anti-shake method, system, computer-readable storage medium and electronic equipment.
  • An embodiment of the present application provides an optical anti-shake method, which is applied to a camera module, where the camera module includes a lens and a photosensitive element, and the method includes:
  • shaking data is less than or equal to a first threshold, driving the lens and/or the photosensitive element to move according to the shaking data and a first compensation strategy;
  • the shaking data is greater than the first threshold, driving the lens and the photosensitive element to move according to the shaking data and a second compensation strategy.
  • An embodiment of the present application provides an optical anti-shake system, including a detection module and a camera module.
  • the camera module includes a lens, a photosensitive element, a first driving chip, and a second driving chip; the first driving chip is connected to the lens, and the second The second driving chip is connected with the photosensitive element;
  • the detection module acquires the jitter data of the camera module, and sends the jitter data to the first driver chip and/or the second driver chip, and if the jitter data is less than or equal to the first threshold, then according to the jitter data and the first compensation
  • the strategy drives the movement of the lens through the first driver chip and/or drives the movement of the photosensitive element through the second driver chip; if the shake data is greater than the first threshold, drive according to the shake data and the second compensation strategy
  • the lens is driven by the first drive chip and the photosensitive element is driven by the second drive chip.
  • An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run on a computer, the computer is made to execute the optical image stabilization method as described above.
  • An embodiment of the present application provides an electronic device, including a processor and a memory, where the memory has a computer program, and the processor is used to execute the above optical anti-shake method by invoking the computer program.
  • An embodiment of the present application provides an electronic device, including: a lens, a photosensitive element, a first bracket, a first drive motor, and a second drive motor, the first bracket has a first side and a second side that are opposite to each other, so The first driving motor is arranged on the first side, the second driving motor is arranged on the second side, the lens is arranged on the first driving motor, and the first driving motor is used to drive the The lens moves, the photosensitive element is arranged on the second driving motor, and the second driving motor is used to drive the photosensitive element to move.
  • FIG. 1 is a schematic flowchart of a first optical anti-shake method provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a second optical anti-shake method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a first structure of an electronic device provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a camera module in the electronic device shown in FIG. 3 .
  • FIG. 5 is a schematic structural diagram of the first bracket, the first driving motor and the second driving motor shown in FIG. 4 .
  • FIG. 6 is a schematic exploded structure diagram of the first bracket, the first driving motor and the second driving motor shown in FIG. 4 .
  • FIG. 7 is a schematic structural diagram of a first type of optical anti-shake system provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a second structure of an optical anti-shake system provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a third structure of an optical anti-shake system provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a fourth structure of an optical anti-shake system provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the present application.
  • An embodiment of the present application provides an optical anti-shake method, which is applied to a camera module, where the camera module includes a lens and a photosensitive element, and the method includes:
  • shake data is less than or equal to a first threshold, drive the lens to move and/or the photosensitive element to move according to the shake data and a first compensation strategy;
  • the shaking data is greater than the first threshold, driving the lens and the photosensitive element to move according to the shaking data and a second compensation strategy.
  • the driving the lens movement and/or the photosensitive element movement according to the shake data and the first compensation strategy includes:
  • the first compensation data satisfies a first compensation condition, and the first compensation condition is that the first compensation data only includes a translation amount of the lens, then drive the lens to move according to the first compensation data;
  • the second compensation condition is that the first compensation data includes the translation amount of the lens and the rotation amount of the photosensitive element, then drive the lens according to the first compensation data and the photosensitive element moves.
  • the driving the lens movement according to the first compensation data includes:
  • the driving the movement of the lens and the photosensitive element according to the first compensation data includes:
  • the lens is driven to translate according to the first compensation data, and the photosensitive element is driven to rotate.
  • the driving the lens shift according to the first compensation data includes:
  • the driving the lens to translate according to the first compensation data, and driving the photosensitive element to rotate include:
  • the photosensitive element is driven to rotate according to the first rotation amount.
  • the second compensation strategy includes a first sub-strategy and a second sub-strategy, and if the jitter data is greater than the first threshold, according to the jitter data and the The second compensation strategy to drive the movement of the lens and the photosensitive element includes:
  • the shaking data is greater than the first threshold and less than or equal to a second threshold, driving the lens and the photosensitive element to move according to the shaking data and the first sub-strategy;
  • the shaking data is greater than the second threshold, driving the lens and the photosensitive element to move according to the shaking data and a second sub-strategy.
  • the driving the movement of the lens and the photosensitive element according to the first sub-strategy includes:
  • the third compensation condition is that the second compensation data includes the translation amount of the lens and the translation amount of the photosensitive element, then drive the lens according to the second compensation data translate and drive the photosensitive element to translate;
  • the fourth compensation condition is that the second compensation data includes the translation amount of the lens, the translation amount of the photosensitive element and the rotation amount of the photosensitive element, then according to the second compensation data Driving the lens to translate, and driving the photosensitive element to translate and rotate.
  • the driving the lens to shift and the photosensitive element to shift according to the second compensation data includes:
  • the driving the lens to translate according to the second compensation data, and driving the photosensitive element to translate and rotate include:
  • the driving the lens and the photosensitive element to move according to the shaking data and the second sub-strategy includes:
  • the driving the lens to shift and the photosensitive element to shift according to the third compensation data includes:
  • the lens is driven to shift according to the seventh shift amount, and the photosensitive element is driven to shift according to the eighth shift amount.
  • the embodiment of the present application also provides an optical anti-shake system, including a detection module and a camera module.
  • the camera module includes a lens, a photosensitive element, a first drive chip and a second drive chip; the first drive chip is connected to the lens, and the second The second driving chip is connected with the photosensitive element;
  • the detection module acquires the jitter data of the camera module, and sends the jitter data to the first driver chip and/or the second driver chip, and if the jitter data is less than or equal to the first threshold, then according to the jitter data and the first compensation
  • the strategy drives the movement of the lens through the first driver chip and/or drives the movement of the photosensitive element through the second driver chip; if the shake data is greater than the first threshold, drive according to the shake data and the second compensation strategy
  • the lens is driven by the first drive chip and the photosensitive element is driven by the second drive chip.
  • the camera module further includes a first driving motor and a second driving motor, the first driving chip is connected to the lens through the first driving motor, and the The first driving chip controls the lens by driving the first driving motor, the second driving chip is connected with the photosensitive element through the second driving motor, and the second driving chip controls the second driving A motor controls the photosensitive element.
  • the detection module is connected to the first driver chip, and the detection module is used to send the collected jitter data to the first driver chip, and the first driver chip
  • the chip is used to analyze the shaking data to obtain the translation amount of the lens and/or the translation amount of the photosensitive element and/or the rotation amount of the photosensitive element, and the first drive chip controls the The first drive motor drives the lens to move, and the first drive chip is also used to send the analyzed translation amount of the photosensitive element and/or the rotation amount of the photosensitive element to the second drive chip, so that the The second driving chip controls the second driving motor to drive the photosensitive element to move according to the translation amount of the photosensitive element and/or the rotation amount of the photosensitive element.
  • the detection module is connected to the second driver chip, and the detection module is used to send the collected jitter data to the second driver chip, and the second driver chip
  • the chip is used to analyze the jitter data to obtain the translation amount of the lens and/or the translation amount of the photosensitive element and/or the rotation amount of the photosensitive element, and the second drive chip and/or the rotation amount of the photosensitive element controls the second driving motor to drive the photosensitive element to move, and the second driving chip is also used to send the analyzed translation amount of the lens to the first driving chip,
  • the first drive chip controls the first drive motor to drive the lens to move according to the translation amount of the lens.
  • the optical anti-shake system further includes a processor, the processor is configured to send a control signal to the first driver chip and the second driver chip, so that the first The driving chip and the second driving chip process the dithering data according to the control signal.
  • the detection module is connected to the processor, the processors are respectively connected to the first driver chip and the second driver chip, and the processor is connected to the The shake data detected by the detection module is processed to obtain the compensation data of the lens and the compensation data of the photosensitive element; the processor sends the compensation data of the lens to the first drive chip, so that the first A driving chip controls the movement of the lens according to the compensation data of the lens, and the processor sends the compensation data of the photosensitive element to the second driving chip, so that the second driving chip according to the compensation data of the photosensitive element The compensation data controls the motion of the photosensitive element.
  • An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is run on a computer, the computer is made to execute the above-mentioned optical anti-shake method.
  • An embodiment of the present application also provides an electronic device, including a processor and a memory, where the memory has a computer program, wherein the processor is used to execute the above-mentioned optical anti-shake method by invoking the computer program.
  • An embodiment of the present application also provides an electronic device, including: a lens, a photosensitive element, a first bracket, a first drive motor, and a second drive motor, the first bracket has a first side and a second side that are arranged opposite to each other, The first driving motor is arranged on the first side, the second driving motor is arranged on the second side, the lens is arranged on the first driving motor, and the first driving motor is used to drive The lens moves, the photosensitive element is arranged on the second driving motor, and the second driving motor is used to drive the photosensitive element to move.
  • the first drive motor is used to drive the lens to translate in a preset plane
  • the second drive motor is used to drive the photosensitive element to translate in a preset plane or along a preset plane. Preset axis rotation.
  • the first driving motor includes any one of an electromagnetic motor, a piezoelectric motor, a memory alloy driver, and a micro-electromechanical system
  • the second driving motor includes an electromagnetic motor. Any one of motors, piezoelectric motors, memory alloy drivers, and micro-electromechanical systems.
  • FIG. 1 is a schematic flowchart of a first optical anti-shake method provided by the embodiment of the present application.
  • the optical anti-shake method is applied to the camera module.
  • the camera module includes a lens and a photosensitive element.
  • the optical anti-shake method includes:
  • the shake data of the camera module can be obtained through the angular motion detection module that detects the angular velocity, such as a gyroscope.
  • the gyroscope can detect whether the camera module shakes, and obtain the angular velocity information of the camera module when the camera module shakes.
  • the shaking data of the camera module can also be obtained through a detection module that detects acceleration, such as an accelerometer.
  • the shake data of the camera module can also be obtained through other detection modules, as long as the shake data of the camera module can be detected, which is not limited in this embodiment of the present application.
  • Camera module shake data can be detected according to the angular velocity information and/or acceleration information of the detection module, for example, the camera module shakes by 1 degree, the camera module shakes by 2 degrees, or the camera module shakes by 3 degrees.
  • the movement of the lens and the photosensitive element can be reasonably arranged according to the shake data to achieve optical image stabilization, so as to achieve a larger angle of optical image stabilization and effectively improve the optical image stabilization effect of the camera module.
  • the first threshold can be 2 degrees.
  • the lens and/or photosensitive element are driven to move according to the shake data and the first compensation strategy, where , the first compensation strategy may include: driving the lens to move to compensate for the shake of the camera module, driving the photosensitive element to compensate for the shake of the camera module, and driving the lens to move and the photosensitive element to compensate for the shake of the camera module.
  • the second compensation strategy can compensate the camera module shake for driving the lens movement and photosensitive element movement.
  • Component movement can achieve a larger angle of optical image stabilization.
  • the embodiment of the present application provides an optical anti-shake method that can realize lens anti-shake and photosensitive element anti-shake at the same time, adopt different anti-shake strategies according to the shake data of the camera module, compared with only using camera anti-shake or photosensitive element anti-shake, etc With a single anti-shake structure, the embodiment of the present application can realize optical anti-shake at a larger angle, and effectively improve the optical anti-shake effect of the camera module.
  • the second compensation strategy may include a first sub-strategy and a second sub-strategy, the first sub-strategy and the second sub-strategy are different. If the shake data is greater than the first threshold and less than or equal to the second threshold, the lens and the photosensitive element are driven to move according to the shake data and the first sub-strategy. If the jitter data is greater than the second threshold, the lens and the photosensitive element are driven to move according to the jitter data and the second sub-strategy. Although the first sub-strategy and the second sub-strategy both drive the lens and the photosensitive element to move, they move in different ways.
  • the first sub-strategy may be: drive the lens to translate and drive the photosensitive element to translate according to the shake data, or drive the lens to translate, the photosensitive element to translate, and the photosensitive element to rotate according to the shake data.
  • the second sub-strategy may be to drive the translation of the lens and the translation of the photosensitive element according to the shaking data.
  • the first sub-strategy may include: determining the second compensation data according to the shaking data, if the second compensation data satisfies the third compensation condition, the third compensation condition is that the second compensation data includes the translation amount of the lens and the If the second compensation data satisfies the fourth compensation condition, the fourth compensation condition is that the second compensation data includes the translation amount of the lens and the translation of the photosensitive element. The amount and the rotation amount of the photosensitive element are then driven to shift the lens according to the second compensation data, and to drive the translation and rotation of the photosensitive element.
  • the second sub-strategy may include determining third compensation data according to the shake data; driving the lens to shift and the photosensitive element to shift according to the third compensation data. Please continue to refer to FIG. 2 .
  • FIG. 2 is a schematic flowchart of a second optical image stabilization method provided by an embodiment of the present application.
  • the shake data of the camera module can be obtained through the angular motion detection module that detects the angular velocity, such as a gyroscope.
  • the gyroscope can detect whether the camera module shakes, and obtain the angular velocity information of the camera module when the camera module shakes.
  • the shaking data of the camera module can also be obtained through a detection module that detects acceleration, such as an accelerometer.
  • the shake data of the camera module can also be obtained through other detection modules, as long as the shake data of the camera module can be detected, which is not limited in this embodiment of the present application.
  • the camera module shake angle can be detected, for example, the camera module shakes by 1 degree, the camera module shakes by 2 degrees, or the camera module shakes by 3 degrees.
  • the first compensation data satisfies a first compensation condition, and the first compensation condition is that the first compensation data only includes a lens shift amount, drive the lens to shift according to the first compensation data.
  • the second compensation condition is that the first compensation data includes the translation amount of the lens and the rotation amount of the photosensitive element, and drive the lens and the photosensitive element to move according to the first compensation data.
  • the movement of the lens and the photosensitive element can be reasonably arranged according to the shake data to achieve optical image stabilization, so as to achieve a larger angle of optical image stabilization and effectively improve the optical image stabilization effect of the camera module.
  • the lens can achieve a maximum of 2 degrees of translational anti-shake
  • the photosensitive element can achieve a maximum of 2 degrees of translational anti-shake
  • the first threshold can be 2 degrees.
  • the camera module shake data is less than or equal to 2 degrees , determining first compensation data according to the shaking data, and driving the lens to shift according to the first compensation data if the first compensation data satisfies a first compensation condition. If the first compensation data satisfies the second compensation condition, the lens is driven to translate and the photosensitive element is driven to rotate according to the first compensation data.
  • the first compensation data can be determined according to the shake data, the current position of the lens and/or the photosensitive element, for example, the center of the initial position of the lens is taken as the origin, the plane where the lens is located establishes an XY axis coordinate system, and the initial position of the photosensitive element is The center is the origin, and the XY space rectangular coordinate system is established on the plane where the photosensitive element is located.
  • the current position of the lens and photosensitive element can be determined according to the shake data, and whether the camera module has occurred can be judged according to the current position and the original position of the lens and photosensitive element.
  • Movement offset and/or rotation offset if the camera module has a translation offset, the lens translation can be used to compensate the movement offset of the camera module, if the camera module has a rotation offset, it can be rotated through the photosensitive element Compensate the rotation offset of the camera module.
  • the first compensation data is calculated according to the shake angle and the current position of the lens and photosensitive element. If the first compensation data only includes the translation amount of the lens, it means that the first compensation data satisfies The first compensation condition, if the first compensation data includes the rotation amount of the photosensitive element, then the second compensation data satisfies the second compensation condition.
  • the shake angle of the camera module is 0.5 degrees
  • the current position of the lens is (Xa, Ya)
  • the shake angle of the camera module is generated by translation offset
  • the first compensation data calculated according to the current position is obtained according to
  • the first compensation data determines the first translation amount (-Xb, -Yb), and according to the first translation amount, the lens is driven to translate Xb unit lengths along the negative direction of the X axis, and to translate Yb unit lengths along the negative direction of the Y axis, Therefore, the lens is at the target position (Xa-Xb, Ya-Yb), and the anti-shake of the camera module can be realized.
  • the shaking angle of the camera module is 1.5 degrees
  • the current position of the lens is (Xc, Yc)
  • the current position of the photosensitive element is (X1, Y1)
  • the shaking data of the camera is generated for translational offset and rotational offset, For example, 1 degree out of 1.5 degrees is caused by the translational offset of the camera module, and 0.5 degrees is caused by the rotation offset of the camera module.
  • the first compensation data is calculated: the second translation amount of the lens (-Xd,- Yd), the first rotation amount of the photosensitive element (-X2, -Y2), (X3, 0), according to the second translation amount, drive the lens to translate Xd unit length along the negative direction of the X axis, and translate along the negative direction of the Y axis Yd unit length, so that the lens is at the target position (Xc-Xd, Yc-Xd), the first part of the photosensitive element is driven to move X2 unit lengths along the negative direction of the X axis according to the first rotation amount, and the second part of the photosensitive element is driven The part moves X3 unit length along the positive direction of the X axis, and the third part that drives the photosensitive element moves Y2 unit length along the negative direction of the Y axis, so that the photosensitive element is at the target position (X4, Y4), wherein the target of the photosensitive element The position (
  • the movement of the photosensitive element can include translation and rotation
  • the translation and rotation need to be driven by the drive assembly, and the rotation is realized by driving the translation of different parts of the photosensitive element, for example, by driving different parts of the photosensitive element along the same coordinate axis.
  • Translating in the opposite direction, or driving the translation of different parts of the photosensitive element on the same coordinate axis through different driving speeds, can make the photosensitive element rotate along the preset axis. Since translation and rotation share a stroke, when the translation amount reaches the maximum stroke, it will not be possible. Rotation; when the rotation reaches the maximum stroke, translation will not be possible. Based on this, the present application needs to reasonably arrange the movement of the lens and the photosensitive element according to the shake data, so as to achieve a larger angle of anti-shake.
  • jitter data is greater than the first threshold and less than or equal to the second threshold, determine second compensation data according to the jitter data.
  • the third condition is that the second compensation data includes the translation amount of the lens and the translation amount of the photosensitive element, drive the lens to shift and the photosensitive element to shift according to the second compensation data.
  • the fourth compensation condition is that the second compensation data includes the translation amount of the lens, the translation amount of the photosensitive element, and the rotation amount of the photosensitive element, then drive the lens to shift according to the second compensation data, And drive the photosensitive element to translate and rotate.
  • the first threshold can be 2 degrees
  • the second threshold can be 3 degrees. If the jitter data is greater than the first threshold and less than or equal to the second threshold, such as when the jitter data is greater than 2 degrees and less than or equal to 3 degrees, it is determined according to the jitter data.
  • the second compensation data is generated, and if the second compensation data satisfies the third compensation condition, the lens is driven to shift and the photosensitive element is driven to shift according to the second compensation data. If the second compensation data satisfies the fourth compensation condition, the lens is driven to translate, and the photosensitive element is driven to translate and rotate according to the second compensation data.
  • the second compensation data calculated according to the shaking angle and the current position of the lens and the photosensitive element, if the second compensation data includes the translation amount of the lens and the translation amount of the photosensitive element, It means that the second compensation data satisfies the third compensation condition. If the second compensation data includes the translation amount of the lens, the translation amount of the photosensitive element and the rotation amount of the photosensitive element, then the second compensation data satisfies the fourth compensation condition.
  • the second compensation data can be determined according to the shaking data, the current position of the lens and/or the photosensitive element, since the lens can achieve a maximum translation compensation of 2 degrees, assuming that the shaking data of the camera module is determined to be 2.5 degrees based on the shaking data, lens translation is required
  • the camera module is anti-shake by moving with the photosensitive element, and the current position of the lens is obtained as (Xe, Ye), and the current position of the photosensitive element is (X5, Y5), and the second compensation data is obtained according to the shake data of 2.5 degrees: lens
  • the third translation amount (-Xf, -Yf), the fourth translation amount of the photosensitive element (-X6, -Y6), according to the obtained third translation amount, drive the lens to translate the Xf unit length along the negative direction of the X axis, along the Y Translate the Yf unit length in the negative direction of the axis, so that the lens is at the target position (Xe-Xf, Ye-Xf), and drive the photosensitive element to move X6
  • the camera module shake data is determined to be 3 degrees based on the shake data, of which 0.5 degrees is caused by the rotation offset of the camera module, lens translation, photosensitive element translation, and photosensitive element rotation are required to stabilize the camera module.
  • the 2.5-degree anti-shake of the camera module can be realized by lens translation and photosensitive element translation , the remaining 0.5 degree anti-shake can be compensated by the rotation of the photosensitive element.
  • the first part of the photosensitive element is driven to translate X9 unit length along the positive direction of the X axis, and the second part of the photosensitive element is driven along the The positive direction of the X axis is translated by X10 unit lengths, and the third part of the photosensitive element is driven to translate Y9 units along the positive direction of the Y axis to compensate for the remaining 0.5 degree jitter data.
  • the target position of the photosensitive element has been set at (X11, Y11).
  • the current position is (Xi, Yi)
  • the current position of the photosensitive element is (X12, Y12)
  • the third compensation data is determined according to the shaking data, the current position of the lens and the current position of the photosensitive element: the seventh translation amount of the lens (-Xj , -Yj), the eighth translation amount of the photosensitive element (-X13, -Y13), according to the obtained seventh translation amount, drive the lens to translate Xj unit length along the negative direction of the X axis, and translate Yj units along the negative direction of the Y axis Unit length, so that the lens is at the target position (Xi-Xj, Yi-Xj), and the photosensitive element is driven to move X13 unit lengths along the negative direction of the X-axis and X13 units along the negative direction of the
  • the optical anti-shake method provided by the embodiment of the present application can realize lens anti-shake and photosensitive element anti-shake at the same time, and arrange the movement of the lens and photosensitive element reasonably according to the shake data of the camera module.
  • a single anti-shake method such as shaking can maximize the use of the movement of the lens and photosensitive elements to achieve a larger angle of optical anti-shake, and effectively improve the optical anti-shake effect of the camera module.
  • the embodiment of the present application also provides an electronic device.
  • the "electronic device” (or simply referred to as “terminal”) as used herein includes, but is not limited to, configured to be connected via a wired line and/or via a cellular network, a wireless local area network, etc.
  • a device for receiving/sending communication signals in a wireless communication network examples include, but are not limited to, cellular telephones and conventional laptop and/or palm-type receivers or other electronic devices including radiotelephone transceivers.
  • a mobile phone is an electronic device equipped with a cellular communication module.
  • FIG. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • the electronic device 1 may include a casing 10 , a camera module 20 and a display screen 30 .
  • the display screen 30 is arranged on the casing 10 and can be used to display images.
  • the camera module 20 can be arranged in the casing 10 and can receive light from the external environment to capture images.
  • the casing 10 may include a middle frame and a rear case
  • the display screen 30 may be covered on one side of the middle frame
  • the rear case may be covered on the other side of the middle frame.
  • the display screen 30 and the rear case can be covered on two opposite sides of the middle frame by means of bonding, welding, snap-fitting and the like.
  • the camera module 20 can be arranged between the display screen 30 and the rear case, and can receive light from the external environment.
  • the rear shell can be the battery cover of the electronic device 1, and its material can be glass, metal, hard plastic, etc., and can also be made of other electrochromic materials.
  • the rear case has a certain structural strength and is mainly used to protect the electronic device 1 .
  • the material of the middle frame may also be glass, metal, hard plastic, and the like.
  • the middle frame also has a certain structural strength, and is mainly used to support and fix the camera module 20 and other functional devices installed between the middle frame and the rear case. Such as batteries, motherboards, and antennas.
  • the material of the middle frame and the rear shell may preferably have certain properties such as wear resistance, corrosion resistance, and scratch resistance, or the outer surface of the middle frame and the rear shell ( That is, the outer surface of the electronic device 1) is coated with a layer of functional material for wear resistance, corrosion resistance and scratch resistance.
  • the display screen 30 may include a display module and a circuit for responding to a touch operation on the display module.
  • the display screen 30 may use an OLED (Organic Light-Emitting Diode) screen for image display, or may use an LCD (Liquid Crystal Display, liquid crystal display) screen for image display.
  • the display screen 30 may be a flat screen, a hyperbolic screen, or a four-curved screen in appearance, which is not limited in this embodiment.
  • the above-mentioned flat screen means that the display screen 30 is set in a flat shape as a whole;
  • the above-mentioned hyperbolic screen means that the left and right edge areas of the display screen 30 are set in a curved shape, and other areas are still in the shape of a flat panel. It is arranged in a flat shape, which can not only reduce the black border of the display screen 30 and increase the visible area of the display screen 30, but also increase the appearance aesthetics and grip of the electronic device 1; the above-mentioned four-curved screen refers to the top of the display screen 30.
  • lower, left and right edge areas are all curved, and other areas are still flat, so that not only can further reduce the black border of the display screen 30 and increase the visible area of the display screen 30, but also can further increase the size of the electronic device. 1. Beautiful appearance and grip feel.
  • FIG. 4 is a schematic structural diagram of the camera module in the electronic device shown in FIG. 3 .
  • the camera module 20 may include a lens 100 , a photosensitive element 200 , a first bracket 300 , a first driving motor 400 and a second driving motor 500 .
  • the first bracket 300 has a first side and a second side disposed opposite to each other, the first driving motor 400 is disposed on the first side, and the second driving motor 500 is disposed on the second side.
  • the first driving motor 400 and the second driving motor 500 are arranged on the same support at the same time, and are respectively located on opposite sides of the first support 300 .
  • setting the first driving motor 400 and the second driving motor 500 on different brackets can save one bracket and simplify the structure of the camera module 20 .
  • the lens 100 is arranged on the first driving motor 400 , and the lens 100 can be driven to move by the first driving motor 400 to achieve anti-shake of the lens 100 .
  • the material of the lens 100 may be glass or plastic.
  • the lens 100 is mainly used to change the propagation path of light and focus the light.
  • the lens 100 may include multiple groups of lenses, and the multiple groups of lenses will mutually correct and filter light.
  • the photosensitive element 200 may specifically be an image sensor such as a CCD (Charge Coupled Device, Charge Coupled Device), or an image sensor such as a CMOS (Complementary Metal Oxide Semiconductor, Complementary Metal Oxide Semiconductor).
  • the photosensitive element 200 can be arranged opposite to the lens 100 in the direction of the optical axis of the camera module 20 (that is, the direction of the optical axis of the lens 100, as shown by the dashed line in FIG. 2 ), and is mainly used to receive light collected by the lens 100 and The optical signal is converted into an electrical signal, so as to realize the imaging requirement of the camera module 20 .
  • the photosensitive element 200 is arranged on the second driving motor 500 , and the photosensitive element 200 can be driven to move by the second driving motor 500 so as to realize anti-shake of the photosensitive element 200 of the camera module 20 .
  • the first driving motor 400 and the second driving motor 500 are mainly used to improve the imaging effect of the camera module 20 caused by shaking of the user during use, so that the imaging effect of the photosensitive element 200 can meet the user's requirements. Usage requirements.
  • the camera module 20 of the embodiment of the present application can not only realize the anti-shake of the lens 100, but also realize the anti-shake of the photosensitive element 200, that is, the camera module 20 of the embodiment of the present application has dual anti-shake functions.
  • the first drive motor 400 in the embodiment of the present application may be one of electromagnetic motor, piezoelectric motor, memory alloy driver and micro-electro-mechanical system, and the electromagnetic motor may include shrapnel motor and ball motor.
  • the first driving motor 400 can drive the lens 100 to translate in a preset plane, and the second driving motor 500 can also use one of electromagnetic motor, piezoelectric motor, memory alloy driver and micro-electromechanical system, and the second driving motor
  • the type adopted by 500 may be the same as that adopted by the first drive motor 400 , for example, both adopt electromagnetic motors, or both adopt piezoelectric motors.
  • the type adopted by the second driving motor 500 may be different from that adopted by the first driving motor 400.
  • the first driving motor 400 may adopt an electromagnetic motor
  • the second driving motor 500 may adopt a memory alloy driver and a micro-electromechanical motor. System (Micro-Electro-Mechanical System, MEMS).
  • MEMS Micro-Electro-Mechanical System
  • the second driving motor 500 can drive the photosensitive element 200 to translate on a preset plane, or drive the photosensitive element 200 to rotate along a preset axis.
  • the single anti-shake function such as camera anti-shake or photosensitive chip anti-shake can be realized.
  • the single anti-shake structure such as camera anti-shake or photosensitive chip anti-shake is limited by the structural space of the electronic device.
  • the optical anti-shake function can only be realized at small angles (such as within 1 degree or within 1.5 degrees).
  • the camera module 20 of the embodiment of the present application can realize the anti-shake of the lens 100 and the anti-shake of the photosensitive element 200 at the same time, integrate the anti-shake function of the lens 100 and the anti-shake function of the photosensitive element 200, and can realize optical anti-shake at a larger angle compared with related technologies , to effectively improve the optical anti-shake effect of the camera module 20.
  • the camera module 20 of the present application can realize 2-degree lens translation anti-shake, 2-degree photosensitive element translation anti-shake, and 3-degree photosensitive element rotation anti-shake.
  • Fig. 5 is the structure schematic diagram of the first support shown in Fig. 4, the first drive motor and the second drive motor
  • Fig. 6 is the first support shown in Fig. 4, the first drive motor and the second drive motor Schematic diagram of the exploded structure of the driving motor.
  • the first driving motor 400 may include a carrier 410, a first driving module 420 and a second driving module 430, the carrier 410 has a receiving space 411, the lens 100 is accommodated in the receiving space 411 and connected to the carrier 410, the first driving The module 420 is arranged on the carrier 410, and the first driving module 420 can drive the carrier 410 to move in a direction parallel to the optical axis of the lens 100 so as to drive the lens 100 to move in a direction parallel to the optical axis of the lens 100, so as to compensate for the movement of the lens 100 in a direction parallel to the optical axis of the lens 100. Shake amount in the direction of the optical axis of the lens 100.
  • the second driving module 430 is arranged on the carrier 410, and the second driving module 430 can drive the carrier 410 to move along the direction perpendicular to the optical axis of the lens 100 so as to drive the lens 100 to move along the direction perpendicular to the optical axis of the lens 100, so as to compensate the 100 The shake amount in the direction perpendicular to the optical axis of the lens 100 .
  • the embodiment of the present application uses two different drive modules to perform two different displacements on the carrier 410 respectively.
  • Direction driving can prevent damage to some components of the driving module when the same driving module simultaneously realizes displacement in two different directions, thereby improving the anti-shake reliability of the first driving motor 400 and improving the first driving The overall performance of the motor 400.
  • the shrapnel-type drive motors of some mobile phones usually use the shrapnel structure and the ring structure to realize the horizontal and vertical displacement of the drive motor to drive the horizontal and vertical displacement of the lens.
  • the problem of the shrapnel structure and/or the breakage of the ring wire is easy to occur;
  • the ball-type driving motor of some mobile phones usually uses multiple balls to realize the horizontal and vertical displacement of the driving motor to drive the horizontal direction of the lens
  • the displacement in the vertical direction however, in the process of realizing the displacement in the vertical direction, multiple balls will collide with each other, so that the multiple balls are prone to pits, resulting in the problem of unsmooth rolling.
  • the first driving module 420 of the embodiment of the present application includes an elastic structure 421, and the elastic structure 421 is configured so that the elastic force can make the carrier 410 move in a direction parallel to the optical axis of the lens 100;
  • the second driving module 430 includes
  • the rolling structure 431 is configured to enable the carrier 410 to move in a direction perpendicular to the optical axis of the lens 100 based on the rolling operation of the rolling structure 431 .
  • the first driving module 420 of the embodiment of the present application realizes the up and down movement of the carrier 410 through the elastic structure 421, and the second driving module 430 realizes the left and right movement of the carrier 410 through the rolling structure 431.
  • the elastic structure 421 is easily broken due to being pulled by two mutually perpendicular directions such as up and down movement and left and right movement at the same time, and can avoid the problem that the rolling structure 431 is prone to pits during the up and down movement process, resulting in unsmooth rolling.
  • the carrier 410 may include a first carrier 411 , a second carrier 412 and a guide 413 , both of the second carrier 412 and the guide 413 are disposed on the first carrier 411 .
  • the first carrier 411 may be in a regular shape, for example, the first carrier 411 may be a first carrier 411 with a rectangular frame structure. Certainly, the first bearing member 411 may also be a rounded rectangle or an irregular shape.
  • the second bearing part 412 can be disposed in the through hole of the first bearing part 411 and can move in the through hole.
  • the lens 100 can be arranged on the second carrier 412 , and when the second carrier 412 moves, the lens 100 can be driven to move.
  • the second carrier 412 may also be a rectangular frame structure, the second carrier 412 may be provided with a through hole, the lens 100 may pass through the through hole, and be fixed to the hole wall of the through hole.
  • the guide 413 is stacked on a part of the first carrier 411 in a direction parallel to the optical axis of the lens 100 , so that a part of the first carrier 411 is exposed outside the guide 413 .
  • the guide member 413 may include a first side portion and a second side portion connected to each other, which are generally in an "L" shape.
  • the guide piece 413 of the embodiment of the present application can reduce the volume of the guide piece 413, thereby reducing the space occupation of the first drive motor 400 by the guide piece 413, which is beneficial to the first drive motor 400. Miniaturization of the drive motor 400.
  • the first driving motor 400 may further include a magnetic component 440 , which may be a permanent magnet or an electromagnet, which can generate a magnetic field.
  • the magnetic assembly 440 may be disposed on the carrier 410, and the magnetic assembly 440 may include a plurality of magnetic parts, and each magnetic part may include two magnets with opposite magnetic properties.
  • the first driving module 420 is located in the magnetic field generated by the magnetic component 440 , and the first driving module 420 can drive the carrier 410 to move along the direction parallel to the optical axis of the lens 100 under the action of the magnetic component 440 .
  • the first drive module 420 may further include a first conductive member 422, which is arranged opposite to the magnetic assembly 440 in a direction perpendicular to the optical axis of the lens 100.
  • the first conductive A magnetic field can be generated after the element 422 is energized, and the magnetic field generated by the first conductive element 422 can interact with the magnetic field of the magnetic component 440 to generate a first acting force (or magnetic acting force) perpendicular to the optical axis direction of the lens 100, elastic
  • the structure 421 can generate an elastic force perpendicular to the lens 100.
  • the first force and the elastic force act on the carrier 410 at the same time.
  • the carrier 410 can move up and down, thereby driving the lens 100 moves up and down, so as to realize the automatic focus of the lens 100 and/or compensate the shake of the lens 100 in the vertical direction.
  • the first driving module 420 may include two first conductive members 422 , and the two first conductive members 422 are disposed on opposite sides of the second carrier 412 in a direction perpendicular to the optical axis of the lens 100 .
  • the structures of the two first conductive members 422 may be the same, for example, the two first conductive members 422 may both have ring structures as shown in FIG. 6 .
  • the two first conductive members 422 can also be a single-rod structure or a double-rod structure.
  • the structures of the two first conductive elements 422 may also be different.
  • one first conductive element 422 may be a ring structure
  • the other first conductive element 422 may be a single-rod structure or a double-rod structure.
  • the magnetic assembly 440 may include a first magnetic part 441 , a second magnetic part 442 and a third magnetic part 443 , and the first magnetic part 441 , the second magnetic part 442 and the third magnetic part 443 may be all arranged on the first bearing part 411 .
  • a first conductive part 422 is located in the magnetic field generated by the first magnetic part 441, and a first conductive part 422 can generate a magnetic field when energized, and interact with the magnetic field generated by the first magnetic part 441, and exert influence on the second load Member 412 generates thrust.
  • the first magnetic part 441 may include a first magnet 4411 and a second magnet 4412, the magnetism of the first magnet 4411 is opposite to that of the second magnet 4412, for example, the first magnet 4411 may be a south pole, and the second magnet 4412 may be a north pole ; or the first magnet 4411 can be a north pole, and the second magnet 4412 can be a south pole.
  • the first magnet 4411 and the second magnet 4412 are stacked in a direction parallel to the optical axis of the lens.
  • a part of a first conductive member 422 is arranged opposite to the first magnet 4411 , and a part of a first conductive member 422 is arranged opposite to the second magnet 4412 .
  • the first conductive member 422 may include a first part disposed westward perpendicular to the optical axis of the lens 100 , a second part disposed along a direction parallel to the optical axis of the lens 100
  • the first part is set opposite to the first magnet 4411
  • the second part is set opposite to the second magnet 4412 .
  • the second magnetic member 442 is disposed opposite to the other first conductive member 422 in a direction perpendicular to the optical axis of the lens 100 . So that the other first conductive part 422 is located in the magnetic field generated by the second magnetic part 442, the other first conductive part 422 can generate a magnetic field when energized, and interact with the magnetic field generated by the second magnetic part 442, and A pushing force is generated on the second bearing member 412 , and the second bearing member 412 moves up and down relative to the first bearing member 411 under the action of the pushing force exerted by the two second conductive members and the elastic force generated by the elastic structure.
  • the thrust generated by another first conductive member 422 on the second carrier 412 may be equal to the thrust generated by one first conductive member 422 on the second carrier 412, so that both sides of the second carrier 412 are stressed Balanced while moving up and down at the same speed.
  • the pushing force generated by another first conductive member 422 on the second carrier 412 may be unequal to the pushing force generated by one first conductive member 422 on the second carrier 412 , so that both sides of the second carrier 412 Unbalanced and moving up and down at different speeds, thereby realizing the deflection of the second bearing member 412 at a certain angle.
  • the structure of the second magnetic member 442 can be the same as that of the first magnetic member 441.
  • the second magnetic member 442 can include a third magnet 4421 and a fourth magnet 4422, and the magnetic properties of the third magnet 4421 are the same as those of the first magnetic member 441.
  • the magnetism of the four magnets 4422 is opposite.
  • the third magnet 4421 can be a south pole, and the fourth magnet 4422 can be a north pole; or the third magnet 4421 can be a north pole, and the fourth magnet 4422 can be a south pole.
  • the third magnet 4421 and the fourth magnet 4422 are stacked in a direction parallel to the optical axis of the lens.
  • a part of the other first conductive part 422 is arranged opposite to the third magnet 4421, and a part of the other first conductive part 422 is arranged opposite to the fourth magnet 4422.
  • a part of the other first conductive part 422 is arranged opposite to the fourth magnet 4422.
  • the structure of the third magnetic part 443 is different from that of the first magnetic part 441 and the second magnetic part 442, and it may include a fifth magnet 4431 and a sixth magnet 4432, and the fifth magnet 4431 and the sixth magnet 4432 are perpendicular to the lens 100.
  • the direction of the optical axis is stacked.
  • the magnetism of the fifth magnet 4431 is opposite to that of the sixth magnet 4432.
  • the fifth magnet 4431 can be a south pole
  • the sixth magnet 4432 can be a north pole
  • the sixth magnet 4432 can be a north pole
  • the sixth magnet 4432 can be a south pole.
  • the elastic structure 421 may include an upper elastic piece 4211 and a lower elastic piece 4212.
  • the upper elastic piece 4211 and the lower elastic piece 4212 are respectively arranged on both sides of the second carrier 412.
  • the second carrier 412 has a first side and a second side opposite to each other.
  • the upper elastic piece 4211 is arranged on the first side
  • the lower elastic piece 4212 is arranged on the second side.
  • the upper elastic piece 4211 may include a first main body part 4211a and a first connecting part 4211b connected to each other.
  • the bearing part 411 is connected, and an elastic force can be generated between the first main body part 4211a and the first main body part 4211a, and the elastic force acts on the second bearing part 412 .
  • the lower elastic piece 4212 may include a second main body portion 4212a and a second connecting portion 4212b connected to each other, the second main body portion 4212a is disposed on the second side of the second carrier 412, and the second connecting portion 4212b is connected to the first carrier 411 , an elastic force may be generated between the second main body portion 4212 a and the second connecting portion 4212 b, and the elastic force acts on the second bearing member 412 .
  • the elastic force generated by the elastic structure 421 is the combined force of the elastic force generated by the lower elastic piece 4212 and the elastic force generated by the upper elastic piece 4211 .
  • the second driving module 430 is located in the magnetic field generated by the magnetic assembly 440 , and the second driving module 430 can drive the carrier 410 to move along the direction perpendicular to the optical axis of the lens 100 under the action of the magnetic assembly 440 .
  • the second driving module 430 may further include a second conductive member 432 , and the second conductive member 432 is disposed opposite to the magnetic assembly 440 in a direction parallel to the optical axis of the lens 100 .
  • the second conductive member 432 is energized, a magnetic field can be generated, and the magnetic field generated by the second conductive member 432 can interact with the magnetic field of the magnetic component 440 to generate a second direction parallel to the optical axis of the lens 100.
  • the acting force or magnetic acting force
  • the second acting force acts on the carrier 410 to drive the carrier 410 to move in a direction perpendicular to the optical axis of the lens 100 based on the rolling structure 431 to compensate for the shake of the lens 100 in the horizontal direction.
  • the second driving module 430 may include three second conductive members. In the direction parallel to the optical axis of the lens 100, one second conductive member 432 is arranged opposite to the first magnetic member 441 so that the second conductive member 432 is located at the first magnetic member 441.
  • the second conductive part 432 can generate a magnetic field when energized, and interact with the magnetic field generated by the first magnetic part 441, and generate thrust to the first bearing part 411, the first bearing
  • the component 411 drives the second bearing component 412 and the guide component 413 to move along the direction perpendicular to the optical axis of the lens 100 (or move left and right) together based on the rolling operation of the rolling structure 431 under the action of the thrust force, so as to compensate for the horizontal direction of the lens 100 on the jitter.
  • the rolling structure 431 may include a plurality of first balls 4311 and a plurality of second balls 4312, the plurality of first balls 4311 and the plurality of second balls 4312 are all arranged on the carrier 410, and the second function produced by the second conductive member 432
  • the force can drive the carrier 410 to move along the first sub-direction based on the plurality of first balls 4311, and/or drive the carrier 410 to move along the second sub-direction based on the plurality of second balls 4312, the first sub-direction and the second sub-direction are both perpendicular in the direction of the optical axis of the lens 100, and the first sub-direction and the second sub-direction are perpendicular to each other.
  • the movement of the lens 100 can be decomposed into movements in three directions such as X, Y and Z directions, wherein the X direction and the Y direction are perpendicular to the Y direction at the same time, and the X direction and the Y direction are on a plane perpendicular to the Z direction. are perpendicular to each other, wherein the Z direction can be understood as parallel to the optical axis direction of the lens 100, the X direction and the Y direction can be understood as two sub-directions perpendicular to the optical axis direction of the lens 100, and the X direction can be understood as the first sub-direction, The Y direction can be understood as the second sub-direction.
  • the second conductive member 432 disposed opposite to the first magnetic member 441 and the second force generated by the second conductive member 432 disposed opposite to the second magnetic member 442 can drive the carrier 410 based on The plurality of first balls 4311 move along the X direction, and the second force generated by the second conductive member 432 opposite to the third magnetic member 443 can drive the carrier 410 to move along the Y direction based on the plurality of second balls 4312 .
  • first balls 4311 are disposed on a side of the guide 413 facing away from the first carrier 411 , and a plurality of second balls 4312 are sandwiched between the guide 413 and the first carrier 411 .
  • the first carrier 411 can move in the first sub-direction (or in the X direction) relative to the first bracket 300 based on the plurality of first balls 4311, and at the same time drive the guide 413 and the second carrier 412 in the second sub-direction.
  • the first driving motor 400 can compensate the lens 100 in the first sub-direction; and/or the first carrier 411 can be based on the plurality of second balls 4312 Moving in the second sub-direction (or Y direction) drives the guide member 413 and the second bearing member 412 to move in the second sub-direction, so that the first driving motor 400 can compensate the lens 100 in the second sub-direction.
  • the first carrier 411 has a groove 4111 and a protruding portion 4112 adjacent to each other.
  • the guide 413 is accommodated in the groove 4111 .
  • the outer surface of the protruding portion 4112 is substantially flush with the outer surface of the guide 413 . Wherein, substantially flush can be understood as the two outer surfaces are flush within the allowable error in this field.
  • the rolling structure 431 may further include a third ball 4313, the third ball 4313 is disposed on the carrier 410, and the plurality of third balls 4313 can make the carrier 410 move relative to the first support 300 along the first sub-direction and/or the second sub-direction .
  • the third ball 4313 is disposed on the protrusion 4112 .
  • the second force generated by the second conductive member 432 can drive the carrier 410 to move in the first sub-direction based on a plurality of first balls 4311 and third balls 4313, or drive the carrier 410 based on a plurality of second balls 4312 and third balls 4313 moves in the second sub-direction.
  • the ball driving motor in the related art is usually provided with eight balls, four of which are used to realize the movement of the carrier in the X direction, and the other four balls are used to realize the movement of the carrier in the Y direction.
  • the third ball 4313 that can roll along the first sub-direction (or X direction) and the second sub-direction (or Y direction) can be set, so as to realize more rolling in the first sub-direction.
  • a first ball 4311 and a plurality of second balls 4312 for rolling in the second sub-direction can share one ball, thereby saving one ball compared with the related art, reducing the components of the first driving motor 400, and simplifying the first driving motor 400. Structure.
  • the first driving motor 400 may further include a cover body 450 , the cover body 450 is connected to the first bracket 300 to form an activity space between the first bracket 300 and the cover body 450 , and the carrier 410 is movably accommodated in the activity space. It can be understood that the carrier 410 can move up and down and/or move left and right in the activity space.
  • a plurality of first balls 4311 are sandwiched between the cover 450 and the guide 413 , so that the guide 413 can move left and right relative to the cover 450 , and the third balls 4313 are sandwiched between the cover 450 and the first bearing 411 , so that the first carrier 411 can move left and right relative to the cover 450 .
  • the two first conductive members 422 can be energized according to the compensation data, and the two first conductive members 422 are in the energized state
  • a magnetic field can be generated, and the generated magnetic field interacts with the magnetic fields of the first magnetic member 441 and the second magnetic member 442 to generate a thrust force on the second bearing member 412, thereby driving the second bearing member 412 in the passage of the first bearing member 411.
  • the hole moves up and down.
  • the second carrier 412 moves, it can drive the lens 100 to move up and down to change the distance between the lens 100 and the photosensitive chip 460 to achieve focusing.
  • the lens 100 moves up and down, it can also compensate for the lens 100 being parallel to the lens 100 Jitter in the direction of the optical axis.
  • the two second conductive parts respectively arranged opposite to the first magnetic part 441 and the second magnetic part 442 can be assigned according to the first compensation data.
  • One or both of the parts 432 are energized, and the second conductive part 432 can generate a magnetic field in the energized state, and the generated magnetic field interacts with the magnetic field of the first magnetic part 441 and/or the second magnetic part 442 to generate a magnetic field for the first magnetic part 441 and/or the second magnetic part 442.
  • a bearing 411 generates a thrust to drive the first bearing 411 to drive the second bearing 412 and the guide 413 based on a plurality of first balls 4311 and third balls 4313 relative to the cover 450 and the first bracket 300 in the first sub-direction Moving left and right in the first sub-direction (or X direction), the second carrier 412 can drive the lens 100 to move left and right in the first sub-direction (or X direction), thereby compensating for the shake of the lens 100 in the first sub-direction.
  • the second conductive member 432 opposite to the third magnetic member 443 can be energized according to the first compensation data, and the second conductive member 432 can generate a magnetic field in the energized state, and the generated magnetic field interacts with the magnetic field of the third magnetic member 443 to generate a thrust force on the first bearing member 411 to drive the first bearing member 411 to drive the second bearing member 412 and the guide member 413
  • the second carrier 412 can drive the lens 100 together when moving. Move left and right in the second sub-direction (or Y direction), so as to compensate the shaking of the lens 100 in the second sub-direction (or Y direction).
  • the second driving motor 500 may include a bottom plate 510 and a deformation member 520, the bottom plate 510 may provide support for other components of the second driving motor 500, and the deformation member 520 may be deformed to drive the photosensitive element 200 to rotate vertically to the lens. 100 in the direction of the optical axis (including the X direction and/or the Y direction), thereby realizing the optical anti-shake function of the photosensitive element 200 .
  • the deformable part 520 may include a fixed part 521 and a deformable part 522, the fixed part 521 is fixedly connected to the bottom plate 510, the deformable part 522 is connected to the photosensitive element 200, and the deformable part 522 can be energized according to the compensation data, and the deformable part 522 is in the electrified state
  • the bottom can be deformed, thereby driving the photosensitive element 200 to move relative to the bottom plate 510 along a direction perpendicular to the optical axis of the lens 100 .
  • the deformation part 522 may include a first part 5221, a second part 5222 and a third part 5223, and different currents are passed to different deformation parts according to the compensation data, so that the first part 5221, the second part 5222 and the third part 5223 produce the same or different deformations, thereby driving the photosensitive element 200 to translate relative to the bottom plate 510 in a direction perpendicular to the optical axis of the lens 100 and to rotate in a direction along the optical axis of the lens 100 .
  • the deformable portion 522 can be formed by using shape memory alloys (shape memory alloys, SMA).
  • the shape memory alloy can heat and deform the shape memory alloy in the energized state, and the length of the deformable portion 522 can be changed during deformation, thereby
  • the photosensitive element 200 connected to it is driven to move to realize the anti-shake function of the photosensitive element 200 .
  • FIG. 7 is a schematic diagram of a first structure of an optical anti-shake system provided in an embodiment of the present application.
  • the optical anti-shake system 2000 includes the camera module 20 and the detection module 40 as described in the embodiment of the above application, the camera module 20 includes the lens 100, the photosensitive element 200, the first driver chip 600 and the second driver chip 700; the first driver The chip 600 is connected to the lens 100, and the second driving chip 700 is connected to the photosensitive element 200; wherein, the connection in this embodiment of the application may be a direct connection or an indirect connection through other devices.
  • the first driving chip 600 can be connected to the lens 100 through the first driving motor
  • the first driving chip 600 can control the lens 100 by controlling the first driving motor
  • the second driving chip 700 can be connected to the photosensitive element 200 through the second driving motor.
  • the second driving chip 700 can control the photosensitive element 200 by controlling the second driving motor 500 .
  • the detection module 40 obtains the jitter data of the camera module, and sends the jitter data to the first driver chip 600 and/or the second driver chip 700. If the jitter data is less than or equal to the first threshold, then according to the jitter data and the first compensation strategy Drive the lens 100 to move through the first driver chip 600 and/or drive the photosensitive element 200 to move through the second driver chip 700; if the jitter data is greater than the first threshold, then drive through the first driver chip 600 according to the jitter data and the second compensation strategy The lens 100 drives the photosensitive element 200 to move through the second driving chip 700 .
  • the optical anti-shake system further includes a processor 50 for sending a control signal to the first driver chip 600 and the second driver chip 700, so that the first driver chip 600 and the second driver chip 700 process the shaking data according to the control signal.
  • both the first driver chip 600 and the second driver chip 700 have the capability of processing shake data to obtain compensation data, and the optical image stabilization system 2000 can implement the above optical image stabilization method, which will not be repeated here.
  • the embodiment of the present application also provides another optical anti-shake system, please refer to Figure 8, which is the implementation of the present application The second structure schematic diagram of the optical anti-shake system provided in the example.
  • the optical anti-shake system 2000 may include the camera module 20 and the detection module 40 as described in the embodiment of the above application.
  • the camera module 20 includes a first driving chip 600 and a second driving chip 700 , the first driving chip 600 is connected to the lens 100 , and the second driving chip 700 is connected to the photosensitive element 200 .
  • the connection in the embodiment of the present application may be a direct connection, or may be an indirect connection through other devices.
  • the first driving chip 600 can be connected to the lens 100 through the first driving motor
  • the first driving chip 600 can control the lens 100 by controlling the first driving motor
  • the second driving chip 700 can be connected to the photosensitive element 200 through the second driving motor.
  • the second driving chip 700 can control the photosensitive element 200 by controlling the second driving motor 500 .
  • the detection module 40 can be connected with the first driving chip 600 .
  • the detection module 40 can collect the shake data of the camera module 20, and send the shake data of the camera module 20 to the first driver chip 600, and the first driver chip 600 can process the shake data of the camera module 20 to obtain compensation Data, by analyzing the compensation data through the judgment logic in the above-mentioned optical anti-shake method, the translation amount of the lens and/or the translation amount of the photosensitive element and/or the rotation amount of the photosensitive element can be obtained, and the translation amount of the photosensitive element and And/or the rotation amount of the photosensitive element is sent to the second driving chip 700, so that the second driving chip 700 controls the second driving motor to drive the photosensitive element 200 to move according to the translation amount of the photosensitive element and/or the rotation amount of the photosensitive element.
  • the first driving chip 600 controls the first driving motor to drive the lens to move according to the acquired translation amount of the lens.
  • the first driver chip 600 calculates the shake compensation amount of the lens 100 and the shake compensation amount of the photosensitive element 200 according to the shake data, and sends the shake compensation amount of the photosensitive element 200 to the second driver chip 700.
  • the driver chips perform separate calculations according to the shake data of the camera module 20.
  • the first driver chip 600 and the second driver chip 700 in the embodiment of the present application can work together to increase the distance between the first driver chip 600 and the second driver chip 700. connect.
  • the second driver chip 700 Since the specific calculation process of jitter compensation is completed by the first driver chip 600, the second driver chip 700 only needs to control the photosensitive element 200 according to the received jitter compensation data without performing calculations, so the second driver chip 700 can The structure of 700 is simplified.
  • the optical anti-shake system further includes a processor 50 configured to send a control signal to the first driver chip 600, so that the first driver chip 600 processes the shake data according to the control signal.
  • the optical anti-shake system 2000 may include the camera module 20 and the detection module 40 as described in the embodiment of the above application.
  • the camera module 20 includes a first driving chip 600 and a second driving chip 700 , the first driving chip 600 is connected to the lens 100 , and the second driving chip 700 is connected to the photosensitive element 200 .
  • the connection in the embodiment of the present application may be a direct connection, or may be an indirect connection through other devices.
  • the first driving chip 600 can be connected to the lens 100 through the first driving motor
  • the first driving chip 600 can control the lens 100 by controlling the first driving motor
  • the second driving chip 700 can be connected to the photosensitive element 200 through the second driving motor.
  • the second driving chip 700 can control the photosensitive element 200 by controlling the second driving motor 500 .
  • the detection module 40 can be connected with the second driving chip 700 .
  • the detection module 40 can collect the jitter data of the camera module 20, and send the jitter data of the camera module 20 to the second driver chip 700, and the second driver chip 700 can process the jitter data of the camera module 20 to obtain compensation Data, through the above-mentioned judgment logic in the optical anti-shake method to analyze the compensation data, the translation amount of the lens and/or the translation amount of the photosensitive element and/or the rotation amount of the photosensitive element can be obtained, and the translation amount of the lens is sent to
  • the first driving chip 600 is used so that the first driving chip 600 controls the first driving motor to drive the lens 100 to move according to the translation amount of the lens.
  • the second driving chip 700 controls the second driving motor to drive the photosensitive element to move according to the obtained translation amount of the photosensitive element and/or the rotation amount of the photosensitive element.
  • the second driver chip 700 can convert the total offset of the camera module 20 into the shake compensation amount of the lens 100 and the shake compensation amount of the photosensitive element 200, and send the shake compensation amount of the lens 100 to the first
  • the driver chip 600 compared to the two driver chips that perform separate calculations based on the jitter data of the camera module 20, the first driver chip 600 and the second driver chip 700 in the embodiment of the present application can work together, and the first driver chip 600 and the second driver chip 700 can be added The connection between the second driver chips 700 .
  • the first driver chip 600 Since the specific calculation process of jitter compensation is completed by the second driver chip 700, the first driver chip 600 only needs to control the photosensitive element 200 according to the received jitter compensation data without performing calculations, so the first driver chip 600 can The structure of 600 is simplified.
  • the optical anti-shake system further includes a processor 50 configured to send a control signal to the second driver chip 700, so that the second driver chip 700 processes the shake data according to the control signal.
  • Fig. 10 is the fourth structure of the optical anti-shake system provided by the embodiment of this application schematic diagram.
  • the difference between the optical anti-shake system in this embodiment and the above-mentioned dual anti-shake system 2000 is that the first driver chip 600 and the second driver chip 700 are not connected to the detection module 40, alternatively, the detection module 40 is connected to the processor 50, the processor 50 is connected to the first driver chip 600 and the second driver chip 700 respectively, and the processor 50 processes the shaking data of the camera module 20 detected by the detection module 40 to obtain lens compensation data and photosensitive Compensation data of the element, and send the compensation data of the lens 100 to the first driving chip 600 and send the compensation data of the photosensitive element 200 to the second driving chip 700 .
  • the first driving chip 600 controls the movement of the lens 100 according to the compensation data of the lens.
  • the second driving chip 700 controls the movement of the photosensitive element 200 according to the compensation data of the photosensitive element 100 .
  • the data detected by the detection module 40 can be directly transmitted to the processor 50, and the processor 50 can convert the total offset of the camera module 20 into the shake compensation amount of the lens 100 and the shake of the photosensitive element 200 compensation amount, and send the shake compensation amount of the lens 100 to the first driver chip 600 and the shake compensation amount of the photosensitive element 200 to the second driver chip 700, and transmit data to the first driver chip 600 relative to the detection module 40 and the second driver chip 700, the embodiment of the present application can simplify the circuit to a certain extent.
  • the first driver chip 600 and the second driver chip 700 only need to control the lens 100 and the photosensitive element 200 respectively according to the received compensation data, and No calculation is required, so the structures of the first driver chip 600 and the second driver chip 700 can be simplified, and the manufacturing costs of the first driver chip 600 and the second driver chip 700 can be reduced.
  • optical anti-shake system provided in the embodiment of the present application is only exemplary, and systems that can implement the above optical anti-shake method all belong to the protection scope of the present application.
  • FIG. 11 is a second schematic structural diagram of the electronic device provided by the embodiment of the present application.
  • the electronic device 1 includes a processor and a memory. Wherein, the processor is electrically connected with the memory.
  • the processor is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device 500 by running or loading computer programs stored in the memory and calling data stored in the memory. functions and process data.
  • the memory can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the computer programs and modules stored in the memory.
  • the memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, computer programs required by at least one function (such as sound playback function, image playback function, etc.); Data created by the use of the device, etc.
  • the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the memory 502 may also include a memory controller to provide the processor with access to the memory.
  • the processor in the electronic device will load instructions corresponding to the process of one or more computer programs into the memory according to the following steps, and the processor will run the computer program stored in the memory,
  • the above optical anti-shake method is implemented.
  • An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer is made to execute the optical anti-shake method in any of the foregoing embodiments.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • the optical anti-shake method of the embodiment of the present application ordinary testers in the field can understand that all or part of the flow of the optical anti-shake method of the embodiment of the present application can be controlled by computer programs.
  • the computer program can be stored in a computer-readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process can include, for example, a temperature control method The flow of the embodiment.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Adjustment Of Camera Lenses (AREA)
  • Studio Devices (AREA)

Abstract

一种光学防抖方法、***、计算机可读存储介质及电子设备,方法应用于摄像头模组,摄像头模组包括镜头和感光元件,包括:获取摄像头模组的抖动数据;若抖动数据小于或等于第一阈值,则根据抖动数据和第一补偿策略驱动镜头和/或感光元件运动;若抖动数据大于第一阈值,则根据抖动数据和第二补偿策略驱动镜头和感光元件运动。

Description

光学防抖方法、***、计算机可读存储介质及电子设备
本申请要求于2021年08月03日提交中国专利局,申请号为202110887722.3发明名称为“光学防抖方法、***、计算机可读存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,特别涉及一种光学防抖方法、***、计算机可读存储介质及电子设备。
背景技术
随着电子设备的不断普及,电子设备已经成为人们日常生活中不可或缺的社交工具和娱乐工具,人们对于电子设备的要求也越来越高。人们在使用摄像头进行拍摄的过程中,存在因摄像头抖动而导致拍摄的图像模糊、不清晰的问题。目前摄像头可以通过集成光学防抖、电子防抖、感光器防抖等技术以减弱摄像头抖动对成像清晰度的影响。
发明内容
本申请实施例提供一种光学防抖方法,应用于摄像头模组,所述摄像头模组包括镜头和感光元件,所述方法包括:
获取所述摄像头模组的抖动数据;
若所述抖动数据小于或等于第一阈值,则根据所述抖动数据和第一补偿策略驱动所述镜头和/或所述感光元件运动;
若所述抖动数据大于所述第一阈值,则根据所述抖动数据和第二补偿策略驱动所述镜头和所述感光元件运动。
本申请实施例提供一种光学防抖的***,包括检测模组和摄像头模组,摄像头模组包括镜头、感光元件、第一驱动芯片和第二驱动芯片;第一驱动芯片与镜头连接,第二驱动芯片与感光元件连接;
检测模组获取摄像头模组的抖动数据,将抖动数据发送至第一驱动芯片和/或第二驱动芯片,若所述抖动数据小于或等于第一阈值,则根据所述抖动数据和第一补偿策略通过第一驱动芯片驱动所述镜头运动和/或通过第二驱动芯片驱动所述感光元件运动;若所述抖动数据大于所述第一阈值,则根据所述抖动数据和第二补偿策略驱动通过第一驱动芯片驱动所述镜头和通过第二驱动芯片驱动所述感光元件运动。
本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上所述的光学防抖方法。
本申请实施例提供一种电子设备,包括处理器、存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行如上所述的光学防抖方法。
本申请实施例提供一种电子设备,包括:镜头、感光元件、第一支架、第一驱动电机以及第二驱动电机,所述第一支架具有相背设置的第一侧和第二侧,所述第一驱动电机设置在所述第一侧,所述第二驱动电机设置在所述第二侧,所述镜头设置在所述第一驱动电机上,所述第一驱动电机用于驱动所述镜头移动,所述感光元件设置在所述第二驱动电机上,所述第二驱动电机用于驱动所述感光元件移动。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的光学防抖方法的第一种流程示意图。
图2为本申请实施例提供的光学防抖方法的第二种流程示意图。
图3为本申请实施例提供的电子设备的第一种结构示意图。
图4为图3所示电子设备中摄像头模组的结构示意图。
图5为图4所示第一支架、第一驱动电机和第二驱动电机的结构示意图。
图6为图4所示第一支架、第一驱动电机和第二驱动电机的***结构示意图。
图7为本申请实施例提供的光学防抖***的第一种结构示意图。
图8为本申请实施例提供的光学防抖***的第二种结构示意图。
图9为本申请实施例提供的光学防抖***的第三种结构示意图。
图10为本申请实施例提供的光学防抖***的第四种结构示意图。
图11为本申请实施例提供的电子设备的第二种结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供一种光学防抖方法,应用于摄像头模组,所述摄像头模组包括镜头和感光元件,所述方法包括:
获取所述摄像头模组的抖动数据;
若所述抖动数据小于或等于第一阈值,则根据所述抖动数据和第一补偿策略驱动所述镜头运动和/或所述感光元件运动;
若所述抖动数据大于所述第一阈值,则根据所述抖动数据和第二补偿策略驱动所述镜头和所述感光元件运动。
本申请的一种可选的实施例中,所述根据所述抖动数据和第一补偿策略驱动所述镜头运动和/或所述感光元件运动包括:
根据所述抖动数据确定第一补偿数据;
若所述第一补偿数据满足第一补偿条件,所述第一补偿条件为所述第一补偿数据仅包括镜头的平移量,则根据所述第一补偿数据驱动所述镜头运动;
若所述第一补偿数据满足第二补偿条件,所述第二补偿条件为所述第一补偿数据包括镜头的平移量和感光元件的转动量,则根据所述第一补偿数据驱动所述镜头和所述感光元件运动。
本申请的一种可选的实施例中,所述根据所述第一补偿数据驱动所述镜头运动包括:
根据所述第一补偿数据驱动所述镜头平移;
所述根据所述第一补偿数据驱动所述镜头和所述感光元件运动包括:
根据所述第一补偿数据驱动所述镜头平移,驱动所述感光元件转动。
本申请的一种可选的实施例中,所述根据所述第一补偿数据驱动所述镜头平移包括:
根据所述第一补偿数据确定出第一平移量;
根据所述第一平移量驱动所述镜头在所述平移;
所述根据所述第一补偿数据驱动所述镜头平移,驱动所述感光元件转动包括:
根据所述第一补偿数据确定出第二平移量和第一转动量;
根据所述第二平移量驱动所述镜头在平移;
根据所述第一转动量驱动所述感光元件转动。
本申请的一种可选的实施例中,所述第二补偿策略包括第一子策略和第二子策略,所述若所述抖动数据大于所述第一阈值,则根据所述抖动数据和第二补偿策略驱动所述镜头和所述感光元件运动包括:
若所述抖动数据大于所述第一阈值且小于或等于第二阈值,根据所述抖动数据和所述第一子策略驱动所述镜头和所述感光元件运动;
若所述抖动数据大于所述第二阈值,则根据所述抖动数据和第二子策略驱动所述镜头和所述感光元件运动。
本申请的一种可选的实施例中,所述根据所述第一子策略驱动所述镜头和所述感光元件运动包括:
根据所述抖动数据确定出第二补偿数据;
若所述第二补偿数据满足第三补偿条件,所述第三补偿条件为所述第二补偿数据包括镜头的平移量和感光元件的平移量,则根据所述第二补偿数据驱动所述镜头平移和驱动所述感光元件平移;
若所述第二补偿数据满足第四补偿条件,所述第四补偿条件为第二补偿数据包括镜头的平移量、感光元件的平移量和感光元件的转动量,则根据所述第二补偿数据驱动所述镜头平移,以及驱动所述感光元件平移和转动。
本申请的一种可选的实施例中,所述根据所述第二补偿数据驱动所述镜头平移和驱动所述感光元件平移包括:
根据所述第二补偿数据确定出第三平移量和第四平移量;
根据所述第三平移量驱动所述镜头平移,根据所述第四平移量驱动所述感光元件平移;
所述根据所述第二补偿数据驱动所述镜头平移,以及驱动所述感光元件平移和转动包括:
根据所述第二补偿数据确定出第五平移量、第六平移量以及第二转动量;
根据所述第五平移量驱动所述镜头平移、根据所述第六平移量驱动所述感光元件平移以及根据所述第二转动量驱动所述感光元件转动。
本申请的一种可选的实施例中,所述根据所述抖动数据和第二子策略驱动所述镜头和所述感光元件运动包括:
根据所述抖动数据确定出第三补偿数据;
根据所述第三补偿数据驱动所述镜头平移和驱动所述感光元件平移。
本申请的一种可选的实施例中,所述根据所述第三补偿数据驱动所述镜头平移和驱动所述感光元件平移包括:
根据所述第三补偿数据确定出第七平移量和第八平移量;
根据所述第七平移量驱动所述镜头平移,根据所述第八平移量驱动所述感光元件平移。
本申请实施例还提供一种光学防抖***,包括检测模组和摄像头模组,摄像头模组包括镜头、感光元件、第一驱动芯片和第二驱动芯片;第一驱动芯片与镜头连接,第二驱动芯片与感光元件连接;
检测模组获取摄像头模组的抖动数据,将抖动数据发送至第一驱动芯片和/或第二驱动芯片,若所述抖动数据小于或等于第一阈值,则根据所述抖动数据和第一补偿策略通过第一驱动芯片驱动所述镜头运动和/或通过第二驱动芯片驱动所述感光元件运动;若所述抖动数据大于所述第一阈值,则根据所述抖动数据和第二补偿策略驱动通过第一驱动芯片驱动所述镜头和通过第二驱动芯片驱动所述感光元件运动。
本申请的一种可选的实施例中,所述摄像头模组还包括第一驱动电机和第二驱动电机,所述第一驱动芯片通过所述第一驱动电机与所述镜头连接,所述第一驱动芯片通过驱动所述第一驱动电机控制所述镜头,所述第二驱动芯片通过所述第二驱动电机与所述感光元件连接,所述第二驱动芯片通过控制所述第二驱动电机控制所述感光元件。
本申请的一种可选的实施例中,所述检测模块与所述第一驱动芯片连接,所述检测模块用于将采集的抖动数据发送给所述第一驱动芯片,所述第一驱动芯片用于对所述抖动数据进行分析,以得到所述镜头的平移量和/或感光元件的平移量和/或感光元件的转动量,所述第一驱动芯片根据得到的镜头的平移量控制所述第一驱动电机驱动所述镜头运动,所述第一驱动芯片还用于将分析得到的感光元件的平移量和/或感光元件的转动量发送至所述第二驱动芯片,以使所述第二驱动芯片根据所述感光元件的平移量和/或感光元件的转动量控制第二驱动电机驱动所述感光元件运动。
本申请的一种可选的实施例中,所述检测模块与所述第二驱动芯片连接,所述检测模块用于将采集的抖动数据发送给所述第二驱动芯片,所述第二驱动芯片用于对所述抖动数据进行分析,以得到所述镜头的平移量和/或感光元件的平移量和/或感光元件的转动量,所述第二驱动芯片根据得到的感光元件的平移量和/或感光元件的转动量控制所述第二驱动电机驱动所述感光元件运动,所述第二驱动芯片还用于将分析得到的所述镜头的平移量发送至所述第一驱动芯片,以使所述第一驱动芯片根据所述镜头的平移量控制所述第一驱动电机驱动所述镜头运动。
本申请的一种可选的实施例中,所述光学防抖***还包括处理器,所述处理器用于向所述第一驱动芯片和第二驱动芯片发送控制信号,以使所述第一驱动芯片和所述第二驱动芯片根据所述控制信号对抖动数据进行处理。
本申请的一种可选的实施例中,所述检测模块与所述处理器连接,所述处理器分别与所述第一驱动芯片和所述第二驱动芯片连接,所述处理器对所述检测模组所检测到的抖动数据进行处理以得到镜头的补偿数据和感光元件的补偿数据;所述处理器将所述镜头的补偿数据发送给所述第一驱动芯片,以使所述第一驱动芯片根据所述镜头的补偿数据控制所述镜头运动,所述处理器将所述感光元件的补偿数据发送给所述第二驱动芯片,以使所述第二驱动芯片根据所述感光元件的补偿数据控制所述感光元件运动。
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如上所述的光学防抖方法。
本申请实施例还提供一种电子设备,包括处理器、存储器,所述存储器有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行如上所述的光学防抖方法。
本申请实施例还提供一种电子设备,包括:镜头、感光元件、第一支架、第一驱动电机以及第二驱动电机,所述第一支架具有相背设置的第一侧和第二侧,所述第一驱动电机设置在所述第一侧,所述第二驱动电机设置在所述第二侧,所述镜头设置在所述第一驱动电机上,所述第一驱动电机用于驱动所述镜头移动,所述感光元件设置在所述第二驱动电机上,所述第二驱动电机用于驱动所述感光元件移动。
本申请的一种可选的实施例中,所述第一驱动电机用于驱动所述镜头在预设平面平移,所述第二驱动电机用于驱动所述感光元件在预设平面平移或沿预设轴转动。
本申请的一种可选的实施例中,所述第一驱动电机包括电磁式马达、压电式马达、记忆合金式驱动器以及微型机电***中的任意一种,所述第二驱动电机包括电磁式马达、压电式马达、记忆合金式驱动器以及微型机电***中的任意一种。
本申请实施例提供一种光学防抖方法,请参阅图1,图1为本申请实施例提供的光学防抖方法的第一种流程示意图。光学防抖方法应用于摄像头模组,摄像头模组包括镜头和感光元件,光学防抖方法包括:
101,获取摄像头模组的抖动数据。
在摄像头模组拍摄图像的过程中,如果摄像头模组产生抖动或者移动则会影响成像的清晰度,使得采集的图像产生模糊。可以通过检测角速度的角运动检测模组获取摄像头模组的抖动数据,诸如陀螺仪,陀螺仪可以检测摄像头模组是否发生抖动,并在摄像头模组发生抖动时获取摄像头模组的角速度信息,在其他一些实施例中,还可以通过检测加速度的检测模组获取摄像头模组的抖动数据,诸如加速度计。当然,还可以通过其他检测模组获取摄像头模组的抖动数据,只要能检测得到摄像头模组的抖动数据即可,本申请实施例中对此并不予以限定。根据检测模组的角速度信息和/或加速度信息等可以检测出摄像头模组抖动数据,例如摄像头模组抖动1度、摄像头模组抖动2度或摄像头模组抖动3度等。
102,若抖动数据小于或等于第一阈值,则根据抖动数据和第一补偿策略驱动镜头运动和/或感光元件运动。
由于镜头运动和感光元件运动之间需要配合,可以根据抖动数据合理安排镜头和感光元件运动以实现光学防抖,以实现更大角度的光学防抖,有效提升摄像头模组的光学防抖效果,以镜头可以实现最大2度防抖示例,第一阈值可以为2度,若摄像头模组抖动数据小于或等于2度时,根据抖动数据和第一补偿策略驱动镜头和/或感光元件运动,其中,第一补偿策略可以包括:驱动镜头运动以对摄像头模组抖动进行补偿,驱动感光元件对摄像头模组抖动进行补偿,驱动镜头运动和感光元件运动以对摄像头模组抖动进行补偿。
103,若抖动数据大于第一阈值,则根据抖动数据和第二补偿策略驱动镜头和感光元件运动。
若抖动数据大于2度,根据抖动数据和第二补偿策略驱动镜头运动和感光元件运动,第二补偿策略可以为驱动镜头运动和感光元件运动对摄像头模组抖动进行补偿,通过驱动镜头运动和感光元件运动可以实现更大角度的光学防抖。
本申请实施例提供一种光学防抖方法可以同时实现镜头防抖和感光元件防抖,根据摄像头模组的抖动数据采取不同的防抖策略,相对于仅采用摄像头防抖或感光元件防抖等单一防抖结构,本申请实施例可以实现更大角度的光学防抖,有效提升摄像头模组的光学防抖效果。
在一些实施例中,第二补偿策略可以包括第一子策略和第二子策略,第一子策略和第二子策略不同。若抖动数据大于第一阈值且小于或等于第二阈值,根据抖动数据和第一子策略驱动镜头和感光元件运动。若抖动数据大于第二阈值,则根据抖动数据和第二子策略驱动镜头和感光元件运动,第一子策略和第二子策略虽然都是驱动镜头和感光元件运动,但是运动的方式不同。具体的,第一子策略可以为:根据抖动数据驱动镜头平移和驱动感光元件平移,或根据抖动数据驱动镜头平移、感光元件平移和感光元件转动。第二子策略可以为根据抖动数据驱动镜头平移和感光元件平移。
示例性的,第一子策略可以包括:根据抖动数据确定出第二补偿数据,若第二补偿数据满足第三补偿条件,第三补偿条件为第二补偿数据包括镜头的平移量和感光元件的平移量,则根据第二补偿数据驱动镜头平移和驱动所述感光元件平移;若第二补偿数据满足第四补偿条件,第四补偿条件为第二补偿数据包括镜头的平移量、感光元件的平移量和感光元件的转动量则根据第二补偿数据驱动镜头平移,以及驱动感光元件平移和转动。第二子策略可以包括根据抖动数据确定出第三补偿数据;根据第三补偿数据驱动镜头平移和驱动感光元件平移。请继续参阅图2,图2为本申请实施例提供的光学防抖方法的第二种流程示意图。
201,获取摄像头模组的抖动数据。
在摄像头模组拍摄图像的过程中,如果摄像头模组产生抖动或者移动则会影响成像的清晰度,使得采集的图像产生模糊。可以通过检测角速度的角运动检测模组获取摄像头模组的抖动数据,诸如陀螺仪,陀螺仪可以检测摄像头模组是否发生抖动,并在摄像头模组发生抖动时获取摄像头模组的角速度信息,在其他一些实施例中,还可以通过检测加速度的检测模组获取摄像头模组的抖动数据,诸如加速度计。当然,还可以通过其他检测模组获取摄像头模组的抖动数据,只要能检测得到摄像头模组的抖动数据即可,本申请实施例中对此并不予以限定。根据检测模组的角速度信息和/或加速度信息等可以检测出摄像头模组抖动的角度,例如摄像头模组抖动1度、摄像头模组抖动2度或摄像头模组抖动3度等。
202,若抖动数据小于或等于第一阈值,根据抖动数据确定第一补偿数据。
203,若第一补偿数据满足第一补偿条件,第一补偿条件为第一补偿数据仅包括镜头的平移量,则根据第一补偿数据驱动镜头平移。
204,若第一补偿数据满足第二补偿条件,第二补偿条件为第一补偿数据包括镜头的平移量和感光元件的转动量,根据第一补偿数据驱动镜头和感光元件运动。
关于步骤202~204:
由于镜头运动和感光元件运动之间需要配合,可以根据抖动数据合理安排镜头和感光元件运动以实现光学防抖,以实现更大角度的光学防抖,有效提升摄像头模组的光学防抖效果,以镜头可以实现最大2度平移防抖示例,感光元件可以实现最大2度平移防抖、3度转动防抖示例,第一阈值可以为2度,若摄像头模组抖动数据小于或等于2度时,根据抖动数据确定第一补偿数据,若第一补偿数据满足第一补偿条件,根据第一补偿数据驱动镜头平移。若第一补偿数据满足第二补偿条件,根据第一补偿数据驱动镜头平移、驱动感光元件转动。
其中,第一补偿数据可以根据抖动数据、镜头和/或感光元件当前位置确定,例如,以镜头的初始位置的中心为原点, 镜头所在的平面建立XY轴坐标系,以感光元件的初始位置的中心为原点,感光元件所在的平面建立XY空间直角坐标系,根据抖动数据可以确定出镜头和感光元件当前的位置,根据镜头和感光元件当前的位置以及原始位置可以判断出摄像头模组是否发生了移动偏移和/或转动偏移,若摄像头模组发生了平移偏移,可以通过镜头平移对摄像头模组的移动偏移进行补偿,若摄像头模组产生了转动偏移,可以通过感光元件转动对摄像头模组的转动偏移进行补偿,例如,根据抖动角度以及镜头和感光元件当前位置计算得到的第一补偿数据,若第一补偿数据仅包括镜头的平移量,则说明第一补偿数据满足第一补偿条件,若第一补偿数据包括感光元件的转动量,则第二补偿数据满足第二补偿条件。
示例性的,摄像头模组抖动角度为0.5度,镜头当前的位置为(Xa,Ya),摄像头模组的抖动角度均为平移偏移产生,根据当前的位置计算得到的第一补偿数据,根据第一补偿数据确定出第一平移量(-Xb,-Yb),根据第一平移量驱动镜头沿着X轴负方向平移Xb个单位长度、沿着Y轴的负方向平移Yb个单位长度,从而使得镜头处于目标位置(Xa-Xb,Ya-Yb),即可实现摄像头模组防抖。
示例性的,摄像头模组抖动角度为1.5度,镜头当前的位置为(Xc,Yc),感光元件当前的位置为(X1,Y1),摄像头的抖动数据为平移偏移和转动偏移产生,例如1.5度中有1度为摄像头模组平移偏移导致,0.5度为摄像头模组转动偏移导致,根据抖动数据为1.5度计算得到第一补偿数据:镜头第二平移量(-Xd,-Yd)、感光元件第一转动量(-X2,-Y2)、(X3,0),根据第二平移量驱动镜头沿着X轴负方向平移Xd个单位长度、沿着Y轴的负方向平移Yd个单位长度,以使用镜头处于目标位置(Xc-Xd,Yc-Xd),根据第一转动量驱动感光元件的第一部位沿X轴负方向移动X2个单位长度、驱动感光元件的第二部位沿X轴的正方向移动X3个单位长度、驱动感光元件的第三部位沿Y轴负方向移动Y2个单位长度,以使感光元件处于目标位置(X4,Y4),其中,感光元件的目标位置(X4,Y4)为通过感光元件的不同部位的位置进行平移而到达的转动后的位置。需要说明的是,由于感光元件的运动可以包括平移和转动,平移和转动需要通过驱动组件驱动,转动通过驱动感光元件不同部位的平移实现,例如,通过驱动感光元件不同部位沿着同一坐标轴的相反方向平移,或通过不同的驱动速度驱动感光元件位于同一坐标轴的不同部位平移,均可使感光元件沿预设轴转动,由于平移和转动共用行程,平移量达到最大行程时,将无法进行转动;当转动到达最大行程时,将无法进行平移。基于此,本申请需要根据抖动数据合理安排镜头和感光元件的运动,以实现更大角度的防抖。
205,若抖动数据大于第一阈值且小于或等于第二阈值,根据抖动数据确定出第二补偿数据。
206,若第二补偿数据满足第三补偿条件,第三条件为第二补偿数据包括镜头的平移量和感光元件的平移量,则根据第二补偿数据驱动镜头平移和驱动感光元件平移。
207,若第二补偿数据满足第四补偿条件,第四补偿条件为第二补偿数据包括镜头的平移量、感光元件的平移量和感光元件的转动量,则根据第二补偿数据驱动镜头平移,以及驱动感光元件平移和转动。
关于步骤205~207:
第一阈值可以为2度,第二阈值可以为3度,若抖动数据大于第一阈值且小于或等于第二阈值,如抖动数据大于2度且小于或等于3度时,则根据抖动数据确定出第二补偿数据,若第二补偿数据满足第三补偿条件,根据第二补偿数据驱动镜头平移和驱动感光元件平移。若第二补偿数据满足第四补偿条件,根据第二补偿数据驱动镜头平移,以及驱动感光元件平移和转动。
例如,抖动数据小于2度且小于或等于3度时,根据抖动角度以及镜头和感光元件当前位置计算得到的第二补偿数据,若第二补偿数据包括镜头的平移量和感光元件的平移量,则说明第二补偿数据满足第三补偿条件,若第二补偿数据包括镜头的平移量、感光元件的平移量和感光元件的转动量,则第二补偿数据满足第四补偿条件。
其中,第二补偿数据可以根据抖动数据、镜头和/或感光元件当前位置确定,由于镜头最大可以实现2度的平移补偿,假设根据抖动数据确定出摄像头模组抖动数据为2.5度,需要镜头平移和感光元件平移对摄像头模组进行防抖,获取镜头当前的位置为(Xe,Ye),感光元件当前的位置为(X5,Y5),根据抖动数据为2.5度计算得到第二补偿数据:镜头第三平移量(-Xf,-Yf)、感光元件第四平移量(-X6,-Y6),根据得到的第三平移量驱动镜头沿着X轴负方向平移Xf个单位长度、沿着Y轴的负方向平移Yf个单位长度,以使用镜头处于目标位置(Xe-Xf,Ye-Xf),根据第四平移量驱动感光元件沿着X轴负方向移动X6个单位长度、沿着Y轴的负方向移动Y6个单位长度,以使感光元件处于目标位置(X5-X6,Y5-Y6)。
假设根据抖动数据确定出摄像头模组抖动数据为3度,其中有0.5度为摄像头模组发生转动偏移导致的,则需要镜头平移和感光元件平移以及感光元件转动以对摄像头模组进行防抖,获取镜头当前的位置为(Xg,Yg),感光元件当前的位置为(X7,Y7),根据抖动数据为3度计算得到第二补偿数据:镜头第五平移量(-Xh,-Yh)、感光元件第六平移量(-X8,-Y8),感光元件第二转动量(X9,Y9)、(X10,0),根据第五平移量驱动镜头沿着X轴负方向平移Xh个单位长度、沿着Y轴的负方向平移Yh个单位长度,以使镜头处于目标位置(Xg-Xh,Yg-Yh),根据第六平移量驱动感光元件的沿X轴负方向移动X8个单位长度、沿Y轴的负方向移动Y8个单位长度,以使感光元件处于位置(X7-X8,Y7-Y8),示例性的,通过镜头平移和感光元件平移可以实现摄像头模组的2.5度防抖,剩下的0.5度防抖可以通过感光元件的转动进行补偿,根据第二转动量驱动感光元件的第一部位沿着X轴的正方向平移X9个单位长度,驱动感光元件的第二部位沿X轴的正方向平移X10个单位长度,驱动感光元件第三部位沿Y轴的正方向平移Y9个单位,对剩余的0.5度抖动数据进行补偿。已使感光元件的目标位置处于(X11,Y11)。
可以理解的是,当抖动数据大于2度且小于等于3度时,镜头全部进行平移补偿,感光元件优先做平移补偿,若摄像头模组存在转动偏移时,通过感光元件的转动进行补偿。通过合理安排镜头和感光元件的运动补偿,可以实现摄像头模组3度的联合光学双防抖。
208,若抖动数据大于第二阈值,根据抖动数据确定出第三补偿数据。
209,根据第三补偿数据驱动镜头平移和驱动感光元件平移。
关于步骤208~209:
若抖动数据大于3度,镜头全部平移补偿和感光元件平移补偿对摄像头模组进行补偿,感光元件不对摄像头模组进行转动补偿,以对摄像头模组进行防抖,假设抖动数据为3.1度,镜头当前的位置为(Xi,Yi),感光元件当前的位置为(X12,Y12),根据抖动数据、镜头当前位置和感光元件当前的位置确定出第三补偿数据:镜头第七平移量(-Xj,-Yj),感光元件第八平移量(-X13,-Y13),根据得到的第七平移量驱动镜头沿着X轴负方向平移Xj个单位长度、沿着Y轴的负方向平移 Yj个单位长度,以使用镜头处于目标位置(Xi-Xj,Yi-Xj),根据第八平移量驱动感光元件沿着X轴负方向移动X13个单位长度、沿着Y轴的负方向移动X13个单位长度,以使感光元件处于目标位置(X12-X13,Y12-Y13)。
可以理解的是,当抖动数据大于3度时,镜头全部进行平移补偿,感光元件全部做平移补偿,感光通过合理安排镜头和感光元件的运动补偿,可以实现摄像头模组大于3度的光学防抖。
本申请实施例提供的光学防抖方法,可以同时实现镜头防抖和感光元件防抖,根据摄像头模组的抖动数据合理安排镜头和感光元件的运动,相对于仅采用摄像头防抖和感光元件防抖等单一防抖方式,可以最大限度利用镜头和感光元件的运动实现更大角度的光学防抖,有效提升摄像头模组的光学防抖效果。
本申请实施例还提供一种电子设备,作为在此使用的“电子设备”(或简称为“终端”)包括但不限于被设置成经由有线线路连接和/或经由诸如蜂窝网络、无线局域网等无线通信网络接收/发送通信信号的装置。移动终端的示例包括但不限于蜂窝电话以及常规膝上型和/或掌上型接收器或包括无线电电话收发器的其它电子装置。手机即为配置有蜂窝通信模块的电子设备。
示例性的,如图3所示,图3为本申请实施例提供的电子设备的结构示意图。电子设备1可以包括壳体10、摄像头模组20以及显示屏30。显示屏30设置在壳体10上,其可以用于显示画面,摄像头模组20可以设置于壳体10内,并能够接受到外部环境射入的光线以实现画面拍摄。其中,壳体10可以包括中框和后壳,显示屏30可以盖设于中框的一面,后壳盖设于中框的另一面。例如,显示屏30和后壳可以通过粘接、焊接以及卡接等方式盖设于中框相背设置的两面。摄像头模组20可以设置于显示屏30和后壳之间,并能够接受到外部环境射入的光线。
后壳可以是电子设备1的电池盖,它的材质可以是玻璃、金属和硬质塑料等,也可以由其它电致变色材料制成。其中,后壳具有一定的结构强度,主要用于保护电子设备1。相应地,中框的材质也可以是玻璃、金属和硬质塑料等。中框也具有一定的结构强度,主要用于支撑和固定摄像头模组20以及安装在中框和后壳之间的其他功能器件。例如电池、主板以及天线等。进一步地,由于中框和后壳一般会直接暴露于外界环境,中框和后壳的材质可以优选地具有一定的耐磨耐蚀防刮等性能,或者在中框和后壳的外表面(也即是电子设备1的外表面)涂布一层用于耐磨耐蚀防刮的功能材料。
显示屏30可以包括显示模组以及用于响应对显示模组进行触控操作的电路等。其中,显示屏30可以是使用OLED(Organic Light-Emitting Diode有机发光二极管)的屏幕进行图像显示,也可以是使用LCD(Liquid Crystal Display,液晶显示器)的屏幕进行图像显示。并且显示屏30在外形上可以是平板屏幕,也可以是双曲面屏幕,还可以是四曲面屏幕,本实施例对此不作限定。需要说明的是,对于手机而言,上述平板屏幕是指显示屏30在整体上呈平板状设置;上述双曲面屏幕是指显示屏30的左、右边缘区域呈弯曲状设置,其他区域依旧呈平板状设置,这样不仅能够减小显示屏30的黑边并增加显示屏30的可视区域,还能够增加电子设备1的外观美感及握持手感;上述四曲面屏幕是指显示屏30的上、下、左、右边缘区域均呈弯曲状设置,其他区域依旧呈平板状设置,这样不仅能够进一步减小显示屏30的黑边并增加显示屏30的可视区域,还能够进一步增加电子设备1的外观美感及握持手感。
请参阅图4,图4为图3所示电子设备中摄像头模组的结构示意图。摄像头模组20可以包括镜头100、感光元件200、第一支架300、第一驱动电机400和第二驱动电机500。其中,第一支架300具有相背设置的第一侧和第二侧,第一驱动电机400设置在第一侧上,第二驱动电机500设置在第二侧上。可以理解的是,第一驱动电机400和第二驱动电机500同时设置在同一支架上,且分别位于第一支架300的相背的两侧。相对于相关技术中,将第一驱动电机400和第二驱动电机500分别设置在不同的支架上,可以节省一个支架,简化摄像头模组20的结构。
镜头100设置在第一驱动电机400上,通过第一驱动电机400可以驱动镜头100移动而实现镜头100防抖。其中,镜头100的材质可以是玻璃或塑胶等。镜头100主要用于改变光线的传播路径,并对光线进行聚焦。镜头100可以包括多组镜片,多组镜片会相互矫正过滤光线。
感光元件200具体可以是CCD(Charge Coupled Device,电荷耦合元件)这类影像传感器,也可以是CMOS(Complementary Metal Oxide Semiconductor,互补金属氧化物半导体)这类影像传感器。感光元件200可以在摄像头模组20的光轴方向(也即是镜头100光轴方向,如图2中虚线所示)上与镜头100相对设置,主要用于接收来自镜头100采集的光线,并将光信号转化为电信号,以便于实现摄像头模组20的成像需求。感光元件200设置在第二驱动电机500上,通过第二驱动电机500可以驱动感光元件200移动以实现摄像头模组20的感光元件200防抖。
可以理解的是,第一驱动电机400和第二驱动电机500主要用于改善摄像头模组20因用户在使用过程中发生抖动而产生的成像效果,以使得感光元件200的成像效果能够满足用户的使用需求。本申请实施例的摄像头模组20既可以实现镜头100防抖,又可实现感光元件200防抖,即本申请实施例的摄像头模组20具有双防抖功能。
其中,本申请实施例的第一驱动电机400可以采用电磁式马达、压电式马达、记忆合金式驱动器以及微型机电***中的一种,电磁式马达可以包括弹片式马达和滚珠式马达。第一驱动电机400可以驱动镜头100在预设平面平移,第二驱动电机500也可以采用电磁式马达、压电式马达、记忆合金式驱动器以及微型机电***中的一种,而且第二驱动电机500所采用的类型可以与第一驱动电机400所采用的类型相同,比如两者皆采用电磁式马达,或者均采用压电式马达。当然,第二驱动电机500所采用的类型可以与第一驱动电机400所采用的类型不同,比如第一驱动电机400可以采用电磁式马达,第二驱动电机500可以采用记忆合金式驱动器以及微型机电***(Micro-Electro-Mechanical System,MEMS)。第二驱动电机500可以驱动感光元件200在预设平面平移,或驱动感光元件200沿预设轴转动。
相关技术中,通常仅可以实现摄像头防抖或感光芯片防抖等单一防抖功能,然而摄像头防抖或感光芯片防抖等单一防抖结构受电子设备的结构空间限制所能实现的防抖角度有限,仅能实现小角度(诸如1度以内或1.5度以内)的光学防抖功能。本申请实施例的摄像头模组20可以同时实现镜头100防抖和感光元件200防抖,集成镜头100防抖功能以及感光元件200防抖功能,相对于相关技术可以实现更大角度的光学防抖,有效提升摄像头模组20的光学防抖效果,例如,本申请的摄像头模组20可以实现2度的镜头平移防抖,2度感光元件平移防抖,3度感光元件转动防抖。
请参阅图5和图6,图5为图4所示第一支架、第一驱动电机和第二驱动电机的结构示意图,图6为图4所示第一支架、第一驱动电机和第二驱动电机的***结构示意图。所述第一驱动电机400可以包括载体410、第一驱动模组420和第二驱动模组430,载体410具有收容空间411,镜头100容置于收容空间411且与载体410连接,第一驱动模组420设置在载体410上,第一驱动模组420可以驱动载体410沿平行于镜头100的光轴方向移动以带动镜头100沿平行于镜头100的 光轴方向移动,以补偿镜头100在平行于镜头100的光轴方向的抖动量。第二驱动模组430设置在载体410上,第二驱动模组430可以驱动载体410沿垂直于镜头100的光轴方向移动以带动镜头100沿垂直于镜头100的光轴方向移动,以补偿镜头100在垂直于镜头100的光轴方向的抖动量。相比于相关技术中仅采用一个弹片式驱动马达或一个滚珠式驱动马达同时实现水平方向和竖直方向的位移,本申请实施例采用两个不同的驱动模组分别对载体410进行两个不同方向的驱动,可以防止由于同一个驱动模组在同时实现两种不同方向的位移时导致驱动模组的部分部件损坏的情况,从而提高第一驱动电机400的防抖可靠性,提升第一驱动电机400的整体性能。
此外,经发明人长期研究发现,一些手机的弹片式驱动马达通常运用弹片结构以及吊环线结构实现驱动马达的水平方向以及竖直方向的位移以带动镜头的水平方向以及竖直方向的位移,然而在实现水平方向位移过程中容易出现弹片结构和/或吊环线断裂的问题;一些手机的滚珠式驱动马达通常采用多个滚珠实现驱动马达的水平方向以及竖直方向的位移以带动镜头的水平方向以及竖直方向的位移,然而在实现竖直方向的位移过程中,多个滚珠会相互撞击从而使得多个滚珠容易出现凹坑而导致滚动不顺畅的问题。
基于此,本申请实施例的第一驱动模组420包括弹性结构421,弹性结构421被配置为弹性作用力能够使得载体410沿平行于镜头100的光轴方向移动;第二驱动模组430包括滚动结构431,滚动结构431被配置为能够使得载体410基于滚动结构431的滚动操作而实现沿垂直于镜头100的光轴方向移动。
可以理解的是,本申请实施例的第一驱动模组420通过弹性结构421实现载体410的上下移动,第二驱动模组430通过滚动结构431实现载体410的左右移动,相对于相关技术,可以避免弹性结构421同时受到上下移动和左右移动等两个相互垂直的方向的拉扯而容易断裂的问题,以及可以避免滚动结构431在实现上下移动过程中容易出现凹坑而导致滚动不顺畅的问题。
需要说明的是,本申请实施例中所有方向性指示(诸如上、下、左、右、前、后)仅用于解释在某一特定姿态下各部件之间的相对位置关系、移动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。
载体410可以包括第一承载件411、第二承载件412和导向件413,第二承载件412和导向件413均设置在第一承载件411上。第一承载件411可以为规则形状,比如第一承载件411可以为矩形的框架结构第一承载件411。当然,第一承载件411也可以为圆角矩形或不规则形状。
第二承载件412可以设置在第一承载件411的通孔内,且可以在通孔内移动。其中,镜头100可以设置在第二承载件412上,当第二承载件412移动时可以带动镜头100移动。示例性的,第二承载件412也可以为矩形框架结构,第二承载件412可以设置有通孔,镜头100可以穿设于通孔,且与通孔的孔壁固定。
导向件413在平行于镜头100的光轴方向上层叠设置于第一承载件411的一部分上,以使得第一承载件411的一部分裸露于导向件413外部。比如,导向件413可以包括相互连接的第一侧部和第二侧部,其大致呈“L”型结构。相比于相关技术中,矩形结构的导向件413,本申请实施例的导向件413可以减小导向件413的体积,从而减少导向件413对第一驱动电机400的空间占用,有利于第一驱动电机400的小型化。
如图6所示,第一驱动电机400还可以包括磁性组件440,磁性组件440可以为永磁体或者电磁铁,其可以产生磁场。其中磁性组件440可以设置在载体410上,而且磁性组件440可以包括多个磁性件,每一磁性件均可以包括磁性相反的两个磁体。
第一驱动模组420位于磁性组件440所产生的磁场内,而且第一驱动模组420在磁性组件440的作用下能够带动载体410沿平行于镜头100的光轴方向移动。比如,第一驱动模组420还可以包括第一导电件422,第一导电件422在垂直于镜头100的光轴方向上与磁性组件440相对设置,基于弗莱明左手定则,第一导电件422通电之后可以产生一个磁场,第一导电件422所产生的磁场可以与磁性组件440的磁场相互作用而产生垂直于镜头100的光轴方向第一作用力(或者说磁性作用力),弹性结构421能够产生垂直于镜头100的弹性作用力,第一作用力和弹性作用力同时作用于载体410,载体410在第一作用力和弹性作用力的驱动下,可以实现上下移动,从而带动镜头100上下移动,以实现镜头100的自动对焦和/或补偿镜头100在竖直方向上的抖动。
第一驱动模组420可以包括两个第一导电件422,两个第一导电件422在垂直于镜头100的光轴方向上相对设置于第二承载件412的两侧。两个第一导电件422的结构可以相同,比如两个第一导电件422可以均为图6所示的环状结构。当然,两个第一导电件422也可以为单杆结构或双杆结构。在一些实施例中,两个第一导电件422的结构也可以不同,比如一个第一导电件422可以为环状结构,另一个第一导电件422可以为单杆结构或双杆结构等。
磁性组件440可以包括第一磁性件441、第二磁性件442和第三磁性件443,第一磁性件441、第二磁性件442和第三磁性件443可以均设置在第一承载件411上。
一个第一导电件422位于第一磁性件441所产生的磁场内,一个第一导电件422在通电时可以产生磁场,并与第一磁性件441所产生的磁场相互作用,并对第二承载件412产生推力。
其中,第一磁性件441可以包括第一磁体4411和第二磁体4412,第一磁体4411的磁性与第二磁体4412的磁性相反,比如第一磁体4411可以为南极,第二磁体4412可以为北极;或者第一磁体4411可以为北极,第二磁体4412可以为南极。而且第一磁体4411和第二磁体4412沿平行于所述镜头的光轴方向层叠设置。一个第一导电件422的一部分与第一磁体4411相对设置,一个第一导电件422的一部分与第二磁体4412相对设置。以第一导电件422为环状结构为例,第一导电件422可以包括沿垂直于镜头100的光轴方西设置的第一部分、第二部分以及沿平行于镜头100的光轴方向设置的第三部分、第四部分,第一部分与第一磁体4411相对设置,第二部分与第二磁体4412相对设置。
第二磁性件442设置在垂直于镜头100的光轴方向上与另一个第一导电件422相对设置。以使得另一个第一导电件422位于第二磁性件442所产生的磁场内,另一个第一导电件422在通电时可以产生磁场,并与第二磁性件442所产生的磁场相互作用,并对第二承载件412产生推力,第二承载件412在两个第二导电件所施加的推力以及弹性结构所产生的弹性作用力的作用下,从而实现相对于第一承载件411上下移动。
其中,另一个第一导电件422对第二承载件412所产生的推力可以与一个第一导电件422对第二承载件412所产生的推力相等,使得第二承载件412的两侧受力平衡而以相同的速度上下移动。当然,另一个第一导电件422对第二承载件412所产生的推力可以与一个第一导电件422对第二承载件412所产生的推力不相等,从而使得第二承载件412的两侧不平衡 而以不同的速度上下移动,进而实现第二承载件412偏转一定的角度。
本申请实施例中,第二磁性件442的结构可以与第一磁性件441的结构相同,比如第二磁性件442可以包括第三磁体4421和第四磁体4422,第三磁体4421的磁性与第四磁体4422的磁性相反,比如第三磁体4421可以为南极,第四磁体4422可以为北极;或者第三磁体4421可以为北极,第四磁体4422可以为南极。而且第三磁体4421和第四磁体4422沿平行于所述镜头的光轴方向层叠设置。另一个第一导电件422的一部分与第三磁体4421相对设置,另一个第一导电件422的一部分与第四磁体4422相对设置,具体可参见上述一个第一导电件422与第一磁性件441的相关描述,在此不再赘述。
第三磁性件443的结构与第一磁性件441和第二磁性件442的结构不同,其可以包括第五磁体4431和第六磁体4432,第五磁体4431和第六磁体4432沿垂直于镜头100的光轴方向层叠设置。第五磁体4431的磁性与第六磁体4432的磁性相反,比如第五磁体4431可以为南极,第六磁体4432可以为北极;或者第六磁体4432可以为北极,第六磁体4432可以为南极。
弹性结构421可以包括上弹片4211和下弹片4212,上弹片4211和下弹片4212分别设置在第二承载件412的两侧,比如第二承载件412具有相背的第一侧面和第二侧面,上弹片4211设置在第一侧面上,下弹片4212设置在第二侧面上。
其中,上弹片4211的一部分和下弹片4212的一部分分别与第一承载件411连接。示例性的,上弹片4211可以包括相互连接的第一主体部4211a和第一连接部4211b,第一主体部4211a设置在第二承载件412的第一侧面上,第一连接部4211b与第一承载件411连接,第一主体部4211a和第一主体部4211a之间可以产生弹性作用力,该弹性作用力作用于第二承载件412。
下弹片4212可以包括相互连接的第二主体部4212a和第二连接部4212b,第二主体部4212a设置在第二承载件412的第二侧面上,第二连接部4212b与第一承载件411连接,第二主体部4212a和第二连接部4212b之间可以产生弹性作用力,该弹性作用力作用于第二承载件412。弹性结构421所产生的弹性作用力为下弹片4212所述产生弹性作用力和上弹片4211所产生的弹性作用力的合力。
本申请实施例中,第二驱动模组430位于磁性组件440所产生的磁场内,而且第二驱动模组430在磁性组件440的作用下能够带动载体410沿垂直于镜头100的光轴方向移动。比如,第二驱动模组430还可以包括第二导电件432,第二导电件432在平行于镜头100的光轴方向上与磁性组件440相对设置。基于弗莱明左手定则,第二导电件432通电之后可以产生一个磁场,第二导电件432所产生的磁场可以与磁性组件440的磁场相互作用而产生平行于镜头100的光轴方向第二作用力(或者说磁性作用力),第二作用力作用于载体410以带动载体410基于滚动结构431沿垂直于镜头100的光轴方向移动,以补偿镜头100在水平方向上的抖动。
第二驱动模组430可以包括三个第二导电件,在平行于镜头100的光轴方向上,一个第二导电件432与第一磁性件441相对设置以使得该第二导电件432位于第一磁性件441所产生的磁场内,该第二导电件432在通电时可以产生磁场,并于第一磁性件441所产生的磁场相互作用,并对第一承载件411产生推力,第一承载件411在推力的作用下基于滚动结构431的滚动操作而带动第二承载件412和导向件413一起沿垂直于镜头100的光轴方向移动(或者说左右移动),以补偿镜头100在水平方向上的抖动。
滚动结构431可以包括多个第一滚珠4311和多个第二滚珠4312,多个第一滚珠4311和多个第二滚珠4312均设置在载体410上,第二导电件432所产生的第二作用力能够驱动载体410基于多个第一滚珠4311沿第一子方向移动,和/或驱动载体410基于多个第二滚珠4312沿第二子方向移动,第一子方向和第二子方向均垂直于镜头100的光轴方向,而且第一子方向和第二子方向相互垂直。
可以理解的是,可以将镜头100的移动分解为X、Y和Z方向等三个方向的移动,其中X方向和Y方向同时与Y方向垂直,X方向和Y方向在垂直于Z方向的平面上相互垂直,其中Z方向可以理解为平行于镜头100的光轴方向,X方向和Y方向可以理解为垂直于镜头100的光轴方向的两个子方向,X方向可以理解为第一子方向,Y方向可以理解为第二子方向。三个第二导电件432中,与第一磁性件441相对设置的第二导电件432以及与第二磁性件442相对设置的第二导电件432所产生的第二作用力能够驱动载体410基于多个第一滚珠4311沿X方向移动,与第三磁性件443相对设置的第二导电件432所产生的第二作用力能够驱动载体410基于多个第二滚珠4312沿Y方向移动。
具体地,多个第一滚珠4311设置在导向件413中背离第一承载件411的一面,多个第二滚珠4312夹设在导向件413与第一承载件411之间。由此,第一承载件411可基于多个第一滚珠4311相对于第一支架300在第一子方向(或者说在X方向)上移动,同时带动导向件413和第二承载件412在第一子方向上移动,从而使得第一驱动电机400能够在第一子方向上对镜头100进行补偿;和/或第一承载件411可基于多个第二滚珠4312相对于第一支架300在第二子方向(或者说Y方向)上移动,同时带动导向件413和第二承载件412在第二子方向移动,从而使得第一驱动电机400能够在第二子方向上对镜头100进行补偿。
第一承载件411具有相邻设置的凹槽4111和凸出部4112,导向件413容置于凹槽4111,凸出部4112的外表面与导向件413的外表面大致齐平。其中,大致齐平可以理解为在本领域的允许误差内两个外表面齐平。
滚动结构431还可以包括第三滚珠4313,第三滚珠4313设置在载体410上,多个第三滚珠4313可以使得载体410沿第一子方向和/或第二子方向相对于第一支架300移动。第三滚珠4313设置在凸出部4112上。第二导电件432所产生的第二作用力能够驱动载体410基于多个第一滚珠4311和第三滚珠4313沿第一子方向移动,或者驱动载体410基于多个第二滚珠4312和第三滚珠4313沿第二子方向移动。
相关技术中的滚珠式驱动马达通常设置有八个滚珠,其中四个滚珠用于实现载体在X方向的移动,另外四个滚珠用于实现载体在Y方向的移动。而本申请实施例通过设置即可沿第一子方向(或者说X方向)滚动又可以沿第二子方向(或者说Y方向)滚动的第三滚珠4313,使得实现第一子方向滚动的多个第一滚珠4311和实现第二子方向滚动的多个第二滚珠4312可以共用一个滚珠,从而相对于相关技术可以节省一颗滚珠,减少第一驱动电机400的部件,简化第一驱动电机400的结构。
第一驱动电机400还可以包括盖体450,盖体450与第一支架300相互连接以在第一支架300和盖体450之间形成活动空间,载体410可移动地容置于活动空间。可以理解的是,载体410可以在活动空间内进行上下移动和/或左右移动。多个第一滚珠4311夹设在盖体450和导向件413之间,使得导向件413可以相对于盖体450左右移动,第三滚珠4313夹设 在盖体450和第一承载件411之间,使得第一承载件411可以相对于盖体450左右移动。
当需要实现镜头100的对焦和/或竖直方向(或者说Z方向)的防抖补偿时,可以根据补偿数据给两个第一导电件422通电,两个第一导电件422在通电状态下可以产生磁场,其所产生的磁场和第一磁性件441与第二磁性件442的磁场相互作用以对第二承载件412产生推力,从而驱动第二承载件412在第一承载件411的通孔内上下移动,第二承载件412移动时可以带动镜头100上下移动以改变镜头100与感光芯片460之间的距离以实现对焦,镜头100上下移动时也可以补偿镜头100在平行于镜头100的光轴方向上的抖动。
当需要实现镜头100在第一子方向(或者说X方向)上的防抖时,可以根据第一补偿数据给分别与第一磁性件441与第二磁性件442相对设置的两个第二导电件432中的一个或两个通电,该第二导电件432在通电状态下可以产生磁场,其所产生的磁场和第一磁性件441和/或第二磁性件442的磁场相互作用以对第一承载件411产生推力以驱动第一承载件411带动第二承载件412和导向件413基于多个第一滚珠4311和第三滚珠4313相对于盖体450和第一支架300在第一子方向(或者说X方向)上左右移动,第二承载件412移动时可以带动镜头100一起在第一子方向(或者说X方向)上左右移动,从而补偿镜头100在第一子方向上的抖动。
当需要实现镜头100在第二子方向(或者说Y方向)上的防抖时,可以根据第一补偿数据给与第三磁性件443相对设置的第二导电件432通电,该第二导电件432在通电状态下可以产生磁场,其所产生的磁场和第三磁性件443的磁场相互作用以对第一承载件411产生推力以驱动第一承载件411带动第二承载件412和导向件413基于多个第二滚珠4312和第三滚珠4313相对于盖体450和第一支架300在第二子方向(或者说Y方向)上左右移动,第二承载件412移动时可以带动镜头100一起在第二子方向(或者说Y方向)上左右移动,从而补偿镜头100在第二子方向(或者说Y方向)上的抖动。
本申请实施例中,第二驱动电机500可以包括底板510和形变件520,底板510可以为第二驱动电机500的其他器件提供支撑,形变件520可以发生形变以带动感光元件200在垂直于镜头100的光轴方向(包括X方向和/或Y方向)上移动,进而实现感光元件200的光学防抖功能。其中,形变件520可以包括固定部分521和形变部分522,固定部分521与底板510固定连接,形变部分522与感光元件200连接,可以根据补偿数据对形变部分522进行通电,形变部分522在通电状态下可发生形变,从而带动感光元件200相对于底板510沿垂直于镜头100的光轴方向移动。其中,形变部分522可以包括第一部位5221、第二部位5222和第三部位5223,根据补偿数据对不同的形变部位通不同的电流,使得第一部位5221、第二部位5222和第三部位5223的产生相同或不同的形变,从而带动感光元件200相对于底板510沿垂直于镜头100的光轴方向平移以及沿镜头100光轴方向转动。由于感光元件200的平移和转动共用行程(平移和转动均是通过形变部分522的形变实现),平移量达到最大行程时,将无法进行转动;当转动到达最大行程时,将无法进行平移。基于此,本申请通过上述光学防抖方法合理安排镜头和感光元件的运动,以实现更大角度的防抖。形变部分522可以采用形状记忆合金(shape memory alloys,SMA)制作形成,形状记忆合金在通电状态下可以使得形状记忆合金被加热并使其变形,变形时可以使得形变部分522的长度发生变化,从而带动与其连接的感光元件200移动,实现感光元件200的防抖功能。
由于摄像头模组20中存在第一驱动电机400和第二驱动电机500等两个驱动电机,故而摄像头模组20中需要设定两个驱动芯片分别对第一驱动电机400和第二驱动电机500进行分别控制。
请继续参阅图7,图7为本申请实施例提供的光学防抖***的第一种结构示意图。
光学防抖***2000包括如上申请实施例所述的摄像头模组20以及检测模组40,摄像头模组20包括镜头100、感光元件200、第一驱动芯片600和第二驱动芯片700;第一驱动芯片600与镜头100连接,第二驱动芯片700与感光元件200连接;其中,本申请实施例中的连接可以为直接连接,可以为通过其他器件间接连接。比如,第一驱动芯片600可以通过第一驱动电机与镜头100连接,第一驱动芯片600可以通过控制第一驱动电机从而控制镜头100,第二驱动芯片700可以通过第二驱动电机与感光元件200连接,第二驱动芯片700可以通过控制第二驱动电机500从而控制感光元件200。
检测模组40获取摄像头模组的抖动数据,将抖动数据发送至第一驱动芯片600和/或第二驱动芯片700,若抖动数据小于或等于第一阈值,则根据抖动数据和第一补偿策略通过第一驱动芯片600驱动镜头100运动和/或通过第二驱动芯片700驱动感光元件200运动;若抖动数据大于第一阈值,则根据抖动数据和第二补偿策略驱动通过第一驱动芯片600驱动镜头100和通过第二驱动芯片700驱动感光元件200运动。
光学防抖***还包括处理器50用于向第一驱动芯片600和第二驱动芯片700发送控制信号,以使第一驱动芯片600和第二驱动芯片700根据控制信号对抖动数据进行处理。
可以理解的是,第一驱动芯片600和第二驱动芯片700均具有对抖动数据进行处理以得到补偿数据的能力,通过光学防抖***2000可以执行上述光学防抖方法,在此不再赘述。
为了减少第二驱动芯片的计算量,以及提高第一驱动芯片和第二驱动芯片的协同性,本申请实施例还提供另一种光学防抖***,请参阅图8,图8为本申请实施例提供的光学防抖***的第二种结构示意图。
光学防抖***2000可以包括如上申请实施例所述的摄像头模组20以及检测模组40。摄像头模组20包括第一驱动芯片600和第二驱动芯片700,第一驱动芯片600与镜头100连接,第二驱动芯片700与感光元件200连接。其中,本申请实施例中的连接可以为直接连接,可以为通过其他器件间接连接。比如,第一驱动芯片600可以通过第一驱动电机与镜头100连接,第一驱动芯片600可以通过控制第一驱动电机从而控制镜头100,第二驱动芯片700可以通过第二驱动电机与感光元件200连接,第二驱动芯片700可以通过控制第二驱动电机500从而控制感光元件200。
其中,检测模组40可以与第一驱动芯片600连接。检测模组40可以采集摄像头模组20的抖动数据,并将摄像头模组20的抖动数据发送给第一驱动芯片600,第一驱动芯片600可以对摄像头模组20的抖动数据进行处理以得到补偿数据,通过如上所述光学防抖方法中的判断逻辑对补偿数据进行分析,可以得到镜头的平移量和/或感光元件的平移量和/或感光元件的转动量,将感光元件的平移量和/或感光元件的转动量发送至第二驱动芯片700,以使第二驱动芯片700根据感光元件的平移量和/或感光元件的转动量控制第二驱动电机驱动感光元件200运动。第一驱动芯片600根据得到的镜头的平移量控制第一驱动电机驱动镜头运动。
可以理解的是,第一驱动芯片600根据抖动数据计算镜头100的抖动补偿量和感光元件200的抖动补偿量,并将感光元件200的抖动补偿量发送给第二驱动芯片700,相对于两个驱动芯片各自根据摄像头模组20的抖动数据进行分别计算,本申请实施例的第一驱动芯片600和第二驱动芯片700可以协同工作,增加第一驱动芯片600和第二驱动芯片700之间的 联系。
由于抖动补偿的具体计算过程均由第一驱动芯片600完成,第二驱动芯片700只需要根据所接收到的抖动补偿数据对感光元件200进行控制,而无需进行计算,故而可以将第二驱动芯片700的结构进行简化。
光学防抖***还包括处理器50用于向第一驱动芯片600发送控制信号,以使第一驱动芯片600根据控制信号对抖动数据进行处理。
为了减少第一驱动芯片的计算量,以及提高第一驱动芯片和第二驱动芯片的协同性,本申请还提供另一种光学防抖***,请参阅图9,图9为本申请实施例提供的光学防抖***的第三种结构示意图。
光学防抖***2000可以包括如上申请实施例所述的摄像头模组20以及检测模组40。摄像头模组20包括第一驱动芯片600和第二驱动芯片700,第一驱动芯片600与镜头100连接,第二驱动芯片700与感光元件200连接。其中,本申请实施例中的连接可以为直接连接,可以为通过其他器件间接连接。比如,第一驱动芯片600可以通过第一驱动电机与镜头100连接,第一驱动芯片600可以通过控制第一驱动电机从而控制镜头100,第二驱动芯片700可以通过第二驱动电机与感光元件200连接,第二驱动芯片700可以通过控制第二驱动电机500从而控制感光元件200。
其中,检测模组40可以与第二驱动芯片700连接。检测模组40可以采集摄像头模组20的抖动数据,并将摄像头模组20的抖动数据发送给第二驱动芯片700,第二驱动芯片700可以对摄像头模组20的抖动数据进行处理以得到补偿数据,通过如上所述光学防抖方法中的判断逻辑对补偿数据进行分析,可以得到镜头的平移量和/或感光元件的平移量和/或感光元件的转动量,将镜头的平移量发送至第一驱动芯片600,以使第一驱动芯片600根据镜头的平移量控制第一驱动电机驱动镜头100运动。第二驱动芯片700根据得到的感光元件的平移量和/或感光元件的转动量控制第二驱动电机驱动感光元件运动。
可以理解的是,第二驱动芯片700可以将摄像头模组20的总偏移量转换为镜头100的抖动补偿量和感光元件200的抖动补偿量,并将镜头100的抖动补偿量发送给第一驱动芯片600,相对于两个驱动芯片各自根据摄像头模组20的抖动数据进行分别计算,本申请实施例的第一驱动芯片600和第二驱动芯片700可以协同工作,增加第一驱动芯片600和第二驱动芯片700之间的联系。
由于抖动补偿的具体计算过程均由第二驱动芯片700完成,第一驱动芯片600只需要根据所接收到的抖动补偿数据对感光元件200进行控制,而无需进行计算,故而可以将第一驱动芯片600的结构进行简化。
光学防抖***还包括处理器50用于向第二驱动芯片700发送控制信号,以使第二驱动芯片700根据控制信号对抖动数据进行处理。
为了减少第一驱动芯片和第二驱动芯片的计算量,本申请还提供另一种光学防抖***,请参阅图10,图10为本申请实施例提供的光学防抖***的第四种结构示意图。
该实施例中的光学防抖***与上述双防抖***2000不同的是第一驱动芯片600和第二驱动芯片700均未与检测模组40连接,替代性的,检测模组40与处理器50连接,处理器50分别与第一驱动芯片600和第二驱动芯片700连接,处理器50对检测模组40所检测到的摄像头模组20的抖动数据进行处理以得到镜头的补偿数据和感光元件的补偿数据,并将镜头100的补偿数据发送给第一驱动芯片600以及将感光元件200的补偿数据发送给第二驱动芯片700。第一驱动芯片600根据镜头的补偿数据控制镜头100运动。第二驱动芯片700根据感光元件100的补偿数据控制感光元件200运动。
可以理解的是,检测模组40所检测到的数据可以直接传输至处理器50,处理器50可以将摄像头模组20的总偏移量转换为镜头100的抖动补偿量和感光元件200的抖动补偿量,并将镜头100的抖动补偿量发送给第一驱动芯片600以及将感光元件200的抖动补偿量发送给第二驱动芯片700,相对于检测模组40将数据传输至第一驱动芯片600和第二驱动芯片700,本申请实施例可以在一定程度上简化线路。
由于本申请实施例将数据处理工程均交由处理器50处理,第一驱动芯片600和第二驱动芯片700均只需要根据所接收到的补偿数据分别对镜头100和感光元件200进行控制,而无需进行计算,故而可以将第一驱动芯片600和第二驱动芯片700的结构进行简化,降低第一驱动芯片600和第二驱动芯片700的制造成本。
需要说明的是,本申请实施例提供的光学防抖***只是示例性的,可以执行上述光学防抖方法的***均属于本申请保护的范围。
本申请还提供一种电子设备,请参阅图11,图11为本申请实施例提供的电子设备的第二种结构示意图,电子设备1包括处理器和存储器。其中,处理器与存储器电性连接。
处理器是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器内的计算机程序,以及调用存储在存储器内的数据,执行电子设备500的各种功能并处理数据。
存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。
此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器对存储器的访问。
在本申请实施例中,电子设备中的处理器会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器中,并由处理器运行存储在存储器中的计算机程序,从而执行上述光学防抖方法。
本申请实施例还提供一种存储介质,该存储介质存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上述任一实施例中的光学防抖方法。
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)、或者随机存取记忆体(Random Access Memory,RAM)等。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对本申请实施例的光学防抖方法而言,本领域普通测试人员可以理解实现本申请实施例的光学防抖方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如温度控制方法的实 施例的流程。其中,存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。
以上对本申请实施例提供的光学防抖方法、***、计算机可读存储介质及电子设备进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请。同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种光学防抖方法,应用于摄像头模组,其中,所述摄像头模组包括镜头和感光元件,所述方法包括:
    获取所述摄像头模组的抖动数据;
    若所述抖动数据小于或等于第一阈值,则根据所述抖动数据和第一补偿策略驱动所述镜头运动和/或所述感光元件运动;
    若所述抖动数据大于所述第一阈值,则根据所述抖动数据和第二补偿策略驱动所述镜头和所述感光元件运动。
  2. 根据权利要求1所述的光学防抖方法,其中,所述根据所述抖动数据和第一补偿策略驱动所述镜头运动和/或所述感光元件运动包括:
    根据所述抖动数据确定第一补偿数据;
    若所述第一补偿数据满足第一补偿条件,所述第一补偿条件为所述第一补偿数据仅包括镜头的平移量,则根据所述第一补偿数据驱动所述镜头运动;
    若所述第一补偿数据满足第二补偿条件,所述第二补偿条件为所述第一补偿数据包括镜头的平移量和感光元件的转动量,则根据所述第一补偿数据驱动所述镜头和所述感光元件运动。
  3. 根据权利要求2所述的光学防抖方法,其中,所述根据所述第一补偿数据驱动所述镜头运动包括:
    根据所述第一补偿数据驱动所述镜头平移;
    所述根据所述第一补偿数据驱动所述镜头和所述感光元件运动包括:
    根据所述第一补偿数据驱动所述镜头平移,驱动所述感光元件转动。
  4. 根据权利要求3所述的光学防抖方法,其中,所述根据所述第一补偿数据驱动所述镜头平移包括:
    根据所述第一补偿数据确定出第一平移量;
    根据所述第一平移量驱动所述镜头在所述平移;
    所述根据所述第一补偿数据驱动所述镜头平移,驱动所述感光元件转动包括:
    根据所述第一补偿数据确定出第二平移量和第一转动量;
    根据所述第二平移量驱动所述镜头在平移;
    根据所述第一转动量驱动所述感光元件转动。
  5. 根据权利要求1所述的光学防抖方法,其中,所述第二补偿策略包括第一子策略和第二子策略,所述若所述抖动数据大于所述第一阈值,则根据所述抖动数据和第二补偿策略驱动所述镜头和所述感光元件运动包括:
    若所述抖动数据大于所述第一阈值且小于或等于第二阈值,根据所述抖动数据和所述第一子策略驱动所述镜头和所述感光元件运动;
    若所述抖动数据大于所述第二阈值,则根据所述抖动数据和第二子策略驱动所述镜头和所述感光元件运动。
  6. 根据权利要求5所述的光学防抖方法,其中,所述根据所述第一子策略驱动所述镜头和所述感光元件运动包括:
    根据所述抖动数据确定出第二补偿数据;
    若所述第二补偿数据满足第三补偿条件,所述第三补偿条件为所述第二补偿数据包括镜头的平移量和感光元件的平移量,则根据所述第二补偿数据驱动所述镜头平移和驱动所述感光元件平移;
    若所述第二补偿数据满足第四补偿条件,所述第四补偿条件为第二补偿数据包括镜头的平移量、感光元件的平移量和感光元件的转动量,则根据所述第二补偿数据驱动所述镜头平移,以及驱动所述感光元件平移和转动。
  7. 根据权利要求6所述的光学防抖方法,其中,所述根据所述第二补偿数据驱动所述镜头平移和驱动所述感光元件平移包括:
    根据所述第二补偿数据确定出第三平移量和第四平移量;
    根据所述第三平移量驱动所述镜头平移,根据所述第四平移量驱动所述感光元件平移;
    所述根据所述第二补偿数据驱动所述镜头平移,以及驱动所述感光元件平移和转动包括:
    根据所述第二补偿数据确定出第五平移量、第六平移量以及第二转动量;
    根据所述第五平移量驱动所述镜头平移、根据所述第六平移量驱动所述感光元件平移以及根据所述第二转动量驱动所述感光元件转动。
  8. 根据权利要求5所述的光学防抖方法,其中,所述根据所述抖动数据和第二子策略驱动所述镜头和所述感光元件运动包括:
    根据所述抖动数据确定出第三补偿数据;
    根据所述第三补偿数据驱动所述镜头平移和驱动所述感光元件平移。
  9. 根据权利要求8所述的光学防抖方法,其中,所述根据所述第三补偿数据驱动所述镜头平移和驱动所述感光元件平移包括:
    根据所述第三补偿数据确定出第七平移量和第八平移量;
    根据所述第七平移量驱动所述镜头平移,根据所述第八平移量驱动所述感光元件平移。
  10. 一种光学防抖***,其中,包括检测模组和摄像头模组,摄像头模组包括镜头、感光元件、第一驱动芯片和第二驱动芯片;第一驱动芯片与镜头连接,第二驱动芯片与感光元件连接;
    检测模组获取摄像头模组的抖动数据,将抖动数据发送至第一驱动芯片和/或第二驱动芯片,若所述抖动数据小于或等于第一阈值,则根据所述抖动数据和第一补偿策略通过第一驱动芯片驱动所述镜头运动和/或通过第二驱动芯片驱动所述感光元件运动;若所述抖动数据大于所述第一阈值,则根据所述抖动数据和第二补偿策略驱动通过第一驱动芯片驱动所述镜头和通过第二驱动芯片驱动所述感光元件运动。
  11. 根据权利要求10所述的光学防抖***,其中,所述摄像头模组还包括第一驱动电机和第二驱动电机,所述第一驱动芯片通过所述第一驱动电机与所述镜头连接,所述第一驱动芯片通过驱动所述第一驱动电机控制所述镜头,所述第二驱动芯片通过所述第二驱动电机与所述感光元件连接,所述第二驱动芯片通过控制所述第二驱动电机控制所述感光元件。
  12. 根据权利要求11所述的光学防抖***,其中,所述检测模块与所述第一驱动芯片连接,所述检测模块用于将采集的抖动数据发送给所述第一驱动芯片,所述第一驱动芯片用于对所述抖动数据进行分析,以得到所述镜头的平移量和/ 或感光元件的平移量和/或感光元件的转动量,所述第一驱动芯片根据得到的镜头的平移量控制所述第一驱动电机驱动所述镜头运动,所述第一驱动芯片还用于将分析得到的感光元件的平移量和/或感光元件的转动量发送至所述第二驱动芯片,以使所述第二驱动芯片根据所述感光元件的平移量和/或感光元件的转动量控制第二驱动电机驱动所述感光元件运动。
  13. 根据权利要求11所述的光学防抖***,其中,所述检测模块与所述第二驱动芯片连接,所述检测模块用于将采集的抖动数据发送给所述第二驱动芯片,所述第二驱动芯片用于对所述抖动数据进行分析,以得到所述镜头的平移量和/或感光元件的平移量和/或感光元件的转动量,所述第二驱动芯片根据得到的感光元件的平移量和/或感光元件的转动量控制所述第二驱动电机驱动所述感光元件运动,所述第二驱动芯片还用于将分析得到的所述镜头的平移量发送至所述第一驱动芯片,以使所述第一驱动芯片根据所述镜头的平移量控制所述第一驱动电机驱动所述镜头运动。
  14. 根据权利要求10所述的光学防抖***,其中,所述光学防抖***还包括处理器,所述处理器用于向所述第一驱动芯片和第二驱动芯片发送控制信号,以使所述第一驱动芯片和所述第二驱动芯片根据所述控制信号对抖动数据进行处理。
  15. 根据权利要求14所述的光学防抖***,其中,所述检测模块与所述处理器连接,所述处理器分别与所述第一驱动芯片和所述第二驱动芯片连接,所述处理器对所述检测模组所检测到的抖动数据进行处理以得到镜头的补偿数据和感光元件的补偿数据;所述处理器将所述镜头的补偿数据发送给所述第一驱动芯片,以使所述第一驱动芯片根据所述镜头的补偿数据控制所述镜头运动,所述处理器将所述感光元件的补偿数据发送给所述第二驱动芯片,以使所述第二驱动芯片根据所述感光元件的补偿数据控制所述感光元件运动。
  16. 一种计算机可读存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至9任一项所述的光学防抖方法。
  17. 一种电子设备,包括处理器、存储器,所述存储器有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行如权利要求1至9任一项所述的光学防抖方法。
  18. 一种电子设备,其中,包括:镜头、感光元件、第一支架、第一驱动电机以及第二驱动电机,所述第一支架具有相背设置的第一侧和第二侧,所述第一驱动电机设置在所述第一侧,所述第二驱动电机设置在所述第二侧,所述镜头设置在所述第一驱动电机上,所述第一驱动电机用于驱动所述镜头移动,所述感光元件设置在所述第二驱动电机上,所述第二驱动电机用于驱动所述感光元件移动。
  19. 根据权利要求18所述的电子设备,其中,所述第一驱动电机用于驱动所述镜头在预设平面平移,所述第二驱动电机用于驱动所述感光元件在预设平面平移或沿预设轴转动。
  20. 根据权利要求19所述的电子设备,其中,所述第一驱动电机包括电磁式马达、压电式马达、记忆合金式驱动器以及微型机电***中的任意一种,所述第二驱动电机包括电磁式马达、压电式马达、记忆合金式驱动器以及微型机电***中的任意一种。
PCT/CN2022/104981 2021-08-03 2022-07-11 光学防抖方法、***、计算机可读存储介质及电子设备 WO2023011119A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/408,078 US20240147069A1 (en) 2021-08-03 2024-01-09 Optical image stabilization method and system, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110887722.3A CN113489910B (zh) 2021-08-03 2021-08-03 光学防抖方法、***、计算机可读存储介质及电子设备
CN202110887722.3 2021-08-03

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/408,078 Continuation US20240147069A1 (en) 2021-08-03 2024-01-09 Optical image stabilization method and system, and electronic device

Publications (1)

Publication Number Publication Date
WO2023011119A1 true WO2023011119A1 (zh) 2023-02-09

Family

ID=77944509

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104981 WO2023011119A1 (zh) 2021-08-03 2022-07-11 光学防抖方法、***、计算机可读存储介质及电子设备

Country Status (3)

Country Link
US (1) US20240147069A1 (zh)
CN (1) CN113489910B (zh)
WO (1) WO2023011119A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489889A (zh) * 2021-08-03 2021-10-08 Oppo广东移动通信有限公司 双防抖***、方法、电子设备及计算机可读存储介质
CN113489910B (zh) * 2021-08-03 2023-01-24 Oppo广东移动通信有限公司 光学防抖方法、***、计算机可读存储介质及电子设备
CN113873170B (zh) * 2021-10-29 2023-09-01 上海艾为电子技术股份有限公司 光学防抖控制***、方法及电子设备
JP7273127B1 (ja) * 2021-11-15 2023-05-12 旭化成エレクトロニクス株式会社 カメラモジュール、ポータブル電子機器、および、位置制御システム
CN114338994B (zh) * 2021-12-30 2024-06-11 Oppo广东移动通信有限公司 光学防抖方法、装置、电子设备和计算机可读存储介质
CN114745490B (zh) * 2022-02-24 2024-05-28 Oppo广东移动通信有限公司 摄像头组件、电子设备、光学防抖方法及存储介质
CN117714824A (zh) * 2022-08-24 2024-03-15 华为技术有限公司 一种电子设备、摄像模块及其控制方法
CN117119303A (zh) * 2023-04-07 2023-11-24 荣耀终端有限公司 一种摄像头模组的控制方法

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014098787A (ja) * 2012-11-14 2014-05-29 Tdk Taiwan Corp 手振れ防止の整合式基板構造
CN209402560U (zh) * 2019-03-14 2019-09-17 南昌欧菲光电技术有限公司 摄像头模组及电子设备
CN111432118A (zh) * 2020-03-26 2020-07-17 Oppo广东移动通信有限公司 图像防抖处理方法、装置、电子设备和存储介质
CN211266959U (zh) * 2020-02-13 2020-08-14 南昌欧菲光电技术有限公司 摄像头模组、摄像装置及电子设备
CN112653809A (zh) * 2019-10-11 2021-04-13 南昌欧菲光电技术有限公司 摄像模组及电子设备
CN112672028A (zh) * 2021-01-05 2021-04-16 东莞市亚登电子有限公司 防抖装置、摄像模组与电子设备
CN113489889A (zh) * 2021-08-03 2021-10-08 Oppo广东移动通信有限公司 双防抖***、方法、电子设备及计算机可读存储介质
CN113489910A (zh) * 2021-08-03 2021-10-08 Oppo广东移动通信有限公司 光学防抖方法、***、计算机可读存储介质及电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004266648A (ja) * 2003-03-03 2004-09-24 Ichikawa Soft Laboratory:Kk 手ぶれ補正装置及び手ぶれ補正プログラム
JP5868042B2 (ja) * 2011-07-01 2016-02-24 キヤノン株式会社 防振制御装置、撮像装置、及び防振制御装置の制御方法
CN206181216U (zh) * 2016-12-02 2017-05-17 杭州海康威视数字技术股份有限公司 一种监控摄像机
US10805539B2 (en) * 2016-12-02 2020-10-13 Hangzhou Hikvision Digital Technology Co., Ltd. Anti-shake method for camera and camera
CN111294484B (zh) * 2018-12-07 2021-08-31 华为技术有限公司 摄像头组件和终端设备
CN111355872B (zh) * 2018-12-24 2021-09-07 华为技术有限公司 摄像模组、防抖组件及终端
CN112312000B (zh) * 2019-07-30 2023-01-06 格科微电子(上海)有限公司 光学防抖的实现方法
CN210694084U (zh) * 2019-08-07 2020-06-05 深圳市海瑞洋科技有限公司 一种500万像素的定焦摄像头
CN111432104A (zh) * 2020-04-26 2020-07-17 南昌欧菲光电技术有限公司 摄像头模组及电子设备

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014098787A (ja) * 2012-11-14 2014-05-29 Tdk Taiwan Corp 手振れ防止の整合式基板構造
CN209402560U (zh) * 2019-03-14 2019-09-17 南昌欧菲光电技术有限公司 摄像头模组及电子设备
CN112653809A (zh) * 2019-10-11 2021-04-13 南昌欧菲光电技术有限公司 摄像模组及电子设备
CN211266959U (zh) * 2020-02-13 2020-08-14 南昌欧菲光电技术有限公司 摄像头模组、摄像装置及电子设备
CN111432118A (zh) * 2020-03-26 2020-07-17 Oppo广东移动通信有限公司 图像防抖处理方法、装置、电子设备和存储介质
CN112672028A (zh) * 2021-01-05 2021-04-16 东莞市亚登电子有限公司 防抖装置、摄像模组与电子设备
CN113489889A (zh) * 2021-08-03 2021-10-08 Oppo广东移动通信有限公司 双防抖***、方法、电子设备及计算机可读存储介质
CN113489910A (zh) * 2021-08-03 2021-10-08 Oppo广东移动通信有限公司 光学防抖方法、***、计算机可读存储介质及电子设备

Also Published As

Publication number Publication date
CN113489910A (zh) 2021-10-08
CN113489910B (zh) 2023-01-24
US20240147069A1 (en) 2024-05-02

Similar Documents

Publication Publication Date Title
WO2023011119A1 (zh) 光学防抖方法、***、计算机可读存储介质及电子设备
WO2023011118A1 (zh) 双防抖***、方法、电子设备及计算机可读存储介质
EP3522517B1 (en) Camera module
WO2021238849A1 (zh) 拍摄装置、电子设备及拍摄装置的控制方法
WO2021073346A1 (zh) 摄像头模组和终端设备
WO2023010989A1 (zh) 摄像头模组及电子设备
CN113489886B (zh) 摄像模组以及电子设备
EP3419277B1 (en) Camera module and terminal device
US8289406B2 (en) Image stabilization device using image analysis to control movement of an image recording sensor
WO2023142712A1 (zh) 摄像模组及电子设备
CN111225130B (zh) 一种成像装置及终端设备
WO2023011173A1 (zh) 防抖机构、拍摄装置以及电子设备
US9516233B2 (en) Micro electro mechanical systems device and apparatus for compensating tremble
WO2023142721A1 (zh) 防抖组件、摄像模组及电子设备
WO2020103688A1 (zh) 一种成像装置及终端设备
US20230126781A1 (en) Camera module and electronic device
CN108317992A (zh) 一种物距测量方法及终端设备
JP7404563B2 (ja) 画像取得方法、装置と電子機器
WO2024055743A1 (zh) 摄像头模组和电子设备
KR20190130345A (ko) 카메라 모듈
CN114930803A (zh) 相机模块及包括该相机模块的电子装置
WO2023124783A1 (zh) 摄像组件和电子设备
CN117136555A (zh) 包括图像稳定组件的相机模块及包括相机模块的电子装置
CN116076079A (zh) 相机模块和包括相机模块的电子装置
EP4401413A1 (en) Camera module and electronic device comprising same

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE