A method for controlling a camera module
By obtaining motion posture information in electronic devices and adjusting the translation and rotation of the lens group, the problem of jitter affecting shooting quality is solved, and an effective anti-shake effect is achieved without increasing the thickness of the entire machine and the length of the flexible circuit board.
Patent Information
- Application Number
- CN202310413406.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-04-07
AI Technical Summary
When electronic equipment shakes during shooting, the optical axis of the lens group shakes, which affects the shooting quality. The existing anti-shake system requires an increase in the height of the camera module and the length of the flexible circuit board, resulting in an increase in overall thickness and noise.
By obtaining the motion posture information of the electronic device, establishing the corresponding relationship between the first and second coordinate systems, and translating and rotating the lens group, the posture of the lens group can be adjusted to avoid increasing the thickness of the entire machine and the length of the flexible circuit board.
It achieves better anti-shake effect and improves shooting quality without increasing the overall thickness of the electronic device and the length of the flexible circuit board.
Smart Images

Figure CN117119303B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a control method of a camera module. Background Art
[0002] Generally, electronic devices are provided with a camera module in order to realize the shooting function.
[0003] Electronic devices may shake when shooting. For example, if the object being photographed is stationary, the position of the photosensitive chip receiving the light signal of the object being photographed will shift due to the shaking of the electronic device. Therefore, different image data will be generated. This will lead to a decrease in the shooting quality of the object being photographed.
[0004] In order to reduce the impact of mobile phone shaking on shooting quality, an anti-shake system can be set in the electronic device. The anti-shake system can compensate for the optical axis shaking caused by shaking when the electronic device is shooting by rotating the lens group and the photosensitive chip in the camera module.
[0005] In this way, when the anti-shake system rotates the lens group and the photosensitive chip to perform anti-shake, the electronic device needs to reserve enough space for the lens group and the photosensitive chip. This will lead to an increase in the height of the camera module and the height of the camera decorative parts. This will lead to an increase in the overall thickness of the electronic device. In addition, if the photosensitive chip rotates at a large angle, the length of the flexible circuit board in the camera module also needs to be lengthened accordingly. If the length of the flexible circuit board is too long, it will lead to problems such as increased voltage drop in its circuit and increased noise. Summary of the invention
[0006] The embodiment of the present application provides a method for controlling a camera module, which can achieve a better anti-shake effect during shooting under the condition that the thickness of the entire electronic device is relatively small and there is no need to increase the length of the flexible circuit board.
[0007] In a first aspect, a method for controlling a camera module is applied to an electronic device, wherein the electronic device is provided with a camera module, wherein the camera module includes at least one lens group, and the method includes: obtaining posture information of the electronic device during movement, wherein the posture information includes the movement direction and acceleration of the electronic device. Obtaining a first corresponding relationship, wherein the first corresponding relationship is determined based on a first coordinate system and a second coordinate system. The first coordinate system is a coordinate system corresponding to the lens group before the electronic device moves, and the second coordinate system is a coordinate system corresponding to the lens group after the electronic device moves. Before and after the electronic device moves, the posture of the lens group is different. When the posture of the lens group is different, the axial direction of the coordinate system corresponding to the lens group is different. According to the first corresponding relationship and the posture information, the lens group in the electronic device is translated.
[0008] In the above scheme, the movement of the electronic device will cause the posture of the lens group to be different. When the posture of the lens group is different, the axial directions of the first coordinate system and the second coordinate system are different. The electronic device determines a first corresponding relationship according to the first coordinate system and the second coordinate system, and the electronic device translates the lens group according to the first corresponding relationship and the posture information. Thus, the electronic device can adjust the posture of the lens group without increasing the thickness of the whole device and the length of the flexible circuit board, and complete the anti-shake processing in the shooting project.
[0009] Optionally, the lens group includes at least one lens. The first coordinate system and the second coordinate system use the center point of the lens as the origin of the corresponding coordinate system, and use the straight lines where the major axis and the minor axis of the lens are located as the corresponding coordinate axes. The first corresponding relationship is the coordinate conversion relationship between the first coordinate system and the second coordinate system. In the above scheme, the lens is used as a reference system to establish the coordinate system origin and the corresponding coordinate axis of the first coordinate system and the second coordinate system. In this way, the posture of the lens before and after the electronic device moves establishes a fixed relationship with the first coordinate system and the second coordinate system, respectively.
[0010] Optionally, the posture information of the electronic device during the movement includes first posture information before the electronic device moves and second posture information after the electronic device moves. The acquisition of the first corresponding relationship includes: determining the angle between corresponding coordinate axes in the first coordinate system and the second coordinate system according to the first posture information and the second posture information. The first corresponding relationship is acquired according to the angle. In the above scheme, the electronic device determines the angle between corresponding coordinate axes in the first coordinate system and the second coordinate system according to the first posture information before the electronic device moves and the second posture information after the electronic device moves. In this way, the electronic device can determine the first corresponding relationship according to the angle.
[0011] Optionally, a first translation component is determined according to the first posture information and the second posture information. The first translation component is a translation component in the first coordinate system. A second translation component is determined according to the first corresponding relationship and the first translation component. The second translation component is a translation component in the second coordinate system. The translation of the lens group in the electronic device includes: translating the lens group according to the second translation component. In the above scheme, the electronic device determines the second translation component in the second coordinate system according to the first movement amount in the first coordinate system. In this way, the electronic device realizes translation of the lens group in the second coordinate system.
[0012] Optionally, before translating the lens group in the electronic device, the method further includes: acquiring the posture information, and rotating the lens group according to the posture information. Before rotating the lens group according to the posture information, the lens group corresponds to the first coordinate system. After rotating the lens group according to the posture information, the lens group corresponds to the second coordinate system. In the above scheme, the electronic device rotates the lens group before translating the lens group. In this way, the posture of the lens group can be preliminarily adjusted, so that when the electronic device translates the lens group, it only needs to translate a smaller stroke to achieve a better anti-shake effect.
[0013] Optionally, the angle between the coordinate axes corresponding to the first coordinate system and the second coordinate system includes a first angle and a second angle. The first angle is the angle between the first axial direction and the third axial direction. The second angle is the angle between the second axial direction and the fourth axial direction. The first axial direction and the second axial direction are two axial directions of the first coordinate system. The third axial direction and the fourth axial direction are two axial directions of the second coordinate system. Before acquiring the first corresponding relationship according to the angle, the method further includes: determining the first mapping component and the second mapping component corresponding to the first unit length according to the first angle. The first unit length is the unit length on the first axial direction, the first mapping component is the component on the third axial direction, and the second mapping component is the component on the fourth axial direction. According to the second angle, determine the third mapping component and the fourth mapping component corresponding to the second unit length. The second unit length is the unit length on the second axial direction, and the third mapping component is the component on the third axial direction. The fourth mapping component is the component on the fourth axial direction.
[0014] In the above solution, the OIS IC determines the first and second mapping components on the second coordinate system according to the first angle, and determines the third and fourth mapping components on the second coordinate system according to the second angle. Thus, the OIS IC can determine the component on the second coordinate corresponding to the unit length on the first coordinate system.
[0015] Optionally, the camera module includes an optical image stabilization OIS module. The OIS module is used to provide translation capability within a plane. The OIS module includes an optical image stabilization integrated circuit OIS IC, and an OIS support unit. The OIS support unit is arranged under the lens group. The first corresponding relationship includes a coordinate conversion relationship in the third axis between the first coordinate system and the second coordinate system, and a coordinate conversion relationship in the fourth axis between the first coordinate system and the second coordinate system. The first corresponding relationship is obtained based on the angle, including: the OIS IC determines the coordinate conversion relationship in the third axis between the first coordinate system and the second coordinate system based on the first mapping component and the third mapping component. The OIS IC determines the coordinate conversion relationship in the fourth axis between the first coordinate system and the second coordinate system based on the second mapping component and the fourth mapping component. In the above scheme, the OIS IC determines the first corresponding relationship based on the component on the second coordinate corresponding to the unit length on the first coordinate system.
[0016] Optionally, the first translation component includes the translation component on the first axis and the translation component on the second axis. The second translation component includes the translation component on the third axis and the translation component on the fourth axis. Determining the second translation component according to the first corresponding relationship and the first translation component includes: the OIS IC determines the translation component on the third axis according to the coordinate transformation relationship between the first coordinate system and the second coordinate system, the translation component on the first axis and the translation component on the second axis. The OIS IC determines the translation component on the fourth axis according to the coordinate transformation relationship between the first coordinate system and the second coordinate system, the translation component on the first axis and the translation component on the second axis. Thus, the OIS IC can determine the second translation component on the second coordinate system according to the first corresponding relationship and the first translation component on the second coordinate system.
[0017] Optionally, translating the lens group according to the second translation component includes: the OIS IC controls the lens group through the OIS support portion, and translates it in the third axis according to the translation component in the third axis. The OIS IC controls the lens group through the OIS support portion, and translates it in the fourth axis according to the translation component in the fourth axis. Thus, the OIS IC realizes the translation of the lens group in the second coordinate system, and then realizes the adjustment of the posture of the lens group.
[0018] Optionally, the OIS module also includes a translation control unit. The translation control unit includes a first translation control subunit and a second translation control subunit. The first translation control subunit is used to provide translation in the third axial direction, and the second translation control subunit is used to provide translation in the fourth axial direction. The first translation control subunit includes a first coil and a first magnet, and the second translation control subunit includes a second coil and a second magnet. The positions of the first magnet and the second magnet are fixed, and the first coil and the second coil are fixedly connected to the OIS support part, respectively. The first coil and the second coil are electrically connected to the OIS IC, respectively.
[0019] Optionally, the translation of the lens group in the electronic device also includes: the OIS IC controls the OIS support part to translate in the first direction on the third axis, or the OIS IC controls the OIS support part to translate in the second direction on the third axis. The first direction is opposite to the second direction. Among them, the OIS IC controls the current direction of the first coil to be the third direction. When the current direction of the first coil is the third direction, the OIS support part translates in the first direction. The OIS IC controls the current direction of the first coil to be the fourth direction. When the current direction of the first coil is the fourth direction, the OIS support part translates in the second direction. In the above scheme, the OIS IC controls the movement of the OIS support part in different directions on the third axis by controlling the current direction of the first coil. Thereby, the translation of the lens group in different directions on the third axis is achieved, and then the posture of the lens group is adjusted.
[0020] Optionally, the translation of the lens group in the electronic device also includes: the OIS IC controls the OIS support part to translate in the fifth direction along the fourth axis, or the OIS IC controls the OIS support part to translate in the sixth direction along the fourth axis. The fifth direction is opposite to the sixth direction. Among them, the OIS IC controls the current direction of the second coil to be the seventh direction. When the current direction of the second coil is the seventh direction, the OIS support part translates in the fifth direction. The OIS IC controls the current direction of the second coil to be the eighth direction. When the current direction of the second coil is the eighth direction, the OIS support part translates in the sixth direction. In the above scheme, the OIS IC controls the movement of the OIS support part in different directions along the fourth axis by controlling the current direction of the second coil. Thereby, the translation of the lens group in different directions along the fourth axis is achieved, thereby achieving the adjustment of the posture of the lens group.
[0021] Optionally, the greater the current intensity on the first coil and the second coil, the greater the translation distance of the OIS support portion. The smaller the current intensity on the first coil and the second coil, the smaller the translation distance of the OIS support portion. In the above scheme, the OIS IC controls the translation distance of the OIS support portion by controlling the current intensity on the first coil and the second coil. In this way, the translation distance of the lens group is controlled, and then the posture of the lens group is adjusted.
[0022] Optionally, the camera module also includes a gimbal rotation module. The gimbal rotation module is used to provide rotation capability within a plane. The gimbal rotation module includes a gimbal integrated circuit IC and a gimbal support unit. The gimbal support unit is arranged under the OIS support unit. The lens group is rotated according to the posture information, including: the gimbal IC determines the rotation parameters of the gimbal support unit according to the posture information. The rotation parameters include a first direction parameter and an angle parameter. The first direction parameter corresponds to the rotation direction of the gimbal support unit. The angle parameter corresponds to the rotation angle of the gimbal support unit. The gimbal IC rotates the lens group through the gimbal support unit according to the rotation parameters. In the above scheme, the gimbal IC determines the rotation parameters of the lens group according to the posture information. As a result, the gimbal IC rotates the lens group according to the rotation parameters to adjust the posture of the lens group.
[0023] Optionally, the gimbal rotation module also includes a rotation control unit. The rotation control unit includes a first rotation control subunit and a second rotation control subunit. The first rotation control subunit is used to provide rotation in the first axial direction, and the second rotation control subunit is used to provide rotation in the second axial direction. Among them, the first rotation control subunit includes a third coil and a third magnet, and the second rotation control subunit includes a fourth coil and a fourth magnet. The positions of the third magnet and the fourth magnet are fixed, and the third coil and the fourth coil are respectively fixedly connected to the gimbal support part. The third coil and the fourth coil are respectively electrically connected to the gimbal IC.
[0024] Optionally, the gimbal IC rotates the lens group through the gimbal support part according to the rotation parameter, including: the gimbal IC controls the gimbal support part to rotate in the ninth direction on the first axis, or the gimbal IC controls the gimbal support part to rotate in the tenth direction on the first axis. The ninth direction is opposite to the tenth direction. Among them, the gimbal IC controls the current direction of the third coil to be the eleventh direction. When the current direction of the third coil is the eleventh direction, the gimbal support part rotates in the ninth direction. The gimbal IC controls the current direction of the third coil to be the twelfth direction. When the current direction of the third coil is the twelfth direction, the gimbal support part rotates in the tenth direction. In the above scheme, the gimbal IC controls the rotation of the gimbal support part in different directions on the first axis by controlling the current direction of the third coil. Thereby, the lens group is rotated in different directions on the first axis, thereby achieving the adjustment of the posture of the lens group.
[0025] Optionally, the gimbal IC rotates the lens group through the gimbal support part according to the rotation parameter, and also includes: the gimbal IC controls the gimbal support part to rotate in the thirteenth direction on the second axis, or the gimbal IC controls the gimbal support part to rotate in the fourteenth direction on the second axis. The thirteenth direction is opposite to the fourteenth direction. Among them, the gimbal IC controls the current direction of the fourth coil to be the fifteenth direction. When the current direction of the fourth coil is the fifteenth direction, the gimbal support part rotates in the thirteenth direction. The gimbal IC controls the current direction of the fourth coil to be the sixteenth direction. When the current direction of the fourth coil is the sixteenth direction, the gimbal support part rotates in the fourteenth direction. In the above scheme, the gimbal IC controls the rotation of the gimbal support part in different directions on the second axis by controlling the current direction of the fourth coil. Thereby, the lens group is rotated in different directions around the second axis, thereby adjusting the posture of the lens group.
[0026] Optionally, the greater the current intensity on the third coil and the fourth coil, the greater the rotation angle of the pan / tilt support portion. The smaller the current intensity on the third coil and the fourth coil, the smaller the rotation angle of the pan / tilt support portion. In the above scheme, the pan / tilt IC controls the rotation angle of the pan / tilt support portion by controlling the current intensity on the third coil and the fourth coil. Thus, the rotation angle of the lens group is controlled, and then the posture of the lens group is adjusted.
[0027] Optionally, the camera module includes a photosensitive chip, and the lens group is rotated according to the posture information, including: the photosensitive chip does not rotate. In the above solution, the electronic device only rotates the lens group. Therefore, the electronic device avoids increasing the thickness of the whole device and the length of the flexible circuit board, and can achieve the adjustment of the posture of the lens group.
[0028] Optionally, the pan-tilt IC and the OIS IC are packaged on two driver chips. Alternatively, the pan-tilt IC and the OIS IC are packaged on one driver chip.
[0029] In a second aspect, an electronic device includes one or more processors, one or more memories, and a camera module. The one or more memories are coupled to the one or more processors, the one or more memories store computer instructions, and the camera module includes at least one lens group. When the one or more processors execute the computer instructions, the electronic device executes the camera module control method provided in any one of the first aspect and its optional designs.
[0030] In a third aspect, a chip system includes a processor and a communication interface. The processor is used to call and run a computer program stored in a storage medium to execute a camera module control method as provided in the first aspect and any one of its optional designs.
[0031] In a fourth aspect, a computer-readable storage medium is provided, which includes computer instructions. When the computer instructions are executed, a control method for a camera module provided in the first aspect and any one of its optional designs is executed.
[0032] In a fifth aspect, a computer program product is provided, wherein the computer program includes instructions. When a computer runs the instructions, a method for controlling a camera module as provided in the first aspect and any one of its optional designs is performed.
[0033] It can be understood that the technical solutions provided in the second to fifth aspects above can respectively correspond to the control methods of the camera modules provided in the aforementioned designs, and the beneficial effects that can be obtained are similar and will not be elaborated on. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a structural schematic diagram of a camera module;
[0035] Figure 2 is a structural schematic diagram of another camera module;
[0036] Figure 3 A schematic diagram of a method for controlling a camera module;
[0037] Figure 4 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of another electronic device provided in an embodiment of the present application;
[0039] Figure 6A schematic diagram of another electronic device provided in an embodiment of the present application;
[0040] Figure 7 A schematic diagram of another electronic device provided in an embodiment of the present application;
[0041] Figure 8 A schematic diagram of a flow chart of a method for controlling a camera module provided in an embodiment of the present application;
[0042] Fig. 9 A flowchart of another camera module control method provided in an embodiment of the present application;
[0043] Fig.10 A schematic diagram of another camera module control method provided in an embodiment of the present application;
[0044] Fig.11 A flowchart of another camera module control method provided in an embodiment of the present application;
[0045] Fig.12 A flowchart of another camera module control method provided in an embodiment of the present application;
[0046] Fig.13 A flowchart of another camera module control method provided in an embodiment of the present application;
[0047] Fig.14 A schematic diagram of another electronic device provided in an embodiment of the present application;
[0048] Fig.15 A schematic diagram of the composition of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0050] Generally speaking, electronic devices are provided with a camera module in order to realize a shooting function.
[0051] Take the mobile phone as an example, Figure 1, a lens group is provided in the camera module, and the lens group may include one or more lenses. When shooting, the lens group in the camera module can collect light from the object being photographed. Through the refraction / reflection of the lens group, these light rays will converge on the image plane of the lens group for imaging, generating a virtual image of the object being photographed. Among them, the image plane of the lens group can be a plane passing through the focus and perpendicular to the optical axis 1. The optical axis 1 is as follows Figure 1 An axis is shown passing through the center of the lens group.
[0052] The camera module is equipped with a photosensitive chip on the image plane of the lens group. The photosensitive chip can sample the light at different positions on the image plane and convert it into electrical signals, which are sent to the processor of the mobile phone. The processor can finally obtain the image data of the photographed object based on the acquired electrical signals.
[0053] It is understandable that when a mobile phone is shooting, it may shake. For example, when a mobile phone is shooting, the mobile phone will move with the shaking of the hand. For example, if the object being photographed is fixed, due to the shaking of the mobile phone, the position of the light signal of the object being photographed on the photosensitive chip will shift. Therefore, different image data will be generated. In this way, the shooting quality of the object being photographed will be reduced.
[0054] For example, refer to Figure 2 When the mobile phone shakes, the optical axis of the lens group moves from optical axis 1 to the position of optical axis 2. Correspondingly, the position of the image plane will also change. In this way, before and after the shake, the light from the photographed object will be received by different positions on the image plane, thereby generating different image data. The image of the photographed object displayed based on the different image data will be distorted, blurred, and other problems, resulting in a decrease in shooting quality.
[0055] In order to reduce the impact of mobile phone shaking on shooting quality, the anti-shake system set in the mobile phone can be used to correct the lens group during shooting to compensate for the optical axis jitter caused by mobile phone shaking when shooting, thereby improving shooting quality.
[0056] As a way of implementation, the anti-shake system can compensate for the optical axis jitter caused by the shaking of the mobile phone when shooting by rotating the lens group and photosensitive chip in the camera module.
[0057] Combination Figure 2 As explained in the description, due to the shaking of the mobile phone, the optical axis of the lens group will move from optical axis 1 to optical axis 2. Then the anti-shake system can control the lens group and the photosensitive chip to rotate, so that the optical axis of the lens group is corrected from optical axis 2 to optical axis 1, presenting a clear image. Figure 3The anti-shake system can obtain the direction and angle of the mobile phone shake detected by the gyroscope, and calculate the anti-shake amount based on the direction and angle of the shake. The anti-shake system can control the lens group and the photosensitive chip to rotate based on the anti-shake amount, and move the optical axis of the lens group from optical axis 2 to optical axis 1, thereby offsetting the optical axis shake caused by the shake of the mobile phone.
[0058] It is understandable that when the anti-shake system performs anti-shake by rotating the lens group and the photosensitive chip, the electronic device needs to reserve enough space for the lens group and the photosensitive chip. This will lead to an increase in the height of the camera module and the height of the camera decorative parts. This will lead to an increase in the overall thickness of the electronic device. In addition, a flexible circuit board is provided in the camera module for transmitting electrical signals on the photosensitive chip. If the photosensitive chip is rotated at a large angle, the length of the flexible circuit board also needs to be lengthened accordingly. Excessive length of the flexible circuit board will lead to problems such as increased voltage drop in its circuit and increased noise.
[0059] The embodiment of the present application provides a control method for a camera module, in which the electronic device rotates the lens group according to the posture information of the electronic device during the movement process to adjust the posture of the lens group during the anti-shake process. The posture information includes the movement direction and angle of the electronic device. When the electronic device rotates the lens group, the photosensitive chip is not rotated. After completing the rotation of the lens group, the electronic device can also perform a translation of the lens group to further adjust the posture of the lens group. As a result, the electronic device only needs to rotate or translate the lens group, and there is no need to increase the overall thickness of the electronic device and the length of the flexible circuit board to achieve anti-shake during shooting.
[0060] The technical solution provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0061] It should be noted that the solution provided in the embodiments of the present application can be applied to electronic devices.
[0062] The electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, etc. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
[0063] As an implementation, the electronic device may have Figure 4The structure of the electronic device 400 is shown.
[0064] like Figure 4 As shown, the electronic device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) connector 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera module 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. The sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.
[0065] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0066] The processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0067] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0068] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 may be a cache memory. The memory may store instructions or data that have been used or are frequently used by the processor 410. If the processor 410 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.
[0069] In some embodiments, the processor 410 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc. The processor 410 may be connected to a touch sensor, an audio module, a wireless communication module, a display, a camera, and other modules through at least one of the above interfaces.
[0070] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0071] The camera module 493 can be used to collect color image data and depth data of the photographed object. The ISP can be used to process the color image data collected by the camera module 493. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera module 493.
[0072] In some embodiments, the camera module 493 may be composed of a color camera module and a 3D sensing module.
[0073] In some embodiments, the photosensitive element of the camera of the color camera module can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In the embodiment of the present application, the photosensitive element can correspond to the photosensitive chip described above.
[0074] The gyroscope sensor 480B can be used to determine the motion posture of the electronic device 400. In some embodiments, the angular velocity of the electronic device 400 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 480B. The gyroscope sensor 480B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 480B detects the angle of the shaking of the electronic device 400, calculates the distance that the lens module needs to compensate based on the angle, controls the reverse movement of the lens to offset the shaking of the electronic device 400, and achieves anti-shake. The gyroscope sensor 480B can also be used for navigation and somatosensory game scenes. In an embodiment of the present application, the gyroscope sensor may be referred to as a gyroscope.
[0075] It should be noted that the above Figure 4 The electronic device components shown are only examples and do not constitute a limitation on the electronic device involved in the technical solution provided in the embodiment of the present application. The embodiment of the present application does not limit the specific components of the electronic device.
[0076] In some other embodiments of the present application, reference Figure 5 , Figure 4 The camera module in the camera may also include a lens group, a photosensitive chip, an optical image stabilization (OIS) module, and a pan / tilt rotation module. The lens group and the photosensitive chip can be used to cooperate with each other to realize the conversion between optical signals and electrical signals. The specific working process during the shooting process can be referred to Figure 1 The OIS module is used to provide translation capability within a plane. The PTZ rotation module is used to provide rotation capability within a plane.
[0077] Continue to refer Figure 5The OIS module may include an OIS integrated circuit (IC), a translation control unit, and an OIS support unit. The OIS support unit is disposed on the translation control unit, and the translation control unit is disposed on the OIS IC. The translation control unit is used by the OIS IC to control the OIS support unit to translate.
[0078] The pan-tilt rotation module may include a pan-tilt IC, a rotation control unit, and a pan-tilt support unit. The pan-tilt support unit is arranged on the rotation control unit, and the rotation control unit is arranged on the pan-tilt IC. The rotation control unit is used for the pan-tilt IC to control the pan-tilt support unit to rotate.
[0079] In other embodiments of the present application, Figure 5 The camera module in the embodiment may also have the following features: Figure 6 The lens group can be arranged on the OIS support part in the OIS module, and the OIS support part can be arranged on the pan / tilt support part in the pan / tilt rotation module.
[0080] In this example, when the OIS IC controls the translation of the OIS support part through the translation control unit, the lens group arranged on the OIS support part will also translate accordingly.
[0081] As an implementation, the translation control unit includes at least two translation control subunits. Figure 6 As shown, the translation control unit may include a first translation control subunit and a second translation control subunit. The first translation control subunit is used by the OIS IC to control the OIS support part to translate along the first sliding track, and the second translation control subunit can be used by the OIS IC to control the OIS support part to translate along the second sliding track. The positions of the first sliding track and the second sliding track can be perpendicular to each other. Among them, the first translation control subunit includes a coil 1 and a magnet 1. The second translation control subunit includes a coil 2 and a magnet 2. Coil 1 and coil 2 are electrically connected to the OIS IC respectively, so that the OIS IC controls the current size and / or direction on coils 1 and / or 2 to achieve the translation of the OIS support part. In some embodiments of the present application, coil 1 can also be referred to as a first coil, coil 2 can also be referred to as a second coil, magnet 1 can also be referred to as a first magnet, and magnet 2 can also be referred to as a second magnet.
[0082] Taking the first translation control subunit as an example, the OIS IC controlling the translation of the OIS support part through the translation control unit is described.
[0083] In some implementations, the position of the magnet 1 is fixed, and the coil 1 is fixedly connected to the OIS support portion. A first sliding track is provided on the OIS support portion, so that when the coil 1 translates, the OIS support portion translates accordingly on the first sliding track.
[0084] In this example, the OIS IC can be used to control the magnitude and / or direction of the current on the coil 1 to achieve control of the translation direction and distance of the OIS support portion.
[0085] Based on the law of electromagnetic induction, the polarity of the side of the coil 1 close to the magnet 1 is the first polarity, and the polarity of the side of the magnet 1 close to the coil 1 is the second polarity. When the first polarity and the second polarity are both S poles or N poles, the coil 1 and the magnet 1 repel each other, thereby causing the OIS support part fixedly connected to the coil 1 to move away from the magnet 1. On the contrary, when the first polarity and the second polarity are different, the coil 1 and the magnet 1 attract each other, thereby causing the OIS support part fixedly connected to the coil 1 to move closer to the magnet 1.
[0086] It can be understood that the greater the current intensity on the coil 1, the stronger the corresponding repulsive force or attractive force. Then the corresponding OIS IC can increase the translation distance of the OIS support part by increasing the current intensity on the coil 1. Conversely, the smaller the current intensity on the coil 1, the weaker the corresponding repulsive force or attractive force. Then the corresponding OIS IC can reduce the translation distance of the OIS support part by reducing the current intensity on the coil 1.
[0087] As an implementation method, the OIS IC can control the current direction of the coil 1 to be direction A1. When the current direction of the coil 1 is direction A1, the OIS support part translates along the first sliding track in direction A2. Direction A1 corresponds to the clockwise direction around the coil 1, and direction A2 corresponds to the direction of the coil 1 away from the magnet 1. The greater the current intensity on the coil 1, the greater the distance the OIS support part translates. In some embodiments of the present application, direction A1 can also be called the third direction, and direction A2 can also be called the first direction.
[0088] As another implementation, the OIS IC can control the current direction of the coil 1 to be in direction B1. When the current direction of the coil 1 is in direction B1, the OIS support portion translates in direction B2 along the first sliding track. Direction B1 corresponds to the counterclockwise direction around the coil 1, and direction B2 corresponds to the direction in which the coil 1 approaches the magnet 1. The greater the current intensity on the coil 1, the greater the translation distance of the OIS support portion. In some embodiments of the present application, direction B1 can also be referred to as the fourth direction, and direction B2 can also be referred to as the second direction.
[0089] Similarly, in some other implementations of the present application, the OIS IC can also control the OIS support part to translate through the second translation control subunit.
[0090] Exemplarily, in the second translation control subunit, the position of the magnet 2 is fixed, the coil 2 and the OIS support part are fixedly connected. A second sliding track is provided on the OIS support part. Thus, when the coil 2 translates, the OIS support part translates accordingly along the second sliding track.
[0091] The working principle between the magnet 2 and the coil 2 is the same as that between the magnet 1 and the coil 1. The specific implementation method can refer to the above description and will not be repeated here.
[0092] As an implementation method, the OIS IC can control the current direction of the coil 2 to be in direction C1. When the current direction of the coil 2 is in direction C1, the OIS support portion translates in direction C2 along the second sliding track. Direction C1 corresponds to the clockwise direction around the coil 2, and direction C2 corresponds to the direction in which the coil 2 is away from the magnet 2. The greater the current intensity on the coil 2, the greater the translation distance of the OIS support portion. In some embodiments of the present application, direction C1 can also be referred to as the seventh direction, and direction C2 can also be referred to as the fifth direction.
[0093] As another implementation, the OIS IC can control the current direction of the coil 2 to be in direction D1. When the current direction of the coil 2 is in direction D1, the OIS support portion translates in direction D2 along the second sliding track. Direction D1 corresponds to the counterclockwise direction around the coil 2, and direction D2 corresponds to the direction in which the coil 2 approaches the magnet 2. The greater the current intensity on the coil 2, the greater the translation distance of the OIS support portion. In some embodiments of the present application, direction D1 can also be referred to as the eighth direction, and direction D2 can also be referred to as the sixth direction.
[0094] In this example, continue to refer to Figure 6 When the gimbal IC controls the rotation of the gimbal support part through the rotation control unit, the OIS support part and the lens group arranged on the gimbal support part will rotate accordingly.
[0095] As an implementation, the rotation control unit includes at least two rotation control subunits. Figure 6As shown, the rotation control unit may include a first rotation control subunit and a second rotation control subunit. The first rotation control subunit is used for the gimbal IC to control the gimbal support part to rotate around the first rotation axis, and the second rotation control subunit can be used for the gimbal IC to control the gimbal support part to rotate around the second rotation axis. The positions of the first rotation axis and the second rotation axis can be perpendicular to each other. Among them, the first rotation control subunit includes a coil 3 and a magnet 3. The second rotation control subunit includes a coil 4 and a magnet 4. Coil 3 and coil 4 are electrically connected to the gimbal IC respectively, so that the gimbal IC controls the current size and / or direction on coil 3 and / or 4 to realize the rotation of the gimbal support part. In some embodiments of the present application, coil 3 can also be called a third coil, coil 4 can also be called a fourth coil, magnet 3 can also be called a third magnet, and magnet 4 can also be called a fourth magnet.
[0096] Taking the first rotation control subunit as an example, the gimbal IC controlling the rotation of the gimbal support part through the rotation control unit is described.
[0097] In some implementations, the position of the magnet 3 is fixed, and the coil 3 is fixedly connected to the gimbal support portion. A first rotation axis is provided on the gimbal support portion, so that when the coil 3 rotates, the gimbal support portion rotates correspondingly around the first rotation axis.
[0098] In this example, the gimbal IC can be used to control the magnitude and / or direction of the current on the coil 3 to achieve control of the rotation direction and angle of the gimbal support part.
[0099] Similar to the mechanism of the OIS module, in this example, based on the law of electromagnetic induction, the polarity of the side of the coil 3 close to the magnet 3 is the third polarity, and the polarity of the side of the magnet 3 close to the coil 3 is the fourth polarity. When the third polarity and the fourth polarity are both S poles or N poles, the coil 3 and the magnet 3 repel each other, thereby causing the gimbal support part fixedly connected to the coil 3 to rotate away from the magnet 3. Conversely, when the third polarity and the fourth polarity are different, the coil 3 and the magnet 3 attract each other, thereby causing the gimbal support part fixedly connected to the coil 3 to rotate close to the magnet 3.
[0100] It can be understood that the greater the current intensity on the coil 3, the stronger the corresponding repulsive force or attractive force. Then the corresponding gimbal IC can increase the rotation angle of the gimbal support part by increasing the current intensity on the coil 3. Conversely, the smaller the current intensity on the coil 3, the weaker the corresponding repulsive force or attractive force. Then the corresponding gimbal IC can reduce the rotation angle of the gimbal support part by reducing the current intensity on the coil 3.
[0101] As an implementation method, the gimbal IC can control the current direction of the coil 3 to be in direction E1. When the current direction of the coil 3 is in direction E1, the gimbal support part rotates around the first rotation axis direction E2. Direction E1 corresponds to the clockwise direction around the coil 3, and direction E2 corresponds to the direction of the coil 3 away from the magnet 3. The greater the current intensity on the coil 3, the greater the angle of rotation of the gimbal support part. In some embodiments of the present application, direction E1 can also be called the eleventh direction, and direction E2 can also be called the ninth direction.
[0102] As another implementation method, the gimbal IC can control the current direction of the coil 3 to be in the direction F1. When the current direction of the coil 3 is in the direction F1, the gimbal support part rotates around the first rotation axis direction F2. Direction F1 corresponds to the counterclockwise direction around the coil 3, and direction F2 corresponds to the direction in which the coil 3 is close to the magnet 3. The greater the current intensity on the coil 3, the greater the angle of rotation of the gimbal support part. In some embodiments of the present application, direction F1 can also be called the twelfth direction, and direction F2 can also be called the tenth direction.
[0103] Similarly, in some other implementations of the present application, the gimbal IC can also control the rotation of the gimbal support part through the second rotation control subunit.
[0104] Exemplarily, in the second rotation control subunit, the position of the magnet 4 is fixed, and the coil 4 is fixedly connected to the gimbal support portion. A second rotation axis is provided on the gimbal support portion. Thus, when the coil 4 rotates, the gimbal support portion rotates correspondingly around the second rotation axis.
[0105] The working principle between the magnet 4 and the coil 4 is the same as that between the magnet 3 and the coil 3. The specific implementation method can refer to the above description and will not be repeated here.
[0106] As an implementation method, the gimbal IC can control the current direction of the coil 4 to be in the direction G1. When the current direction of the coil 4 is in the direction G1, the gimbal support part rotates around the second rotation axis direction G2. Direction G1 corresponds to the clockwise direction around the coil 4, and direction G2 corresponds to the direction of the coil 4 away from the magnet 4. The greater the current intensity on the coil 4, the greater the angle of rotation of the gimbal support part. In some embodiments of the present application, direction G1 can also be called the fifteenth direction, and direction G2 can also be called the thirteenth direction.
[0107] As another implementation method, the gimbal IC can control the current direction of the coil 4 to be in the direction H1. When the current direction of the coil 4 is in the direction H1, the gimbal support part rotates around the second rotation axis direction H2. Direction H1 corresponds to the counterclockwise direction around the coil 4, and direction H2 corresponds to the direction in which the coil 4 is close to the magnet 4. The greater the current intensity on the coil 4, the greater the angle of rotation of the gimbal support part. In some embodiments of the present application, direction H1 can also be called the sixteenth direction, and direction H2 can also be called the fourteenth direction.
[0108] It should be noted that, in the embodiment of the present application, the pan-tilt IC and the OIS IC can be packaged on two driver chips. In some other embodiments of the present application, the pan-tilt IC and the OIS IC can be packaged on one driver chip.
[0109] Figures 4 to 6 The electronic device involved in the embodiments of the present application is described from the perspective of hardware composition.
[0110] From the perspective of software composition, the electronic device involved in the embodiments of the present application may run an operating system, which may be Or other operating systems. The operating system can have a layered architecture. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces.
[0111] For example, an electronic device is running Take operating system as an example. Figure 7 The schematic diagram of the composition of an electronic device is shown. As a possible implementation, the electronic device may be a mobile phone.
[0112] like Figure 7 As shown, the electronic device An operating system may have a layered architecture. From top to bottom, they are the application layer, the application framework layer, the Android runtime (ART) and system libraries, the hardware abstraction layer (HAL), and the kernel layer.
[0113] The application layer can include a series of application packages.
[0114] like Figure 7 As shown, the application layer may include applications such as music, video, call, ringtone, alarm, Bluetooth, navigation, video, gallery, camera, etc.
[0115] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0116] like Figure 7 As shown, the application framework layer may include a window manager, an activity manager, an input manager, a resource manager, a notification manager, a view system, and the like.
[0117] The window manager provides window management services (WMS). WMS can be used for window management, window animation management, surface management, and as a transfer station for the input system.
[0118] The activity manager can provide activity management services (AMS), which can be used to start, switch, and schedule system components (such as activities, services, content providers, and broadcast receivers) as well as manage and schedule application processes.
[0119] The input manager can provide input management services (IMS), which can be used to manage system input, such as touch screen input, key input, sensor input, etc. IMS takes events from input device nodes and distributes them to appropriate windows through interaction with WMS.
[0120] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0121] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0122] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0123] The Android runtime includes the core library and the Android runtime. The Android runtime is responsible for converting source code into machine code. The Android runtime mainly uses the ahead of time (AOT) compilation technology and the just in time (JIT) compilation technology.
[0124] The core library is mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks, etc. The core library provides an API for users to develop Android applications.
[0125] The system library can include multiple functional modules, such as surface manager, media library, media framework, and OpenGL ES.
[0126] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media framework supports playback and recording of multiple common audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. OpenGL ES provides drawing and operation of 2D and 3D graphics in applications.
[0127] The hardware abstraction layer runs in user space, encapsulates kernel layer drivers, and provides a calling interface to the upper layer.
[0128] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, audio driver, and camera driver.
[0129] In some embodiments of the present application, Figure 5 or Figure 6 The hardware shown can also be used with Figure 7 The software components shown cooperate with each other to achieve corresponding functions.
[0130] For example, based on Figure 5 and Figure 6 The gimbal rotation module and OIS module shown in the figure, the gimbal IC can control the rotation of the gimbal support part through the camera driver in the core layer. Then the posture of the lens group can be adjusted. Similarly, the OIS IC can control the translation of the OIS support part through the camera driver in the core layer. Then the posture of the lens group can be adjusted to achieve the anti-shake effect.
[0131] The following is an example of an electronic device being set up as follows Figure 5 and Figure 6Taking the camera module shown in the figure as an example, the technical solution provided in the embodiment of the present application is explained.
[0132] The present application provides a method for controlling a camera module. Figure 8 The electronic device can rotate or translate the lens group through the following process. Without increasing the overall thickness of the electronic device and the length of the flexible circuit board, anti-shake processing can be achieved during shooting.
[0133] like Figure 8 As shown, the program may include:
[0134] S801, the electronic equipment controls the pan / tilt support part to rotate.
[0135] It is understandable that during the shooting process, the object being shot may be in motion. The electronic device can adjust the posture of the lens group so that the image of the object being shot remains at a fixed position on the display screen of the electronic device, that is, the lens group tracks the object being shot.
[0136] Combination Figure 6 As an example, in some embodiments of the present application, the electronic device can control the rotation of the gimbal support part through the gimbal rotation module to achieve the purpose of rotating the lens group, that is, adjusting the posture of the lens group.
[0137] Exemplarily, the electronic device can control the rotation of the gimbal support part through the gimbal IC in the gimbal rotation module, thereby adjusting the posture of the lens group.
[0138] As an implementation method, the electronic device can be Fig. 9 The method shown is used to adjust the posture of the lens group.
[0139] like Fig. 9 As shown, the method includes:
[0140] S901. The gyroscope of the electronic device collects attitude information and sends the attitude information to the gimbal IC.
[0141] In some embodiments of the present application, the posture information is used to indicate the movement direction and acceleration of the electronic device. The posture information may include first posture information before the electronic device moves and second posture information after the electronic device moves.
[0142] It is understandable that the movement of the electron may be caused by the user holding the electronic device or by the shaking of the user's hand. During the movement of the electronic device, the gyroscope provided therein may move synchronously and collect the posture information during the movement.
[0143] In this example, the gyroscope can send the attitude information to the gimbal IC for processing.
[0144] It should be noted that the gyroscope can be arranged in an electronic device. For example, the gyroscope can be Figure 4 The gyroscope sensor 480B shown. In some other embodiments of the present application, the gyroscope may also be a gyroscope disposed in a camera module.
[0145] S902: The gimbal IC obtains attitude information, and determines the rotation parameters of the gimbal support part according to the attitude information.
[0146] In some embodiments of the present application, the rotation parameter may include a first direction parameter and an angle parameter. The first direction parameter may correspond to the rotation direction required by the gimbal support, such as clockwise or counterclockwise. The angle parameter may correspond to the rotation angle required by the gimbal support.
[0147] S903, the gimbal IC controls the gimbal support part to rotate according to the rotation parameters.
[0148] Exemplary, combined Figure 6 According to the description, controlling the pan-tilt support part to rotate includes controlling the pan-tilt support part to rotate around a first rotation axis and controlling the pan-tilt support part to rotate around a second rotation axis.
[0149] As a way to achieve this, combining Figure 6 The gimbal IC can control the rotation of the gimbal support part by controlling the current size and / or direction of coils 3 and 4 on the gimbal IC. This allows the lens group on the gimbal support part to rotate to the corresponding position, thereby tracking the object being photographed. Figure 6 The instructions in the article are not repeated here.
[0150] Through the operations from S901 to S903, the electronic device controls the pan / tilt support part to rotate through the pan / tilt IC, so that the lens group on the pan / tilt support part rotates, thereby achieving a preliminary adjustment of the lens group posture, and then the lens group can track the photographed object. In other embodiments of the present application, the electronic device can also optimize the optical axis jitter by further adjusting the lens group posture to obtain higher shooting quality.
[0151] For example, after completing S901 to S903, the electronic device may continue to control the OIS support part to translate, so as to further adjust the posture of the lens group.
[0152] S802: The electronic device controls the OIS support part to translate.
[0153] Combination Figure 6As an example, in some embodiments of the present application, the OIS module in the electronic device can achieve the purpose of translating the lens group, that is, further adjusting the posture of the lens group, by controlling the translation of the OIS support part.
[0154] For example, the electronic device can control the OIS support part to translate through the OIS IC in the OIS module, thereby further adjusting the posture of the lens group.
[0155] It is understandable that in Fig. 9 In the illustrated example, the gimbal IC controls the rotation of the gimbal support part according to the first posture information before the electronic device moves and the second posture information after the electronic device moves, thereby realizing the rotation of the OIS support part and the lens group mounted on the gimbal support part.
[0156] In some embodiments of the present application, the coordinate system corresponding to the lens group before the electronic device moves may be referred to as the first coordinate system, and the coordinate system corresponding to the lens group after the electronic device moves may be referred to as the second coordinate system.
[0157] For example, taking the lens in the lens group as an example, refer to Fig.10 Before the electronic device moves, the center point of the lens is the origin of the first coordinate system, the straight line where the long axis of the lens is located is the u-axis of the first coordinate system, and the straight line where the short axis of the lens is located is the v-axis of the first coordinate system. The u-axis and the v-axis are perpendicular to each other. Similarly, after the electronic device moves, the center point of the lens is the origin of the second coordinate system, and the straight lines where the long axis and the short axis of the lens are located are the x-axis and y-axis of the second coordinate system, respectively. The x-axis and the y-axis are perpendicular to each other. In other embodiments of the present application, the u-axis can also be called the first axis, the v-axis can also be called the second axis, the x-axis can also be called the third axis, and the y-axis can also be called the fourth axis.
[0158] It should be noted that the above examples are used to illustrate the coordinate system corresponding to the lens group by taking the lenses in the lens group as an example. In a specific embodiment, the coordinate system corresponding to the lens group is not limited to the description in the above examples. In addition, the above examples are used to illustrate the coordinate system corresponding to the lens group by taking a two-dimensional plane as an example. In a specific embodiment, the coordinate system corresponding to the lens group may be a coordinate system in a three-dimensional space.
[0159] Based on the above description, the posture of the lens group is different before and after the electronic device moves. Figure 1 The directions of the optical axes shown are different. At this time, the positional relationship between the first coordinate system and the second coordinate system is no longer mutually coincident, but there is an angular offset.
[0160] For example, continue to refer to Fig.10As shown, taking the direction indicated by the u-axis on the first coordinate system as the horizontal direction and the direction indicated by the v-axis on the first coordinate system as the vertical direction as an example, after the electronic device completes the operation of S903, the angle between the first coordinate system and the second coordinate system in the horizontal direction is α, and the angle between the first coordinate system and the second coordinate system in the vertical direction is β. In some embodiments of the present application, the angle between the first coordinate system and the second coordinate system in the horizontal direction is also referred to as the first angle, and the angle between the first coordinate system and the second coordinate system in the vertical direction is also referred to as the second angle.
[0161] In this case, the component of the optical axis jitter in the second coordinate system is different from that in the first coordinate system. Figure 3 The control method shown will result in a poor anti-shake effect.
[0162] Therefore, in the embodiment of the present application, before the OIS module performs anti-shake processing based on the posture information collected by the gyroscope, it is also necessary to determine the mapping relationship between the unit length in the first coordinate system and the second coordinate system, so that the subsequent OIS module can determine the translation amount of the lens group in the second coordinate system based on the mapping relationship and the translation amount in the first coordinate system, thereby completing the optimization of the optical axis jitter.
[0163] Exemplary, reference Fig.11 The OIS module can determine the mapping relationship between the unit length in the first coordinate system and the second coordinate system according to the following process. Fig.11 As shown, the program may include:
[0164] S1101. The gimbal rotation module sends the rotation parameters of the gimbal support unit to the OIS module.
[0165] As an example, the gimbal IC in the gimbal rotation module may send the rotation parameters of the gimbal support part in S903 to the OIS IC in the OIS module.
[0166] For example, combined with Figure 6 According to the description, after the electronic device performs the operation of S903, the angle of rotation of the gimbal support part is (a, b). Among them, angle a corresponds to the angle of rotation of the gimbal support part around the first rotation axis, and angle b corresponds to the angle of rotation of the gimbal support part around the second rotation axis. The gimbal IC can send the angle (a, b) of rotation of the gimbal support part to the OIS IC.
[0167] According to the rotation parameters of the gimbal support, the OIS IC may further proceed to S1102 to determine the angle between the first coordinate system and the second coordinate system.
[0168] S1102. The OIS IC determines the angle between the corresponding coordinate axes of the first coordinate system and the second coordinate system according to the rotation parameters of the gimbal support.
[0169] For example, refer to Fig.10 Taking the direction indicated by the u-axis on the first coordinate system as the horizontal direction and the direction indicated by the v-axis on the first coordinate system as the vertical direction as an example, the OIS IC can determine that the angles α and β between the first coordinate system and the second coordinate system in the horizontal and vertical directions are respectively based on the rotation angle (a, b) of the gimbal support part.
[0170] S1103: The OIS IC determines a component of a unit length in the first coordinate system in the second coordinate system according to an angle between corresponding coordinate axes in the first coordinate system and the second coordinate system.
[0171] In some embodiments of the present application, the unit length in the first coordinate system may include unit lengths in at least two directions in the first coordinate system, and the component of the unit length in the first coordinate system in the second coordinate system may include components in at least two directions in the second coordinate system.
[0172] Exemplary, reference Fig.10 , the angles between the first coordinate system and the second coordinate system in the horizontal and vertical directions are α and β respectively. Then, the unit length A1 on the u-axis of the first coordinate system is projected onto the second coordinate system, and the first mapping component of the unit length A1 on the x-axis of the second coordinate system is A1*cosα, and the second mapping component of the unit length A1 on the y-axis of the second coordinate system is A1*s inα. In some embodiments of the present application, the unit length A1 may also be referred to as the first unit length.
[0173] Similarly, by projecting the unit length A2 on the v-axis of the first coordinate system onto the second coordinate system, it can be obtained that the third mapping component of the unit length A2 on the x-axis of the second coordinate system is A2*s inβ, and the fourth mapping component of the unit length A2 on the y-axis of the second coordinate system is A2*cosβ. In some embodiments of the present application, the unit length A2 can also be referred to as the second unit length.
[0174] It is understandable that in Fig.11 In the description, a two-dimensional plane is used as an example. In the specific implementation process, the mapping component of the unit length in the first coordinate system on the second coordinate system can also be calculated in the three-dimensional space, thereby obtaining richer data to determine the translation amount of the lens group by the OIS IC when performing anti-shake processing.
[0175] Through S1101 to S1103, the OIS IC can determine the mapping components of the unit length in the first coordinate system projected on each axis of the second coordinate system. The mapping components can be used to indicate the mapping relationship between the unit length in the first coordinate system and the second coordinate system.
[0176] In some embodiments of the present application, based on the mapping relationship between the unit length in the first coordinate system and the second coordinate system, and the posture information, the OIS IC can determine the translation amount of the lens group by the OIS IC in the second coordinate system, thereby further adjusting the posture of the lens group and performing anti-shake processing.
[0177] Exemplary, reference Fig.12 The electronic device can control the OIS support part to move horizontally through the following process to adjust the posture of the lens group and then perform anti-shake processing:
[0178] S1201, the electronic equipment controls the pan / tilt support part to rotate.
[0179] Exemplarily, the electronic device can control the rotation of the gimbal support part through the gimbal IC in the gimbal rotation module, thereby achieving preliminary adjustment of the posture of the lens group.
[0180] For the specific implementation of this example, please refer to Fig. 9 The instructions in the article are not repeated here.
[0181] 1202. The gyroscope of the electronic device collects attitude information and sends the attitude information to the OIS IC.
[0182] In some embodiments of the present application, the posture information is used to indicate the movement direction and acceleration of the electronic device. The posture information may include first posture information before the electronic device moves and second posture information after the electronic device moves.
[0183] It is understandable that the movement of the electron may be caused by the user holding the electronic device or by the shaking of the user's hand. During the movement of the electronic device, the gyroscope provided therein may move synchronously and collect the posture information during the movement.
[0184] In this example, the gyroscope may send the attitude information to the OIS IC for processing.
[0185] S1203: The OIS IC determines an OIS transformation matrix.
[0186] In some embodiments of the present application, the OIS IC may determine the OIS transformation matrix according to the mapping relationship from the unit length in the first coordinate system to the second coordinate system. The mapping relationship may be obtained through S1101 to S1103. In some embodiments of the present application, the OIS transformation matrix may also be referred to as the first corresponding relationship.
[0187] For example, refer to Fig.11According to the description, the OIS transformation matrix may include a first OIS transformation matrix and a second OIS transformation matrix. Among them, the first OIS transformation matrix corresponds to the mapping relationship of the unit length in the first coordinate system to the third axis of the second coordinate system, and the second OIS transformation matrix corresponds to the mapping relationship of the unit length in the first coordinate system to the fourth axis of the second coordinate system. In some embodiments of the present application, the first OIS transformation matrix can also be referred to as the correspondence between the third axis of the first coordinate system and the second coordinate system, and the second OIS transformation matrix can also be referred to as the correspondence between the fourth axis of the first coordinate system and the second coordinate system.
[0188] Then, the OIS IC may determine a first OIS transformation matrix according to the first mapping component and the third mapping component. The OIS IC may also determine a second OIS transformation matrix according to the second mapping component and the fourth mapping component.
[0189] S1204: The OIS IC determines the translation parameters of the OIS support part according to the posture information and the OIS transformation matrix.
[0190] In an embodiment of the present application, the translation parameter may include a second direction parameter and a distance parameter. The second direction parameter may correspond to the translation direction required by the OIS support portion, such as a horizontal direction or a vertical direction. The distance parameter may correspond to the translation distance required by the OIS support portion.
[0191] Exemplarily, the OIS IC determines the translation component B1 in the first coordinate system according to the posture information. According to the translation component B1 in the first coordinate system and the OIS transformation matrix, the OIS IC determines the translation component B2 in the second coordinate system. Then, the translation parameters of the OIS support portion are determined. In some embodiments of the present application, the translation component B1 may also be referred to as the first translation component, and the translation component B2 may also be referred to as the second translation component.
[0192] For example, the translation component B1 may include: a translation component C1 and a translation component C2, wherein the translation component C1 is a translation component in the u-axis direction of the first coordinate system, and the translation component C2 is a translation component in the v-axis direction of the first coordinate system.
[0193] The OIS IC may determine the translation component D1 according to the translation component C1, the translation component C2, and the first OIS transformation matrix, wherein the translation component D1 is the translation component in the x-axis direction of the second coordinate system.
[0194] The OIS IC may determine the translation component D2 according to the translation component C1, the translation component C2, and the second OIS transformation matrix, wherein the translation component D2 is the translation component in the y-axis direction of the second coordinate system.
[0195] The translation component D1 and the translation component D2 are distance parameters of the OIS support portion, and the directions corresponding to the translation component D1 and the translation component D2 are second direction parameters of the OIS support portion.
[0196] S1205. The OIS IC controls the OIS support part to translate according to the translation parameters.
[0197] For example, the OIS IC may control the OIS support part to translate along the x-axis of the second coordinate system according to the translation component D1. The OIS IC may also control the OIS support part to translate along the y-axis of the second coordinate system according to the translation component D2.
[0198] In some implementations, combined with Figure 6 According to the description, controlling the OIS support part to translate in the x-axis direction of the second coordinate system includes controlling the OIS support part to translate in the x-axis direction of the second coordinate system along the first sliding track. Controlling the OIS support part to translate in the y-axis direction of the second coordinate system includes controlling the OIS support part to translate in the y-axis direction of the second coordinate system along the second sliding track.
[0199] As a way to achieve this, combining Figure 6 The gimbal IC can control the current size and / or direction of coil 1 and coil 2 on the OIS IC to control the OIS support part to translate according to the translation parameters, so that the lens group mounted on the OIS support part translates to the corresponding position to achieve anti-shake processing. For the specific implementation method of this example, please refer to Figure 6 The instructions in the article are not repeated here.
[0200] Through the operations from S1201 to S1205, the electronic device controls the OIS support part to translate through the OIS IC, thereby further adjusting the posture of the lens group, and thus completing the anti-shake processing. The anti-shake processing can process the components of the optical axis jitter generated in each axis of the OIS module, and the anti-shake effect is better.
[0201] In other embodiments of the present application, reference Fig.13 The electronic device also provides a method for controlling a camera module.
[0202] like Fig.13 As shown, the program includes:
[0203] S1301. The gyroscope of the electronic device collects attitude information and sends the attitude information to the gimbal IC.
[0204] S1302: The gimbal IC obtains attitude information and determines the rotation parameters of the gimbal support part.
[0205] S1303, the gimbal IC controls the gimbal support part to rotate.
[0206] S1304. The gimbal rotation module sends the rotation parameters of the gimbal support unit to the OIS module.
[0207] S1305 . The OIS IC determines the angle between corresponding coordinate axes of the first coordinate system and the second coordinate system.
[0208] S1306. The OIS IC determines the component of the unit length in the first coordinate system in the second coordinate system.
[0209] S1307: The gyroscope of the electronic device collects attitude information and sends the attitude information to the OIS IC.
[0210] S1308: The OIS IC determines an OIS transformation matrix.
[0211] S1309. The OIS IC determines the translation parameters of the OIS support portion.
[0212] S1310. The OIS IC controls the OIS support unit to translate.
[0213] The specific contents of S1301 to S1303 can be found in Fig. 9 For details of S1304 to S1306, please refer to Fig.11 For details of S1307 to S1310, please refer to Fig.12 The specific embodiments can be referenced to each other and will not be described in detail here.
[0214] In an embodiment of the present application, the electronic device can Fig.13 The gimbal IC controls the rotation of the gimbal support to achieve preliminary adjustment of the lens group's posture. In the case of an angular offset between the first coordinate system and the second coordinate system, the OIS IC can process the component of the optical axis jitter in the second coordinate system. The electronic device controls the translation of the OIS support through the OIS IC to achieve further adjustment of the lens group's posture, thereby optimizing the optical axis jitter. The rotation of the photosensitive chip is avoided, and a better anti-shake effect can be achieved while minimizing the thickness of the electronic device.
[0215] It is understandable that all the above examples are described by taking the pan / tilt rotation module and the OIS module as examples. In other embodiments of the present application, the functional module for controlling the rotation of the lens group in the electronic device is not limited to the pan / tilt rotation module. The functional module for controlling the translation of the lens group in the electronic device is not limited to the OIS module.
[0216] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of each functional module. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0217] The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0218] Please refer to Fig.14 , is a schematic diagram of the composition of another electronic device provided in an embodiment of the present application. The electronic device may be the electronic device involved in the above embodiment. Fig.14 As shown, the electronic device 1400 may include: a processor 1401 and a memory 1402. The memory 1402 is used to store computer-executable instructions. Exemplarily, in some embodiments, when the processor 1401 executes the instructions stored in the memory 1402, the electronic device 1400 may execute any one of the technical solutions shown in the first device involved in the above embodiments.
[0219] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0220] Fig.15 A schematic diagram of the composition of a chip system 1500 is shown. The chip system 1500 may include: a processor 1501 and a communication interface 1502, which are used to support related devices (such as electronic devices) to implement the functions involved in the above embodiments. In one example, the chip system also includes a memory for storing program instructions and data necessary for the terminal. The chip system may be composed of chips, or may include chips and other discrete devices. It should be noted that in some implementations of the present application, the communication interface 1502 may also be referred to as an interface circuit.
[0221] In some embodiments of the present application, the chip system can perform the following steps: Fig. 9 The processing steps of the PTZ IC shown in , or perform the following Fig.11 and Fig.12 The processing steps of the OIS IC shown in FIG. 9 may be performed, Fig.11 and Fig.12 The processing steps of the PTZ IC and OIS IC are shown.
[0222] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0223] The functions or actions or operations or steps in the above embodiments can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more servers that can be integrated with a medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0224] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for controlling a camera module, characterized in that: The method is applied to an electronic device, wherein the electronic device is provided with a camera module, wherein the camera module includes a lens group, an optical image stabilization OIS module and a pan / tilt rotation module; the OIS module is used to provide a translation capability within a plane, wherein the OIS module includes an optical image stabilization integrated circuit OIS IC and an OIS support portion, wherein the OIS support portion is arranged under the lens group; the pan / tilt rotation module is used to provide a rotation capability within a plane, wherein the pan / tilt rotation module includes a pan / tilt integrated circuit IC and a pan / tilt support portion, wherein the pan / tilt support portion is arranged under the OIS support portion; The method comprises: Acquiring posture information of the electronic device during movement, wherein the posture information includes a movement direction and acceleration of the electronic device; rotating the lens group according to the posture information; Acquire the rotation angle of the lens group, and translate the lens group in the electronic device according to the rotation angle of the lens group and the posture information; Wherein, rotating the lens group according to the posture information includes: The gimbal integrated circuit IC determines the rotation parameters of the gimbal support part according to the posture information; the rotation parameters include a first direction parameter and an angle parameter, the first direction parameter corresponds to the rotation direction of the gimbal support part, and the angle parameter corresponds to the rotation angle of the gimbal support part; the gimbal integrated circuit IC rotates the lens group through the gimbal support part according to the rotation parameters; Wherein, the step of translating the lens group in the electronic device according to the rotation angle of the lens group and the posture information comprises: The OIS IC determines the translation parameters of the OIS support part according to the rotation parameters and the posture information; the translation parameters include a second direction parameter and a distance parameter, the second direction parameter corresponds to the translation direction of the OIS support part, and the distance parameter corresponds to the translation distance of the OIS support part; the OIS IC controls the OIS support part to translate according to the translation parameters.
2. The method according to claim 1, characterized in that Before translating the lens group in the electronic device, the method further includes: According to the rotation angle of the lens group, a first corresponding relationship is obtained; the first corresponding relationship is a coordinate conversion relationship between a first coordinate system and a second coordinate system; wherein the first coordinate system is a coordinate system corresponding to the lens group before the lens group rotates, and the second coordinate system is a coordinate system corresponding to the lens group after the lens group rotates; the axial directions of the coordinate axes corresponding to the first coordinate system and the second coordinate system are different; The step of translating the lens group in the electronic device comprises: According to the first corresponding relationship and the posture information, a lens group in the electronic device is translated.
3. The method according to claim 2, characterized in that The lens group includes at least one lens; the first coordinate system and the second coordinate system use the center point of the lens as the origin of the corresponding coordinate system, and use the straight lines where the major axis and minor axis of the lens are located as the corresponding coordinate axes.
4. The method according to claim 2 or 3, characterized in that: The obtaining of the first corresponding relationship according to the rotation angle of the lens group includes: According to the rotation angle of the lens group, the angle between the corresponding coordinate axes in the first coordinate system and the second coordinate system is determined; and according to the angle, the first corresponding relationship is acquired.
5. The method according to claim 4, characterized in that The posture information of the electronic device during the movement process includes first posture information before the electronic device moves and second posture information after the electronic device moves; the method further includes: Determine a first translation component according to the first posture information and the second posture information; the first translation component is a translation component in the first coordinate system; Determine a second translation component according to the first corresponding relationship and the first translation component; the second translation component is a translation component in the second coordinate system; The step of translating a lens group in the electronic device according to the first corresponding relationship and the posture information includes: The lens group is translated according to the second translation component.
6. The method according to claim 5, characterized in that The first axial direction and the second axial direction are two axial directions of the first coordinate system; the third axial direction and the fourth axial direction are two axial directions of the second coordinate system; the angles between the corresponding coordinate axes of the first coordinate system and the second coordinate system include a first angle and a second angle; the first angle is the angle between the first axial direction and the third axial direction; the second angle is the angle between the second axial direction and the fourth axial direction; Before acquiring the first corresponding relationship according to the angle, the method further includes: Determine, according to the first angle, a first mapping component and a second mapping component corresponding to a first unit length; wherein the first unit length is a unit length in the first axial direction, the first mapping component is a component in the third axial direction, and the second mapping component is a component in the fourth axial direction; According to the second angle, a third mapping component and a fourth mapping component corresponding to the second unit length are determined; wherein the second unit length is the unit length on the second axis, the third mapping component is the component on the third axis, and the fourth mapping component is the component on the fourth axis.
7. The method according to claim 6, characterized in that The first corresponding relationship includes a coordinate conversion relationship in the third axis direction between the first coordinate system and the second coordinate system, and a coordinate conversion relationship in the fourth axis direction between the first coordinate system and the second coordinate system; The acquiring the first corresponding relationship according to the angle includes: The OIS IC determines, according to the first mapping component and the third mapping component, a coordinate transformation relationship between the first coordinate system and the second coordinate system along the third axis; The OIS IC determines a coordinate conversion relationship between the first coordinate system and the second coordinate system in the fourth axial direction according to the second mapping component and the fourth mapping component.
8. The method according to claim 7, characterized in that The first translation component includes a translation component in the first axial direction and a translation component in the second axial direction; the second translation component includes a translation component in the third axial direction and a translation component in the fourth axial direction; The determining the second translation component according to the first corresponding relationship and the first translation component includes: The OIS IC determines the translation component in the third axial direction according to the coordinate transformation relationship in the third axial direction between the first coordinate system and the second coordinate system, the translation component in the first axial direction and the translation component in the second axial direction; The OIS IC determines the translation component in the fourth axial direction according to the coordinate conversion relationship in the fourth axial direction between the first coordinate system and the second coordinate system, the translation component in the first axial direction and the translation component in the second axial direction.
9. The method according to claim 8, characterized in that The step of translating the lens group in the electronic device further comprises: The OIS IC controls the lens group through the OIS support portion to perform translation in the third axis according to the translation component in the third axis; The OIS IC controls the lens group through the OIS support portion, and translates along the fourth axis according to the translation component along the fourth axis.
10. The method according to any one of claims 6 to 9, characterized in that: The OIS module further includes a translation control unit; the translation control unit includes a first translation control subunit and a second translation control subunit; the first translation control subunit is used to provide translation in the third axial direction, and the second translation control subunit is used to provide translation in the fourth axial direction; Among them, the first translation control subunit includes a first coil and a first magnet, and the second translation control subunit includes a second coil and a second magnet; the positions of the first magnet and the second magnet are fixed, and the first coil and the second coil are respectively fixedly connected to the OIS support part; the first coil and the second coil are respectively electrically connected to the OISIC.
11. The method according to claim 10, characterized in that The step of translating the lens group in the electronic device further comprises: The OIS IC controls the OIS support portion to translate in a first direction along the third axis, or the OIS IC controls the OIS support portion to translate in a second direction along the third axis; the first direction is opposite to the second direction; The OIS IC controls the current direction of the first coil to be in the third direction; when the current direction of the first coil is in the third direction, the OIS support portion translates toward the first direction; The OIS IC controls the current direction of the first coil to be in a fourth direction; when the current direction of the first coil is in the fourth direction, the OIS support portion translates toward the second direction.
12. The method according to claim 10, characterized in that The step of translating the lens group in the electronic device further comprises: The OIS IC controls the OIS support portion to translate in a fifth direction along the fourth axis, or the OIS IC controls the OIS support portion to translate in a sixth direction along the fourth axis; the fifth direction is opposite to the sixth direction; The OIS IC controls the current direction of the second coil to be in the seventh direction; when the current direction of the second coil is in the seventh direction, the OIS support portion translates toward the fifth direction; The OIS IC controls the current direction of the second coil to be in an eighth direction; when the current direction of the second coil is in the eighth direction, the OIS support portion translates toward the sixth direction.
13. The method according to claim 11 or 12, characterized in that: The greater the current intensity on the first coil and the second coil, the greater the translation distance of the OIS support portion; the smaller the current intensity on the first coil and the second coil, the smaller the translation distance of the OIS support portion.
14. The method according to claim 13, characterized in that The pan / tilt rotation module further includes a rotation control unit; the rotation control unit includes a first rotation control subunit and a second rotation control subunit; the first rotation control subunit is used to provide rotation in the first axial direction, and the second rotation control subunit is used to provide rotation in the second axial direction; Among them, the first rotation control subunit includes a third coil and a third magnet, and the second rotation control subunit includes a fourth coil and a fourth magnet; the positions of the third magnet and the fourth magnet are fixed, and the third coil and the fourth coil are respectively fixedly connected to the gimbal support part; the third coil and the fourth coil are respectively electrically connected to the gimbal IC.
15. The method according to claim 14, characterized in that The pan / tilt integrated circuit IC rotates the lens group through the pan / tilt support part according to the rotation parameter, including: The gimbal integrated circuit IC controls the gimbal support part to rotate in a ninth direction along the first axis, or the gimbal integrated circuit IC controls the gimbal support part to rotate in a tenth direction along the first axis; the ninth direction is opposite to the tenth direction; Wherein, the gimbal integrated circuit IC controls the current direction of the third coil to be the eleventh direction; when the current direction of the third coil is the eleventh direction, the gimbal support part rotates toward the ninth direction; The gimbal integrated circuit IC controls the current direction of the third coil to be the twelfth direction; when the current direction of the third coil is the twelfth direction, the gimbal support part rotates toward the tenth direction.
16. The method according to claim 14 or 15, characterized in that The pan-tilt integrated circuit IC rotates the lens group through the pan-tilt support part according to the rotation parameter, and further includes: The gimbal integrated circuit IC controls the gimbal support part to rotate in a thirteenth direction along the second axis, or the gimbal integrated circuit IC controls the gimbal support part to rotate in a fourteenth direction along the second axis; the thirteenth direction is opposite to the fourteenth direction; Wherein, the gimbal integrated circuit IC controls the current direction of the fourth coil to be the fifteenth direction; when the current direction of the fourth coil is the fifteenth direction, the gimbal support part rotates toward the thirteenth direction; The gimbal integrated circuit IC controls the current direction of the fourth coil to be the sixteenth direction; when the current direction of the fourth coil is the sixteenth direction, the gimbal support part rotates to the fourteenth direction.
17. The method according to claim 16, characterized in that The greater the current intensity on the third coil and the fourth coil, the greater the rotation angle of the gimbal support portion; the smaller the current intensity on the third coil and the fourth coil, the smaller the rotation angle of the gimbal support portion.
18. The method according to claim 1, characterized in that The camera module includes a photosensitive chip, and the step of rotating the lens group according to the posture information includes: The photosensitive chip does not rotate.
19. The method according to any one of claims 7 to 9, characterized in that: The pan-tilt integrated circuit IC and the OIS IC are packaged on two driving chips; or, the pan-tilt integrated circuit IC and the OIS IC are packaged on one driving chip.
20. An electronic device, characterized in that: The electronic device includes one or more processors, one or more memories, and a camera module; the one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions; When the one or more processors execute the computer instructions, the electronic device is caused to perform the method as described in any one of claims 1-19.
21. A chip system, characterized in that: The chip system includes a processor and a communication interface; the processor is used to call and run a computer program stored in a storage medium from the storage medium to execute the method as described in any one of claims 1-19.
