CN114554192A - Posture monitoring method, device and equipment of camera module and storage medium - Google Patents

Posture monitoring method, device and equipment of camera module and storage medium Download PDF

Info

Publication number
CN114554192A
CN114554192A CN202210438298.9A CN202210438298A CN114554192A CN 114554192 A CN114554192 A CN 114554192A CN 202210438298 A CN202210438298 A CN 202210438298A CN 114554192 A CN114554192 A CN 114554192A
Authority
CN
China
Prior art keywords
value
stroke
motor
camera module
monitoring
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
CN202210438298.9A
Other languages
Chinese (zh)
Other versions
CN114554192B (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.)
Hefei Dilusense Technology Co Ltd
Original Assignee
Hefei Dilusense 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 Hefei Dilusense Technology Co Ltd filed Critical Hefei Dilusense Technology Co Ltd
Priority to CN202210438298.9A priority Critical patent/CN114554192B/en
Publication of CN114554192A publication Critical patent/CN114554192A/en
Application granted granted Critical
Publication of CN114554192B publication Critical patent/CN114554192B/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

Landscapes

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

Abstract

The embodiment of the application relates to the technical field of camera modules and discloses a camera module posture monitoring method, device, equipment and storage medium. The attitude monitoring method of the camera module comprises the following steps: acquiring a stroke difference value between the motor stroke of the camera module under different inclination angles and the motor stroke of the camera module in the horizontal direction, and acquiring a stroke offset limit value of the motor based on the stroke difference value; acquiring a drive command offset value of the motor corresponding to the drive current corresponding to the stroke offset limit value based on the stroke offset limit value; acquiring the corresponding relation between the resolution and the analytic value of the motor under different driving command deviation values; and monitoring an analytic value corresponding to the driving command offset value under different resolutions based on the corresponding relation. The posture monitoring method for the camera module simplifies the monitoring process of the camera module, and saves the testing cost, the labor cost and the time cost.

Description

Posture monitoring method, device and equipment of camera module and storage medium
Technical Field
The embodiment of the application relates to the technical field of camera modules, in particular to a method, a device, equipment and a storage medium for monitoring the posture of a camera module.
Background
At present, when a camera module (such as a smartphone camera module and a tablet computer camera module) focuses and takes a picture by using a Voice Coil Motor (VCM for short), the camera module is influenced by the dead weight of a lens of the camera module, and when the camera module is used at different pitch angles, a component force exists in the elastic direction of the Voice Coil Motor by the gravity of the lens, so that the lens is out of focus, which is called as three-attitude difference of the camera module. For example, the lens of the camera module can focus clearly in the same distance in the horizontal direction, the upward direction (including the upward tilt and the upward forward direction), and the downward direction (including the downward tilt and the downward forward direction), and the required strokes of the voice coil motors are different, and the analytical values of the camera module in the three directions are different.
In order to avoid the great module of making a video recording of three gesture differences flowing, the module of making a video recording will test the analytic power under the different inclination respectively when leaving the factory, generally need be under certain inclination, the module of making a video recording respectively at the level, upwards (including the slope upwards and forward), downwards (including the slope downwards and forward down) test, under this condition, generally need test the cubic, can both satisfy the requirement in the analysis of every test direction in order to ensure the module of making a video recording, so, lead to test cost, time cost, human cost is higher.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a device and a storage medium for monitoring an attitude of a camera module, which simplify a monitoring process of the camera module, and save a testing cost, a labor cost and a time cost.
In order to solve the above technical problem, an embodiment of the present application provides a method for monitoring an attitude of a camera module, including the following steps: acquiring a stroke difference value between the motor stroke of the camera module at different inclination angles and the motor stroke of the camera module in the horizontal direction, and acquiring a stroke offset limit value of the motor based on the stroke difference value; acquiring a drive command offset value of the motor corresponding to a drive current corresponding to the stroke offset limit value based on the stroke offset limit value; acquiring the corresponding relation between the resolution and the analytic value of the motor under different driving command deviation values; and monitoring an analytic value corresponding to the driving instruction offset value under different resolutions based on the corresponding relation. This application converts the gesture control of the module of making a video recording into the control of single horizontal direction by the direct test of a plurality of directions, turns into the drive command deviant of motor through the motor stroke difference value that the module of making a video recording corresponds under different inclination and the horizontality, can realize the gesture control of the module of making a video recording through the analytic value that the control drive command deviant corresponds, saves test cost, human cost, time cost.
In addition, the monitoring an analytic value corresponding to the driving command offset value at different resolutions based on the correspondence includes: based on the corresponding relation, acquiring an analytic value corresponding to a reference driving instruction offset value of the camera module under the target resolution; the absolute value of the difference between the reference drive command offset value and the drive command offset value in the correspondence relationship is smallest; setting a target analytic value based on the analytic value corresponding to the reference driving instruction offset value; the target analytic value is greater than or equal to the analytic value corresponding to the reference driving instruction offset value; judging whether an analytic value corresponding to the driving instruction deviation value is larger than the target analytic value or not; if so, the camera module is analyzed to be qualified under the drive instruction deviation value; if not, the camera module is unqualified in analysis under the drive instruction offset value. According to the resolution and the corresponding relation of the analytic values of the motor under different driving instruction deviation values, monitoring whether the analytic value under the driving instruction deviation value is larger than the analytic value of a reference driving instruction deviation value or not under the target resolution, wherein in a corresponding relation list, the reference driving instruction deviation value is located beside the driving instruction deviation value, and the absolute value of the difference value of the reference driving instruction deviation value and the analytic value is the minimum; acquiring a target analysis value according to the analysis value of the reference driving instruction offset value under the target resolution; whether the analysis value of the camera module under the drive instruction deviation value is greater than the target analysis value or not is monitored, so that whether the analysis value of the camera module under the drive instruction deviation value is qualified or not is judged.
Further, the method, after acquiring a drive command offset value of the motor corresponding to the drive current corresponding to the stroke offset limit based on the stroke offset limit, further includes, before monitoring an analysis value corresponding to the drive command offset value at a different resolution based on the correspondence relationship, the method including: acquiring a monitoring driving instruction range based on the driving instruction deviation value and a driving instruction value of a motor corresponding to the camera module in a focusing state, wherein a midpoint value of the monitoring driving instruction range is the driving instruction value of the motor corresponding to the camera module in a near-focus state or a far-focus state; and monitoring an analytic value corresponding to a drive instruction deviation value deviating from the reference drive instruction value within the monitoring drive instruction range by taking a drive instruction value of a motor corresponding to the camera module in a focusing state as the reference drive instruction value. In the embodiment of the present application, the monitoring driving instruction range is generally an interval range obtained by floating the driving instruction deviation value up and down based on the driving instruction value of the motor corresponding to the camera module in the focusing state, and the posture monitoring of the camera module is realized by monitoring the analytic value corresponding to the driving instruction deviation value deviating from the reference driving instruction value in the interval range.
In addition, the monitoring driving instruction range comprises a first endpoint value and a second endpoint value, and the first endpoint value is a difference value between a driving instruction value of a motor corresponding to the camera module in a focusing state and the driving instruction offset value; the second endpoint value is the sum of the driving instruction value of the motor corresponding to the camera module in the focusing state and the driving instruction offset value. The monitoring driving instruction range of the embodiment of the application is the driving instruction value +/-driving instruction deviant of the motor corresponding to the camera module in the focusing state, and after the driving instruction value of the motor corresponding to the camera module in the near-focus or far-focus state is obtained, the offset of the driving instruction deviant is respectively deviated upwards and downwards on the basis of the reference driving instruction value, so that the monitoring driving instruction range is obtained.
In addition, acquire the module of making a video recording under different inclination motor stroke and the module of making a video recording stroke difference value between the motor stroke in the horizontal direction, include: acquiring a first stroke value and a second stroke value; the first stroke value is a stroke value of a motor corresponding to the camera module in a horizontal state, the second stroke value comprises a stroke value of the motor corresponding to the camera module when the camera module inclines upwards relative to the horizontal state, and/or the second stroke value comprises a stroke value of the motor corresponding to the camera module when the camera module inclines downwards relative to the horizontal state; and acquiring the stroke difference value based on the first stroke value and the second stroke value, wherein the stroke difference value is the difference value between the second stroke value and the first stroke value. In this embodiment, the stroke difference may be a difference between a stroke value of a motor corresponding to the camera module that is tilted upward with respect to the horizontal state and a stroke value of a motor corresponding to the camera module that is in the horizontal state, the stroke difference may also be a difference between a stroke value of a motor corresponding to the camera module that is tilted downward with respect to the horizontal state and a stroke value of a motor corresponding to the camera module that is in the horizontal state, and the stroke difference may also include a difference between a stroke value of a motor corresponding to the camera module that is tilted upward with respect to the horizontal state and a stroke value of a motor corresponding to the camera module that is in the horizontal state, and a difference between a stroke value of a motor corresponding to the camera module that is tilted downward with respect to the horizontal state and a stroke value of a motor corresponding to the camera module that is in the horizontal state.
Additionally, the travel offset limit is greater than or equal to the travel difference value.
Further, the acquiring a drive command offset value of the motor corresponding to the drive current corresponding to the stroke offset limit based on the stroke offset limit includes: acquiring a driving current corresponding to the motor under the travel deviation limit value based on the central slope of the motor; and acquiring a drive command offset value of the motor corresponding to the drive current based on the corresponding relation between the drive current and the motor stroke. According to the embodiment of the application, the corresponding driving current is calculated through the stroke deviation limiting value, then the driving instruction deviation value of the motor corresponding to the driving current is calculated, the stroke difference value of the camera module in three postures under a certain inclination angle is converted into the driving instruction deviation value of the motor, the monitoring of the camera module in the three postures under the certain inclination angle is converted into the monitoring of the analytic value in the interval of the driving instruction deviation value of the near-focus or far-focus code +/-motor, the three-posture monitoring of the camera module is simplified, and the monitoring efficiency is improved.
The embodiment of the application also provides an attitude monitoring device of the camera module, which comprises a stroke acquisition module, a calculation module and a monitoring module; the stroke acquisition module is used for acquiring corresponding strokes of the motor of the camera module in different inclination angles and horizontal states, and the stroke is the stroke of the motor of the camera module in a focusing state; the calculation module is used for acquiring a stroke offset limit value of the motor according to at least two strokes acquired by the stroke acquisition module, and acquiring a drive instruction offset value of the motor based on a linear relation between the stroke and the drive current and a linear relation between the drive current and a drive instruction of the motor; the monitoring module is used for monitoring whether the analytic values corresponding to the driving instruction deviant are qualified or not under different resolutions according to the corresponding relation between the driving instruction deviant and the resolutions and the analytic values of the motor.
An embodiment of the present application further provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the storage stores instructions which can be executed by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the attitude monitoring method of the camera module.
The embodiment of the application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the attitude monitoring method of the camera module.
This application embodiment turns into the difference of the drive command value of motor through the difference of the motor stroke value of the module of making a video recording under different inclination, obtains the stroke deviation limit value of motor through the stroke difference value of motor, then obtains the drive command deviant of motor, monitors through the analytic value that corresponds drive command deviant to whether the analysis of the module of making a video recording under different gestures reaches standard in the control. According to the embodiment of the application, the stroke difference values of the motors of the camera module corresponding to different inclination angles are firstly obtained, then the stroke offset limit value is obtained, the driving instruction offset value of the motor under the driving current corresponding to the offset limit value is obtained through calculation, and the monitoring of the posture of the camera module is realized through monitoring the analytic value corresponding to the driving instruction offset value. This application converts the gesture control of the module of making a video recording into the control of single horizontal direction by the direct test of a plurality of directions, turns into the drive command deviant of motor through the motor stroke difference value that the module of making a video recording corresponds under different inclination, can realize the gesture control of the module of making a video recording through the analytic value that the control drive command deviant corresponds, saves test cost, human cost, time cost.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
Fig. 1 is a flowchart of an attitude monitoring method of a camera module according to an embodiment of the present application;
FIG. 2 is a schematic view of a focusing principle of a camera module according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a difference in pose of a camera module according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a three-pose test of an AF module according to one embodiment of the present application;
fig. 5 is a flowchart of an attitude monitoring method of a camera module according to another embodiment of the present application;
fig. 6 is a flowchart of an attitude monitoring method of a camera module according to yet another embodiment of the present application;
FIG. 7 is a graph of a trip difference distribution for a camera module according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an attitude monitoring apparatus of a camera module according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of an electronic device according to one embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in the examples of the present application, numerous technical details are set forth in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present application, and the embodiments may be mutually incorporated and referred to without contradiction.
Referring to fig. 1, an embodiment of the present application provides a method for monitoring an attitude of a camera module, including the following steps:
and S101, acquiring a stroke difference value between the motor stroke of the camera module under different inclination angles and the motor stroke of the camera module in the horizontal direction, and acquiring a stroke offset limit value of the motor based on the stroke difference value.
Step S102 is to acquire a drive command offset value of the motor corresponding to the drive current corresponding to the stroke offset limit value, based on the stroke offset limit value.
Step 103, acquiring the corresponding relation between the resolution and the analysis value of the motor under different driving command offset values.
And step S104, monitoring an analytic value corresponding to the driving command offset value under different resolutions based on the corresponding relation.
In some embodiments, the camera module is generally an Auto Focus (Auto Focus) module, also called an AF module, and the AF module generally uses a central motor VCM to drag the lens to move up and down to switch between a far Focus and a near Focus, so as to make an image more clear. Fig. 2 shows a schematic view of the focusing principle of the AF module, and as shown in fig. 2, the lens is dragged by the middle motor VCM, so as to realize the switching between the far focus and the near focus. When the middle motor is in the middle of the far focus position and the near focus position, the spring stroke is 0, the corresponding motor driving command value code is 512 at the moment, and the corresponding current is 0 mA. The stroke of the motor is 0-1023 code, and a certain distance exists between the position of the maximum stroke of the motor and the object to be measured 3. The driving IC controls the motor to move through the driving current, each motor driving command value code corresponds to a driving current value, the magnitude of the driving current directly affects the movement of the lens driven by the motor, and the driving current and the motor driving command value code are generally in a linear relationship.
After focusing is completed, a motor driving command value at a far focus position and a motor driving command value at a near focus position are respectively burned by driving the central motor VCM through the driving IC, as shown in fig. 2, the motor driving command value at the near focus position is 650code, and the motor driving command value at the far focus position is 350code, which is convenient for calling in subsequent applications. As can be seen from fig. 2, the drive current value is 0 at the center position of the near focus position and the far focus position, the drive current reaches a maximum negative value (-Max) when the motor of the image pickup module moves to the position of the sensor 2, and the drive current reaches a maximum positive value (+ Max) when the motor moves to the position close to the object 3. Due to the characteristics of the mid-motor, the motor stroke can be divided into a linear region and a non-linear region. The elastic sensitivities of the motor springs in the linear area and the nonlinear area are different, under the same acting force, the linear area is large in displacement, the nonlinear area is small in displacement, the displacement represents the defocusing degree of the lens, and the larger the defocusing degree is, the worse the resolving force is.
As shown in fig. 3, since the lens of the AF module has a certain weight, when the lens is used at different pitch angles, the lens gravity has a component force in the VCM elastic direction, so that the lens is out of focus, which is called as a three-posture difference of the AF module. As can be seen from fig. 3, when the AF module is used in the horizontal direction, the spring force direction is in the horizontal direction, and since the lens weight component is 0 in the spring force direction of the spring of the motor, the AF module is defined as the initial state when used in the horizontal direction; when the AF module is used at a pitch angle (downward or upward), the elastic direction of the spring forms a certain included angle with the horizontal direction, when the included angle is 90 degrees, the gravity component of the lens in the elastic direction of the spring reaches the maximum, and the analytic force is degraded; that is, when the inclination angle of the AF module with respect to the horizontal direction is ± 90 °, the lens gravity component in the spring force direction is maximized, the lens defocuses most severely, and the resolving power deteriorates. Referring to fig. 2, the non-linear region of the mid-motor is located at both ends of the motor stroke, and the motor driving command value code is located in the linear region when the far focus position and the near focus position are burned. When the AF module is used upwards, most of the lens position is in a linear area during the far-focus focusing, a nonlinear area can be touched, the displacement of the VCM of the middle motor is large under the same acting force, and the degradation of the resolving power is relatively small; when the lens is focused in a near focus, the lens position is always in a linear region, the displacement of the VCM of the middle motor is larger, and the degradation of the resolving power is relatively larger. When the AF module is used downwards, the lens position is always in a linear region during the far-focus focusing, the displacement of the central motor VCM is larger, and the degradation of the resolving power is relatively larger; in the near-focus focusing, the lens position is mostly in a linear region, a nonlinear region may be touched, and the degradation of the resolving power is relatively small.
The module of making a video recording has the angle of pitch installation at practical application's in-process, receives the influence of camera lens gravity component this moment, has the difference between the analysis of the module of making a video recording under the different installation angle, makes a video recording the module promptly when not equidirectional use, and the analytic power difference is very big, is referred to as the three gesture differences of the module of making a video recording here collectively. For avoiding the great module product of making a video recording of three gesture differences to flow, ensure that the shipment product satisfies the application of different inclination directions, will test the analytic power under the different inclination respectively when the module of making a video recording dispatches from the factory, fig. 4 shows three gesture test schematic diagrams of AF module 1, as shown in fig. 4, AF module 1 need test respectively in the three directions of level, tilt up, downward sloping, need test the cubic, and need ensure that the analytic of each test direction can satisfy the demands moreover. Thus, the test cost is increased, and the test process is very complicated.
In order to solve the technical problem, in the embodiment of the present application, a difference between the stroke of the camera module and the stroke of the motor in the horizontal state at different tilt angles is converted into a difference between driving command values of the motor, a stroke deviation limit value is obtained according to a stroke difference value of the motor, a driving command deviation value is obtained according to the stroke deviation limit value, and an analysis value (Modulation Transfer Function, MTF for short) corresponding to the driving command deviation value is monitored, so as to monitor the posture of the camera module. The attitude monitoring of the camera module is converted from direct testing in multiple directions into monitoring in a single horizontal direction, the motor stroke difference values corresponding to the camera module in different inclination angles and in a horizontal state are converted into the driving instruction deviation value of the motor, and the attitude monitoring of the camera module can be realized by monitoring the analytic value corresponding to the driving instruction deviation value, so that the testing cost, the labor cost and the time cost are saved.
In some embodiments, referring to fig. 5, the monitoring the analytic value corresponding to the driving instruction offset value at different resolutions based on the correspondence relationship includes:
step S1041, based on the corresponding relation, obtaining an analytic value corresponding to a reference driving instruction offset value of the camera module under a target resolution; the absolute value of the difference between the reference drive command offset value and the drive command offset value in the correspondence relationship is smallest.
Step S1042, setting a target analysis value based on the analysis value corresponding to the reference driving instruction offset value; the target analytic value is greater than or equal to the analytic value corresponding to the reference driving instruction offset value.
Step S1043, judging whether an analytic value corresponding to the driving instruction offset value is larger than the target analytic value; if so, the camera module is analyzed to be qualified under the drive instruction deviation value; if not, the camera module is unqualified in analysis under the drive instruction offset value.
According to the resolution and the corresponding relation of the analytic values of the motor under different driving instruction deviation values, monitoring whether the analytic value under the driving instruction deviation value is larger than the analytic value of a reference driving instruction deviation value or not under the target resolution, wherein in a corresponding relation list, the reference driving instruction deviation value is located beside the driving instruction deviation value, and the absolute value of the difference value of the reference driving instruction deviation value and the analytic value is the minimum; acquiring a target analysis value according to the analysis value of the reference driving instruction offset value under the target resolution; whether the analysis value of the camera module under the drive instruction deviation value is greater than the target analysis value or not is monitored, so that whether the analysis value of the camera module under the drive instruction deviation value is qualified or not is judged.
In some embodiments, referring to fig. 6, after the obtaining of the driving command offset value of the motor corresponding to the driving current corresponding to the stroke offset limit based on the stroke offset limit, and before monitoring the analytic value corresponding to the driving command offset value at different resolutions based on the correspondence relationship, the method further includes the following steps:
and step 103', acquiring a monitoring driving instruction range based on the driving instruction deviation value and the driving instruction value of the motor corresponding to the camera module in the focusing state, wherein the midpoint value of the monitoring driving instruction range is the driving instruction value of the motor corresponding to the camera module in the close-focusing state or the far-focusing state.
And step S104', monitoring an analytic value corresponding to a drive instruction offset value deviating from the reference drive instruction value within the monitoring drive instruction range by taking the drive instruction value of the motor corresponding to the camera module in the focusing state as the reference drive instruction value.
In the embodiment of the present application, the monitoring driving instruction range generally uses a driving instruction value of a motor corresponding to the camera module in a focusing state as a reference, the driving instruction deviant is floated up and down to obtain a monitoring interval, and the posture of the camera module is monitored by monitoring an analytic value corresponding to the driving instruction deviant deviating from the reference driving instruction value in the interval. The focusing state is a close-focus focusing state or a far-focus focusing state of the camera module, and as mentioned above, the nonlinear area of the middle motor is positioned at two ends of the motor stroke, and the motor driving instruction value code is positioned in the linear area when the far-focus position and the close-focus position are burnt. Therefore, the driving instruction value of the motor corresponding to the camera module in the near-focus focusing state or the far-focus focusing state is taken as a reference, and the up-and-down floating driving instruction deviation value is used for obtaining the monitoring interval.
It should be noted that, after step S102 and before step S104, step S103 'and step S104' may be executed before step S103, or after step S103, or simultaneously with step S103, and the embodiment of the present application is not limited herein.
In some embodiments, the monitoring driving command range includes a first endpoint value and a second endpoint value, the first endpoint value is a difference value between a driving command value of a motor corresponding to the camera module in a focusing state and the driving command offset value; the second endpoint value is the sum of the driving instruction value of the motor corresponding to the camera module in the focusing state and the driving instruction offset value. The monitoring driving instruction range of the embodiment of the application is the driving instruction value +/-driving instruction deviant of the motor corresponding to the camera module in the focusing state, and after the driving instruction value of the motor corresponding to the camera module in the near-focus or far-focus state is obtained, the driving instruction deviant is respectively deviated upwards and downwards by the deviation amount of the driving instruction deviant on the basis of the reference driving instruction value, so that the monitoring driving instruction range is obtained.
In some embodiments, the obtaining a difference between a stroke of the camera module at different tilt angles and a stroke of the camera module in a horizontal direction includes: acquiring a first stroke value and a second stroke value; the first stroke value is a stroke value of a motor corresponding to the camera module in a horizontal state, the second stroke value comprises a stroke value of the motor corresponding to the camera module when the camera module inclines upwards relative to the horizontal state, and/or the second stroke value comprises a stroke value of the motor corresponding to the camera module when the camera module inclines downwards relative to the horizontal state; and acquiring the stroke difference value based on the first stroke value and the second stroke value, wherein the stroke difference value is the difference value between the second stroke value and the first stroke value.
In this embodiment, the stroke difference may be a difference between a stroke value of a motor corresponding to the camera module when the camera module tilts upward with respect to the horizontal state and a stroke value of a motor corresponding to the camera module in the horizontal state, or the stroke difference may be a difference between a stroke value of a motor corresponding to the camera module when the camera module tilts downward with respect to the horizontal state and a stroke value of a motor corresponding to the camera module in the horizontal state, or the stroke difference may include both a difference between a stroke value of a motor corresponding to the camera module when the camera module tilts upward with respect to the horizontal state and a stroke value of a motor corresponding to the camera module in the horizontal state, and a difference between a stroke value of a motor corresponding to the camera module when the camera module tilts downward with respect to the horizontal state and a stroke value of a motor corresponding to the camera module in the horizontal state.
In some embodiments, the travel offset limit is greater than or equal to the travel difference value. Because the measurement error is considered, the usually set travel deviation limit value is slightly larger than the travel difference value, so that the monitoring interval can cover the three-posture difference data of the camera module.
In some embodiments, the obtaining, based on the stroke offset limit, a drive command offset value for a motor corresponding to a drive current corresponding to the stroke offset limit comprises: acquiring a driving current corresponding to the motor under the travel deviation limit value based on the central slope of the motor; and acquiring a drive command offset value of the motor corresponding to the drive current based on the corresponding relation between the drive current and the motor stroke.
According to the embodiment of the application, the corresponding driving current is calculated through the stroke deviation limiting value, then the driving instruction deviation value of the motor corresponding to the driving current is calculated, the stroke difference value of the camera module in three postures under a certain inclination angle is converted into the driving instruction deviation value of the motor, the monitoring of the camera module in the three postures under the certain inclination angle is converted into the monitoring of the analysis value in the interval of the driving instruction deviation value of the near focus focusing code or the far focus focusing code +/-motor, the three-posture monitoring of the camera module is simplified, and the monitoring efficiency is improved.
The following explains the embodiments of the present application, taking the case where the camera module is tilted up and down by 30 degrees (± 30 degrees) in the horizontal direction.
The resolution TV line of the monitoring interval of the camera module is set to be greater than 250 lines, that is, the resolution value corresponding to the driving command offset value deviating from the reference driving command value in the monitoring driving command range needs to be greater than the resolution value corresponding to the 250 lines, so as to ensure that the resolution of the camera module in three postures (horizontal and ± 30 degrees) meets the requirement of the target resolution value. Here, the target resolution value is a resolution value corresponding to the reference driving command offset value of the line with the resolution of 250.
Firstly, measuring a motor stroke difference value of a motor of a camera module between an upward inclination angle of 30 degrees and a horizontal state; specifically, the motor stroke of the motor in the horizontal state and the motor stroke of the motor in the upward inclination of 30 degrees are respectively measured under different motor driving command values, and the stroke difference value is obtained by subtracting the motor stroke of the motor in the horizontal state and the motor stroke in the upward inclination of 30 degrees. Since the motor is greatly influenced by the gravity component of the lens when the motor is tilted upward and the difference between the stroke of the motor when the motor is tilted upward and the stroke of the motor in a horizontal state is large, the embodiment of the present application preferably measures the difference between the stroke of the motor when the motor is tilted upward by 30 degrees and the stroke of the motor in a horizontal state. Of course, it is understood that the difference between the motor stroke when the motor is tilted downward by 30 degrees and the motor stroke when the motor is in a horizontal state can also be measured; and the travel difference value of the motor between the state that the motor is inclined upwards by 30 degrees and the horizontal state can be measured, and the travel difference value of the motor between the state that the motor is inclined downwards by 30 degrees and the horizontal state can be measured, so that more comprehensive and complete three-posture differential data can be obtained.
According to the embodiment of the application, the stroke difference between the motor inclined upwards by 30 degrees and the motor in a horizontal state is measured, 200 groups of data are actually measured, as shown in fig. 7, the maximum value of the stroke difference of the motor is 33.65 micrometers, the minimum value of the stroke difference is 16.8 micrometers, the average value of the stroke difference is 24.28 micrometers, the proportion of the stroke difference exceeding 30 micrometers is 1.5%, and the stroke difference is mainly distributed between 20 micrometers and 30 micrometers. A stroke offset limit for the motor is then developed based on the maximum value of the stroke difference. The travel offset limit is typically formulated to be greater than the maximum travel difference value, taking into account measurement errors. Of course, it is also possible to formulate the travel offset limit to be equal to the maximum value of the travel difference.
In consideration of measurement errors, the embodiment of the application proposes that the stroke offset limit of the motor of the camera module is 35 μm. Knowing that the motor center slope is 3.1 μm/mA, the driving current corresponding to the stroke deviation limit value of 35 μm is 11.29mA, and according to the corresponding relation between the driving current and the motor stroke: 1mA =4.4Code, 49.676Code corresponding to the driving instruction offset value when the driving current is 11.29mA is obtained, for convenience, the analysis value corresponding to the driving instruction offset value is monitored according to the corresponding relation between the resolution and the analysis value of the motor under different driving instruction offset values, and carry rounding is performed on the driving instruction offset value 49.676Code, so that 50Code is obtained.
The corresponding relationship between the resolution and the analysis value of the motor under different driving command deviation values is obtained, as shown in table 1 and table 2, the measured data corresponds to the resolution TVLine and the analysis value MTF of the camera module. In table 1 and table 2, the TVLine is the terminal TVLine, and the MTF is the module MTF.
TABLE 1 correspondence between resolution TV Line of imaging module and MTF (1)
Figure 7881DEST_PATH_IMAGE001
TABLE 2 corresponding relationship between resolution TV Line of camera module and MTF (2)
Figure 318776DEST_PATH_IMAGE002
As can be seen from table 1, when the offset of the driving command is-50 code, the absolute values of the offsets-60 code and-50 code are the smallest, so that the reference offset of the driving command is-60 code, and when the imaging module is in the near-focus state, the offset is-60 code, and the MTF of the resolution TVLine 250 line corresponding to the center is 9.08, if it is to be ensured that the resolution TVLine of the imaging module is greater than 250 line under the condition that the offset of the driving command is-50 code, it is required to ensure that the MTF of the resolution TVLine corresponding to the offset of the driving command is-50 code is greater than 9.08. In general, the analysis value 9.08 is rounded by a carry in consideration of a measurement error, and therefore, the target analysis value is set to 10.
The difference of the motor driving instructions brought by the three postures of the camera module is +/-50 codes, namely the offset of the motor driving instructions brought by the three postures of the camera module is +/-50 codes, the monitoring interval is the center +/-50 codes of the motor driving instruction value (Peakcode) at the monitoring peak when the camera module is focused in the near focus or the far focus, and the monitoring of the analysis of the monitoring interval is equivalent to the analysis of the monitoring camera module in the horizontal and +/-30 degrees. As shown in table 1 and table 2, the center is a PeakCode center, and at a certain driving command offset, the terminal TVLine and the module MTF at the center of the PeakCode are the optimum value of the terminal TVLine and the optimum value of the module MTF at the driving command offset, respectively. Therefore, if the resolution TVLine in the monitoring interval is required to be greater than 250 lines, the analysis value of the monitoring interval needs to be greater than or equal to the target analysis value, that is, the MTF of the monitoring interval is greater than or equal to 10.
The final embodiment is therefore: the horizontal state of the camera module, the MTF of the analytic value in the PeakCode center +/-50 code is not lower than 10, and the TVline of the resolution ratio of the camera module under the horizontal and +/-30 degrees can be ensured to be larger than 250 lines.
It can be understood that if the target resolution TVLine is planned to be greater than 300 lines, the offset is-60 code, the resolution TVLine300 line corresponds to the central analysis value MTF of 14.03 in the correspondence list, and similarly, the analysis value of 14.03 is rounded, so that the target analysis value is set to be 15. If the resolution TVLine in the monitoring interval is required to be larger than 300 lines, the MTF of the monitoring interval is larger than or equal to 15. In this case, the final embodiment is: the horizontal state of the camera module, the MTF of the analytic value in the PeakCode center +/-50 code is not lower than 15, and the resolution TVline of the camera module under the horizontal and +/-30 degrees can be ensured to be larger than 300 lines.
It should be noted that the tilt angle range of the camera module is ± 90 degrees, the embodiment of the present application describes monitoring of the camera module when the tilt angle is ± 30 degrees, and the above-mentioned posture monitoring method of the camera module is also applicable to monitoring of the camera module at other tilt angles, such as 10 degrees, 15 degrees, 20 degrees, 45 degrees, and the like. The posture monitoring of the camera module at other inclination angles can also adopt the posture monitoring method of the camera module to convert the monitoring in multiple directions into the monitoring in a single horizontal direction, and the specific implementation mode is the same as the monitoring mode of the monitoring camera module at the horizontal +/-30 degrees, which is not repeated herein.
This application embodiment turns into the difference of the drive command value of motor through the difference of the motor stroke value of the module of making a video recording under different inclination, obtains the stroke deviation limit value of motor through the stroke difference value of motor, then obtains the drive command deviant of motor, monitors through the analytic value that corresponds drive command deviant to whether the analysis of the module of making a video recording under different gestures reaches standard in the control. According to the embodiment of the application, the stroke difference values of the motors of the camera module corresponding to different inclination angles are firstly obtained, then the stroke offset limit value is obtained, the driving instruction offset value of the motor under the driving current corresponding to the offset limit value is obtained through calculation, and the monitoring of the three postures of the camera module is realized through monitoring the analytic value corresponding to the driving instruction offset value. This application is the control of single horizontal direction with three gesture monitoring conversion of module of making a video recording by the direct test of three direction, turns into the drive command deviant of motor through the motor stroke difference value that the module of making a video recording corresponds under different inclination, can realize the three gesture monitoring of the module of making a video recording through the analytic value that the control drive command deviant corresponds, saves test cost, human cost, time cost.
As shown in fig. 8, an embodiment of the present application further provides an attitude monitoring apparatus for a camera module, where the attitude monitoring apparatus includes a stroke obtaining module 201, a calculating module 202, and a monitoring module 203; the stroke acquisition module 201 is configured to acquire strokes of motors corresponding to the camera module in different inclination angles and horizontal states, where the stroke is a stroke of the camera module in a focusing state; the calculation module 202 is configured to obtain a stroke offset limit value of the motor according to at least two strokes obtained by the stroke obtaining module 201, and obtain a drive instruction offset value of the motor based on a linear relationship between the stroke and the drive current and a linear relationship between the drive current and a drive instruction of the motor; the monitoring module 203 is configured to monitor whether the analysis value corresponding to the driving instruction offset value acquired by the calculating module 202 is qualified or not at different resolutions according to the correspondence between the different driving instruction offset values and the resolutions and analysis values of the motor.
As shown in fig. 9, an embodiment of the present application further provides an electronic device, including: at least one processor 301; and a memory 302 communicatively coupled to the at least one processor 301; the memory 302 stores instructions executable by the at least one processor 301, and the instructions are executed by the at least one processor 301, so that the at least one processor 301 can execute the posture monitoring method of the camera module.
Where the memory 302 and the processor 301 are coupled in a bus, the bus may comprise any number of interconnected buses and bridges, the buses coupling one or more of the various circuits of the processor 301 and the memory 302. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 301 is transmitted over a wireless medium through an antenna, which further receives the data and transmits the data to the processor 301. The processor 301 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 302 may be used to store data used by processor 301 in performing operations.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by the processor 301, the method for monitoring the posture of the camera module is implemented.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the present application, and that various changes in form and details may be made therein without departing from the spirit and scope of the present application in practice.

Claims (10)

1. The attitude monitoring method of the camera module is characterized by comprising the following steps of:
acquiring a stroke difference value between the motor stroke of the camera module under different inclination angles and the motor stroke of the camera module in the horizontal direction, and acquiring a stroke offset limit value of the motor based on the stroke difference value;
acquiring a drive command offset value of the motor corresponding to a drive current corresponding to the stroke offset limit value based on the stroke offset limit value;
acquiring the corresponding relation between the resolution and the analytic value of the motor under different driving command deviation values;
and monitoring an analytic value corresponding to the driving instruction offset value under different resolutions based on the corresponding relation.
2. The method for monitoring the attitude of the camera module according to claim 1, wherein the monitoring the analytical value corresponding to the driving command offset value at different resolutions based on the correspondence includes:
based on the corresponding relation, acquiring an analytic value corresponding to a reference driving instruction offset value of the camera module under the target resolution; the absolute value of the difference between the reference drive command offset value and the drive command offset value in the correspondence relationship is smallest;
setting a target analytic value based on the analytic value corresponding to the reference driving instruction offset value; the target analytic value is greater than or equal to the analytic value corresponding to the reference driving instruction offset value;
judging whether an analytic value corresponding to the driving instruction deviation value is larger than the target analytic value or not; if so, the camera module is analyzed to be qualified under the drive instruction deviation value; if not, the camera module is unqualified in analysis under the drive instruction offset value.
3. The method of monitoring the attitude of an image pickup module according to claim 1, further comprising, after the obtaining of the drive command offset value of the motor corresponding to the drive current corresponding to the stroke offset limit value based on the stroke offset limit value and before monitoring the analysis value corresponding to the drive command offset value at different resolutions based on the correspondence relationship:
acquiring a monitoring driving instruction range based on the driving instruction deviation value and a driving instruction value of a motor corresponding to the camera module in a focusing state, wherein a midpoint value of the monitoring driving instruction range is the driving instruction value of the motor corresponding to the camera module in a near-focusing state or a far-focusing state;
and monitoring an analytic value corresponding to a drive instruction deviation value deviating from the reference drive instruction value within the monitoring drive instruction range by taking a drive instruction value of a motor corresponding to the camera module in a focusing state as the reference drive instruction value.
4. The method for monitoring the attitude of the camera module according to claim 3, wherein the monitoring drive command range includes a first endpoint value and a second endpoint value, the first endpoint value being a difference between a drive command value of a motor corresponding to the camera module in a focused state and the drive command offset value; the second endpoint value is the sum of the driving instruction value of the motor corresponding to the camera module in the focusing state and the driving instruction offset value.
5. The method for monitoring the attitude of a camera module according to any one of claims 1 to 4, wherein the obtaining of the stroke difference between the stroke of the camera module at different tilt angles and the stroke of the camera module in the horizontal direction comprises:
acquiring a first stroke value and a second stroke value; the first stroke value is a stroke value of a motor corresponding to the camera module in a horizontal state, the second stroke value includes a stroke value of the corresponding motor when the camera module tilts upwards relative to the horizontal state, and/or the second stroke value includes a stroke value of the corresponding motor when the camera module tilts downwards relative to the horizontal state;
and acquiring the stroke difference value based on the first stroke value and the second stroke value, wherein the stroke difference value is the difference value between the second stroke value and the first stroke value.
6. The method for monitoring the attitude of a camera module according to any one of claims 1 to 4, wherein the stroke offset limit is greater than or equal to the stroke difference.
7. The method for monitoring the attitude of an image pickup module according to any one of claims 1 to 4, wherein the acquiring a drive command offset value of the motor corresponding to the drive current corresponding to the stroke offset limit value based on the stroke offset limit value includes:
acquiring a driving current corresponding to the motor under the travel deviation limit value based on the central slope of the motor;
and acquiring a drive command offset value of the motor corresponding to the drive current based on the corresponding relation between the drive current and the motor stroke.
8. The attitude monitoring device of the camera module is characterized by comprising a stroke acquisition module, a calculation module and a monitoring module;
the stroke acquisition module is used for acquiring corresponding strokes of the motor of the camera module in different inclination angles and horizontal states, and the stroke is the stroke of the motor of the camera module in a focusing state;
the calculation module is used for acquiring a stroke offset limit value of the motor according to at least two strokes acquired by the stroke acquisition module, and acquiring a drive instruction offset value of the motor based on a linear relation between the stroke and the drive current and a linear relation between the drive current and a drive instruction of the motor;
the monitoring module is used for monitoring whether the analytic values corresponding to the driving instruction deviant are qualified or not under different resolutions according to the corresponding relation between the driving instruction deviant and the resolutions and the analytic values of the motor.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of pose monitoring of a camera module according to any of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for monitoring the attitude of a camera module according to any one of claims 1 to 7.
CN202210438298.9A 2022-04-25 2022-04-25 Posture monitoring method, device and equipment of camera module and storage medium Active CN114554192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210438298.9A CN114554192B (en) 2022-04-25 2022-04-25 Posture monitoring method, device and equipment of camera module and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210438298.9A CN114554192B (en) 2022-04-25 2022-04-25 Posture monitoring method, device and equipment of camera module and storage medium

Publications (2)

Publication Number Publication Date
CN114554192A true CN114554192A (en) 2022-05-27
CN114554192B CN114554192B (en) 2022-09-23

Family

ID=81667050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210438298.9A Active CN114554192B (en) 2022-04-25 2022-04-25 Posture monitoring method, device and equipment of camera module and storage medium

Country Status (1)

Country Link
CN (1) CN114554192B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103149789A (en) * 2013-02-28 2013-06-12 宁波舜宇光电信息有限公司 Image modulation transfer function (MTF) evaluation-based module motor curve testing method
CN103837828A (en) * 2014-03-27 2014-06-04 广东欧珀移动通信有限公司 Travel curve test method and system of camera-shooting mode motor and mobile terminal
US20150049199A1 (en) * 2013-08-19 2015-02-19 Snap-On Incorporated Motor control system for a self-calibrating multi-camera alignment system
JP2015532446A (en) * 2012-09-26 2015-11-09 愛佩儀光電技術(深▲せん▼)有限公司 Method and system for automatically adjusting optical seismic camera module
CN105787947A (en) * 2016-03-22 2016-07-20 歌尔声学股份有限公司 Voice coil motor stroke calibration method and device and test fixture
CN106303502A (en) * 2015-05-14 2017-01-04 宁波舜宇光电信息有限公司 Find the method for seated position in motor
CN108924549A (en) * 2018-08-31 2018-11-30 贵州维讯光电科技有限公司 Motor of camera device for testing
CN110300252A (en) * 2018-03-22 2019-10-01 爱佩仪(东莞)光电科技有限公司 Camera lens Slant Rectify method and device
CN110855979A (en) * 2019-11-18 2020-02-28 上海龙旗科技股份有限公司 Camera module detection method and device
CN111491107A (en) * 2020-06-24 2020-08-04 支付宝(杭州)信息技术有限公司 Voice coil motor stroke calibration method, device and equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015532446A (en) * 2012-09-26 2015-11-09 愛佩儀光電技術(深▲せん▼)有限公司 Method and system for automatically adjusting optical seismic camera module
CN103149789A (en) * 2013-02-28 2013-06-12 宁波舜宇光电信息有限公司 Image modulation transfer function (MTF) evaluation-based module motor curve testing method
US20150049199A1 (en) * 2013-08-19 2015-02-19 Snap-On Incorporated Motor control system for a self-calibrating multi-camera alignment system
CN103837828A (en) * 2014-03-27 2014-06-04 广东欧珀移动通信有限公司 Travel curve test method and system of camera-shooting mode motor and mobile terminal
CN106303502A (en) * 2015-05-14 2017-01-04 宁波舜宇光电信息有限公司 Find the method for seated position in motor
CN105787947A (en) * 2016-03-22 2016-07-20 歌尔声学股份有限公司 Voice coil motor stroke calibration method and device and test fixture
CN110300252A (en) * 2018-03-22 2019-10-01 爱佩仪(东莞)光电科技有限公司 Camera lens Slant Rectify method and device
CN108924549A (en) * 2018-08-31 2018-11-30 贵州维讯光电科技有限公司 Motor of camera device for testing
CN110855979A (en) * 2019-11-18 2020-02-28 上海龙旗科技股份有限公司 Camera module detection method and device
CN111491107A (en) * 2020-06-24 2020-08-04 支付宝(杭州)信息技术有限公司 Voice coil motor stroke calibration method, device and equipment

Also Published As

Publication number Publication date
CN114554192B (en) 2022-09-23

Similar Documents

Publication Publication Date Title
US10674070B2 (en) Adjusting method of camera module, lens position control device, control device of linear movement device, and controlling method of the same
US10101636B2 (en) Auto-focus camera module with MEMS capacitance estimator
CN109218718B (en) Automatic focusing debugging method, device, equipment and storage medium
CN103988490A (en) Image processing device, image processing method, and recording medium
US7623776B2 (en) Optical apparatus, lens unit, and image capturing apparatus
CN101344702B (en) Automatic focusing system and automatic focusing method
US7639303B2 (en) Method and apparatus for lens auto-focusing in camera module test
CN101493646B (en) Optical lens detection device and method
CN110022433B (en) Image pickup apparatus, lens apparatus, and control method thereof
CN103581546A (en) Image capture apparatus and control method thereof, and lens unit
CN102572238B (en) Image pickup apparatus and control method therefor
CN103345059A (en) Method and system for zoom of reflection type deformable mirror
US10516819B2 (en) Electronic device with multiple lenses and lens switching method
US9491363B2 (en) Automatic tuning method and system for optical image stabilization camera modules
CN105376474A (en) Image acquisition device and automatic focusing method thereof
US20170310878A1 (en) Image capturing apparatus and control method thereof
US20130022342A1 (en) Imaging device and control method thereof
CN103424978A (en) System and method for testing camera module
CN114554192B (en) Posture monitoring method, device and equipment of camera module and storage medium
US11037277B2 (en) Image processing apparatus, imaging apparatus, lens apparatus, and image processing method
Simon et al. Liquid lens enabling real-time focus and tilt compensation for optical image stabilization in camera modules
US20180278830A1 (en) Image capturing apparatus and control method thereof, and storage medium
WO2006106737A1 (en) Imaging device and imaging method
JPWO2012005141A1 (en) Imaging device adjustment method and imaging device
CN117294938A (en) Camera focusing method and device, electronic equipment and computer 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
GR01 Patent grant
GR01 Patent grant