CN114157801B - Switching control method and device of camera module and storage medium - Google Patents
Switching control method and device of camera module and storage medium Download PDFInfo
- Publication number
- CN114157801B CN114157801B CN202010934848.7A CN202010934848A CN114157801B CN 114157801 B CN114157801 B CN 114157801B CN 202010934848 A CN202010934848 A CN 202010934848A CN 114157801 B CN114157801 B CN 114157801B
- Authority
- CN
- China
- Prior art keywords
- physical distance
- motor driving
- current
- driving current
- camera module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000013507 mapping Methods 0.000 claims abstract description 99
- 230000006870 function Effects 0.000 claims description 25
- 230000008569 process Effects 0.000 abstract description 11
- 238000012545 processing Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 10
- 238000003384 imaging method Methods 0.000 description 10
- 238000001514 detection method Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
- H04N23/663—Remote control of cameras or camera parts, e.g. by remote control devices for controlling interchangeable camera parts based on electronic image sensor signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
- H04N23/671—Focus control based on electronic image sensor signals in combination with active ranging signals, e.g. using light or sound signals emitted toward objects
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The disclosure relates to a switching control method and device of a camera module and a storage medium. The switching control method of the camera module comprises the following steps: determining a current motor driving current logic value for switching based on a focusing logic value of the camera module; based on the mapping relation between the motor driving current logic value and the actual physical distance, compensating the current physical distance corresponding to the current motor driving current logic value to obtain a first compensated physical distance; based on the first compensation physical distance, the camera module is controlled to switch. According to the embodiment of the disclosure, in the switching process of the camera module, the physical distance burnt by the OTP is compensated based on the mapping relation between the driving current logic value of the driving motor of the camera module and the actual physical distance, and the camera is controlled to switch by using the more accurate physical distance, so that the smooth switching of the lens modules of the multi-shot lens is ensured.
Description
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a switching control method and device of a camera module and a storage medium.
Background
With the development of scientific technology, the terminal and the image processing technology are paid attention to, the shooting function of the terminal is more and more powerful, and the configuration of the terminal is higher and higher. In the process of shooting by using the terminal, in order to obtain a higher quality photo, the terminal is configured with a plurality of lens modules, such as a short-focus lens, a long-focus lens, a medium-focus lens and the like, so as to shoot scenes at different distances.
Focusing is performed by using the terminal camera, namely zooming is performed according to the current shooting scene, namely switching is performed by switching different lens modules, so that the highest-definition photo is obtained. For terminals with different focal lengths and view fields, blurring and shaking of images can occur in the switching of the camera module, so that user experience is greatly reduced.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a storage medium for controlling switching of camera modules.
According to an aspect of the embodiments of the present disclosure, there is provided a method for controlling switching of a camera module, including: determining a current motor driving current logic value for driving the camera module to switch based on a focusing logic value of the camera module; based on a mapping relation between a motor driving current logic value and an actual physical distance, compensating a current physical distance corresponding to the current motor driving current logic value to obtain a first compensated physical distance; and controlling the camera module to switch based on the first compensation physical distance.
In an embodiment, compensating the current physical distance corresponding to the current motor driving current logical value based on a mapping relation between the motor driving current logical value and the actual physical distance to obtain a first compensated physical distance includes: determining two motor driving current logic values having the smallest difference value from the current motor driving current logic value among a plurality of motor driving current logic values included in the map; and compensating the current physical distance corresponding to the current motor driving current logical value based on the actual physical distance corresponding to each of the two motor driving current logical values, so as to obtain a first compensated physical distance.
In an embodiment, compensating the current physical distance corresponding to the current motor driving current logic value based on the actual physical distances corresponding to the two motor driving current logic values, to obtain a first compensated physical distance includes: determining a linear difference function based on the respective actual physical distances of the two motor drive current logic values; and determining a first compensation physical distance for compensating the current physical distance corresponding to the current motor driving current logical value based on the linear difference function.
In one embodiment, the preset mapping relationship between the motor driving current logic value and the actual physical distance is determined by the following manner: determining a plurality of actual physical distances obtained by the camera module for performing laser radar ranging on a planar object, respectively focusing on each of the actual physical distances to obtain a focusing logic value, and determining a plurality of motor driving current logic values of the camera module based on a corresponding relation between the focusing logic value and the motor driving current logic values; and establishing a mapping relation between the motor driving current logic values and the actual physical distances, and storing the mapping relation between the motor driving current logic values and the actual physical distances.
In an embodiment, based on the first compensated physical distance, controlling the camera module to switch includes: acquiring a current temperature value of the camera module; based on a mapping relation between a temperature value and an actual physical distance, compensating the first compensation physical distance corresponding to the current temperature value to obtain a second compensation physical distance; and controlling the camera module to switch based on the second compensation physical distance.
In an embodiment, compensating the first compensated physical distance corresponding to the current temperature value based on a mapping relationship between the temperature value and an actual physical distance includes: determining two temperature values with the smallest difference value with the current temperature value from a plurality of temperature values included in the mapping relation; and compensating the first compensation physical distance corresponding to the current temperature value based on the actual physical distance corresponding to each of the two temperature values.
In an embodiment, the method further comprises: in a map storage space created in advance, a map between a focus logic value, a plurality of motor drive current logic values, a temperature, and a plurality of actual physical distances is stored.
According to a second aspect of the embodiments of the present disclosure, a switching control device for a camera module is provided, including a determining module, configured to determine, based on a focusing logic value of the camera module, a current motor driving current logic value for driving the camera module to switch; the compensation module is used for compensating the current physical distance corresponding to the current motor driving current logical value based on the mapping relation between the motor driving current logical value and the actual physical distance; and the control module is used for controlling the camera module to switch based on the compensated current physical distance.
In an embodiment, the compensation module compensates the current physical distance corresponding to the current motor driving current logic value based on a mapping relationship between the motor driving current logic value and the actual physical distance to obtain the first compensated physical distance by: determining two motor driving current logic values having the smallest difference value from the current motor driving current logic value among a plurality of motor driving current logic values included in the map; and compensating the current physical distance corresponding to the current motor driving current logical value based on the actual physical distance corresponding to each of the two motor driving current logical values, so as to obtain a first compensated physical distance.
In an embodiment, the compensation module compensates the current physical distance corresponding to the current motor driving current logic value based on the actual physical distances corresponding to the two motor driving current logic values, so as to obtain a first compensated physical distance: determining a linear difference function based on the respective corresponding actual physical distances of the two motor driving current logic values; and determining a first compensation physical distance for compensating the current physical distance corresponding to the current motor driving current logical value based on the linear difference function.
In one embodiment, the determining module determines the preset mapping between the motor drive current logic value and the actual physical distance by: determining a plurality of actual physical distances obtained by the camera module for performing laser radar ranging on a planar object, respectively determining focusing for each of the actual physical distances to obtain a focusing logic value, and determining a plurality of motor driving current logic values of the camera module based on a corresponding relation between the focusing logic value and the motor driving current logic value; and establishing a mapping relation between the motor driving current logic values and the actual physical distances, and storing the mapping relation between the motor driving current logic values and the actual physical distances.
In an embodiment, the control module controls the camera module to switch based on the first compensated physical distance in the following manner: acquiring a current temperature value of the camera module; based on a mapping relation between a temperature value and an actual physical distance, compensating the first compensation physical distance corresponding to the current temperature value to obtain a second compensation physical distance; and controlling the camera module to switch based on the second compensation physical distance.
In an embodiment, the control module compensates the first compensated physical distance corresponding to the current temperature value based on a mapping relationship between the temperature value and an actual physical distance by: determining two temperature values with the smallest difference value with the current temperature value from a plurality of temperature values included in the mapping relation; and compensating the first compensation physical distance corresponding to the current temperature value based on the actual physical distance corresponding to each of the two temperature values.
In an embodiment, the determining module is further configured to: in the pre-created map storage space, a map between the focus logic value, the motor drive current logic value, the temperature, and the actual physical distance is saved.
According to yet another aspect of an embodiment of the present disclosure, there is provided an apparatus comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: a method as claimed in any preceding claim.
According to yet another aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, which when executed by a processor of a mobile terminal, enables the mobile terminal to perform the method of any one of the preceding claims.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: based on the mapping relation between the motor driving current logic value and the actual physical distance, the current physical distance corresponding to the current motor driving current logic value is compensated to obtain a first compensated physical distance, and the defect of inaccurate physical distance caused by OTP burning can be improved to obtain a more accurate physical distance. Based on the first compensation physical distance, the camera module is controlled to switch, so that the camera is controlled to switch by using the more accurate physical distance, and smooth switching of the lens modules of the multiple cameras is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method of switching control of a camera module according to an exemplary embodiment of the present disclosure.
Fig. 2 is a schematic diagram illustrating determining a current physical distance using originally burned OTP data according to an exemplary embodiment of the disclosure.
Fig. 3 is a flowchart illustrating a method of compensating for a current physical distance according to an exemplary embodiment of the present disclosure.
Fig. 4 is a flow chart illustrating a method of deriving a first compensated physical distance according to an exemplary embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating a method of determining a preset mapping relationship between a motor drive current logic value and an actual physical distance according to an exemplary embodiment of the present disclosure.
FIG. 6 is a schematic diagram of compensating for a present physical distance corresponding to a present motor drive current logic value, according to an exemplary illustration of the present disclosure.
Fig. 7 is a schematic diagram of compensating for a present physical distance corresponding to a present motor drive current logic value according to yet another exemplary illustration of the present disclosure.
Fig. 8 is a flowchart illustrating a method of controlling a camera module to switch based on a first compensated physical distance according to an exemplary embodiment of the present disclosure.
Fig. 9 is a flowchart illustrating a method of compensating for a first compensated physical distance corresponding to a current temperature value according to an exemplary embodiment of the present disclosure.
Fig. 10 is a block diagram illustrating a switching control device of a camera module according to an exemplary embodiment of the present disclosure.
Fig. 11 is a block diagram of an apparatus according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Along with the continuous development of the technology, the terminal technology is paid attention to, and the camera arranged in the terminal is convenient to use and good in operability, so that a user can shoot at any time and any place in work and life. The function of the camera becomes one of the important performance parameters of the terminal, and is concerned by the user, and becomes an important consideration for the user to select the electronic device. The terminal has more and more shooting functions, and in order to enable the definition and pixel quality of the shot pictures or videos to meet the use requirements of users, the configuration of the terminal is higher and higher.
In the process of shooting by using the terminal, in order to obtain a higher quality photograph, the terminal is configured with a plurality of lens modules, such as a short-focus lens, a long-focus lens, a medium-focus lens, and the like, for shooting scenes at different distances. Because of individual differences between the camera modules, the imaging effects are different, and it is difficult for all camera modules to achieve a consistent imaging effect only by means of a set of fixed imaging parameters.
In order to improve the consistency of the imaging effect of the camera module, the original imaging parameters and the calibration imaging parameters of the camera module are generally burned into a one-time programmable (One Time Programmable, OTP) memory before the camera module leaves the factory. For example, a focus logic value, a motor drive current logic value, and the like required for driving the physical distance are correspondingly calculated according to the physical distance of the subject, and the converted focus logic value and motor drive current logic value are burned in OTO. When the camera module of the terminal is used for shooting, original imaging parameters which are burnt in the OTP in advance are read and the imaging parameters are calibrated so as to achieve consistency of imaging effects between the camera modules.
However, due to the influence of cost, process and temperature, the OTP data actually recorded by the camera module has different deviation from the ideal value, and thus the OTP data cannot be completely consistent. In focus debugging, the influence caused by the deviation of the recorded data causes unsmooth switching between the camera modules.
Therefore, the present disclosure provides a method for controlling switching of camera modules, which compensates for OTP burnt data, performs switching of camera modules by using compensated data, realizes switching by using more accurate physical distance control cameras, ensures smooth switching of lens modules of multiple cameras, prevents excessive stretching of lenses, and further improves user experience.
Fig. 1 is a flowchart of a method for controlling switching of a camera module according to an exemplary embodiment of the present disclosure, where the method for controlling switching of a camera module is used in a terminal as shown in fig. 1. The terminal can be, for example, a smart phone, a tablet computer, a wearable device, a PC or the like, and is provided with a plurality of camera modules. The embodiment of the present disclosure is not limited to the kind of the applied device. Referring to fig. 1, the method for controlling the switching of the camera module includes the following steps.
In step S101, a current motor driving current logic value for driving the camera module to switch is determined based on the focusing logic value of the camera module.
In step S102, the current physical distance corresponding to the current motor driving current logical value is compensated based on the mapping relationship between the motor driving current logical value and the actual physical distance, so as to obtain a first compensated physical distance.
In step S103, the camera module is controlled to switch based on the first compensated physical distance.
In the embodiment of the disclosure, when the camera module is focused, focusing is performed to obtain a focusing logic value. The focusing logic value of the camera module has a one-to-one correspondence with the driving current logic value of the motor driving the camera module. Therefore, based on the focusing logic value of the camera module, the current driving current logic value of the motor for driving the camera module to switch can be determined, so that the motor of the camera module can control the camera module to move according to the driving current logic value, and the focusing function can be realized.
The mapping relation between the motor driving current logic value and the actual physical distance exists, which can be burnt in the OTP, and the current physical distance corresponding to the current motor driving current logic value is compensated according to the mapping relation between the motor driving current logic value and the actual physical distance, so that the compensated first more accurate compensated physical distance is obtained.
The camera module is controlled to switch based on the more accurate first compensation physical distance after compensation, the camera module is controlled to switch, whether the camera module is switched or not is determined based on the first compensation physical distance after compensation, and when the camera module is determined to be switched, the first compensation physical distance is fed back to the switched camera module to serve as an initial focusing position, so that more accurate and effective focusing is achieved.
Fig. 2 shows a schematic diagram of determining the current physical distance using the originally burned OTP data. As shown in fig. 2, the raw OTP data may be a mapping between motor drive current logic values and physical distances.
In the focusing process, the corresponding motor driving current logic value is searched by utilizing the focusing logic value determined by focusing, and the physical distance corresponding to the motor driving current logic value is read from the original OTP data.
For example, the actual physical distance in an ideal state of switching between the camera module 1 and the camera module 2 is 1m, and the actual physical focusing distance is 1.1m. In the focusing process, the OTP is not accurately burnt, so that the camera module 1 can determine the value of the switching distance for driving the camera module to switch to the camera module 2 based on the original OTP data according to the focusing logic value of the camera module obtained by normal focusing and focusing, and the switching fails.
According to the embodiment of the disclosure, the current motor driving current logic value for driving the camera module to switch is determined based on the focusing logic value of the camera module, the current physical distance corresponding to the current motor driving current logic value is compensated based on the mapping relation between the motor driving current logic value and the actual physical distance, the camera module is controlled to switch based on the compensated first compensated physical distance, smooth switching of focusing pictures in the shooting focusing process of the multi-camera terminal is ensured, excessive stretching of the lens is prevented, and therefore user experience is improved.
Fig. 3 is a flowchart illustrating a method of compensating for a current physical distance according to an exemplary embodiment of the present disclosure, and the method of compensating for a current physical distance includes the following steps as shown in fig. 3.
In step S201, two motor drive current logic values having the smallest difference from the present motor drive current logic value are determined among the plurality of motor drive current logic values included in the map.
In step S202, the current physical distance corresponding to the current motor driving current logic value is compensated based on the actual physical distances corresponding to the two motor driving current logic values, so as to obtain a first compensated physical distance.
In the embodiment of the disclosure, a mapping relationship exists between a motor driving current logic value and an actual physical distance, and when compensating for a current physical distance corresponding to a current motor driving current logic value, two motor driving current logic values with the smallest difference value with the current motor driving current logic value are determined from a plurality of motor driving current logic values included in the mapping relationship, so that the current motor driving current logic value is located between the two motor driving current logic values.
In the embodiment of the disclosure, the current physical distance corresponding to the current motor driving current logical value is compensated by respectively referring to the actual physical distances corresponding to the two motor driving current logical values.
For example, the map between the motor drive current logic value and the actual physical distance is such that the motor drive current logic value 100mA corresponds to the actual physical distance 1m, the motor drive current logic value 150mA corresponds to the actual physical distance 1.5m, the motor drive current logic value 200mA corresponds to the actual physical distance 2m, and the motor drive current logic value 250mA corresponds to the actual physical distance 2.5m. And determining that the current motor driving current logic value is 120mA based on the focusing logic value of the camera module, and determining two motor driving current logic values with the smallest difference value between the current motor driving current logic value and the current motor driving current logic value of 120mA, namely 100mA and 150mA, from the motor driving current logic values included in the mapping relation.
Further, the present physical distance corresponding to the present motor drive current logic value 120mA is compensated based on the actual physical distances corresponding to 100mA and 150mA, respectively, i.e., 1m and 1.5 m.
According to the embodiment of the disclosure, when compensating the current physical distance corresponding to the current motor driving current logical value based on the mapping relation between the motor driving current logical value and the actual physical distance, determining two motor driving current logical values with the smallest difference value between the current motor driving current logical values in a plurality of motor driving current logical values included in the mapping relation, compensating the current physical distance corresponding to the current motor driving current logical value based on the actual physical distance corresponding to each of the two motor driving current logical values, and obtaining the accurate current physical distance through compensation, thereby providing an accurate data base for the switching of camera modules.
Fig. 4 is a flowchart illustrating a method of obtaining a first compensated physical distance according to an exemplary embodiment of the present disclosure, and the method of obtaining a first compensated physical distance includes the following steps as shown in fig. 4.
In step S301, a linear difference function is determined based on the actual physical distance to which the two motor drive current logic values each correspond.
In step S302, a first compensated physical distance for compensating for the present physical distance corresponding to the present motor drive current logical value is determined based on the linear difference function.
In the embodiment of the disclosure, a mapping relationship exists between a motor driving current logic value and an actual physical distance, and the current physical distance corresponding to the current motor driving current logic value is compensated based on the actual physical distance corresponding to each of two motor driving current logic values with the smallest difference value between the current motor driving current logic values.
The linear difference function is determined based on the respective actual physical distances of the two motor drive current logic values, and in the above example, the current motor drive current logic value is 120mA, and the two motor drive current logic values with the smallest difference from the current motor drive current logic value of 120mA, namely 100mA and 150mA, are determined, and the respective actual physical distances of 100mA and 150mA are 1m and 1.5m. In determining the linear difference function, the following formula is used:
in the above formula, y0=1, y1=1.5, x0=100, x1=150, and when x is 120, the corresponding y value is 1.2m. In the embodiment of the disclosure, that is, the motor driving current logic value is 120mA, the actual physical distance is 1.2m.
It can be understood that, when the current physical distance corresponding to the current motor driving current logic value is compensated by using the actual physical distances corresponding to the two motor driving current logic values, a nonlinear interpolation method may also be used, and the interpolation method is not limited in the embodiments of the present disclosure.
Fig. 5 is a flowchart illustrating a method of determining a preset mapping relationship between a motor driving current logic value and an actual physical distance according to an exemplary embodiment of the present disclosure, and the method of determining a preset mapping relationship between a motor driving current logic value and an actual physical distance as shown in fig. 5 includes the following steps.
In step S401, a plurality of actual physical distances obtained by performing laser radar ranging on a planar object by the camera module are determined.
In step S402, focusing is performed for each of the plurality of actual physical distances to obtain a focusing logic value, and a plurality of motor driving current logic values of the camera module are determined based on a correspondence between the focusing logic value and the motor driving current logic value.
In step S403, a mapping relationship between the plurality of motor driving current logic values and the plurality of actual physical distances is established, and the mapping relationship between the plurality of motor driving current logic values and the plurality of actual physical distances is saved.
In the embodiment of the disclosure, laser radar ranging is performed on a planar object, that is, under the condition that the overlap ratio of the laser radar field angle and the focusing area field angle is higher, the actual physical distance obtained by performing laser radar ranging on the planar object by the camera module is closer to the physical distance value in the actual ideal state. The camera module carries out plane detection for multiple times to obtain multiple actual physical distances, so that the adopted physical distance precision is higher when the mapping relation between the motor driving current logic value and the actual physical distances is determined.
And carrying out multiple plane detection by using the camera module to obtain multiple actual physical distances obtained by laser radar ranging. And focusing to obtain a focusing logic value according to each of the plurality of actual physical distances, and determining a plurality of motor driving current logic values of the camera module based on a one-to-one correspondence between the focusing logic value and the motor driving current logic value.
Further, the motor driving current logic values and the actual physical distances are recorded correspondingly, namely, mapping relations between a plurality of motor driving current logic values and a plurality of actual physical distances are established, and the mapping relations between a plurality of motor driving current logic values and a plurality of actual physical distances are stored.
According to the embodiment of the disclosure, the mapping relation between the motor driving current logic value and the actual physical distance is predetermined, so that when focusing is performed subsequently, the stored mapping relation between the motor driving current logic value and the actual physical distance is utilized to obtain the accurate compensated current physical distance.
In the embodiment of the disclosure, laser radar ranging is performed on a planar object, an actual physical distance is obtained by using laser radar ranging, a camera module is focused, a focusing logic value is obtained by focusing, and a corresponding relation between the actual physical distance, the focusing logic value and a motor driving current logic value for driving the camera module is created. When the camera modules are switched subsequently, the motor driving current logic value can be determined according to the focusing logic value based on the mapping relation among the pre-established actual physical distance, the focusing logic value and the motor driving current logic value, and the actual physical distance can be determined according to the motor driving current logic value. Compared with the traditional implementation process of performing OTP (one time programmable) burning based on physical distance to obtain a motor driving current logic value to perform camera module switching, the control process of camera module switching provided by the embodiment of the disclosure can be understood as a mode of performing back feeding correction and compensation on a camera module. The current motor driving current logic value related to the process of switching the camera module for driving the camera module for switching is a more accurate current logic value after compensation, and the motor of the camera module controls the camera module to move according to the driving current logic value, namely, focusing is performed according to the compensated motor driving current logic value, so that focusing is more accurate.
FIG. 6 is a schematic diagram illustrating compensation of a current physical distance corresponding to a current motor drive current logic value according to an exemplary embodiment of the present disclosure. As shown in fig. 6, the actual physical distance in the ideal state of switching between the camera module 1 and the camera module 2 is 1m, and the actual physical focusing distance is 1.1m.
In the embodiment of the disclosure, during focusing of the camera module, data compensation of the current physical distance is performed by using a laser radar ranging system based on flat scene detection. Under the condition of multiple plane detection, the focusing logic value 1 of the camera module at different positions, the focusing logic value 2 of the camera module and the focusing logic value M of the … camera module can be obtained. The motor driving current logic value corresponding to the focusing logic value is respectively motor driving current logic value 1, motor driving current logic value 2 and … motor driving current logic value M. The actual physical distance obtained by laser radar ranging is the actual physical distance 1 and the actual physical distance 2 ….
The method comprises the steps of determining and storing a preset mapping relation between a motor driving current logic value and an actual physical distance based on the plane detection mode, determining a focusing logic value A of a camera module when the actual physical distance is determined by the method of the embodiment of the disclosure, and determining a current motor driving current logic value A based on a one-to-one correspondence relation between the focusing logic value A of the camera module and the current motor driving current logic value A. And determining two motor driving current logic values with the smallest difference value with the current motor driving current logic value A, namely a motor driving current logic value 1 and a motor driving current logic value 2, and obtaining an accurate actual physical distance A 'corresponding to the current motor driving current logic value A after compensation by utilizing an interpolation method, so that the effective switching from the camera module 1 to the camera module 2 is realized by utilizing the actual physical distance A'.
The related technology is summarized, different temperature values influence the hardware performance of the module, the motor driving current logic value is influenced by the temperature to generate deviation, and the same motor driving current logic value corresponds to different actual physical distances at different temperatures, so that the influence of OTP errors is amplified. When the focusing logic value, the motor driving current logic value and the actual physical distance are determined, temperature data are recorded, and a mapping relation between the motor driving current logic value representing temperature influence and the actual physical distance is obtained.
Fig. 7 is a schematic diagram illustrating compensation of a current physical distance corresponding to a current motor drive current logic value according to an exemplary embodiment of the present disclosure. As shown in fig. 7, the actual physical distance in the ideal state of switching between the camera module 1 and the camera module 2 is 1m, the actual physical focusing distance is 1.1m, and the camera module 1 determines, according to the focusing logic value of the camera module obtained by normal focusing and focusing, a value for driving the camera module to switch the distance value to be less than 1m based on the original OTP data.
In the embodiment of the disclosure, during focusing of the camera module, based on the obtained temperature value, data compensation of the current physical distance is performed by using the laser radar ranging and based on flat scene detection. Under the condition of multiple plane detection, the focusing logic value 1 of the camera module at different positions, the focusing logic value 2 of the camera module and the focusing logic value M of the … camera module can be obtained. The motor driving current logic value corresponding to the focusing logic value is respectively motor driving current logic value 1, motor driving current logic value 2 and … motor driving current logic value M. The actual physical distances obtained by laser radar ranging, namely the actual physical distance 1 and the actual physical distance 2 … are the actual physical distance M, and the corresponding temperatures are the temperature value 1, the temperature value 2 and the temperature value M of … respectively.
Based on the measurement mode, a preset mapping relation among the temperature value, the motor driving current logic value and the actual physical distance is determined and stored. In an embodiment of the present disclosure, a mapping relationship among a focus logic value, a motor driving current logic value, a temperature, and an actual physical distance is stored in a mapping relationship storage space created in advance.
When the method of the embodiment of the present disclosure is used to determine the actual physical distance, the actual physical distance a' corresponding to the motor driving current logic value a at the temperature after compensation can be obtained by searching the difference value and determining the range of the motor driving current logic value interval in which the motor driving current logic value a is located, that is, between the motor driving current logic value 1 and the motor driving current logic value 2. According to the embodiment of the disclosure, the temperature data are utilized, the hardware performance of the module is influenced by the temperature value, the deviation of the motor driving current logic value caused by the temperature influence is reduced, and therefore the effective switching from the camera module 1 to the camera module 2 is realized by utilizing the accurate actual physical distance A' after compensation.
Fig. 8 is a flowchart of a method for controlling a camera module to switch based on a first compensated physical distance according to an exemplary embodiment of the present disclosure, as shown in fig. 8, the method includes the following steps.
In step S501, a current temperature value of the camera module is obtained.
In step S502, based on the mapping relationship between the temperature value and the actual physical distance, the first compensated physical distance corresponding to the current temperature value is compensated, and the second compensated physical distance is obtained.
In step S503, the camera module is controlled to switch based on the second compensated physical distance.
In the embodiment of the disclosure, in order to more accurately determine the actual physical distance, the actual physical distance is corrected for the influence caused by the temperature change. Based on the first compensation physical distance, when the camera module is controlled to switch, the current temperature value of the camera module is obtained, for example, the temperature value reported by the sensor monitoring can be obtained.
In the embodiment of the disclosure, mapping relations exist between different temperature values and actual physical distances, the actual physical distances corresponding to the current temperature are compensated according to the mapping relations between the temperature values and the actual physical distances, and a more accurate second compensated physical distance after compensation is obtained on the basis of the first compensated physical distance.
According to the embodiment of the disclosure, based on the mapping relation between the compensated motor driving current logic value and the actual physical distance, the current physical distance corresponding to the current motor driving current logic value is compensated, based on the compensated first compensated physical distance, the first compensated physical distance is compensated according to the mapping relation between the temperature value and the actual physical distance, and based on the compensated second compensated physical distance, the camera module is controlled to switch, so that smoothness of lens module switching between multi-shot lenses is further ensured.
Fig. 9 is a flowchart illustrating a method of compensating for a first compensated physical distance corresponding to a current temperature value according to an exemplary embodiment of the present disclosure, as shown in fig. 9, the method including the following steps.
In step S601, two temperature values having the smallest difference from the current temperature value are determined among the plurality of temperature values included in the map.
In step S602, a first compensated physical distance corresponding to the current temperature value is compensated based on the actual physical distances corresponding to the two temperature values.
In the embodiment of the disclosure, a mapping relationship exists between a temperature value and an actual physical distance, and when compensating for a current physical distance corresponding to a current temperature value, two temperature values with the smallest difference value with the current temperature value are determined in a plurality of temperature values included in the mapping relationship, so that the current temperature value is located between the two temperature values.
And respectively referring to the actual physical distances corresponding to the two temperature values, and compensating the current physical distance corresponding to the current temperature value.
For example, the mapping relationship between the temperature value and the actual physical distance is such that the temperature value is 10 ℃ corresponding to the actual physical distance of 1m, the temperature value is 20 ℃ corresponding to the actual physical distance of 3m, the temperature value is 15 ℃ corresponding to the actual physical distance of 1.5m, and the temperature value is 25 ℃ corresponding to the actual physical distance of 3.5m. Based on the current temperature value of 18 ℃, two temperature values, namely 15 ℃ and 20 ℃, with the smallest difference of 18 ℃ from the current temperature value are determined from the plurality of temperature values included in the mapping relation.
Wherein the current physical distance corresponding to the current temperature of 18 ℃ is compensated based on the actual physical distances corresponding to 15 ℃ and 20 ℃ respectively, namely 1m and 1.5 m. The method for compensating the first compensation physical distance corresponding to the current temperature value is not limited in the embodiment of the disclosure based on the actual physical distance corresponding to each of the two temperature values.
In the embodiment of the disclosure, a storage space is created for storing a mapping relationship among a focus logic value, a motor driving current logic value, a temperature and an actual physical distance, that is, storing a mapping relationship among a plurality of focus logic values, a plurality of motor driving current logic values, a temperature and a plurality of actual physical distances. And triggering the planar scene detection subsequently, performing laser radar ranging, recording the mapping relation between the motor driving current logic value and the actual physical distance in the planar scene, recording the corresponding temperature, and updating the mapping relation between the motor driving current logic value and the actual physical distance in the storage space by using the recorded mapping relation.
According to the embodiment of the disclosure, mapping relations among a plurality of focusing logic values, a plurality of motor driving current logic values, temperatures and a plurality of actual physical distances are stored in a mapping relation storage space which is created in advance, and when whether camera module switching is performed or not is determined in the follow-up focusing process, the stored mapping relations are utilized to obtain accurate compensated current physical distances, so that effective switching of the camera module is realized.
Based on the same conception, the embodiment of the disclosure also provides a switching control device of the camera module.
It can be understood that, in order to achieve the above functions, the switching control device of the camera module provided in the embodiments of the present disclosure includes a hardware structure and/or a software module that perform each function. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
Fig. 10 is a block diagram illustrating a switching control device of a camera module according to an exemplary embodiment of the present disclosure. Referring to fig. 10, the switching control device 100 of the camera module includes a determination module 101, a compensation module 102, and a control module 103.
The determining module 101 is configured to determine a current motor driving current logic value for driving the camera module to switch based on the focusing logic value of the camera module.
The compensation module 102 is configured to compensate the current physical distance corresponding to the current motor driving current logic value based on a mapping relationship between the motor driving current logic value and the actual physical distance.
And the control module 103 is used for controlling the camera module to switch based on the compensated current physical distance.
In one embodiment of the present disclosure, the compensation module 102 compensates a current physical distance corresponding to the current motor driving current logic value based on a mapping relationship between the motor driving current logic value and an actual physical distance in the following manner, to obtain a first compensated physical distance: determining two motor driving current logic values having the smallest difference value from the present motor driving current logic value among a plurality of motor driving current logic values included in the map; and compensating the current physical distance corresponding to the current motor driving current logical value based on the actual physical distance corresponding to each of the two motor driving current logical values, so as to obtain a first compensated physical distance.
In one embodiment of the present disclosure, the compensation module 102 compensates the current physical distance corresponding to the current motor driving current logic value based on the actual physical distances corresponding to the two motor driving current logic values, to obtain the first compensated physical distance in the following manner: determining a linear difference function based on the respective actual physical distances of the two motor drive current logic values; a first compensated physical distance for compensating for the present physical distance corresponding to the present motor drive current logic value is determined based on the linear difference function.
In one embodiment of the present disclosure, the determination module 101 determines the preset mapping between motor drive current logic values and actual physical distances in the following manner: determining a plurality of actual physical distances obtained by performing laser radar ranging on a planar object by the camera module, respectively determining focusing for each of the plurality of actual physical distances to obtain a focusing logic value, and determining a plurality of motor driving current logic values of the camera module based on a corresponding relation between the focusing logic value and the motor driving current logic value; and establishing a mapping relation between the plurality of motor driving current logic values and the plurality of actual physical distances, and storing the mapping relation between the plurality of motor driving current logic values and the plurality of actual physical distances.
In an embodiment of the present disclosure, the control module 103 controls the camera module to switch based on the first compensated physical distance in the following manner: acquiring a current temperature value of the camera module; based on the mapping relation between the temperature value and the actual physical distance, compensating the first compensation physical distance corresponding to the current temperature value to obtain a second compensation physical distance; and controlling the camera module to switch based on the second compensation physical distance.
In an embodiment of the present disclosure, the control module 103 compensates the first compensated physical distance corresponding to the current temperature value based on the mapping relationship between the temperature value and the actual physical distance in the following manner: determining two temperature values with the smallest difference value with the current temperature value from a plurality of temperature values included in the mapping relation; based on the actual physical distance corresponding to each of the two temperature values, the first compensated physical distance corresponding to the current temperature value is compensated.
In one embodiment of the present disclosure, the determining module 101 is further configured to: in the pre-created map storage space, a map between the focus logic value, the motor drive current logic value, the temperature, and the actual physical distance is saved.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 11 is a block diagram illustrating an apparatus 800 for switching control of a camera module according to an exemplary embodiment. For example, apparatus 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. 11, apparatus 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 apparatus 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 apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. 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 device 800. The 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 the device 800.
The multimedia component 808 includes a screen between the 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. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. 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 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 apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the 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 apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, 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 apparatus 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 apparatus 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.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that "connected" includes both direct connection where no other member is present and indirect connection where other element is present, unless specifically stated otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. The switching control method of the camera module is characterized by comprising the following steps:
determining a current motor driving current logic value for driving the camera module to switch based on a focusing logic value of the camera module;
based on a mapping relation between a motor driving current logic value and an actual physical distance, compensating a current physical distance corresponding to the current motor driving current logic value to obtain a first compensated physical distance;
based on the first compensation physical distance, controlling the camera module to switch;
the step of compensating the current physical distance corresponding to the current motor driving current logical value based on the mapping relation between the motor driving current logical value and the actual physical distance to obtain a first compensated physical distance comprises the following steps:
determining two motor driving current logic values having the smallest difference value from the current motor driving current logic value among a plurality of motor driving current logic values included in the map;
based on the actual physical distance corresponding to each of the two motor driving current logic values, compensating the current physical distance corresponding to the current motor driving current logic value to obtain a first compensated physical distance;
The compensating the current physical distance corresponding to the current motor driving current logic value based on the actual physical distances corresponding to the two motor driving current logic values respectively to obtain a first compensated physical distance comprises:
determining a linear difference function based on the respective actual physical distances of the two motor drive current logic values;
and determining a first compensation physical distance for compensating the current physical distance corresponding to the current motor driving current logical value based on the linear difference function.
2. The method for controlling switching of camera modules according to claim 1, wherein the mapping relationship between the motor driving current logic value and the actual physical distance is determined by:
determining a plurality of actual physical distances obtained by the camera module for performing laser radar ranging on a planar object, respectively focusing on each of the actual physical distances to obtain a focusing logic value, and determining a plurality of motor driving current logic values of the camera module based on a corresponding relation between the focusing logic value and the motor driving current logic values;
and establishing a mapping relation between the motor driving current logic values and the actual physical distances, and storing the mapping relation between the motor driving current logic values and the actual physical distances.
3. The method according to claim 1, wherein controlling the camera module to switch based on the first compensated physical distance, comprises:
acquiring a current temperature value of the camera module;
based on a mapping relation between a temperature value and an actual physical distance, compensating the first compensation physical distance corresponding to the current temperature value to obtain a second compensation physical distance;
based on the second compensation physical distance, controlling the camera module to switch;
the step of compensating the first compensation physical distance corresponding to the current temperature value based on the mapping relation between the temperature value and the actual physical distance to obtain a second compensation physical distance includes:
determining two temperature values with the smallest difference value with the current temperature value from a plurality of temperature values included in the mapping relation;
compensating the first compensation physical distance corresponding to the current temperature value based on the actual physical distance corresponding to each of the two temperature values;
the compensating the first compensated physical distance corresponding to the current temperature value based on the actual physical distances corresponding to the two temperature values respectively includes:
Determining a linear difference function based on the actual physical distance corresponding to each of the two temperature values;
and determining a second compensation physical distance for compensating the first compensation physical distance corresponding to the current temperature value based on the linear difference function.
4. The method for controlling switching of camera modules according to claim 1, further comprising:
storing at least one of the following mapping relationships in a pre-created mapping relationship storage space, wherein the mapping relationship storage space comprises the following steps: a mapping relationship between the focus logic value and the motor drive current logic value, a mapping relationship between the motor drive current logic value and the actual physical distance, and a mapping relationship between the temperature value and the actual physical distance.
5. The utility model provides a switching control device of camera module which characterized in that includes:
the determining module is used for determining the current motor driving current logic value for driving the camera module to switch based on the focusing logic value of the camera module;
the compensation module is used for compensating the current physical distance corresponding to the current motor driving current logical value based on the mapping relation between the motor driving current logical value and the actual physical distance to obtain a first compensation physical distance;
The control module is used for controlling the camera module to switch based on the first compensation physical distance;
the compensation module compensates the current physical distance corresponding to the current motor driving current logical value based on the mapping relation between the motor driving current logical value and the actual physical distance in the following manner to obtain a first compensation physical distance:
determining two motor driving current logic values having the smallest difference value from the current motor driving current logic value among a plurality of motor driving current logic values included in the map;
based on the actual physical distance corresponding to each of the two motor driving current logic values, compensating the current physical distance corresponding to the current motor driving current logic value to obtain a first compensated physical distance;
the compensation module compensates the current physical distance corresponding to the current motor driving current logical value based on the actual physical distance corresponding to each of the two motor driving current logical values in the following manner to obtain a first compensation physical distance:
determining a linear difference function based on the respective actual physical distances of the two motor drive current logic values;
And determining a first compensation physical distance for compensating the current physical distance corresponding to the current motor driving current logical value based on the linear difference function.
6. The switching control device of the camera module according to claim 5, wherein the determining module determines the mapping relationship between the motor driving current logic value and the actual physical distance by:
determining a plurality of actual physical distances obtained by the camera module for performing laser radar ranging on a planar object, respectively focusing on each of the actual physical distances to obtain a focusing logic value, and determining a plurality of motor driving current logic values of the camera module based on a corresponding relation between the focusing logic value and the motor driving current logic values;
and establishing a mapping relation between the motor driving current logic values and the actual physical distances, and storing the mapping relation between the motor driving current logic values and the actual physical distances.
7. The switching control device of the camera module according to claim 5, wherein the control module controls the camera module to switch based on the first compensated physical distance by:
Acquiring a current temperature value of the camera module;
based on a mapping relation between a temperature value and an actual physical distance, compensating the first compensation physical distance corresponding to the current temperature value to obtain a second compensation physical distance;
based on the second compensation physical distance, controlling the camera module to switch;
the control module compensates the first compensation physical distance corresponding to the current temperature value based on the mapping relation between the temperature value and the actual physical distance in the following manner to obtain a second compensation physical distance:
determining two temperature values with the smallest difference value with the current temperature value from a plurality of temperature values included in the mapping relation;
compensating the first compensation physical distance corresponding to the current temperature value based on the actual physical distance corresponding to each of the two temperature values;
the control module compensates the first compensation physical distance corresponding to the current temperature value based on the actual physical distance corresponding to each of the two temperature values in the following manner:
determining a linear difference function based on the actual physical distance corresponding to each of the two temperature values;
and determining a second compensation physical distance for compensating the first compensation physical distance corresponding to the current temperature value based on the linear difference function.
8. The switching control device of the camera module according to claim 5, wherein the determining module is further configured to:
storing at least one of the following mapping relationships in a pre-created mapping relationship storage space, wherein the mapping relationship storage space comprises the following steps: a mapping relationship between the focus logic value and the motor drive current logic value, a mapping relationship between the motor drive current logic value and the actual physical distance, and a mapping relationship between the temperature value and the actual physical distance.
9. The utility model provides a switching control device of camera module which characterized in that includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: a switching control method of the camera module according to any one of claims 1 to 4 is performed.
10. A non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, causes the mobile terminal to perform the method of switching control of a camera module of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010934848.7A CN114157801B (en) | 2020-09-08 | 2020-09-08 | Switching control method and device of camera module and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010934848.7A CN114157801B (en) | 2020-09-08 | 2020-09-08 | Switching control method and device of camera module and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114157801A CN114157801A (en) | 2022-03-08 |
CN114157801B true CN114157801B (en) | 2024-02-27 |
Family
ID=80462259
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010934848.7A Active CN114157801B (en) | 2020-09-08 | 2020-09-08 | Switching control method and device of camera module and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114157801B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005165058A (en) * | 2003-12-03 | 2005-06-23 | Sharp Corp | Automatic focusing device |
CN105391943A (en) * | 2015-12-03 | 2016-03-09 | 广东欧珀移动通信有限公司 | Rapid focusing method and system of shooting device |
CN106249508A (en) * | 2016-08-15 | 2016-12-21 | 广东欧珀移动通信有限公司 | Atomatic focusing method and system, filming apparatus |
CN107846546A (en) * | 2016-09-18 | 2018-03-27 | 中兴通讯股份有限公司 | Focusing compensating device and its method, the camera shooting terminal of a kind of camera module |
CN108989791A (en) * | 2018-07-11 | 2018-12-11 | 昆山丘钛微电子科技有限公司 | A kind of linear detection method of motor, device and computer readable storage medium |
CN110602382A (en) * | 2019-08-27 | 2019-12-20 | 珠海市广浩捷精密机械有限公司 | Focusing detection method of camera module |
CN111158107A (en) * | 2020-01-03 | 2020-05-15 | 支付宝(杭州)信息技术有限公司 | Focusing method, device and equipment of lens module |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8724016B2 (en) * | 2011-04-06 | 2014-05-13 | Apple Inc. | Driver circuit for a camera voice coil motor |
KR102129797B1 (en) * | 2014-01-13 | 2020-07-03 | 엘지전자 주식회사 | Mobile terminal and controlling method thereof |
-
2020
- 2020-09-08 CN CN202010934848.7A patent/CN114157801B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005165058A (en) * | 2003-12-03 | 2005-06-23 | Sharp Corp | Automatic focusing device |
CN105391943A (en) * | 2015-12-03 | 2016-03-09 | 广东欧珀移动通信有限公司 | Rapid focusing method and system of shooting device |
CN106249508A (en) * | 2016-08-15 | 2016-12-21 | 广东欧珀移动通信有限公司 | Atomatic focusing method and system, filming apparatus |
CN107846546A (en) * | 2016-09-18 | 2018-03-27 | 中兴通讯股份有限公司 | Focusing compensating device and its method, the camera shooting terminal of a kind of camera module |
CN108989791A (en) * | 2018-07-11 | 2018-12-11 | 昆山丘钛微电子科技有限公司 | A kind of linear detection method of motor, device and computer readable storage medium |
CN110602382A (en) * | 2019-08-27 | 2019-12-20 | 珠海市广浩捷精密机械有限公司 | Focusing detection method of camera module |
CN111158107A (en) * | 2020-01-03 | 2020-05-15 | 支付宝(杭州)信息技术有限公司 | Focusing method, device and equipment of lens module |
Also Published As
Publication number | Publication date |
---|---|
CN114157801A (en) | 2022-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11516377B2 (en) | Terminal, focusing method and apparatus, and computer readable storage medium | |
CN110557547B (en) | Lens position adjusting method and device | |
US20220038639A1 (en) | Control method and apparatus, electronic device, and storage medium | |
CN111294511B (en) | Focusing method and device of camera module and storage medium | |
CN115134505B (en) | Preview picture generation method and device, electronic equipment and storage medium | |
CN110876014B (en) | Image processing method and device, electronic device and storage medium | |
CN107241535B (en) | Flash lamp adjusting device and terminal equipment | |
US11792518B2 (en) | Method and apparatus for processing image | |
CN114339022B (en) | Camera shooting parameter determining method and neural network model training method | |
CN114157801B (en) | Switching control method and device of camera module and storage medium | |
CN117522942A (en) | Depth distance measuring method, depth distance measuring device, electronic equipment and readable storage medium | |
CN112702514B (en) | Image acquisition method, device, equipment and storage medium | |
CN114339019B (en) | Focusing method, focusing device and storage medium | |
CN115134517A (en) | Shooting control method and device and storage medium | |
CN108769513B (en) | Camera photographing method and device | |
CN107682623B (en) | Photographing method and device | |
CN113760077A (en) | Mobile terminal, temperature control method and device of mobile terminal and storage medium | |
CN112235509A (en) | Focal length adjusting method and device, mobile terminal and storage medium | |
CN114339018B (en) | Method and device for switching lenses and storage medium | |
CN113079310B (en) | Automatic focusing method, automatic focusing device, electronic equipment and computer readable storage medium | |
CN114268731B (en) | Camera switching method, camera switching device and storage medium | |
CN114339017B (en) | Distant view focusing method, device and storage medium | |
CN118190352A (en) | Method, device, terminal and storage medium for determining lens structure information | |
CN117546071A (en) | Zoom method, zoom device, electronic apparatus, and storage medium | |
CN118102095A (en) | Camera control method, device, camera, readable storage medium and chip |
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 |