Optical anti-shake detection method and device
By using preset anti-shake angle and gyroscope gain coefficient in OIS detection, multiple calibration stroke coordinates and detecting the measured stroke coordinates, the existing OIS detection methods cannot effectively judge the accuracy in the directions outside the X and Y axis, and more comprehensive testing and evaluation of the motor and position detection units in different directions is achieved.
Patent Information
- Application Number
- CN202111623371.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2041-12-28
AI Technical Summary
The existing OIS detection methods can only detect OIS performance in two vibration directions, and cannot effectively judge the accuracy of Hall sensors and motors in other directions except the X and Y axis.
By obtaining the preset anti-shake angle and gyroscope gain coefficient, multiple calibration stroke coordinates of the motor when the camera module compensates for anti-shake angle, and drives the motor action to detect the offset between the measured stroke coordinates and the calibration stroke coordinates to determine the test results of the motor and position detection unit.
A more comprehensive test of the motor pushing situation in different directions is achieved, and the accuracy of the motor and position detection unit for different jitter directions can be more accurately evaluated during the IOS anti-shake control process.
Smart Images

Figure CN114286085B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of testing technology, and in particular to an optical image stabilization detection method and device. Background Art
[0002] In order to meet the current user requirements for shooting image quality, OIS (Optical Image Stabilizer) anti-shake technology has gradually become popular in most terminal devices. The function of optical image stabilization technology is to avoid blurry images caused by factors such as hand shaking when taking pictures, thereby improving the clarity of the image. Since OIS technology can compensate for hand shaking to a certain extent, it can extend the exposure time to a certain extent to increase the amount of light entering the camera module, thereby taking brighter and purer photos. This effect is more obvious in low-light environments. The principle of OIS optical image stabilization technology is to add a magnetically suspended lens to the lens group to work with a gyroscope. When the body vibrates, it can detect slight vibrations and control the lens floating to compensate for the vibrations to a certain extent, thereby avoiding vibrations in the optical path and achieving optical image stabilization. Figure 1 As shown, in Figure 1 In the normal shooting state (A), when shooting the object 11 and the camera module does not shake, the lens 12 and the lens 13 are stationary, the optical path does not shake, and the CCD (charge coupled device) 14 can be exposed normally; when the optical image stabilization function is turned off (B), and the camera module shakes, the lens 12 and the lens 13 shake, the optical path also shakes, and the object 11 received by the CCD will be blurred; when the optical image stabilization function is turned on (C), and the camera module shakes, the movement of the lens 13 is controlled to compensate for the generated shake, so that the optical path remains unchanged, and the CCD can stably expose the object 11. The current OIS detection method is to perform SR (compression rate) deviation detection in the orthogonal X and Y axis directions through a cross diagram to intercept camera modules with unqualified OIS anti-shake. Although the existing technology can realize OIS detection, it is difficult to judge directions other than the X and Y axis directions due to the limitations of the vibration table; therefore, in directions other than the X and Y axes, such as Figure 2 ( Figure 2 Schematic diagram of the principle of shooting a cross chart for the camera module to test OIS anti-shake, where A1 is the test result in a static state, B1 is the test result when shaking and OIS is turned off, and C1 is the test result when shaking and OIS is turned on). In the direction of the black area shown, it is difficult to detect and intercept defects in the Hall sensor and the motor that performs the compensation action.
[0003] In summary, the prior art can only detect OIS performance in two vibration directions when performing OIS detection, which has great limitations. Summary of the invention
[0004] In view of the above problems, the present invention proposes an optical image stabilization detection method and device, which can more comprehensively test the accuracy of the motor and position detection unit in different shaking directions during the IOS image stabilization control process.
[0005] In the first aspect, the present application provides the following technical solution through an embodiment:
[0006] An optical image stabilization detection method, comprising:
[0007] Obtain a preset anti-shake angle and a gyro gain coefficient; determine, based on the anti-shake angle and the gyro gain coefficient, a plurality of calibrated stroke coordinates of the motor when the camera module compensates for the anti-shake angle; wherein the plurality of calibrated stroke coordinates are circumferentially distributed around the initial coordinates of the motor stroke; drive the motor to move according to each of the calibrated stroke coordinates, and after the movement is completed, detect the current stroke of the motor to obtain the measured stroke coordinates; the measured stroke coordinates correspond one-to-one to the calibrated stroke coordinates; determine the test results of the motor and the position detection unit based on the calibrated stroke coordinates and the measured stroke coordinates.
[0008] Optionally, determining, according to the anti-shake angle and the gyro gain coefficient, a plurality of calibrated stroke coordinates of a motor stroke when the camera module compensates for the anti-shake angle includes:
[0009] The mechanical zero position of the Hall sensor of the camera module is obtained; the mechanical zero position is matched with the initial coordinates; a plurality of calibration positions are determined around the mechanical zero position according to the mechanical zero position and the anti-shake angle; the distance between the mechanical zero position and the calibration position is the anti-shake angle; the plurality of calibration positions are converted into the plurality of calibration travel coordinates according to the gyro gain coefficient and the initial coordinates.
[0010] Optionally, determining a plurality of calibration positions around the mechanical zero position according to the mechanical zero position and the anti-shake angle includes:
[0011] According to the anti-shake angle, a calibration distance is determined; according to the mechanical zero point position and with the calibration distance as a radius, a plurality of calibration positions are determined around the mechanical zero point position; and the distances between each two adjacent calibration positions are equal.
[0012] Optionally, the arc angle corresponding to each two adjacent calibration positions is 0 to 10°.
[0013] Optionally, determining the test results of the motor and the position detection unit according to the calibrated stroke coordinates and the measured stroke coordinates includes:
[0014] For each of the calibrated stroke coordinates, determine whether the offset between the measured stroke coordinate and the corresponding calibrated stroke coordinate is greater than a preset offset threshold; if so, determine that the test result is unqualified; if not, determine that the test result is qualified.
[0015] In the second aspect, based on the same inventive concept, the present application provides the following technical solution through an embodiment:
[0016] An optical image stabilization detection method, comprising:
[0017] An acquisition module is used to acquire a preset anti-shake angle and a gyro gain coefficient; a coordinate determination module is used to determine, based on the anti-shake angle and the gyro gain coefficient, a plurality of calibrated stroke coordinates of the motor when the camera module compensates for the anti-shake angle; wherein the plurality of calibrated stroke coordinates are circumferentially distributed around the initial coordinates of the motor stroke; a detection module is used to drive the motor to move according to each of the calibrated stroke coordinates, and after the movement is completed, detect the current stroke of the motor to obtain the measured stroke coordinates; the measured stroke coordinates correspond one-to-one to the calibrated stroke coordinates; a judgment module is used to determine the test results of the motor and the position detection unit based on the calibrated stroke coordinates and the measured stroke coordinates.
[0018] Optionally, the coordinate determination module is specifically used to:
[0019] The mechanical zero position of the Hall sensor of the camera module is obtained; the mechanical zero position is matched with the initial coordinates; a plurality of calibration positions are determined around the mechanical zero position according to the mechanical zero position and the anti-shake angle; the distance between the mechanical zero position and the calibration position is the anti-shake angle; the plurality of calibration positions are converted into the plurality of calibration travel coordinates according to the gyro gain coefficient and the initial coordinates.
[0020] Optionally, the coordinate determination module is further specifically used for:
[0021] According to the anti-shake angle, a calibration distance is determined; according to the mechanical zero point position and with the calibration distance as a radius, a plurality of calibration positions are determined around the mechanical zero point position; and the distances between each two adjacent calibration positions are equal.
[0022] In the third aspect, based on the same inventive concept, the present application provides the following technical solution through an embodiment:
[0023] An electronic device comprises a processor and a memory, wherein the memory is coupled to the processor and stores instructions, and when the instructions are executed by the processor, the electronic device executes the steps of any one of the methods described in the first aspect.
[0024] In the fourth aspect, based on the same inventive concept, the present application provides the following technical solution through an embodiment:
[0025] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect above.
[0026] An optical image stabilization detection method and device provided in an embodiment of the present invention obtains a preset image stabilization angle and a gyro gain coefficient; then, according to the image stabilization angle and the gyro gain coefficient, determines a plurality of calibrated stroke coordinates of the motor when the camera module compensates for the image stabilization angle; wherein the plurality of calibrated stroke coordinates are circumferentially distributed around the initial coordinates of the motor stroke; then, the motor is driven to move according to each calibrated stroke coordinate, and after the movement is completed, the current stroke of the motor is detected to obtain the measured stroke coordinates; the measured stroke coordinates correspond to the calibrated stroke coordinates one by one; finally, according to the calibrated stroke coordinates and the measured stroke coordinates, the test results of the motor and the position detection unit are determined. The method of the embodiment of the present invention uses a plurality of calibrated strokes during the test process, and they are distributed around the initial coordinates of the motor stroke, which can effectively test the pushing conditions of the motor in different directions; that is, it can more comprehensively test the accuracy of the motor and the position detection unit in different shaking directions during the IOS image stabilization control process.
[0027] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing 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. In the drawings:
[0029] Figure 1 A schematic diagram showing the principle of optical image stabilization in the present invention is shown;
[0030] Figure 2 A schematic diagram showing the principle of the existing OIS detection in the present invention is shown;
[0031] Figure 3 A schematic diagram showing an exemplary OIS module control structure in an embodiment of the present invention is shown;
[0032] Figure 4 A flow chart of an optical image stabilization detection method according to an embodiment of the present invention is shown;
[0033] Figure 5 A schematic diagram of a circle showing the formation of a calibration position in an embodiment of the present invention;
[0034] Figure 6 A schematic diagram of the position of calibrating the travel coordinates in an embodiment of the present invention is shown;
[0035] Figure 7 A schematic diagram showing the positions of the calibrated travel coordinates and the measured travel coordinates in an embodiment of the present invention is shown;
[0036] Figure 8 A schematic diagram of the functional module structure of an optical image stabilization detection device provided by the second embodiment of the present invention is shown. DETAILED DESCRIPTION
[0037] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the 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. On the contrary, 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.
[0038] The present invention provides an optical image stabilization detection method and device, which can be applied to perform OIS detection of camera modules; specifically, it can be used to detect the accuracy or defect of the motor and position detection unit of the camera module during the OIS image stabilization control process. The position detection unit is a component for detecting the motor stroke of the camera module, and may be, for example, a Hall sensor or a gyroscope. The camera module in this embodiment may be an OIS camera module. Figure 3An exemplary OIS module control structure 200 is shown in FIG. The OIS module control structure includes an image chip 201, a gyroscope 202, an OIS driver 203, a motor driver 204, a Hall sensor 205, a motor 206, a photosensitive chip 207 and a lens 208. Among them, the image chip 201 is connected to the OIS driver 203, the motor driver 204 and the photosensitive chip 207 respectively; the OIS driver is connected to the gyroscope 202, the Hall sensor 205 and the motor 206 respectively; after sensing the shaking direction, the gyroscope 202 transmits the shaking data to the OIS driver, and the OIS driver controls the motor 206 to act and respond according to the received shaking data; the Hall sensor 205 is used to detect the position of the lens 208, and transmits the position of the lens 208 to the OIS driver 203, and the motor 206 is used to drive the lens 208 to act after responding to the control signal of the motor driver 204. The overall concept of the present invention is described and illustrated by specific embodiments below.
[0039] See also Figure 4 , shows a flow chart of an optical image stabilization detection method provided by an embodiment of the present invention, the optical image stabilization detection method comprising:
[0040] Step S10: obtaining a preset anti-shake angle and a gyro gain coefficient;
[0041] Step S20: determining, according to the anti-shake angle and the gyro gain coefficient, a plurality of calibrated stroke coordinates of the motor when the camera module compensates for the anti-shake angle; wherein the plurality of calibrated stroke coordinates are circumferentially distributed around the initial coordinates of the motor stroke;
[0042] Step S30: driving the motor to move according to each of the calibrated stroke coordinates, and detecting the current stroke of the motor to obtain the measured stroke coordinates after the action is completed; the measured stroke coordinates correspond to the calibrated stroke coordinates one by one;
[0043] Step S40: Determine the test results of the motor and the position detection unit according to the calibrated stroke coordinates and the measured stroke coordinates.
[0044] In this embodiment, an optical image stabilization detection method is provided. First, the calibration stroke coordinates are determined around the initial coordinates of the motor stroke. The calibration stroke coordinates are the positions to which the motor needs to be pushed when the camera module compensates for the anti-shake angle. The calibration stroke coordinates are also theoretical values determined based on the gyro gain coefficient and the anti-shake angle. Then, after the motor is driven to push according to these calibration stroke coordinates, the actual stroke of the motor is detected again to obtain the measured stroke coordinates. Since the calibration stroke coordinates are distributed around the zero position, each time the motor is driven to reach a calibration stroke coordinate, the motor will move in the direction of the calibration stroke coordinate. Finally, combined with the measured stroke coordinates of the motor, it can be determined whether the calibration stroke coordinates and the measured stroke coordinates match, thereby determining whether the motor meets the accuracy requirements in different stroke directions, or whether the matching accuracy of the Hall sensor and the motor meets the requirements. In order to facilitate understanding, the specific implementation of each step in this embodiment is described in detail below.
[0045] Step S10: obtaining a preset anti-shake angle and a gyro gain coefficient.
[0046] In step S10, the anti-shake angle is the maximum shake angle required by the product, which can be determined according to production requirements, for example, it can be customized according to the performance that the product needs to achieve, or it can come from downstream manufacturers without restriction. The gyro gain coefficient (Gyro gain) is used to convert the anti-shake angle into the stroke position that the motor needs to push when performing OIS anti-shake control or the corresponding current indication code value of the motor stroke.
[0047] Step S20: determining a plurality of calibrated stroke coordinates of the motor when the camera module compensates for the anti-shake angle according to the anti-shake angle and the gyro gain coefficient; wherein the plurality of calibrated stroke coordinates are distributed around the initial coordinates of the motor stroke.
[0048] In step S20, there may be multiple implementations. For example, multiple vibration directions may be determined. Then, the anti-shake angle in each vibration direction is converted into corresponding calibrated stroke coordinates, thereby obtaining multiple calibrated stroke coordinates.
[0049] Furthermore, in this embodiment, the following method is provided to determine multiple calibration travel coordinates:
[0050] See also Figure 5 First, the mechanical zero position O of the Hall sensor of the camera module is obtained; the mechanical zero position O matches the initial coordinates. The mechanical zero position O is a fixed value burned by the OIS calibration station, so the zero position can be pre-stored in the memory and read when needed; or it can be input to the processor or host computer that executes the method when used.
[0051] Then, according to the mechanical zero position O of the Hall sensor and the anti-shake angle, multiple calibration positions are determined around the mechanical zero position O, such as Figure 5 The calibration positions A, B and C are shown in FIG. The distance between the mechanical zero position O and the calibration position, i.e., the calibration distance R, is the anti-shake angle. Specifically, the calibration distance R can be determined according to the anti-shake angle; then, according to the mechanical zero position O and with the calibration distance R as the radius, multiple calibration positions are determined around the mechanical zero position O. Each calibration position has the same distance from the mechanical zero position O, and multiple calibration positions are located on the same circumference L. For each calibration position, the following conditions are satisfied: R 2 =X 2 +Y 2 ; Where R is the anti-shake angle, X is the component of the calibration position on the X-axis, Y is the component of the calibration position on the Y-axis, and the XY coordinate system is the reference coordinate system when the motor of the camera module is driven, such as Figure 5 This embodiment is only used as an illustrative description and should not be construed as an interpretation or limitation of the present invention.
[0052] Through the above acquisition process, multiple calibration positions can be quickly obtained, and the coordinates of the obtained calibration positions are the components of the anti-shake angle on the X-axis and the Y-axis, achieving higher processing efficiency.
[0053] Furthermore, among the multiple calibration positions determined, the distance between each two adjacent calibration positions may be the same, such as Figure 5 As shown, the angle ∠1 between the calibration position A and the calibration position B is the same as the angle ∠2 between the calibration position B and the calibration position C; that is, on the range circle where multiple calibration positions are located, the arc angles between each two adjacent calibration positions are the same, so the number of calibration positions is This ensures that the test of the camera module is more uniform and the test results have higher reliability. When determining multiple calibration positions, the interval between each adjacent calibration position may not be limited and may be determined according to the specific test accuracy requirements. In this embodiment, the arc angle corresponding to the interval between each adjacent calibration position may be determined to be 0 to 10°, specifically 1° to 10°, for example, 1°, 2°, 3°, 5°, 8°, and so on. If the spacing of the calibration stroke coordinates is too large, the calibration stroke coordinates obtained will be reduced, and the measurement accuracy of the camera module in different directions will decrease; if the spacing of the calibration stroke coordinates is too small, too many calibration stroke coordinates are obtained, which will increase the time of the test process and reduce production efficiency. Therefore, in this embodiment, the arc angle corresponding to the interval between each adjacent calibration position may be determined to be 1° to 10° to ensure production efficiency while avoiding a significant decrease in test accuracy, specifically 1° to 3°. Of course, based on actual production needs, other arbitrary angles can also be confirmed to obtain different and required technical effects.
[0054] Finally, according to the gyro gain coefficient and the initial coordinates, multiple calibration positions are converted into multiple calibration travel coordinates. For the anti-shake angle, the compensation amount that the motor needs to drive is: shake compensation amount = Gyrogain*α*β; where Gyrogain is the gyro gain coefficient, which is a fixed value burned into the anti-shake by the OIS calibration station; α is the offset angle when the shake occurs, and β is the calculation coefficient.
[0055] Specifically, the gyroscope gain coefficient of the camera module includes the gyroscope gain coefficient corresponding to the X-axis and the gyroscope gain coefficient corresponding to the Y-axis; for the sake of convenience, the gyroscope gain coefficient corresponding to the X-axis is recorded as m, and the gyroscope gain coefficient corresponding to the Y-axis is recorded as n. The travel code value corresponding to the motor mechanical zero position O is recorded as (X 0code , Y 0code ). At any calibration position (X0, Y0), the calibration position (X0, Y0) is converted to the calibration stroke coordinates of the motor as follows:
[0056] X code =m*X0*1000+X 0code ;
[0057] Y code =n*Y0*1000+Y 0code ;
[0058] (X code , Y code ) is the calibration travel coordinate of the calibration position (X0, Y0).
[0059] After completing all calibration position conversions, the range circle L1 of the motor stroke code value can be formed, such as Figure 6As shown; ensuring that the motor's push in different directions can be detected.
[0060] Step S30: driving the motor to move according to each of the calibrated stroke coordinates, and detecting the current stroke of the motor to obtain the measured stroke coordinates after the action is completed; the measured stroke coordinates correspond one-to-one to the calibrated stroke coordinates.
[0061] In step S30, it can be understood that a control instruction for the motor can be generated according to the calibrated stroke coordinates, and the motor acts according to the instruction. After the action is completed, the current stroke of the motor is detected to obtain the measured stroke coordinates. The position of the range circle L2 formed by the measured stroke coordinates is as shown in FIG. Figure 7 As shown. There is no restriction on the order in which the driving motor responds to each calibrated stroke coordinate; for example, an initial calibrated stroke coordinate can be randomly determined, and then the motor can be driven in sequence to respond and act in an adjacent order. After each motor action is completed, the actual stroke of the motor is detected once to obtain the measured stroke coordinate corresponding to the calibrated stroke coordinate. In this embodiment, the measured stroke coordinate can be obtained by sensing the position of the motor through a gyroscope, or by detecting the position of the motor through a Hall sensor, or by other existing detection methods without limitation.
[0062] Step S40: Determine the test results of the motor and the position detection unit according to the calibrated stroke coordinates and the measured stroke coordinates.
[0063] In step S40, for each calibrated stroke coordinate, it can be determined whether the offset between the calibrated stroke coordinate and the corresponding measured stroke coordinate is greater than a preset offset threshold. The offset threshold can be determined according to specific accuracy requirements and is not limited.
[0064] If the difference between a certain measured stroke coordinate and the corresponding calibrated stroke coordinate is greater than the offset threshold, the test result indicates that the motor cannot reach the position during IOS compensation, or there is an error in the gyroscope's position sensing of the motor, or there is an error in the Hall sensor's position sensing of the motor. If the difference between a certain measured stroke coordinate and the corresponding calibrated stroke coordinate is not greater than the offset threshold, the test result is qualified.
[0065] In addition, in some embodiments, if the deviation between the calibrated stroke coordinates and the corresponding measured stroke coordinates is greater than the offset threshold, it is determined that the test results of the motor accuracy and / or position detection unit corresponding to the calibrated stroke coordinates are unqualified; then, whether the camera module is qualified can also be determined based on the number of unqualified results, thereby achieving flexible adjustment of the test results to adapt to different production requirements.
[0066] In summary, an optical anti-shake detection method provided in an embodiment of the present invention obtains a preset anti-shake angle and a gyro gain coefficient; then, according to the anti-shake angle and the gyro gain coefficient, a plurality of calibrated stroke coordinates of the motor when the camera module compensates for the anti-shake angle are determined; the plurality of calibrated stroke coordinates are distributed around the initial coordinates of the motor stroke; then, the motor is driven to move according to each calibrated stroke coordinate, and after the movement is completed, the current stroke of the motor is detected to obtain the measured stroke coordinates; the measured stroke coordinates correspond to the calibrated stroke coordinates one by one; finally, according to the calibrated stroke coordinates and the measured stroke coordinates, the test results of the motor and the position detection unit are determined. The method of this embodiment uses multiple calibrated strokes during the test process, and they are distributed around the initial coordinates of the motor stroke, which can effectively test the pushing conditions of the motor in different directions; that is, it can more comprehensively test the accuracy of the motor and the position detection unit in different shaking directions during the IOS anti-shake control process.
[0067] See also Figure 8 Based on the same inventive concept, another embodiment of the present invention further provides an optical image stabilization detection device 300, comprising:
[0068] An acquisition module 301 is used to acquire a preset anti-shake angle and a gyro gain coefficient; a coordinate determination module 302 is used to determine, based on the anti-shake angle and the gyro gain coefficient, a plurality of calibrated stroke coordinates of the motor when the camera module compensates for the anti-shake angle; wherein the plurality of calibrated stroke coordinates are distributed around the initial coordinates of the motor stroke; a detection module 303 is used to drive the motor to move according to each of the calibrated stroke coordinates, and after the movement is completed, detect the current stroke of the motor to obtain the measured stroke coordinates; the measured stroke coordinates correspond one-to-one to the calibrated stroke coordinates; a judgment module 304 is used to determine the test results of the motor and the position detection unit based on the calibrated stroke coordinates and the measured stroke coordinates.
[0069] As an optional implementation, the coordinate determination module 302 is specifically configured to:
[0070] The mechanical zero position of the Hall sensor of the camera module is obtained; the mechanical zero position is matched with the initial coordinates; a plurality of calibration positions are determined around the mechanical zero position according to the mechanical zero position and the anti-shake angle; the distance between the mechanical zero position and the calibration position is the anti-shake angle; the plurality of calibration positions are converted into the plurality of calibration travel coordinates according to the gyro gain coefficient and the initial coordinates.
[0071] As an optional implementation, the coordinate determination module 302 is further specifically configured to:
[0072] According to the anti-shake angle, a calibration distance is determined; according to the mechanical zero point position and with the calibration distance as a radius, a plurality of calibration positions are determined around the mechanical zero point position; and the distances between each two adjacent calibration positions are equal.
[0073] As an optional implementation, the arc angle corresponding to each two adjacent calibration positions is 0 to 10°.
[0074] As an optional implementation, the determination module 305 includes:
[0075] For each of the calibrated stroke coordinates, determine whether the offset between the measured stroke coordinate and the corresponding calibrated stroke coordinate is greater than a preset offset threshold; if so, determine that the test result is unqualified; if not, determine that the test result is qualified.
[0076] It should be noted that the specific implementation and technical effects of the optical image stabilization detection device 300 provided in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0077] Based on the same inventive concept, another embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory is coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the electronic device executes the steps of the method described in any one of the aforementioned embodiments. It should be noted that, in the electronic device provided in the embodiment of the present invention, when the instructions are executed by the processor, the specific implementation of each step and the technical effect produced are the same as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0078] Based on the same inventive concept, another embodiment of the present invention further provides a readable storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, the steps of the method described in any one of the aforementioned method embodiments are implemented. It should be noted that in the readable storage medium provided in the embodiment of the present invention, when the program is executed by a processor, the specific implementation of each step and the technical effect produced are the same as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference can be made to the corresponding contents in the aforementioned method embodiment.
[0079] The term "and / or" that appears in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: 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 objects associated before and after are in an "or" relationship; the word "comprising" does not exclude the existence of elements or steps that are not listed in the claims. The word "one" or "an" placed before an element does not exclude the existence of multiple such elements. The present invention can be implemented with the aid of hardware including several different elements and with the aid of appropriately programmed computers. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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.
[0085] 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 detection method, characterized in that: include: Get the preset anti-shake angle and gyro gain coefficient; According to the anti-shake angle and the gyro gain coefficient, determine a plurality of calibrated stroke coordinates of the motor when the camera module compensates for the anti-shake angle; wherein the plurality of calibrated stroke coordinates are circumferentially distributed around the initial coordinates of the motor stroke; The motor is driven to move according to each of the calibrated stroke coordinates, and after the movement is completed, the current stroke of the motor is detected to obtain the measured stroke coordinates; the measured stroke coordinates correspond to the calibrated stroke coordinates one by one; Determine the test results of the motor and the position detection unit according to the calibrated stroke coordinates and the measured stroke coordinates; the position detection unit is used to detect the motor stroke of the camera module; The determining, according to the anti-shake angle and the gyro gain coefficient, a plurality of calibrated stroke coordinates of the motor stroke when the camera module compensates for the anti-shake angle comprises: Acquire the mechanical zero point position of the Hall sensor of the camera module; the mechanical zero point position matches the initial coordinates; According to the mechanical zero position and the anti-shake angle, a plurality of calibration positions are determined around the mechanical zero position; the distance between the mechanical zero position and the calibration position is the anti-shake angle; converting the plurality of calibrated positions into the plurality of calibrated travel coordinates according to the gyro gain coefficient and the initial coordinates; The step of determining a plurality of calibration positions around the mechanical zero point according to the mechanical zero point position and the anti-shake angle comprises: Determining a calibration distance according to the anti-shake angle; According to the mechanical zero point position and with the calibration distance as a radius, a plurality of calibration positions are determined around the mechanical zero point position; and the distances between each two adjacent calibration positions are equal.
2. The method according to claim 1, characterized in that: The arc angle corresponding to each two adjacent calibration positions is 0-10°.
3. The method according to claim 1, characterized in that: Determining the test results of the motor and the position detection unit according to the calibrated stroke coordinates and the measured stroke coordinates includes: For each of the calibrated stroke coordinates, determining whether an offset between the measured stroke coordinate and the corresponding calibrated stroke coordinate is greater than a preset offset threshold; If yes, determining that the test result is unqualified; If not, it is determined that the test result is qualified.
4. An optical image stabilization detection device, characterized in that: include: An acquisition module is used to obtain a preset anti-shake angle and a gyro gain coefficient; A coordinate determination module, used to determine a plurality of calibrated stroke coordinates of the motor when the camera module compensates for the anti-shake angle according to the anti-shake angle and the gyro gain coefficient; wherein the plurality of calibrated stroke coordinates are circumferentially distributed around the initial coordinates of the motor stroke; The coordinate determination module is specifically used for: Acquire the mechanical zero point position of the Hall sensor of the camera module; the mechanical zero point position matches the initial coordinates; According to the mechanical zero position and the anti-shake angle, a plurality of calibration positions are determined around the mechanical zero position; the distance between the mechanical zero position and the calibration position is the anti-shake angle; converting the plurality of calibrated positions into the plurality of calibrated travel coordinates according to the gyro gain coefficient and the initial coordinates; The coordinate determination module is further specifically used for: Determining a calibration distance according to the anti-shake angle; According to the mechanical zero point position and taking the calibration distance as a radius, a plurality of calibration positions are determined around the mechanical zero point position; the distance between each two adjacent calibration positions is equal; A detection module, used for driving the motor to move according to each of the calibrated stroke coordinates, and detecting the current stroke of the motor to obtain the measured stroke coordinates after the action is completed; the measured stroke coordinates correspond to the calibrated stroke coordinates one by one; The judgment module is used to determine the test results of the motor and the position detection unit according to the calibrated stroke coordinates and the measured stroke coordinates. The position detection unit is used to detect the motor stroke of the camera module.
5. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is coupled to the processor and stores instructions, and when the instructions are executed by the processor, the electronic device executes the steps of the method according to any one of claims 1 to 3.
6. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Deflection detection method for terminal camera module, jitter compensation method and device
CN108603752A
Camera anti-shake system and method, electronic equipment and storage medium
CN109842753A