CN117201939A - Method, device, equipment and medium for detecting optical anti-shake performance of terminal equipment - Google Patents

Method, device, equipment and medium for detecting optical anti-shake performance of terminal equipment Download PDF

Info

Publication number
CN117201939A
CN117201939A CN202210594807.7A CN202210594807A CN117201939A CN 117201939 A CN117201939 A CN 117201939A CN 202210594807 A CN202210594807 A CN 202210594807A CN 117201939 A CN117201939 A CN 117201939A
Authority
CN
China
Prior art keywords
value
shake
optical anti
distance
determining
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.)
Pending
Application number
CN202210594807.7A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210594807.7A priority Critical patent/CN117201939A/en
Publication of CN117201939A publication Critical patent/CN117201939A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The disclosure provides an optical anti-shake performance detection, a device, equipment and a medium of a terminal device, wherein the method comprises the following steps: when the terminal equipment is in a shooting mode, controlling the movable device to drive the terminal equipment to move in an accelerating way; acquiring a target value in a driving register of an optical anti-shake device in terminal equipment, wherein the target value is used for indicating the moving distance of the optical anti-shake device; and determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the target value. Therefore, when the movable device drives the terminal equipment to move in an accelerating way, the anti-shake performance of the optical anti-shake device in the terminal equipment can be effectively detected according to the moving distance of the optical anti-shake device in the terminal equipment.

Description

Method, device, equipment and medium for detecting optical anti-shake performance of terminal equipment
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a method, a device, equipment and a medium for detecting optical anti-shake performance of terminal equipment.
Background
Optical anti-shake (Optical Image Stabilization, OIS for short) refers to the prevention or reduction of instrument shake during capturing optical signals by the arrangement of optical components, such as lenses and optical anti-shake devices, in a camera or other similar imaging apparatuses, so as to improve imaging quality.
With the continuous development of terminal devices, more and more users record and share life by using the terminal devices to take pictures and record videos. In the terminal equipment with the built-in optical anti-shake device, the shooting quality of the terminal equipment is directly affected by the anti-shake performance of the optical anti-shake device.
Therefore, it is very important how to realize detection of the optical anti-shake performance of the terminal device.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
For this reason, the present disclosure proposes the following technical scheme:
an embodiment of a first aspect of the present disclosure provides a method for detecting optical anti-shake performance of a terminal device, including:
when the terminal equipment is in a shooting mode, controlling a movable device to drive the terminal equipment to move in an accelerating way;
acquiring a target value in a driving register of an optical anti-shake device in the terminal equipment, wherein the target value is used for indicating the moving distance of the optical anti-shake device;
and determining whether the anti-shake performance of the optical anti-shake device meets a set requirement according to the target value.
An embodiment of a second aspect of the present disclosure provides an optical anti-shake performance detection apparatus for a terminal device, including:
The control module is used for controlling the movable device to drive the terminal equipment to move in an acceleration way when the terminal equipment is in a shooting mode;
an acquisition module, configured to acquire a target value in a driving register of an optical anti-shake device in the terminal device, where the target value is used to indicate a movement distance of the optical anti-shake device;
and the determining module is used for determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the target value.
An embodiment of a third aspect of the present disclosure provides an electronic device, including:
a processor;
a memory for storing executable instructions of the processor; the processor is configured to call and execute the executable instructions stored in the memory, so as to implement the optical anti-shake performance detection method of the terminal device as set forth in the embodiment of the first aspect of the disclosure.
An embodiment of a fourth aspect of the present disclosure proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for detecting optical anti-shake performance of a terminal device as proposed by the embodiment of the first aspect of the present disclosure.
An embodiment of a fifth aspect of the present disclosure proposes a computer program product, which when executed by a processor, performs a method for detecting optical anti-shake performance of a terminal device as proposed by an embodiment of the first aspect of the present disclosure.
According to the technical scheme, when the terminal equipment is in a shooting mode, the movable device is controlled to drive the terminal equipment to move in an accelerating mode; determining a first moving distance of the terminal equipment under the drive of the movable device; acquiring a target value in a driving register of an optical anti-shake device in terminal equipment, wherein the target value is used for indicating a second moving distance of the optical anti-shake device; and determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the first moving distance and the target value. Therefore, when the movable device drives the terminal equipment to move in an accelerating way, the anti-shake performance of the optical anti-shake device in the terminal equipment can be effectively detected according to the moving distance of the optical anti-shake device in the terminal equipment.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to an embodiment of the disclosure;
FIG. 2 is a schematic diagram of a coordinate system in an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to another embodiment of the disclosure;
fig. 4 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to another embodiment of the disclosure;
fig. 5 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to another embodiment of the disclosure;
fig. 6 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to another embodiment of the disclosure;
fig. 7 is a schematic structural diagram of an optical anti-shake performance detection apparatus for a terminal device according to an embodiment of the disclosure;
fig. 8 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
The following describes a method, an apparatus, a device, and a medium for detecting optical anti-shake performance of a terminal device according to embodiments of the present disclosure with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to an embodiment of the disclosure.
The embodiment of the disclosure is exemplified by the optical anti-shake performance detection method of the terminal device being configured in the optical anti-shake performance detection device of the terminal device, and the optical anti-shake performance detection device of the terminal device can be applied to any electronic device, so that the electronic device can execute the optical anti-shake performance detection function of the terminal device.
The electronic device may be any device with computing capability, for example, a computer, a test device, an intelligent robot, etc., which is not limited in this disclosure.
As shown in fig. 1, the method for detecting optical anti-shake performance of a terminal device may include the following steps:
step 101, when the terminal equipment is in a shooting mode, controlling the movable device to drive the terminal equipment to move in an accelerating mode.
In the embodiment of the present disclosure, the terminal device may be a hardware device having various operating systems, touch screens and/or display screens, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and the like, which is not limited in this disclosure.
In embodiments of the present disclosure, the movable device, such as a movable clamp, an analog robot, etc., is not limited in this disclosure.
In the embodiment of the disclosure, the shooting mode may include a shooting mode, and a preview mode.
In the embodiment of the disclosure, when the terminal device is in the shooting mode, the movable device may be controlled to drive the terminal device to perform accelerated movement.
It can be understood that when the movable device drives the terminal device to move at a uniform speed, the optical anti-shake device in the terminal device does not shake, that is, the moving distance (or shake distance) of the optical anti-shake device is zero, so in the present disclosure, in order to effectively detect the anti-shake performance of the optical anti-shake device, the movable device can be controlled to drive the terminal device to move at an accelerated speed, so that the optical anti-shake device can shake in a direction opposite to the moving direction of the terminal device in a state that the terminal device moves at an accelerated speed, so as to avoid shake of an imaging module in the terminal device, and further improve the shooting quality of the terminal device.
Step 102, obtaining a target value in a driving register of an optical anti-shake device in the terminal equipment, wherein the target value is used for indicating the moving distance of the optical anti-shake device.
In the embodiment of the disclosure, in order to avoid shake of an imaging module in the terminal device in the process that the movable device drives the terminal device to accelerate movement, the optical anti-shake device in the terminal device can shake in a direction opposite to the movement direction of the terminal device, so that in the disclosure, the movement distance of the optical anti-shake device can be obtained.
In the embodiment of the disclosure, the jitter distances of the optical anti-jitter device in all directions may be periodically obtained by the driving register of the optical anti-jitter device during the jitter process of the optical anti-jitter device, so as to obtain all the storage values, and all the storage values are stored in the driving register.
As an example, the optical anti-shake apparatus may periodically obtain a shake distance of the optical anti-shake apparatus in a first direction, and obtain a shake distance of the optical anti-shake apparatus in a second direction, where each obtained storage value may include a value of the first direction for indicating the shake distance of the optical anti-shake apparatus in the first direction and a value of the second direction for indicating the shake distance of the optical anti-shake apparatus in the second direction.
The first direction is perpendicular to the second direction, and the first direction and the second direction are perpendicular to the normal direction of the plane where the lens of the terminal device is located. For example, taking the normal to the plane in which the lens lies as the Z axis as an example, the first direction may be parallel to the X axis (e.g., the first direction may be a positive and negative X axis direction) and the second direction may be parallel to the Y axis (e.g., the second direction may be a positive and negative Y axis direction). Wherein, as shown in fig. 2, the X axis and the Y axis are parallel to two sides of the terminal device, respectively.
For example, each of the stored values may be OIS hall code values in the related art, including hall code values in the positive X-axis direction (or negative X-axis direction) and hall code values in the positive Y-axis direction (or negative Y-axis direction), where the hall code values in the positive X-axis direction (or negative X-axis direction) are used to indicate the shake distance of the optical anti-shake device in the positive X-axis direction (or negative X-axis direction), and the hall code values in the positive Y-axis direction (or negative Y-axis direction) are used to indicate the shake distance of the optical anti-shake device in the positive Y-axis direction (or negative Y-axis direction).
Thus, in the present disclosure, the moving distance of the optical anti-shake device may be determined according to the value of the first direction and the value of the second direction in the stored values, for example, the shake distance of the optical anti-shake device in the first direction is determined according to the value of the first direction in the stored values, and the shake of the optical anti-shake device in the second direction is determined according to the value of the second direction in the stored values And a distance, so that a moving distance of the optical anti-shake apparatus is determined according to a shake distance of the optical anti-shake apparatus in a first direction and a shake distance of the optical anti-shake apparatus in a second direction. For example, if the jitter distance of the optical anti-shake device in the first direction is c and the jitter distance of the optical anti-shake device in the second direction is d, the moving distance of the optical anti-shake device may be (c) 2 +d 2 ) 1/2
In the embodiment of the disclosure, the target value may be one of the stored values stored in the driving register of the optical anti-shake device, for example, may be the stored value stored last time in the driving register of the optical anti-shake device. Wherein the target value is used for indicating a second moving distance of the optical anti-shake device.
In the embodiment of the disclosure, the target value in the driving register of the optical anti-shake device in the terminal device may be obtained.
It should be noted that, the electronic device may not be able to directly read the target value stored in the driving register of the optical anti-shake device of the terminal device, for example, in an application scenario where the terminal device leaves the factory to perform optical anti-shake performance detection, the electronic device may be a test device, and the test device may not be able to directly read the target value from the driving register of the optical anti-shake device of the terminal device, so in one possible implementation of the embodiment of the present disclosure, the terminal device may read each set of storage values from the driving register, and may write each set of storage values into a set node readable by the electronic device, so that the electronic device may read the target value from each set of storage values of the set node.
Step 103, determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the target value.
In the embodiment of the present disclosure, the setting requirement may be a preset requirement, where the setting requirement is used to indicate that the optical anti-shake device of the terminal device has better anti-shake performance.
In the embodiment of the disclosure, whether the anti-shake performance of the optical anti-shake device of the terminal equipment meets the set requirement can be determined according to the target value.
According to the method for detecting the optical anti-shake performance of the terminal equipment, when the terminal equipment is in a shooting mode, the movable device is controlled to drive the terminal equipment to move in an accelerating mode; acquiring a target value in a driving register of an optical anti-shake device in terminal equipment, wherein the target value is used for indicating the moving distance of the optical anti-shake device; and determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the target value. Therefore, when the movable device drives the terminal equipment to move in an accelerating way, the anti-shake performance of the optical anti-shake device in the terminal equipment can be effectively detected according to the moving distance of the optical anti-shake device in the terminal equipment.
In order to clearly explain how to determine whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the target value in the above embodiments of the disclosure, the disclosure further provides a method for detecting the optical anti-shake performance of the terminal device.
Fig. 3 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to another embodiment of the disclosure.
As shown in fig. 3, the method for detecting optical anti-shake performance of the terminal device may include the following steps:
step 301, when the terminal device is in the shooting mode, controlling the movable device to drive the terminal device to move in an accelerating way.
Step 302, obtaining a target value in a driving register of an optical anti-shake device in a terminal device, wherein the target value is used for indicating a moving distance of the optical anti-shake device.
In an embodiment of the disclosure, the target value may include a first value and a second value, where the first value may be used to indicate a jitter distance of the optical anti-shake device in a first direction, and the second value may be used to indicate a jitter distance of the optical anti-shake device in a second direction.
The explanation of the first direction and the second direction can be referred to the above embodiments, and will not be repeated here.
The execution of steps 301 to 302 may refer to the execution of any embodiment of the present disclosure, and will not be described herein.
Step 303, determining whether the first value is located in the first value interval, and determining whether the second value is located in the second value interval.
Step 304, determining that the anti-shake performance of the optical anti-shake device meets the set requirement in response to the first value being located in the first value range and/or the second value being located in the second value range.
In step 305, in response to the first value not being located in the first value interval and the second value not being located in the second value interval, it is determined that the anti-shake performance of the optical anti-shake device does not meet the set requirement.
It should be noted that, the explanation of the setting requirement in the above embodiments of the present disclosure is also applicable to this embodiment, and is not repeated here.
In an embodiment of the disclosure, the first value interval may be used to indicate a jitter distance interval of the optical anti-jitter device in the first direction when an anti-jitter performance of the optical anti-jitter device meets a set requirement.
In an embodiment of the disclosure, the second value interval may be used to indicate a jitter distance interval of the optical anti-jitter device in the second direction when an anti-jitter performance of the optical anti-jitter device meets a set requirement.
As a possible implementation manner, the first value interval and the second value interval may be determined according to a plurality of reference terminal devices, where anti-shake performance of the optical anti-shake device of the reference terminal device meets the set requirement.
As an example, a plurality of terminal apparatuses (referred to as reference terminal apparatuses in this disclosure) in which the optical anti-shake apparatuses are built in and each of which satisfies the setting requirements may be determined. For each reference terminal device, the movable device can be controlled to drive the reference terminal device to move in an accelerating manner, a stored value (such as a stored value stored last time) in a driving register of the optical anti-shake device in the reference terminal device is obtained, a first value interval (i.e. the upper limit of the first value interval is the maximum value in the first direction and the lower limit is the minimum value in the first direction) is determined according to the value of the first direction in the driving register in each reference terminal device, and a second value interval (i.e. the upper limit of the second value interval is the maximum value in the second direction and the lower limit is the minimum value in the second direction) is determined according to the value of the second direction in the driving register in each reference terminal device.
Therefore, the accuracy of the anti-shake performance detection result of the optical anti-shake device can be improved by determining the first value interval and the second value interval according to the plurality of reference terminal devices.
In the present disclosure, it may be determined whether a first value in the target value is located in a first value interval, and whether a second value is located in a second value interval; when the first value is located in the first value interval and/or the second value is located in the second value interval, the anti-shake performance of the optical anti-shake device can be determined to meet the set requirement; when the first value is not located in the first value interval and the second value is not located in the second value interval, it can be determined that the anti-shake performance of the optical anti-shake device does not meet the set requirement.
It should be noted that, step 304 and step 305 are implemented in two parallel, and may be alternatively executed in practical application.
According to the optical anti-shake performance detection method, whether the first value is located in the first value interval or not is judged, and whether the second value is located in the second value interval or not is judged; determining that the anti-shake performance of the optical anti-shake device meets the set requirement in response to the first value being located in the first value interval and/or the second value being located in the second value interval; and determining that the anti-shake performance of the optical anti-shake device does not meet the set requirement in response to the first value not being located in the first value interval and the second value not being located in the second value interval. Therefore, whether the anti-shake performance of the optical anti-shake device meets the set requirement can be effectively and accurately determined according to the first value and the second value in the target value, and the optical anti-shake performance of the optical anti-shake device in the terminal equipment is effectively detected.
In order to clearly explain how to determine whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the target value in any of the above embodiments of the disclosure, the disclosure further provides a method for detecting the optical anti-shake performance of the terminal device.
Fig. 4 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to another embodiment of the disclosure.
As shown in fig. 4, the method for detecting optical anti-shake performance of the terminal device may include the following steps:
step 401, when the terminal device is in the shooting mode, controlling the movable device to drive the terminal device to move in an accelerating way.
Step 402, obtaining a target value in a driving register of an optical anti-shake device in a terminal device.
The execution of steps 401 to 402 may refer to the execution of any embodiment of the present disclosure, and will not be described herein.
Step 403, determining a first moving distance of the terminal device driven by the movable device.
In the embodiment of the present disclosure, the first moving distance may be a distance that the terminal device moves under the driving of the movable device when the movable device drives the terminal device to perform the acceleration movement.
In the embodiment of the disclosure, the first moving distance of the terminal equipment driven by the movable device can be determined.
It should be noted that, the execution timing of the step 402 and the step 403 is not limited in this disclosure, that is, the step 402 and the step 403 may be executed in parallel, or the step 403 and the step 402 may be executed sequentially, for example, the step 403 may be executed before the step 402, and in this embodiment of the disclosure, only the step 402 is executed before the step 403.
Step 404, determining a second moving distance of the optical anti-shake device according to the target value.
In an embodiment of the disclosure, the target value may include a first value and a second value, where the first value may be used to indicate a jitter distance of the optical anti-shake device in a first direction, and the second value may be used to indicate a jitter distance of the optical anti-shake device in a second direction.
The explanation of the first direction and the second direction can be referred to the above embodiments, and will not be repeated here.
In the embodiment of the disclosure, the shake distance of the optical anti-shake device in the first direction may be determined according to the first value, and the shake distance of the optical anti-shake device in the second direction may be determined according to the second value, so that the second movement distance of the optical anti-shake device may be determined according to the shake distance in the first direction and the shake distance in the second direction.
As an example, the first value is marked as k 1 The shaking distance s of the optical shaking prevention device in the first direction 1 Can be determined according to the following formula:
s 1 =k 1 *K H ; (1)
wherein K is H Is the hall sensitivity (sensitivity) coefficient.
Marking the second value as k 2 The shaking distance s of the optical shaking prevention device in the second direction 2 Can be determined according to the following formula:
s 2 =k 2 *K H ; (2)
In the embodiment of the disclosure, after determining the shake distance of the optical anti-shake apparatus in the first direction and the shake distance in the second direction, the second movement distance of the optical anti-shake apparatus may be determined according to the shake distance in the first direction and the shake distance in the second direction.
For example, the second moving distance of the mark optical anti-shake device is s, and the shake distance of the optical anti-shake device in the first direction is s 1 The shaking distance of the optical anti-shaking device in the second direction is s 2 The second moving distance s of the optical anti-shake apparatus may be determined according to the following formula:
step 405, determining a difference between the first movement distance and the second movement distance.
In the disclosed embodiments, a difference between the first movement distance and the second movement distance may be determined. The difference may be a difference value, or the difference may be an absolute value of the difference value, or the difference may be a square of the difference value, or the like, which is not limited by the present disclosure.
As an example, if the first moving distance is L and the second moving distance is s, the difference between the first moving distance and the second moving distance may be k×l-s|, where K is a set coefficient or a set weight.
Step 406, determining that the anti-shake performance of the optical anti-shake device meets the set requirement when the difference is not greater than the difference threshold.
It should be noted that, the explanation of the setting requirement in the above embodiments of the present disclosure is also applicable to this embodiment, and is not repeated here.
In the embodiment of the present disclosure, the difference threshold may be a preset value.
As one possible implementation manner, a plurality of terminal apparatuses (referred to as reference terminal apparatuses in the present disclosure) having the optical anti-shake apparatuses built therein and each satisfying a set requirement may be determined, and the difference threshold may be determined according to the plurality of reference terminal apparatuses.
As an example, for each reference terminal device, the above method may be used to determine the moving distance of the reference terminal device under the driving of the movable device (denoted as the third moving distance in the present disclosure) and determine the moving distance of the optical anti-shake device in the reference terminal device (denoted as the fourth moving distance in the present disclosure), so that the difference between the third moving distance and the fourth moving distance of the reference terminal device may be determined according to the third moving distance and the fourth moving distance of the reference terminal device, and may be used as the reference difference.
After determining the reference difference of each reference terminal device, the average value of each reference difference may be used as a difference threshold, or the median of each reference difference may also be used as a difference threshold, or the maximum value (or the minimum value) of each reference difference may be used as a difference threshold, or the like, which is not limited by the present disclosure.
In the embodiment of the disclosure, when the difference between the first moving distance and the second moving distance is not greater than the difference threshold, it is indicated that the anti-shake performance of the optical anti-shake device in the terminal equipment is better, so that it can be determined that the anti-shake performance of the optical anti-shake device meets the set requirement.
Step 407, determining that the anti-shake performance of the optical anti-shake device does not meet the set requirement when the difference is greater than the difference threshold.
In the embodiment of the disclosure, when the difference between the first moving distance and the second moving distance is greater than the difference threshold, it is indicated that the anti-shake performance of the optical anti-shake device in the terminal equipment is poor, and therefore, it may be determined that the anti-shake performance of the optical anti-shake device does not meet the set requirement.
It should be noted that, step 406 and step 407 are implemented in two parallel implementations, and may be alternatively executed in actual application.
As an application scenario, taking an example of optical anti-shake performance detection before the terminal device leaves the factory, after a first moving distance of the terminal device and a second moving distance of an optical anti-shake device of the terminal device are obtained, a difference between the first moving distance and the second moving distance can be determined. When the difference is larger than the difference threshold, it can be determined that the anti-shake performance of the optical anti-shake device of the terminal equipment cannot meet the set requirement (i.e. does not meet the factory condition), so that the terminal equipment can be modulated again after being returned to the factory; and when the difference is not greater than the difference threshold, it can be determined that the anti-shake performance of the optical anti-shake device of the terminal device meets the set requirement (i.e., meets the factory condition), so that the terminal device can be shipped.
According to the optical anti-shake performance detection method of the terminal equipment, the second moving distance of the optical anti-shake device is determined according to the target value; determining a difference between the first movement distance and the second movement distance; under the condition that the difference is not larger than a difference threshold value, determining that the anti-shake performance of the optical anti-shake device meets the set requirement; and under the condition that the difference is larger than the difference threshold value, determining that the anti-shake performance of the optical anti-shake device does not meet the set requirement. Thus, the second movement distance of the optical anti-shake device can be effectively determined based on the target value in the drive register of the optical anti-shake device, so that the optical anti-shake performance of the terminal device can be effectively determined according to the difference between the first movement distance of the terminal device and the second movement distance of the optical anti-shake device. In addition, the optical anti-shake performance of the terminal equipment is detected according to the difference between the moving distance of the terminal equipment and the moving distance of the optical anti-shake device, and the accuracy and reliability of the optical anti-shake performance detection result can be improved.
In order to clearly illustrate how to determine the first moving distance of the terminal device in any embodiment of the present disclosure, the present disclosure further provides a method for detecting the optical anti-shake performance of the terminal device.
Fig. 5 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to another embodiment of the disclosure.
As shown in fig. 5, the method for detecting optical anti-shake performance of the terminal device may include the following steps:
in step 501, when the terminal device is in the shooting mode, the movable device is controlled to drive the terminal device to move in an accelerating way.
The implementation of step 501 may refer to the implementation of any embodiment of the present disclosure, which is not described herein.
Step 502, determining acceleration of movement of the terminal device.
In the embodiment of the disclosure, the acceleration of the movement of the terminal device may be determined. For example, an accelerometer, an acceleration sensor, a speed measuring device mounted on the terminal device, or the like may be used to determine the acceleration of the movement of the terminal device, which is not limited in this disclosure.
Step 503, determining a movement duration of the terminal device.
In the embodiment of the disclosure, the movement duration of the terminal device may be determined. For example, a timer may be used to record the length of movement of the terminal device.
Step 504, determining a first moving distance of the terminal equipment according to the acceleration and the moving duration.
In the embodiment of the present disclosure, the first movement distance of the terminal device may be determined according to the acceleration and the movement duration.
For example, if the mark acceleration is a, the movement duration is t, and the first movement distance L of the terminal device, L may be determined according to the following formula:
step 505, obtaining a target value in a driving register of the optical anti-shake device in the terminal device, where the target value is used to indicate a second movement distance of the optical anti-shake device.
Step 506, determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the first moving distance and the target value.
As an example, the second movement distance of the optical anti-shake apparatus may be determined according to the target value, and whether the anti-shake performance of the optical anti-shake apparatus of the terminal device satisfies the set requirement may be determined according to the first movement distance and the second movement distance. For example, when the difference between the first moving distance and the second moving distance is smaller, the better the anti-shake performance of the optical anti-shake device in the terminal device is indicated, and therefore, in the present disclosure, when the difference between the first moving distance and the second moving distance is smaller, it may be determined whether the anti-shake performance of the optical anti-shake device of the terminal device meets the set requirement.
And when the difference between the first moving distance and the second moving distance is higher, the worse the anti-shake performance of the optical anti-shake device in the terminal device is indicated, so in the present disclosure, when the difference between the first moving distance and the second moving distance is larger, it may be determined that the anti-shake performance of the optical anti-shake device of the terminal device does not meet the set requirement.
As one possible implementation, a difference between the first movement distance and the second movement distance may be determined; under the condition that the difference is not larger than a difference threshold value, determining that the anti-shake performance of the optical anti-shake device meets the set requirement; and under the condition that the difference is larger than the difference threshold value, determining that the anti-shake performance of the optical anti-shake device does not meet the set requirement.
The execution of steps 505 to 506 may refer to the execution of any embodiment of the present disclosure, and will not be described herein.
The optical anti-shake performance detection method of the terminal equipment comprises the steps of determining the moving acceleration of the terminal equipment; determining the moving time length of the terminal equipment; and determining a first moving distance of the terminal equipment according to the acceleration and the moving duration. Therefore, the first moving distance of the terminal equipment can be effectively and accurately determined according to the acceleration and the moving duration of the terminal equipment.
Based on the above embodiments of the present disclosure, in order to clearly explain how to obtain a target value in a driving register of an optical anti-shake device in a terminal device, the present disclosure also proposes a method for detecting optical anti-shake performance of the terminal device.
Fig. 6 is a flowchart illustrating a method for detecting optical anti-shake performance of a terminal device according to another embodiment of the disclosure.
As shown in fig. 6, the method for detecting optical anti-shake performance of the terminal device may include the following steps:
in step 601, when the terminal device is in the shooting mode, the movable device is controlled to drive the terminal device to move in an accelerating way.
Step 602, determining a first moving distance of the terminal equipment under the driving of the movable device.
The execution of steps 601 to 602 may refer to the execution of any embodiment of the present disclosure, and will not be described herein.
Step 603, determining whether the movement time of the terminal device is longer than the target time, if the movement time is longer than the target time, executing step 604, and if the movement time is not longer than the target time, executing step 605.
The target duration is determined according to the storage space and the sampling period of a driving register of the optical anti-shake device.
In the embodiment of the disclosure, the driving register of the optical anti-shake device may periodically collect movement data (or shake data) of the optical anti-shake device to obtain each storage value, and write each storage value into the driving register.
For example, if the sampling period of the flag driving register is T, the driving register periodically collects movement data (or jitter data) of the optical anti-shake device with T as a period, and writes the stored value sampled for each period into the driving register. I.e. the drive register generates a data packet (which includes values in the first direction and values in the second direction) every other period T.
In the embodiment of the disclosure, the target duration may be determined according to a storage space and a sampling period of a driving register of the optical anti-shake device.
As an example, assuming that the driving register may store at most m storage values (or data packets) according to the storage space of the driving register, that is, the storage space of the driving register is the size of m storage values (or data packets), the target duration may be m×t. For example, the storage space of the driving register is 12 data packets, the sampling period of the driving register is 2ms, and the target duration may be 24ms.
It should be noted that the above examples of the storage space and the sampling period of the driving register are only exemplary, and in practical application, the storage space and the sampling period of the driving register may be other values.
It should be noted that the storage spaces of the driving registers corresponding to the optical anti-shake devices of different models may be the same or may be different, which is not limited in the disclosure. And, the sampling periods of the driving registers corresponding to the optical anti-shake devices of different models may be the same or may be different, which is not limited in the disclosure.
In the embodiment of the present disclosure, after determining the movement duration of the terminal device, it may be determined whether the movement duration is greater than the target duration, if the movement duration is greater than the target duration, step 604 is performed, and if the movement duration is not greater than the target duration, step 605 is performed.
Step 604, when the movement time period is longer than the target time period, any one set of stored values in the driving register is acquired and used as a target value.
The stored value may include a value in a first direction and a value in a second direction, the value in the first direction may be used to indicate a shake distance of the optical anti-shake device in the first direction, the value in the second direction may be used to indicate a shake distance of the optical anti-shake device in the second direction, the first direction is perpendicular to the second direction, and the first direction and the second direction are perpendicular to a normal direction of a plane where a lens of the terminal device is located.
The explanation of the first direction and the second direction may also refer to the related description in any embodiment of the disclosure, which is not repeated herein.
Wherein the target value may be used to indicate a second movement distance of the optical anti-shake device.
In the embodiment of the present disclosure, when the movement time period is longer than the target time period, at this time, the drive register may cover a part of the stored values collected first in the shake process of the optical anti-shake device, and the difference between the uncovered stored values is small, so that any one set of stored values in the stored values may be obtained and used as the target value.
Step 605, when the movement duration is not greater than the target duration, the stored value stored in the drive register last time is obtained and used as the target value.
In the embodiment of the present disclosure, when the movement duration is not longer than the target duration, the driving register may completely store each storage value acquired during the dithering process of the optical anti-dithering apparatus, and at this time, the storage value stored in the driving register last time may be acquired and may be used as the target value.
Step 606, determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the first moving distance and the target value.
The implementation of step 606 may refer to the implementation of any embodiment of the disclosure, which is not described herein.
The optical anti-shake performance detection method of the terminal equipment of the embodiment of the disclosure judges whether the moving duration is longer than the target duration, wherein the target duration is determined according to the storage space and the sampling period of the driving register; when the moving time length is longer than the target time length, any group of storage values in the driving register are obtained and used as target values; the storage value comprises a value in a first direction and a value in a second direction, wherein the value in the first direction is used for indicating the shaking distance of the optical anti-shaking device in the first direction, and the value in the second direction is used for indicating the shaking distance of the optical anti-shaking device in the second direction; and when the moving time is not longer than the target time, acquiring a stored value stored in the drive register last time and taking the stored value as a target value. Thus, the target value for indicating the moving distance of the optical anti-shake device in the drive register is effectively and accurately acquired based on the target time length and the moving time length of the terminal device.
Corresponding to the optical anti-shake performance detection method of the terminal device provided by the embodiments of fig. 1 to 6, the present disclosure further provides an optical anti-shake performance detection apparatus of a terminal device, and since the optical anti-shake performance detection apparatus of a terminal device provided by the embodiments of the present disclosure corresponds to the optical anti-shake performance detection method of a terminal device provided by the embodiments of fig. 1 to 6, implementation of the optical anti-shake performance detection method of a terminal device is also applicable to the optical anti-shake performance detection apparatus of a terminal device provided by the embodiments of the present disclosure, which is not described in detail in the embodiments of the present disclosure.
Fig. 7 is a schematic structural diagram of an optical anti-shake performance detection apparatus for a terminal device according to an embodiment of the disclosure.
As shown in fig. 7, the optical anti-shake performance detection apparatus 700 of the terminal device may include: a control module 701, an acquisition module 702 and a determination module 703.
The control module 701 is configured to control the movable device to drive the terminal device to move in an acceleration manner when the terminal device is in a shooting mode.
An obtaining module 702, configured to obtain a target value in a driving register of an optical anti-shake device in a terminal device, where the target value is used to indicate a second movement distance of the optical anti-shake device.
A determining module 703, configured to determine whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the first moving distance and the target value.
In one possible implementation manner of the embodiment of the present disclosure, the target value includes a first value and a second value, where the first value is used to indicate a jitter distance of the optical anti-shake device in a first direction, and the second value is used to indicate a jitter distance of the optical anti-shake device in a second direction; a determining module 703, configured to: judging whether the first value is in the first value interval or not, and judging whether the second value is in the second value interval or not; determining that the anti-shake performance of the optical anti-shake device meets the set requirement in response to the first value being located in the first value interval and/or the second value being located in the second value interval; and determining that the anti-shake performance of the optical anti-shake device does not meet the set requirement in response to the first value not being located in the first value interval and the second value not being located in the second value interval.
In one possible implementation manner of the embodiment of the present disclosure, the first value interval and the second value interval are determined according to a plurality of reference terminal devices, and an anti-shake performance of an optical anti-shake device of the reference terminal device meets a set requirement.
In one possible implementation of the embodiment of the disclosure, the determining module 703 is configured to: determining a first moving distance of the terminal equipment under the drive of the movable device; determining a second moving distance of the optical anti-shake device according to the target value; determining a difference between the first movement distance and the second movement distance; under the condition that the difference is not larger than a difference threshold value, determining that the anti-shake performance of the optical anti-shake device meets the set requirement; and under the condition that the difference is larger than the difference threshold value, determining that the anti-shake performance of the optical anti-shake device does not meet the set requirement.
In one possible implementation manner of the embodiment of the present disclosure, the target value includes a first value and a second value, where the first value is used to indicate a jitter distance of the optical anti-shake device in a first direction, and the second value is used to indicate a jitter distance of the optical anti-shake device in a second direction; a determining module 703, configured to: determining a shaking distance of the optical shaking prevention device in a first direction according to the first value; determining a shaking distance of the optical shaking prevention device in a second direction according to the second value; and determining a second movement distance of the optical anti-shake device according to the shake distance in the first direction and the shake distance in the second direction.
In one possible implementation manner of the embodiment of the present disclosure, the difference threshold is determined according to a plurality of reference terminal devices, and the anti-shake performance of the optical anti-shake device of the reference terminal device meets the set requirement.
In one possible implementation of the embodiment of the disclosure, the determining module 703 is configured to: determining the acceleration of the movement of the terminal equipment; determining the moving time length of the terminal equipment; and determining a first moving distance of the terminal equipment according to the acceleration and the moving duration.
In one possible implementation of the embodiment of the disclosure, the obtaining module 702 is configured to: judging whether the moving time length is greater than a target time length, wherein the target time length is determined according to the storage space and the sampling period of the driving register; when the moving time length is longer than the target time length, any group of storage values in the driving register are obtained and used as target values; the storage value comprises a value in a first direction and a value in a second direction, wherein the value in the first direction is used for indicating the shaking distance of the optical anti-shaking device in the first direction, and the value in the second direction is used for indicating the shaking distance of the optical anti-shaking device in the second direction; and when the moving time is not longer than the target time, acquiring a stored value stored in the drive register last time and taking the stored value as a target value.
According to the optical anti-shake performance detection device of the terminal equipment, when the terminal equipment is in a shooting mode, the movable device is controlled to drive the terminal equipment to move in an accelerating mode; acquiring a target value in a driving register of an optical anti-shake device in terminal equipment, wherein the target value is used for indicating the moving distance of the optical anti-shake device; and determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the target value. Therefore, when the movable device drives the terminal equipment to move in an accelerating way, the anti-shake performance of the optical anti-shake device in the terminal equipment can be effectively detected according to the moving distance of the optical anti-shake device in the terminal equipment.
In order to achieve the above embodiments, the present disclosure further proposes an electronic device including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the optical anti-shake performance detection method of the terminal device according to any one of the previous embodiments of the disclosure when executing the program.
In order to implement the above-mentioned embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the optical anti-shake performance detection method of a terminal device as proposed in any of the foregoing embodiments of the present disclosure.
To achieve the above embodiments, the present disclosure further proposes a computer program product, which when executed by a processor, performs the method for detecting optical anti-shake performance of a terminal device as proposed in any of the foregoing embodiments of the present disclosure.
Fig. 8 is a block diagram of an electronic device, according to an example embodiment. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 8, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 806 provides power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the electronic device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,4G, or 5G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of electronic device 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
Furthermore, each functional unit in the embodiments of the present disclosure may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (19)

1. A method for detecting optical anti-shake performance of a terminal device, the method comprising:
when the terminal equipment is in a shooting mode, controlling a movable device to drive the terminal equipment to move in an accelerating way;
acquiring a target value in a driving register of an optical anti-shake device in the terminal equipment, wherein the target value is used for indicating the moving distance of the optical anti-shake device;
and determining whether the anti-shake performance of the optical anti-shake device meets a set requirement according to the target value.
2. The method of claim 1, wherein the target value comprises a first value and a second value, wherein the first value is used to indicate a jitter distance of the optical anti-shake device in the first direction, and the second value is used to indicate a jitter distance of the optical anti-shake device in the second direction;
The determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the target value includes:
judging whether the first value is in a first value interval or not, and judging whether the second value is in a second value interval or not;
determining that the anti-shake performance of the optical anti-shake device meets a set requirement in response to the first value being located in the first value interval and/or the second value being located in the second value interval;
and determining that the anti-shake performance of the optical anti-shake device does not meet a set requirement in response to the first value not being located in the first value interval and the second value not being located in the second value interval.
3. The method of claim 2, wherein the first and second value intervals are determined according to a plurality of reference terminal devices, and an anti-shake performance of an optical anti-shake apparatus of the reference terminal device satisfies a set requirement.
4. The method according to claim 1, wherein determining whether the anti-shake performance of the optical anti-shake apparatus satisfies a set requirement according to the target value includes:
determining a first moving distance of the terminal equipment driven by the movable device;
Determining a second moving distance of the optical anti-shake device according to the target value;
determining a difference between the first distance of movement and the second distance of movement;
under the condition that the difference is not larger than a difference threshold value, determining that the anti-shake performance of the optical anti-shake device meets a set requirement;
and under the condition that the difference is larger than a difference threshold value, determining that the anti-shake performance of the optical anti-shake device does not meet the set requirement.
5. The method of claim 4, wherein the target value comprises a first value and a second value, wherein the first value is used to indicate a jitter distance of the optical anti-shake device in the first direction, and the second value is used to indicate a jitter distance of the optical anti-shake device in the second direction;
the determining, according to the target value, a second moving distance of the optical anti-shake device includes:
determining a shaking distance of the optical anti-shaking device in the first direction according to the first value;
determining a shaking distance of the optical anti-shaking device in the second direction according to the second value;
and determining a second movement distance of the optical anti-shake device according to the shake distance in the first direction and the shake distance in the second direction.
6. The method of claim 4, wherein the difference threshold is determined based on a plurality of reference terminal devices whose anti-shake performance of the optical anti-shake apparatus meets a set requirement.
7. The method of claim 4, wherein the determining the first distance of movement of the terminal device comprises:
determining the acceleration of the movement of the terminal equipment;
determining the moving time length of the terminal equipment;
and determining a first moving distance of the terminal equipment according to the acceleration and the moving duration.
8. The method of claim 7, wherein obtaining the target value in the drive register of the optical anti-shake device in the terminal device comprises:
judging whether the moving time length is greater than a target time length or not, wherein the target time length is determined according to the storage space and the sampling period of the driving register;
when the moving time length is longer than the target time length, any group of storage values in the driving register are obtained and used as the target value; the storage value comprises a value in a first direction and a value in a second direction, wherein the value in the first direction is used for indicating the shaking distance of the optical anti-shaking device in the first direction, and the value in the second direction is used for indicating the shaking distance of the optical anti-shaking device in the second direction;
And when the moving time is not longer than the target time, acquiring a stored value stored in the driving register last time and taking the stored value as the target value.
9. An optical anti-shake performance detection apparatus for a terminal device, the apparatus comprising:
the control module is used for controlling the movable device to drive the terminal equipment to move in an acceleration way when the terminal equipment is in a shooting mode;
an acquisition module, configured to acquire a target value in a driving register of an optical anti-shake device in the terminal device, where the target value is used to indicate a movement distance of the optical anti-shake device;
and the determining module is used for determining whether the anti-shake performance of the optical anti-shake device meets the set requirement according to the target value.
10. The apparatus of claim 9, wherein the target value comprises a first value and a second value, wherein the first value is used to indicate a jitter distance of the optical anti-shake apparatus in the first direction, and the second value is used to indicate a jitter distance of the optical anti-shake apparatus in the second direction;
the determining module is used for:
judging whether the first value is in a first value interval or not, and judging whether the second value is in a second value interval or not;
Determining that the anti-shake performance of the optical anti-shake device meets a set requirement in response to the first value being located in the first value interval and/or the second value being located in the second value interval;
and determining that the anti-shake performance of the optical anti-shake device does not meet a set requirement in response to the first value not being located in the first value interval and the second value not being located in the second value interval.
11. The apparatus of claim 9, wherein the first and second value intervals are determined according to a plurality of reference terminal devices, and an anti-shake performance of an optical anti-shake apparatus of the reference terminal device satisfies a set requirement.
12. The apparatus of claim 9, wherein the determining module is configured to:
determining a first moving distance of the terminal equipment driven by the movable device;
determining a second moving distance of the optical anti-shake device according to the target value;
determining a difference between the first distance of movement and the second distance of movement;
under the condition that the difference is not larger than a difference threshold value, determining that the anti-shake performance of the optical anti-shake device meets a set requirement;
And under the condition that the difference is larger than a difference threshold value, determining that the anti-shake performance of the optical anti-shake device does not meet the set requirement.
13. The apparatus of claim 12, wherein the target value comprises a first value and a second value, wherein the first value is used to indicate a jitter distance of the optical anti-shake apparatus in the first direction, and the second value is used to indicate a jitter distance of the optical anti-shake apparatus in the second direction; the determining module is used for:
determining a shaking distance of the optical anti-shaking device in the first direction according to the first value;
determining a shaking distance of the optical anti-shaking device in the second direction according to the second value;
and determining a second movement distance of the optical anti-shake device according to the shake distance in the first direction and the shake distance in the second direction.
14. The apparatus of claim 12, wherein the difference threshold is determined based on a plurality of reference terminal devices whose optical anti-shake apparatus anti-shake performance meets a set requirement.
15. The apparatus of claim 12, wherein the determining module is configured to:
Determining the acceleration of the movement of the terminal equipment;
determining the moving time length of the terminal equipment;
and determining a first moving distance of the terminal equipment according to the acceleration and the moving duration.
16. The apparatus of claim 15, wherein the means for obtaining is configured to:
judging whether the moving time length is greater than a target time length or not, wherein the target time length is determined according to the storage space and the sampling period of the driving register;
when the moving time length is longer than the target time length, any group of storage values in the driving register are obtained and used as the target value; the storage value comprises a value in a first direction and a value in a second direction, wherein the value in the first direction is used for indicating the shaking distance of the optical anti-shaking device in the first direction, and the value in the second direction is used for indicating the shaking distance of the optical anti-shaking device in the second direction;
and when the moving time is not longer than the target time, acquiring a stored value stored in the driving register last time and taking the stored value as the target value.
17. An electronic device, comprising:
A processor;
a memory for storing executable instructions of the processor; wherein the processor is configured to invoke and execute the executable instructions stored in the memory to implement the method for detecting optical anti-shake performance of a terminal device according to any of claims 1-8.
18. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the optical anti-shake performance detection method of a terminal device according to any of claims 1-8.
19. A computer program product, characterized in that the instructions in the computer program product, when executed by a processor, perform the method of optical anti-shake performance detection of a terminal device according to any of claims 1-8.
CN202210594807.7A 2022-05-27 2022-05-27 Method, device, equipment and medium for detecting optical anti-shake performance of terminal equipment Pending CN117201939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210594807.7A CN117201939A (en) 2022-05-27 2022-05-27 Method, device, equipment and medium for detecting optical anti-shake performance of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210594807.7A CN117201939A (en) 2022-05-27 2022-05-27 Method, device, equipment and medium for detecting optical anti-shake performance of terminal equipment

Publications (1)

Publication Number Publication Date
CN117201939A true CN117201939A (en) 2023-12-08

Family

ID=89000256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210594807.7A Pending CN117201939A (en) 2022-05-27 2022-05-27 Method, device, equipment and medium for detecting optical anti-shake performance of terminal equipment

Country Status (1)

Country Link
CN (1) CN117201939A (en)

Similar Documents

Publication Publication Date Title
US10877353B2 (en) Continuous autofocus mechanisms for image capturing devices
US9148567B2 (en) Methods and devices for controlling camera image capture
KR101840145B1 (en) Method for controlling mobile terminal and mobile terminal
KR101712301B1 (en) Method and device for shooting a picture
KR101678173B1 (en) Method, device, program and recording medium for photographing
US10612918B2 (en) Mobile computing device and method for calculating a bending angle
RU2664674C2 (en) Method and apparatus for creating a panorama
EP3496391B1 (en) Method and device for capturing image and storage medium
CN104994304B (en) The method, apparatus and terminal device of optical anti-vibration
CN111651441B (en) Data processing method and device and computer storage medium
CN112525224B (en) Magnetic field calibration method, magnetic field calibration device, and storage medium
CA2825342C (en) Methods and devices for controlling camera image capture
CN114430453A (en) Camera anti-shake system, control method, equipment and medium
EP3629560A1 (en) Full screen terminal, and operation control method and device based on full screen terminal
CN113300664A (en) Method, device and medium for determining motor driving signal
CN117201939A (en) Method, device, equipment and medium for detecting optical anti-shake performance of terminal equipment
CN108153488B (en) Data self-adding method and device
CN114765663A (en) Anti-shake processing method and device, mobile device and storage medium
CN112965653B (en) Touch position reporting method and device and electronic equipment
WO2023230829A1 (en) Touch detection method, apparatus, and storage medium
CN112203015B (en) Camera control method, device and medium system
CN115641586A (en) Electronic equipment motion state detection method and device, electronic equipment and storage medium
CN117953910A (en) Noise elimination method, device, equipment and storage medium
CN113190103A (en) Terminal device, motion detection method and device of image acquisition module and storage medium
CN116132783A (en) Lens pose control method and device, mobile terminal and readable storage medium

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