Electronic device, control method of electronic device, and storage medium
By migrating the servo control module and optical image stabilization algorithm module to the processor, the problem of image blurring caused by shaking during electronic device shooting is solved, achieving more efficient image stabilization and reducing the cost and size of the driver chip.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2022-10-20
- Publication Date
- 2026-04-10
AI Technical Summary
In the existing technology, the images are blurry due to shaking during the shooting process of electronic devices, and optical image stabilization technology increases the cost and space occupied by the driver chip.
By moving the servo control module and optical image stabilization algorithm module from the driver chip to the processor, the processor calculates the target position and parameters of the camera module, and the driver chip controls the camera module to move to the target position, simplifying the internal circuitry of the driver chip and reducing costs.
It improves the image stabilization effect of the camera module, reduces the cost and space occupied by the driver chip, and improves the quality of the captured images.
Smart Images

Figure CN115696048B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electronics, and in particular to an electronic device, a control method of the electronic device, and a storage medium. BACKGROUND
[0002] With the development of portable electronic devices such as smart phones and tablet computers, electronic devices have become an indispensable tool in people's daily life, and people can use electronic devices to realize social and entertainment functions. The shooting function of the electronic device has become an increasingly demanded function, and the requirement for shooting quality is also increasingly high. However, in the process of using the electronic device for shooting, there is a problem that the image shot is blurred and unclear due to the shaking of the electronic device. SUMMARY
[0003] The embodiments of the present application provide an electronic device, a control method of the electronic device, and a storage medium, which can realize the anti-shake function of the camera module and improve the image quality of shooting.
[0004] In a first aspect, the embodiments of the present application provide an electronic device, comprising:
[0005] a camera module comprising a driving chip, the driving chip being configured to detect a current position of the camera module;
[0006] a detection device configured to detect motion data of the camera module; and
[0007] a processor electrically connected to the driving chip and the detection device, respectively, the processor comprising a servo control module, and the processor is configured to:
[0008] obtain the motion data of the camera module and the current position of the camera module, and calculate a target position of the camera module according to the motion data;
[0009] calculate a target parameter of the camera module according to the target position and the current position through the servo control module;
[0010] transmit the target parameter to the driving chip, so that the driving chip controls the camera module to move from the current position to the target position through the target parameter.
[0011] In a second aspect, the embodiments of the present application provide another electronic device, comprising:
[0012] A camera module includes a lens, an image sensor, at least one first driving chip and at least one second driving chip, the lens is electrically connected with the at least one first driving chip, the at least one first driving chip is used for detecting a first current position of the lens, the image sensor is electrically connected with the at least one second driving chip, and the at least one second driving chip is used for detecting a second current position of the image sensor;
[0013] a detection device used for detecting first motion data of the lens and second motion data of the image sensor; and
[0014] a processor electrically connected with the at least one first driving chip, the at least one second driving chip and the detection device respectively, the processor is used for:
[0015] obtaining the first motion data and the second motion data;
[0016] calculating a first target position of the lens according to the first motion data, so as to control the lens to move from the first current position to the first target position; and
[0017] calculating a second target position of the image sensor according to the second motion data, so as to control the image sensor to move from the second current position to the second target position.
[0018] In a third aspect, an embodiment of the present application provides a control method of an electronic device, the electronic device including a servo control module and a camera module, the camera module including a driving chip, and the method including:
[0019] obtaining motion data of the camera module and a current position of the camera module, and calculating a target position of the camera module according to the motion data;
[0020] calculating a target parameter of the camera module according to the target position and the current position through the servo control module;
[0021] transmitting the target parameter to the driving chip, so that the driving chip controls the camera module to move from the current position to the target position through the target parameter.
[0022] In a fourth aspect, an embodiment of the present application provides another control method of an electronic device, the electronic device including a camera module, the camera module including a lens and an image sensor, and the method including:
[0023] obtaining first motion data of the lens and second motion data of the image sensor;
[0024] calculate a first target position of the lens according to the first motion data, to control the lens to move from the first current position to the first target position; and
[0025] calculate a second target position of the image sensor according to the second motion data, to control the image sensor to move from the second current position to the second target position.
[0026] In a fifth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program. When the computer program is run on a computer, the computer is caused to perform the control method of the electronic device according to any one of the above.
[0027] The electronic device provided by the embodiment of the present application comprises: a camera module, which comprises a driving chip, the driving chip being configured to detect a current position of the camera module; a detection device, which is configured to detect motion data of the camera module; and a processor, which comprises a servo control module, the processor being configured to acquire the motion data of the camera module and the current position of the camera module, and calculate a target position of the camera module according to the motion data; calculate a target parameter of the camera module according to the target position and the current position through the servo control module; and transmit the target parameter to the driving chip, so that the driving chip controls the camera module to move from the current position to the target position through the target parameter, thereby realizing the anti-shake function of the camera module and improving the image quality of the photographing. In addition, the calculation process of the servo control module is migrated from the driving chip of the camera module to the processor, so that the internal driving circuit of the driving chip can be simplified and the size of the driving chip can be reduced accordingly, thereby reducing the cost. BRIEF DESCRIPTION OF DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.
[0029] Figure 1 is a structural schematic diagram of an electronic device in the related art.
[0030] Figure 2 is a first structural schematic diagram of an electronic device provided by an embodiment of the present application.
[0031] Figure 3 is a second structural schematic diagram of an electronic device provided by an embodiment of the present application.
[0032] Figure 4 is a third structural schematic diagram of an electronic device provided by an embodiment of the present application.
[0033] Figure 5 FIG. 4 is a fourth structural schematic diagram of an electronic device provided by an embodiment of the present application.
[0034] Figure 6 FIG. 5 is a fifth structural schematic diagram of an electronic device provided by an embodiment of the present application.
[0035] Figure 7 FIG. 6 is a first structural schematic diagram of another electronic device provided by an embodiment of the present application.
[0036] Figure 8 FIG. 7 is a second structural schematic diagram of another electronic device provided by an embodiment of the present application.
[0037] Figure 9 FIG. 8 is a flow schematic diagram of a control method of an electronic device provided by an embodiment of the present application.
[0038] Figure 10 FIG. 9 is a flow schematic diagram of a control method of another electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0039] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person skilled in the art without creative labor fall within the protection scope of the present application.
[0040] It should be noted that the shaking of the electronic device will drive the shaking of the camera module, thereby causing the blurred and unclear image. In the related art, the problem can be solved by the optical anti-shake technology. Specifically, the anti-shake function of the camera module can be realized by adjusting the lens or the image sensor, and of course the lens and the image sensor can be adjusted at the same time to improve the anti-shake effect of the camera module.
[0041] In the related art, an example of realizing the anti-shake function of the camera module by adjusting the lens is described with reference to FIG. 1. Figure 1 Figure 1 is a structural schematic diagram of an electronic device in the related art. The electronic device 2 includes a camera module 210 and a detection apparatus 220. The camera module 210 includes a lens 211, a driving chip 212, a driving mechanism 213, and a Hall sensor 214. The lens 211 is connected to the driving mechanism 213, and the driving mechanism 213 can drive the lens 211 to move to adjust a position offset of the lens 211 caused by shaking. The driving chip 212 is electrically connected to the driving mechanism 213 to send a control instruction for driving the lens 211 to move to the driving mechanism 213. The Hall sensor 214 is electrically connected to the driving chip 212, and the Hall sensor 214 is configured to detect a current position of the lens 211 and send the current position to the driving chip 212. The detection apparatus 220 is configured to detect motion data (i.e., shaking data) of the lens 211.
[0042] The driving chip 212 includes a servo control module 2121 and an optical image stabilization algorithm module 2122. After the driving chip 212 obtains the motion data of the lens 211 detected by the detection apparatus 220, the driving chip 212 calculates a target position of the lens 211 by using the optical image stabilization algorithm module 2122. The target position is a position of the lens 211 when the camera module 210 captures a clear image. The driving chip 212 obtains the current position of the lens 211 detected by the Hall sensor 214, and calculates a target parameter of the lens 211 by using the servo control module 2121 according to the current position and the target position of the lens 211. The driving chip 212 transmits the target parameter to the driving mechanism 213, so that the driving mechanism 213 drives the lens 211 to move from the current position to the target position, thereby realizing the anti-shake function of the camera module 210.
[0043] It should be noted that, in the related art, the servo control module 2121 and the optical image stabilization algorithm module 2122 are integrated in the driving chip 212, that is, the calculation steps of the anti-shake function of the camera module 210 are completed by the driving chip 212. Therefore, the driving circuit in the driving chip 212 is relatively complex, and a chip with a certain calculation capability is required, thereby increasing the cost of the driving chip 212. In addition, the Hall sensor 214 is arranged in the camera module 210 as a separate device, which occupies the internal space of the camera module 210 and increases the cost.
[0044] It should be further noted that, the above only takes the example of realizing the anti-shake function of the camera module through the lens. If the camera module can realize the anti-shake function through the lens and the image sensor at the same time, the cost will be further increased.
[0045] To solve the problems in the related art, the embodiments of the present application provide an electronic device, a control method of the electronic device, and a storage medium, which can realize the anti-shake function of the camera module, improve the image quality of the shooting, and reduce the cost.
[0046] Optionally, the embodiment of the present application provides an electronic device, please refer to Figure 2 and Figure 3 Figure 2 is a first structural schematic diagram of the electronic device provided by the embodiment of the present application, Figure 3 is a second structural schematic diagram of the electronic device provided by the embodiment of the present application. The electronic device 1 can include a camera module 10, a detection device 20 and a processor 30, wherein the camera module 10 can include a driving chip 110, a lens 120, an image sensor 130 and a driving mechanism 140.
[0047] In order to better understand the electronic device of the embodiment, the following takes the electronic device 1 as a mobile phone as an example, please refer to Figure 1 The electronic device 1 can also include a shell 40, a display screen 50, a battery 60 and a mainboard 70. The camera module 10, the detection device 20 and the processor 30 can be installed in the shell 40.
[0048] The shell 40 can include a middle frame 41 and a back cover 42, and the display screen 50 can be covered on one side of the middle frame 41, and the back cover 42 is arranged on the other side of the middle frame 41. For example, the display screen 50 and the back cover 42 can be covered on the two sides of the middle frame 41 arranged in opposite directions by means of bonding, welding and clamping. The camera module 10 can be arranged between the display screen 50 and the back cover 42 and can receive light from the external environment.
[0049] The back cover 42 can be a battery cover of the electronic device 1, and the material thereof can be glass, metal, hard plastic and the like, or other electrochromic materials. Among them, the back cover 42 has a certain structural strength and is mainly used for protecting the electronic device 1. Correspondingly, the material of the middle frame 41 can also be glass, metal and hard plastic. Among them, the middle frame 41 also has a certain structural strength and is mainly used for supporting and fixing the camera module 10 and other functional devices installed between the middle frame 41 and the back cover 42, such as the battery 60, the mainboard 70 and the antenna of the electronic device 1. Further, since the middle frame 41 and the back cover 42 are generally directly exposed to the external environment, the middle frame 41 and the back cover 42 can preferably have a material with certain wear resistance, corrosion resistance and scratch resistance, or a layer of functional material for wear resistance, corrosion resistance and scratch resistance is coated on the outer surface of the middle frame 41 and the back cover 42 (that is, the outer surface of the electronic device 1).
[0050] The display screen 50 can include a display module and a circuit for touch operation of the display module. The display screen 50 can use an organic light-emitting diode (OLED) screen for image display, or can use a liquid crystal display (LCD) screen for image display. The display screen 50 can be a flat screen, a double-curved screen, or a four-curved screen, which is not limited here.
[0051] It should be noted that, for a mobile phone, the flat screen refers to that the display screen 50 is arranged in a flat shape as a whole; the double-curved screen refers to that the left and right edge regions of the display screen 50 are arranged in a curved shape, and other regions are still arranged in a flat shape, which not only reduces the black border of the display screen 50 and increases the visual area of the display screen 50, but also increases the appearance aesthetics and holding feeling of the electronic device 1; the four-curved screen refers to that the upper, lower, left and right edge regions of the display screen 50 are arranged in a curved shape, and other regions are still arranged in a flat shape, which not only further reduces the black border of the display screen 50 and increases the visual area of the display screen 50, but also further increases the appearance aesthetics and holding feeling of the electronic device 1.
[0052] The mainboard 70 can be arranged in the shell 40, and the mainboard 70 can be a main control circuit board of the electronic device 1. The detection device 20 and the processor 30 can be integrated on the mainboard 70, and in addition, the mainboard 70 can also integrate functional components such as a earphone interface and a motor. The processor 30 integrated on the mainboard 70 can control the camera module 10 and the display screen 50.
[0053] The battery 60 can be arranged in the shell 40, and the battery 60 can be electrically connected to the mainboard 70 to supply power to the electronic device 1. The mainboard 70 can be provided with a battery management circuit for distributing the voltage provided by the battery 60 to each electronic device in the electronic device 1.
[0054] The electronic device 1 can further include a driving member connected with the camera module 10, for driving the camera module 10 to move between the shell 40 and outside the shell 40. The camera module 10 can be a pop-up camera module, when the electronic device 1 needs to use the camera module 10, the driving member moves the camera module 10 from the shell 40 of the electronic device 1 to outside the shell 40, at this time the camera module 10 can be normally used; when the electronic device 1 does not need to use the camera module 10, the driving member moves the camera module 10 from outside the shell 40 of the electronic device 1 to the shell 40, at this time the camera module 10 enters a standby state or a closed state.
[0055] It is understood that the above is only an exemplary example of electronic device 1. Electronic device 1 in the embodiments of this application may also include components such as sensors, sound-to-electric conversion devices, and antenna modules. These components can be referred to in the description of related technologies, and will not be repeated here.
[0056] It should be noted that the electronic device 1 provided in this application embodiment can be a mobile terminal device such as a mobile phone or tablet computer, or a device with a camera module such as a game device, augmented reality (AR) device, virtual reality (VR) device, in-vehicle computer, laptop computer, data storage device, audio playback device, video playback device, wearable device, or monitoring device. Wearable devices can be smartwatches, smart glasses, etc.
[0057] Optionally, the camera module 10 can be used to realize functions such as taking pictures, recording videos, unlocking with facial recognition, or scanning QR codes for payment on the electronic device 1. Furthermore, it should be noted that the camera module 10 can be a front-facing camera or a rear-facing camera, or the camera module 10 can include both a front-facing camera and a rear-facing camera; this embodiment does not impose specific limitations.
[0058] Please continue reading. Figure 3 The lens 120 in the camera module 10 can be made of glass or plastic, etc. The lens 120 may contain multiple layers of lenses. The lens 120 can collect ambient light, change the light propagation path, and focus the light. The camera module 10 may also include a filter assembly, which is positioned between the lens 120 and the image sensor 130 along the optical axis of the lens 120. The filter assembly may include one or more filters and a filter holder supporting the filters. The multiple filters mutually correct and filter the light, so that when light passes through the lens 120, the multiple filters filter stray light (such as infrared light) layer by layer, thereby improving the imaging effect of the camera module 10. For example, the filter can be blue glass or other filter structures. The blue glass can be fixed to the filter holder by methods such as dispensing and baking.
[0059] Image sensor 130 is disposed opposite to lens 120 along the optical axis of lens 120, and lens 120 may be parallel to image sensor 130. Image sensor 130 may be, but is not limited to, charge-coupled device (CCD) or complementary metal-oxide-semiconductor (CMOS) type image sensor. Image sensor 130 is mainly used to receive light collected from lens 120 and convert the light signal into an electrical signal to meet the imaging requirements of camera module 10.
[0060] The driving chip 110 in the camera module 10 can be used to detect the current position of the camera module 10. The detection device 20 can be used to detect the motion data of the camera module 10. The processor 30 can be electrically connected with the driving chip 110 and the detection device 20 respectively. The processor 30 can include a servo control module. The processor 30 can be used to obtain the motion data of the camera module 10 and the current position of the camera module 10, and calculate the target position of the camera module 10 according to the motion data. According to the target position and the current position, the target parameter of the camera module 10 is calculated through the servo control module. The target parameter is transmitted to the driving chip 110, so that the driving chip 110 controls the camera module 10 to move from the current position to the target position through the target parameter. The target position of the camera module 10 can be calculated according to the motion data through the optical anti-shake algorithm module, that is, the processor 30 includes the optical anti-shake algorithm module.
[0061] It should be noted that the electronic device 1 provided in the embodiment is different from the electronic device 2 in the related art in that the servo control module and the optical anti-shake algorithm module in the driving chip 212 in the related art are migrated to the processor 30. The driving chip in the camera module does not need too much calculation function, thereby reducing the occupied space of the internal driving circuit of the driving chip and reducing the cost of the driving chip.
[0062] Specifically, taking the example of realizing the anti-shake function of the camera module 10 by adjusting the lens 120, please refer to Figure 4 , Figure 4 is a third structural schematic diagram of an electronic device provided in the embodiment. The electronic device 1 can include a camera module 10, a detection device 20 and a processor 30. The camera module 10 can include a driving chip 110, a lens 120 and a first driving mechanism 141. The processor 30 can include an optical anti-shake algorithm module 31 and a servo control module 32.
[0063] The driving chip 110 can include at least one first driving chip 111. The lens 120 is electrically connected with the at least one first driving chip 111. The at least one first driving chip 111 can be used to detect the first current position of the lens 120. Since the shaking of the lens 120 will produce displacement along the plane where the lens 120 is located, the actual position of the lens 120 will produce displacement amount of X axis and / or Y axis, each first driving chip 111 can detect the displacement amount of one axis direction of the lens 120 through a first Hall detection module 1111. The actual position of the lens 120 relative to the target position can be determined by detecting the displacement amount of each axis direction of the lens 120, so as to determine the first current position of the lens 120.
[0064] Therefore, the at least one first driving chip 111 can include two first driving chips 111, and each first driving chip 111 can include one first Hall detection module 1111. Specifically, the two first driving chips 111 can include two first Hall detection modules 1111, one of which can detect the displacement amount of the lens 120 along the X-axis direction, and the other of which can detect the displacement amount of the lens 120 along the Y-axis direction, so as to determine the first current position of the lens 120 through the displacement amount along the X-axis direction and the displacement amount along the Y-axis direction, that is, the first driving chip 111 can detect the first current position of the lens 120 through the first Hall detection module 1111.
[0065] It should be noted that the first Hall detection module 1111 as a kind of magnetic field detection module can detect the first current position of the lens 120, the output signal of the first Hall detection module 1111 is first amplified by an operational amplifier, then processed by a digital-to-analog converter (DAC) and / or an analog-to-digital converter (ADC), and finally transmitted to the processor 30 through a wire, specifically the signal carrying the first target position can be transmitted to the servo control module 32 of the processor 30. Wherein, the wire can be an Inter-Integrated Circuit (I2C).
[0066] The detection device 20 can detect the first motion data of the lens 120, which can be the first offset data of the first current position of the lens 120 relative to the target position of the lens 120. Wherein, the detection device 20 can be an Inertial Measurement Unit (IMU), specifically, the detection device 20 can be an acceleration sensor to detect the linear acceleration of the lens 120. The detection device 20 can be electrically connected with the processor 30, such as the detection device 20 can be electrically connected with the processor 30 through a Serial Peripheral Interface (SPI), wherein the SPI has 4 pins. The detection device 20 can transmit the detected first motion data of the lens 120 to the processor 30 through the SPI.
[0067] The processor 30 can calculate the first target position of the lens 120 through the optical anti-shake algorithm module 31 arranged in the processor 30 after obtaining the first motion data of the lens 120 detected by the detection device 20, and transmit the first target position to the servo control module 32. Therefore, the servo control module 32 includes the first target position and the first current position of the lens 120, and the servo control module 32 can calculate the first target parameter of the lens 120, wherein the first target parameter can include a first voltage parameter and / or a first current parameter, and the first target parameter corresponds to the parameter for moving the lens 120 from the first current position to the first target position. The servo control module 32 can use a PID algorithm, and the PID algorithm includes Proportional (proportion), Integral (integral), and Differential (derivative). After obtaining the first target parameter, the processor 30 can transmit the first target parameter to at least one first driving chip 111 through I2C, such as two first driving chips 111 corresponding to the lens 120.
[0068] The driving mechanism 140 is electrically connected with the driving chip 110, and the driving mechanism 140 can receive the control instruction of the driving chip 110 to drive the camera module 10 to move. Specifically, the driving mechanism 140 can include a first driving mechanism 141, and the first driving mechanism 141 is electrically connected with at least one first driving chip 111, such as two first driving chips 111 corresponding to the lens 120. The first driving mechanism 141 is electrically connected with the two first driving chips 111 respectively, and the first driving mechanism 141 is used to drive the lens 120 to move.
[0069] After obtaining the first target parameter transmitted by the processor 30, at least one first driving chip 111 can send a control instruction to the first driving mechanism 141 according to the first target parameter, so that the first driving mechanism 141 drives the lens 120 to move. Specifically, one of the first driving chips 111 can send a control instruction to the first driving mechanism 141 according to the first target parameter, so that the lens 120 moves along the X-axis direction, and the other first driving chip 111 can send a control instruction to the first driving mechanism 141 according to the first target parameter, so that the lens 120 moves along the Y-axis direction. Therefore, at least one first driving chip 111 can control the first driving mechanism 141 to drive the lens 120 to move from the first current position to the first target position through the first target parameter. The first driving mechanism 141 can have driving members for driving the lens 120 to move along the X-axis direction and the Y-axis direction at the same time, or the first driving mechanism 141 includes two first driving sub-mechanisms, and the two first driving sub-mechanisms can drive the lens 120 to move along the X-axis direction and the Y-axis direction respectively. The structure of the first driving mechanism 141 is not limited here.
[0070] It should be noted that the electronic device in the related art for realizing the anti-shake function of the camera module by adjusting the lens includes a detection device and a camera module, the camera module includes a lens, a driving chip, a Hall sensor and a driving mechanism, the driving chip includes an optical anti-shake algorithm module and a servo control module; and the electronic device 1 for realizing the anti-shake function of the camera module 10 by adjusting the lens 120 provided in the embodiment includes the camera module 10, the detection device 20 and the processor 30, the camera module 10 includes the driving chip 110, the lens 120 and the driving mechanism 140, the driving chip 110 includes the first Hall detection module 1111, and the processor 30 includes the optical anti-shake algorithm module 31 and the servo control module 32.
[0071] It can be known by comparison that the electronic device 1 provided in the embodiment migrates the optical anti-shake algorithm module and the servo control module in the driving chip of the camera module in the related art to the processor 30, so that the internal circuit occupation space of the driving chip 110 can be reduced, and the computing function of the driving chip 110 can be reduced, thereby reducing the cost of the driving chip and improving the anti-shake effect of the camera module 10 and the image quality of the camera module 10. Moreover, the Hall sensor is integrated in the driving chip 110 in a modular manner, so that the internal space of the camera module 10 can be reduced, thereby making the size of the camera module 10 smaller and further reducing the cost.
[0072] Correspondingly, for an example of realizing the anti-shake function of the camera module 10 by adjusting the image sensor 130, please refer to Figure 5 , Figure 5 is a fourth structural schematic diagram of the electronic device provided in the embodiment. The electronic device 1 can include the camera module 10, the detection device 20 and the processor 30. The camera module 10 can include the driving chip 110, the image sensor 130 and the second driving mechanism 142, and the processor 30 can include the optical anti-shake algorithm module 31 and the servo control module 32.
[0073] The driving chip 110 can include at least one second driving chip 112, and the image sensor 130 is electrically connected with the at least one second driving chip 112. The at least one second driving chip 112 can be used to detect a second current position of the image sensor 130. Since the shaking of the image sensor 130 can cause displacement along the plane where the image sensor 130 is located and flipping along the plane where the image sensor 130 is located, a coordinate system is established with the image sensor 130 as the origin, the actual position of the image sensor 130 can cause displacement amount of the X-axis and / or the Y-axis and / or displacement amount of the Z-axis. Each second driving chip 112 can detect the displacement amount of the image sensor 130 along one axis through a second Hall detection module 1121. By detecting the displacement amount of the image sensor 130 along each axis, the offset amount of the actual position of the image sensor 130 relative to the target position can be determined, so as to determine the second current position of the image sensor 130.
[0074] Therefore, the at least one second driving chip 112 can include three second driving chips 112, and each second driving chip 112 can include one second Hall detection module 1121. Specifically, the three second driving chips 112 can include three second Hall detection modules 1121. One second Hall detection module 1121 can detect the displacement amount of the image sensor 130 along the X-axis direction, one second Hall detection module 1121 can detect the displacement amount of the image sensor 130 along the Y-axis direction, and the other second Hall detection module 1121 can detect the displacement amount of the image sensor 130 along the Z-axis direction, so as to determine the second current position of the image sensor 130 through the displacement amount along the X-axis direction, the displacement amount along the Y-axis direction and the displacement amount along the Z-axis direction. That is, the second driving chip 112 can detect the second current position of the image sensor 130 through the second Hall detection module 1121.
[0075] It should be noted that the second Hall detection module 1121 can transmit a signal carrying the second target position to the servo control module 32 of the processor 30.
[0076] The detection device 20 can detect second motion data of the image sensor 130. The second motion data can be second offset data of the second current position of the image sensor 130 relative to the target position of the image sensor 130. The detection device 20 can include an acceleration sensor and a gyroscope to detect the linear acceleration, angular velocity and / or angular acceleration of the image sensor 130. The detection device 20 can transmit the detected second motion data of the image sensor 130 to the processor 30 through SPI.
[0077] The processor 30 can calculate the second target position of the image sensor 130 through the optical anti-shake algorithm module 31 arranged in the processor 30 after obtaining the second motion data of the image sensor 130 detected by the detection device 20, and transmit the second target position to the servo control module 32. Therefore, the servo control module 32 includes the second target position and the second current position of the image sensor 130, and the servo control module 32 can calculate the second target parameter of the image sensor 130, wherein the second target parameter can include a second voltage parameter and / or a second current parameter. After obtaining the second target parameter, the processor 30 can transmit the second target parameter to at least one second driving chip 112 through I2C, such as three second driving chips 112 corresponding to the image sensor.
[0078] The driving mechanism 140 can further include a second driving mechanism 142, and the second driving mechanism 142 is electrically connected with at least one second driving chip, such as three second driving chips 112 corresponding to the image sensor 130, and the second driving mechanism 142 is electrically connected with the three second driving chips 112 respectively, and the second driving mechanism 142 is used to drive the image sensor 130 to move.
[0079] After obtaining the second target parameter transmitted by the processor 30, at least one second driving chip 112 can send a control instruction to the second driving mechanism 142 according to the second target parameter, so that the second driving mechanism 142 drives the image sensor 130 to move. Specifically, one of the second driving chips 112 can send a control instruction to the second driving mechanism 142 according to the second target parameter, so that the image sensor 130 moves along the X-axis direction, one of the second driving chips 112 can send a control instruction to the second driving mechanism 142 according to the second target parameter, so that the image sensor 130 moves along the Y-axis direction, and another second driving chip 112 can send a control instruction to the second driving mechanism 142 according to the second target parameter, so that the image sensor 130 moves along the Z-axis direction, so that at least one second driving chip 112 can control the second driving mechanism 142 to drive the image sensor 130 to move from the second current position to the second target position through the second target parameter. Wherein, the second driving mechanism 142 can have a driving member for driving the image sensor 130 to move along the X-axis direction, the Y-axis direction and the Z-axis direction at the same time, or the second driving mechanism 142 includes three second driving sub-mechanisms, and the three second driving sub-mechanisms can drive the image sensor 130 to move along the X-axis direction, the Y-axis direction and the Z-axis direction respectively, and the structure of the second driving mechanism 142 is not limited here.
[0080] It should be noted that the electronic device for realizing the anti-shake function of the camera module by adjusting the image sensor in the related art includes a detection device and a camera module, the camera module includes an image sensor, a driving chip, a Hall sensor and a driving mechanism, the driving chip includes an optical anti-shake algorithm module and a servo control module, wherein the driving chip receives data detected by the three Hall sensors at the same time; and the electronic device 1 for realizing the anti-shake function of the camera module 10 by adjusting the image sensor 130 provided in the embodiment includes a camera module 10, a detection device 20 and a processor 30, the camera module 10 includes a driving chip 110, an image sensor 130 and a driving mechanism 140, the driving chip 110 includes a second Hall detection module 1121, and the processor 30 includes an optical anti-shake algorithm module 31 and a servo control module 32, each second driving chip 112 includes a second Hall detection module 1121.
[0081] It can be known by comparison that the electronic device 1 provided in the embodiment migrates the optical anti-shake algorithm module and the servo control module in the driving chip of the camera module in the related art to the processor 30, so that the internal circuit occupation space of the driving chip 110 can be reduced, and the computing function of the driving chip 110 can be reduced, in addition, the data detected by the three Hall sensors through one driving chip in the related art is changed to the data detected by the three second Hall detection modules 1112 through the three second driving chips 112, wherein the cost of one total chip is higher than the cost of the three second driving chips 112, so that the cost of the driving chip is reduced, and the anti-shake effect of the camera module 10 is improved, and the image quality of the camera module 10 is improved. And the Hall sensor is integrated in the driving chip 110 in a modular manner, so that the internal space of the camera module 10 can be reduced, so that the size of the camera module 10 can be set smaller, and the cost is further reduced.
[0082] It can be understood that the above anti-shake function of the camera module 10 is realized by adjusting the lens 120 or the image sensor 130, of course, the anti-shake function of the camera module 10 can also be realized by adjusting the lens 120 and the image sensor 130 at the same time. Please refer to Figure 6 , Figure 6 is the fifth structure schematic diagram of the electronic device provided in the embodiment. The electronic device 1 includes a camera module 10, a detection device 20 and a processor 30. Wherein, the camera module 10 can include a driving chip 110, a lens 120, an image sensor 130 and a driving mechanism 140, the driving chip 110 can include at least one first driving chip 111 and at least one second driving chip 112, each first driving chip 111 includes a first Hall detection module 1111, each second driving chip 112 includes a second Hall detection module 1121, and the processor can include an optical anti-shake algorithm module 31 and a servo control module 32.
[0083] Wherein, the camera module 10, the detection device 20, the processor 30, the driving chip 110, the lens 120, the image sensor 130, and the driving mechanism 140 can refer to the descriptions of the camera module 10, the detection device 20, the processor 30, the driving chip 110, the lens 120, the image sensor 130, and the driving mechanism 140 shown in the above Figure 4 Or Figure 5 The descriptions of the camera module 10, the detection device 20, the processor 30, the driving chip 110, the lens 120, the image sensor 130, and the driving mechanism 140 shown in the above will not be repeated here.
[0084] It should be noted that if the electronic device 1 only realizes the anti-shake function of the camera module 10 by adjusting the lens 120 or the image sensor 130, such as only adjusting the lens 120, the part corresponding to the image sensor in the camera module can be related technology, or the optical anti-shake algorithm module in the second driving chip corresponding to the image sensor part in related technology is migrated to the processor, while the servo control module of the second driving chip is retained, or the optical anti-shake algorithm module in the second driving chip corresponding to the image sensor part in related technology is migrated to the processor, while the servo control module of the second driving chip is retained, and the Hall sensor is replaced by a Hall detection module integrated in the second driving chip. The part corresponding to the image sensor in the camera module is not specifically limited here.
[0085] Correspondingly, if the anti-shake function of the camera module 10 is realized by adjusting the image sensor 130, the part corresponding to the lens in the camera module can be related technology, or the optical anti-shake algorithm module in the first driving chip corresponding to the lens part in related technology is migrated to the processor, while the servo control module of the first driving chip is retained, or the optical anti-shake algorithm module in the first driving chip corresponding to the lens part in related technology is migrated to the processor, while the servo control module of the first driving chip is retained, and the Hall sensor is replaced by a Hall detection module integrated in the first driving chip. The part corresponding to the lens in the camera module is not limited here.
[0086] It should be further noted that the servo control module 32 is integrated in the processor 30, and the first target parameter corresponding to the lens 120 and the second target parameter corresponding to the image sensor 130 are calculated by the processor 30 at the same time, which can prevent the problem of inaccurate adjustment caused by insufficient stroke of the first driving mechanism 141 or the second driving mechanism 142, and can also solve the problem of magnetic interference caused by different axes, such as the movement of the X-axis driving mechanism causing the Y-axis driving mechanism to deviate, and the Y-axis corresponding driving chip being unable to know the position of the X-axis to compensate. In addition, the whole control of the lens and the image sensor by the processor 30 can also solve the problem of resonance of the lens and the image sensor.
[0087] In addition, the driving mechanism 140 can drive the lens 120 and the image sensor 130 to move, so as to respectively perform anti-shake processing on the lens 120 and the image sensor 130, and achieve five-axis anti-shake of the camera module 10, which specifically includes Pitch (Rx), Yaw (Ry), Roll (Rz), Left / Right (X), Up / Down (Y) five-axis compensation anti-shake, wherein Rx, Ry and Rz can be assisted by a gyroscope to perform anti-shake, that is, the displacement amount of the image sensor 130 along the Z-axis direction has three sub-directions of Rx, Ry and Rz; X and Y can be assisted by an acceleration sensor to perform anti-shake. Exemplarily, the translation of X and Y or the overturning of Rx and Ry can be compensated by the translation of the XY direction to achieve four-axis anti-shake. The driving mechanism 140 can achieve XY translation and rotation of the image sensor 130 on the XY plane, so as to compensate the translation of X and Y or the overturning of Rx and Ry and Rz anti-shake, and achieve XY translation of the lens 120, so as to compensate the translation of X and Y.
[0088] As can be seen from the above, the electronic device 1 provided in the embodiment can realize the anti-shake function of the camera module 10 by adjusting the lens 120 or the image sensor 130, and can improve the anti-shake effect of the camera module 10 by simultaneously adjusting the lens 120 and the image sensor 130. In addition, by migrating the calculation process of the servo control module 32 from the driving chip 110 of the camera module 10 to the processor, the internal driving circuit of the driving chip 110 can be simplified, and the size of the driving chip can be correspondingly reduced, so as to reduce the cost. Moreover, the Hall sensor is modularly integrated in the driving chip 110, which can reduce the occupation of the internal space of the camera module 10, so that the size of the camera module 10 can be set smaller, and the cost is further reduced.
[0089] Optionally, the embodiment of the present application further provides another electronic device, please refer to Figure 7 , Figure 7is a first structural schematic diagram of another electronic device provided by an embodiment of the present application. The electronic device 3 can include a camera module 310, a detection apparatus 320, and a processor 330. The camera module 310 can include a lens 311, an image sensor 312, at least one first driving chip 313, at least one second driving chip 314, and a driving mechanism 315. The lens 311 is electrically connected to the at least one first driving chip 313, and the at least one first driving chip 313 is configured to detect a first current position of the lens 311. The image sensor 312 is electrically connected to the at least one second driving chip 314, and the at least one second driving chip 314 is configured to detect a second current position of the image sensor 312. The driving mechanism 315 includes a first driving mechanism 341 and a second driving mechanism 342. The first driving mechanism 341 is configured to drive the lens 311 to move, and the second driving mechanism 342 is configured to drive the image sensor 312 to move.
[0090] The detection apparatus 320 can detect first motion data of the lens 311 and second motion data of the image sensor 312.
[0091] The processor 330 is electrically connected to the at least one first driving chip 313, the at least one second driving chip 314, and the detection apparatus 320, respectively. The processor 330 is configured to: acquire the first motion data and the second motion data; calculate a first target position of the lens 311 according to the first motion data, so as to control the lens 311 to move from the first current position to the first target position; and calculate a second target position of the image sensor 312 according to the second motion data, so as to control the image sensor 312 to move from the second current position to the second target position.
[0092] Please refer to Figure 8 , Figure 8 is a second structural schematic diagram of another electronic device provided by an embodiment of the present application. Each first driving chip 313 can include a first servo control module 3131 and a first Hall detection module 3132. The number of the first driving chips 313 corresponds to the number of axial directions in which the first driving mechanism 341 can drive the lens 311 to move. For example, the first driving mechanism 341 can drive the lens 311 to move along the X-axis direction and the Y-axis direction, that is, the number of the at least one first driving chip 313 is two. Each second driving chip 314 can include a second servo control module 3141 and a second Hall detection module 3142. The number of the second driving chips 314 corresponds to the number of axial directions in which the second driving mechanism 342 can drive the image sensor 312 to move. For example, the second driving mechanism 342 can drive the image sensor 312 to move along the X-axis direction, the Y-axis direction, and the Z-axis direction, that is, the number of the at least one second driving chip 314 is three.
[0093] The at least one first driving chip 313 can be configured to obtain a first target position, calculate a first target parameter of the lens 311 from the first target position and a first current position through the first servo control module 3131, and control the lens 311 to move from the first current position to the first target position according to the first target parameter.
[0094] The at least one second driving chip 314 can be configured to obtain a second target position, calculate a second target parameter of the image sensor 312 from the second target position and a second current position through the second servo control module 3141, and control the image sensor 312 to move from the second current position to the second target position according to the second target parameter.
[0095] The camera module 310, the detection apparatus 320, the processor 330, the lens 311, the image sensor 312, the first driving chip 313, the second driving chip 314, the driving mechanism 315, the first Hall detection module 3132 and the second Hall detection module 3142 in the electronic device 3 can refer to the descriptions of the camera module 10, the detection apparatus 20, the processor 30, the driving mechanism 140, the lens 120, the image sensor 130, the first driving chip 111, the second driving chip 112, the first Hall detection module 1111 and the second Hall detection module 1121 in the electronic device 1, and details are not repeated here. It should be noted that the electronic device 3 provided in the embodiment is different from the electronic device 1 in the previous embodiment in that the optical anti-shake algorithm module in the camera module is moved to the processor in the embodiment, and the lens and the image sensor are simultaneously adjusted; and the optical anti-shake algorithm module and the servo control module in the camera module are moved to the processor in the electronic device 1, and the first servo control module or the second servo control module can be arranged in one of the lens or the image sensor.
[0096] It should be noted that the electronic device 3 provided in the embodiment is different from the electronic device 2 in the related art in that the optical anti-shake algorithm module of the driving chip 212 in the related art is migrated to the processor 330, the driving chip in the camera module reduces the internal driving circuit occupation space, and the cost of the driving chip is reduced.
[0097] In addition, the driving mechanism 315 can drive the lens 311 and the image sensor 312 to move, so as to respectively perform anti-shake processing on the lens 311 and the image sensor 312, and realize five-axis anti-shake of the camera module 310, specifically including Pitch (Rx), Yaw (Ry), Roll (Rz), Left / Right (X), Up / Down (Y) five-axis compensation anti-shake, wherein Rx, Ry and Rz can be assisted by a gyroscope to perform anti-shake, that is, the displacement amount of the image sensor 312 along the Z-axis direction has three sub-directions of Rx, Ry and Rz; X and Y can be assisted by an acceleration sensor to perform anti-shake. For example, the translation of X and Y or the overturning of Rx and Ry can be compensated by translation in the XY direction to achieve four-axis anti-shake. The driving mechanism 140 can realize XY translation and rotation of the image sensor 312 in the XY plane, so as to compensate for the translation of X and Y or the overturning of Rx and Ry and Rz anti-shake, and realize XY translation of the lens 311, so as to compensate for the translation of X and Y.
[0098] As can be seen from the above, the electronic device 3 provided in the embodiment can improve the anti-shake effect of the camera module 10 by simultaneously adjusting the lens 311 and the image sensor 312, and by migrating the calculation process of the optical anti-shake algorithm module from the driving chip of the camera module to the processor 330, the internal driving circuit of the driving chip can be simplified and the size of the driving chip can be correspondingly reduced, thereby reducing the cost. Moreover, the Hall sensor is modularly integrated in the driving chip, which can reduce the occupation of the internal space of the camera module, so that the size of the camera module can be set smaller, thereby further reducing the cost.
[0099] Correspondingly, the embodiment of the present application also provides a control method of an electronic device, please refer to Figure 9 , Figure 9 is a flowchart of the control method of the electronic device provided in the embodiment of the present application. The electronic device can include a servo control module and a camera module, and the camera module can include a driving chip. The specific steps of the control method of the electronic device can be as follows:
[0100] S401, acquiring motion data of the camera module and a current position of the camera module, and calculating a target position of the camera module according to the motion data.
[0101] In the embodiment, the camera module can be used to realize the functions of the electronic device 1 such as photographing, video recording, face recognition unlocking or code scanning payment. In addition, it should be noted that the camera module can be a front camera or a rear camera, or the camera module simultaneously includes a front camera and a rear camera, which is not limited in the embodiment.
[0102] The camera module can include a lens and an image sensor. The lens can collect external light and can change the propagation path of the light and focus the light. The image sensor can be, but is not limited to, a CCD, a CMOS, or the like. The image sensor is mainly used to receive light collected by the lens and convert the light signal into an electrical signal to achieve the imaging requirement of the camera module.
[0103] The motion data of the camera module and the current position of the camera module are obtained, and the target position of the camera module is calculated according to the motion data. Specifically, the first motion data of the lens and the first current position of the lens are obtained, and the first target position of the lens is calculated according to the first motion data; and / or the second motion data of the image sensor and the second current position of the image sensor are obtained, and the second target position of the image sensor is calculated according to the second motion data.
[0104] In some embodiments, the camera module can include a driving chip, a lens, and a first driving mechanism. The driving chip includes at least one first driving chip, which can be used to detect the first current position of the lens. Since the shaking of the lens will cause displacement along the plane in which the lens is located, a coordinate is established with the target position of the lens as the origin, and the actual position of the lens will cause displacement of the X-axis and / or the Y-axis. Each first driving chip can detect the displacement of the lens along one axis through a first Hall detection module. By detecting the displacement of the lens along each axis, the offset of the actual position of the lens relative to the target position can be determined, and thus the first current position of the lens can be determined.
[0105] Therefore, the at least one first driving chip can include two first driving chips, and each first driving chip can include a first Hall detection module. Specifically, the two first driving chips can include two first Hall detection modules. One of the first Hall detection modules can detect the displacement of the lens along the X-axis direction, and the other first Hall detection module can detect the displacement of the lens along the Y-axis direction, so as to determine the first current position of the lens through the displacement along the X-axis direction and the displacement along the Y-axis direction, i.e., the first driving chip can detect the first current position of the lens through the first Hall detection module.
[0106] The detection device can detect the first motion data of the lens, which can be the first offset data of the first current position of the lens relative to the target position of the lens. The detection device can be an acceleration sensor to detect the linear acceleration of the lens.
[0107] In some embodiments, the at least one second driving chip can be configured to detect a second current position of the image sensor. Since the shaking of the image sensor can cause displacement along a plane in which the image sensor is located and flipping along the plane in which the image sensor is located, a coordinate system is established with the image sensor as the origin, the actual position of the image sensor can cause displacement of the X-axis and / or the Y-axis and / or the Z-axis. Each second driving chip can detect the displacement of the image sensor along one axis by the second Hall detection module. By detecting the displacement of the image sensor along each axis, the offset of the actual position of the image sensor relative to the target position can be determined, and thus the second current position of the image sensor can be determined.
[0108] Therefore, the at least one second driving chip can include three second driving chips, and each second driving chip can include a second Hall detection module. Specifically, the three second driving chips can include three second Hall detection modules, one of which can detect the displacement of the image sensor along the X-axis direction, one of which can detect the displacement of the image sensor along the Y-axis direction, and the other of which can detect the displacement of the image sensor along the Z-axis direction. Thus, the second current position of the image sensor can be determined by the displacement of the X-axis direction, the displacement of the Y-axis direction, and the displacement of the Z-axis direction, i.e., the second driving chip can detect the second current position of the image sensor by the second Hall detection module.
[0109] The detection device can detect second motion data of the image sensor, which can be second offset data of the second current position of the image sensor relative to the target position of the image sensor. The detection device can include an acceleration sensor and a gyroscope to detect linear acceleration, angular velocity, and / or angular acceleration of the image sensor.
[0110] S402, according to the target position and the current position, calculating a target parameter of the camera module by the servo control module.
[0111] According to the target position and the current position, the target parameter of the camera module is calculated by the servo control module. Specifically, according to the first target position and the first current position, the first target parameter of the lens is calculated by the servo control module; and / or according to the second target position and the second current position, the second target parameter of the image sensor is calculated by the servo control module.
[0112] In some embodiments, after obtaining the first motion data of the lens detected by the detection device, the first target position of the lens can be calculated by the optical image stabilization algorithm module, and the first target position is transmitted to the servo control module. Therefore, the first target position and the first current position of the lens are included in the servo control module, and the first target parameter of the lens can be calculated by the servo control module, wherein the first target parameter can include the first voltage parameter and / or the first current parameter, and the first target parameter corresponds to the parameter for moving the lens from the first current position to the first target position.
[0113] In some embodiments, after obtaining the second motion data of the image sensor detected by the detection device, the second target position of the image sensor can be calculated by the optical image stabilization algorithm module, and the second target position is transmitted to the servo control module. Therefore, the second target position and the second current position of the image sensor are included in the servo control module, and the second target parameter of the image sensor can be calculated by the servo control module, wherein the second target parameter can include the second voltage parameter and / or the second current parameter, and the second target parameter corresponds to the parameter for moving the image sensor from the second current position to the second target position.
[0114] S403, transmitting the target parameter to the driving chip to control the driving chip to move the camera module from the current position to the target position by the target parameter.
[0115] The target parameter is transmitted to the driving chip to control the driving chip to move the camera module from the current position to the target position by the target parameter. Specifically, the first target parameter is transmitted to the first driving chip to control the first driving chip to move the lens from the first current position to the first target position by the first target parameter; and / or the second target parameter is transmitted to the second driving chip to control the second driving chip to move the image sensor from the second current position to the second target position by the second target parameter.
[0116] In some embodiments, after obtaining the first target parameter and / or the second target parameter, the first target parameter can be transmitted to at least one first driving chip, such as two first driving chips corresponding to the lens, by I2C, and / or the second target parameter can be transmitted to at least one second driving chip, such as the second driving chip corresponding to the image sensor, by I2C.
[0117] The camera module further comprises a driving mechanism, which can receive control instructions of the driving chips to drive the camera module to move. Specifically, the driving mechanism can comprise a first driving mechanism for driving the lens to move. After obtaining the first target parameter, the at least one first driving chip can send a control instruction to the first driving mechanism according to the first target parameter, so that the first driving mechanism drives the lens to move. The first driving mechanism can simultaneously have driving members for driving the lens to move along the X-axis direction and the Y-axis direction, or the first driving mechanism comprises two first driving sub-mechanisms, and the two first driving sub-mechanisms can respectively drive the lens to move along the X-axis direction and the Y-axis direction. The structure of the first driving mechanism is not specifically limited here.
[0118] In some embodiments, the driving mechanism can further comprise a second driving mechanism, such as three second driving chips corresponding to the image sensor. The second driving mechanism is used to drive the image sensor to move. After obtaining the second target parameter, the at least one second driving chip can send a control instruction to the second driving mechanism according to the second target parameter, so that the second driving mechanism drives the image sensor to move. The second driving mechanism can simultaneously have driving members for driving the image sensor to move along the X-axis direction, the Y-axis direction and the Z-axis direction, or the second driving mechanism comprises three second driving sub-mechanisms, and the three second driving sub-mechanisms can respectively drive the image sensor to move along the X-axis direction, the Y-axis direction and the Z-axis direction. The structure of the second driving mechanism is not specifically limited here.
[0119] It should be noted that, by migrating the servo control module out of the driving chips of the camera module, and simultaneously calculating the first target parameter corresponding to the lens and the second target parameter corresponding to the image sensor, the problem of inaccurate adjustment caused by insufficient stroke of the first driving mechanism for controlling the lens or the second driving mechanism for controlling the image sensor can be prevented, and the problem of being unable to adjust compensation due to magnetic interference occurring in different axes, such as the shift of the driving mechanism of the Y-axis caused by the movement of the driving mechanism of the X-axis, can also be solved. In addition, the problem of resonance of the lens and the image sensor can also be solved by overall control of the lens and the image sensor.
[0120] It can be learned from the above that, in the embodiment, the motion data of the camera module and the current position of the camera module are acquired, the target position of the camera module is calculated according to the motion data, the target parameter of the camera module is calculated according to the target position and the current position through the servo control module, the target parameter is transmitted to the driving chip, so that the driving chip controls the camera module to move from the current position to the target position through the target parameter. The anti-shake function of the camera module is realized by adjusting the lens or the image sensor, and the five-axis anti-shake of the camera module can be realized by simultaneously adjusting the lens and the image sensor, so that the anti-shake effect of the camera module is improved. In addition, the calculation process of the servo control module is migrated out of the driving chip of the camera module, so that the internal driving circuit of the driving chip can be simplified and the size of the driving chip can be correspondingly reduced, so that the cost is reduced. Moreover, the Hall sensor is modularly integrated in the driving chip, so that the internal space of the camera module can be reduced, so that the size of the camera module can be set smaller, and the cost is further reduced.
[0121] In addition, the embodiment of the present application also provides another control method of an electronic device, please refer to Figure 10 , Figure 10 is a flowchart of another control method of an electronic device provided by the embodiment of the present application. The electronic device can include a camera module, and the camera module can include a lens and an image sensor. The specific steps of the control method of the electronic device can be as follows:
[0122] S501, acquiring first motion data of the lens and second motion data of the image sensor.
[0123] S502, calculating a first target position of the lens according to the first motion data, so as to control the lens to move from a first current position to the first target position.
[0124] S503, calculating a second target position of the image sensor according to the second motion data, so as to control the image sensor to move from a second current position to the second target position.
[0125] It should be noted that, in the embodiment, the optical anti-shake algorithm module of the driving chip in the related art is migrated out, and the internal driving circuit of the driving chip in the camera module is reduced, so that the cost of the driving chip is reduced.
[0126] It can be learned from the above that, in the embodiment, the motion data of the camera module and the current position of the camera module are acquired, the target position of the camera module is calculated according to the motion data, the target parameter of the camera module is calculated according to the target position and the current position through the servo control module, the target parameter is transmitted to the driving chip, so that the driving chip controls the camera module to move from the current position to the target position through the target parameter. The anti-shake function of the camera module is realized by adjusting the lens or the image sensor, and the five-axis anti-shake of the camera module can be realized by simultaneously adjusting the lens and the image sensor, so that the anti-shake effect of the camera module is improved. In addition, the calculation process of the servo control module is migrated out of the driving chip of the camera module, so that the internal driving circuit of the driving chip can be simplified and the size of the driving chip can be correspondingly reduced, so that the cost is reduced. Moreover, the Hall sensor is modularly integrated in the driving chip, so that the internal space of the camera module can be reduced, so that the size of the camera module can be set smaller, and the cost is further reduced.
[0127] Correspondingly, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program. When the computer program is run on a computer, the computer is enabled to execute the refresh rate detection method in any of the above embodiments.
[0128] For example, in some embodiments, when the above computer program is run on a computer, the computer executes the following steps:
[0129] Obtaining motion data of the camera module and a current position of the camera module, and calculating a target position of the camera module according to the motion data;
[0130] According to the target position and the current position, calculating a target parameter of the camera module by a servo control module;
[0131] Transmitting the target parameter to a driving chip, so that the driving chip controls the camera module to move from the current position to the target position according to the target parameter.
[0132] In some embodiments, the computer can further execute the following steps:
[0133] Obtaining first motion data of the lens and second motion data of the image sensor;
[0134] Calculating a first target position of the lens according to the first motion data, so as to control the lens to move from a first current position to the first target position;
[0135] Calculating a second target position of the image sensor according to the second motion data, so as to control the image sensor to move from a second current position to the second target position.
[0136] The specific implementation of each operation can refer to the above embodiments, which will not be repeated here.
[0137] The storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0138] Since the instructions stored in the storage medium can execute the steps in the control method of any of the electronic devices provided by the embodiments of the present application, the beneficial effects of the control method of any of the electronic devices provided by the embodiments of the present application can be achieved. Details can be found in the above embodiments, which will not be repeated here.
[0139] It should be noted that, for the electronic device control method of the embodiments of the present application, a person of ordinary skill in the art can understand that all or part of the process of implementing the electronic device control method of the embodiments of the present application can be completed by a computer program to control the related hardware. The computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device. In the execution process, it can include processes such as the embodiments of the electronic device control method.
[0140] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments. In the description of the present application, the terms "first", "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more features.
[0141] The electronic device, the electronic device control method, and the storage medium provided by the embodiments of the present application are described in detail above. The principles and implementation manners of the present application are described by applying specific examples in this paper. The above description of the embodiments is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range will be changed; in view of the above, the content of the specification should not be understood as a limitation of the present application.
Claims
1. An electronic device, comprising: The application relates to a camera module and a detection device. The camera module comprises a lens, an image sensor and a driving chip. The detection device is used for detecting first motion data of the lens. The processor is electrically connected with the driving chip and the detection device, and comprises a servo control module integrated in the processor. The driving chip comprises at least one first driving chip, which is electrically connected with the lens and is used for detecting a first current position of the lens. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor.
2. The electronic device of claim 1, wherein, The detection device is used for detecting second motion data of the image sensor.
3. The electronic device of claim 1, wherein, The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data.
4. The electronic device of any of claims 1 to 3, wherein, The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data. The driving chip comprises at least one second driving chip, which is electrically connected with the image sensor and is used for detecting a second current position of the image sensor. The detection device is used for detecting second motion data of the image sensor. The processor is further used for acquiring the second motion data and a second current position of the image sensor 5. The electronic device of claim 4, wherein, The driving mechanism includes a first driving mechanism and / or a second driving mechanism, the first driving mechanism is electrically connected with at least one first driving chip, and the first driving mechanism is used for driving the lens to move, wherein the at least one first driving chip can control the first driving mechanism to drive the lens to move from the first current position to the first target position through the first target parameter; and / or The second driving mechanism is electrically connected with at least one second driving chip, and the second driving mechanism is used for driving the image sensor to move, wherein the at least one second driving chip can control the second driving mechanism to drive the image sensor to move from the second current position to the second target position through the second target parameter.
6. A control method of an electronic device, characterized by, The electronic device includes a servo control module integrated in a processor, and the electronic device further includes a camera module, the camera module including a lens, an image sensor and a driving chip; The driving chip includes at least one first driving chip; the method includes: obtaining first motion data of the lens and a first current position of the lens, and calculating a first target position of the lens according to the first motion data; calculating a first target parameter of the lens through the servo control module according to the first target position and the first current position, wherein the first target parameter includes a first voltage parameter and / or a first current parameter; and transmitting the first target parameter to at least one first driving chip, so that at least one first driving chip controls the lens to move from the first current position to the first target position through the first target parameter; and / or, The driving chip includes at least one second driving chip; the method includes: obtaining second motion data of the image sensor and a second current position of the image sensor, and calculating a second target position of the image sensor according to the second motion data; calculating a second target parameter of the image sensor through the servo control module according to the second target position and the second current position, wherein the second target parameter includes a second voltage parameter and / or a second current parameter; and transmitting the second target parameter to at least one second driving chip, so that at least one second driving chip controls the image sensor to move from the second current position to the second target position through the second target parameter.
7. A computer-readable storage medium having stored thereon a computer program, characterized in that When the computer program runs on the computer, the computer is caused to perform the control method of the electronic device as claimed in claim 6.
Citation Information
Patent Citations
Dual-anti-shake system and method, electronic equipment and computer readable storage medium
CN113489889A
Optical anti-shake method and system, computer readable storage medium and electronic equipment
CN113489910A