Camera module anti-shake method and device and camera module

The global exposure image sensor is used to determine the target size and center point of the camera module's jitter frame image, and blurry pixels are cropped out, solving the problem of increased camera module costs and achieving efficient anti-shake effects.

CN120614528APending Publication Date: 2025-09-09KUNSHAN Q TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510600819.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

In the existing technology, camera modules achieve anti-shake by introducing optical anti-shake motors or optical anti-shake driver chips, which leads to increased camera module costs, longer process testing cycles, and increased testing difficulty.

Method used

Using an image sensor that supports global exposure, the system obtains the maximum jitter angle, single pixel size, and static effective focal length of the camera module to determine the target size and center point of the jittered frame image, and crops out the blurred pixels caused by jitter to achieve an anti-shake effect.

Benefits of technology

Without using an anti-shake motor or anti-shake chip, the imaging quality of the camera module is improved, the anti-shake cost is reduced, the process testing process is simplified, and the testing difficulty is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120614528A_ABST
    Figure CN120614528A_ABST
Patent Text Reader

Abstract

The invention provides an anti-shake method and device for a camera module and the camera module, and the method comprises the steps: obtaining a maximum shake angle allowed by the camera module, the size of a single pixel, and a static effective focal length of the camera module when the camera module is determined to shake; determining the target size of all frames of images generating jitter according to the maximum jitter angle allowed by the camera module, the size of a single pixel and the static effective focal length of the camera module; determining target center points of all frame images according to the target frame image; cutting all frames of images based on the target size and the target center point to cut off fuzzy pixel points generated by jitter; thus, in the jitter state, the blurred pixel points are generally located at the edge of the image, the corresponding image size can be determined according to the allowable maximum jitter angle, then the center point is determined, and finally each frame of jitter image is cut to the target size by taking the center point as the reference, namely, the blurred pixel points located at the edge are cut off. Finally, anti-shake is realized in the absence of an anti-shake motor or an anti-shake chip, the imaging quality of the camera module is improved, and the anti-shake cost of the camera module is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of camera module anti-shake control, and in particular to a camera module anti-shake method, device and camera module. Background Art

[0002] When a mobile terminal equipped with a camera module is actually shooting, the shooting picture may be blurred due to its own shaking or shaking.

[0003] Traditionally, an optical image stabilization motor or driver chip is incorporated into the camera module to counteract camera shake and maintain clarity. However, the introduction of optical image stabilization components increases camera module production costs, lengthens process testing cycles, and increases testing difficulty.

[0004] Therefore, how to achieve anti-shake at low cost, simply and effectively is a technical problem that needs to be solved urgently. Summary of the Invention

[0005] In response to the problems existing in the prior art, the embodiments of the present invention provide a camera module anti-shake method, device and camera module to solve or partially solve the technical problem in the prior art of using an anti-shake motor or an optical anti-shake driver chip to achieve anti-shake, which in turn leads to an increase in the cost of the camera module.

[0006] A first aspect of the present invention provides an anti-shake method for a camera module, wherein the image sensor of the camera module is an image sensor that supports global exposure, and the method comprises:

[0007] When it is determined that the camera module is shaking, obtaining a maximum shaking angle allowed by the camera module, a single pixel size, and a static effective focal length of the camera module; determining a target size of all frame images that are shaking according to the maximum shaking angle allowed by the camera module, the single pixel size, and the static effective focal length of the camera module;

[0008] Determine the target center point of all the frame images according to the target frame image;

[0009] All the frame images are cropped based on the target size and the target center point to crop out blurred pixels caused by shaking.

[0010] In the above solution, determining the target size of all frame images that generate jitter according to the maximum jitter angle allowed by the camera module, the single pixel size, and the static effective focal length of the camera module includes:

[0011] The target size of all frames of images that produce jitter is determined according to the formula P′=EFL×tanθ / P; where,

[0012] The EFL is the static effective focal length of the camera module, θ is the maximum jitter angle, and P is the size of a single pixel.

[0013] In the above solution, the target frame image includes multiple frame images generated in a shaking state; and determining the target center point of all the frame images according to the target frame image includes:

[0014] Determine the center point of each target frame image respectively;

[0015] The average value of the horizontal coordinates of the center points of the target frame images is determined as the horizontal coordinate of the target center point, and the average value of the vertical coordinates of the center points of the target frame images is determined as the vertical coordinate of the target center point.

[0016] In the above solution, the target frame image includes multiple frame images generated in a shaking state; and determining the target center point of all the frame images according to the target frame image includes:

[0017] Determine the center point of each target frame image respectively;

[0018] A circle is fitted according to the center point of each target frame image, and the origin of the circle is determined as the target center point.

[0019] In the above solution, the step of respectively determining the center point of each target frame image includes:

[0020] For any target frame image, obtaining a first number of pixels between a center point of the image and an edge of one side of the image, and obtaining a second number of pixels between the center point of the image and an edge of another side of the image, wherein the two side edges are adjacent;

[0021] The first number of pixels is determined as the horizontal coordinate of the center point of the target frame image, and the second number of pixels is determined as the vertical coordinate of the center point of the target frame image.

[0022] In the above solution, the cropping of all frame images based on the target size and the target center point includes:

[0023] Determining a region to be cropped of all the frame images based on the target center point and the target size, wherein the region to be cropped is located around all the frame images;

[0024] The to-be-cropped areas of all the frame images are cropped.

[0025] A second aspect of the present invention provides an anti-shake device for a camera module, wherein the image sensor of the camera module is an image sensor supporting global exposure, and the device comprises:

[0026] The first determining unit is configured to, when determining that the camera module is shaking, obtain a maximum shaking angle allowed by the camera module, a single pixel size, and a static effective focal length of the camera module; and determine a target size of all frame images that are shaking according to the maximum shaking angle allowed by the camera module, the single pixel size, and the static effective focal length of the camera module;

[0027] A second determining unit is used to determine the target center point of all the frame images according to the target frame image;

[0028] A cropping unit is used to crop all the frame images based on the target size and the target center point to crop out blurred pixels caused by shaking.

[0029] In the above solution, the first determining unit is specifically configured to:

[0030] The target size of all frames of images that produce jitter is determined according to the formula P′=EFL×tanθ / P; where,

[0031] The EFL is the static effective focal length of the camera module, θ is the maximum jitter angle, and P is the size of a single pixel.

[0032] A third aspect of the present invention provides an anti-shake camera module, the camera module comprising: a lens, a base, optical glass, a circuit board, an integrated chip, and an image sensor;

[0033] The lens is mounted on one side of the base, the lens is used for imaging, and the base is used to fix the lens;

[0034] The optical glass is located on the side of the base opposite to the lens;

[0035] The integrated chip is located on the circuit board, and the integrated chip exchanges jitter information with the outside world. When the camera module is determined to have jittered based on the acquired jitter information, the target size of all frame images that have jittered is determined; and the target size of all frame images is sent to the image sensor.

[0036] The image sensor is located on the circuit board, and the image sensor is an image sensor that supports global exposure, and implements anti-shake processing on all frame images by acquiring target sizes of all frame images;

[0037] The circuit board is located on a side of the optical glass opposite to the base, and is used to provide a supporting platform and electrical connection for the image sensor and the integrated chip.

[0038] In the above scheme, the integrated chip obtains jitter information by connecting to an external gyroscope, and the jitter information includes the jitter angle and speed. The integrated chip determines whether the camera module is in a jitter state based on the obtained jitter information. If so, the pre-stored maximum jitter angle allowed by the camera module, the single pixel size and the static effective focal length of the camera module are obtained; the target size of all frame images that produce jitter is determined based on the maximum jitter angle allowed by the camera module, the single pixel size and the static effective focal length of the camera module; and the target size of all frame images is sent to the image sensor; the image sensor crops all frame images based on the target size of all frame images to achieve anti-shake.

[0039] The present invention provides an anti-shake method, device and camera module for a camera module, the method comprising: when it is determined that the camera module generates shake, obtaining the maximum shake angle allowed by the camera module, the size of a single pixel and the static effective focal length of the camera module; determining the target size of all frame images generating shake according to the maximum shake angle allowed by the camera module, the size of the single pixel and the static effective focal length of the camera module; determining the target center point of all frame images according to the target frame image; cropping all frame images based on the target size and the target center point to crop out blurred pixels generated by the shake; in this way, in a shaken state, blurred pixels are generally located at the edge of the image, and the present invention can first determine a corresponding image size according to the maximum shake angle allowed, then determine the center point, and finally crop each frame image of the shake to the target size based on the center point, which is equivalent to cropping out the blurred pixels located at the edge, and finally achieving anti-shake without an anti-shake motor or an anti-shake chip, thereby improving the imaging quality of the camera module and reducing the anti-shake cost of the camera module. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:

[0041] Figure 1 A schematic flow chart of an anti-shake method for a camera module according to an embodiment of the present invention is shown;

[0042] Figure 2 A schematic diagram showing a camera module acquiring jitter information from a gyroscope according to an embodiment of the present invention is shown;

[0043] Figure 3A schematic diagram of an image with a screen size of 8000×6000 pixels according to an embodiment of the present invention is shown;

[0044] Figure 4 A schematic diagram of an image showing a target size determined according to an embodiment of the present invention is shown;

[0045] Figure 5 A schematic diagram of a first frame image in a shaking state according to an embodiment of the present invention is shown;

[0046] Figure 6 A schematic diagram of a second frame image in a shaking state according to an embodiment of the present invention is shown;

[0047] Figure 7 shows a schematic diagram of a third frame image in a shaking state according to an embodiment of the present invention;

[0048] Figure 8 shows a schematic diagram of a fourth frame of image in a shaking state according to an embodiment of the present invention;

[0049] Figure 9 FIG2 shows a schematic diagram of cropping a frame of an image captured in a shaking state according to an embodiment of the present invention;

[0050] Figure 10 A schematic structural diagram of an anti-shake device for a camera module according to an embodiment of the present invention is shown;

[0051] Figure 11 A structural diagram of a camera module according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0052] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0053] The present invention provides an anti-shake method for a camera module. The image sensor of the camera module of the present invention is an image sensor that supports global exposure. Global exposure means that when the aperture is open, all pixels on the image sensor of the camera module can be exposed at the same time; when the aperture is closed, all pixels on the image sensor end exposure at the same time and then output pixel data. Figure 1 As shown, the method mainly includes the following steps:

[0054] S110, when it is determined that the camera module generates jitter, obtain the maximum jitter angle allowed by the camera module, the size of a single pixel and the static effective focal length of the camera module; determine the target size of all frame images that generate jitter based on the maximum jitter angle allowed by the camera module, the size of a single pixel and the static effective focal length of the camera module.

[0055] Generally speaking, different customers allow different angle ranges of camera module shake, and there is a maximum allowable shake angle. The present invention considers that if the anti-shake effect of the maximum shake angle can be achieved, then the actual shake angle should be smaller than the maximum shake angle.

[0056] Therefore, when it is determined that the camera module is shaking, the maximum shaking angle allowed by the camera module, the size of a single pixel and the static effective focal length of the camera module are obtained; and the target size of all frame images that produce shaking is determined based on the maximum shaking angle allowed by the camera module, the size of a single pixel and the static effective focal length of the camera module.

[0057] In the present invention, in actual use, reference is made to Figure 2 The gyroscope can be used to collect the camera module's jitter information in real time and transmit the jitter information to the integrated chip (IC chip). If the integrated chip determines that the jitter angle contained in the jitter information is greater than the angle threshold, or that the jitter speed is greater than the speed threshold, it is determined that the camera module is in a jitter state at this time. Then, the maximum jitter angle allowed by the camera module, the single pixel size, and the static effective focal length of the camera module will be obtained from the preset storage file. Among them, the single pixel size refers to the size of a single pixel. Taking a 48-megapixel camera module as an example, the captured image has 48 million pixels, and the size of each pixel is 1μm.

[0058] Among them, when the camera module is in a detection environment, the gyroscope can be set on the adapter board; when the camera module is placed in a terminal device (such as a mobile phone), the gyroscope is installed in the terminal device.

[0059] Generally speaking, when a camera module is in a shaking state, the pixels around the image are blurred. The present invention mainly aims to crop the blurred pixels around the image to obtain a clear image and achieve an anti-shake effect. Therefore, the present invention needs to first determine the target size after cropping.

[0060] In one embodiment, determining the target size of all frames of images that generate jitter based on the maximum jitter angle allowed by the camera module, the size of a single pixel, and the static effective focal length of the camera module includes:

[0061] The target size of all frames of images that produce jitter is determined according to the formula P′=EFL×tanθ / P; where,

[0062] EFL is the static effective focal length of the camera module, θ is the maximum jitter angle, and P is the size of a single pixel.

[0063] Take the 8000×6000 pixel image as an example, Figure 3 , the original size is 8000×6000. After the jitter occurs, you can refer to Figure 4 , the target size is determined to be 3200×2400.

[0064] S111 , determining a target center point of all the frame images according to the target frame image.

[0065] After determining the cropped size, it is necessary to determine the target center point of all frame images based on the target frame image. Among them, all frame images are all images generated in a shaking state, which can be continuously taken photos or all images contained in a captured video.

[0066] In one embodiment, determining the target center point of all the frame images according to the target frame image includes:

[0067] Determine the center point of each target frame image respectively;

[0068] The average value of the horizontal coordinates of the center points of the target frame images is determined as the horizontal coordinate of the target center point, and the average value of the vertical coordinates of the center points of the target frame images is determined as the vertical coordinate of the target center point.

[0069] In one embodiment, the target frame image includes multiple frame images generated in a shaking state; and determining the target center point of all frame images according to the target frame image includes:

[0070] Determine the center point of each target frame image respectively;

[0071] A circle is fitted according to the center point of each target frame image, and the origin of the circle is determined as the target center point.

[0072] In one embodiment, determining the center point of each target frame image includes:

[0073] For any target frame image, obtain a first number of pixels between the center point of the image and the left edge of the image, and obtain a second number of pixels between the center point of the image and the upper edge of the image;

[0074] The first number of pixels is determined as the abscissa of the center point of the target frame image, and the second number of pixels is determined as the ordinate of the center point of the target frame image.

[0075] Specifically, the target frame image may include the first four frames of images in the shaking state, the first frame image to the fourth frame image such as Figures 5 to 8 shown.

[0076] After the first four frames of images are acquired, the target center points of all frames of images are determined based on the first four frames of images. Therefore, the coordinates of the center points of the first four frames of images need to be determined first.

[0077] The method of determining the coordinates of the center point of the first four frames of images is the same. Take the first frame of image as an example, refer to Figure 5 , Figure 5 The center point is A. It is necessary to determine the first number of pixels between point A and the left edge of the image. For example, if the first number of pixels is 4000 pixels, then the horizontal coordinate of point A is 4000. After determining the second number of pixels between point A and the upper edge of the image, for example, if the second number of pixels is 2400 pixels, then the vertical coordinate of point A is 2400. Therefore, the coordinates of the center point of the first frame image are (4000, 2400).

[0078] The center points of the remaining three frames of images are determined in the same way as point A, and will not be described in detail here.

[0079] For reference Figures 6 to 8 It is known that the coordinates of the center point of the second frame image are (4000, 3600), the coordinates of the center point of the third frame image are (3200, 3000), and the coordinates of the center point of the fourth frame image are (4800, 3100).

[0080] After the coordinates of the center points of the first four frames of images are determined, the target center points of all the frames of images can be determined based on the center points of the first four frames of images.

[0081] There are two ways to determine the target center point of all frame images in the present invention. The first is to determine the average value of the horizontal coordinates of the center points of each target frame image as the horizontal coordinate of the target center point, and to determine the average value of the vertical coordinates of the center points of each target frame image as the vertical coordinate of the target center point.

[0082] Continuing with the above example, the coordinates of the center point of the first frame image are (4000, 2400), the coordinates of the center point of the second frame image are (4000, 3600), the coordinates of the center point of the third frame image are (3200, 3000), and the coordinates of the center point of the fourth frame image are (4800, 3100). Then the horizontal coordinate of the target center point is (4000+4000+3200+4800) / 4=4000, and the vertical coordinate of the target center point is (2400+3600+3000+3100) / 4=3025. Therefore, the coordinates of the target center point are determined to be (4000, 3025).

[0083] The second method is to fit a circle based on the center points of the four frames of image, and then determine the origin of the circle, and determine the origin as the target center point.

[0084] In this way, the target center point of all frame images can be determined.

[0085] S112: Crop all the frame images based on the target size and the target center point to crop out blurred pixels caused by shaking.

[0086] After the target center point and target size are determined, all frame images can be cropped based on the target size and target center point to crop out blurred pixels caused by shaking.

[0087] In one embodiment, all frame images are cropped based on the target size and the target center point to crop out blurred pixels caused by jitter, including:

[0088] The target center point and target size are used to determine the area to be cropped of all frame images. The area to be cropped is located around all frame images.

[0089] Crop the cropped area of ​​all frame images.

[0090] refer to Figure 9 Taking a frame image as an example, the target center point is A, the target size is marked 81, and the area to be cropped is marked 82. Then, after cropping the area to be cropped 82 located around it, an image with clear pixels can be obtained.

[0091] All frame images generated in a shaking state are cropped in this way to achieve an anti-shake effect.

[0092] In a shaking state, blurred pixels are generally located at the edge of the image. The present invention can first determine a corresponding image size based on the maximum allowable shaking angle, then determine the center point, and finally crop each shaking frame image to the target size based on the center point, which is equivalent to cropping the blurred pixels located at the edge. Ultimately, anti-shake is achieved without an anti-shake motor or anti-shake chip, thereby improving the imaging quality of the camera module and reducing the anti-shake cost of the camera module.

[0093] Based on the same inventive concept as the above embodiment, the present invention also provides an anti-shake device for a camera module, such as Figure 10 As shown, the device includes:

[0094] The first determining unit 91 is configured to, when determining that the camera module is shaking, obtain a maximum shake angle allowed by the camera module, a single pixel size, and a static effective focal length of the camera module; and determine a target size of all frame images that are shaking based on the maximum shake angle allowed by the camera module, the single pixel size, and the static effective focal length of the camera module;

[0095] A second determining unit 92 is configured to determine a target center point of all the frame images according to the target frame image;

[0096] The cropping unit 93 is configured to crop all the frame images based on the target size and the target center point, so as to crop out blurred pixels caused by shaking.

[0097] In one embodiment, the first determining unit 91 is specifically configured to:

[0098] The target size of all frames of images that produce jitter is determined according to the formula P′=EFL×tanθ / P; where,

[0099] EFL is the static effective focal length of the camera module, θ is the maximum jitter angle, and P is the size of a single pixel.

[0100] Since the device described in the embodiments of the present invention is used to implement the anti-shake method for the camera module of the embodiments of the present invention, the specific structure and variations of the device are well understood by those skilled in the art based on the methods described in the embodiments of the present invention, and therefore, no further description is given here. All devices used in the methods of the embodiments of the present invention fall within the scope of protection of the present invention.

[0101] Based on the same inventive concept, this embodiment also provides a camera module, such as Figure 11 As shown, the camera module includes: a protective film 101, a lens 102, a base 103, an optical glass 104, a circuit board 105, and a connector 106; wherein the circuit board 105 is mounted with an integrated chip 1051 (IC chip), an image sensor 1052, and a memory 1053;

[0102] The protective film 101 covers the lens 102 and is used to protect the lens 102; prevent the surface of the lens 102 from being scratched, contaminated with dust and stains during transportation, and maintain the optical performance of the lens 102 stable;

[0103] The lens 102 is mounted on one side of the base 103 and is an important optical component. The lens 102 is used to form an image, forming an image of the external scene, and projecting the target scene clearly onto the subsequent image sensor 1052 through optical principles such as refraction.

[0104] The base 103 is used to support and fix the lens 102 to ensure the position accuracy of the lens 102 and maintain the stability of the optical system.

[0105] The optical glass 104 is located on the side of the base 103 opposite to the lens 102 . The optical glass 104 is mainly used to suppress the transmission of infrared light and allow visible light of a specific wavelength band to pass through, thereby improving image quality.

[0106] The circuit board 105 is located on the side of the optical glass 104 opposite to the base 103. The circuit board 105 is equipped with an image sensor 1052, an integrated chip 1051 and a memory 1053; the integrated chip 1051 is mainly used to interact with an external gyroscope to obtain jitter information collected by the gyroscope, and when the camera module is determined to have jitter through the obtained jitter information, the target size of all frame images that have jittered is determined; and the target size of all frame images is sent to the image sensor; the memory 1053 can be an electrically erasable programmable read-only memory, which is used to store relevant configuration parameters of the camera module (such as focal length, exposure compensation information, etc.).

[0107] The image sensor 1052 is used to convert the light signal projected by the lens 102 into an electrical signal or a digital signal, and is a key conversion component for imaging. In the present invention, the image sensor 1052 is an image sensor that supports global exposure. The image sensor 1052 uses a global exposure method, which can expose all parts of the entire picture at the same time each time a photo is taken. In contrast, all optical image stabilization camera modules in the industry currently expose gradually from top to bottom when shooting pictures. All parts of the shot picture are exposed one after another, but the exposure time of each part is the same. Since the timing of the exposure of the upper and lower parts of the traditional exposure method is not synchronized, it will cause the upper and lower parts of the same picture to have ghosting, affecting the image quality. At the same time, the image sensor 1052 implements anti-shake processing for all frame images by acquiring the target size of all frame images.

[0108] Specifically, the integrated chip 1051 obtains jitter information by connecting to an external gyroscope, and the jitter information includes the angle and speed of the jitter. The integrated chip 1051 determines whether the camera module is in a jitter state based on the obtained jitter information. If so, the pre-stored maximum jitter angle allowed by the camera module, the size of a single pixel and the static effective focal length of the camera module are obtained; the target size of all frame images that generate jitter is determined based on the maximum jitter angle allowed by the camera module, the size of a single pixel and the static effective focal length of the camera module; and the target size of all frame images is sent to the image sensor 1052; the image sensor 1052 crops all frame images based on the target size of all frame images to achieve anti-shake.

[0109] The connector 106 is electrically connected to the circuit board 105 for implementing signal transmission or power transmission.

[0110] It can be seen that the anti-shake camera module of the present invention does not include an optical anti-shake driver chip or an optical anti-shake motor, but according to the anti-shake method provided in the above embodiment, a corresponding image size can be determined according to the maximum allowable shake angle, and then the center point can be determined. Finally, each frame of the shaken image can be cropped to the target size based on the center point, which is equivalent to cropping the blurred pixels at the edge. Ultimately, anti-shake is achieved without an optical anti-shake motor or an optical anti-shake driver chip, thereby improving the imaging quality of the camera module and reducing the anti-shake cost of the camera module, shortening the process test cycle, and reducing the test difficulty.

[0111] Through one or more embodiments of the present invention, the present invention has the following beneficial effects or advantages:

[0112] The present invention provides an anti-shake method, device, camera module and equipment for a camera module, the method comprising: when it is determined that the camera module generates shake, obtaining the maximum shake angle allowed by the camera module, the size of a single pixel and the static effective focal length of the camera module; determining the target size of all frame images generating shake according to the maximum shake angle allowed by the camera module, the size of the single pixel and the static effective focal length of the camera module; determining the target center point of all frame images according to the target frame image; cropping all frame images based on the target size and the target center point to crop out blurred pixels generated by the shake; in this way, in a shaken state, blurred pixels are generally located at the edge of the image, and the present invention can first determine a corresponding image size according to the maximum shake angle allowed, then determine the center point, and finally crop each shaken frame image to the target size based on the center point, which is equivalent to cropping out the blurred pixels located at the edge, and finally achieving anti-shake without an anti-shake motor or an anti-shake chip, thereby improving the imaging quality of the camera module and reducing the anti-shake cost of the camera module.

[0113] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.

[0114] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for stabilizing a camera module, wherein the image sensor of the camera module is an image sensor that supports global exposure, characterized in that: The method comprises: When it is determined that the camera module is shaking, obtaining a maximum shaking angle allowed by the camera module, a single pixel size, and a static effective focal length of the camera module; determining a target size of all frame images that are shaking according to the maximum shaking angle allowed by the camera module, the single pixel size, and the static effective focal length of the camera module; Determine the target center point of all the frame images according to the target frame image; All the frame images are cropped based on the target size and the target center point to crop out blurred pixels caused by shaking.

2. The method according to claim 1, wherein The step of determining the target size of all frame images that generate jitter according to the maximum jitter angle allowed by the camera module, the single pixel size, and the static effective focal length of the camera module includes: The target size of all frames of images that produce jitter is determined according to the formula P′=EFL×tanθ / P; where, The EFL is the static effective focal length of the camera module, θ is the maximum jitter angle, and P is the size of a single pixel.

3. The method according to claim 1, wherein The target frame image includes multiple frame images generated in a shaking state; and determining the target center point of all the frame images according to the target frame image includes: Determine the center point of each target frame image respectively; The average value of the horizontal coordinates of the center points of the target frame images is determined as the horizontal coordinate of the target center point, and the average value of the vertical coordinates of the center points of the target frame images is determined as the vertical coordinate of the target center point.

4. The method according to claim 1, wherein The target frame image includes multiple frame images generated in a shaking state; and determining the target center point of all the frame images according to the target frame image includes: Determine the center point of each target frame image respectively; A circle is fitted according to the center point of each target frame image, and the origin of the circle is determined as the target center point.

5. The method according to claim 3 or 4, wherein: The step of respectively determining the center point of each target frame image includes: For any target frame image, obtaining a first number of pixels between a center point of the image and an edge of one side of the image, and obtaining a second number of pixels between the center point of the image and an edge of another side of the image, wherein the two side edges are adjacent; The first number of pixels is determined as the horizontal coordinate of the center point of the target frame image, and the second number of pixels is determined as the vertical coordinate of the center point of the target frame image.

6. The method according to claim 1, wherein The cropping of all the frame images based on the target size and the target center point includes: Determining a region to be cropped of all the frame images based on the target center point and the target size, wherein the region to be cropped is located around all the frame images; The to-be-cropped areas of all the frame images are cropped.

7. An anti-shake device for a camera module, characterized in that: The image sensor of the camera module is an image sensor that supports global exposure, and the device includes: The first determining unit is configured to, when determining that the camera module is shaking, obtain a maximum shaking angle allowed by the camera module, a single pixel size, and a static effective focal length of the camera module; and determine a target size of all frame images that are shaking according to the maximum shaking angle allowed by the camera module, the single pixel size, and the static effective focal length of the camera module; A second determining unit, configured to determine a target center point of all the frame images according to the target frame image; A cropping unit is used to crop all the frame images based on the target size and the target center point to crop out blurred pixels caused by shaking.

8. The device according to claim 7, wherein The first determining unit is specifically configured to: The target size of all frames of images that produce jitter is determined according to the formula P′=EFL×tanθ / P; where, The EFL is the static effective focal length of the camera module, θ is the maximum jitter angle, and P is the pixel size of a single pixel.

9. An anti-shake camera module, characterized in that: The camera module includes: a lens, a base, optical glass, a circuit board, an integrated chip and an image sensor; The lens is installed on one side of the base, the lens is used for imaging, and the base is used to fix the lens; The optical glass is located on the side of the base opposite to the lens; The integrated chip is located on the circuit board, and the integrated chip exchanges jitter information with the outside world. When the camera module is determined to have jittered based on the acquired jitter information, the target size of all frame images that have jittered is determined; and the target size of all frame images is sent to the image sensor. The image sensor is located on the circuit board, and the image sensor is an image sensor that supports global exposure, and implements anti-shake processing on all frame images by acquiring target sizes of all frame images; The circuit board is located on a side of the optical glass opposite to the base, and is used to provide a supporting platform and electrical connections for the image sensor and the integrated chip.

10. The anti-shake camera module according to claim 9, wherein: The integrated chip obtains jitter information by connecting to an external gyroscope, the jitter information including the angle and speed of the jitter. The integrated chip determines whether the camera module is in a jitter state based on the obtained jitter information. If so, the integrated chip obtains pre-stored maximum jitter angle allowed by the camera module, a single pixel size, and a static effective focal length of the camera module; Determining a target size of all frame images that generate jitter according to a maximum jitter angle allowed by the camera module, the size of a single pixel, and the static effective focal length of the camera module; The target sizes of all frame images are sent to the image sensor; and the image sensor crops all frame images based on the target sizes of all frame images to achieve anti-shake.