CN113315965B - Optical anti-shake test method, device, equipment and medium - Google Patents

Optical anti-shake test method, device, equipment and medium Download PDF

Info

Publication number
CN113315965B
CN113315965B CN202110439298.6A CN202110439298A CN113315965B CN 113315965 B CN113315965 B CN 113315965B CN 202110439298 A CN202110439298 A CN 202110439298A CN 113315965 B CN113315965 B CN 113315965B
Authority
CN
China
Prior art keywords
image data
optical anti
shake
image
acquired
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110439298.6A
Other languages
Chinese (zh)
Other versions
CN113315965A (en
Inventor
周寅龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunshan Q Technology Co Ltd
Original Assignee
Kunshan Q Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kunshan Q Technology Co Ltd filed Critical Kunshan Q Technology Co Ltd
Priority to CN202110439298.6A priority Critical patent/CN113315965B/en
Publication of CN113315965A publication Critical patent/CN113315965A/en
Application granted granted Critical
Publication of CN113315965B publication Critical patent/CN113315965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses an optical anti-shake test method, an optical anti-shake test device, optical anti-shake test equipment and an optical anti-shake test medium, wherein the method comprises the following steps: acquiring first image data acquired in an optical anti-shake test process; processing the first image data by adopting an image processing flow corresponding to the format of the first image data to obtain second image data in a unified format; and calculating data representing the test effect of the optical anti-shake test according to the second image data. The technical problem that a system for performing OIS test on a module on a mobile phone is not available in the prior art at present is solved, and the technical scheme is provided, which can be used for testing single modules in a module factory and testing the whole mobile phone in the mobile phone factory.

Description

Optical anti-shake test method, device, equipment and medium
Technical Field
The present invention relates to the field of camera testing, and in particular, to a method, apparatus, device, and medium for optical anti-shake testing.
Background
OIS (Optical Image Stabilization) optical anti-shake realizes the compensation of the shake direction of the lens and the camera body through a physical technology, reduces the image blurring effect caused by shake when shooting images, and improves the shooting quality. Along with gradual upgrade of the camera module, the OIS function becomes more and more 'standard' of the camera module, and more new projects of mobile phone clients directly require to add the OIS function, but the time and experience of contact of the mobile phone clients with the OIS are limited, so that many mobile phone clients cannot provide an objective and effective OIS function test system, and a module factory is required to provide corresponding support. However, there is no system for OIS testing of modules on a complete mobile phone.
Disclosure of Invention
The embodiment of the application solves the technical problem that a system for OIS test on a module on a mobile phone does not exist in the prior art at present by providing the optical anti-shake test method, the device, the equipment and the medium, and provides a technical scheme which can test the single module of a module factory and also can test the whole mobile phone of the mobile phone factory.
In a first aspect, the present application provides, by an embodiment of the present application, the following technical solutions:
an optical anti-shake test method, comprising:
acquiring first image data acquired in an optical anti-shake test process;
processing the first image data by adopting an image processing flow corresponding to the format of the first image data to obtain second image data with a uniform format;
and calculating data representing the test effect of the optical anti-shake test according to the second image data.
Preferably, the acquiring the first image data acquired during the optical anti-shake test includes:
acquiring image data of an image A acquired when the vibrating table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when the vibrating table is opened and the optical anti-shake is closed;
image data of an image C acquired when the vibrating table is opened and the optical anti-shake is opened is acquired.
Preferably, the calculating data representing the test effect of the optical anti-shake test according to the second image data includes:
compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is compression ratio; d0 is the line width of the image a; d1 is the line width of the image B; d2 is the line width of the image C.
Preferably, the processing the first image data to obtain second image data in a unified format using an image processing flow corresponding to the format of the first image data includes:
when the format of the first image data is RAW (unprocessed), performing difference processing on the first image data to obtain second image data in RGB (Red Green Blue) format;
when the format of the first image data is YUV (Y represents brightness and U, V represents chromaticity of color), performing data conversion processing on the first image data to obtain second image data in RGB format.
Preferably, before the acquiring the first image data acquired during the optical anti-shake test, the method further includes:
if the equipment to be tested is a single module, the module is powered by a tool to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the device to be tested is mounted on the mobile terminal, the mobile terminal supplies power to the module to collect image data, and the collected first image data is stored in the mobile terminal.
Preferably, the acquiring the first image data acquired during the optical anti-shake test includes:
if the acquired first image data is stored at the equipment end through the tool, accessing the tool through test software of the equipment end to acquire the acquired first image data and store the acquired first image data at the equipment end;
if the acquired first image data is stored in the mobile terminal, the first image data is transmitted to a computer and stored on a computer disk in a local file mode, and test software needs to load the local file to acquire the first image data.
In a second aspect, the present application provides, by an embodiment of the present application, the following technical solutions:
an optical anti-shake test apparatus comprising:
the acquisition unit is used for acquiring first image data acquired in the optical anti-shake test process;
the processing unit is used for processing the first image data by adopting an image processing flow corresponding to the format of the first image data to obtain second image data with a uniform format;
and the calculating unit is used for calculating data representing the test effect of the optical anti-shake test according to the second image data.
Preferably, the processing unit is further configured to:
when the format of the first image data is RAW format, performing difference processing on the first image data to obtain second image data in RGB format;
and when the format of the first image data is YUV format, performing data conversion processing on the first image data to obtain second image data in RGB format.
Preferably, the acquiring unit is further configured to:
acquiring image data of an image A acquired when the vibrating table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when the vibrating table is opened and the optical anti-shake is closed;
image data of an image C acquired when the vibrating table is opened and the optical anti-shake is opened is acquired.
Preferably, the computing unit is further configured to:
compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is compression ratio; d0 is the line width of the image a; d1 is the line width of the image B; d2 is the line width of the image C.
Preferably, the test device further comprises an acquisition unit, wherein the acquisition unit is used for:
if the equipment to be tested is a single module, the module is powered by a tool to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the device to be tested is mounted on the mobile terminal, the mobile terminal supplies power to the module to collect image data, and the collected first image data is stored in the mobile terminal.
Preferably, the acquiring unit is further configured to:
if the acquired first image data is stored at the equipment end through the tool, accessing the tool through test software of the equipment end to acquire the acquired first image data and store the acquired first image data at the equipment end;
if the acquired first image data is stored in the mobile terminal, the first image data is transmitted to a computer and stored on a computer disk in a local file mode, and test software needs to load the local file to acquire the first image data.
In a third aspect, the present application provides, by an embodiment of the present application, the following technical solutions:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the first aspect are implemented when the processor executes the computer program.
In a fourth aspect, the present invention provides, according to an embodiment of the present invention, the following technical solutions:
a computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the first aspect.
One or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
the embodiment of the invention discloses an optical anti-shake test method, an optical anti-shake test device, optical anti-shake test equipment and an optical anti-shake test medium. Therefore, the test result is obtained based on the second image data in the unified format, and is further compatible with the optical anti-shake test of the single module and the whole mobile phone. Therefore, the technical problem that a system for performing OIS test on the module on the mobile phone is not available in the prior art at present is solved, and the technical scheme for testing the single module in the module factory and testing the whole mobile phone in the mobile phone factory is provided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an optical anti-shake test method according to an embodiment of the invention;
FIG. 2 is a detailed view of the flow chart of FIG. 1 in an embodiment of the invention;
FIG. 3 is a first image pattern according to an embodiment of the present invention;
FIG. 4 is a second embodiment of an image pattern;
FIG. 5 is a flowchart of an embodiment of an optical anti-shake test method according to an embodiment of the invention;
FIG. 6 is a block diagram of an optical anti-shake test apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram of an electronic device in an embodiment of the invention;
fig. 8 is a block diagram of a computer-readable storage medium in an embodiment of the present invention.
Detailed Description
The embodiment of the application solves the technical problem that a system for OIS test on a module on a mobile phone does not exist in the prior art at present by providing the optical anti-shake test method, the device, the equipment and the medium, and provides a technical scheme which can test the single module of a module factory and also can test the whole mobile phone of the mobile phone factory.
The technical scheme of the embodiment of the application aims to solve the technical problems, and the overall thought is as follows:
an optical anti-shake test method, comprising:
acquiring first image data acquired in an optical anti-shake test process;
processing the first image data by adopting an image processing flow corresponding to the format of the first image data to obtain second image data in a unified format;
and calculating data representing the test effect of the optical anti-shake test according to the second image data.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments.
First, the term "and/or" appearing herein is merely an association relationship describing associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Example 1
Specifically, as shown in fig. 1, an embodiment of the present application provides an optical anti-shake test method, including:
step S101, acquiring first image data acquired in an optical anti-shake test process.
In the specific implementation process, the camera single module is only one optical component, the shot image can not be stored and recorded, and the whole mobile phone comprises a complete shooting system, so that the shot image of the camera single module can be stored in a storage medium of the mobile phone. Therefore, the processes of acquiring images and acquiring image data are different for the camera single module and the whole mobile phone.
Specifically, if the device to be tested is already installed on the mobile terminal (whole mobile phone), the mobile terminal supplies power to the module to collect image data, and the collected first image data is stored in the mobile terminal. If the equipment to be tested is a single module, the module is powered by the tool to collect image data, and the collected first image data is stored at the equipment end through the tool; if the device to be tested is mounted on the mobile terminal, the mobile terminal supplies power to the module to collect image data, and the collected first image data is stored in the mobile terminal. Wherein the tool is a special hardware device (capable of powering the module to collect image data). Of course, any equipment that can supply power to the single module to light and transmit image data can be used as the tool.
If the collected first image data is stored in the mobile terminal, the first image data can be transmitted to a computer through a data line and stored on a computer disk in a local file mode, and test software needs to load the local file to obtain the first image data. Of course, the test software may also directly acquire the first image data stored in the mobile terminal through a data line or a wireless connection. And if the acquired first image data is stored at the equipment end through the tool, accessing the tool through test software of the equipment end to acquire the acquired first image data and storing the acquired first image data at the equipment end. Of course, the first image data in the tool can be stored on the computer disk through a data line or wireless connection, and the test software loads the local file to obtain the first image data.
In the specific implementation process, the images acquired by the camera module under three conditions need to be obtained so as to test the optical anti-shake performance of the camera module. Optionally, the test system adds a vibrating table to acquire image data of the image A when the vibrating table is closed and the OIS is closed, acquires image data of the image B when the vibrating table is opened and the OIS is closed, and acquires image data of the image C when the vibrating table is opened and the OIS is opened.
Step S102, processing the first image data to obtain second image data in a unified format by adopting an image processing flow corresponding to the format of the first image data.
In the specific implementation process, the formats of the images shot by the camera single module and the whole mobile phone are different, and the formats of the camera single module and the whole mobile phone are kept uniform through different processing modes, so that the consistency of a testing method and the comparability of the test can be ensured. The first image data collected by the module factory through the tooling is usually image data in a RAW format, and the first image data collected by the mobile phone factory through the whole mobile phone is usually image data in a YUV (Y represents brightness and U, V represents chromaticity of color) format.
Optionally, when the format of the first image data is a RAW format, performing difference processing on the first image data to obtain second image data in RGB format; and when the format of the first image data is YUV format, performing data conversion processing on the first image data to obtain second image data in RGB format. Of course, when the format of the first image data is other formats, other image format processing methods may be used to convert the format of the first image data into the second image data in RGB format.
Specifically, as shown in fig. 2, a detailed flowchart of the steps S101 and S102 is shown. If the image is a single module, the RAW image is acquired through the tool, then the RAW image is transmitted to the computer through a data line, then the SDK (Software Development Kit ) directly accesses the tool, the acquired first image data is acquired through the tool, the memory buffer of the test system for importing the first image data is copied and buffered, and finally the difference value processing is carried out on the first image data to obtain second image data in RGB format.
If the mobile phone is a whole mobile phone, the YUV image is stored through the mobile phone, then the data is transmitted to a computer through a data line, then the first image data is stored in a local disk of the computer, then test software is used for buffering a memory buffer of a test system for importing the first image data by loading the local image data, and finally the first image data is subjected to data conversion processing to obtain second image data in an RGB format.
Step S103, calculating data representing the test effect of the optical anti-shake test according to the second image data.
In a specific implementation process, the second image data includes line widths of the images in three cases, including: linewidth of image a collected when the vibrating table is closed and the optical anti-shake is closed, linewidth of image B collected when the vibrating table is opened and the optical anti-shake is closed, and linewidth of image C collected when the vibrating table is opened and the optical anti-shake is opened. Based on the line widths of the images in the three cases, compression ratio data representing the test effect of the optical anti-shake test can be calculated. The line width of the image is line width data (or point width data after widening imaging points) after widening imaging lines in the image due to vibration in the process of shooting the image.
Specifically, the compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is compression ratio; d0 is the line width of image a; d1 is the line width of the image B; d2 is the line width of the image C.
The image includes a cross character pattern and a dot character pattern. Therefore, the line width of the image can be calculated based on the cross-point line width and the dot line width. When the image is in a cross character pattern, the line width of the image is the width of a cross; when the image is in a dot pattern, the line width of the image is the distance of left and right vibration of the dot center point. Of course, the image may be another chart pattern, and the line width of the image may be calculated based on the corresponding line width.
For example, as shown in fig. 3 and 4, the cross chart pattern and the dot chart pattern are respectively used, and the line widths of the images under different test conditions are measured. Namely, when the vibrating table is closed and the OIS is closed, the line width of the image is D0; when the vibrating table is opened and the OIS is closed, the line width of the image is D1; when the vibrating table is opened and the OIS is opened, the line width of the image is D2.
The following is a specific example to help explain the specific test procedure of the method provided in this embodiment with reference to fig. 5:
first, the test is started, and the test apparatus is allowed to take three states, i.e., a shake table-off OIS-off (state 1), a shake table-on IOS-off (state 2), and a shake table-on IOS-on (state 3). Then, images photographed by the test equipment in three states are collected, and image format conversion processing is performed.
Next, the line widths of the images in the three states are calculated, respectively. In a specific implementation process, the line width of the image can be calculated in different modes based on the pattern of the image.
And then, calculating data representing the test effect of the optical anti-shake test based on the line widths of the images in the three states. Specifically, SR (compression ratio) is calculated.
And finally, based on the result of the compression ratio calculation, judging the optical anti-shake effect of the test equipment, and ending the test. Among them, the larger the compression ratio is, the better the optical anti-shake effect is.
Example two
Based on the same inventive concept, as shown in fig. 6, the present embodiment provides an optical anti-shake testing apparatus 600, including:
an acquiring unit 610, configured to acquire first image data acquired during an optical anti-shake test;
a processing unit 620, configured to process the first image data to obtain second image data in a unified format by adopting an image processing procedure corresponding to the format of the first image data;
a calculating unit 630, configured to calculate data representing a test effect of the optical anti-shake test according to the second image data.
As an alternative embodiment, the processing unit 620 is further configured to:
when the format of the first image data is RAW format, performing difference processing on the first image data to obtain second image data in RGB format;
and when the format of the first image data is YUV format, performing data conversion processing on the first image data to obtain second image data in RGB format.
As an alternative embodiment, the obtaining unit 610 is further configured to:
acquiring image data of an image A acquired when the vibrating table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when the vibrating table is opened and the optical anti-shake is closed;
image data of an image C acquired when the vibrating table is opened and the optical anti-shake is opened is acquired.
As an alternative embodiment, the computing unit 630 is further configured to:
compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is compression ratio; d0 is the line width of image a; d1 is the line width of the image B; d2 is the line width of the image C.
As an alternative embodiment, the test device 600 further includes an acquisition unit, where the acquisition unit is configured to:
if the equipment to be tested is a single module, the module is powered by the tool to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the device to be tested is mounted on the mobile terminal, the mobile terminal supplies power to the module to collect image data, and the collected first image data is stored in the mobile terminal.
As an alternative embodiment, the obtaining unit 610 is further configured to:
if the collected first image data is stored at the equipment end through the tool, accessing the tool through test software of the equipment end to obtain the collected first image data and storing the collected first image data at the equipment end;
if the collected first image data is stored in the mobile terminal, the first image data is transmitted to a computer and stored on a computer disk in a local file mode, and test software needs to load the local file to obtain the first image data.
Since the optical anti-shake testing apparatus described in this embodiment is an apparatus for implementing the optical anti-shake testing method according to the embodiment of the present invention, based on the optical anti-shake testing method described in this embodiment, those skilled in the art can understand the specific implementation of the optical anti-shake testing apparatus according to this embodiment and various modifications thereof, so how the optical anti-shake testing apparatus implements the method according to this embodiment of the present invention will not be described in detail herein. As long as the device adopted by the optical anti-shake test method in the embodiment of the invention is implemented by a person skilled in the art, the device belongs to the scope of protection required by the invention.
Example III
Based on the same inventive concept, as shown in fig. 7, the present embodiment provides an electronic device 700, including a memory 730, a processor 720, and a computer program 711 stored on the memory 710 and executable on the processor 720, wherein the processor 720 implements the following steps when executing the computer program 711:
acquiring first image data acquired in an optical anti-shake test process; processing the first image data by adopting an image processing flow corresponding to the format of the first image data to obtain second image data in a unified format; and calculating data representing the test effect of the optical anti-shake test according to the second image data.
As an alternative embodiment, acquiring first image data acquired during an optical anti-shake test includes:
acquiring image data of an image A acquired when the vibrating table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when the vibrating table is opened and the optical anti-shake is closed;
image data of an image C acquired when the vibrating table is opened and the optical anti-shake is opened is acquired.
As an alternative embodiment, calculating data characterizing a test effect of the optical anti-shake test from the second image data, comprises:
compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is compression ratio; d0 is the line width of image a; d1 is the line width of the image B; d2 is the line width of the image C.
As an alternative embodiment, processing the first image data to obtain second image data in a unified format using an image processing procedure corresponding to the format of the first image data includes:
when the format of the first image data is RAW (unprocessed), performing difference processing on the first image data to obtain second image data in RGB (Red Green Blue) format;
when the format of the first image data is YUV (Y represents luminance and U, V represents chromaticity of color), the first image data is subjected to data conversion processing to obtain second image data in RGB format.
As an alternative embodiment, before acquiring the first image data acquired during the optical anti-shake test, the method further includes:
if the equipment to be tested is a single module, the module is powered by the tool to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the device to be tested is mounted on the mobile terminal, the mobile terminal supplies power to the module to collect image data, and the collected first image data is stored in the mobile terminal.
As an alternative embodiment, acquiring first image data acquired during an optical anti-shake test includes:
if the collected first image data is stored at the equipment end through the tool, accessing the tool through test software of the equipment end to obtain the collected first image data and storing the collected first image data at the equipment end;
if the collected first image data is stored in the mobile terminal, the first image data is transmitted to a computer and stored on a computer disk in a local file mode, and test software needs to load the local file to obtain the first image data.
Since the electronic device described in this embodiment is an electronic device used to implement the optical anti-shake test method in this embodiment, based on the optical anti-shake test method described in this embodiment, those skilled in the art can understand the specific implementation of the electronic device and various modifications thereof, so how to implement the method in this embodiment of the present application in this electronic device will not be described in detail herein. Any electronic device used by those skilled in the art to implement the optical anti-shake test method according to the embodiments of the present application falls within the scope of protection intended by the present application.
Example IV
Based on the same inventive concept, as shown in fig. 8, the present embodiment provides a computer-readable storage medium 800 having stored thereon a computer program 810, which when executed by a processor, implements the steps of:
acquiring first image data acquired in an optical anti-shake test process; processing the first image data by adopting an image processing flow corresponding to the format of the first image data to obtain second image data in a unified format; and calculating data representing the test effect of the optical anti-shake test according to the second image data.
As an alternative embodiment, acquiring first image data acquired during an optical anti-shake test includes:
acquiring image data of an image A acquired when the vibrating table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when the vibrating table is opened and the optical anti-shake is closed;
image data of an image C acquired when the vibrating table is opened and the optical anti-shake is opened is acquired.
As an alternative embodiment, calculating data characterizing a test effect of the optical anti-shake test from the second image data, comprises:
compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is compression ratio; d0 is the line width of image a; d1 is the line width of the image B; d2 is the line width of the image C.
As an alternative embodiment, processing the first image data to obtain second image data in a unified format using an image processing procedure corresponding to the format of the first image data includes:
when the format of the first image data is RAW (unprocessed), performing difference processing on the first image data to obtain second image data in RGB (Red Green Blue) format;
when the format of the first image data is YUV (Y represents luminance and U, V represents chromaticity of color), the first image data is subjected to data conversion processing to obtain second image data in RGB format.
As an alternative embodiment, before acquiring the first image data acquired during the optical anti-shake test, the method further includes:
if the equipment to be tested is a single module, the module is powered by the tool to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the device to be tested is mounted on the mobile terminal, the mobile terminal supplies power to the module to collect image data, and the collected first image data is stored in the mobile terminal.
As an alternative embodiment, acquiring first image data acquired during an optical anti-shake test includes:
if the collected first image data is stored at the equipment end through the tool, accessing the tool through test software of the equipment end to obtain the collected first image data and storing the collected first image data at the equipment end;
if the collected first image data is stored in the mobile terminal, the first image data is transmitted to a computer and stored on a computer disk in a local file mode, and test software needs to load the local file to obtain the first image data.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
the embodiment of the invention discloses an optical anti-shake test method, an optical anti-shake test device, optical anti-shake test equipment and an optical anti-shake test medium. Therefore, the test result is obtained based on the second image data in the unified format, and is further compatible with the optical anti-shake test of the single module and the whole mobile phone. Therefore, the technical problem that a system for performing OIS test on the module on the mobile phone is not available in the prior art at present is solved, and the technical scheme for testing the single module in the module factory and testing the whole mobile phone in the mobile phone factory is provided.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (7)

1. An optical anti-shake test method, comprising:
acquiring first image data acquired in an optical anti-shake test process;
processing the first image data by adopting an image processing flow corresponding to the format of the first image data to obtain second image data with a uniform format, wherein the processing flow comprises the following steps: when the format of the first image data is RAW format, performing difference processing on the first image data to obtain second image data in RGB format; when the format of the first image data is YUV format, performing data conversion processing on the first image data to obtain second image data in RGB format;
calculating data representing a test effect of the optical anti-shake test according to the second image data;
before the first image data acquired in the optical anti-shake test process is acquired, the method further comprises:
if the equipment to be tested is a single module, the module is powered by a tool to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the device to be tested is mounted on the mobile terminal, the mobile terminal supplies power to the module to collect image data, and the collected first image data is stored in the mobile terminal.
2. The method for optical anti-shake testing according to claim 1, wherein the acquiring the first image data acquired during the optical anti-shake testing includes:
acquiring image data of an image A acquired when the vibrating table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when the vibrating table is opened and the optical anti-shake is closed;
image data of an image C acquired when the vibrating table is opened and the optical anti-shake is opened is acquired.
3. The optical anti-shake test method according to claim 2, wherein the calculating data representing the test effect of the optical anti-shake test from the second image data includes:
compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is compression ratio; d0 is the line width of the image a; d1 is the line width of the image B; d2 is the line width of the image C.
4. The method for optical anti-shake testing according to claim 1, wherein the acquiring the first image data acquired during the optical anti-shake testing includes:
if the acquired first image data is stored at the equipment end through the tool, accessing the tool through test software of the equipment end to acquire the acquired first image data and store the acquired first image data at the equipment end;
if the acquired first image data is stored in the mobile terminal, the first image data is transmitted to a computer and stored on a computer disk in a local file mode, and test software needs to load the local file to acquire the first image data.
5. An optical anti-shake test apparatus, comprising:
the acquisition unit is used for acquiring first image data acquired in the optical anti-shake test process;
a processing unit, configured to process the first image data to obtain second image data in a unified format by using an image processing flow corresponding to the format of the first image data, including: when the format of the first image data is RAW format, performing difference processing on the first image data to obtain second image data in RGB format; when the format of the first image data is YUV format, performing data conversion processing on the first image data to obtain second image data in RGB format;
a calculation unit for calculating data representing a test effect of the optical anti-shake test according to the second image data;
the system also comprises an acquisition unit for:
if the equipment to be tested is a single module, the module is powered by a tool to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the device to be tested is mounted on the mobile terminal, the mobile terminal supplies power to the module to collect image data, and the collected first image data is stored in the mobile terminal.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method steps of any of claims 1-4 when the computer program is executed.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method steps of any of claims 1-4.
CN202110439298.6A 2021-04-23 2021-04-23 Optical anti-shake test method, device, equipment and medium Active CN113315965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110439298.6A CN113315965B (en) 2021-04-23 2021-04-23 Optical anti-shake test method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110439298.6A CN113315965B (en) 2021-04-23 2021-04-23 Optical anti-shake test method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113315965A CN113315965A (en) 2021-08-27
CN113315965B true CN113315965B (en) 2023-07-18

Family

ID=77372618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110439298.6A Active CN113315965B (en) 2021-04-23 2021-04-23 Optical anti-shake test method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113315965B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873233A (en) * 2021-10-14 2021-12-31 维沃移动通信有限公司 Lens module detection method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559615B (en) * 2015-09-29 2020-04-03 宁波舜宇光电信息有限公司 Correction equipment and correction method for optical anti-shake system of camera module
CN212752487U (en) * 2020-08-11 2021-03-19 深圳市鑫信腾科技股份有限公司 Optical anti-shake testing device
CN112351274A (en) * 2020-11-09 2021-02-09 重庆市天实精工科技有限公司 Method and system for detecting anti-shake performance of optical anti-shake camera and storage medium

Also Published As

Publication number Publication date
CN113315965A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN112202986B (en) Image processing method, image processing apparatus, readable medium and electronic device thereof
US20160094770A1 (en) Image Processing Method and Apparatus, and Terminal
CN111369486B (en) Image fusion processing method and device
CN112383772B (en) Camera performance automatic test method and device, electronic equipment and storage medium
CN113315965B (en) Optical anti-shake test method, device, equipment and medium
US10091415B2 (en) Image processing apparatus, method for controlling image processing apparatus, image pickup apparatus, method for controlling image pickup apparatus, and recording medium
JP2012195901A (en) Image transfer device and image transfer method
CN111738950B (en) Image processing method and device
CN113066020A (en) Image processing method and device, computer readable medium and electronic device
CN112991190A (en) Image noise reduction method, medium therefor, and electronic device
US8368716B2 (en) Processing pixel values of a color image
WO2022052820A1 (en) Data processing method, system, and apparatus
CN108683842B (en) Panoramic camera and method and device for outputting panoramic video
CN115705614B (en) Image processing method, device, electronic equipment and storage medium
CN216527258U (en) Low-power-consumption pathology scanning AI camera
CN110072050A (en) Self-adapting regulation method, device and a kind of capture apparatus of exposure parameter
CN101835052A (en) Image processing device and method
CN113194267B (en) Image processing method and device and photographing method and device
WO2022227200A1 (en) Method and apparatus for adjusting resolution during image capture, and smart device
CN116634265A (en) Camera power consumption adjusting method and device
CN112399096B (en) Video processing method, device and computer readable storage medium
CN109685824B (en) Motion judgment method and device based on singular value decomposition characteristics and electronic equipment
WO2024111931A1 (en) Airy-disk correction for deblurring image
CN113747046B (en) Image processing method, device, storage medium and electronic equipment
WO2023030135A1 (en) Image processing method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant