A method and apparatus for detecting camera shake

By capturing and receiving shake data when the camera module turns off and on the anti-shake module, and calculating the compression ratio to verify the anti-shake performance, the problems of high cost and low reliability in the existing technology are solved, and low-cost and efficient anti-shake detection is achieved.

CN115103181BActive Publication Date: 2025-10-10KUNSHAN Q TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210889412.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-27
Publication Date
2025-10-10
Estimated Expiration
2042-07-27

AI Technical Summary

Technical Problem

The cost of anti-shake testing of camera modules in the existing technology is high and the reliability is low. Especially when a vibration table is not used, the reliability of the results of traditional methods is difficult to guarantee.

Method used

The first image is obtained by shooting a shaking target object with the anti-shake module of the camera module to be tested turned off. The second image is captured when the anti-shake module is turned on to receive the shaking data. The compression ratio is calculated based on the two images to verify the anti-shake performance, avoiding the use of a vibration table to provide a vibration source.

Benefits of technology

It reduces hardware and time costs, improves detection efficiency and consistency, and ensures the reliability of anti-shake performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115103181B_ABST
    Figure CN115103181B_ABST
Patent Text Reader

Abstract

The application discloses a kind of anti-shake detection method and device, wherein the method comprises: when the camera module to be measured is closed anti-shake module, the target object in the preset graph board video is photographed, and the first image is obtained;The target object in the graph board video is shaken according to the preset shaking data;When the camera module to be measured is opened anti-shake module, the shaking data is received, and the target object in the graph board video is photographed, and the second image is obtained;Based on the first image and the second image, the compression ratio of the camera module to be measured is obtained;Compression ratio is used to verify the anti-shake performance of the camera module to be measured.The method of the application can reduce the cost of camera module anti-shake test, and has higher reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of camera technology, and in particular to an anti-shake detection method and device. Background Art

[0002] At present, the camera modules of mobile phones all have OIS (Optical Image Stabilizer, optical image stabilizer) anti-shake modules. Before the camera module is assembled to other electronic devices such as mobile phones, the OIS anti-shake module of the camera module needs to be tested to ensure that the OIS anti-shake module is functioning normally. In the traditional testing method, the camera module needs to be installed on a vibration table with a gyroscope first, and the vibration table is used to simulate the vibration environment. The rotation angle is tested by the gyroscope, and the OIS anti-shake module drives the voice coil motor (VCM) to make corresponding compensation, thereby realizing the anti-shake test of the camera module. However, the use of a vibration table to simulate a shaking environment has the problems of high cost and low consistency; in addition, there are methods in the prior art that do not require a vibration table, such as directly inputting the vibration curve generated by a standard vibration table into the OIS anti-shake module of the camera module, but this method cannot adopt the traditional compression ratio definition method, and the reliability of the result remains to be verified.

[0003] Therefore, the current existing technology for anti-shake testing of camera modules has the problems of high cost and low reliability. Summary of the Invention

[0004] In view of the above problems, the present invention proposes an anti-shake detection method and device, which can reduce the cost of anti-shake testing of camera modules and have higher reliability.

[0005] In the first aspect, the present application provides the following technical solutions through an embodiment:

[0006] An anti-shake detection method, comprising:

[0007] When the anti-shake module of the camera module to be tested is turned off, the target object in the picture board video is photographed to obtain a first image; the target object in the picture board video is shaken according to the preset shake data; when the anti-shake module of the camera module to be tested is turned on, the shake data is received, and the target object in the picture board video is photographed to obtain a second image; based on the first image and the second image, the compression ratio of the camera module to be tested is obtained; the compression ratio is used to verify the anti-shake performance of the camera module to be tested.

[0008] Optionally, the target object is a test board; and a method for acquiring the target object includes:

[0009] The preset test plate is shaken according to the shake data; and the shaken test plate is recorded to obtain a plate video.

[0010] Optionally, the test chart is a cross chart or a dot chart.

[0011] Optionally, when the camera module to be tested turns on an anti-shake module, receiving the shaking data and shooting the target object in the board video to obtain the second image includes:

[0012] Turn on the anti-shake function of the camera module to be tested, and output the jitter data simulated and generated by the preset processor to the camera module to be tested; the jitter data is angle data; after receiving the angle data, control the camera module to be tested to shoot the target object to obtain the second image.

[0013] Optionally, obtaining the compression ratio of the camera module to be tested based on the first image and the second image includes:

[0014] Determine a first shadow width corresponding to the first image and a second shadow width corresponding to the second image; the first shadow width is the width of a transition area between the identification mark in the first image and the image background; the second shadow width is the width of a transition area between the identification mark in the second image and the image background; and obtain the compression ratio based on the first shadow width and the second shadow width.

[0015] In the second aspect, based on the same inventive concept, this application provides the following technical solution through an embodiment:

[0016] An anti-shake detection device, comprising:

[0017] The first image acquisition module is used to shoot the target object in the preset picture board video to obtain a first image when the anti-shake module of the camera module to be tested is turned off; the target object in the picture board video is shaken according to the preset jitter data; the second image acquisition module is used to receive the jitter data and shoot the target object in the picture board video to obtain a second image when the anti-shake module of the camera module to be tested is turned on; the compression ratio acquisition module is used to obtain the compression ratio of the camera module to be tested based on the first image and the second image; the compression ratio is used to verify the anti-shake performance of the camera module to be tested.

[0018] Optionally, the target object is a test board; the device further includes a target object acquisition module, configured to:

[0019] The preset test plate is shaken according to the shake data; and the shaken test plate is recorded to obtain a plate video.

[0020] Optionally, the second image acquisition module is specifically configured to:

[0021] Turn on the anti-shake function of the camera module to be tested, and output the jitter data simulated and generated by the preset processor to the camera module to be tested; the jitter data is angle data; after receiving the angle data, control the camera module to be tested to shoot the target object to obtain the second image.

[0022] In the third aspect, based on the same inventive concept, this application provides the following technical solution through an embodiment:

[0023] An electronic device includes a processor and a memory, wherein the memory is coupled to the processor and stores instructions that, when executed by the processor, cause the electronic device to perform the following steps:

[0024] When the anti-shake module of the camera module to be tested is turned off, the target object in the preset picture board video is photographed to obtain a first image; the target object in the picture board video is shaken according to the preset jitter data; when the anti-shake module of the camera module to be tested is turned on, the jitter data is received, and the target object in the picture board video is photographed to obtain a second image; based on the first image and the second image, the compression ratio of the camera module to be tested is obtained; the compression ratio is used to verify the anti-shake performance of the camera module to be tested.

[0025] Fourthly, based on the same inventive concept, this application provides the following technical solutions through an embodiment:

[0026] A computer program is stored on a readable storage medium, which, when executed by a processor, implements the following steps:

[0027] When the anti-shake module of the camera module to be tested is turned off, the target object in the preset picture board video is photographed to obtain a first image; the target object in the picture board video is shaken according to the preset jitter data; when the anti-shake module of the camera module to be tested is turned on, the jitter data is received, and the target object in the picture board video is photographed to obtain a second image; based on the first image and the second image, the compression ratio of the camera module to be tested is obtained; the compression ratio is used to verify the anti-shake performance of the camera module to be tested.

[0028] The embodiment of the present application provides a kind of anti-shake detection method and device, by in the camera module to be measured closing anti-shake module, the target object in the preset graph board video is shot, obtains first image, and target object is the image that is shaken according to preset shaking data in the preset graph board video;When the camera module to be measured opens anti-shake module, receive shaking data, and the target object in the graph board video is shot, and obtains second image;Based on first image and the second image, the compression ratio of the camera module to be measured is obtained, and compression ratio is used to verify the anti-shake performance of the camera module to be measured.In the whole method execution process, based on the first image and second image of shaking data, first image and second image are collected, and vibration table is not needed to provide vibration source for the camera module to be measured.Therefore, for the same kind of anti-shake requirement camera module, control shaking data does not change, and vibration table does not need to be tested and calibrated again, greatly reduces hardware cost and time cost, improves detection efficiency.

[0029] The above description is only a summary of the technical scheme of the present application, in order to more clearly understand the technical means of the present application, and can be implemented according to the content of the specification, and in order to make the above and other purposes, characteristics and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS

[0030] In order to more clearly illustrate the technical scheme in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creating labor. In the drawings:

[0031] Figure 1 The flow chart of the anti-shake detection method in the embodiment of the present application is shown;

[0032] Figure 2 The schematic diagram of the first image obtained in the embodiment of the present application is shown;

[0033] Figure 3 The schematic diagram of the second image obtained in the embodiment of the present application is shown;

[0034] Figure 4 The schematic diagram of the reference image obtained in the embodiment of the present application is shown;

[0035] Figure 5 The structure schematic diagram of the anti-shake detection device in the embodiment of the present application is shown. DETAILED DESCRIPTION

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

[0037] In an embodiment of the present invention, a method for detecting stabilization of an optically stabilized image (OIS) module is provided. This method can be used to detect the stabilization performance of a camera module's optically stabilized image (OIS) module. During the detection process, a vibration platform is not required to provide a vibration environment for the camera module, thereby ensuring high detection consistency and reducing costs. The method according to an embodiment of the present invention is described in detail below using specific examples.

[0038] See also Figure 1 In one embodiment of the present invention, an anti-shake detection method is provided, the method comprising:

[0039] Step S10: When the anti-shake module of the camera module to be tested is turned off, a target object in a preset picture board video is photographed to obtain a first image; the target object in the picture board video shakes according to the preset shaking data;

[0040] Step S20: When the anti-shake module of the camera module to be tested is turned on, the shaking data is received, and the target object in the picture board video is photographed to obtain a second image;

[0041] Step S30: Based on the first image and the second image, a compression ratio of the camera module to be tested is obtained; the compression ratio is used to verify the anti-shake performance of the camera module to be tested.

[0042] In steps S10-S30 in this embodiment, the first image is obtained by acquiring the first image collected by the camera module under test when the anti-shake module (i.e., the OIS module is closed) is closed, and the first image is collected by the target object in shaking. Since the anti-shake function of the camera module under test is closed at this time, the first image at this time can be equivalent to the camera module under test collecting a stationary target object when shaking according to the shaking data. At this time, the use of a vibration table to provide a vibration source for the camera module under test is avoided. Then, the anti-shake function of the camera module under test is turned on, and the shaking data is directly input to the camera module under test, and the camera module under test is equivalent to obtaining the shaking data collected by the gyroscope; at this time, the driving chip of the camera module under test will recognize that the camera module under test is in a shaking state consistent with the shaking data, and the current shaking state is compensated for anti-shake; therefore, at this time, the camera module under test is in a shaking state and the anti-shake compensation is turned on, and the second image is collected by the target object in shaking. The state of the camera module in the shaking state and the anti-shake module is simulated to shoot the stationary target object, thereby avoiding the use of a vibration table. Finally, based on the first image and the second image, the compression ratio of the camera module under test can be determined, thereby realizing the anti-shake performance detection of the camera module under test. The specific possible implementation of each step of the method is described below.

[0043] Step S10: When the anti-shake module of the camera module under test is closed, the target object in the preset chart video is shot to obtain a first image; the target object in the chart video shakes according to preset shaking data.

[0044] In step S10, the camera module under test has an OIS module, and the anti-shake module is closed, i.e., the OIS module is closed. The shaking angle corresponding to the shaking data meets the test condition for testing the camera module under test, i.e., the shaking angle corresponding to the shaking data is the same as the shaking angle when the standard vibration table is used to test the camera module under test.

[0045] In this embodiment, the target object is a test chart played by a preset chart video, which is called a chart in the technical field; for example, the chart can be fixed on a vibration source to vibrate, and a recording tool is used to record the test chart to obtain a chart video. Then, the chart video is photographed to obtain a first image, as shown in Figure 2

[0046] ​First, shake the preset test plate according to the jitter data. For example, the test plate can be fixed on a vibration table that has been calibrated by the standard, and then the vibration table can be controlled to vibrate according to the jitter angle curve corresponding to the jitter data. Next, record the test plate in the shaking state to obtain a plate video; this plate video can be used as the target object. When recording, a high frame rate can be used to achieve a better simulation effect; for example, 120 frames, 175 frames, 240 frames, and so on. For the camera module under the same type of test conditions, this method only requires the use of the vibration table once, and at most only requires the calibration of the vibration table once. The obtained plate video can be used repeatedly as a target object, which greatly reduces the hardware cost and time cost and improves the detection efficiency.

[0047] The test pattern used can be a crosshair pattern or a dot pattern, ensuring accurate determination of the line width or shadow width in the first and second images. In this embodiment, a crosshair pattern is used as an example. Alternatively, other test patterns with identification mark patterns can be used without limitation. When the camera module under test, without the anti-shake module activated, captures the identification mark in a shaken state, a first image with the identification mark's shadow can be obtained.

[0048] Step S20: When the anti-shake module of the camera module to be tested is turned on, the shaking data is received, and the target object in the picture board video shooting is photographed to obtain a second image.

[0049] In step S20, a preset processor may be used to simulate and generate jitter data, and output it to the camera module to be tested. Specifically, the anti-shake function of the camera module to be tested is first turned on, and the jitter data simulated and generated by the preset processor is output to the camera module to be tested. For example, an MCU (Microcontroller Unit) may be used to simulate and generate jitter data according to a preset program, and the jitter data may be output as angle data obtained by integral operation, and the angle data may be output as the angle data obtained by integral operation. This ensures that the driver chip of the camera module to be tested can read and identify, without the need for secondary calculation, thereby improving test efficiency and accuracy. Then, after receiving the angle data, the camera module to be tested is controlled to shoot the target object to obtain a second image. At this time, the camera module to be tested receives the jitter data and identifies its own state as a jitter state, and the anti-shake module will perform jitter compensation on the target object based on the jitter data, thereby obtaining a second image after anti-shake compensation, such as Figure 3 shown.

[0050] Step S30: Based on the first image and the second image, a compression ratio of the camera module to be tested is obtained; the compression ratio is used to verify the anti-shake performance of the camera module to be tested.

[0051] One implementation of step S30 may be as follows: determine a first shadow width corresponding to the first image and a second shadow width corresponding to the second image; the first shadow width is the width of the transition area between the identification mark and the image background in the first image; the second shadow width is the width of the transition area between the identification mark and the image background in the second image. The image background refers to the image area outside the identification mark. Finally, based on the first shadow width and the second shadow width, obtain a compression ratio; specifically, calculate the compression ratio based on SR1=20*log10(S1 / S2), as follows: Figure 2-3 As shown, SR1 is the compression ratio, S1 is the first shadow width, and S2 is the second shadow width.

[0052] In other implementations, the following steps may be performed: obtaining a reference image, where the reference image is obtained by photographing a stationary target object by the camera module to be tested; then obtaining a reference shadow width in the reference image, where the reference shadow width is the width of the transition area between the identification mark and the image background in the reference image. Finally, based on the first shadow width, the second shadow width, and the reference, a compression ratio is obtained; that is, the compression ratio may be calculated based on SR2=20*log10((S1-S0) / (S2-S0)), as follows: Figure 2-4 As shown, SR2 is the compression ratio, S1 is the first shadow width, S2 is the second shadow width, and S0 is the reference shadow width.

[0053] In summary, an anti-shake detection method is provided in this embodiment, which is achieved by obtaining a first image captured by the camera module to be tested when the anti-shake module is turned off, the first image is obtained by capturing a shaking target object, and the target object is shaken according to preset shake data; and obtaining a second image captured when the camera module to be tested is turned on the anti-shake module and receives shake data, the first image is obtained by capturing a stationary target object; based on the first image and the second image, the compression ratio of the camera module to be tested is obtained, and the compression ratio is used to verify the anti-shake performance of the camera module to be tested. During the execution of the entire method, the first image and the second image are captured based on the shake data, and there is no need for a vibration table to provide a vibration source for the camera module to be tested. Therefore, for camera modules with the same type of requirements, it is sufficient to control the shake data to remain unchanged, and there is no need to test and calibrate the vibration table, which greatly reduces the hardware cost and time cost and improves the detection efficiency.

[0054] See also Figure 5 Based on the same inventive concept, another embodiment of the present invention provides an anti-shake detection device 300. The anti-shake detection device 300 includes:

[0055] The first image acquisition module is used to shoot the target object in the preset picture board video to obtain a first image when the anti-shake module of the camera module to be tested is turned off; the target object in the picture board video is shaken according to the preset jitter data; the second image acquisition module is used to receive the jitter data and shoot the target object in the picture board video to obtain a second image when the anti-shake module of the camera module to be tested is turned on; the compression ratio acquisition module is used to obtain the compression ratio of the camera module to be tested based on the first image and the second image; the compression ratio is used to verify the anti-shake performance of the camera module to be tested.

[0056] As an optional implementation manner, the target object is a test plate; the device further includes a target object acquisition module, which is used to:

[0057] The preset test plate is shaken according to the shake data; and the shaken test plate is recorded to obtain a plate video.

[0058] As an optional implementation manner, the second image acquisition module 302 is specifically configured to:

[0059] Turn on the anti-shake function of the camera module to be tested, and output the jitter data simulated and generated by the preset processor to the camera module to be tested; the jitter data is angle data; after receiving the angle data, control the camera module to be tested to shoot the target object to obtain the second image.

[0060] As an optional implementation, the test chart is a cross chart or a dot chart.

[0061] As an optional implementation manner, the compression ratio acquisition module 303 is specifically configured to:

[0062] Determine a first shadow width corresponding to the first image and a second shadow width corresponding to the second image; the first shadow width is the width of a transition area between the identification mark in the first image and the image background; the second shadow width is the width of a transition area between the identification mark in the second image and the image background; and obtain the compression ratio based on the first shadow width and the second shadow width.

[0063] It should be noted that the specific implementation and technical effects of the anti-shake 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 content in the aforementioned method embodiment.

[0064] 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 stores instructions. When the instructions are executed by the processor, the electronic device executes the steps of any of the methods described in the aforementioned embodiments. Specifically, the following steps may be executed:

[0065] When the anti-shake module of the camera module to be tested is turned off, the target object in the preset picture board video is photographed to obtain a first image; the target object in the picture board video is shaken according to the preset jitter data; when the anti-shake module of the camera module to be tested is turned on, the jitter data is received, and the target object in the picture board video is photographed to obtain a second image; based on the first image and the second image, the compression ratio of the camera module to be tested is obtained; the compression ratio is used to verify the anti-shake performance of the camera module to be tested.

[0066] It should be noted that, in the electronic device provided by the embodiment of the present invention, when the instructions are executed by the processor, the specific implementation of each step and the technical effects 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 content in the aforementioned method embodiment.

[0067] Based on the same inventive concept, another embodiment of the present invention further provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the aforementioned method embodiments. Specifically, the following steps may be executed:

[0068] When the anti-shake module of the camera module to be tested is turned off, the target object in the preset picture board video is photographed to obtain a first image; the target object in the picture board video is shaken according to the preset jitter data; when the anti-shake module of the camera module to be tested is turned on, the jitter data is received, and the target object in the picture board video is photographed to obtain a second image; based on the first image and the second image, the compression ratio of the camera module to be tested is obtained; the compression ratio is used to verify the anti-shake performance of the camera module to be tested.

[0069] It should be noted that the readable storage medium provided by the embodiment of the present invention, in which when the program is 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 can be made to the corresponding content in the aforementioned method embodiment.

[0070] The term "and / or" that appears in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the 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 comprising several different elements and with the aid of appropriately programmed computers. In a unit claim that lists several devices, several of these devices can 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.

[0071] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, 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 magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0072] 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 flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, 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 flowcharts and / or block diagrams. 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.

[0073] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work 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 The function specified in one or more boxes.

[0074] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

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

[0076] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.

Claims

1. A method for detecting anti-shake, characterized in that: include: When the anti-shake module of the camera module to be tested is turned off, shooting a target object in a preset picture board video to obtain a first image; The target object in the picture plate video is jittered according to preset jitter data, and the target object is a test picture plate; Turning on the anti-shake function of the camera module to be tested, and outputting the jitter data simulated and generated by the preset processor to the camera module to be tested; The jitter data is angle data; After receiving the angle data, controlling the camera module to be tested to shoot the target object to obtain a second image; Obtaining a compression ratio of the camera module to be tested based on the first image and the second image; The compression ratio is used to verify the anti-shake performance of the camera module to be tested; Methods for obtaining the target object include: Dithering a preset test plate according to the dithering data; The shaking test plate is recorded to obtain a plate video.

2. The method according to claim 1, characterized in that The test chart is a cross chart or a dot chart.

3. The method according to claim 1, characterized in that The obtaining, based on the first image and the second image, a compression ratio of the camera module to be tested, includes: Determining a first shadow width corresponding to the first image and a second shadow width corresponding to the second image; the first shadow width is the width of a transition area between the identification mark and the image background in the first image; and the second shadow width is the width of a transition area between the identification mark and the image background in the second image; The compression ratio is obtained based on the first shadow width and the second shadow width.

4. An anti-shake detection device, characterized in that: include: A first image acquisition module is used to capture a target object in a preset image board video to obtain a first image when the anti-shake module of the camera module to be tested is turned off; The target object in the picture plate video is jittered according to preset jitter data, and the target object is a test picture plate; A second image acquisition module is configured to enable the anti-shake function of the camera module to be tested and output the shake data simulated and generated by the preset processor to the camera module to be tested; the shake data is angle data; and after receiving the angle data, the camera module to be tested is controlled to shoot the target object to obtain a second image; A compression ratio acquisition module, configured to obtain a compression ratio of the camera module to be tested based on the first image and the second image; The compression ratio is used to verify the anti-shake performance of the camera module to be tested; The target object acquisition module is used to shake the preset test plate according to the shaking data; record the shaken test plate to obtain a plate video.

5. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory being coupled to the processor and storing instructions that, when executed by the processor, cause the electronic device to perform the following steps: When the anti-shake module of the camera module to be tested is turned off, a target object in a preset picture plate video is photographed to obtain a first image; the target object in the picture plate video is shaken according to preset shake data, and the target object is a test picture plate; Turning on the anti-shake function of the camera module to be tested, and outputting the jitter data simulated and generated by the preset processor to the camera module to be tested; The jitter data is angle data; After receiving the angle data, controlling the camera module to be tested to shoot the target object to obtain a second image; Obtaining a compression ratio of the camera module to be tested based on the first image and the second image; The compression ratio is used to verify the anti-shake performance of the camera module to be tested; Methods for obtaining the target object include: Dithering a preset test plate according to the dithering data; The shaking test plate is recorded to obtain a plate video.

6. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the following steps are performed: When the anti-shake module of the camera module to be tested is turned off, a target object in a preset picture plate video is photographed to obtain a first image; the target object in the picture plate video is shaken according to preset shake data, and the target object is a test picture plate; Turning on the anti-shake function of the camera module to be tested, and outputting the jitter data simulated and generated by the preset processor to the camera module to be tested; The jitter data is angle data; After receiving the angle data, controlling the camera module to be tested to shoot the target object to obtain a second image; Obtaining a compression ratio of the camera module to be tested based on the first image and the second image; The compression ratio is used to verify the anti-shake performance of the camera module to be tested; Methods for obtaining the target object include: Dithering a preset test plate according to the dithering data; The shaking test plate is recorded to obtain a plate video.

Citation Information

Patent Citations

  • Anti-shake effect test method and device, electronic equipment and medium

    CN110572638A

  • Optical anti-jittering test method, device, equipment and medium

    CN113315965A