Optical image stabilization calibration method, device, equipment and medium
By acquiring the photosensitive image on the lens of the test camera module and establishing a linear relationship between the driving current and the moving distance, the problems of complex and high cost of optical anti-shake calibration are solved, and the effect of simplifying calibration and reducing costs is achieved, ignoring the gravity of the lens Influence.
Patent Information
- Application Number
- CN202111543783.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2041-12-16
AI Technical Summary
The existing optical anti-shake calibration methods are complex and have high calibration costs. They rely on Hall magnets and position sensors, and the gravity influence of the lens is difficult to ignore.
By acquiring photosensitive images and controlling the motor drive current when the lens of the test camera module is placed vertically or horizontally, establishing a linear relationship for optical anti-shake calibration, ignoring the influence of lens gravity, and avoiding the use of Hall components and position sensors.
A simplified optical anti-shake calibration method is realized, which reduces calibration costs, improves calibration efficiency and accuracy, and avoids the negative impact of lens gravity on optical anti-shake.
Smart Images

Figure CN114222115B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical technology, and in particular to an optical image stabilization method, device, equipment and medium. Background Art
[0002] When taking pictures, in order to improve image quality, the camera must focus while reducing or eliminating the impact of camera shake, so cameras are generally equipped with an optical image stabilization mechanism.
[0003] Before cameras and other imaging instruments leave the factory, the optical image stabilization is calibrated. The optical image stabilization calibration in related technologies mainly relies on Hall magnets and position sensors, and its calibration method is complex and the calibration cost is high. Summary of the invention
[0004] The embodiments of the present application provide an optical image stabilization calibration method, device, equipment and medium, thereby solving the technical problems of complex optical image stabilization calibration methods and high calibration costs in the prior art, and achieving the technical effect of simplifying the optical image stabilization calibration method and reducing the calibration cost.
[0005] In a first aspect, the present application provides an optical image stabilization calibration method, the method comprising:
[0006] When the lens of the test camera module is placed vertically and is in the process of photographing the test image, a first photosensitive image of the test image on the imaging sensor of the test camera module is obtained;
[0007] Determine a first target position of a first imaging center of a first photosensitive image on an imaging sensor;
[0008] During the process of the first imaging center on the imaging sensor moving along the first preset path, obtaining a first linear relationship between the driving current of the motor of the test camera module and the moving distance of the first imaging center, wherein the first target position is on the first preset path;
[0009] According to the first linear relationship, optical image stabilization is calibrated for the test camera module.
[0010] Further, after determining the first imaging center of the first photosensitive image at the first target position on the imaging sensor, the method further includes:
[0011] When the lens is in a horizontal position, the relative position relationship between the test camera module and the test chart is a target relative position relationship, and in the process of photographing the side view, a second photosensitive image of the test chart on the imaging sensor is obtained; wherein the target relative position relationship refers to the relative position relationship between the test camera module and the test chart when the first photosensitive image is obtained;
[0012] In the process of the second imaging center of the second photosensitive image on the imaging sensor moving toward the first target position, obtaining a second linear relationship between the driving current of the motor and the moving distance of the second imaging center;
[0013] The optical image stabilization is calibrated on the test camera module according to the first linear relationship and the second linear relationship.
[0014] Further, after acquiring the second photosensitive image of the test pattern on the imaging sensor, the method further includes:
[0015] determining a second target position of a second imaging center on the imaging sensor;
[0016] In the process of the second imaging center on the imaging sensor moving along the second preset path, obtaining a third linear relationship between the driving current of the motor and the moving distance of the second imaging center;
[0017] According to the first linear relationship, the second linear relationship and the third linear relationship, optical image stabilization calibration is performed on the test camera module.
[0018] Further, the second preset path includes two paths with the second target position as a perpendicular foot; after acquiring the second photosensitive image of the test pattern on the imaging sensor, the method further includes:
[0019] When the angular bisectors of the two paths are in a vertical state and the second imaging center on the imaging sensor moves along any one of the two paths, a fourth linear relationship between the driving current of the motor and the moving distance of the second imaging center is obtained;
[0020] According to the first linear relationship, the second linear relationship and the fourth linear relationship, optical image stabilization calibration is performed on the test camera module.
[0021] Furthermore, the first preset path includes a first path and a second path with the first target position as a perpendicular foot; in the process of the first imaging center on the imaging sensor moving along the first preset path, obtaining a first linear relationship between the driving current of the motor of the test camera module and the moving distance of the first imaging center includes:
[0022] In a process in which a first imaging center on the imaging sensor moves along a first path, obtaining a linear relationship between a driving current of the motor and a moving distance of the first imaging center;
[0023] When the first imaging center moves along the second path on the imaging sensor, a linear relationship between the driving current of the motor and the moving distance of the first imaging center is obtained.
[0024] Furthermore, the test pattern is a circle with a preset radius.
[0025] In a second aspect, the present application provides an optical image stabilization calibration device, the device comprising:
[0026] An acquisition module, used for acquiring a first photosensitive image of the test image on an imaging sensor of the test camera module when the lens of the test camera module is placed vertically and in the process of photographing the test image;
[0027] A determination module, used to determine a first target position of a first imaging center of a first photosensitive image on an imaging sensor;
[0028] The acquisition module is further used to acquire a first linear relationship between a driving current of a motor of the test camera module and a moving distance of the first imaging center during a process in which the first imaging center on the imaging sensor moves along a first preset path, wherein the first target position is on the first preset path;
[0029] The calibration module is used to perform optical image stabilization calibration on the test camera module according to the first linear relationship.
[0030] Furthermore, the acquisition module is also used to:
[0031] When the lens is in a horizontal position, the relative position relationship between the test camera module and the test chart is a target relative position relationship, and in the process of photographing the side view, a second photosensitive image of the test chart on the imaging sensor is obtained; wherein the target relative position relationship refers to the relative position relationship between the test camera module and the test chart when the first photosensitive image is obtained;
[0032] In the process of the second imaging center of the second photosensitive image on the imaging sensor moving toward the first target position, obtaining a second linear relationship between the driving current of the motor and the moving distance of the second imaging center;
[0033] The calibration module is also used to perform optical image stabilization calibration on the test camera module according to the first linear relationship and the second linear relationship.
[0034] In a third aspect, the present application provides an electronic device, including:
[0035] processor;
[0036] a memory for storing processor-executable instructions;
[0037] The processor is configured to execute to implement an optical image stabilization method.
[0038] In a fourth aspect, the present application provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute an optical image stabilization calibration method.
[0039] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0040] The present application can ignore the influence of gravity on the lens when the lens of the test camera module is in a vertical upward or downward state, obtain the first photosensitive image of the test image, and control the motor to drive the lens to move the first photosensitive image. Then, the optical image stabilization of the test camera module can be calibrated according to the relationship between the driving current of the motor and the moving distance of the first photosensitive image. The calibration method provided by this embodiment is simple and does not need to rely on Hall elements or position sensors, so that the calibration cost is greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A schematic diagram of a flow chart of an optical image stabilization calibration method provided in this application;
[0043] Figure 2 It is a structural diagram of the test diagram;
[0044] Figure 3 is a schematic diagram of the three-dimensional rectangular coordinates of the plane where the imaging sensor is located;
[0045] Figure 4 is a schematic diagram of a first preset path;
[0046] Figure 5 A schematic diagram of the flow of another optical image stabilization calibration method provided in this application;
[0047] Figure 6 is a schematic diagram of the positional relationship between the first imaging center and the second imaging center;
[0048] Figure 7 A schematic diagram of the flow of another optical image stabilization calibration method provided in this application;
[0049] Figure 8 is a schematic diagram of a second preset path;
[0050] Fig. 9 is a schematic diagram of an angle bisector of a second preset path;
[0051] Fig.10 A schematic diagram of the structure of an optical image stabilization calibration device provided in this application;
[0052] Fig.11 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0053] The embodiment of the present application solves the technical problems of complex optical image stabilization methods and high calibration costs in the prior art by providing an optical image stabilization calibration method.
[0054] The technical solution of the embodiment of the present application is to solve the above technical problems, and the overall idea is as follows:
[0055] An optical image stabilization calibration method comprises: when the lens of a test camera module is placed vertically and in the process of shooting a test image, obtaining a first photosensitive image of the test image on an imaging sensor of the test camera module; determining a first target position of a first imaging center of the first photosensitive image on the imaging sensor; when the first imaging center moves along a first preset path on the imaging sensor, obtaining a first linear relationship between a driving current of a motor of the test camera module and a moving distance of the first imaging center, wherein the first target position is on the first preset path; and performing optical image stabilization calibration on the test camera module according to the first linear relationship.
[0056] This method can ignore the influence of gravity on the lens when the lens of the test camera module is in a vertical upward or downward state, obtain the first photosensitive image of the test image, and control the motor to drive the lens to move the first photosensitive image. Then, based on the relationship between the driving current of the motor and the moving distance of the first photosensitive image, the optical image stabilization of the test camera module can be calibrated. The calibration method provided by this embodiment is simple and does not need to rely on Hall elements or position sensors, so that the calibration cost is greatly reduced.
[0057] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0058] First of all, the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0059] The optical image stabilization calibration method provided in this embodiment does not rely on Hall elements and position sensors for optical image stabilization or optical image stabilization calibration. Therefore, the optical image stabilization calibration method provided in this embodiment can calibrate a camera module that does not include Hall elements and position sensors.
[0060] When the camera module shakes, the motor in the camera module is mainly used to push the lens, thereby adjusting the impact of the shake on the acquisition of the photosensitive image. When the camera module is actually in use, the orientation of the lens is uncertain, so the weight of the lens itself may or may not have a negative impact on the optical image stabilization. This embodiment provides different implementation plans for the two situations of "the weight of the lens will have a negative impact on the optical image stabilization" and "the weight of the lens will not have a negative impact on the optical image stabilization."
[0061] First, combine Figure 1 In this embodiment, the solution (including steps S11 to S14) of "the weight of the lens will not have a negative impact on the optical image stabilization" is first described as follows:
[0062] Step S11, when the lens of the test camera module is placed vertically and is in the process of photographing a test chart, a first photosensitive image of the test chart on the imaging sensor of the test camera module is obtained.
[0063] When the lens is facing vertically upward or downward, the direction of gravity of the lens is parallel to the central axis of the lens. At this time, the motor drives the lens to move on the horizontal plane, and the gravity of the lens does not have a negative impact on the movement of the lens.
[0064] Therefore, by placing the lens of the test camera module in a vertical upward or downward state and using the test camera module to shoot the test chart, a first photosensitive image of the test chart can be obtained on the imaging sensor of the test camera module.
[0065] The test pattern can be a circle with a preset radius. During the calibration process, a reference point needs to be determined. In this embodiment, the center of the test pattern circle is used as the reference point. The distances between the points on the edge of the circle and the center of the circle are all equal. The location of the center of the circle can be accurately determined based on the points on the edge of the circle. For example, the test pattern can be as follows: Figure 2 The circle on the left side, where O is the point, A1, A2, A3 are points on the circumference, and line segments OA1, OA2, OA3 have the same length. In actual operation, the location of point O can be accurately determined through image recognition technology. Even if the shooting environment changes (for example, the shooting light changes), the distance between the point on the edge of the circle and the center of the circle will change at equal distances, that is, the distance between the point on the edge of the circle and the center of the circle is always equal, then the center of the circle determined based on the point on the edge of the circle is always unchanged, and the location of the center of the circle can be accurately determined. For example, due to changes in light, when imaging, Figure 2 The diameter of the circle on the left side of the center becomes smaller, forming Figure 2 The image of the circle on the right side of the image is Figure 2 The line segments OA1, OA2, and OA3 of the circle on the left side of the middle circle are equidistant, and finally form Figure 2The line segments OB1, OB2, and OB3 of the circle on the right side have the same length, so the position of the point O can still be accurately determined by image recognition technology. Therefore, in this embodiment, the center of the circle is used as a reference point for optical image stabilization calibration to reduce calibration errors.
[0066] Step S12, determining a first target position of a first imaging center of the first photosensitive image on the imaging sensor.
[0067] The first imaging center of the first photosensitive image is located at a certain position on the imaging sensor as the first target position. The first imaging center may be the image center of the first photosensitive image. For example, when the first photosensitive image is Figure 2 When the first light-sensitive image is a circle as shown, the first imaging center may be the center O of the circle in the circular image. For another example, when the first light-sensitive image is a square, the first imaging center may be the intersection of the diagonal lines in the square image.
[0068] The first target position may be an initial position of the first imaging center on the imaging sensor, or may be a position of the first imaging center on the imaging sensor after the first photosensitive image is stabilized, and this embodiment does not impose any limitation on this.
[0069] For ease of understanding and memorization, the first target position can be recorded as the origin of a three-dimensional rectangular coordinate system, where the Z axis of the three-dimensional rectangular coordinate system is parallel to the central axis of the imaging sensor, and the X axis and Y axis are in the plane where the imaging sensor is located. Figure 3 (where O is the first target position, i.e. the origin of the three-dimensional rectangular coordinate system).
[0070] Step S13, when the first imaging center on the imaging sensor moves along the first preset path, obtain the first linear relationship between the driving current of the motor of the test camera module and the moving distance of the first imaging center, wherein the first target position is on the first preset path.
[0071] The optical image stabilization calibration is essentially to calibrate the relationship between the motor driving current and the moving distance of the lens. Therefore, by controlling the motor to push the lens, the first imaging center moves along the first preset path on the imaging sensor, and the moving distance of the first imaging center and the motor driving current are recorded to calibrate the test camera module.
[0072] The first preset path may be any path. The first preset path provided in this embodiment may be as follows: Figure 4The line segments L1 and L2 shown. That is, the first preset path provided in this embodiment includes the first path L1 and the second path L2 perpendicular to the first target position O, and the motor of the test camera module is controlled to push the lens so that the first imaging center moves along the first path L1 and the second path L2 on the imaging sensor respectively. In this embodiment, the first path L1 and the second path L2 perpendicular to each other are used as the first preset path, which can simplify the calculation process of the first linear relationship, improve the calculation efficiency of the first linear relationship, and thus improve the calibration efficiency.
[0073] That is, the first linear relationship includes:
[0074] In a process in which a first imaging center on the imaging sensor moves along a first path, obtaining a linear relationship between a driving current of the motor and a moving distance of the first imaging center;
[0075] When the first imaging center moves along the second path on the imaging sensor, a linear relationship between the driving current of the motor and the moving distance of the first imaging center is obtained.
[0076] like Figure 4 As shown, the first path and the second path can be understood as paths L1 and L2 located on the X-axis and Y-axis in a three-dimensional rectangular coordinate system, respectively. The three-dimensional rectangular coordinate system takes the first target position as the origin, the Z-axis of the three-dimensional rectangular coordinate system is parallel to the central axis of the imaging sensor, and the X-axis and the Y-axis are in the plane where the imaging sensor is located.
[0077] The first imaging center is controlled to move along L1 on the X-axis and L2 on the Y-axis, and then the relationship between the driving current of the motor on the X-axis and the moving distance of the first imaging center, and the relationship between the driving current of the motor on the Y-axis and the moving distance of the first imaging center can be determined. When it is necessary to determine the driving current of the motor when the first imaging center moves to any position in the lens, the driving current decomposed on the X-axis and the Y-axis can be determined first, and then the driving current of the motor that finally reaches any position can be determined based on the driving current decomposed on the X-axis and the Y-axis.
[0078] The first linear relationship between the driving current of the motor and the moving distance of the first imaging center can also be expressed by a straight line equation y=kx, where y is the moving distance of the first imaging center, x is the driving current of the motor, and k is the slope.
[0079] Step S14: performing optical image stabilization calibration on the test camera module according to the first linear relationship.
[0080] According to the first linear relationship between the driving current of the motor and the moving distance of the first imaging center when the first imaging center moves along the first preset path on the imaging sensor, the driving current required by the motor when the first imaging center moves each unit distance can be determined, and the corresponding data is stored in the test camera module to complete the optical image stabilization calibration of the test camera module for use when the test camera module needs to perform optical image stabilization.
[0081] To sum up, this embodiment can ignore the influence of gravity on the lens when the lens of the test camera module is in a vertical upward or downward state, obtain the first photosensitive image of the test image, and control the motor to drive the lens to move the first photosensitive image. Then, based on the relationship between the driving current of the motor and the moving distance of the first photosensitive image, the optical image stabilization of the test camera module can be calibrated. The calibration method provided by this embodiment is simple and does not need to rely on Hall elements or position sensors, so that the calibration cost is greatly reduced.
[0082] Secondly, combined Figure 5 In this embodiment, the solution of "the weight of the lens will have a negative impact on optical image stabilization" is described as follows:
[0083] After executing the above step S12, that is, after determining the first target position of the first imaging center of the first photosensitive image on the imaging sensor, the method includes steps S21 to S23.
[0084] Step S21, when the lens is in a horizontal position, the relative position relationship between the test camera module and the test chart is the target relative position relationship, and in the process of shooting a side view, a second photosensitive image of the test chart on the imaging sensor is obtained; wherein the target relative position relationship refers to the relative position relationship between the test camera module and the test chart when obtaining the first photosensitive image.
[0085] When the lens is placed horizontally, that is, the central axis of the lens is in a horizontal state, the gravity of the lens is vertically downward. When the lens moves in a vertical plane, the gravity of the lens will affect the movement of the lens.
[0086] For example, when the lens is placed vertically upward or downward, the gravity of the lens will not affect the movement of the lens. At this time, the current required for the motor to drive the lens to move in the target direction (such as the X direction) is 50mA. However, when the lens is placed horizontally, if the X direction is vertically upward, the motor drives the lens to move in the X direction, and it is necessary to overcome the gravity of the lens. At this time, the motor current needs to be 60mA. If the X direction is vertically downward, the motor drives the lens to move in the X direction. Not only does it not need to overcome the gravity of the lens, but gravity will also become the power to push the lens. At this time, the motor current needs to be 40mA.
[0087] In order to determine the influence of gravity on the lens, the relative position relationship between the test camera module and the test image needs to be kept consistent with the relative position relationship when the first photosensitive image is acquired, so as to reduce the calibration error.
[0088] Step S22, when the second imaging center of the second photosensitive image on the imaging sensor moves toward the first target position, a second linear relationship between the driving current of the motor and the moving distance of the second imaging center is obtained.
[0089] The first target position refers to the position of the first imaging center of the first photosensitive image on the imaging sensor, that is, the first imaging center obtained when the lens is placed vertically to shoot the test image. The second photosensitive image and the first photosensitive image are shot under the same conditions. Originally, the imaging center of the second photosensitive image coincides with the imaging center of the first photosensitive image. However, due to the influence of gravity of the lens, the second imaging center of the second photosensitive image deviates from the first imaging center of the first photosensitive image.
[0090] like Figure 6 As shown, point O is the first imaging center, and point O' is the second imaging center. Due to the gravity of the lens, point O' and point O do not coincide.
[0091] In order to take into account the influence of gravity, the motor is controlled to push the lens so that the second imaging center moves to the first target position, and a second linear relationship between the driving current of the motor and the moving distance of the second imaging center is determined during the process of the second imaging center moving to the first target position. Generally, the second imaging center moves to the first target position along the shortest path. In other words, Figure 6 For example, the second imaging center originally at point O' is moved along the shortest straight line to the position of point O. When the second imaging center moves to the position of the first imaging center, it is considered that the lens has overcome the influence of gravity. At this time, although the camera module is in a horizontal shooting state, the image of the test chart taken when the lens is placed vertically is the same.
[0092] Step S23, performing optical image stabilization calibration on the test camera module according to the first linear relationship and the second linear relationship.
[0093] According to the second linear relationship, the influence of the gravity of the lens on the driving current of the motor can be determined. According to the first linear relationship and the second linear relationship, when the lens is affected by gravity, the driving current required by the motor when the first imaging center moves a unit distance can be determined, and the corresponding data can be stored in the test camera module to complete the optical image stabilization calibration of the test camera module, thereby improving the calibration accuracy.
[0094] In actual applications, reverse compensation of the motor current is performed according to calibration data, which can reduce the effect of gravity on the photosensitive image, and in optimal cases can even eliminate the effect of gravity on the photosensitive image.
[0095] To sum up, this embodiment can take into account the influence of gravity on the lens when the lens of the test camera module is in a horizontal state, by obtaining the second photosensitive image of the test image and controlling the motor to drive the lens to move the second photosensitive image so that the second imaging center coincides with the first target position, thereby determining the influence of the gravity of the lens on the optical image stabilization, and then calibrating the optical image stabilization of the test camera module based on the second linear relationship. The calibration method provided by this embodiment is simple and does not need to rely on Hall elements or position sensors, thereby greatly reducing the calibration cost.
[0096] Finally, based on the above calibration scheme, this embodiment provides the following Figure 7 The calibration scheme shown.
[0097] After acquiring the second photosensitive image of the test pattern on the imaging sensor, that is, after step S22, the method further includes:
[0098] Step S31, determining a second target position of a second imaging center on the imaging sensor.
[0099] A certain position of the second imaging center of the second photosensitive image on the imaging sensor is used as the second target position. For example, the initial position of the second imaging center on the imaging sensor can be used as the second target position. Figure 8 As shown, O' is taken as the second target position.
[0100] Step S32, when the second imaging center on the imaging sensor moves along the second preset path, a third linear relationship between the driving current of the motor and the moving distance of the second imaging center is obtained.
[0101] The second preset path can be any two straight lines on the plane where the imaging sensor is located with the second target position as the intersection point, or can be two straight line paths with the second target position as the foot of the perpendicular. Figure 8 As shown, the second preset path may be a line segment L3 along the X-axis and a line segment L4 along the Y-axis, wherein L3 and L4 are perpendicular to each other.
[0102] The motor is controlled to drive the lens so that the second imaging center moves along the second preset path, and a linear relationship between the driving current of the motor and the moving distance of the second imaging center can be determined.
[0103] Step S33, performing optical image stabilization calibration on the test camera module according to the first linear relationship, the second linear relationship and the third linear relationship.
[0104] By combining the first linear relationship, the second linear relationship and the third linear relationship, optical image stabilization calibration is performed on the test camera module to improve the calibration accuracy.
[0105] Furthermore, when the second preset path includes two paths with the second target position as a perpendicular foot, the following calibration scheme may be adopted:
[0106] Step S41, when the angular bisectors of the two paths are in a vertical state and the second imaging center on the imaging sensor moves along any one of the two paths, a fourth linear relationship between the driving current of the motor and the moving distance of the second imaging center is obtained;
[0107] Step S42, performing optical image stabilization calibration on the test camera module according to the first linear relationship, the second linear relationship and the fourth linear relationship.
[0108] When the angular bisectors of the two paths are in a vertical state, the gravity of the lens is evenly distributed on the corresponding parallel lines on the two paths, and the linear relationship between the driving current of the motor on the two paths and the moving distance of the imaging center can be quickly determined. Specifically, by calibrating the above two mutually perpendicular paths, the linear relationship between the driving current on the axis, diagonal line or non-axis and the moving distance of the imaging center within the calibration range can be obtained.
[0109] For example, Figure 8 and Fig. 9 As shown, line segments L3 and L4 are two paths, and the corresponding angle bisector is line segment L5. When L5 coincides with the direction of gravity of the lens, the gravity of the lens is evenly divided in the directions of line segments L3 and L4. Therefore, the linear relationship between the motor drive current and the moving distance of the imaging center in the X-axis and Y-axis directions can be determined at one time, thereby improving the efficiency of optical image stabilization calibration of the test camera module.
[0110] Based on the same inventive concept, this embodiment provides Fig.10 An optical image stabilization calibration device is shown, the device comprising:
[0111] The acquisition module 101 is used to acquire a first photosensitive image of the test image on the imaging sensor of the test camera module when the lens of the test camera module is placed vertically and is in the process of photographing the test image; the test image is a circle with a preset radius.
[0112] A determination module 102 is used to determine a first target position of a first imaging center of a first photosensitive image on an imaging sensor;
[0113] The acquisition module 101 is further used to acquire a first linear relationship between a driving current of a motor of the test camera module and a moving distance of the first imaging center during a process in which the first imaging center on the imaging sensor moves along a first preset path, wherein the first target position is on the first preset path;
[0114] The calibration module 103 is used to perform optical image stabilization calibration on the test camera module according to the first linear relationship.
[0115] The acquisition module 101 is also used for:
[0116] When the lens is in a horizontal position, the relative position relationship between the test camera module and the test chart is a target relative position relationship, and in the process of photographing the side view, a second photosensitive image of the test chart on the imaging sensor is obtained; wherein the target relative position relationship refers to the relative position relationship between the test camera module and the test chart when the first photosensitive image is obtained;
[0117] In the process of the second imaging center of the second photosensitive image on the imaging sensor moving toward the first target position, obtaining a second linear relationship between the driving current of the motor and the moving distance of the second imaging center;
[0118] The calibration module 103 is further used to perform optical image stabilization calibration on the test camera module according to the first linear relationship and the second linear relationship.
[0119] The determination module 102 is further used to determine a second target position of a second imaging center on the imaging sensor;
[0120] The acquisition module 101 is further used to acquire a third linear relationship between the driving current of the motor and the moving distance of the second imaging center during the process of the second imaging center on the imaging sensor moving along the second preset path;
[0121] The calibration module 103 is further used to perform optical image stabilization calibration on the test camera module according to the first linear relationship, the second linear relationship and the third linear relationship.
[0122] The second preset path includes two paths with the second target position as a perpendicular foot.
[0123] The acquisition module 101 is further used to acquire a fourth linear relationship between the driving current of the motor and the moving distance of the second imaging center when the angular bisectors of the two paths are in a vertical state and the second imaging center on the imaging sensor moves along any one of the two paths;
[0124] The calibration module 103 is further used to perform optical image stabilization calibration on the test camera module according to the first linear relationship, the second linear relationship and the fourth linear relationship.
[0125] The first preset path includes a first path and a second path with the first target position as a perpendicular foot. The acquisition module is also used for:
[0126] In a process in which a first imaging center on the imaging sensor moves along a first path, obtaining a linear relationship between a driving current of the motor and a moving distance of the first imaging center;
[0127] When the first imaging center moves along the second path on the imaging sensor, a linear relationship between the driving current of the motor and the moving distance of the first imaging center is obtained.
[0128] Based on the same inventive concept, this embodiment provides Fig.11 An electronic device as shown includes:
[0129] Processor 111;
[0130] A memory 112 for storing instructions executable by the processor 111;
[0131] The processor 111 is configured to execute to implement an optical image stabilization method.
[0132] Based on the same inventive concept, this embodiment provides a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor 111 of the electronic device, the electronic device can implement an optical image stabilization calibration method.
[0133] Since the electronic device introduced in this embodiment is an electronic device used to implement the information processing method in the embodiment of the present application, based on the information processing method introduced in the embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as a person skilled in the art implements the electronic device used by the information processing method in the embodiment of the present application, it belongs to the scope of protection of this application.
[0134] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0135] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0138] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other 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 invention.
[0139] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An optical image stabilization calibration method, characterized in that: For calibrating a test camera module that does not include a Hall element and a position sensor, the method comprises: When the lens of the test camera module is placed vertically and is in the process of photographing a test chart, a first photosensitive image of the test chart on the imaging sensor of the test camera module is obtained; Determine a first target position of a first imaging center of the first photosensitive image on the imaging sensor; The motor is controlled to push the lens so that the first imaging center moves along a first preset path on the imaging sensor. During the movement of the first imaging center along the first preset path on the imaging sensor, the moving distance of the first imaging center and the driving current of the motor are recorded to obtain a first linear relationship between the driving current of the motor of the test camera module and the moving distance of the first imaging center, wherein the first target position is on the first preset path; the first preset path includes a first path and a second path that are perpendicular to each other, and the motor of the test camera module is controlled to push the lens so that the first imaging center moves along the first path and the second path on the imaging sensor respectively; In the process of the first imaging center on the imaging sensor moving along the first path, a linear relationship between the driving current of the motor and the moving distance of the first imaging center is obtained; in the process of the first imaging center on the imaging sensor moving along the second path, a linear relationship between the driving current of the motor and the moving distance of the first imaging center is obtained; According to the first linear relationship, performing optical image stabilization calibration on the test camera module; When it is necessary to determine the driving current of the motor that moves the first imaging center to any position in the lens, the driving current decomposed into the first path and the second path can be determined first, and then the driving current of the motor that finally reaches any position can be determined based on the driving current decomposed into the first path and the second path, so as to perform optical image stabilization on the test camera module.
2. The method according to claim 1, characterized in that After determining a first target position of a first imaging center of the first photosensitive image on the imaging sensor, the method further includes: When the lens is in a horizontal position, the relative position relationship between the test camera module and the test chart is a target relative position relationship, and in the process of photographing the test chart, a second photosensitive image of the test chart on the imaging sensor is obtained; wherein the target relative position relationship refers to the relative position relationship between the test camera module and the test chart when the first photosensitive image is obtained; In the process of the second imaging center of the second photosensitive image on the imaging sensor moving toward the first target position, obtaining a second linear relationship between the driving current of the motor and the moving distance of the second imaging center; According to the first linear relationship and the second linear relationship, optical image stabilization calibration is performed on the test camera module.
3. The method according to claim 2, characterized in that After acquiring a second photosensitive image of the test chart on the imaging sensor, the method further includes: determining a second target position of the second imaging center on the imaging sensor; In the process of the second imaging center on the imaging sensor moving along a second preset path, obtaining a third linear relationship between the driving current of the motor and the moving distance of the second imaging center; According to the first linear relationship, the second linear relationship and the third linear relationship, optical image stabilization calibration is performed on the test camera module.
4. The method according to claim 3, characterized in that The second preset path includes two paths with the second target position as a perpendicular foot; after acquiring a second photosensitive image of the test chart on the imaging sensor, the method further includes: When the angular bisectors of the two paths are in a vertical state and the second imaging center on the imaging sensor moves along any one of the two paths, a fourth linear relationship between the driving current of the motor and the moving distance of the second imaging center is obtained; According to the first linear relationship, the second linear relationship and the fourth linear relationship, optical image stabilization calibration is performed on the test camera module.
5. The method according to claim 1, characterized in that The test pattern is a circle with a preset radius.
6. An optical image stabilization calibration device, characterized in that: Used to calibrate a test camera module that does not include a Hall element and a position sensor, the device comprises: An acquisition module, configured to acquire a first photosensitive image of the test image on an imaging sensor of the test camera module when the lens of the test camera module is vertically placed and in the process of photographing the test image; A determination module, configured to determine a first target position of a first imaging center of the first photosensitive image on the imaging sensor; The acquisition module is further used to control the motor to push the lens so that the first imaging center moves along a first preset path on the imaging sensor. During the process of the first imaging center moving along the first preset path on the imaging sensor, the moving distance of the first imaging center and the driving current of the motor are recorded to obtain a first linear relationship between the driving current of the motor of the test camera module and the moving distance of the first imaging center, wherein the first target position is on the first preset path; the first preset path includes a first path and a second path that are perpendicular to each other, and the motor of the test camera module is controlled to push the lens so that the first imaging center moves along the first path and the second path on the imaging sensor respectively; during the process of the first imaging center moving along the first path on the imaging sensor, the linear relationship between the driving current of the motor and the moving distance of the first imaging center is obtained; during the process of the first imaging center moving along the second path on the imaging sensor, the linear relationship between the driving current of the motor and the moving distance of the first imaging center is obtained; A calibration module, configured to perform optical image stabilization calibration on the test camera module according to the first linear relationship; The anti-shake module is used to first determine the driving current decomposed into the first path and the second path when it is necessary to determine the driving current of the motor that moves the first imaging center to any position in the lens, and then determine the driving current of the motor that finally reaches any position based on the driving current decomposed into the first path and the second path, so as to perform optical image stabilization on the test camera module.
7. The device according to claim 6, characterized in that The acquisition module is also used for: When the lens is in a horizontal position, the relative position relationship between the test camera module and the test chart is a target relative position relationship, and in the process of photographing the test chart, a second photosensitive image of the test chart on the imaging sensor is obtained; wherein the target relative position relationship refers to the relative position relationship between the test camera module and the test chart when the first photosensitive image is obtained; In the process of the second imaging center of the second photosensitive image on the imaging sensor moving toward the first target position, obtaining a second linear relationship between the driving current of the motor and the moving distance of the second imaging center; The calibration module is also used to perform optical image stabilization calibration on the test camera module according to the first linear relationship and the second linear relationship.
8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute to implement an optical image stabilization calibration method as described in any one of claims 1 to 5.
9. A non-temporary computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to implement an optical image stabilization calibration method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Voice coil motor stroke calibration method, device and equipment
CN111491107A
Position compensation detection and correction method, camera module and manufacturing method thereof
CN112543321A
Actuator driver, imaging device and calibration method
US20180249082A1