Optical image stabilizer anti-shake detection method and related equipment
By simulating virtual vibration wave signals and Hall signal values to generate the theoretical displacement curve of image dots, the problems of high cost and low precision in the evaluation of anti-shake performance of optical image stabilizers in the existing technology are solved, and efficient and accurate anti-shake effect detection is achieved.
Patent Information
- Application Number
- CN202510875487.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-10-03
AI Technical Summary
Existing methods for evaluating the anti-shake performance of optical image stabilizers rely on vibration tables and image data. These methods have high testing costs, strong environmental dependence, low evaluation accuracy, and are easily affected by equipment differences.
By simulating virtual vibration wave signals and Hall signal values, combined with preset optical parameters, a theoretical displacement curve of image dots is generated, and the quantitative value of the anti-shake effect is calculated, reducing dependence on the vibration table and image data.
It achieves more efficient, economical and stable anti-shake effect detection, avoids interference from external factors, and improves the accuracy and consistency of the evaluation.
Smart Images

Figure CN120751112A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical image stabilization technology, and more specifically, to an optical image stabilizer image stabilization detection method and related equipment. Background Art
[0002] With the continuous development of electronic technology and optical imaging equipment, optical image stabilizer (OIS), as an important technology for improving image quality and reducing shooting shake, is widely used in devices such as smartphones, digital cameras, and drones. However, since the working principle and anti-shake effect of optical image stabilizers are affected by many factors, how to accurately evaluate their anti-shake performance, especially in production inspection and quality control, remains a technical challenge.
[0003] Currently, most methods for evaluating the stabilization performance of optical image stabilizers (OIS) rely on vibration tables and image capture technology. While these traditional evaluation methods can simulate real-world shaking environments to a certain extent, they also have several limitations. First, the mainstream OIS stabilization performance evaluation methods rely on vibration tables to simulate angular vibration, then use gyroscope signals to drive the chip for stabilization compensation. These methods then combine image acquisition with analysis of the displacement of specific patterns to calculate the compression ratio and evaluate the stabilization effect. These methods are complex, require high equipment costs, and are susceptible to environmental factors such as image clarity and lighting, resulting in low test stability and efficiency. Second, image processing technology requires a large amount of image data to calculate the stabilization effect. In practice, this is not only affected by factors such as ambient lighting and focus clarity, but is also prone to significant errors due to device variability. Therefore, existing OIS stabilization evaluation methods have significant room for improvement in terms of test efficiency, accuracy, and adaptability. Specifically, existing methods suffer from high testing costs, strong environmental dependence, low evaluation accuracy, and large errors caused by device variability. Summary of the Invention
[0004] The Summary of the Invention section of this application introduces a series of simplified concepts that will be further described in detail in the Detailed Description of the Invention section. The Summary of the Invention section of this application is not intended to limit the key features and essential technical features of the claimed technical solution, nor is it intended to determine the scope of protection of the claimed technical solution.
[0005] The optical image stabilizer anti-shake detection method and related equipment provided in this application can accurately evaluate the anti-shake effect of the optical image stabilizer by using a combination of virtual vibration wave signals, Hall signal values and theoretical displacement curves, reducing dependence on vibration tables and image data, thereby achieving more efficient, economical, stable and accurate optical image stabilizer anti-shake effect detection.
[0006] In a first aspect, the present application provides an anti-shake detection method for an optical image stabilizer, comprising: sending a virtual vibration wave signal to a target optical image stabilizer in response to a detection request; determining an image dot virtual displacement curve based on a Hall signal value of a lens module corresponding to the target optical image stabilizer; generating an image dot theoretical displacement curve based on preset optical parameters and the virtual vibration wave signal; and determining a quantitative value of the anti-shake effect of the target optical image stabilizer based on the image dot virtual displacement curve and the image dot theoretical displacement curve.
[0007] In some embodiments, the preset optical parameters include a preset object distance, a preset effective focal length, a preset jitter angle, and a pixel size; generating a theoretical displacement curve of an image dot based on the preset optical parameters and the virtual vibration wave signal includes: calculating a ratio of a jitter displacement coefficient to the pixel size to obtain a theoretical jitter displacement, wherein the jitter displacement coefficient is a product of a first conversion constant, a preset image distance, and a tangent value of the preset jitter angle, and the preset image distance is the reciprocal of a difference between a reciprocal of the preset effective focal length and a reciprocal of the preset object distance; generating the theoretical displacement curve of the image dot based on the theoretical jitter displacement and the virtual vibration wave signal.
[0008] In some embodiments, determining the quantitative value of the anti-shake effect of the target optical image stabilizer based on the image dot virtual displacement curve and the image dot theoretical displacement curve includes: subtracting the image dot virtual displacement curve from the image dot theoretical displacement curve to obtain an image dot displacement difference curve; and determining the quantitative value of the anti-shake effect of the target optical image stabilizer based on a first amplitude of the image dot displacement difference curve and a second amplitude of the image dot theoretical displacement curve.
[0009] In some embodiments, determining the quantified value of the anti-shake effect of the target optical image stabilizer based on the first amplitude of the image dot displacement difference curve and the second amplitude of the image dot theoretical displacement curve includes: calculating the product of a second conversion constant and the logarithm of the amplitude ratio to obtain the quantified value of the anti-shake effect, wherein the logarithm of the amplitude ratio is the logarithm of the ratio of the first amplitude to the second amplitude.
[0010] In some embodiments, sending the virtual vibration wave signal to the target optical image stabilizer in response to the detection request includes: sending the virtual vibration wave signal to the driver chip of the target optical image stabilizer via an external microcontroller in response to the detection request input by a user.
[0011] In some embodiments, the optical image stabilizer anti-shake detection method further includes: comparing the anti-shake effect quantization value with a preset quantization value threshold; when the anti-shake effect quantization value is less than the preset quantization value threshold, triggering a hardware prompt response of the optical module test bench.
[0012] In some embodiments, the virtual vibration wave signal is a sinusoidal wave signal generated according to a preset amplitude, a preset frequency, and a preset phase.
[0013] In a second aspect, the present application also provides an anti-shake detection device for an optical image stabilizer, comprising: a request response unit for sending a virtual vibration wave signal to a target optical image stabilizer in response to a detection request; a virtual displacement determination unit for determining an image dot virtual displacement curve based on a Hall signal value of a lens module corresponding to the target optical image stabilizer; a theoretical displacement determination unit for generating an image dot theoretical displacement curve based on preset optical parameters and the virtual vibration wave signal; and an anti-shake quantization unit for determining a quantization value of the anti-shake effect of the target optical image stabilizer based on the image dot virtual displacement curve and the image dot theoretical displacement curve.
[0014] In a third aspect, the present application further provides an electronic device comprising: a memory and a processor, wherein the processor is configured to implement the steps of the optical image stabilizer anti-shake detection method described in the first aspect when executing a computer program stored in the memory.
[0015] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the optical image stabilizer anti-shake detection method described in the first aspect.
[0016] In a fifth aspect, the present application also provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the optical image stabilizer anti-shake detection method provided in the embodiment of the present application is implemented.
[0017] In summary, the present application simulates a virtual vibration wave signal to replace the actual vibration table test, and replaces image sampling with a Hall signal, which can avoid the use of a vibration table and image equipment, reduce the complexity and cost of the test equipment, make the anti-shake effect evaluation independent of the environment, and avoid interference from external factors; by generating a virtual vibration wave signal, the test conditions can be controlled more flexibly, without the need for actual physical vibration, and repeated tests can be performed under more precise control, thereby improving the efficiency of the detection process; by calculating the difference between the virtual displacement curve and the theoretical displacement curve, a quantitative anti-shake effect value can be obtained, making the evaluation of the anti-shake effect more objective and accurate, and avoiding interference from human factors or environmental influences on the test results. In summary, the optical image stabilizer anti-shake detection method provided by the present application can accurately evaluate the anti-shake effect of the optical image stabilizer by using a combination of virtual vibration wave signals, Hall signal values and theoretical displacement curves, reduce dependence on vibration tables and image data, and thus achieve more efficient, economical, stable and accurate optical image stabilizer anti-shake effect detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present description. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0019] Figure 1 A schematic flow chart of an anti-shake detection method for an optical image stabilizer provided in an embodiment of the present application;
[0020] Figure 2 A schematic diagram of a theoretical displacement curve of an image point provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of an image dot displacement difference curve provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of the structure of an optical image stabilizer anti-shake detection device provided in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] Terms in the specification, claims, and drawings of this application, such as "first," "second," "third," "fourth," and the like (if any), are used to distinguish between similar objects, rather than to describe a particular order or precedence. Therefore, it is understood that these terms can be used interchangeably where appropriate, so that the embodiments described can be implemented in a different order, unless otherwise specified in the drawings or descriptions. In addition, the terms "is" and "has" and any variations thereof in this application are intended to cover all possible constituent elements on a non-exclusive basis. For example, a process, method, system, product, or apparatus that includes several steps or units is not necessarily limited to the steps or units that are explicitly listed, but may also include other steps or units that are not explicitly listed, or steps or units that are inherent to the process, method, product, or apparatus.
[0025] In this application, a "module" or "unit" refers to a computer program or part of a computer program that has a specific function and works in conjunction with other related parts to achieve a predetermined goal. These modules or units can be implemented by software, hardware (such as processing circuits or memories), or a combination of the two. One or more processors or memories can implement one or more modules or units. At the same time, each module or unit can also be part of a larger module or unit.
[0026] The technical solutions in this application will be described in detail below in conjunction with the accompanying drawings in the embodiments. It should be noted that the embodiments described are only part of this application, not all embodiments. In the following description, the "some embodiments" mentioned are only a subset of all possible embodiments, which may be the same or different subsets, and different embodiments can be combined with each other without conflict.
[0027] Figure 1 FIG is a flow chart of an optical image stabilizer anti-shake detection method provided in an embodiment of the present application. For example, see Figure 1 The optical image stabilizer anti-shake detection method provided in the embodiment of the present application may include the following steps 101 to 104:
[0028] Step 101 , in response to a detection request, sending a virtual vibration wave signal to a target optical image stabilizer;
[0029] In some examples, a test request is a signal sent by an operator or system, indicating a need to test the optical image stabilizer's anti-shake performance. The test request can be initiated by a user on the device's user interface or triggered by the system based on automated testing requirements. For example, on a factory production line, an operator clicks a test button to initiate the test process, or in automated equipment, the test system automatically triggers the test based on a preset cycle or condition. A virtual vibration wave signal is an electronic signal that simulates the vibration signal generated by an actual vibration table. It can be a preset sinusoidal signal with a specific frequency, amplitude, and phase. It is generated by a signal source or external control system and sent to the optical image stabilizer. The virtual vibration wave signal simulates an actual vibration environment to test the optical image stabilizer's response and anti-shake performance. For example, a virtual vibration wave signal can be set to a sinusoidal signal with a frequency of 5 Hz and an amplitude of 1 mm to simulate the vibration experienced by a camera. The target optical image stabilizer is the optical image stabilizer being tested and can be an optical image stabilizer in a specific device or apparatus used to reduce image blur and shake during capture.
[0030] For example, during the detection process, the operator can initiate a detection request through the device interface. After the system receives this request, it triggers the generation of a virtual vibration wave signal. The virtual vibration wave signal is sent to the target optical image stabilizer to simulate the actual vibration environment, so that the target optical image stabilizer performs calculations to push the motor compensation based on the virtual vibration wave signal.
[0031] It should be noted that the current mainstream optical image stabilizer (OIS) anti-shake performance evaluation method generally includes the following steps: First, the lens module to be tested is mounted on a high-precision vibration table, which simulates angular jitter at a set frequency and amplitude; then, the angular velocity signal generated by the built-in gyroscope is sensed and output to the driver IC; the driver IC performs compensation operations on the motor according to the internal compensation algorithm, thereby simulating the OIS working state. In this process, an image containing a specific pattern (such as a cross pattern or a dot pattern) is captured by an image acquisition device, and the image displacement is recorded when the OIS is turned on and off. The compression ratio (SR) is then calculated based on the displacement path of the reference marker point (such as the dot) in the image; the SR value is then compared with the preset standard to determine whether the OIS module's anti-shake performance meets the quality requirements. However, this test method relies on high-precision vibration equipment and a stable optical image acquisition environment during its implementation. Not only is the equipment cost high, the test process is complex and time-consuming, but it is also easily affected by factors such as lighting conditions, exposure parameters, and image clarity, making it difficult to ensure the stability and consistency of the test results.
[0032] By implementing step 101, a virtual vibration wave signal is used to replace the actual vibration table, which not only reduces the dependence on expensive vibration equipment and reduces the overall cost of testing, but also simplifies the requirements of the test environment. In addition, the virtual vibration wave signal can be flexibly adjusted according to different test requirements and can quickly simulate various vibration modes without the need for complex environmental settings.
[0033] Step 102 , determining an image dot virtual displacement curve based on a Hall signal value of a lens module corresponding to a target optical image stabilizer;
[0034] In some examples, a lens module is an integrated component in an optical imaging system, typically including a lens, a sensor, a focusing mechanism, and other imaging-related parts. The Hall signal value is the electrical signal value output by the Hall sensor, which is used to measure the position change of the lens module corresponding to the image stabilizer. When the lens or sensor in the lens module is adjusted by a motor or other driving device, the Hall sensor generates a signal related to the position change. By analyzing these Hall signals, the movement state and position of the lens module can be known. In the implementation process, it can be implemented based on the response mechanism of the Hall sensor to magnetic field changes. The lens module usually has a permanent magnet on the movable part (such as the motor drive component), and the Hall sensor is installed in a fixed position to sense the change in the position of the magnet. When the lens module moves during the OIS compensation process, the magnet moves accordingly, causing the magnetic field strength or polarity detected by the Hall sensor to change, thereby outputting the corresponding Hall voltage or digital code value. By sampling the numerical change trend of the Hall signal, the direction of movement of the lens module can be identified, and whether it is in a stationary or moving state can be determined. Combined with the mapping relationship between the Hall code value and the actual physical displacement, the absolute or relative displacement of the current position of the lens module on a certain coordinate axis can be calculated to achieve accurate judgment of the movement state and position of the lens module. The virtual displacement curve of the image dot is a virtual displacement trajectory of the image center (or dot) obtained through the Hall signal value. Based on the Hall signal value, the actual displacement of the lens module can be calculated, and the displacement of the image dot can be further deduced, ultimately obtaining the virtual displacement curve of the image dot. In the implementation process, the actual displacement of the lens module is calculated based on the Hall signal value, which can be achieved by establishing a linear or nonlinear correspondence between the Hall signal value and the module displacement. During the module structure design stage, the installation position of the Hall sensor and the movement path of the magnet are known, and a calibration curve or lookup table between the Hall signal value and the module displacement can be preset. When the Hall signal changes, the actual physical displacement of the lens module on the X-axis or Y-axis can be obtained by looking up the table or reverse deduction using the formula. Furthermore, according to the principle of optical imaging, the displacement of the lens module on the imaging surface will cause the image dot to shift. Combined with the focal length and imaging magnification of the lens, the geometric optical relationship can be used to convert the lens displacement into the displacement trajectory of the image dot, thereby drawing a displacement curve of the image dot on the time axis to reflect its dynamic response characteristics.
[0035] By implementing step 102, the Hall sensor is used to monitor the position change of the lens module in real time, and the displacement data of the image point can be accurately calculated, avoiding the influence of factors such as lighting, focal length and environment during the image shooting process. Complex image processing and analysis are not required, which reduces the complexity of operation and the amount of calculation, and provides a reliable basis for the subsequent analysis of the anti-shake effect.
[0036] Step 103, generating a theoretical displacement curve of an image point according to preset optical parameters and a virtual vibration wave signal;
[0037] In some examples, preset optical parameters are pre-set optical characteristic parameters used for calculation and modeling during optical image stabilizer (OIS) anti-shake testing. These parameters may include object distance, effective focal length, shake angle, and pixel size. These parameters reflect the physical characteristics of the lens module and affect image quality and stability. For example, when testing smartphone camera anti-shake, the preset object distance may be set to the distance between the subject and the lens, the focal length to the focal length of the camera lens, and the shake angle to the angle when simulating device vibration. The theoretical displacement curve of an image dot is generated through theoretical calculation based on the preset optical parameters and a virtual vibration wave signal. This curve represents the theoretical displacement of the image dot in response to different vibration wave signals in the absence of actual physical interference. For example, if a device is subject to vibrations of different frequencies and amplitudes, by calculating optical parameters such as object distance and focal length, it is theoretically possible to deduce how the image dot responds to these vibration changes, forming a theoretical displacement curve that indicates the expected displacement behavior of the image dot.
[0038] For example, the influence of the virtual vibration wave signal on the image dots can be simulated according to the preset optical parameters to generate a theoretical displacement curve of the image dots. The theoretical displacement curve of the image dots is derived based on optical formulas and models and reflects the expected displacement behavior of the image dots under ideal conditions. Figure 2 The theoretical displacement curve of the image dots is shown. Figure 2 The horizontal axis is the different labels of the image dots that change over time, and the vertical axis is the amplitude of the image dots, with the unit being pixel.
[0039] By implementing step 103, a theoretical displacement curve is generated using the preset optical parameters and the virtual vibration wave signal, providing a standardized theoretical benchmark for evaluating the anti-shake effect. This can be compared with the actual virtual displacement curve, thereby enabling accurate analysis of the anti-shake performance.
[0040] Step 104: determining a quantitative value of an anti-shake effect of a target optical image stabilizer based on the image dot virtual displacement curve and the image dot theoretical displacement curve;
[0041] In some examples, the quantified anti-shake effect value of a target optical image stabilizer is a numerical indicator used to evaluate the stabilization performance of the optical image stabilizer under specific test conditions. This quantified value can be calculated by comparing the difference between the virtual displacement curve of the image dots and the theoretical displacement curve of the image dots, objectively representing the actual performance of the stabilization system. In implementation, the virtual displacement curve of the image dots and the theoretical displacement curve of the image dots are first aligned on the time axis / sequential axis, and the difference between the corresponding displacement values of the two at each moment is calculated to form an image dot displacement difference curve. The maximum amplitude of the image dot displacement difference curve and the maximum amplitude of the theoretical displacement curve are then extracted, and the amplitude compression ratio is calculated by the ratio of the two. The logarithm of the ratio is then multiplied by a set conversion constant to obtain the quantified anti-shake effect value. A smaller quantified anti-shake effect value indicates more significant stabilization compensation, while a larger quantified anti-shake effect value indicates limited compensation, thereby achieving a quantitative evaluation of the stabilization performance of the target optical image stabilizer.
[0042] By implementing step 104 and comparing the actual virtual displacement curve with the theoretical displacement curve, the anti-shake effect of the optical image stabilizer can be quantitatively evaluated, providing a clear numerical basis for product quality control and optimization. This allows the anti-shake effect to be quickly evaluated using automated testing equipment, reducing manual intervention and improving test efficiency and consistency.
[0043] In summary, the embodiments of the present application replace the actual vibration table test by simulating a virtual vibration wave signal, and replace image sampling with a Hall signal, thereby avoiding the use of a vibration table and image equipment, reducing the complexity and cost of the test equipment, making the anti-shake effect evaluation independent of the environment, and avoiding interference from external factors; by generating a virtual vibration wave signal, the test conditions can be controlled more flexibly, without the need for actual physical vibration, and repeated tests can be performed under more precise control, thereby improving the efficiency of the detection process; by calculating the difference between the virtual displacement curve and the theoretical displacement curve, a quantitative anti-shake effect value can be obtained, making the evaluation of the anti-shake effect more objective and accurate, and avoiding interference from human factors or environmental influences on the test results. In summary, the optical image stabilizer anti-shake detection method provided by the embodiments of the present application can accurately evaluate the optical image stabilizer anti-shake effect by using a combination of virtual vibration wave signals, Hall signal values and theoretical displacement curves, reducing dependence on vibration tables and image data, thereby achieving more efficient, economical, stable and accurate optical image stabilizer anti-shake effect detection.
[0044] In some embodiments, the aforementioned preset optical parameters may include a preset object distance, a preset effective focal length, a preset jitter angle and a pixel size; the aforementioned step 103 may include: calculating the ratio of the jitter displacement coefficient to the pixel size to obtain a theoretical jitter displacement, wherein the jitter displacement coefficient is the product of a first conversion constant, a preset image distance and a tangent value of a preset jitter angle, and the preset image distance is the reciprocal of the difference between the reciprocal of the preset effective focal length and the reciprocal of the preset object distance; generating a theoretical displacement curve of the image dot according to the theoretical jitter displacement and the virtual vibration wave signal.
[0045] In some examples, the preset object distance is the distance between an object and the optical device in a lens module. It is a distance set in the design based on specific requirements and used in optical calculations. For example, if the target is 10 meters away, the preset object distance is 10 meters. The preset effective focal length is the focal length of the lens module, a basic parameter used to determine the lens's field of view and image magnification. For example, if a 50mm lens is used, the preset effective focal length is 50mm. The preset shake angle is the shake angle of the lens or image sensor during simulated image stabilization testing. For example, a set shake angle of ±0.5 degrees can be used to simulate image stabilizer shake. Pixel size is the physical size of an image sensor pixel, typically expressed in millimeters or microns, and affects image resolution and quality. The theoretical shake displacement is the theoretical displacement of an image point calculated based on the optical parameters and shake angle. It can be calculated using optical calculation formulas combined with a virtual vibration wave signal. The jitter displacement coefficient is a coefficient that affects the jitter displacement, and is the product of the conversion constant, the image distance, and the jitter angle. For example, assuming the first conversion constant is 2000, the preset image distance is 10mm, and the jitter angle is 0.5 degrees, then the jitter displacement coefficient is 2000×tan(0.5°)×10mm. The first conversion constant is a constant used to convert different physical quantities into jitter displacement. It is usually a set value during optical design and can be determined based on the characteristics of the lens module. The preset image distance is the distance from the image plane to the focus in the lens module, which can be calculated from the preset effective focal length and object distance. For example, assuming the preset effective focal length is 50mm and the preset object distance is 1000mm, then the preset image distance is 1 / (1 / 50mm-1 / 1000mm). Replacing the amplitude of the virtual vibration wave signal with the theoretical jitter displacement can obtain the theoretical displacement curve of the image dot.
[0046] Through the implementation of the above embodiment, preset optical parameters are introduced, and the theoretical calculation of the anti-shake effect is further refined. By calculating the jitter displacement coefficient, the theoretical jitter displacement is accurately obtained, thereby generating a more accurate theoretical displacement curve of the image dots. This can optimize the detection accuracy of the anti-shake effect, making the detection results more consistent with the optical behavior in actual applications and avoiding the errors caused by simplified models.
[0047] In some embodiments, the aforementioned step 104 may include: subtracting the image dot virtual displacement curve from the image dot theoretical displacement curve to obtain an image dot displacement difference curve; and determining a quantitative value of the anti-shake effect of the target optical image stabilizer based on a first amplitude of the image dot displacement difference curve and a second amplitude of the image dot theoretical displacement curve.
[0048] In some examples, the image dot displacement difference curve is obtained by subtracting the virtual image dot displacement curve from the theoretical image dot displacement curve. It represents the difference between the actual jitter of the image dot and the theoretical calculation, and can be obtained by subtracting the virtual image dot displacement curve from the theoretical image dot displacement curve point by point. The first amplitude is a specific amplitude obtained from the image dot displacement difference curve, which can be the maximum absolute value, the average absolute value, or the amplitude at a specific moment in the image dot displacement difference curve. The second amplitude is a specific amplitude obtained from the theoretical image dot displacement curve, extracted in the same manner as the first amplitude, and used for comparison with the first amplitude. The quantized value of the anti-shake effect is obtained by calculating the difference between the first amplitude and the second amplitude. For example, if the first amplitude is 0.8 pixels and the second amplitude is 0.7 pixels, the quantized value of the anti-shake effect is a representation of the difference between the two, such as 0.1. The quantized value may be the logarithm of the difference or some scaling calculation.
[0049] For example, see Figure 3 The image dot displacement difference curve is shown. Figure 3 The medium cyan curve is the displacement change of the image point on the x-axis, and the purple curve is the displacement change of the image point on the y-axis. Figure 3 The horizontal axis is the different labels of the image dots that change over time, and the vertical axis is the displacement change of the image dots on the x-axis or y-axis, with the unit being pixel.
[0050] By implementing the above embodiment, the virtual displacement curve of the image dots is subtracted from the theoretical displacement curve to generate an image dot displacement difference curve, which can more intuitively evaluate the anti-shake effect. By comparing the difference between the actual displacement and the theoretical displacement, the anti-shake performance of the optical image stabilizer can be quantified, providing a more intuitive and accurate quantification value of the anti-shake effect.
[0051] In some embodiments, determining the quantified value of the anti-shake effect of the target optical image stabilizer based on the first amplitude of the image dot displacement difference curve and the second amplitude of the image dot theoretical displacement curve may include: calculating the product of a second conversion constant and the logarithm of the amplitude ratio to obtain the quantified value of the anti-shake effect, wherein the logarithm of the amplitude ratio is the logarithm of the ratio of the first amplitude to the second amplitude.
[0052] It should be noted that calculating the product of the second conversion constant and the logarithm of the amplitude ratio to obtain the quantified value of the anti-shake effect is essentially a process of mathematically quantifying the difference between the actual response of the image stabilizer and the theoretical ideal response, and converting it into a standardized evaluation value through scaling. During implementation, the amplitude ratio refers to the ratio of the first amplitude of the image dot displacement difference curve (indicating the deviation in the actual response) to the second amplitude of the image dot theoretical displacement curve (indicating the ideal response amplitude). This ratio reflects the degree to which the anti-shake process deviates from the ideal behavior. The logarithm of this ratio is taken to compress differences of different orders of magnitude, making the results more linearly comparable and resolvable. Subsequently, a second conversion constant is introduced. This is a pre-set coefficient with a scaling function, which is used to adjust the logarithm value to a meaningful quantitative indicator of anti-shake performance. The second conversion constant can be set according to the actual application scenario or evaluation criteria. The second conversion constant can be multiplied by the logarithm of the amplitude ratio to obtain a quantitative value of the anti-shake effect. This quantitative value of the anti-shake effect can be used as a basis for judging the performance of the optical image stabilizer. Smaller values indicate better compensation and closer to the ideal state, while larger values indicate larger deviations and weaker anti-shake performance.
[0053] By implementing the above embodiment, the logarithm of the amplitude ratio is calculated, which further refines the calculation process of the anti-shake effect quantization value, can accurately quantify the anti-shake effect, provide a more scientific and reliable evaluation index, and facilitate subsequent performance optimization and adjustment.
[0054] In some embodiments, the aforementioned step 101 may include: in response to a detection request input by a user, sending the virtual vibration wave signal to a driver chip of the target optical image stabilizer via an external microcontroller.
[0055] In some examples, the external microcontroller is an external electronic controller that receives detection requests from the user and generates corresponding virtual vibration wave signals. The virtual vibration wave signals are transmitted to the driver chip of the optical image stabilizer through the microcontroller. The external microcontroller can be connected to the target optical image stabilizer and communicate with the stabilizer through standard interfaces such as UART, I2C, and SPI. The microcontroller can be an embedded control module such as Arduino, STM32, or ESP32, or a custom-designed embedded control module. The driver chip is a key component of the target optical image stabilizer, responsible for receiving the virtual vibration wave signals from the external controller and driving the movement or adjustment of the optical image stabilizer based on the virtual vibration wave signals. It serves as an interface for communicating with the motor, sensor, and other components within the optical image stabilizer. The driver chip can be a BLDC motor driver chip or a servo control IC, etc.
[0056] Through the implementation of the above embodiment, the virtual vibration wave signal is sent to the driver chip using an external microcontroller, which simplifies the hardware design, reduces the equipment cost, can meet the needs under different test conditions, does not rely on expensive test equipment such as a vibration table, and has higher economy and universality.
[0057] In some embodiments, the aforementioned optical image stabilizer anti-shake detection method may further include: comparing the anti-shake effect quantization value with a preset quantization value threshold; when the anti-shake effect quantization value is less than the preset quantization value threshold, triggering a hardware prompt response of the optical module test bench.
[0058] In some examples, the preset quantization value threshold is a standard value set in advance during the detection process for comparison with the actual measured quantization value of the anti-shake effect. If the actual quantization value of the anti-shake effect is lower than this threshold, it means that the anti-shake performance of the target optical image stabilizer is insufficient and requires further processing or prompting. The hardware prompt response means that when the anti-shake effect is detected to be lower than the preset threshold, a prompt response will be triggered through hardware facilities such as LED lights and sound alarms to inform the user or operator that there is a problem with the optical image stabilizer; for example, when the quantization value of the anti-shake effect is detected to be lower than the preset quantization value threshold, the red LED light will be automatically lit and a warning sound will be sounded. The optical module test bench is an equipment platform for testing and verifying the anti-shake performance of the target optical image stabilizer.
[0059] Through the implementation of the above embodiment, a step of comparing with a preset quantization value threshold is introduced, making the detection of the anti-shake effect more automated and intelligent. When the detection value is lower than the set threshold, it can automatically trigger a hardware prompt response, promptly reminding the operator to take corresponding measures, which can effectively prevent unqualified optical modules from entering the next link and improve the efficiency of overall product quality control.
[0060] In some embodiments, the virtual vibration wave signal is a sinusoidal wave signal generated according to a preset amplitude, a preset frequency, and a preset phase.
[0061] In some examples, the preset amplitude refers to the maximum vibration intensity or amplitude set when the virtual vibration wave signal is generated. The preset amplitude determines the maximum deviation of the signal; for example, if the preset amplitude is set to 5, the peak amplitude of the sine wave will vary between ±5. The preset frequency is the oscillation frequency of the virtual vibration wave signal, indicating the number of oscillations of the virtual vibration wave signal per unit time. The magnitude of the preset frequency determines the periodicity and vibration speed of the vibration wave. The preset phase is the starting angle of the virtual vibration wave signal's deviation on the time axis, defining the initial state of the virtual vibration wave signal. A sine wave signal is a signal with smooth periodic fluctuations, and its waveform is generated according to a sine function.
[0062] Through the implementation of the above-mentioned embodiments, the accuracy and repeatability of the virtual vibration wave signal are ensured, and a more stable and standardized test signal is provided for the anti-shake performance test of the optical image stabilizer, thereby improving the reliability and consistency of the test results and avoiding the interference of random noise or environmental factors on the test results.
[0063] Furthermore, as an implementation of the aforementioned method embodiment, the present application also provides an optical image stabilizer anti-shake detection device for implementing the aforementioned method embodiment. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this optical image stabilizer anti-shake detection device embodiment will no longer describe the details of the aforementioned method embodiment one by one, but it should be clear that the device in the embodiment of the present application can correspond to and implement all the contents of the aforementioned method embodiment. Figure 4 As shown, the optical image stabilizer anti-shake detection device 20 includes: a request response unit 201, a virtual displacement determination unit 202, a theoretical displacement determination unit 203 and an anti-shake quantization unit 204, wherein the request response unit 201 is used to send a virtual vibration wave signal to a target optical image stabilizer in response to a detection request; the virtual displacement determination unit 202 is used to determine an image dot virtual displacement curve based on the Hall signal value of the lens module corresponding to the target optical image stabilizer; the theoretical displacement determination unit 203 is used to generate an image dot theoretical displacement curve based on preset optical parameters and the virtual vibration wave signal; and the anti-shake quantization unit 204 is used to determine a quantized value of the anti-shake effect of the target optical image stabilizer based on the image dot virtual displacement curve and the image dot theoretical displacement curve.
[0064] In some embodiments, the preset optical parameters include a preset object distance, a preset effective focal length, a preset jitter angle, and a pixel size; the theoretical displacement determination unit 203 is further used to calculate the ratio of the jitter displacement coefficient to the pixel size to obtain a theoretical jitter displacement, wherein the jitter displacement coefficient is the product of a first conversion constant, a preset image distance, and a tangent value of a preset jitter angle, and the preset image distance is the reciprocal of the difference between the reciprocal of the preset effective focal length and the reciprocal of the preset object distance; and a theoretical displacement curve of an image dot is generated based on the theoretical jitter displacement and the virtual vibration wave signal.
[0065] In some embodiments, the anti-shake quantization unit 204 is further used to subtract the image dot virtual displacement curve from the image dot theoretical displacement curve to obtain an image dot displacement difference curve; and determine the quantization value of the anti-shake effect of the target optical image stabilizer based on the first amplitude of the image dot displacement difference curve and the second amplitude of the image dot theoretical displacement curve.
[0066] In some embodiments, the anti-shake quantization unit 204 is further configured to calculate the product of the second conversion constant and the amplitude ratio logarithm to obtain an anti-shake effect quantization value, wherein the amplitude ratio logarithm is the logarithm of the ratio of the first amplitude to the second amplitude.
[0067] In some embodiments, the request response unit 201 is further configured to send the virtual vibration wave signal to a driver chip of the target optical image stabilizer via an external microcontroller in response to a detection request input by a user.
[0068] In some embodiments, the anti-shake quantization unit 204 is further configured to compare the anti-shake effect quantization value with a preset quantization value threshold; when the anti-shake effect quantization value is less than the preset quantization value threshold, a hardware prompt response of the optical module test bench is triggered.
[0069] In some embodiments, the virtual vibration wave signal is a sinusoidal wave signal generated according to a preset amplitude, a preset frequency, and a preset phase.
[0070] The present application also provides a computer-readable storage medium, which stores computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will be caused to execute any step of the optical image stabilizer anti-shake detection method provided in the present application.
[0071] In some embodiments, the computer-readable storage medium may be a random access memory (RAM), a read-only memory (ROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); or it may be various devices including one or any combination of the above memories.
[0072] In some embodiments, computer-executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0073] In some embodiments, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (for example, files storing one or more modules, subroutines, or code portions).
[0074] In some embodiments, computer-executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed across multiple sites and interconnected by a communication network.
[0075] like Figure 5 As shown, the present application also provides an electronic device 30, including a memory 310, a processor 320 and a computer program 311 stored in the memory 310 and executable on the processor. When the processor 320 executes the computer program 311, any step of the above-mentioned optical image stabilizer anti-shake detection method is implemented.
[0076] The present application also provides a computer program product, comprising a computer program or computer-executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer program or computer-executable instructions from the computer-readable storage medium and executes the computer program or computer-executable instructions, causing the electronic device to perform any step of the optical image stabilizer anti-shake detection method described above.
[0077] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for detecting anti-shake of an optical image stabilizer, characterized in that: include: sending a virtual shock wave signal to a target optical image stabilizer in response to a detection request; determining an image dot virtual displacement curve according to a Hall signal value of a lens module corresponding to the target optical image stabilizer; generating a theoretical displacement curve of an image point according to preset optical parameters and the virtual vibration wave signal; A quantized value of an anti-shake effect of the target optical image stabilizer is determined according to the image dot virtual displacement curve and the image dot theoretical displacement curve.
2. The optical image stabilizer anti-shake detection method according to claim 1, wherein: The preset optical parameters include a preset object distance, a preset effective focal length, a preset jitter angle and a pixel size; Generating the image point theoretical displacement curve according to the preset optical parameters and the virtual vibration wave signal includes: Calculating a ratio of a jitter displacement coefficient to the pixel size to obtain a theoretical jitter displacement, wherein the jitter displacement coefficient is a product of a first conversion constant, a preset image distance, and a tangent value of the preset jitter angle, wherein the preset image distance is a reciprocal of a difference between a reciprocal of the preset effective focal length and a reciprocal of the preset object distance; The image dot theoretical displacement curve is generated according to the theoretical jitter displacement and the virtual vibration wave signal.
3. The optical image stabilizer anti-shake detection method according to claim 1, wherein: The determining, according to the image dot virtual displacement curve and the image dot theoretical displacement curve, a quantitative value of an anti-shake effect of the target optical image stabilizer includes: Subtracting the image dot virtual displacement curve from the image dot theoretical displacement curve to obtain an image dot displacement difference curve; A quantized value of an anti-shake effect of the target optical image stabilizer is determined according to a first amplitude of the image dot displacement difference curve and a second amplitude of the image dot theoretical displacement curve.
4. The optical image stabilizer anti-shake detection method according to claim 3, wherein: The step of determining the quantized value of the anti-shake effect of the target optical image stabilizer according to the first amplitude of the image dot displacement difference curve and the second amplitude of the image dot theoretical displacement curve includes: A product of a second conversion constant and a logarithm of the amplitude ratio is calculated to obtain the anti-shake effect quantization value, wherein the logarithm of the amplitude ratio is the logarithm of the ratio of the first amplitude to the second amplitude.
5. The optical image stabilizer anti-shake detection method according to any one of claims 1 to 4, characterized in that: The step of sending a virtual vibration wave signal to a target optical image stabilizer in response to a detection request comprises: In response to a detection request input by a user, the virtual vibration wave signal is sent to a driving chip of the target optical image stabilizer via an external microcontroller.
6. The optical image stabilizer anti-shake detection method according to any one of claims 1 to 4, characterized in that: The optical image stabilizer anti-shake detection method further includes: Comparing the anti-shake effect quantization value with a preset quantization value threshold; When the anti-shake effect quantization value is less than the preset quantization value threshold, a hardware prompt response of the optical module test bench is triggered.
7. The optical image stabilizer anti-shake detection method according to any one of claims 1 to 4, characterized in that: The virtual vibration wave signal is a sine wave signal generated according to a preset amplitude, a preset frequency and a preset phase.
8. An optical image stabilizer anti-shake detection device, characterized in that: include: a request response unit for sending a virtual vibration wave signal to a target optical image stabilizer in response to a detection request; a virtual displacement determination unit, configured to determine a virtual displacement curve of an image point according to a Hall signal value of a lens module corresponding to the target optical image stabilizer; a theoretical displacement determination unit, configured to generate a theoretical displacement curve of an image point according to preset optical parameters and the virtual vibration wave signal; The anti-shake quantization unit is used to determine a quantization value of the anti-shake effect of the target optical image stabilizer according to the image dot virtual displacement curve and the image dot theoretical displacement curve.
9. An electronic device comprising: A memory and a processor, wherein the processor is configured to implement the steps of the optical image stabilizer anti-shake detection method according to any one of claims 1 to 7 when executing the computer program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the optical image stabilizer anti-shake detection method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Optical anti-shake test method and system, computer equipment and storage medium
CN121253114A
Optical image stabilization testing methods, systems, computer equipment, and storage media
CN121253114B