Focusing method, focusing device, electronic device, and storage medium
By acquiring the focus information of the first lens and optimizing the initial state of the second lens using the correlation between the first and second lenses, the problem of excessively long focus time during lens switching is solved, achieving fast focus and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-12
- Publication Date
- 2026-03-27
AI Technical Summary
In electronic devices with multiple cameras, traditional methods require focusing based on the system's default initial settings when switching lenses, which leads to longer focusing time. This makes it difficult to adapt quickly, especially in random shooting scenarios, thus affecting the user experience.
By acquiring the focus information of the first lens, the initial focus information of the second lens is determined. By utilizing the correlation between the first and second lenses, the initial state of the second lens is optimized to adapt to the current shooting scene and reduce focusing time.
It improves the autofocus convergence rate in multi-camera switching scenarios, reduces focusing time, and enhances the user experience.
Smart Images

Figure CN116489507B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of electronic technology, and in particular, to a focusing method, a focusing device, an electronic device, and a storage medium. BACKGROUND
[0002] With the rapid development of electronic technology, the functions of electronic devices such as smart phones are becoming more and more rich. Among them, the photographing function has become an essential function of electronic devices such as smart phones. When an electronic device takes a picture or makes a video through the photographing function, focusing is generally needed. After focusing is completed, image capturing is performed. SUMMARY
[0003] The present disclosure provides a focusing method, a focusing device, an electronic device, and a storage medium.
[0004] In a first aspect, the present disclosure provides a focusing method, comprising:
[0005] obtaining focusing information of a first lens, the focusing information being used by the first lens to determine a preview image;
[0006] determining, based on the focusing information of the first lens, initial focusing information of a second lens used to determine the preview image;
[0007] calling the second lens based on the initial focusing information, and determining the preview image.
[0008] In some embodiments, the determining, based on the focusing information of the first lens, initial focusing information of a second lens used to determine the preview image, at least comprises:
[0009] determining, when the first lens and the second lens are used to determine preview images of the same object at the same object distance, an association relationship between the focusing information existing in the preview images;
[0010] determining, based on the determined association relationship and the focusing information of the first lens, the initial focusing information of the second lens.
[0011] In some embodiments, the focusing information at least comprises a focusing distance and / or a focusing area, and the initial focusing information at least comprises an initial focusing distance and / or an initial focusing area.
[0012] The determining, based on the focusing information of the first lens, initial focusing information of a second lens used to determine the preview image, at least comprises:
[0013] determining, based on the focusing distance of the first lens, the initial focusing distance of the second lens; and / or
[0014] determine the initial focus distance of the second lens based on the focus distance of the first lens.
[0015] In some embodiments, the determining the initial focus distance of the second lens based on the focus distance of the first lens comprises at least:
[0016] determining the correlation between the focus distances when the first lens and the second lens are used to capture preview images of the same object at the same object distance;
[0017] determining the initial focus distance of the second lens based on the obtained focus distance of the first lens and the correlation between the focus distances.
[0018] In some embodiments, the same object distance is a plurality of groups.
[0019] The determining the correlation between the focus distances comprises at least:
[0020] determining a first focus distance corresponding to the first lens and a second focus distance corresponding to the second lens at a plurality of object distances;
[0021] fitting a first fitting curve corresponding to the first lens based on the first focus distance corresponding to the first lens at the plurality of object distances;
[0022] fitting a second fitting curve corresponding to the second lens based on the second focus distance corresponding to the second lens at the plurality of object distances;
[0023] determining the correlation between the focus distances based on the first fitting curve and the second fitting curve.
[0024] In some embodiments, before the determining the initial focus information of the second lens for capturing the preview image based on the focus information of the first lens, the method comprises:
[0025] determining the working state of the second lens;
[0026] if it is determined that the second lens is in an off state, determining the initial focus information of the second lens based on the focus information of the first lens.
[0027] In some embodiments, the focus information comprises at least a focus mode.
[0028] The determining the initial focus information of the second lens for capturing the preview image based on the focus information of the first lens comprises at least determining the focus mode of the first lens as the focus mode of the second lens when capturing the preview image.
[0029] In some embodiments, the method comprises:
[0030] When the initial focusing information of the second lens is determined, the initial setting of the second lens is synchronously updated based on the initial focusing information, the initial setting being used to determine the initial state of the second lens when the second lens is turned on;
[0031] The synchronously updating the initial setting of the second lens at least comprises: updating the focusing distance setting of the second lens to the initial focusing distance, updating the focusing area setting of the second lens to the initial focusing area, and updating the focusing mode setting of the second lens to the focusing mode of the first lens;
[0032] The calling the second lens based on the initial focusing information to determine the preview image at least comprises:
[0033] The determining the preview image based on the updated focusing distance setting, focusing area setting and focusing mode setting of the second lens.
[0034] In some embodiments, the calling the second lens based on the initial focusing information to determine the preview image at least comprises:
[0035] The automatic focusing convergence of the second lens to the photographed object is completed based on the initial focusing information;
[0036] After the focusing is completed, the preview image is determined.
[0037] A second aspect of the embodiments of the present disclosure provides a focusing device, comprising:
[0038] A first processing unit is configured to obtain focusing information of a first lens, the focusing information being used by the first lens to determine a preview image;
[0039] A second processing unit is configured to determine, based on the focusing information of the first lens, initial focusing information of a second lens used to determine the preview image;
[0040] A third processing unit is configured to call the second lens based on the initial focusing information to determine the preview image.
[0041] In some embodiments, the second processing unit is configured to
[0042] When the first lens and the second lens are used to determine the preview image of the same photographed object at the same object distance, an association relationship between the focusing information is determined;
[0043] determine the initial focus information of the second lens based on the determined correlation and the focus information of the first lens.
[0044] In some embodiments, the focus information at least includes a focus distance and / or a focus area, and the initial focus information at least includes an initial focus distance and / or an initial focus area.
[0045] The second processing unit is configured to
[0046] determine the initial focus distance of the second lens based on the focus distance of the first lens; and / or
[0047] determine the initial focus area of the second lens based on the focus area of the first lens.
[0048] In some embodiments, the second processing unit is configured to
[0049] determine a correlation between focus distances when the first lens and the second lens are used to capture preview images of the same object at the same object distance.
[0050] determine the initial focus distance of the second lens based on the determined correlation and the focus distance of the first lens.
[0051] In some embodiments, the same object distance is a plurality of groups.
[0052] The second processing unit is specifically configured to
[0053] determine a first focus distance corresponding to the first lens and a second focus distance corresponding to the second lens at a plurality of object distances.
[0054] fit a first fitting curve corresponding to the first lens based on the first focus distances corresponding to the first lens at the plurality of object distances.
[0055] fit a second fitting curve corresponding to the second lens based on the second focus distances corresponding to the second lens at the plurality of object distances.
[0056] determine the correlation between the focus distances based on the first fitting curve and the second fitting curve.
[0057] In some embodiments, before determining the initial focus information of the second lens based on the focus information of the first lens, the second processing unit is configured to
[0058] determine a working state of the second lens.
[0059] If it is determined that the second lens is in a closed state, initial focus information of the second lens is determined based on the focus information of the first lens.
[0060] In some embodiments, the focus information at least includes a focus mode.
[0061] The second processing unit is specifically configured to determine the focus mode of the first lens as the focus mode of the second lens when previewing the image.
[0062] In some embodiments, the second processing unit is configured to
[0063] When the initial focus information of the second lens is determined, initial settings of the second lens are synchronously updated based on the initial focus information, the initial settings being used to determine an initial state of the second lens when the second lens is opened, including: updating a focus distance setting of the second lens to the initial focus distance, updating a focus area setting of the second lens to the initial focus area, and updating a focus mode setting of the second lens to the focus mode of the first lens.
[0064] The preview image is determined based on the updated focus distance setting, focus area setting, and focus mode setting of the second lens.
[0065] In some embodiments, the third processing unit is configured to
[0066] The automatic focus convergence of the second lens on the photographed object is completed based on the initial focus information.
[0067] After the focus is completed, the preview image is determined.
[0068] A third aspect of the embodiments of the present disclosure provides an electronic device, including a processor and a memory, the memory having a computer program stored thereon and capable of running on the processor, and the processor is configured to run the computer program to execute the steps of the method of the first aspect.
[0069] A fourth aspect of the embodiments of the present disclosure provides a computer readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the steps of the method of the first aspect.
[0070] The technical solutions provided by the embodiments of the present disclosure can have the following beneficial effects:
[0071] The focusing method in the embodiments of the present disclosure includes: obtaining focusing information of a first lens, the focusing information being used by the first lens to determine a preview image; determining initial focusing information of a second lens used to determine the preview image based on the focusing information of the first lens; and calling the second lens based on the initial focusing information to determine the preview image. The focusing method in the present application can be applied to a photographing / camera shooting scene in which multiple camera lenses need to be switched. For example, the lens parameters of the first lens and the second lens are different, and the switching of the second lens is performed when the first lens is not suitable for the current photographing scene. In the traditional lens switching photographing, the initial state of the second lens when it is turned on is determined by the system default initial setting. However, in actual application, the photographing scene is random, the preview image determined by the first lens is random, and similarly, the preview image determined by the second lens when it is switched is also random. Therefore, the second lens needs to focus from the initial state determined by the system default initial setting, which undoubtedly prolongs the focusing time. In the present application, the initial focusing information of the second lens used to determine the preview image can be determined 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, that is, the focusing information when the first lens focuses to obtain a clear image. When the first lens is switched to the second lens, the preview image is obtained by photographing through the second lens, and at this time, the initial state of the second lens when it is turned on is determined by the initial focusing information determined by the focusing information of the first lens, rather than the initial setting of the system default. The initial focusing information of the second lens can be determined by the correlation between the focusing information of the first lens and the focusing information of the second lens when they focus on the same photographing scene, which can make the initial state of the second lens when it is turned on more suitable for the fast focusing of the current photographing scene to obtain the preview image, rather than refocusing in the initial state determined by the system default initial setting. Therefore, the focusing method in the present application is suitable for the photographing scene in which multiple camera lenses need to be switched, so as to improve the automatic focusing convergence rate of the second lens.
[0072] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0073] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.
[0074] Figure 1 is a flowchart of a focusing method according to an exemplary embodiment.
[0075] Figure 2An image shooting procedure according to an example embodiment Figure 1 .
[0076] Figure 3 An image shooting procedure according to an example embodiment Figure 2 .
[0077] Figure 4 A schematic diagram of a focusing device structure according to an example embodiment.
[0078] Figure 5 An application scenario of an electronic device with a shooting function according to an example embodiment.
[0079] Figure 6 A block diagram of an electronic device according to an example embodiment. DETAILED DESCRIPTION
[0080] The example embodiments will be described in detail herein with reference to the accompanying drawings. When the following description refers to accompanying drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following example embodiments do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of apparatuses consistent with some aspects of the present disclosure as detailed in the appended claims.
[0081] With the rapid development of electronic technology, electronic devices such as smart phones have more and more rich functions. Among them, the shooting function has become an indispensable function of smart phones and other electronic devices. When an electronic device shoots or takes a video through the shooting function, focusing is generally needed. After focusing is completed, image shooting is performed. Especially for electronic devices with multiple camera lenses, lens switching may also be used, and the switched lens needs to be refocused.
[0082] The embodiments of the present disclosure provide a focusing method. Figure 1 A flowchart of a focusing method according to an example embodiment is shown in FIG. 1. As shown in FIG. 1, the focusing method includes the following steps. Figure 1
[0083] Step 10, obtaining focusing information of a first lens, the focusing information being used by the first lens to determine a preview image;
[0084] Step 11, determining initial focusing information of a second lens for determining the preview image based on the focusing information of the first lens;
[0085] Step 12, calling the second lens based on the initial focusing information to determine the preview image.
[0086] In the embodiments of the present disclosure, the first lens and the second lens are both camera lenses used as master to determine the preview image for the foreground running. The first lens and the second lens can be the same type of lens or different types of lens. For example, the first lens can be a telephoto lens, and the second lens can also be a telephoto lens or a wide-angle lens.
[0087] In the embodiments of the present 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 includes: focusing distance, focusing area, focusing mode, etc. The initial focusing information of the second lens determines the initial state when the second lens is turned on, i.e. the initial focusing state.
[0088] In the embodiments of the present disclosure, the focusing method of the present application can be applied to the shooting of the camera scene of the multi-depth-of-field multi-camera lens group. For example, a group of camera lenses with camera lens A as master and camera lens B as slave is switched to another group of camera lenses with camera lens C as master and camera lens B as slave. It can also be the switching between two lenses alone, with camera lens A as master switched to camera lens C as master.
[0089] The focusing method in the embodiments of the present disclosure includes: obtaining focusing information of a first lens, the focusing information being used by the first lens to determine a preview image; determining, based on the focusing information of the first lens, initial focusing information of a second lens used to determine the preview image; and calling the second lens based on the initial focusing information to determine the preview image. The focusing method in the present application can be applied to a photographing / scanning scene in which multiple camera lenses need to be switched. For example, the lens parameters of the first lens and the second lens are different, and the switching of the second lens is performed when the first lens is not suitable for the current photographing scene. In the traditional lens switching photographing, the initial state of the second lens when it is turned on is determined by the system default initial setting. However, in actual application, the photographing scene is random, the preview image determined by the first lens is random, and similarly, the preview image determined by the second lens when it is switched is also random. Therefore, the second lens needs to converge from the initial state determined by the system default initial setting, which undoubtedly prolongs the focusing time. In the present application, the initial focusing information of the second lens used to determine the preview image can be determined 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, that is, the focusing information when the first lens focuses to obtain a clear image. When the first lens is switched to the second lens and the second lens is used to capture a preview image, the initial state of the second lens when it is turned on is determined by the initial focusing information determined by the focusing information of the first lens, rather than by the system default initial setting. The initial focusing information of the second lens can be determined by the correlation between the focusing information of the first lens and the focusing information of the second lens when they focus on the same photographing scene, which can make the initial state of the second lens when it is turned on more suitable for the fast focusing of the current photographing scene to obtain a preview image, rather than refocusing in the initial state determined by the system default initial setting. Therefore, the focusing method in the present application is suitable for the photographing scene in which multiple camera lenses need to be switched, so as to improve the automatic focusing convergence rate of the second lens.
[0090] In some embodiments, the determining, based on the focusing information of the first lens, of the initial focusing information of the second lens used to determine the preview image at least includes:
[0091] pre-determining a correlation between focusing information existing when the first lens and the second lens determine a preview image of the same photographing object at the same object distance;
[0092] determining the initial focusing information of the second lens based on the pre-determined correlation and the focusing information of the first lens.
[0093] In the embodiments of the present disclosure, when the first lens and the second lens determine preview images of the same shooting object at the same object distance, there is a correlation between the focusing information of the first lens and the second lens. The correlation between the focusing information of the first lens and the second lens can be determined by a plurality of tests in advance. Alternatively, the correlation between the focusing information of the first lens and the second lens when determining the preview images of the same shooting object at the same object distance can be established in advance.
[0094] In the embodiments of the present disclosure, the correlation between the focusing information includes at least a correlation between focusing areas, a correlation between focusing distances, and a correlation between focusing modes. Then, based on the determined correlation and the focusing information of the first lens, initial focusing information of the second lens is determined. The initial state determined based on the initial focusing information is used to perform focusing convergence of the second lens, and the preview image is determined.
[0095] In some embodiments, the focusing information includes at least a focusing distance and / or a focusing area, and the initial focusing information includes at least an initial focusing distance and / or an initial focusing area.
[0096] The determination of the initial focusing information of the second lens for determining the preview image based on the focusing information of the first lens includes at least:
[0097] The initial focusing distance of the second lens is determined based on the focusing distance of the first lens, and / or
[0098] The initial focusing area of the second lens is determined based on the focusing area of the first lens.
[0099] In the embodiments of the present disclosure, when the initial focusing information of the second lens for determining the preview image is determined based on the focusing information of the first lens, the initial focusing distance of the second lens can be determined based on the focusing distance of the first lens, and / or the initial focusing area of the second lens can be determined based on the focusing area of the first lens. The initial focusing distance is the focusing distance of the second lens when the second lens is opened and can be set by the driving motor of the second lens. The initial focusing area is the focusing area of the preview image that can be determined when the second lens is opened. Based on the initial focusing distance and the initial focusing area, the second lens determines the preview image.
[0100] In the embodiments of the present disclosure, the determination of the initial focusing area of the second lens based on the focusing area of the first lens includes at least:
[0101] determine a relative position between the first lens and the second lens and a field of view angle relationship between a first field of view angle of the first lens and a second field of view angle of the second lens when the first lens and the second lens are used to determine preview images of the same shooting object at the same object distance;
[0102] determine a relationship between focusing areas of the first lens and the second lens when the first lens and the second lens are used to determine preview images of the same shooting object at the same object distance based on the determined relative position between the first lens and the second lens and the field of view angle relationship;
[0103] obtain the initial focusing area of the second lens based on the obtained focusing area of the first lens and the relationship between the focusing areas.
[0104] In the embodiments of the present disclosure, the initial focusing distance and the initial focusing area of the second lens can be determined based on the relationship between the focusing distance and the focusing area of the first lens and the second lens when the first lens and the second lens are used to focus on the same shooting scene, which can make the initial state of the second lens when the second lens is turned on more suitable for fast focusing when obtaining a preview image of the current shooting scene, instead of refocusing in the initial state determined by the system default initial setting. Therefore, the focusing method in the present application is suitable for shooting scenes in which multiple camera lenses need to be switched, so as to improve the automatic focusing convergence rate of the second lens.
[0105] In some embodiments, the determining the initial focusing distance of the second lens based on the focusing distance of the first lens comprises at least:
[0106] determine a relationship between focusing distances when the first lens and the second lens are used to determine preview images of the same shooting object at the same object distance;
[0107] determine the initial focusing distance of the second lens based on the obtained focusing distance of the first lens and the relationship between the focusing distances.
[0108] In the embodiments of the present disclosure, when the initial focusing distance of the second lens is determined based on the focusing distance of the first lens, a relationship between focusing distances when the first lens and the second lens are used to determine preview images of the same shooting object at the same object distance can be determined in advance, or the relationship between the focusing distances when the first lens and the second lens are used to determine preview images of the same shooting object at the same object distance can be established in advance. Then, the initial focusing distance of the second lens is determined based on the focusing distance of the first lens and the relationship between the focusing distances.
[0109] In some embodiments, the same object distance is a plurality of groups.
[0110] The pre-determined correlation between the focusing distances comprises at least:
[0111] A plurality of groups of object distances are pre-determined, and the first focusing distance corresponding to the first lens and the second focusing distance corresponding to the second lens are determined under the plurality of groups of object distances.
[0112] A first fitting curve corresponding to the first lens is fitted based on the first focusing distance corresponding to the first lens under a plurality of groups of object distances.
[0113] A second fitting curve corresponding to the second lens is fitted based on the second focusing distance corresponding to the second lens under a plurality of groups of object distances.
[0114] The correlation between the focusing distances is determined based on the first fitting curve and the second fitting curve.
[0115] In the embodiments of the present disclosure, when the correlation between the focusing distances is determined, focusing tests under a plurality of groups of object distances can be performed in advance. For example, a plurality of groups of scenes are fixed, such as close-up scenes (common object distances are 10 cm, 30 cm, and 50 cm), long-distance scenes (common object distances are 1 m, 1.5 m, 2 m, 3 m, and 5 m), and super-long-distance scenes (10 m, 20 m, and 30 m). Corresponding to the same object distance scene, the first lens and the second lens are focused respectively, and the focusing distances corresponding to the lenses when the images are clear are determined, that is, the first focusing distance and the second focusing distance. Then, the first fitting curve corresponding to the first lens is fitted based on the first focusing distance corresponding to the first lens under a plurality of groups of object distances, and the second fitting curve corresponding to the second lens is fitted based on the second focusing distance corresponding to the second lens under a plurality of groups of object distances.
[0116] In the embodiments of the present disclosure, after the first fitting curve corresponding to the first lens and the second fitting curve corresponding to the second lens are fitted, the focusing distance conversion algorithm can be updated through the first fitting curve and the second fitting curve, and the correlation between the focusing distances is determined. Finally, the initial focusing distance of the second lens is obtained based on the focusing distance of the first lens and the focusing distance conversion algorithm containing the correlation between the focusing distances. The focusing distance conversion algorithm is used for focusing distance conversion under the same object distance between different lenses.
[0117] In some embodiments, before 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 method comprises:
[0118] The working state of the second lens is determined.
[0119] If it is determined that the second lens is in the off state, the initial focusing information of the second lens is determined based on the focusing information of the first lens.
[0120] In the embodiments of the present disclosure, before determining the initial focusing information of the second lens for determining the preview image based on the focusing information of the first lens, it is further needed to determine the working state of the second lens. When the second lens is in a closed state, the second lens can be called based on the focusing method of the present application. At this time, the second lens can be opened for the first time, i.e., the initial setting of the second lens before being called is the system default setting, so that the calling of the second lens has the effect of fast focusing convergence.
[0121] In some embodiments, the focusing information at least includes a focusing mode.
[0122] The determining of the initial focusing information of the second lens for determining the preview image based on the focusing information of the first lens at least includes determining the focusing mode of the first lens as the focusing mode of the second lens when determining the preview image.
[0123] In the embodiments of the present disclosure, the focusing mode at least includes single automatic focusing, automatic servo focusing, continuous automatic focusing, etc. When determining the initial focusing mode of the second lens when being opened, the focusing mode of the first lens can be determined as (or synchronized to be) the focusing mode of the second lens when determining the preview image, so that the focusing shooting through the second lens does not need to be manually intervened to modify the focusing mode.
[0124] In some embodiments, the method comprises:
[0125] When the initial focusing information of the second lens is determined, the initial setting of the second lens is updated based on the initial focusing information, and the initial setting is used to determine the initial state of the second lens when being opened.
[0126] The updating of the initial setting of the second lens at least includes updating the focusing distance setting of the second lens to the initial focusing distance, updating the focusing area setting of the second lens to the initial focusing area, and updating the focusing mode setting of the second lens to the focusing mode of the first lens.
[0127] The calling of the second lens based on the initial focusing information to determine the preview image at least includes:
[0128] The preview image is determined based on the updated focusing distance setting, focusing area setting and focusing mode setting of the second lens.
[0129] In the embodiments of the present disclosure, the focusing distance of the second lens is set to determine the focusing distance in the initial state of the focusing convergence when the second lens is opened; and the focusing area of the second lens is set to determine the focusing area in the initial state of the focusing convergence when the second lens is opened.
[0130] In the embodiments of the present 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 as to facilitate lens switching, so that after switching to the second lens, the focusing convergence shooting operation can be directly performed, the shooting efficiency of the electronic device is improved, and the user experience is improved.
[0131] In some embodiments, the calling the second lens based on the initial focusing information, and determining the preview image at least includes:
[0132] Based on the initial focusing information, the automatic focusing convergence of the second lens on the shooting object is completed.
[0133] After the focusing is completed, the preview image is determined.
[0134] In the embodiments of the present disclosure, after the automatic focusing convergence is completed, the preview image is determined, and manual operation is no longer needed.
[0135] In the embodiments of the present disclosure, in the traditional lens switching focusing process, about 6-10 frames of AF automatic focusing convergence time may be needed, and for the multi-depth-of-field scene, there may be a situation that the new and old master focusing areas are inconsistent, resulting in fov jump problem. In the scene of master switching, the initial focusing distance and the initial focusing area determined synchronously to the initial setting of the second lens when the new master is opened as the slave, so that the second lens can quickly converge the focusing state when switching as the master, avoiding the situation that after the master is switched, the new master focuses to the new focusing area, resulting in preview shaking and affecting the user experience. At the same time, the automatic and rapid convergence (only about 1-2 frames of AF automatic focusing convergence time) is achieved when switching, and the focusing information of the automatic focusing handshake with the shooting app is no longer needed, and manual refocusing is triggered, thereby improving the user experience.
[0136] Figure 2 An image shooting process is shown according to an example embodiment Figure 1 The image shooting process includes:
[0137] Step 210: a shooting application program APP sends a shooting request to a control unit;
[0138] Step 211: the control unit generates a control logic based on the request;
[0139] Step 212: the control logic is executed by the workflow;
[0140] Step 213: the control unit calls the lens to shoot based on the control logic;
[0141] Step 214: after shooting, image processing is performed;
[0142] Step 215: finally, the processed image is output.
[0143] Figure 3 is an image shooting process according to an example embodiment Figure 2 . The image shooting process includes:
[0144] Step 310: the shooting application APP sends a shooting request to the control unit;
[0145] Step 311: the control unit generates control logic based on the request;
[0146] Step 312: the control logic is executed by the workflow;
[0147] Step 313: the control unit switches the lens to shoot based on the control logic;
[0148] Step 314: the control unit determines whether the switched second lens is opened for the first time;
[0149] Step 315: when the second lens is opened for the first time, the focusing information of the first lens is determined;
[0150] Step 316: based on the focusing information of the first lens, the initial focusing information of the second lens is determined;
[0151] Step 317: the initial focusing information is updated to the initial setting of the second lens by the algorithm module two, image shooting is performed, and after shooting, step 320 is performed;
[0152] Step 318: when the second lens is not opened for the first time, the second lens is called;
[0153] Step 319: after opening the second lens, the algorithm module one is used to perform normal shooting operation;
[0154] Step 320: after shooting, image processing is performed;
[0155] Step 321: finally, the processed image is output.
[0156] A second aspect of the embodiment of the present disclosure provides a focusing device. Figure 4 is a structural diagram of a focusing device according to an example embodiment. As Figure 4 shown, the focusing device includes:
[0157] The first processing unit 41 is configured to acquire focus information of the first lens, the focus information being used by the first lens to determine a preview image;
[0158] The second processing unit 42 is configured to determine initial focus information of a second lens for determining the preview image based on the focus information of the first lens;
[0159] The third processing unit 43 is configured to determine the preview image based on the initial focus information and the second lens.
[0160] In the embodiments of the present disclosure, the first lens and the second lens are both camera lenses used as master to determine the preview image in the foreground. The first lens and the second lens can be the same type of lens or different types of lens. For example, the first lens can be a telephoto lens, and the second lens can be a telephoto lens or a wide-angle lens.
[0161] In the embodiments of the present disclosure, the first lens determines the preview image based on the focus information. The focus information determines the current focus state of the first lens. The focus information at least includes: focus distance, focus area, focus mode, etc. The initial focus information of the second lens determines the initial state of the second lens when it is turned on, i.e. the initial focus state.
[0162] In the embodiments of the present disclosure, the focus method of the present application can be applied to the shooting of the camera scene of the multi-depth-of-field multi-camera lens group. For example, a group of camera lenses with camera lens A as master and camera lens B as slave is switched to another group of camera lenses with camera lens C as master and camera lens B as slave. It can also be the switching between two lenses alone, with camera lens A as master switched to camera lens C as master.
[0163] The focusing method in the embodiments of the present disclosure includes: obtaining focusing information of a first lens, the focusing information being used by the first lens to determine a preview image; determining initial focusing information of a second lens used to determine the preview image based on the focusing information of the first lens; and calling the second lens based on the initial focusing information to determine the preview image. The focusing method in the present application can be applied to a photographing / scanning scene in which multiple camera lenses need to be switched. For example, the lens parameters of the first lens and the second lens are different, and the switching of the second lens is performed when the first lens is not suitable for the current photographing scene. In the traditional lens switching photographing, the initial state of the second lens when it is turned on is determined by the system default initial setting. However, in actual application, the photographing scene is random, the preview image determined by the first lens is random, and similarly, the preview image determined by the second lens when it is switched is also random. Therefore, the second lens needs to focus from the initial state determined by the system default initial setting, which undoubtedly prolongs the focusing time. In the present application, the initial focusing information of the second lens used to determine the preview image can be determined 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, that is, the focusing information when the first lens focuses to obtain a clear image. When the first lens is switched to the second lens and the second lens is used to capture a preview image, the initial state of the second lens when it is turned on is determined by the initial focusing information determined by the focusing information of the first lens, rather than the initial setting of the second lens based on the system default. The initial focusing information of the second lens can be determined by the correlation between the focusing information of the first lens and the focusing information of the second lens when they focus on the same photographing scene, which can make the initial state of the second lens when it is turned on more suitable for the fast focusing of the current photographing scene to obtain a preview image, rather than refocusing in the initial state determined by the system default initial setting. Therefore, the focusing method in the present application is suitable for the photographing scene in which multiple camera lenses need to be switched, so as to improve the automatic focusing convergence rate of the second lens.
[0164] In some embodiments, the second processing unit is configured to
[0165] The correlation between the focusing information of the first lens and the focusing information of the second lens when they focus on the same photographing object at the same object distance is determined in advance.
[0166] The initial focusing information of the second lens is determined based on the pre-determined correlation and the focusing information of the first lens.
[0167] In the embodiments of the present disclosure, when the first lens and the second lens determine the preview image of the same shooting object at the same object distance, there is a correlation relationship between the focusing information. The correlation relationship between the focusing information of the first lens and the second lens can be determined through a plurality of tests in advance. Alternatively, the correlation relationship between the focusing information of the first lens and the second lens when determining the preview image of the same shooting object at the same object distance is established in advance.
[0168] In the embodiments of the present disclosure, the correlation relationship between the focusing information at least includes a correlation relationship between focusing areas, a correlation relationship between focusing distances, and a correlation relationship between focusing modes. Then, based on the determined correlation relationship and the focusing information of the first lens, the initial focusing information of the second lens is determined. The initial state determined based on the initial focusing information is used to perform focusing convergence of the second lens to determine the preview image.
[0169] In some embodiments, the focusing information at least includes a focusing distance and / or a focusing area; and the initial focusing information at least includes an initial focusing distance and / or an initial focusing area.
[0170] The second processing unit is configured to
[0171] The initial focusing distance of the second lens is determined based on the focusing distance of the first lens; and / or
[0172] The initial focusing area of the second lens is determined based on the focusing area of the first lens.
[0173] In the embodiments of the present disclosure, when the initial focusing information of the second lens for determining the preview image is determined based on the focusing information of the first lens, the initial focusing distance of the second lens can be determined based on the focusing distance of the first lens; and / or the initial focusing area of the second lens can be determined based on the focusing area of the first lens. The initial focusing distance is the focusing distance of the second lens when the driving motor of the second lens is set to be open. The initial focusing area is the focusing area of the second lens when the preview image is determined to be converged. Based on the initial focusing distance and the initial focusing area, the second lens determines the preview image.
[0174] In the embodiments of the present disclosure, the initial focusing area of the second lens is determined based on the focusing area of the first lens, at least including:
[0175] The relative position between the first lens and the second lens and the correlation relationship between the first field angle of the first lens and the second field angle of the second lens when the first lens and the second lens determine the preview image of the same shooting object at the same object distance are determined (or established) in advance;
[0176] Based on the determined relative positions between the first lens and the second lens, and the correlation between the field of view angles, the correlation between the focus areas of the first lens and the second lens when determining the preview image of the same photographed object at the same object distance is determined.
[0177] Based on the focus area of the first lens and the correlation between the focus areas, the initial focus area of the second lens is obtained.
[0178] In this embodiment, since the initial focusing distance and initial focusing area of the second lens can be determined separately by the correlation between the focusing distance and focusing area pre-determined when the first and second lenses focus on the same shooting scene, the initial state when the second lens is opened is more suitable for rapid focusing when acquiring a preview image of the current shooting scene, rather than refocusing in the initial state determined by the system's default initial settings. Therefore, the focusing method in this application is applicable to shooting scenarios where multiple cameras require lens switching, thereby improving the autofocus convergence rate of the second lens.
[0179] In some embodiments, the second processing unit is used for
[0180] The correlation between focus distances when determining the preview image of the same photographed object under the same object distance of the first lens and the second lens is determined in advance;
[0181] Based on the obtained focusing distance of the first lens and the correlation between the focusing distances, the initial focusing distance of the second lens is determined.
[0182] In this embodiment of the disclosure, when determining the initial focusing distance of the second lens based on the focusing distance of the first lens, the correlation between focusing distances when determining the preview image of the same object under the same object distance of the first and second lenses can be predetermined, or the correlation between focusing distances when determining the preview image of the same object under the same object distance of the first and second lenses can be predetermined. Then, based on the focusing distance of the first lens and the correlation between focusing distances, the initial focusing distance of the second lens is determined.
[0183] In some embodiments, the same object distance is in multiple groups;
[0184] The second processing unit is specifically used for
[0185] The first focusing distance corresponding to the first lens and the second focusing distance corresponding to the second lens are predetermined under multiple sets of object distances;
[0186] fitting the first fitting curve corresponding to the first lens based on the first focusing distances corresponding to the multiple groups of object distances under the first lens;
[0187] fitting the second fitting curve corresponding to the second lens based on the second focusing distances corresponding to the multiple groups of object distances under the second lens;
[0188] determining the correlation between the focusing distances based on the first fitting curve and the second fitting curve.
[0189] In the embodiments of the present disclosure, when determining the correlation 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, such as close-range scenes (common object distances are 10 cm, 30 cm, and 50 cm), long-range scenes (common object distances are 1 m, 1.5 m, 2 m, 3 m, and 5 m), and super-long-range scenes (10 m, 20 m, and 30 m). Corresponding to the same object distance scene, the first lens and the second lens are focused respectively, and the focusing distances corresponding to the clear images of the lenses, i.e., the first focusing distances and the second focusing distances, are determined. Then, the first fitting curve corresponding to the first lens is fitted based on the first focusing distances corresponding to the multiple groups of object distances under the first lens, and the second fitting curve corresponding to the second lens is fitted based on the second focusing distances corresponding to the multiple groups of object distances under the second lens.
[0190] In the embodiments of the present disclosure, after the first fitting curve corresponding to the first lens and the second fitting curve corresponding to the second lens are fitted, the focusing distance conversion algorithm can be updated through the first fitting curve and the second fitting curve, and the correlation between the focusing distances is determined. Finally, the initial focusing distance of the second lens is obtained based on the focusing distance of the first lens and the focusing distance conversion algorithm containing the correlation between the focusing distances. The focusing distance conversion algorithm is used for focusing distance conversion under the same object distance between different lenses.
[0191] In some embodiments, before the second processing unit determines the initial focusing information of the second lens based on the focusing information of the first lens, the second processing unit is configured to
[0192] determine the working state of the second lens;
[0193] If it is determined that the second lens is in the off state, the initial focusing information of the second lens is determined based on the focusing information of the first lens.
[0194] In the embodiments of the present disclosure, based on the focusing information of the first lens, the working state of the second lens needs to be determined before the second lens is used to determine the initial focusing information of the preview image. When the second lens is in a closed state, the second lens can be called based on the focusing method of the present application. At this time, the second lens can be opened for the first time, that is, the initial setting of the second lens before being opened and called is the system default setting, so that the calling of the second lens has the effect of fast focusing convergence.
[0195] In some embodiments, the focusing information at least includes a focusing mode.
[0196] The second processing unit is specifically configured to determine the focusing mode of the first lens as the focusing mode of the second lens when determining the preview image.
[0197] In the embodiments of the present disclosure, the focusing mode at least includes single automatic focusing, automatic servo focusing, continuous automatic focusing, etc. When the initial focusing mode of the second lens is determined, the focusing mode of the first lens is determined as (or synchronized to) the focusing mode of the second lens when determining the preview image, so that the focusing shooting through the second lens does not need manual intervention to modify the focusing mode.
[0198] In some embodiments, the second processing unit is configured to
[0199] When the initial focusing information of the second lens is determined, the initial setting of the second lens is updated based on the initial focusing information, and the initial setting is used to determine the initial state of the second lens when being opened, including: updating the focusing distance setting of the second lens to the initial focusing distance, updating the focusing area setting of the second lens to the initial focusing area, and updating the focusing mode setting of the second lens to the focusing mode of the first lens; and
[0200] Based on the updated focusing distance setting, focusing area setting and focusing mode setting of the second lens, the preview image is determined.
[0201] In the embodiments of the present disclosure, the focusing distance setting of the second lens is used to determine the focusing distance in the initial state of the second lens when being opened for focusing convergence; and the focusing area setting of the second lens is used to determine the focusing area in the initial state of the second lens when being opened for focusing convergence.
[0202] In the embodiments of the present disclosure, when the initial focusing information of the second lens is determined, the initial setting of the second lens is updated based on the initial focusing information, so as to facilitate lens switching, so that after switching to the second lens, the focusing convergence shooting operation can be directly performed, the photographing efficiency of the electronic device is improved, and the user experience is improved.
[0203] In some embodiments, the third processing unit is configured to
[0204] Based on the initial focusing information, the second lens completes automatic focusing convergence on the photographed object.
[0205] After the focusing is completed, the preview image is determined.
[0206] In the embodiments of the present disclosure, the preview image is determined after the automatic focusing convergence is completed, and no manual operation is required.
[0207] The embodiments of the present disclosure also provide an electronic device, including a processor and a memory, wherein the memory stores a computer program capable of running on the processor, and the processor is configured to run the computer program to perform the steps of the method of each embodiment.
[0208] The embodiments of the present disclosure also provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the method of each embodiment.
[0209] Figure 5 is an application scenario diagram of an electronic device with a shooting function according to an exemplary embodiment. As shown in Figure 5 , the electronic device with a shooting function 101, 102 can be applied to a cellular network. When receiving an indication of wireless transmission using a cellular circuit, stop the wifi connection, and when receiving an indication of stopping wireless transmission using a cellular circuit, restore the wifi connection. The network environment includes electronic devices 101, 102, wifi access points 103, cellular base stations 104 and networks 105.
[0210] Figure 6 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device can be a mobile phone, a computer, a digital broadcast electronic device, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0211] Referring to Figure 6 , the electronic device can 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.
[0212] The processing component 802 generally controls the overall operation of the electronic device 800, such as the conduction of operations associated with the touch, phone calls, data communications, camera operations, and recording operations. The processing component 802 can be implemented by one or more processors 820 to execute instructions to complete the steps of the methods described above, in whole or in part. Further, the processing component 802 can include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0213] The memory 804 is configured to store various types of data to support the operations of the electronic device 800. Examples of these data include instructions to operate any applications or methods on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be realized by any type of volatile or non-volatile memory devices or a combination thereof, 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 disc, or optical disc.
[0214] The power component 806 provides power to the various components of the electronic device 800. The power component 806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0215] The multimedia component 808 includes a screen to provide an output interface between the electronic device 800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 808 includes a front camera and / or a back camera. The front camera and / or the back camera can receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each of the front camera and the back camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0216] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the electronic device is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0217] The I / O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0218] The sensor component 814 includes one or more sensors for providing status assessments of various aspects of the electronic device. For example, the sensor component 814 can detect an open / closed position of the electronic device, relative positioning of components, such as a display and a keypad of the electronic device, a change of position of the electronic device or a component of the electronic device, presence or absence of user contact with the electronic device, the orientation or acceleration / deceleration of the electronic device, and a temperature change of the electronic device. The sensor component 814 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in an imaging application. In some embodiments, the sensor component 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0219] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device and another device. The electronic device can access a wireless network based on a communication standard, such as WiFi, 4G, or 5G, or a combination thereof. In an example embodiment, the communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 816 includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technology.
[0220] In an exemplary embodiment, the electronic device apparatus can be implemented using 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, micro-controllers, microprocessors, or other electronic elements for performing the above methods.
[0221] Other embodiments of the disclosure will be apparent to those of ordinary skill in the art from a consideration of the specification and practice of the disclosure disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
[0222] It is to be understood that the disclosure is not limited to the precise construction described above and shown in the attached drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the disclosure is limited only by the claims that follow.
Claims
1. A focusing method, characterized in that, include: When the first lens and the second lens determine the preview image of the same object at the same object distance, the relative positions between the first lens and the second lens, and the correlation between the field of view angles between the first field of view angle of the first lens and the second field of view angle of the second lens are predetermined. Based on the predetermined relative positions between the first lens and the second lens, and the correlation between the field of view angles, the correlation between the focus areas of the first lens and the second lens when determining the preview image of the same photographed object at the same object distance is determined. Obtain the focus information of the first lens, and the focus information is used by the first lens to determine the preview image; If it is determined that the second lens is in a closed state, based on the focus information of the first lens, it is determined that the second lens is used to determine the initial focus information of the preview image; wherein, the focus information includes a focus area, and the initial focus information includes an initial focus area; the initial focus area is determined based on the focus area of the first lens and the correlation between the focus areas. Based on the initial focus information, the second lens is invoked to determine the preview image.
2. The focusing method according to claim 1, characterized in that, The step of determining the initial focus information of the second lens for determining the preview image based on the focus information of the first lens includes at least: When determining the focus information correlation between the first lens and the second lens at the same object distance, and when determining the preview image of the same photographed object; Based on the determined correlation and the focus information of the first lens, the initial focus information of the second lens is determined.
3. The focusing method according to claim 1, characterized in that, The focus information also includes at least: focus distance; the initial focus information also includes at least: initial focus distance; The step of determining the initial focus information of the second lens for determining the preview image based on the focus information of the first lens further includes at least: The initial focus distance of the second lens is determined based on the focus distance of the first lens.
4. The focusing method according to claim 3, characterized in that, Determining the initial focus distance of the second lens based on the focus distance of the first lens includes at least: When determining the preview image of the same photographed object under the same object distance of the first lens and the second lens, the correlation between the focus distances is determined; Based on the obtained focusing distance of the first lens and the correlation between the focusing distances, the initial focusing distance of the second lens is determined.
5. The focusing method according to claim 4, characterized in that, The same object distance is in multiple groups; Determining the correlation between focusing distances includes at least: Under multiple object distances, the first focusing distance corresponding to the first lens and the second focusing distance corresponding to the second lens are determined; Based on the first focusing distance corresponding to multiple object distances of the first lens, a first fitting curve corresponding to the first lens is obtained by fitting. Based on the second focusing distance corresponding to multiple object distances of the second lens, a second fitting curve corresponding to the second lens is obtained by fitting. Based on the first fitting curve and the second fitting curve, the correlation between the focusing distances is determined.
6. The focusing method according to claim 3, characterized in that, The focus information includes at least: focus mode; The step of determining the initial focus information of the second lens for determining the preview image based on the focus information of the first lens includes at least: determining the focus mode of the first lens as the focus mode when the second lens determines the preview image.
7. The focusing method according to claim 6, characterized in that, The method includes: When the initial focus information of the second lens is determined, the initial settings of the second lens are updated synchronously based on the initial focus information. The initial settings are used to determine the initial state when the second lens is turned on. The synchronous update of the initial settings of the second lens includes at least: updating the focus distance of the second lens to the initial focus distance, updating the focus area of the second lens to the initial focus area, and updating the focus mode of the second lens to the focus mode of the first lens; The step of calling the second lens based on the initial focus information to determine the preview image includes at least: The preview image is determined based on the updated focus distance setting, focus area setting, and focus mode setting of the second lens.
8. The focusing method according to claim 1, characterized in that, The step of calling the second lens based on the initial focus information to determine the preview image includes at least: Based on the initial focus information, the second lens completes the autofocus convergence of the photographed object; After focusing is complete, the preview image is determined.
9. A focusing device, characterized in that, include: The second processing unit is used to predetermine the relative positions between the first lens and the second lens when the first lens and the second lens determine the preview image of the same object at the same object distance, as well as the correlation between the field of view angles between the first field of view angle of the first lens and the second field of view angle of the second lens. Based on the predetermined relative positions between the first lens and the second lens, and the correlation between the field of view angles, the correlation between the focus areas of the first lens and the second lens when determining the preview image of the same photographed object at the same object distance is determined. The first processing unit is used to acquire the focus information of the first lens, and the focus information is used by the first lens to determine the preview image. The second processing unit is configured to, if it is determined that the second lens is in a closed state, determine, based on the focus information of the first lens, the initial focus information of the second lens for determining the preview image; wherein, the focus information includes a focus area, and the initial focus information includes an initial focus area; the initial focus area is determined based on the focus area of the first lens and the correlation between the focus areas. The third processing unit is used to call the second lens based on the initial focus information and determine the preview image.
10. The focusing device according to claim 9, characterized in that, The second processing unit is used for When determining the focus information correlation between the first lens and the second lens at the same object distance, and when determining the preview image of the same photographed object; Based on the determined correlation and the focus information of the first lens, the initial focus information of the second lens is determined.
11. The focusing device according to claim 9, characterized in that, The focus information also includes at least: focus distance; the initial focus information also includes at least: initial focus distance; The second processing unit is used for The initial focus distance of the second lens is determined based on the focus distance of the first lens.
12. The focusing device according to claim 11, characterized in that, The second processing unit is used for When determining the preview image of the same photographed object under the same object distance of the first lens and the second lens, the correlation between the focus distances is determined; Based on the obtained focusing distance of the first lens and the correlation between the focusing distances, the initial focusing distance of the second lens is determined.
13. The focusing device according to claim 12, characterized in that, The same object distance is in multiple groups; The second processing unit is used for Under multiple object distances, the first focusing distance corresponding to the first lens and the second focusing distance corresponding to the second lens are determined; Based on the first focusing distance corresponding to multiple object distances of the first lens, a first fitting curve corresponding to the first lens is obtained by fitting. Based on the second focusing distance corresponding to multiple object distances of the second lens, a second fitting curve corresponding to the second lens is obtained by fitting. Based on the first fitting curve and the second fitting curve, the correlation between the focusing distances is determined.
14. The focusing device according to claim 10, characterized in that, The focus information includes at least: focus mode; The second processing unit is used to determine the focus mode of the first lens as the focus mode when the second lens determines the preview image.
15. The focusing device according to claim 14, characterized in that, The second processing unit is used for When the initial focus information of the second lens is determined, the initial settings of the second lens are synchronously updated based on the initial focus information. The initial settings are used to determine the initial state when the second lens is open, including: updating the focus distance of the second lens to the initial focus distance, updating the focus area of the second lens to the initial focus area, and updating the focus mode of the second lens to the focus mode of the first lens; and The preview image is determined based on the updated focus distance setting, focus area setting, and focus mode setting of the second lens.
16. The focusing device according to claim 9, characterized in that, The third processing unit is used for Based on the initial focus information, the second lens completes the autofocus convergence of the photographed object; After focusing is complete, the preview image is determined.
17. An electronic device, characterized in that, include: A processor and a memory for storing a computer program capable of running on the processor, wherein the processor, when running the computer program, performs the steps of the method according to any one of claims 1 to 8.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Image processing method and device, storage medium and electronic equipment
CN110691192A
Preview image display method and device, computer equipment and storage medium
CN113473002A