CN113315965A - 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
CN113315965A
CN113315965A CN202110439298.6A CN202110439298A CN113315965A CN 113315965 A CN113315965 A CN 113315965A CN 202110439298 A CN202110439298 A CN 202110439298A CN 113315965 A CN113315965 A CN 113315965A
Authority
CN
China
Prior art keywords
image data
optical anti
format
image
shake
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.)
Granted
Application number
CN202110439298.6A
Other languages
Chinese (zh)
Other versions
CN113315965B (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

Images

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, device, equipment and 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 carrying out OIS test on the module on the mobile phone does not exist at present in the prior art is solved, and the technical scheme which can test the single module of the module factory and can also test the whole mobile phone of the mobile phone factory is provided.

Description

Optical anti-shake test method, device, equipment and medium
Technical Field
The invention relates to the field of camera testing, in particular to an optical anti-shake testing method, device, equipment and medium.
Background
The 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. With the gradual upgrade of the camera module, the OIS function becomes more and more 'standard configuration' of the camera module, more and more new items of mobile phone clients directly require to add the OIS function, but the contact time and experience of the mobile phone clients to the OIS are different, so that many mobile phone clients cannot provide an objective and effective OIS function test system, and need a module factory to provide corresponding support. However, there is no system for performing OIS testing on a module on a mobile phone handset.
Disclosure of Invention
The embodiment of the application provides an optical anti-shake test method, device, equipment and medium, solves the technical problem that no system for performing OIS test on a module on a mobile phone exists in the prior art, and provides a technical scheme which can test a single module of a module factory and can test the whole mobile phone of the mobile phone factory.
In a first aspect, the present application provides the following technical solutions through an embodiment of the present application:
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 uniform format;
and calculating data representing the test effect of the optical anti-shake test according to the second image data.
Preferably, the acquiring first image data acquired during the optical anti-shake test includes:
acquiring image data of an image A acquired when the vibration table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when a vibration table is opened and an optical anti-shake is closed;
image data of an image C acquired when the vibration table is turned on and the optical anti-shake is turned on is acquired.
Preferably, the calculating data representing the test effect of the optical anti-shake test according to the second image data includes:
the compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is the 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 by 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 (RAW) format, 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 chroma of color) format, the first image data is subjected to data conversion processing 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 tool supplies power to the module to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the equipment to be tested is installed 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 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 is 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 the following technical solutions according to an embodiment of the present application:
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 to obtain second image data in a unified format by adopting an image processing flow corresponding to the format of the first image data;
and the calculating unit is used for calculating the 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 obtaining unit is further configured to:
acquiring image data of an image A acquired when the vibration table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when a vibration table is opened and an optical anti-shake is closed;
image data of an image C acquired when the vibration table is turned on and the optical anti-shake is turned on is acquired.
Preferably, the computing unit is further configured to:
the compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is the 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 testing device further comprises an acquisition unit, and the acquisition unit is used for:
if the equipment to be tested is a single module, the tool supplies power to the module to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the equipment to be tested is installed 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 obtaining 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 is 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 the following technical solutions through an embodiment of the present application:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the first aspect are implemented when the computer program is executed by the processor.
In a fourth aspect, the present invention provides the following technical solutions through an embodiment of the present invention:
a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the first aspect.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the embodiment of the invention discloses an optical anti-shake test method, device, equipment and medium. Therefore, the test result is obtained based on the second image data with the uniform format, and the optical anti-shake test of the single module and the whole mobile phone is further compatible. Therefore, the technical problem that a system for carrying out OIS test on the module on the mobile phone does not exist at present in the prior art is solved, and the technical scheme which can be used for testing the single module of the module factory and testing the whole mobile phone of the mobile phone factory is provided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an optical anti-shake testing method according to an embodiment of the present invention;
FIG. 2 is a detailed flow diagram of FIG. 1 in an embodiment of the present invention;
FIG. 3 shows a first pattern of an image according to an embodiment of the present invention;
FIG. 4 shows a second pattern of images according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an embodiment of an optical anti-shake testing method according to the present 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 according to an embodiment of the invention;
fig. 8 is a block diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
The embodiment of the application provides an optical anti-shake test method, device, equipment and medium, solves the technical problem that no system for performing OIS test on a module on a mobile phone exists in the prior art, and provides a technical scheme which can test a single module of a module factory and can test the whole mobile phone of the mobile phone factory.
In order to solve the technical problems, the general idea of the embodiment of the application 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 the data representing the test effect of the optical anti-shake test according to the second image data.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Example one
Specifically, as shown in fig. 1, an embodiment of the present application provides an optical anti-shake test method, including:
step S101, first image data collected in an optical anti-shake test process are obtained.
In the specific implementation process, the camera single module is only an optical component and cannot store and record shot images, and the whole mobile phone comprises a set of complete shooting system and can store the images shot by the camera module into a storage medium of the mobile phone. Therefore, the processes of image acquisition and image data acquisition are different for the single camera module and the whole mobile phone.
Specifically, if the device to be tested is installed on the mobile terminal (the 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 tool supplies power to the module to acquire image data, and the acquired first image data is stored at the equipment end through the tool; if the equipment to be tested is installed 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. The tool is a special hardware device (capable of supplying power to the module to collect image data). Of course, any equipment capable of powering the single module and transmitting 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 the 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 the test software of the equipment end to acquire the acquired first image data and store the acquired first image data at the equipment end. Of course, the first image data in the tool can also be stored on a computer disk through a data line or wireless connection, and the test software loads a local file to acquire the first image data.
In the specific implementation process, images collected 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, and acquires image data of image a when the vibrating table closes the OIS and closes, acquires image data of image B when the vibrating table opens the OIS and closes, and acquires image data of image C when the vibrating table opens the OIS and opens.
And step S102, 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.
In the specific implementation process, the formats of the images shot by the camera single module and the whole mobile phone are different, the formats of the images are kept uniform through different processing modes, and the consistency of the test method and the comparability of the test can be ensured. The first image data collected by the module factory through the tool is generally image data in RAW format, and the first image data collected by the mobile phone factory through the mobile phone complete machine is generally image data in YUV (Y represents brightness, U, V represents chroma of color) format.
Optionally, 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. Of course, when the format of the first image data is other format, other image format processing methods may be adopted 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 flow chart of step S101 and step S102 is shown. If the single module is used, the RAW image is collected through the tool and then transmitted to a computer through a data line, then the SDK (Software Development Kit) directly accesses the tool, the collected first image data is obtained through the tool, the first image data is imported into a memory buffer of a test system through copying, and finally the first image data is subjected to difference processing to obtain second image data in an RGB format.
If the mobile phone is a complete mobile phone, storing YUV images through the mobile phone, transmitting the YUV images to a computer through a data line, storing the first image data into a local disk of the computer, importing the first image data into a memory buffer of a test system through loading the local image data by test software, and finally performing data conversion processing on the first image data to obtain second image data in an RGB format.
And 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 image under three conditions, including: the line width of an image A acquired when the vibration table is closed and the optical anti-shake is closed, the line width of an image B acquired when the vibration table is opened and the optical anti-shake is closed, and the line width of an image C acquired when the vibration table is opened and the optical anti-shake is opened. Based on the line widths of the images under the three conditions, 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) of an imaging line 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 the compression ratio; d0 is the line width of image a; d1 is the line width of image B; d2 is the line width of image C.
The image includes a cross chart pattern and a dot chart pattern. Therefore, the line width of the image can be calculated based on the line width of the cross chart and the line width of the dots chart. When the image is in a cross chart type, the line width of the image is the width of a cross; when the image is in a dot chart mode, the line width of the image is the distance of left and right vibration of the center point of the dot. Of course, the image may be in another chart style, 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 line widths of the images under different test conditions are in the cross chart style and the dot chart style, respectively. When the vibration table is closed and the OIS is closed, the line width of the image is D0; when the vibration table is opened and the OIS is closed, the line width of the image is D1; when the vibrating table is open and the OIS is open, the line width of the image is D2.
The following description will help to explain the specific test flow of the method provided in this embodiment with reference to fig. 5 as an example:
first, a test is started, and the test apparatus is made to perform photographing in three states, i.e., three states of the vibration table off OIS off (state 1), the vibration table on IOS off (state 2), and the vibration table on IOS on (state 3). Then, images shot by the test equipment in three states are collected, and image format conversion processing is carried out.
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 ways 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) calculation is performed.
And finally, judging the optical anti-shake effect of the test equipment based on the result of the compression ratio calculation, and finishing the test. Wherein, the larger the compression ratio, the better the optical anti-shake effect.
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 obtaining unit 610, configured to obtain first image data acquired in an optical anti-shake test process;
a processing unit 620, configured to process the first image data to obtain second image data in a unified format by using 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 vibration table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when a vibration table is opened and an optical anti-shake is closed;
image data of an image C acquired when the vibration table is turned on and the optical anti-shake is turned on is acquired.
As an alternative embodiment, the calculating unit 630 is further configured to:
the compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is the compression ratio; d0 is the line width of image a; d1 is the line width of image B; d2 is the line width of image C.
As an alternative embodiment, the testing apparatus 600 further includes a collecting unit, and the collecting unit is configured to:
if the equipment to be tested is a single module, the tool supplies power to the module to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the equipment to be tested is installed 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 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 collected first image data is stored in the mobile terminal, the first image data is transmitted to the computer and is stored on a computer disk in a local file mode, and the test software needs to load the local file to obtain the first image data.
Since the optical anti-shake test apparatus described in this embodiment is an apparatus used for implementing the optical anti-shake test method in the embodiment of the present invention, based on the optical anti-shake test method described in the embodiment of the present invention, a person skilled in the art can understand a specific implementation manner of the optical anti-shake test apparatus of this embodiment and various variations thereof, and therefore, a detailed description of how the optical anti-shake test apparatus implements the method in the embodiment of the present invention is not provided here. The optical anti-shake test method of the present invention can be implemented by a device of the person skilled in the art without departing from the scope of the present invention.
EXAMPLE III
Based on the same inventive concept, as shown in fig. 7, the present embodiment provides an electronic device 700, which includes a memory 730, a processor 720 and a computer program 711 stored in the memory 710 and running 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 the 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 vibration table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when a vibration table is opened and an optical anti-shake is closed;
image data of an image C acquired when the vibration table is turned on and the optical anti-shake is turned on is acquired.
As an alternative embodiment, calculating data characterizing the test effect of the optical anti-shake test from the second image data comprises:
the compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is the compression ratio; d0 is the line width of image a; d1 is the line width of image B; d2 is the line width of image C.
As an alternative embodiment, processing 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 includes:
when the format of the first image data is RAW (unprocessed) format, 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) format, 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 tool supplies power to the module to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the equipment to be tested is installed 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 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 collected first image data is stored in the mobile terminal, the first image data is transmitted to the computer and is stored on a computer disk in a local file mode, and the 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 for implementing the optical anti-shake test method in this embodiment, based on the optical anti-shake test method described in this embodiment, a person skilled in the art can understand a specific implementation manner of the electronic device of this embodiment and various variations thereof, and therefore, how to implement the method in this embodiment of the present application by the electronic device is not described in detail herein. The electronic device used by those skilled in the art to implement the optical anti-shake test method in the embodiments of the present application is within the scope of the present application.
Example four
Based on the same inventive concept, as shown in fig. 8, the present embodiment provides a computer-readable storage medium 800, on which a computer program 810 is stored, and the computer program 810 realizes the following steps when being executed by a processor:
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 the 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 vibration table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when a vibration table is opened and an optical anti-shake is closed;
image data of an image C acquired when the vibration table is turned on and the optical anti-shake is turned on is acquired.
As an alternative embodiment, calculating data characterizing the test effect of the optical anti-shake test from the second image data comprises:
the compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is the compression ratio; d0 is the line width of image a; d1 is the line width of image B; d2 is the line width of image C.
As an alternative embodiment, processing 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 includes:
when the format of the first image data is RAW (unprocessed) format, 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) format, 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 tool supplies power to the module to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the equipment to be tested is installed 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 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 collected first image data is stored in the mobile terminal, the first image data is transmitted to the computer and is stored on a computer disk in a local file mode, and the 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, device, equipment and medium. Therefore, the test result is obtained based on the second image data with the uniform format, and the optical anti-shake test of the single module and the whole mobile phone is further compatible. Therefore, the technical problem that a system for carrying out OIS test on the module on the mobile phone does not exist at present in the prior art is solved, and the technical scheme which can be used for testing the single module of the module factory and testing the whole mobile phone of 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. Therefore, it is intended that the appended claims be interpreted as including 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 changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

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 in a uniform format;
and calculating data representing the test effect of the optical anti-shake test according to the second image data.
2. The optical anti-shake test method according to claim 1, wherein the acquiring first image data collected during the optical anti-shake test comprises:
acquiring image data of an image A acquired when the vibration table is closed and the optical anti-shake is closed;
acquiring image data of an image B acquired when a vibration table is opened and an optical anti-shake is closed;
image data of an image C acquired when the vibration table is turned on and the optical anti-shake is turned on is acquired.
3. The optical anti-shake test method according to claim 2, wherein the calculating data characterizing the test effect of the optical anti-shake test from the second image data comprises:
the compression ratio data is obtained based on the following formula:
SR=20*log10((D1-D0)/(D2-D0))
wherein SR is the 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 optical anti-shake test method according to claim 1, wherein the processing 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 comprises:
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.
5. The optical anti-shake test method according to claim 1, further comprising, before the acquiring the first image data acquired during the optical anti-shake test:
if the equipment to be tested is a single module, the tool supplies power to the module to acquire image data, and the acquired first image data is stored at the equipment end through the tool;
if the equipment to be tested is installed 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. The optical anti-shake test method according to claim 5, wherein the acquiring first image data collected during the optical anti-shake test comprises:
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 is 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.
7. 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 to obtain second image data in a unified format by adopting an image processing flow corresponding to the format of the first image data;
and the calculating unit is used for calculating the data representing the test effect of the optical anti-shake test according to the second image data.
8. The apparatus as recited in claim 7, said processing unit to further:
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.
9. 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 any of claims 1-6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
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 true CN113315965A (en) 2021-08-27
CN113315965B 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)

Cited By (2)

* 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
CN114286085A (en) * 2021-12-28 2022-04-05 昆山丘钛微电子科技股份有限公司 Optical anti-shake detection method and device

Citations (3)

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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054689A1 (en) * 2015-09-29 2017-04-06 宁波舜宇光电信息有限公司 Correction device for camera module optical image stabilizer system and correction method therefor
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

Cited By (2)

* 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
CN114286085A (en) * 2021-12-28 2022-04-05 昆山丘钛微电子科技股份有限公司 Optical anti-shake detection method and device

Also Published As

Publication number Publication date
CN113315965B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US20220207680A1 (en) Image Processing Method and Apparatus
JP6469678B2 (en) System and method for correcting image artifacts
CN104995911B (en) Image processing device, image capture device, filter generating device, image restoration method, and program
CN104854858B (en) Image processing apparatus, camera device, computer
CN113315965B (en) Optical anti-shake test method, device, equipment and medium
US20060103737A1 (en) Image capturing apparatus, electronic processing terminal and image processing system
CN104704807A (en) Image-processing device, image-capturing device, image-processing method, and recording medium
CN112383772B (en) Camera performance automatic test method and device, electronic equipment and storage medium
CN113066020A (en) Image processing method and device, computer readable medium and electronic device
JP2000003437A (en) Aberration correcting method, electronic still camera and image processing system
US20170134648A1 (en) Image processing apparatus, method for controlling image processing apparatus, image pickup apparatus, method for controlling image pickup apparatus, and recording medium
CN111738950B (en) Image processing method and device
US20230222639A1 (en) Data processing method, system, and apparatus
US20090324127A1 (en) Method and System for Automatic Red-Eye Correction
JP4347105B2 (en) Image processing method and apparatus, database and program
CN111416937A (en) Image processing method, image processing device, storage medium and mobile equipment
CN112950509B (en) Image processing method and device and electronic equipment
CN108683842B (en) Panoramic camera and method and device for outputting panoramic video
CN113556472B (en) Image compensation method, device, medium and front camera
CN115705614B (en) Image processing method, device, electronic equipment and storage medium
CN117474926B (en) Image detection method and device
CN101835052A (en) Image processing device and method
CN117097993B (en) Image processing method and related device
CN109685824B (en) Motion judgment method and device based on singular value decomposition characteristics and electronic equipment
WO2024111931A1 (en) Airy-disk correction for deblurring image

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