Electronic device, camera module, and camera module control method

The camera module addresses image quality degradation by using dual image stabilization mechanisms that maintain optical axis alignment, effectively preventing edge and corner image quality deterioration during compensation.

JP2025512683AActive Publication Date: 2025-04-22HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024551590
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-08-24
Filing Date
2023-06-30
Publication Date
2025-04-22
Estimated Expiration
2043-06-30

AI Technical Summary

Technical Problem

Existing image stabilization technologies in camera modules suffer from a decline in image quality at the four corners and edge deterioration due to changes in the relative angle between the optical axis of the lens group and the image sensor during compensation.

Method used

The camera module employs a dual image stabilization mechanism, where the first mechanism drives the image sensor to move perpendicular to or rotate around the lens group's optical axis without altering the relative axis alignment, and the second mechanism moves or rotates the entire camera assembly while maintaining the optical axis alignment.

Benefits of technology

This approach prevents deterioration in image formation quality and edge image quality at the four corners, ensuring improved image stabilization without compromising image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025512683000001_ABST
    Figure 2025512683000001_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose an electronic device, a camera module, and a camera module control method for eliminating the degradation in imaging quality of the four corners of an image and the deterioration of edge image quality that occur during image stabilization compensation, and relate to the field of image stabilization technology. The camera module includes a housing, a camera assembly, a first image stabilization mechanism, and a second image stabilization mechanism, all of which are disposed in the housing. The camera assembly includes a lens group and an image sensor disposed opposite each other in a direction parallel to the lens group. The first image stabilization mechanism is connected to the image sensor in a transmitting manner and drives the image sensor to move in a direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group. The second image stabilization mechanism is connected to the camera assembly in a transmitting manner and is configured to drive the camera assembly to move in a direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group. Both the first image stabilization mechanism and the second image stabilization mechanism perform shake compensation without changing the relative angle between the optical axis of the lens group and the optical axis of the image sensor, so that the above-mentioned problem is eliminated.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 202211015660.8, entitled “Electronic Device, Camera Module, and Camera Module Control Method,” filed with the China National Intellectual Property Office on August 24, 2022, which is incorporated herein by reference in its entirety.

[0002] The present application relates to the field of image stabilization technology, and in particular to an electronic device, a camera module, and a camera module control method. [Background technology]

[0003] Optical image stabilization (OIS) technology is a technology in which the detection of the shaking of the mobile phone is performed using a gyroscope, and then the lens group is moved in the opposite direction using an OIS motor to compensate for the blurring of the image caused by the shaking of the mobile phone during exposure when taking a video or a photo. However, currently, in some common OIS technologies, the relative angle between the optical axis of the lens group and the optical axis of the image sensor changes during image quality compensation. Due to the optical characteristics of the lens group, the change in the relative angle between the optical axis of the lens group and the optical axis of the image sensor causes a decrease in the imaging quality in the four corner fields of the lens group and a deterioration in edge image quality. Summary of the Invention

[0004] The embodiments of the present application provide an electronic device, a camera module, and a camera module control method to solve the problems in the prior art of degrading imaging quality in the four corner fields of an image and deteriorating edge image quality caused by changes in the relative angle between the optical axis of the lens group and the optical axis of the image sensor when the camera module performs image stabilization compensation.

[0005] In order to achieve the aforementioned objectives, the following technical solutions are used in this application.

[0006] According to a first aspect, an embodiment of the present application provides a camera module. The camera module includes a housing, a camera assembly, a first image stabilization mechanism, and a second image stabilization mechanism. The camera assembly, the first image stabilization mechanism, and the second image stabilization mechanism are all disposed in the housing. The camera assembly includes a lens group and an image sensor. Both the lens group and the image sensor are disposed in the housing. In addition, the image sensor and the lens group are disposed opposite to each other and spaced apart from each other in a direction parallel to the lens group. The first image stabilization mechanism is connected to the image sensor in a transmitting manner. The first image stabilization mechanism is configured to drive the image sensor to move in a direction perpendicular to the optical axis of the lens group or to rotate around the direction of the optical axis of the lens group. The second image stabilization mechanism is connected to the camera assembly in a transmitting manner. The second image stabilization mechanism is configured to drive the camera assembly to move in the direction perpendicular to the optical axis of the lens group or to rotate around the direction of the optical axis of the lens group.

[0007] When the camera module performs image stabilization compensation, the first image stabilization mechanism only drives the image sensor to move in a direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group, and the optical axis of the image sensor and the optical axis of the lens group are not changed. The second image stabilization mechanism only drives the camera assembly to move in a direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group. The whole camera assembly moves or rotates together, and the optical axis of the image sensor and the optical axis of the lens group are not changed. Therefore, in the whole image stabilization compensation process, neither the optical axis of the image sensor in the camera module nor the optical axis of the lens group in the camera module is changed. Therefore, the deterioration of the imaging quality in the four corner fields of the lens group and the deterioration of the edge image quality are avoided.

[0008] In some embodiments of the present application, the camera module further includes a shaking detection device and a main control chip. The shaking detection device is attached to an electronic device in which the camera module is located, and is configured to detect shaking information of the electronic device in which the camera module is located. Specifically, the shaking detection device may be attached to the housing of the camera module, or may be attached to a main control circuit board in the electronic device. The housing of the camera module may be fixed to the housing of the electronic device, so that the shaking detection device attached to the housing may also detect shaking information of the electronic device in which the camera module is located. In addition, the shaking detection device may be specifically an inertial sensor. The main control chip is electrically connected to the shaking detection device, the first image stabilization mechanism, and the second image stabilization mechanism. The main control chip is configured to: obtain drive information corresponding to the shake compensation information of the first image stabilization mechanism based on the shaking information detected by the shaking detection device, and send the drive information of the first image stabilization mechanism to the first image stabilization mechanism. Alternatively, the main control chip is configured to: obtain drive information corresponding to the shake compensation information of the second image stabilization mechanism based on the shake information detected by the shake detection device, and send the drive information of the second image stabilization mechanism to the second image stabilization mechanism. Alternatively, the main control chip is configured to: obtain drive information corresponding to the shake compensation information of the first image stabilization mechanism and drive information corresponding to the shake compensation information of the second image stabilization mechanism based on the shake information detected by the shake detection device, and send the drive information of the first image stabilization mechanism to the first image stabilization mechanism and send the drive information of the second image stabilization mechanism to the second image stabilization mechanism. The first image stabilization mechanism is configured to drive the image sensor to move in the direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group based on the drive information sent by the main control chip.The second image stabilization mechanism is configured to drive the camera assembly to move in the direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group according to the drive information sent by the main control chip. Therefore, the camera module in this embodiment of the present application may drive the first image stabilization mechanism and the second image stabilization mechanism to separately perform image stabilization motion compensation or drive both the first image stabilization mechanism and the second image stabilization mechanism to perform image stabilization motion compensation according to different shaking situations to meet different image stabilization requirements.

[0009] In addition, in some embodiments of the present application, the first image stabilization mechanism includes a heating device, a memory alloy strip, and a first driving chip. The memory alloy strip is connected to the heating device and the image sensor. The heating device heats the memory alloy strip, so that the memory alloy strip is stretched or shortened, and drives the image sensor to move in the direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group. The first driving chip is electrically connected to the main control chip and the heating device. The first driving chip is configured to control the input current of the heating device based on the drive information sent by the main control chip to control the distance the memory alloy is stretched or shortened. In this way, the memory alloy strip is controlled, so that the image sensor can be driven to accurately reach a preset compensation position corresponding to the drive information. The distance the memory alloy is stretched and the distance the memory alloy is shortened are accurately controlled, so that the image stabilization effect can be improved.

[0010] In addition, in some embodiments of the present application, the first image stabilization mechanism further includes a first position detection device. The first position detection device may specifically be a position sensor. The first position detection device is attached to the image sensor and configured to detect position information of the image sensor. The main control chip is electrically connected to the first position detection device. The main control chip is configured to determine whether to send compensation drive information to the first drive chip based on the position information detected by the first position detection device, so that the memory alloy strip drives the image sensor to reach a first preset shake compensation position. The first preset shake compensation position corresponds to the drive information of the main control chip and is a compensation position that the image sensor needs to reach. The first position detection device can detect the position information of the image sensor in real time and feedback the position information to the main control chip, thereby implementing position feedback control of the image sensor, thereby ensuring that the image sensor can accurately reach the first preset shake compensation position.

[0011] Regarding the structure of the second image stabilization mechanism, in some embodiments, the second image stabilization mechanism includes a voice coil motor and a second driving chip. The voice coil motor includes a magnet and a magnetic element arranged opposite to each other. The magnet is attached to one of the housing and the camera assembly, and the magnetic element is attached to the other of the housing and the camera assembly. The magnet magnetically engages with the magnetic element to drive the camera assembly to move in the direction perpendicular to the optical axis of the lens group or to rotate around the direction of the optical axis of the lens group. The second driving chip is electrically connected to the magnetic element in the voice coil motor. The second driving chip is specifically configured to control the input current of the magnetic element in the voice coil motor based on the drive information sent by the main control chip to adjust the magnetic force generated by the magnetic element. In this way, the distance that the magnet is attracted or repelled by the magnetic element to move is controlled, and as a result, the moving distance or rotation angle of the camera assembly is changed. Similarly, the second driving chip can drive the camera assembly to accurately reach the preset compensation position corresponding to the driving information by controlling the voice coil motor. The magnetic force generated by the magnetic element can be precisely controlled, so that the image stabilization effect can be improved.

[0012] In some implementations of the present application, the second image stabilization mechanism includes a second position detection device. The second position detection device may specifically be a position sensor. The second position detection device is attached to the camera assembly and configured to detect position information of the camera assembly. The main control chip is electrically connected to the second position detection device. The main control chip is configured to determine whether to send compensation drive information to the second drive chip based on the position information detected by the second position detection device, so that the second drive chip drives the camera assembly to reach a second preset shake compensation position. The second preset shake compensation position corresponds to the drive information of the main control chip and is a compensation position that the camera assembly needs to reach. The second position detection device detects the position information of the camera assembly in real time and feeds back the position information to the main control chip, thereby implementing position feedback control of the camera assembly, thereby ensuring that the camera assembly can accurately reach the second preset shake compensation position.

[0013] According to a second aspect, the embodiment of the present application further includes a control method for the camera module in the above embodiment, the control method including the following control steps: obtaining current shaking information of an electronic device in which the camera module is located; searching a mapping model between shaking information, and compensation information of a first image stabilization mechanism and compensation information of a second image stabilization mechanism based on the current shaking information to obtain compensation information of the first image stabilization mechanism and corresponding to the current shaking information and / or compensation information of the second image stabilization mechanism and corresponding to the current shaking information; Calculating drive information of the first image stabilization mechanism based on the compensation information of the first image stabilization mechanism, and driving an image sensor by the first image stabilization mechanism based on the drive information of the first image stabilization mechanism to move in a direction perpendicular to an optical axis of a lens group or rotate around a direction of the optical axis of the lens group; and calculating drive information of the second image stabilization mechanism based on the compensation information of the second image stabilization mechanism, and driving a camera assembly by the second image stabilization mechanism based on the drive information of the second image stabilization mechanism to move in the direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group. Equipped with.

[0014] A control method of the camera module is implemented, so that the camera module can implement good shaking compensation effect and has good high frequency shaking compensation effect.

[0015] Based on the foregoing description, in some embodiments of the present application, the step of searching a mapping model between shaking information, and compensation information of a first image stabilization mechanism and compensation information of a second image stabilization mechanism based on the current shaking information to obtain compensation information of the first image stabilization mechanism and corresponding to the current shaking information and / or compensation information of the second image stabilization mechanism and corresponding to the current shaking information includes: when the current shaking information is that the electronic device performs a translation and the translation amount is less than or equal to a maximum stroke value of the first image stabilization mechanism, searching the mapping model between shaking information, and compensation information of a first image stabilization mechanism and compensation information of a second image stabilization mechanism to obtain the compensation information of the first image stabilization mechanism; when the current shaking information is that the electronic device is performing a translation and the translation amount is greater than the maximum stroke value of the first image stabilization mechanism, searching the mapping model between shaking information, and the compensation information of the first image stabilization mechanism and the compensation information of the second image stabilization mechanism to obtain the compensation information of the first image stabilization mechanism and the compensation information of the second image stabilization mechanism; when the current shaking information is that the electronic device performs a pitch rotation or a yaw rotation and a rotation angle is less than or equal to a maximum stroke angle of the second image stabilization mechanism, searching the mapping model between shaking information, and compensation information of a first image stabilization mechanism and compensation information of a second image stabilization mechanism to obtain the compensation information of the second image stabilization mechanism; when the current shaking information is that the electronic device performs a pitch rotation or a yaw rotation and the rotation angle is greater than the maximum stroke angle of the second stabilization mechanism, searching the mapping model between shaking information and the compensation information of a first stabilization mechanism and the compensation information of a second stabilization mechanism to obtain the compensation information of the first stabilization mechanism and the compensation information of the second stabilization mechanism; and and searching the mapping model between the shake information and the compensation information of a first image stabilization mechanism and the compensation information of a second image stabilization mechanism to obtain the compensation information of the first image stabilization mechanism and / or the compensation information of the second image stabilization mechanism when the current shake information indicates that the electronic device is performing a roll rotation. Specifically, the following are provided.

[0016] According to a third aspect, the embodiment of the present application further includes an electronic device. The electronic device includes a housing and a camera module in the above-mentioned embodiment. A camera assembly is attached to the housing. The camera module in the electronic device in the present embodiment of the present application and the camera module in the above-mentioned embodiment have the same structure, so that they can solve the same technical problem and obtain the same technical effect, and the details are not described again in this specification. [Brief description of the drawings]

[0017] In order to describe the technical solutions in the embodiments of the present application, the following describes the accompanying drawings which need to be used in the embodiments of the present application.

[0018] [Figure 1] FIG. 2 is a front three-dimensional view of an electronic device, which is a mobile phone, according to an embodiment of the present application.

[0019] [Diagram 2] FIG. 2 is a rear three-dimensional view of an electronic device, which is a mobile phone, according to an embodiment of the present application.

[0020] [Diagram 3] FIG. 1 is a partial exploded view of an electronic device, which is a mobile phone, according to an embodiment of the present application.

[0021] [Figure 4] FIG. 2 is a diagram of the structure of some components of a camera module in an electronic device according to an embodiment of the present application.

[0022] [Diagram 5] FIG. 2 is a diagram of a shaking electronic device according to an embodiment of the present application.

[0023] [Figure 6] FIG. 13 is a diagram of imaging of an electronic device without a wobble structure.

[0024] [Figure 7]FIG. 1 is a diagram of shake compensation of a camera module in the first prior art.

[0025] [Figure 8] FIG. 11 is a diagram of shake compensation of a camera module in the second prior art.

[0026] [Figure 9] FIG. 1 is a first diagram of a structure of a camera module in an electronic device according to an embodiment of the present application.

[0027] [Figure 10] FIG. 13 is a diagram of shake compensation of a camera module in the third prior art.

[0028] [Figure 11] FIG. 2 is a diagram of imaging after a camera module in an electronic device performs shake compensation, according to an embodiment of the present application.

[0029] [Figure 12] FIG. 2 is a second diagram of the structure of a camera module in an electronic device according to an embodiment of the present application.

[0030] [Figure 13] FIG. 2 is a diagram of a structure in which a camera module in an electronic device has a first driving mechanism according to an embodiment of the present application.

[0031] [Figure 14] FIG. 13 is a diagram of a structure in which a camera module in an electronic device has a second driving mechanism according to an embodiment of the present application.

[0032] [Figure 15A] 1 is a schematic flowchart of a method for controlling a camera module in an electronic device according to an embodiment of the present application. [Figure 15B] 1 is a schematic flowchart of a method for controlling a camera module in an electronic device according to an embodiment of the present application. [Figure 15C]1 is a schematic flowchart of a method for controlling a camera module in an electronic device according to an embodiment of the present application. [Figure 15D] 1 is a schematic flowchart of a method for controlling a camera module in an electronic device according to an embodiment of the present application.

[0033] Reference Number: 1000: Electronic devices; 100:Display; 200:Housing; 201: intermediate frame; 202: rear housing; 2021: Mounting holes; 300: main control circuit board; 400: camera module; 1: Housing; 2: Camera assembly; 21: Lens group; 22: Image sensor; 23: First image stabilization mechanism; 231: Heating device; 232: memory alloy strip; 233: first driving chip; 234: first position detection device; 24: Second image stabilization mechanism; 241: Voice coil motor; 2411: magnet; 2412:Magnetic element; 242: second driving chip; 243: second position detection device; 25: Shake detection device; 26: Main control chip DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings.

[0035] Hereinafter, terms such as "first" and "second" are intended for descriptive purposes only and cannot be understood as an indication or suggestion of the relative importance or implicit indication of the number of technical features depicted. Thus, a feature qualified by "first" or "second" etc. may explicitly indicate or implicitly include one or more of such features. In the description of this application, unless otherwise specified, "a plurality of" means two or more than two.

[0036] In addition, in this application, orientation terms such as "up," "down," "left," "right," "horizontal," and "vertical" are defined relative to the orientation in which the components are generally disposed in the accompanying drawings. It should be understood that these orientation terms are relative concepts used for relative description and clarity, and may vary accordingly based on changes in the orientation in which the components are disposed in the accompanying drawings.

[0037] In this application, unless otherwise specified and limited, the term "connection" should be understood in a broad sense. For example, the term "connection" may be a connection of a mechanical structure or a connection of a physical structure. For example, the "connection" may be a fixed connection, a removable connection, or an integrated connection; or the "connection" may be a direct connection or an indirect connection through an intermediate medium. The "connection" may also be understood as a form in which components are in physical contact and have electrical conductivity, or a form in which different components of a line structure are connected through a physical line that can transmit an electrical signal, such as a PCB copper foil or a conductor wire.

[0038] The embodiments of the present application include electronic devices. The electronic devices include various devices having a camera module. For example, the electronic devices include mobile phones, tablet personal computers, laptop computers, personal digital assistants (PDAs), in-vehicle devices, wearable devices (such as smart watches, smart bands, smart glasses, smart helmets, smart headbands, or smart canes), and video surveillance devices. The specific form of the electronic device is not particularly limited in the embodiments of the present application. For ease of explanation, the following uses an example in which the electronic device is a smart watch shown in FIG. 1 for explanation.

[0039] FIG. 1 is a front three-dimensional view of an electronic device according to some embodiments of the present application. FIG. 2 is a rear three-dimensional view of an electronic device according to some embodiments of the present application. FIG. 3 is a schematic exploded view of some components of an electronic device according to some embodiments of the present application. From the above description, it can be seen that in this embodiment, the electronic device 1000 is a mobile phone. The electronic device 1000 may include a display 100, a housing 200, a main control circuit board 300 fixed to the housing 200, and a camera module 400 attached to the housing 200. The display 100 is attached to the housing 200. The display 100 is configured to display image information and / or text information output by the main control circuit board 300. The housing 200 includes a middle frame 201 and a rear housing 202. The display 100 is attached at an opening on one side of the middle frame 201, and the rear housing 202 is attached at an opening on the other side of the middle frame 201. Both the main control circuit board 300 and the camera module 400 are disposed in a space surrounded by the display 100, the intermediate frame 201, and the rear housing 202. In addition, a mounting hole 2021 is provided on the rear housing 202 at a position corresponding to the camera module 400, and the camera module 400 is mounted in the mounting hole 2021. In addition, the camera module 400 can receive light emitted from the external environment through the mounting hole 2021 to implement image capture. The image captured by the camera module 400 can be displayed using the display 100.

[0040] It should be noted that in addition to functions such as taking photos and videos, the camera module 400 may further implement functions such as face recognition unlocking, face recognition payment, QR code scanning authentication, and QR code scanning payment. The camera module 400 may be a rear-facing camera module as shown in FIG. 2, or a front-facing camera module, or a camera module that pops up from the middle frame 201. This is not limited in this embodiment of the present application. The structure of the camera module 400 will be described in detail below with reference to the accompanying drawings.

[0041] In some embodiments of the present application, as shown in FIG. 4, the camera module 400 includes a housing 1 and a camera assembly 2. The camera assembly 2 includes a lens group 21 and an image sensor 22. Both the lens group 21 and the image sensor 22 are disposed in the housing 1. In addition, the image sensor 22 and the lens group 21 are disposed opposite to each other and spaced apart from each other in a direction parallel to the optical axis S of the lens group 21. The lens group 21 may include multiple lenses. The multiple lenses may mutually correct light, condense light, filter light, and so on. When light passes through the lens group 21, the multiple lenses may filter out stray light in the light and correct the propagation path of the light to optimize the imaging effect of the lens assembly. The image sensor 22 converts the optical image on the photosensitive surface into an electrical signal at a rate corresponding to the optical image using the photoelectric conversion function of the optoelectronic device. The photosensitive surface of the image sensor 22 may receive the light emitted by the lens group 21 and convert the light signal into an electrical signal, thereby implementing the imaging function of the camera module 400.

[0042] It should be noted that the lenses in the lens group 21 may be glass lenses or plastic lenses, which is not limited in this application. The image sensor 22 may be a charge-coupled device (CCD) image sensor or a complementary metal oxide semiconductor (CMOS) image sensor, which is not limited in this application.

[0043] Please refer to Fig. 5 and Fig. 6. When the shooting is performed using a mobile phone, the hand shaking problem usually results in out-of-focus photos with blurry images (point AB in Fig. 6) or videos with severe image shaking being recorded. The arrow in Fig. 5 represents the shaking direction of the mobile phone. To solve this problem, a hand shake correction structure used for optical image stabilization (Optical Image Stabilization, OIS) is arranged in the camera module 400.

[0044] FIG. 7 is a diagram of the image stabilization performed on the lens group 21 using the image stabilization structure in the prior art. The arrow in FIG. 7 represents the moving direction of the lens group 21, and the dashed line represents the lens group 21 moving to the compensation position under the operation of the image stabilization structure. The image stabilization structure is connected to the lens group 21 in a transmitting manner. The image stabilization structure can drive the lens group 21 to move in a direction perpendicular to the optical axis S to eliminate the problem of poor image quality caused by the problem of hand shaking. However, in the image stabilization process, the movement of the lens group 21 causes a change in the relative position of the lens group 21 and the image sensor 22. As a result, the deterioration of the imaging quality in the four corner fields of the lens group 21 and the deterioration of the edge image quality occur.

[0045] Similarly, FIG. 8 shows another prior art image stabilization structure. The arrow in FIG. 8 indicates the moving direction of the lens group 21, and the dashed line indicates that the lens group 21 moves to the compensation position under the operation of the image stabilization structure. The image stabilization structure is also connected to the lens group 21 in a transmitting manner. The difference is that the image stabilization structure drives the lens group 21 to rotate around the optical axis S of the lens group 21, so as to eliminate the problem of poor image quality caused by hand shaking. However, in the image stabilization process, the rotation of the lens group 21 causes a change in the relative position of the lens group 21 and the image sensor 22. As a result, the image forming quality in the four corner fields of the lens group 21 and the edge image quality are deteriorated.

[0046] Therefore, in order to simultaneously resolve the low quality of the entire image caused by shaking of the hand, and the deterioration of the imaging quality in the four corners of the field of view of the lens group 21 and the deterioration of the edge image quality, as shown in FIG. 9, the image stabilization structure of the camera module 400 in this embodiment of the present application includes a first image stabilization mechanism 23 and a second image stabilization mechanism 24. Both the first image stabilization mechanism 23 and the second image stabilization mechanism 24 are disposed in the housing 1. In addition, the first image stabilization mechanism 23 is connected to the image sensor 22 in a transmitting manner. The first image stabilization mechanism 23 is configured to drive the image sensor 22 to move in a direction perpendicular to the optical axis S of the lens group 21 or to rotate around the direction of the optical axis S of the lens group 21. The second image stabilization mechanism 24 is connected to the camera assembly 2 in a transmitting manner. The second image stabilization mechanism 24 is configured to drive the camera assembly 2 to move in a direction perpendicular to the optical axis S of the lens group 21 or to rotate around the direction of the optical axis S of the lens group 21.

[0047] When the mobile phone implements the image stabilization function, the first image stabilization mechanism 23 only drives the image sensor 22 to move in a direction perpendicular to the optical axis S of the lens group 21 or rotate around the direction of the optical axis S of the lens group 21, and the optical axis S of the image sensor 22 and the optical axis S of the lens group 21 are not changed. The second image stabilization mechanism 24 only drives the camera assembly 2 to move in a direction perpendicular to the optical axis S of the lens group 21 or rotate around the direction of the optical axis S of the lens group 21. The whole camera assembly 2 moves or rotates together, and the optical axis S of the image sensor 22 and the optical axis S of the lens group 21 are not changed. Therefore, in the whole image stabilization process, neither the optical axis S of the image sensor 22 in the camera module nor the optical axis S of the lens group 21 in the camera module is changed. Therefore, the deterioration of the imaging quality in the four corner fields of the lens group 21 and the deterioration of the edge image quality are avoided.

[0048] In addition, compared to the image stabilization effect compensation performed using only the translation or rotation of the image sensor 22, using only the translation or rotation of the lens group 21, or using only the translation or rotation of the camera assembly 2 as shown in FIG. 10, in this embodiment of the present application, the image stabilization effect compensation is performed using the first image stabilization mechanism 23 to drive the image sensor 22 to translate or rotate, and using the second image stabilization mechanism 24 to drive the camera assembly 2 to translate or rotate. The two image stabilization mechanisms are combined so that good image stabilization effect can be achieved at a larger image stabilization angle. In addition, compared to the method of driving both the camera assembly 2 and the lens group 21 to move and perform the image stabilization effect compensation, in this embodiment of the present application, a method of driving both the camera assembly 2 and the image sensor 22 to move and perform the image stabilization effect compensation is used. Since the mass of the image sensor 22 is smaller than the mass of the lens group 21, the moment of inertia of the image sensor 22 is smaller. Therefore, the camera module 400 in this embodiment of the present application has stronger anti-shake performance against high frequency shaking. Figure 11 shows the effect of anti-shake effect compensation performed using the camera assembly in accordance with an embodiment of the present application. Point AB in Figure 11 is more distinct, especially the edge is more distinct.

[0049] To facilitate the following description, an X, Y, Z coordinate system may be established in some of the accompanying drawings. The direction of the optical axis S of the camera module 400 in the mobile phone 100 shown in Fig. 10 may be the Z axis, the length direction of the camera module 400 may be the Y axis, and the width direction of the camera module 400 may be the X axis. It may be understood that the width of the camera module 400 is smaller than the length of the camera module 400.

[0050] To implement the automatic control of the shake compensation, the camera module 400 further includes a shake detection device 25 and a main control chip 26 shown in FIG. 12. The shake detection device 25 can specifically be a gyroscope, an inertial sensor, etc. The shake detection device 25 is attached to the mobile phone and configured to detect the shake information of the mobile phone during shooting. For example, the shake detection device 25 may be attached to the housing 1 of the camera module 400, or may be attached to the main control circuit board 300 in the mobile phone. The main control chip 26 is electrically connected to the shake detection device 25, the first image stabilization mechanism 23, and the second image stabilization mechanism 24. The dashed lines "---" in FIG. 12 represent electrical connections. The main control chip 26 can obtain drive information corresponding to the shake compensation information of the first image stabilization mechanism 23 based on the shake information detected by the shake detection device 25, and send the drive information of the first image stabilization mechanism 23 to the first image stabilization mechanism 23. Alternatively, the main control chip 26 may obtain drive information corresponding to the shake compensation information of the second image stabilization mechanism 24 based on the shaking information detected by the shaking detection device 25, and send the drive information of the second image stabilization mechanism 24 to the second image stabilization mechanism 24. Alternatively, the main control chip 26 may obtain drive information corresponding to the shake compensation information of the first image stabilization mechanism 23 and drive information corresponding to the shake compensation information of the second image stabilization mechanism 24 based on the shaking information detected by the shaking detection device 25, and send the drive information of the first image stabilization mechanism 23 to the first image stabilization mechanism 23, and send the drive information of the second image stabilization mechanism 24 to the second image stabilization mechanism 24. Therefore, the camera module 400 in this embodiment of the present application may drive the first image stabilization mechanism 23 and the second image stabilization mechanism 24 to separately perform image stabilization motion compensation based on different shaking situations, or may drive both the first image stabilization mechanism 23 and the second image stabilization mechanism 24 to perform image stabilization motion compensation.

[0051] In the following, the structures of the first image stabilization mechanism 23 and the second image stabilization mechanism 24 in the above-mentioned camera module 400 will be briefly described with reference to a specific embodiment.

[0052] In some embodiments of the present application, as shown in FIG. 13, the first image stabilization mechanism 23 includes a heating device 231, a memory alloy strip 232, and a first driving chip 233. The heating device 231 is connected to the memory alloy strip 232, and the memory alloy strip 232 is connected to the image sensor 22. The heating device 231 heats the memory alloy strip 232, so that the memory alloy is stretched or shortened to drive the image sensor 22 connected to the memory alloy strip 232 to move in a direction perpendicular to the optical axis S of the lens group 21 or rotate around the direction of the optical axis S of the lens group 21. The first driving chip 233 is electrically connected to the main control chip 26 and the heating device 231. The dashed lines "---" in FIG. 13 represent electrical connections. The main control chip 26 sends the drive information of the first image stabilization mechanism 23 obtained by calculation to the first driving chip 233. The first driving chip 233 controls the input current of the heating device 231 according to the driving information sent by the main control chip 26, and controls the distance by which the memory alloy strip 232 is extended or shortened. In this way, the memory alloy strip 232 is controlled, so that the image sensor 22 can be driven to accurately reach a preset compensation position corresponding to the driving information. The distance by which the memory alloy strip 232 is extended and the distance by which the memory alloy strip 232 is shortened can be accurately controlled, so that the image stabilization effect can be improved.

[0053] In addition, in some embodiments of the present application, there are multiple memory alloy strips 232 in the first image stabilization mechanism 23. As shown in FIG. 13, there are four memory alloy strips 232. The four memory alloy strips 232 can surround or approximately surround a rectangular ring, and the image sensor 22 can be located in the rectangular ring. Alternatively, there can be eight memory alloy strips 232 in the first image stabilization mechanism 23. In addition, the memory alloy strips can be specifically made of shape memory alloy (SMA). It should be noted that the first image stabilization mechanism 23 can further include another component, for example, a fastening structure, such as a support frame or a support base. The heating device can be fixed and attached to the fastening structure. This is not limited in the present application.

[0054] In addition, in the case of the first image stabilization mechanism 23, in addition to being driven by the memory alloy strip 232, the heating device 231 and the memory alloy strip 232 in the first image stabilization mechanism 23 can also be mechanical components based on a driving method such as electromagnetic force driving, piezoelectric ceramic driving, or electrostatic force driving.

[0055] In order to precisely control the image sensor 22 to reach a preset shake compensation position under the operation of the heating device 231, in some embodiments of the present application, the first image stabilization mechanism 23 includes a first position detection device 234 shown in FIG. 14. The first position detection device 234 is attached to the image sensor 22. For example, the first position detection device 234 is a position sensor. The first position detection device 234 is configured to detect the position information of the image sensor 22. The main control chip 26 is electrically connected to the first position detection device 234. The main control chip 26 determines whether to send compensation motion information to the first driving chip 233 based on the position information detected by the first position detection device 234, so that the memory alloy strip 232 can drive the image sensor 22 to reach a first preset shake compensation position. The first preset shake compensation position corresponds to the drive information of the main control chip 26 and is a compensation position that the image sensor 22 needs to reach. If the position information detected by the first position detection device 234 indicates that the image sensor 22 has not reached the first preset wobble compensation position, the main control chip 26 sends the compensation motion information to the first driving chip 233, and the heating device 231 continues to heat the memory alloy strip 232 to drive the memory alloy strip 232 to be stretched or shortened, thereby driving the image sensor 22 to continue moving until the image sensor 22 reaches the first preset wobble compensation position. If the position information detected by the second position detection device 243 indicates that the image sensor 22 has already reached the first preset wobble compensation position, the main control chip 26 does not need to send the compensation motion information to the first driving chip 233. In this way, the above control steps are performed to ensure that the image sensor 22 can accurately reach the first preset wobble compensation position.

[0056] The above description describes the structural composition and control method of the first image stabilization mechanism 23. The following briefly describes the second image stabilization mechanism 24 with reference to a specific embodiment.

[0057] In some embodiments of the present application, as shown in FIG. 14, the second image stabilization mechanism 24 includes a voice coil motor (VCM) 241 and a second driving chip 242. The voice coil motor 241 includes a magnet 2411 and a magnetic element 2412. The magnet 2411 is attached to one of the housing 1 and the camera assembly 2. The magnetic element 2412 is attached to the other of the housing 1 and the camera assembly 2. In addition, the magnetic element 2412 and the magnet 2411 are arranged facing each other. The magnetic element 2412 may specifically be an electromagnet. The magnet 2411 magnetically engages with the magnetic element 2412 to drive the camera assembly 2 to move in a direction perpendicular to the optical axis S of the lens group 21 or rotate around the direction of the optical axis S of the lens group 21. The second driving chip 242 is electrically connected to the magnetic element 2412 in the voice coil motor 241. The dashed lines "---" in FIG. 14 indicate electrical connection. The second driving chip 242 is specifically configured to control the input current of the magnetic element 2412 in the voice coil motor 241 based on the drive information sent by the main control chip 26 to adjust the magnitude of the magnetic force generated by the magnetic element 2412. In this way, the distance that the magnet 2411 is attracted or repelled by the magnetic element 2412 to move is controlled, and as a result, the moving distance or rotation angle of the camera assembly 2 is changed. Similarly, the second driving chip 242 can drive the camera assembly 2 to accurately reach a preset shake compensation position corresponding to the drive information by controlling the voice coil motor 241. The magnetic force generated by the magnetic element 2412 is accurately controlled, and as a result, the image stabilization effect can be improved.

[0058] It should be noted that in some embodiments of the present application, there may be multiple voice coil motors 241 in the second image stabilization mechanism 24, and the multiple voice coil motors 241 may be symmetrically arranged along the optical axis S of the lens group 21. In addition, there may be multiple magnetic elements 2412 and multiple magnets 2411 in the voice coil motor 241, and the multiple magnetic elements 2412 have a one-to-one correspondence with the multiple magnets 2411. The position distribution of the magnetic elements 2412 and the magnets 2411 is appropriately designed, so that the camera assembly 2 can move or rotate. In addition, the magnetic elements 2412 and the magnets 2411 may be connected using spring plates and bearings to improve the connection strength between the magnetic elements 2412 and the magnets 2411.

[0059] Similarly, in order to precisely control the camera assembly 2 to reach a preset shake compensation position under the operation of the voice coil motor 241, in some embodiments of the present application, the second image stabilization mechanism 24 includes a second position detection device 243. The second position detection device 243 may be attached to the camera assembly 2. For example, the second position detection device 243 is a position sensor. In addition, the second position detection device 243 is configured to detect the position information of the camera assembly 2. The main control chip 26 is electrically connected to the second position detection device 243. The main control chip 26 may determine whether to send compensation motion information to the second driving chip 242 based on the position information detected by the second position detection device 243, so that the second driving chip 242 may drive the camera assembly 2 to reach a second preset shake compensation position. The second preset shake compensation position corresponds to the drive information of the main control chip 26 and is a compensation position that the camera assembly 2 needs to reach. If the position information detected by the second position detection device 243 indicates that the camera assembly 2 has not reached the second preset shake compensation position, the main control chip 26 sends compensation movement information to the second driving chip 242 to drive the camera assembly 2 to continue moving until the camera assembly 2 reaches the second preset shake compensation position. If the position information detected by the second position detection device 243 indicates that the camera assembly 2 has already reached the second preset shake compensation position, the main control chip 26 does not need to send compensation movement information to the second driving chip 242. In this way, the above-mentioned control steps are performed to ensure that the camera assembly 2 can accurately reach the second preset shake compensation position.

[0060] It should be noted that the second image stabilization mechanism 24 may further include another component, for example, a fastening structure, such as a support frame or a support base. The fastening structure may be configured to secure a magnet or a magnetic element. This is not limited in the present application.

[0061] Based on the structure of the camera module 400, the camera module 400 in this embodiment of the present application can implement the following control method to perform camera shake correction motion compensation. Please refer to Figures 15A, 15B, 15C and 15D. The control method includes the following steps:

[0062] S100: Obtain current shaking information of an electronic device where a camera module is located.

[0063] For example, a gyroscope or an inertial sensor in a mobile phone can detect shaking information of the mobile phone during shooting. The shaking information includes shaking amplitude, shaking direction, shaking speed, etc. of the mobile phone during shooting. The shaking amplitude includes shaking displacement and shaking angle.

[0064] S200: Based on current shake information of the camera assembly, search for a mapping model between the shake information and the compensation information of the first image stabilization mechanism and the compensation information of the second image stabilization mechanism, and obtain compensation information of the first image stabilization mechanism and corresponding to the current shake information and / or compensation information of the second image stabilization mechanism and corresponding to the current shake information.

[0065] For example, the main control chip 26 may include a storage module and a processing module. The storage module stores a mapping model between the shaking information and the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24. The compensation information includes compensation for translational displacement, compensation for rotation angle, and compensation for movement direction, etc. The processing module can retrieve, based on the current shaking information, the compensation information of the first image stabilization mechanism 23 and corresponding to the current shaking information and the compensation information of the second image stabilization mechanism 24 and corresponding to the current shaking information from the mapping model between the shaking information and the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 in the storage module. In other words, the compensation information in the mapping model in the memory module and corresponding to the current shake information of the camera assembly 2 may be the compensation information of the first image stabilization mechanism 23, or may be the compensation information of the second image stabilization mechanism 24, or may be the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24.

[0066] S300: Calculate drive information for the first image stabilization mechanism based on the compensation information of the first image stabilization mechanism, and drive an image sensor by the first image stabilization mechanism to move in a direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group based on the drive information of the first image stabilization mechanism; calculate drive information for the second image stabilization mechanism based on the compensation information of the second image stabilization mechanism, and drive a camera assembly by the second image stabilization mechanism to move in the direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group based on the drive information of the second image stabilization mechanism.

[0067] For example, the processing module in the main control chip 26 may calculate the drive information of the first image stabilization mechanism 23 based on the compensation information of the first image stabilization mechanism 23, or may calculate the drive information of the second image stabilization mechanism 24 based on the compensation information of the second image stabilization mechanism 24. The drive information may be obtained by calculating and converting the compensation information of the first image stabilization mechanism 23 into the drive information of the first image stabilization mechanism 23 based on the structural composition and physical parameters of the first image stabilization mechanism 23. For example, the compensation information of the first image stabilization mechanism 23 drives the image sensor 22 to translate by 200 μm. The main control chip 26 calculates that the input current of the heating device is 120 mA based on driving the image sensor 22 to translate by 200 μm. The main control chip 26 sends the drive information of the first image stabilization mechanism 23 obtained by calculation to the first driving chip 233 in the first image stabilization mechanism 23, and sends the drive information of the second image stabilization mechanism 24 obtained by calculation to the second driving chip 242 in the second image stabilization mechanism 24. Thus, after receiving the drive information, the first driving chip 233 drives the image sensor 22 to perform corresponding motion compensation. For example, the first image stabilization mechanism 23 drives the image sensor 22 to move in a direction perpendicular to the optical axis S of the lens group 21 or rotate around the direction of the optical axis S of the lens group 21. After receiving the drive information, the second driving chip 242 drives the camera assembly 2 to perform corresponding motion compensation. For example, the second image stabilization mechanism 24 drives the camera assembly 2 to move in a direction perpendicular to the optical axis S of the lens group 21 or rotate around the direction of the optical axis S of the lens group 21.

[0068] In addition, in some embodiments of the present application, please still refer to Figures 15A, 15B, 15C, and 15D. Step S200 specifically includes the following steps:

[0069] If the current shaking information is that the electronic device is performing translation and the translation amount is less than or equal to the maximum stroke value of the first image stabilization mechanism 23, a mapping model between the shaking information and the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the first image stabilization mechanism 23 is obtained.

[0070] In some embodiments, if the current shaking information is that the mobile phone translates along the X-axis and the translation amount is less than or equal to the maximum stroke value of the first image stabilization mechanism 23, a mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23, and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the first image stabilization mechanism 23 is obtained. Therefore, a good shaking compensation effect can be obtained by using only the first image stabilization mechanism 23 to drive the image sensor 22 to translate in the opposite direction to that of the mobile phone's shaking in the X-axis direction. For example, if the current shaking information is that the mobile phone translates in the first direction of the X-axis by 50 μm, the compensation information of the first image stabilization mechanism 23 is that the first image stabilization mechanism 23 drives the image sensor 22 to translate in the second direction of the X-axis by 50 μm. The second direction is the opposite direction to the first direction. The maximum stroke value of the first image stabilization mechanism 23 can be stored in the storage module of the main control chip 26. Similarly, if the current shaking information is that the mobile phone translates along the Y axis and the translation amount is less than or equal to the maximum stroke value of the first image stabilization mechanism 23, a mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23, and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the first image stabilization mechanism 23 is obtained. Similarly, by using only the first image stabilization mechanism 23 to drive the image sensor 22 to translate in the opposite direction to that of the mobile phone's shaking in the Y axis direction, a good shaking compensation effect can be obtained, and there is no need to drive the whole camera assembly 2 to move. Therefore, the first image stabilization mechanism 23 is particularly suitable for performing compensation in high frequency shaking scenarios where the electronic device 1000 translates along the X axis or the Y axis. In addition, the maximum stroke value of the first image stabilization mechanism 23 in the X axis may be the same as or different from the maximum stroke value of the first image stabilization mechanism 23 in the Y axis. This is not limited in the present application.

[0071] When the current shaking information is that the electronic device is performing translation and the translation amount is greater than the maximum stroke value of the first image stabilization mechanism, a mapping model between the shaking information and the compensation information of the first image stabilization mechanism and the compensation information of the second image stabilization mechanism is searched, and the compensation information of the first image stabilization mechanism and the compensation information of the second image stabilization mechanism are obtained.

[0072] In some embodiments, if the current shaking information is that the mobile phone translates along the X-axis and the translation amount is greater than the maximum stroke value of the first image stabilization mechanism 23, it indicates that a good image stabilization compensation effect cannot be achieved only by using the first image stabilization mechanism 23, and both the first image stabilization mechanism 23 and the second image stabilization mechanism 24 need to be used to perform compensation. Therefore, a mapping model between the shaking information and the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 are obtained. In other words, the compensation allocation solution of the first image stabilization mechanism 23 and the second image stabilization mechanism 24 is obtained based on the mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24. Therefore, based on the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24, the first image stabilization mechanism 23 drives the image sensor 22 to translate by a specific displacement along the X-axis, and the second image stabilization mechanism 24 drives the whole camera assembly 2 to translate by a specific displacement along the X-axis. For example, the current shaking information is that the mobile phone translates 100 μm in the first direction of the X-axis and the maximum stroke value of the first image stabilization mechanism 23 is 70 μm. A mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched. The compensation information of the first image stabilization mechanism 23 is that the first image stabilization mechanism 23 drives the image sensor 22 to translate by 70 μm in the second direction of the X-axis, and the compensation information of the first image stabilization mechanism 23 is that the second image stabilization mechanism 24 drives the camera assembly 2 to translate by 30 μm in the second direction of the X-axis. Therefore, it is guaranteed that if the current shaking information exceeds the maximum stroke value of the first image stabilization mechanism 23, good shaking compensation can also be performed for the imaging operation with the current shaking information.Similarly, if the current shaking information is that the mobile phone translates along the Y axis and the translation amount is greater than the maximum stroke value of the first image stabilization mechanism 23, the control method of the camera assembly 2 is similar to the above-mentioned step, and the details will not be described again in this specification.

[0073] If the current shaking information is that the electronic device 1000 performs pitch rotation or yaw rotation and the rotation angle is less than or equal to the maximum stroke angle of the second image stabilization mechanism 24, a mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the second image stabilization mechanism 24 is obtained.

[0074] In some embodiments, if the current shaking information is that the mobile phone performs pitch rotation (around the X-axis) and the rotation angle is less than or equal to the maximum stroke angle of the second image stabilization mechanism 24, a mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the second image stabilization mechanism 24 is obtained. Therefore, a good shaking compensation effect can be obtained by using only the second image stabilization mechanism 24 to drive the camera assembly 2 to perform rotation compensation in the opposite direction to that of the pitch shaking of the mobile phone. For example, if the current shaking information is that the mobile phone performs pitch rotation by 0.3° in the third direction, the compensation information of the first image stabilization mechanism 23 is that the second image stabilization mechanism 24 drives the camera assembly 2 to perform pitch rotation by 0.3° in the fourth direction. The fourth direction is the opposite direction to the third direction. The maximum stroke angle of the second image stabilization mechanism 24 can be stored in the storage module of the main control chip 26. Similarly, if the current shaking information is that the mobile phone performs yaw rotation (around the Y axis) and the rotation angle is less than or equal to the maximum stroke angle of the second image stabilization mechanism 24, a mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the second image stabilization mechanism 24 is obtained. Similarly, a good shaking compensation effect can be obtained by using only the second image stabilization mechanism 24 to drive the camera assembly 2 to perform rotation compensation in the opposite direction to that of the yaw shake of the mobile phone. Therefore, the second image stabilization mechanism 24 is particularly suitable for compensation for high-frequency pitch or yaw shake scenarios of the electronic device 1000. In addition, the maximum stroke angle of the second image stabilization mechanism 24 in the pitch angle may be the same as or different from the maximum stroke angle of the second image stabilization mechanism 24 in the yaw angle. This is not limited in the present application.If the current shaking information is that the electronic device 1000 is performing pitch rotation or yaw rotation and the rotation angle is greater than the maximum stroke angle of the second image stabilization mechanism 24, a mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 are obtained.

[0075] In some embodiments, if the current shaking information is that the mobile phone performs pitch rotation and the rotation angle is greater than the maximum stroke angle of the second stabilization mechanism 24, it indicates that a good stabilization compensation effect cannot be achieved only by using the second stabilization mechanism 24, and both the first stabilization mechanism 23 and the second stabilization mechanism 24 need to be used to perform compensation. Therefore, a mapping model between the shaking information and the compensation information of the first stabilization mechanism 23 and the compensation information of the second stabilization mechanism 24 is searched, and the compensation information of the first stabilization mechanism 23 and the compensation information of the second stabilization mechanism 24 are obtained. In other words, the required compensation allocation solution of the first stabilization mechanism 23 and the second stabilization mechanism 24 is obtained based on the mapping model between the shaking information, the compensation information of the first stabilization mechanism 23 and the compensation information of the second stabilization mechanism 24. Therefore, based on the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24, the first image stabilization mechanism 23 drives the image sensor 22 to perform rotation compensation in the opposite direction to that of the pitch shake of the mobile phone, and the second image stabilization mechanism 24 drives the whole camera assembly 2 to perform rotation compensation in the opposite direction to that of the pitch shake of the mobile phone. For example, the current shaking information is that the mobile phone performs pitch rotation by 0.7° in the third direction and the maximum stroke angle of the first image stabilization mechanism 23 is 0.5°. A mapping model between the shaking information and the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched. The compensation information of the first image stabilization mechanism 23 is that the first image stabilization mechanism 23 drives the image sensor 22 to perform pitch rotation by 0.4° in the fourth direction. The compensation information of the second image stabilization mechanism 24 is that the second image stabilization mechanism 24 drives the entire camera assembly 2 to perform a pitch rotation by 0.3° in the fourth direction.Therefore, it is guaranteed that if the current shaking information exceeds the maximum stroke angle of the second image stabilization mechanism 24, a good shaking compensation effect can also be implemented for the imaging operation using the current shaking information. Similarly, if the current shaking information is that the mobile phone performs yaw rotation and the rotation angle is greater than the maximum stroke angle of the second image stabilization mechanism 24, the control method of the camera assembly 2 is similar to the above-mentioned steps. The details will not be described again in this specification.

[0076] If the current shaking information is that the electronic device 1000 is performing a roll rotation, a mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the first image stabilization mechanism 23, or the compensation information of the second image stabilization mechanism 24, or the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 are obtained.

[0077] For example, in the mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23, and the compensation information of the second image stabilization mechanism 24, the shaking information is that the mobile phone performs a roll rotation by different angles, corresponding to the compensation information of different image stabilization mechanisms. For example, the shaking information is that the mobile phone performs a roll rotation by 0.2° in a fifth direction, and the mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23, and the compensation information of the second image stabilization mechanism 24 is searched, and the compensation information of the first image stabilization mechanism 23 is obtained, where the compensation information of the first image stabilization mechanism 23 is to drive the image sensor 22 to perform a roll rotation by 0.2° in a sixth direction. The sixth direction is the opposite direction to the fifth direction. In another example, the shaking information is that the mobile phone performs a roll rotation by 0.35° in the sixth direction, and a mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched for, and the compensation information of the second image stabilization mechanism 24 is obtained, where the compensation information of the second image stabilization mechanism is to drive the camera assembly 2 to perform a roll rotation by 0.35° in the fifth direction. In another example, the shaking information is that the mobile phone performs a roll rotation by 0.68° in the fifth direction, and a mapping model between the shaking information, the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 is searched for, and the compensation information of the first image stabilization mechanism 23 and the compensation information of the second image stabilization mechanism 24 are obtained, where the compensation information of the first image stabilization mechanism 23 is to drive the image sensor 22 to perform a roll rotation by 0.42° in the sixth direction, and the compensation information of the second image stabilization mechanism 24 is to drive the camera assembly 2 to perform a roll rotation by 0.26° in the sixth direction.

[0078] Therefore, the camera module 400 in this embodiment of the present application can automatically complete the shake compensation on the camera module 400 by executing the above-mentioned control method, and can implement five-axis (including X-axis, Y-axis, pitch angle, yaw angle, and roll angle) motion compensation by using different image stabilization compensation solutions according to different shakes. In this way, it is guaranteed that the first image stabilization mechanism 23 and the second image stabilization mechanism 24 can implement a good shake compensation effect for the imaging operation of the mobile phone.

[0079] The above description is merely a specific implementation of the present application, and is not intended to limit the scope of protection of the present application. Any variations or replacements that a person skilled in the art can easily think of within the technical scope disclosed in the present application shall be included in the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims.

Claims

1. Housing, and The following components, all disposed within said housing: a camera assembly, wherein the camera assembly includes a lens group and an image sensor, the image sensor and the lens group being disposed opposite and spaced apart from each other in a direction parallel to an optical axis of the lens group; a first image stabilization mechanism, where the first image stabilization mechanism is connected to the image sensor in a transmitting manner and the first image stabilization mechanism is configured to drive the image sensor to move in a direction perpendicular to the optical axis of the lens group or to rotate about the direction of the optical axis of the lens group; and a second image stabilization mechanism, wherein the second image stabilization structure is connected to the camera assembly in a transmitting manner, and the second image stabilization mechanism is configured to drive the camera assembly to move in the direction perpendicular to the optical axis of the lens group or to rotate about the direction of the optical axis of the lens group. A camera module comprising:

2. The camera module further comprises: a shaking detection device, wherein the shaking detection device is attached to an electronic device in which the camera module is located and configured to detect shaking information of the electronic device in which the camera module is located; and a main control chip, wherein the main control chip is electrically connected to the shaking detection device, the first image stabilization mechanism, and the second image stabilization mechanism; the main control chip is configured to: obtain, based on the shaking information detected by the shaking detection device, drive information corresponding to the shaking compensation information of the first image stabilization mechanism, and send the drive information of the first image stabilization mechanism to the first image stabilization mechanism, and / or obtain drive information corresponding to the shaking compensation information of the second image stabilization mechanism, and send the drive information of the second image stabilization mechanism to the second image stabilization mechanism; Equipped with The first image stabilization mechanism is specifically configured to drive the image sensor to move in the direction perpendicular to the optical axis of the lens group or to rotate around the direction of the optical axis of the lens group based on the drive information sent by the main control chip; 2. The camera module of claim 1, wherein the second image stabilization mechanism is specifically configured to drive the camera assembly to move in the direction perpendicular to the optical axis of the lens group or to rotate around the direction of the optical axis of the lens group based on the drive information sent by the main control chip.

3. The first image stabilization mechanism includes: heating device; a memory alloy strip, wherein the memory alloy strip is connected to the heating device and the image sensor, the heating device is connected to the heating device and the image sensor, the heating device heats the memory alloy strip so that the memory alloy strip is stretched or shortened, driving the image sensor to move in the direction perpendicular to the optical axis of the lens group or to rotate about the direction of the optical axis of the lens group; and a first driving chip, where the first driving chip is electrically connected to the main control chip and the heating device, and the first driving chip is configured to control the input current of the heating device according to the drive information sent by the main control chip, and control the distance by which the memory alloy is stretched or shortened; The camera module of claim 2 , further comprising:

4. The first image stabilization mechanism further comprises: a first position detection device, where the first position detection device is attached to the image sensor and configured to detect position information of the image sensor; having The camera module of claim 3, wherein the main control chip is electrically connected to the first position detection device, and the main control chip is configured to determine whether to send compensation driving information to the first driving chip based on the position information detected by the first position detection device, so that the memory alloy strip drives the image sensor to reach a first preset shake compensation position.

5. The second image stabilization mechanism includes: a voice coil motor, where the voice coil motor includes a magnet and a magnetic element, the magnet attached to one of the housing and the camera assembly, and the magnetic element attached to the other of the housing and the camera assembly and positioned opposite the magnet, and the magnet magnetically engages with the magnetic element to drive the camera assembly to move in the direction perpendicular to the optical axis of the lens group or to rotate about the direction of the optical axis of the lens group; and a second driving chip, where the second driving chip is electrically connected to the magnetic element in the voice coil motor, and the second driving chip is specifically configured to control the input current of the magnetic element in the voice coil motor according to the drive information sent by the main control chip, so as to control the distance that the magnet is attracted or repelled by the magnetic element to move; The camera module according to claim 1 , further comprising:

6. The second image stabilization mechanism further comprises: a second position detection device, where the second position detection device is attached to the camera assembly and configured to detect position information of the camera assembly; having 6. The camera module of claim 5, wherein the main control chip is electrically connected to the second position detection device, and the main control chip is configured to determine whether to send compensation drive information to the second drive chip based on the position information detected by the second position detection device, so that the voice coil motor drives the camera assembly to reach a second preset shake compensation position.

7. The camera module according to claim 1 , wherein the shaking detection device is an inertial sensor.

8. The following control steps: obtaining current shaking information of an electronic device where the camera module is located; searching a mapping model between shaking information, and compensation information of a first image stabilization mechanism and compensation information of a second image stabilization mechanism based on the current shaking information to obtain compensation information of the first image stabilization mechanism and corresponding to the current shaking information and / or compensation information of the second image stabilization mechanism and corresponding to the current shaking information; Calculating drive information of the first image stabilization mechanism based on the compensation information of the first image stabilization mechanism, and driving an image sensor by the first image stabilization mechanism based on the drive information of the first image stabilization mechanism to move in a direction perpendicular to an optical axis of a lens group or rotate around a direction of the optical axis of the lens group; and calculating drive information of the second image stabilization mechanism based on the compensation information of the second image stabilization mechanism, and driving a camera assembly by the second image stabilization mechanism based on the drive information of the second image stabilization mechanism to move in the direction perpendicular to the optical axis of the lens group or rotate around the direction of the optical axis of the lens group. The method for controlling a camera module according to claim 1 , comprising:

9. The step of searching a mapping model between shaking information, and compensation information of a first image stabilization mechanism and compensation information of a second image stabilization mechanism based on the current shaking information to obtain compensation information of the first image stabilization mechanism and corresponding to the current shaking information and / or compensation information of the second image stabilization mechanism and corresponding to the current shaking information includes: when the current shaking information is that the electronic device performs translation and the translation amount is less than or equal to a maximum stroke value of the first image stabilization mechanism, searching the mapping model between shaking information, and compensation information of a first image stabilization mechanism and compensation information of a second image stabilization mechanism to obtain the compensation information of the first image stabilization mechanism; when the current shaking information is that the electronic device performs translation and the translation amount is greater than the maximum stroke value of the first image stabilization mechanism, searching the mapping model between shaking information, and compensation information of a first image stabilization mechanism and compensation information of a second image stabilization mechanism to obtain the compensation information of the first image stabilization mechanism and the compensation information of the second image stabilization mechanism; when the current shaking information is that the electronic device performs a pitch rotation or a yaw rotation and a rotation angle is less than or equal to a maximum stroke angle of the second image stabilization mechanism, searching the mapping model between shaking information and compensation information of a first image stabilization mechanism and compensation information of a second image stabilization mechanism to obtain the compensation information of the second image stabilization mechanism; When the current shaking information is that the electronic device performs a pitch rotation or a yaw rotation and the rotation angle is greater than the maximum stroke angle of the second stabilization mechanism, searching the mapping model between shaking information and the compensation information of a first stabilization mechanism and the compensation information of a second stabilization mechanism to obtain the compensation information of the first stabilization mechanism and the compensation information of the second stabilization mechanism; and and searching the mapping model between the shake information and the compensation information of a first stabilization mechanism and the compensation information of a second stabilization mechanism to obtain the compensation information of the first stabilization mechanism and / or the compensation information of the second stabilization mechanism when the current shake information is that the electronic device is performing a roll rotation. The method for controlling a camera module according to claim 8, specifically comprising:

10. An electronic device comprising a housing and a camera module according to claim 1 , wherein the camera module is attached to the housing.

Citation Information

Patent Citations

  • Camera module and electronic equipment

    CN114513606A

  • Sensor-shifting structure in optical image stabilization suspension

    JP2020515881A