CN116489507A - Focusing method, focusing device, electronic equipment and storage medium - Google Patents

Focusing method, focusing device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116489507A
CN116489507A CN202210033156.4A CN202210033156A CN116489507A CN 116489507 A CN116489507 A CN 116489507A CN 202210033156 A CN202210033156 A CN 202210033156A CN 116489507 A CN116489507 A CN 116489507A
Authority
CN
China
Prior art keywords
lens
focusing
determining
initial
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210033156.4A
Other languages
Chinese (zh)
Inventor
姚海强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210033156.4A priority Critical patent/CN116489507A/en
Publication of CN116489507A publication Critical patent/CN116489507A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The disclosure relates to a focusing method, a focusing device, an electronic device and a storage medium. The focusing method comprises the following steps: acquiring focusing information of a first lens, wherein the focusing information is used for determining a preview image by the first lens; determining initial focusing information of the second lens for determining a preview image based on the focusing information of the first lens; and calling a second lens based on the initial focusing information to determine a preview image. In the application, when the first lens is switched to the second lens and the second lens is used for shooting to acquire the preview image, the initial state of the second lens when the second lens is opened is determined by initial focusing information determined by focusing information of the first lens, and the second lens is not based on initial setting of system defaults. This may make the initial state when the second lens is open more suitable for quick focusing completion when the preview image is acquired when the scene is photographed down, rather than refocusing in the initial state determined by the default initial setting of the system.

Description

Focusing method, focusing device, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of electronic technology, and in particular, to a focusing method, a focusing device, electronic equipment and a storage medium.
Background
With the rapid development of electronic technology, electronic devices such as smartphones are becoming increasingly functional. Among them, the photographing function has become an indispensable function for electronic devices such as smart phones. When an electronic device performs photographing or image capturing through a photographing function, focusing is generally required. After focusing is completed, image shooting is performed.
Disclosure of Invention
The disclosure provides a focusing method, a focusing device, an electronic device and a storage medium.
In a first aspect of embodiments of the present disclosure, a focusing method is provided, including:
acquiring focusing information of a first lens, wherein the focusing information is used for determining a preview image by the first lens;
determining initial focusing information of a second lens for determining the preview image based on the focusing information of the first lens;
and calling the second lens based on the initial focusing information, and determining the preview image.
In some embodiments, the determining, based on the focus information of the first lens, initial focus information for a second lens to determine the preview image includes at least:
determining the association relationship between focusing information existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same;
And determining the initial focusing information of the second lens based on the determined association relation and the focusing information of the first lens.
In some embodiments, the focusing information includes at least: a focusing distance and/or a focusing area; the initial focusing information at least comprises: an initial focus distance and/or an initial focus area;
the determining, based on the focusing information of the first lens, initial focusing information of a second lens for determining the preview image at least includes:
determining the initial focus distance of the second lens based on the focus distance of the first lens; and/or the number of the groups of groups,
the initial focus area of the second lens is determined based on the focus area of the first lens.
In some embodiments, the determining the initial focus distance of the second lens based on the focus distance of the first lens includes at least:
determining the incidence relation between focusing distances existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same;
and determining the initial focusing distance of the second lens based on the acquired focusing distance of the first lens and the incidence relation between the focusing distances.
In some embodiments, the same object distance is multiple sets;
the determining of the association relationship between the focal distances at least comprises the following steps:
determining a first focusing distance corresponding to the first lens and a second focusing distance corresponding to the second lens under a plurality of groups of object distances;
fitting to obtain a first fitting curve corresponding to the first lens based on the first focusing distances corresponding to the first lens under the plurality of groups of object distances;
fitting to obtain a second fitting curve corresponding to the second lens based on the second focusing distances corresponding to the second lens under the plurality of groups of object distances;
and determining the association relation between the focusing distances based on the first fitting curve and the second fitting curve.
In some embodiments, before the determining, based on the focus information of the first lens, initial focus information for a second lens for determining the preview image, the method includes:
determining the working state of the second lens;
and if the second lens is determined to be in the closed state, determining initial focusing information of the second lens based on the focusing information of the first lens.
In some embodiments, the focusing information includes at least: a focusing mode;
The determining, based on the focusing information of the first lens, initial focusing information of a second lens for determining the preview image at least includes: and determining the focusing mode of the first lens as the focusing mode when the second lens determines a preview image.
In some embodiments, the method comprises:
when the initial focusing information of the second lens is determined, synchronously updating initial settings of the second lens based on the initial focusing information, wherein the initial settings are used for determining an initial state when the second lens is opened;
wherein the synchronously updating the initial settings of the second lens at least comprises: updating a focusing distance of the second lens to be the initial focusing distance, updating a focusing area of the second lens to be the initial focusing area, and updating a focusing mode of the second lens to be a focusing mode of the first lens;
the step of calling the second lens based on the initial focusing information to determine the preview image at least comprises the following steps:
and determining the preview image based on the updated focusing distance setting, focusing area setting and focusing mode setting of the second lens.
In some embodiments, the determining the preview image based on the initial focus information, invoking the second lens, at least includes:
based on the initial focusing information, completing automatic focusing convergence of the second lens on a shooting object;
and after focusing is finished, determining the preview image.
A second aspect of the embodiments of the present disclosure provides a focusing device, including:
the first processing unit is used for acquiring focusing information of a first lens, wherein the focusing information is used for determining a preview image by the first lens;
a second processing unit configured to determine initial focusing information of a second lens for determining the preview image based on the focusing information of the first lens;
and the third processing unit is used for calling the second lens based on the initial focusing information and determining the preview image.
In some embodiments, the second processing unit is configured to
Determining the association relationship between focusing information existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same;
and determining the initial focusing information of the second lens based on the determined association relation and the focusing information of the first lens.
In some embodiments, the focusing information includes at least: a focusing distance and/or a focusing area; the initial focusing information at least comprises: an initial focus distance and/or an initial focus area;
the second processing unit is used for
Determining the initial focus distance of the second lens based on the focus distance of the first lens; and/or the number of the groups of groups,
the initial focus area of the second lens is determined based on the focus area of the first lens.
In some embodiments, the second processing unit is configured to
Determining the incidence relation between focusing distances existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same;
and determining the initial focusing distance of the second lens based on the acquired focusing distance of the first lens and the incidence relation between the focusing distances.
In some embodiments, the same object distance is multiple sets;
the second processing unit is specifically used for
Determining a first focusing distance corresponding to the first lens and a second focusing distance corresponding to the second lens under a plurality of groups of object distances;
fitting to obtain a first fitting curve corresponding to the first lens based on the first focusing distances corresponding to the first lens under the plurality of groups of object distances;
Fitting to obtain a second fitting curve corresponding to the second lens based on the second focusing distances corresponding to the second lens under the plurality of groups of object distances;
and determining the association relation between the focusing distances based on the first fitting curve and the second fitting curve.
In some embodiments, the second processing unit is configured to, before determining, based on the focusing information of the first lens, that a second lens is used to determine initial focusing information of the preview image
Determining the working state of the second lens;
and if the second lens is determined to be in the closed state, determining initial focusing information of the second lens based on the focusing information of the first lens.
In some embodiments, the focusing information includes at least: a focusing mode;
the second processing unit is specifically configured to determine a focusing mode of the first lens when determining a preview image for the second lens.
In some embodiments, the second processing unit is configured to
When the initial focusing information of the second lens is determined, synchronously updating initial settings of the second lens based on the initial focusing information, wherein the initial settings are used for determining an initial state when the second lens is opened, and the initial settings comprise: updating a focusing distance of the second lens to be the initial focusing distance, updating a focusing area of the second lens to be the initial focusing area, and updating a focusing mode of the second lens to be a focusing mode of the first lens; and
And determining the preview image based on the updated focusing distance setting, focusing area setting and focusing mode setting of the second lens.
In some embodiments, the third processing unit is configured to
Based on the initial focusing information, completing automatic focusing convergence of the second lens on a shooting object;
and after focusing is finished, determining the preview image.
In a third aspect of the disclosed embodiments, there is provided an electronic device, including: a processor and a memory, the memory having stored thereon a computer program executable on the processor for performing the steps of the method of the first aspect when the computer program is executed.
A fourth aspect of embodiments of the present disclosure provides a computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
the focusing method in the embodiment of the disclosure comprises the following steps: acquiring focusing information of a first lens, wherein the focusing information is used for determining a preview image by the first lens; determining initial focusing information of a second lens for determining the preview image based on the focusing information of the first lens; and calling the second lens based on the initial focusing information, and determining the preview image. The focusing method can be applied to photographing/shooting scenes of which the lenses need to be switched by multiple shooting lenses. For example, the first lens and the second lens have different lens parameters, and when the first lens is not suitable for the next shooting scene, the second lens is switched. In the conventional shot switching shooting, when the first lens is switched to the second lens, the initial state of the second lens when the second lens is opened is determined by the default initial setting of the system, but in practical application, the shooting scene is random, the preview image required to be determined by the first lens is random, and also when the second lens is switched to the second lens, the preview image required to be determined by the second lens is random, so that focusing convergence is required to be carried out from the initial state determined by the default initial setting of the system when the second lens is focused, which can definitely prolong focusing time. In the application, the initial focusing information of the preview image can be determined by determining the second lens based on the focusing information of the first lens. The focusing information of the first lens is the focusing information when the first lens determines the preview image, namely the focusing information when the first lens is focused to obtain the clear image. When the first lens is switched to the second lens, and the second lens shoots and acquires the preview image, the initial state of the second lens when the second lens is opened is determined by the initial focusing information determined by the focusing information of the first lens, and the second lens is not based on the default initial setting of the system. The initial focusing information of the second lens can be determined through the association relation between the focusing information which is determined in advance when focusing is carried out on the same shooting scene between the first lens and the second lens, so that the initial state when the second lens is opened can be more suitable for completing quick focusing when the shooting scene acquires a preview image instead of refocusing in the initial state which is determined by default initial setting of the system. Therefore, the focusing method is suitable for shooting scenes in which a plurality of shooting lenses need lens switching, and the automatic focusing convergence rate of the second lens is improved.
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 focusing method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an image capture process according to an exemplary embodiment.
Fig. 3 is a second image capturing flow chart according to an exemplary embodiment.
Fig. 4 is a schematic diagram showing a structure of a focusing device according to an exemplary embodiment.
Fig. 5 is a schematic view of an application scenario of an electronic device with a photographing function according to an exemplary embodiment.
Fig. 6 is a block diagram of an electronic device, according to an example embodiment.
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 consistent with some aspects of the disclosure as detailed in the accompanying claims.
With the rapid development of electronic technology, electronic devices such as smartphones are becoming increasingly functional. Among them, the photographing function has become an indispensable function for electronic devices such as smart phones. When an electronic device performs photographing or image capturing through a photographing function, focusing is generally required. After focusing is completed, image shooting is performed. In particular, electronic devices having multiple imaging lenses may also use lens switching, and the switched lenses need to be refocused.
The embodiment of the disclosure provides a focusing method. Fig. 1 is a flowchart illustrating a focusing method according to an exemplary embodiment. As shown in fig. 1, the focusing method includes:
step 10, acquiring focusing information of a first lens, wherein the focusing information is used for determining a preview image by the first lens;
step 11, determining initial focusing information of a second lens for determining the preview image based on the focusing information of the first lens;
and step 12, calling the second lens based on the initial focusing information, and determining the preview image.
In the embodiment of the disclosure, the first lens and the second lens are both imaging lenses used as a master for determining preview images in foreground operation. The first lens and the second lens may be the same type of lens, or may be different types of lenses. For example, the first lens may be a telephoto lens, and the second lens may be a telephoto lens or a wide-angle lens.
In an embodiment of the disclosure, the first lens determines the preview image based on the focusing information. The focusing information determines the current focusing state of the first lens. The focusing information at least comprises: focus distance, focus area, focus mode, etc. The initial focusing information of the second lens determines an initial state when the second lens is opened, namely an initial focusing state.
In the embodiment of the disclosure, the focusing method can be applied to shooting scenes of multiple field depth and multiple shooting lens groups. For example, one group of imaging lenses, which is a master and a slave, is an imaging lens a, and the other group of imaging lenses, which is a master and a slave, is an imaging lens B. The switching between the two independent lenses can be performed by taking the imaging lens A as a master and taking the imaging lens C as a master.
The focusing method in the embodiment of the disclosure comprises the following steps: acquiring focusing information of a first lens, wherein the focusing information is used for determining a preview image by the first lens; determining initial focusing information of the second lens for determining a preview image based on the focusing information of the first lens; and calling a second lens based on the initial focusing information to determine a preview image. The focusing method can be applied to photographing/shooting scenes of which the lenses need to be switched by multiple shooting lenses. For example, the first lens and the second lens have different lens parameters, and when the first lens is not suitable for the next shooting scene, the second lens is switched. In the conventional shot switching shooting, when the first lens is switched to the second lens, the initial state of the second lens when the second lens is opened is determined by the default initial setting of the system, but in practical application, the shooting scene is random, the preview image required to be determined by the first lens is random, and also when the second lens is switched to the second lens, the preview image required to be determined by the second lens is random, so that focusing convergence is required to be carried out from the initial state determined by the default initial setting of the system when the second lens is focused, which can definitely prolong focusing time. In the application, the initial focusing information of the preview image can be determined by determining the second lens based on the focusing information of the first lens. The focusing information of the first lens is the focusing information when the first lens determines the preview image, namely the focusing information when the first lens is focused to obtain the clear image. When the first lens is switched to the second lens, and the second lens shoots and acquires the preview image, the initial state of the second lens when the second lens is opened is determined by the initial focusing information determined by the focusing information of the first lens, and the second lens is not based on the default initial setting of the system. The initial focusing information of the second lens can be determined through the association relation between the focusing information which is determined in advance when focusing is carried out on the same shooting scene between the first lens and the second lens, so that the initial state when the second lens is opened can be more suitable for completing quick focusing when the shooting scene acquires a preview image instead of refocusing in the initial state which is determined by default initial setting of the system. Therefore, the focusing method is suitable for shooting scenes in which a plurality of shooting lenses need lens switching, and the automatic focusing convergence rate of the second lens is improved.
In some embodiments, the determining, based on the focus information of the first lens, initial focus information for a second lens to determine the preview image includes at least:
determining the association relationship between focusing information existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same in advance;
and determining the initial focusing information of the second lens based on the predetermined association relation and the focusing information of the first lens.
In the embodiment of the disclosure, when the first lens and the second lens determine preview images of the same shooting object at the same object distance, an association relationship between focusing information exists. The association relationship between the focusing information of the first lens and the second lens can be determined in advance through a plurality of groups of tests. Or, pre-establishing the association relationship between the focusing information when determining the preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same.
In an embodiment of the present disclosure, an association relationship between focusing information at least includes: the association relationship between focusing areas, the association relationship between focusing distances and the association relationship between focusing modes. And then determining initial focusing information of the second lens based on the determined association relation and the focusing information of the first lens. And based on the initial state determined by the initial focusing information, focusing convergence of the second lens is carried out, and a preview image is determined.
In some embodiments, the focusing information includes at least: a focusing distance and/or a focusing area; the initial focusing information at least comprises: an initial focus distance and/or an initial focus area;
the determining, based on the focusing information of the first lens, initial focusing information of a second lens for determining the preview image at least includes:
determining the initial focus distance of the second lens based on the focus distance of the first lens; and/or the number of the groups of groups,
the initial focus area of the second lens is determined based on the focus area of the first lens.
In the embodiment of the disclosure, when determining that the second lens is used for determining initial focusing information of the preview image based on focusing information of the first lens, the initial focusing distance of the second lens may be determined based on the focusing distance of the first lens; and/or determining an initial focus area of the second lens based on the focus area of the first lens. The initial focusing distance is the focusing distance that the second lens with the driving motor of the second lens can set has when the second lens is opened. The initial focusing area, i.e., the focusing area of the determined preview image can be converged when the second lens is opened. The second lens determines a preview image based on the initial focus distance and the initial focus area.
In an embodiment of the disclosure, the determining the initial focusing area of the second lens based on the focusing area of the first lens at least includes:
determining (or pre-establishing) the relative position between the first lens and the second lens and the association relationship between the first field angle of the first lens and the second field angle of the second lens when determining the preview image of the same shooting object under the condition of the same object distance of the first lens and the second lens in advance;
based on the determined relative positions of the first lens and the second lens and the association relationship between the field angles, determining the association relationship between focusing areas when the first lens and the second lens are used for determining preview images of the same shooting object under the same object distance;
and obtaining the initial focusing area of the second lens based on the obtained focusing area of the first lens and the association relation between the focusing areas.
In the embodiment of the disclosure, since the initial focusing distance and the initial focusing area of the second lens can be respectively determined by the association relationship between the focusing distance and the focusing area, which are determined in advance when focusing the same shooting scene, between the first lens and the second lens, the initial state when the second lens is opened can be more suitable for completing the quick focusing when the shooting scene acquires the preview image, rather than refocusing in the initial state determined by the default initial setting of the system. Therefore, the focusing method is suitable for shooting scenes in which a plurality of shooting lenses need lens switching, and the automatic focusing convergence rate of the second lens is improved.
In some embodiments, the determining the initial focus distance of the second lens based on the focus distance of the first lens includes at least:
determining the association relationship between focusing distances existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same in advance;
and determining the initial focusing distance of the second lens based on the acquired focusing distance of the first lens and the incidence relation between the focusing distances.
In the embodiment of the disclosure, when determining the initial focusing distance of the second lens based on the focusing distance of the first lens, the association relationship between the focusing distances existing when determining the preview image of the same shooting object under the same object distance of the first lens and the second lens, or the association relationship between the focusing distances existing when determining the preview image of the same shooting object under the same object distance of the first lens and the second lens may be determined in advance. And then determining the initial focusing distance of the second lens based on the focusing distance of the first lens and the association relation between the focusing distances.
In some embodiments, the same object distance is multiple sets;
The predetermined association relation between the focal distances at least comprises the following steps:
a first focusing distance corresponding to the first lens and a second focusing distance corresponding to the second lens under a plurality of groups of object distances are determined in advance;
fitting to obtain a first fitting curve corresponding to the first lens based on the first focusing distances corresponding to the first lens under the plurality of groups of object distances;
fitting to obtain a second fitting curve corresponding to the second lens based on the second focusing distances corresponding to the second lens under the plurality of groups of object distances;
and determining the association relation between the focusing distances based on the first fitting curve and the second fitting curve.
In the embodiment of the disclosure, when determining the association relationship between the focusing distances, focusing tests under multiple groups of object distances can be performed in advance. For example, several groups of scenes are fixed, and the far view (1 m, 1.5m, 2m, 3m, 5m, etc.) in the close view (common object distance is 10cm, 30cm, 50 cm) is the far view (10 m, 20m, 30 m), etc. And focusing the first lens and the second lens respectively corresponding to the same object distance scene, and determining focusing distances corresponding to the lenses when the images are clear, namely, the first focusing distance and the second focusing distance. Then fitting to obtain a first fitting curve corresponding to the first lens based on the first focusing distances corresponding to the first lens under the plurality of groups of object distances; and fitting to obtain a second fitting curve corresponding to the second lens based on the second focusing distances corresponding to the plurality of groups of object distances of the second lens.
In the embodiment of the disclosure, after the first fitting curve corresponding to the first lens and the second fitting curve corresponding to the second lens are obtained by fitting, a focusing distance conversion algorithm can be updated through the first fitting curve and the second fitting curve, and the association relationship between the focusing distances is determined. And finally, obtaining the initial focusing distance of the second lens based on the obtained focusing distance of the first lens and a focusing distance conversion algorithm comprising the association relation between the focusing distances. The focusing distance conversion algorithm is used for converting the focusing distance under the same object distance between different lenses.
In some embodiments, before the determining, based on the focus information of the first lens, initial focus information for a second lens for determining the preview image, the method includes:
determining the working state of the second lens;
and if the second lens is determined to be in the closed state, determining initial focusing information of the second lens based on the focusing information of the first lens.
In the embodiment of the disclosure, before determining that the second lens is used to determine the initial focusing information of the preview image based on the focusing information of the first lens, the working state of the second lens needs to be determined. When the second lens is in the closed state, the second lens can be called based on the focusing method of the application. At this time, the second lens may be opened for the first time, that is, the initial setting of the second lens before the opening and calling is the default setting of the system, so as to play the effect of rapid focusing and convergence on the calling of the second lens.
In some embodiments, the focusing information includes at least: a focusing mode;
the determining, based on the focusing information of the first lens, initial focusing information of a second lens for determining the preview image at least includes: and determining the focusing mode of the first lens as the focusing mode when the second lens determines a preview image.
In an embodiment of the present disclosure, the focusing mode may at least include: single auto-focus, auto-servo focus, continuous auto-focus, etc. When determining the initial focus mode when the second lens is opened, the focus mode of the first lens may be determined (or synchronized) as the focus mode when the second lens determines the preview image, thereby facilitating focus shooting by the second lens without requiring manual intervention to modify the focus mode.
In some embodiments, the method comprises:
when the initial focusing information of the second lens is determined, synchronously updating initial settings of the second lens based on the initial focusing information, wherein the initial settings are used for determining an initial state when the second lens is opened;
wherein the synchronously updating the initial settings of the second lens at least comprises: updating a focusing distance of the second lens to be the initial focusing distance, updating a focusing area of the second lens to be the initial focusing area, and updating a focusing mode of the second lens to be a focusing mode of the first lens;
The step of calling the second lens based on the initial focusing information to determine the preview image at least comprises the following steps:
and determining the preview image based on the updated focusing distance setting, focusing area setting and focusing mode setting of the second lens.
In the embodiment of the disclosure, the focusing distance of the second lens is set to be used for determining the focusing distance in an initial state of focusing convergence when the second lens is opened; the focusing area of the second lens is set to a focusing area in an initial state for determining focusing convergence when the second lens is opened.
In the embodiment of the disclosure, when the initial focusing information of the second lens is determined, the initial setting of the second lens can be synchronously updated based on the initial focusing information, so that the lens switching is facilitated, focusing convergence shooting operation can be directly performed after the lens switching to the second lens, the shooting efficiency of the electronic device is improved, and the user experience is improved.
In some embodiments, the determining the preview image based on the initial focus information, invoking the second lens, at least includes:
based on the initial focusing information, completing automatic focusing convergence of the second lens on a shooting object;
And after focusing is finished, determining the preview image.
In the embodiment of the disclosure, after the automatic focusing convergence is completed, the preview image is determined, and no manual operation is required.
In the embodiment of the disclosure, in the conventional lens switching focusing process, about 6 to 10 frames of AF automatic focusing convergence time may be required, and for a multi-depth-of-field scene, a situation of inconsistent new and old master focusing areas may also exist, so that the fov jump problem is caused. According to the method and the device, when a new matrix is opened by slave, the initial focusing distance and the initial focusing area which can be synchronously determined are initially set to the second lens, so that the second lens can quickly converge the focusing state when being used as the master for switching, and the situation that the user experience is influenced by preview jitter due to the fact that the new master is focused to the new focusing area after the master is switched under the scene of multiple depths of field is avoided. Meanwhile, the automatic focusing device can automatically and rapidly converge (only about 1-2 frames of AF automatic focusing convergence time is needed) during switching, focusing information of handshaking with a photographing app is not needed any more, manual refocusing is triggered, and therefore user experience is improved.
Fig. 2 is a flowchart illustrating an image capture process according to an exemplary embodiment. The image shooting process comprises the following steps:
Step 210: the shooting application program APP sends a shooting request to the control unit;
step 211: the control unit generates control logic based on the request;
step 212: the control logic is specifically executed through a workflow;
step 213: the control unit calls the lens to shoot based on the control logic;
step 214: after shooting is completed, image processing is carried out;
step 215: and finally outputting the processed image.
Fig. 3 is a second image capturing flow chart according to an exemplary embodiment. The image shooting process comprises the following steps:
step 310: the shooting application program APP sends a shooting request to the control unit;
step 311: the control unit generates control logic based on the request;
step 312: the control logic is specifically executed through a workflow;
step 313: the control unit switches the lens to shoot based on control logic;
step 314: the control unit confirms whether the switched second lens is opened for the first time;
step 315: when the second lens is opened for the first time, determining focusing information of the first lens;
step 316: determining initial focusing information of the second lens based on the focusing information of the first lens;
step 317: updating initial focusing information to the initial setting of the second lens through the second algorithm module to shoot an image, and executing step 320 after shooting is completed;
Step 318: when the second lens is not opened for the first time, calling the second lens;
step 319: after the second lens is opened, normal shooting operation is executed through the first algorithm module;
step 320: after shooting is completed, image processing is carried out;
step 321: and finally outputting the processed image.
A second aspect of the disclosed embodiments provides a focusing device. Fig. 4 is a schematic diagram showing a structure of a focusing device according to an exemplary embodiment. As shown in fig. 4, the focusing device includes:
a first processing unit 41, configured to obtain focusing information of a first lens, where the focusing information is used for determining a preview image by the first lens;
a second processing unit 42 for determining initial focusing information of a second lens for determining the preview image based on the focusing information of the first lens;
the third processing unit 43 is configured to invoke the second lens to determine the preview image based on the initial focusing information.
In the embodiment of the disclosure, the first lens and the second lens are both imaging lenses used as a master for determining preview images in foreground operation. The first lens and the second lens may be the same type of lens, or may be different types of lenses. For example, the first lens may be a telephoto lens, and the second lens may be a telephoto lens or a wide-angle lens.
In an embodiment of the disclosure, the first lens determines the preview image based on the focusing information. The focusing information determines the current focusing state of the first lens. The focusing information at least comprises: focus distance, focus area, focus mode, etc. The initial focusing information of the second lens determines an initial state when the second lens is opened, namely an initial focusing state.
In the embodiment of the disclosure, the focusing method can be applied to shooting scenes of multiple field depth and multiple shooting lens groups. For example, one group of imaging lenses, which is a master and a slave, is an imaging lens a, and the other group of imaging lenses, which is a master and a slave, is an imaging lens B. The switching between the two independent lenses can be performed by taking the imaging lens A as a master and taking the imaging lens C as a master.
The focusing method in the embodiment of the disclosure comprises the following steps: acquiring focusing information of a first lens, wherein the focusing information is used for determining a preview image by the first lens; determining initial focusing information of the second lens for determining a preview image based on the focusing information of the first lens; and calling a second lens based on the initial focusing information to determine a preview image. The focusing method can be applied to photographing/shooting scenes of which the lenses need to be switched by multiple shooting lenses. For example, the first lens and the second lens have different lens parameters, and when the first lens is not suitable for the next shooting scene, the second lens is switched. In the conventional shot switching shooting, when the first lens is switched to the second lens, the initial state of the second lens when the second lens is opened is determined by the default initial setting of the system, but in practical application, the shooting scene is random, the preview image required to be determined by the first lens is random, and also when the second lens is switched to the second lens, the preview image required to be determined by the second lens is random, so that focusing convergence is required to be carried out from the initial state determined by the default initial setting of the system when the second lens is focused, which can definitely prolong focusing time. In the application, the initial focusing information of the preview image can be determined by determining the second lens based on the focusing information of the first lens. The focusing information of the first lens is the focusing information when the first lens determines the preview image, namely the focusing information when the first lens is focused to obtain the clear image. When the first lens is switched to the second lens, and the second lens shoots and acquires the preview image, the initial state of the second lens when the second lens is opened is determined by the initial focusing information determined by the focusing information of the first lens, and the second lens is not based on the default initial setting of the system. The initial focusing information of the second lens can be determined through the association relation between the focusing information which is determined in advance when focusing is carried out on the same shooting scene between the first lens and the second lens, so that the initial state when the second lens is opened can be more suitable for completing quick focusing when the shooting scene acquires a preview image instead of refocusing in the initial state which is determined by default initial setting of the system. Therefore, the focusing method is suitable for shooting scenes in which a plurality of shooting lenses need lens switching, and the automatic focusing convergence rate of the second lens is improved.
In some embodiments, the second processing unit is configured to
Determining the association relationship between focusing information existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same in advance;
and determining the initial focusing information of the second lens based on the predetermined association relation and the focusing information of the first lens.
In the embodiment of the disclosure, when the first lens and the second lens determine preview images of the same shooting object at the same object distance, an association relationship between focusing information exists. The association relationship between the focusing information of the first lens and the second lens can be determined in advance through a plurality of groups of tests. Or, pre-establishing the association relationship between the focusing information when determining the preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same.
In an embodiment of the present disclosure, an association relationship between focusing information at least includes: the association relationship between focusing areas, the association relationship between focusing distances and the association relationship between focusing modes. And then determining initial focusing information of the second lens based on the determined association relation and the focusing information of the first lens. And based on the initial state determined by the initial focusing information, focusing convergence of the second lens is carried out, and a preview image is determined.
In some embodiments, the focusing information includes at least: a focusing distance and/or a focusing area; the initial focusing information at least comprises: an initial focus distance and/or an initial focus area;
the second processing unit is used for
Determining the initial focus distance of the second lens based on the focus distance of the first lens; and/or the number of the groups of groups,
the initial focus area of the second lens is determined based on the focus area of the first lens.
In the embodiment of the disclosure, when determining that the second lens is used for determining initial focusing information of the preview image based on focusing information of the first lens, the initial focusing distance of the second lens may be determined based on the focusing distance of the first lens; and/or determining an initial focus area of the second lens based on the focus area of the first lens. The initial focusing distance is the focusing distance that the second lens with the driving motor of the second lens can set has when the second lens is opened. The initial focusing area, i.e., the focusing area of the determined preview image can be converged when the second lens is opened. The second lens determines a preview image based on the initial focus distance and the initial focus area.
In an embodiment of the disclosure, the determining the initial focusing area of the second lens based on the focusing area of the first lens at least includes:
Determining (or pre-establishing) the relative position between the first lens and the second lens and the association relationship between the first field angle of the first lens and the second field angle of the second lens when determining the preview image of the same shooting object under the condition of the same object distance of the first lens and the second lens in advance;
based on the determined relative positions of the first lens and the second lens and the association relationship between the field angles, determining the association relationship between focusing areas when the first lens and the second lens are used for determining preview images of the same shooting object under the same object distance;
and obtaining the initial focusing area of the second lens based on the obtained focusing area of the first lens and the association relation between the focusing areas.
In the embodiment of the disclosure, since the initial focusing distance and the initial focusing area of the second lens can be respectively determined by the association relationship between the focusing distance and the focusing area, which are determined in advance when focusing the same shooting scene, between the first lens and the second lens, the initial state when the second lens is opened can be more suitable for completing the quick focusing when the shooting scene acquires the preview image, rather than refocusing in the initial state determined by the default initial setting of the system. Therefore, the focusing method is suitable for shooting scenes in which a plurality of shooting lenses need lens switching, and the automatic focusing convergence rate of the second lens is improved.
In some embodiments, the second processing unit is configured to
Determining the association relationship between focusing distances existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same in advance;
and determining the initial focusing distance of the second lens based on the acquired focusing distance of the first lens and the incidence relation between the focusing distances.
In the embodiment of the disclosure, when determining the initial focusing distance of the second lens based on the focusing distance of the first lens, the association relationship between the focusing distances existing when determining the preview image of the same shooting object under the same object distance of the first lens and the second lens, or the association relationship between the focusing distances existing when determining the preview image of the same shooting object under the same object distance of the first lens and the second lens may be determined in advance. And then determining the initial focusing distance of the second lens based on the focusing distance of the first lens and the association relation between the focusing distances.
In some embodiments, the same object distance is multiple sets;
the second processing unit is specifically used for
A first focusing distance corresponding to the first lens and a second focusing distance corresponding to the second lens under a plurality of groups of object distances are determined in advance;
Fitting to obtain a first fitting curve corresponding to the first lens based on the first focusing distances corresponding to the first lens under the plurality of groups of object distances;
fitting to obtain a second fitting curve corresponding to the second lens based on the second focusing distances corresponding to the second lens under the plurality of groups of object distances;
and determining the association relation between the focusing distances based on the first fitting curve and the second fitting curve.
In the embodiment of the disclosure, when determining the association relationship between the focusing distances, focusing tests under multiple groups of object distances can be performed in advance. For example, several groups of scenes are fixed, and the far view (1 m, 1.5m, 2m, 3m, 5m, etc.) in the close view (common object distance is 10cm, 30cm, 50 cm) is the far view (10 m, 20m, 30 m), etc. And focusing the first lens and the second lens respectively corresponding to the same object distance scene, and determining focusing distances corresponding to the lenses when the images are clear, namely, the first focusing distance and the second focusing distance. Then fitting to obtain a first fitting curve corresponding to the first lens based on the first focusing distances corresponding to the first lens under the plurality of groups of object distances; and fitting to obtain a second fitting curve corresponding to the second lens based on the second focusing distances corresponding to the plurality of groups of object distances of the second lens.
In the embodiment of the disclosure, after the first fitting curve corresponding to the first lens and the second fitting curve corresponding to the second lens are obtained by fitting, a focusing distance conversion algorithm can be updated through the first fitting curve and the second fitting curve, and the association relationship between the focusing distances is determined. And finally, obtaining the initial focusing distance of the second lens based on the obtained focusing distance of the first lens and a focusing distance conversion algorithm comprising the association relation between the focusing distances. The focusing distance conversion algorithm is used for converting the focusing distance under the same object distance between different lenses.
In some embodiments, the second processing unit is configured to, before determining, based on the focusing information of the first lens, that a second lens is used to determine initial focusing information of the preview image
Determining the working state of the second lens;
and if the second lens is determined to be in the closed state, determining initial focusing information of the second lens based on the focusing information of the first lens.
In the embodiment of the disclosure, before determining that the second lens is used to determine the initial focusing information of the preview image based on the focusing information of the first lens, the working state of the second lens needs to be determined. When the second lens is in the closed state, the second lens can be called based on the focusing method of the application. At this time, the second lens may be opened for the first time, that is, the initial setting of the second lens before the opening and calling is the default setting of the system, so as to play the effect of rapid focusing and convergence on the calling of the second lens.
In some embodiments, the focusing information includes at least: a focusing mode;
the second processing unit is specifically configured to determine a focusing mode of the first lens when determining a preview image for the second lens.
In an embodiment of the present disclosure, the focusing mode may at least include: single auto-focus, auto-servo focus, continuous auto-focus, etc. When determining the initial focus mode when the second lens is opened, the focus mode of the first lens may be determined (or synchronized) as the focus mode when the second lens determines the preview image, thereby facilitating focus shooting by the second lens without requiring manual intervention to modify the focus mode.
In some embodiments, the second processing unit is configured to
When the initial focusing information of the second lens is determined, synchronously updating initial settings of the second lens based on the initial focusing information, wherein the initial settings are used for determining an initial state when the second lens is opened, and the initial settings comprise: updating a focusing distance of the second lens to be the initial focusing distance, updating a focusing area of the second lens to be the initial focusing area, and updating a focusing mode of the second lens to be a focusing mode of the first lens; and
And determining the preview image based on the updated focusing distance setting, focusing area setting and focusing mode setting of the second lens.
In the embodiment of the disclosure, the focusing distance of the second lens is set to be used for determining the focusing distance in an initial state of focusing convergence when the second lens is opened; the focusing area of the second lens is set to a focusing area in an initial state for determining focusing convergence when the second lens is opened.
In the embodiment of the disclosure, when the initial focusing information of the second lens is determined, the initial setting of the second lens can be synchronously updated based on the initial focusing information, so that the lens switching is facilitated, focusing convergence shooting operation can be directly performed after the lens switching to the second lens, the shooting efficiency of the electronic device is improved, and the user experience is improved.
In some embodiments, the third processing unit is configured to
Based on the initial focusing information, completing automatic focusing convergence of the second lens on a shooting object;
and after focusing is finished, determining the preview image.
In the embodiment of the disclosure, after the automatic focusing convergence is completed, the preview image is determined, and no manual operation is required.
The embodiment of the disclosure also provides an electronic device, including: a processor and a memory, the memory having stored thereon a computer program capable of being run on the processor for performing the steps of the method according to the embodiments when the computer program is run.
The disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the method described in the embodiments.
Fig. 5 is a schematic view of an application scenario of an electronic device with a photographing function according to an exemplary embodiment. As shown in fig. 5, the electronic devices 101, 102 having a photographing function can be applied to a cellular network. And stopping wifi connection when receiving the indication of wireless transmission by adopting the cellular circuit, and recovering wifi connection when receiving the indication of wireless transmission by adopting the cellular circuit. The network environment includes electronic devices 101, 102, wifi access point 103, cellular base station 104, and network 105. )
Fig. 6 is a block diagram of an electronic device, according to an example embodiment. For example, the electronic device may be a mobile phone, computer, digital broadcast electronic device, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, and the like.
Referring to fig. 6, the electronic device may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device, such as operations associated with touch, phone call, data communication, camera operation, and recording operation. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, video, 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 various components of the electronic device. 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 electronic device devices.
The multimedia component 808 includes a screen between the electronic device 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 sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the electronic device is in an operational mode, such as a shooting 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 electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device. For example, the sensor assembly 814 may detect an on/off state of the electronic device, a relative positioning of the components, such as a display and keypad of the electronic device, the sensor assembly 814 may also detect a change in position of the electronic device or a component of the electronic device, the presence or absence of a user's contact with the electronic device, an orientation or acceleration/deceleration of the electronic device, and a change in temperature of the electronic device. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device and other devices, either wired or wireless. The electronic device may access a wireless network based on a communication standard, such as WiFi,4G, or 5G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 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.
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 disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general 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 (20)

1. A focusing method, characterized by comprising:
acquiring focusing information of a first lens, wherein the focusing information is used for determining a preview image by the first lens;
determining initial focusing information of a second lens for determining the preview image based on the focusing information of the first lens;
and calling the second lens based on the initial focusing information, and determining the preview image.
2. The focusing method of claim 1, wherein the determining, based on the focusing information of the first lens, initial focusing information of a second lens for determining the preview image includes at least:
determining the association relationship between focusing information existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same;
and determining the initial focusing information of the second lens based on the determined association relation and the focusing information of the first lens.
3. The focusing method according to claim 1, wherein the focusing information includes at least: a focusing distance and/or a focusing area; the initial focusing information at least comprises: an initial focus distance and/or an initial focus area;
the determining, based on the focusing information of the first lens, initial focusing information of a second lens for determining the preview image at least includes:
determining the initial focus distance of the second lens based on the focus distance of the first lens; and/or the number of the groups of groups,
the initial focus area of the second lens is determined based on the focus area of the first lens.
4. A focusing method according to claim 3, wherein said determining said initial focusing distance of said second lens based on said focusing distance of said first lens comprises at least:
determining the incidence relation between focusing distances existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same;
and determining the initial focusing distance of the second lens based on the acquired focusing distance of the first lens and the incidence relation between the focusing distances.
5. The focusing method of claim 4, wherein the same object distances are plural sets;
the determining of the association relationship between the focal distances at least comprises the following steps:
determining a first focusing distance corresponding to the first lens and a second focusing distance corresponding to the second lens under a plurality of groups of object distances;
fitting to obtain a first fitting curve corresponding to the first lens based on the first focusing distances corresponding to the first lens under the plurality of groups of object distances;
fitting to obtain a second fitting curve corresponding to the second lens based on the second focusing distances corresponding to the second lens under the plurality of groups of object distances;
and determining the association relation between the focusing distances based on the first fitting curve and the second fitting curve.
6. The method of focusing according to claim 1, wherein before determining initial focus information for the preview image for a second lens based on the focus information for the first lens, the method comprises:
determining the working state of the second lens;
and if the second lens is determined to be in the closed state, determining initial focusing information of the second lens based on the focusing information of the first lens.
7. A focusing method according to claim 3, characterized in that the focusing information comprises at least: a focusing mode;
the determining, based on the focusing information of the first lens, initial focusing information of a second lens for determining the preview image at least includes: and determining the focusing mode of the first lens as the focusing mode when the second lens determines a preview image.
8. The focusing method according to claim 7, characterized in that the method comprises:
when the initial focusing information of the second lens is determined, synchronously updating initial settings of the second lens based on the initial focusing information, wherein the initial settings are used for determining an initial state when the second lens is opened;
wherein the synchronously updating the initial settings of the second lens at least comprises: updating a focusing distance of the second lens to be the initial focusing distance, updating a focusing area of the second lens to be the initial focusing area, and updating a focusing mode of the second lens to be a focusing mode of the first lens;
the step of calling the second lens based on the initial focusing information to determine the preview image at least comprises the following steps:
And determining the preview image based on the updated focusing distance setting, focusing area setting and focusing mode setting of the second lens.
9. The focusing method of claim 1, wherein the invoking the second lens to determine the preview image based on the initial focusing information includes at least:
based on the initial focusing information, completing automatic focusing convergence of the second lens on a shooting object;
and after focusing is finished, determining the preview image.
10. A focusing device, characterized by comprising:
the first processing unit is used for acquiring focusing information of a first lens, wherein the focusing information is used for determining a preview image by the first lens;
a second processing unit configured to determine initial focusing information of a second lens for determining the preview image based on the focusing information of the first lens;
and the third processing unit is used for calling the second lens based on the initial focusing information and determining the preview image.
11. Focusing device according to claim 10, characterized in that the second processing unit is adapted to
Determining the association relationship between focusing information existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same;
And determining the initial focusing information of the second lens based on the determined association relation and the focusing information of the first lens.
12. The focusing device of claim 10, wherein the focusing information includes at least: a focusing distance and/or a focusing area; the initial focusing information at least comprises: an initial focus distance and/or an initial focus area;
the second processing unit is used for
Determining the initial focus distance of the second lens based on the focus distance of the first lens; and/or the number of the groups of groups,
the initial focus area of the second lens is determined based on the focus area of the first lens.
13. Focusing device according to claim 12, characterized in that the second processing unit is adapted to
Determining the incidence relation between focusing distances existing when determining preview images of the same shooting object under the condition that the object distances of the first lens and the second lens are the same;
and determining the initial focusing distance of the second lens based on the acquired focusing distance of the first lens and the incidence relation between the focusing distances.
14. The focusing device of claim 13, wherein the same object distances are in multiple groups;
the second processing unit is used for
Determining a first focusing distance corresponding to the first lens and a second focusing distance corresponding to the second lens under a plurality of groups of object distances;
fitting to obtain a first fitting curve corresponding to the first lens based on the first focusing distances corresponding to the first lens under the plurality of groups of object distances;
fitting to obtain a second fitting curve corresponding to the second lens based on the second focusing distances corresponding to the second lens under the plurality of groups of object distances;
and determining the association relation between the focusing distances based on the first fitting curve and the second fitting curve.
15. The focusing device of claim 10, wherein the second processing unit is configured to, before determining, based on the focusing information of the first lens, initial focusing information of a second lens for determining the preview image
Determining the working state of the second lens;
and if the second lens is determined to be in the closed state, determining initial focusing information of the second lens based on the focusing information of the first lens.
16. The focusing device of claim 11, wherein the focusing information includes at least: a focusing mode;
the second processing unit is configured to determine a focusing mode of the first lens to be a focusing mode when the second lens determines a preview image.
17. The focusing device of claim 16, wherein the second processing unit is configured to
When the initial focusing information of the second lens is determined, synchronously updating initial settings of the second lens based on the initial focusing information, wherein the initial settings are used for determining an initial state when the second lens is opened, and the initial settings comprise: updating a focusing distance of the second lens to be the initial focusing distance, updating a focusing area of the second lens to be the initial focusing area, and updating a focusing mode of the second lens to be a focusing mode of the first lens; and
and determining the preview image based on the updated focusing distance setting, focusing area setting and focusing mode setting of the second lens.
18. The focusing device of claim 10, wherein the third processing unit is configured to
Based on the initial focusing information, completing automatic focusing convergence of the second lens on a shooting object;
and after focusing is finished, determining the preview image.
19. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is adapted to perform the steps of the method of claims 1 to 9 when the computer program is run.
20. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to claims 1 to 9.
CN202210033156.4A 2022-01-12 2022-01-12 Focusing method, focusing device, electronic equipment and storage medium Pending CN116489507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210033156.4A CN116489507A (en) 2022-01-12 2022-01-12 Focusing method, focusing device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210033156.4A CN116489507A (en) 2022-01-12 2022-01-12 Focusing method, focusing device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116489507A true CN116489507A (en) 2023-07-25

Family

ID=87225459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210033156.4A Pending CN116489507A (en) 2022-01-12 2022-01-12 Focusing method, focusing device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116489507A (en)

Similar Documents

Publication Publication Date Title
CN106572299B (en) Camera opening method and device
CN110557547B (en) Lens position adjusting method and device
CN111586282B (en) Shooting method, shooting device, terminal and readable storage medium
US11252341B2 (en) Method and device for shooting image, and storage medium
CN107241535B (en) Flash lamp adjusting device and terminal equipment
CN111461950B (en) Image processing method and device
CN114339019B (en) Focusing method, focusing device and storage medium
CN111343375A (en) Image signal processing method and device, electronic device and storage medium
CN114339022B (en) Camera shooting parameter determining method and neural network model training method
CN107707819B (en) Image shooting method, device and storage medium
CN111698414B (en) Image signal processing method and device, electronic device and readable storage medium
CN116489507A (en) Focusing method, focusing device, electronic equipment and storage medium
CN114189622A (en) Image shooting method and device, electronic equipment and storage medium
US11838655B2 (en) Image acquiring method and apparatus, electronic device, and storage medium
CN114339018B (en) Method and device for switching lenses and storage medium
CN114339017B (en) Distant view focusing method, device and storage medium
CN113852752B (en) Photo taking method, photo taking device and storage medium
WO2023230860A1 (en) Zooming method, zooming device, electronic equipment, and storage medium
CN109862252B (en) Image shooting method and device
CN118200720A (en) Zoom control method, device and storage medium
CN106713748B (en) Method and device for sending pictures
CN106959875B (en) Front camera opening method, device and equipment
CN117412168A (en) Focusing method, device, equipment and storage medium
CN116419062A (en) Image processing method, device and storage medium
CN117956268A (en) Preview frame rate control method and device thereof

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