Photographing method, apparatus, electronic device, storage medium, and program product

CN122970358APending Publication Date: 2026-10-23BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510481236.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2026-10-23

AI Technical Summary

Benefits of technology

[0049]根据本公开实施例的第五方面,提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如本公开实施例的第一方面中所述的拍摄方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122970358A_ABST
    Figure CN122970358A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a photographing method and device, electronic equipment, storage medium and program product. The method comprises: in response to a photographing operation, determining a target photographing mode corresponding to a current photographing scene based on scene information of the current photographing scene and configuration information in a case where a preset function is triggered; the preset function is used to represent that the first photographing mode is allowed to be automatically started or automatically stopped, the target photographing mode comprises the first photographing mode or a second photographing mode, the first photographing mode is used to photograph an image with a high dynamic range, and the configuration information is used to represent a configured photographing parameter related to the current photographing scene; switching the photographing mode to the target photographing mode; and photographing the current photographing scene in the target photographing mode to obtain a target image. The present disclosure can realize seamless and smooth switching between the first photographing mode and the second photographing mode on the basis of improving the image quality of the photographing, thereby improving the photographing experience of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of photography technology, and more particularly to a photography method, apparatus, electronic device, storage medium, and program product. Background Technology

[0002] With the development of electronic technology, taking pictures with electronic devices has become an indispensable part of daily life. As a result, users have higher and higher requirements for the pictures or videos they take. For example, some users want to take higher quality pictures or videos, while others want to have a better shooting experience. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this disclosure provides a shooting method, apparatus, electronic device, storage medium, and program product.

[0004] According to a first aspect of the present disclosure, a shooting method is provided, comprising:

[0005] In response to a shooting operation, when a preset function is triggered, a target shooting mode corresponding to the current shooting scene is determined based on scene information and configuration information of the current shooting scene. The preset function is used to indicate whether the first shooting mode is allowed to be automatically turned on or off. The target shooting mode includes the first shooting mode or the second shooting mode. The first shooting mode is used to shoot images with high dynamic range, and the second shooting mode is used to shoot images without high dynamic range. The configuration information is used to indicate the shooting parameters configured in relation to the current shooting scene.

[0006] Switch the shooting mode to the target shooting mode;

[0007] The target image is obtained by capturing the current shooting scene in the target shooting mode.

[0008] In some embodiments, determining the target shooting mode corresponding to the current shooting scene based on scene information and configuration information of the current shooting scene when a preset function is triggered includes:

[0009] When the preset function is triggered at the shooting focal length in the current shooting scene, and the first lens has the first capability, the target shooting mode is determined based on the scene information and the configuration information; the first lens is the lens corresponding to the shooting focal length in the current electronic device, and the first lens has the first capability to characterize the hardware performance of the first lens to support the first shooting mode.

[0010] In some embodiments, the method further includes:

[0011] Obtain lens information corresponding to the shooting focal length; the lens information includes at least identification information, which is used to identify the type of lens corresponding to the shooting focal length;

[0012] Based on the lens information and the scene information, the preset function is triggered by the shooting focal length in the current shooting scene.

[0013] In some embodiments, determining the shooting focal length in the current shooting scene to trigger the preset function based on the lens information and the scene information includes:

[0014] In response to the matching of the scene information and the lens information with the reference information in the preset evaluation information, the preset function is triggered at the shooting focal length in the current shooting scene. The preset evaluation information includes multiple reference information, including reference scene information of the reference shooting scene and reference lens information corresponding to the reference shooting focal length. The preset function is triggered at the reference shooting focal length in the reference shooting scene.

[0015] In some embodiments, the method further includes:

[0016] In response to a change in at least one of the scene information and camera information, update the scene information and camera information to obtain the updated scene information and updated camera information.

[0017] In some embodiments, the method further includes:

[0018] In response to the target lens of the current electronic device having the first capability, the preset shooting function of the target lens is activated; the preset shooting function is used to capture high dynamic range images, and the target lens includes at least the first lens.

[0019] In some embodiments, the method further includes:

[0020] Obtain the exposure information of the current shooting scene;

[0021] Based on the exposure information, the configuration information is determined; the configuration information includes the exposure number in the current shooting scene and the state parameters of the first shooting mode, the state parameters of the first shooting mode being used to characterize whether the first shooting mode is entered and the type of the first shooting mode when entering the first shooting mode.

[0022] In some embodiments, determining the target shooting mode corresponding to the current shooting scene based on scene information and configuration information of the current shooting scene includes:

[0023] In response to the fact that the image to be captured is an image other than the first frame image during the shooting process, the target shooting mode corresponding to the current shooting scene is determined based on the scene information and the configuration information.

[0024] In some embodiments, determining the target shooting mode corresponding to the current shooting scene based on scene information and configuration information of the current shooting scene includes:

[0025] Determine at least one reference shooting mode corresponding to the scene information; the at least one reference shooting mode includes at least one first shooting mode and / or a second shooting mode;

[0026] Based on the configuration information, the target shooting mode is determined among the at least one reference shooting mode.

[0027] In some embodiments, determining the target shooting mode based on the configuration information among the at least one reference shooting mode includes:

[0028] Determine the triggering condition corresponding to each of the at least one reference shooting modes; the triggering condition is used to characterize the triggering threshold of the shooting parameters represented by the reference configuration information under the reference shooting scene;

[0029] In response to the configuration information satisfying the target triggering condition, the reference shooting mode corresponding to the target triggering condition is determined as the target shooting mode; the target triggering condition is any one of the at least one triggering condition, and the configuration information satisfying the target triggering condition means that the shooting parameters represented by the configuration information reach the triggering threshold represented by the target triggering condition, and the triggering threshold represented by the target triggering condition means the triggering threshold of the shooting parameters represented by the target configuration information in the target shooting scene.

[0030] In some embodiments, the method further includes:

[0031] In response to the image to be captured being the first frame image in the shooting process, the target shooting mode is determined to be the second shooting mode.

[0032] In some embodiments, capturing the current shooting scene in the target shooting mode to obtain a target image includes:

[0033] The current shooting scene is captured in the target shooting mode to obtain a first image and a second image; the exposure time of the first image and the exposure time of the second image are different;

[0034] The target image is determined based on the first image and the second image.

[0035] According to a second aspect of the present disclosure, a shooting device is provided, comprising:

[0036] The determination module is configured to, upon triggering a preset function, determine the target shooting mode corresponding to the current shooting scene based on scene information and configuration information of the current shooting scene; the preset function is used to indicate that the first shooting mode is allowed to be automatically turned on or off, the target shooting mode includes the first shooting mode or the second shooting mode, the first shooting mode is used to shoot images with high dynamic range, the second shooting mode is used to shoot images without high dynamic range, and the configuration information is used to indicate the configured shooting parameters related to the current shooting scene;

[0037] The processing module is configured to switch the shooting mode to the target shooting mode;

[0038] The shooting module is configured to capture the current shooting scene in the target shooting mode to obtain a target image.

[0039] In some embodiments, the determining module is configured to:

[0040] When the preset function is triggered at the shooting focal length in the current shooting scene, and the first lens has the first capability, the target shooting mode is determined based on the scene information and the configuration information; the first lens is the lens corresponding to the shooting focal length in the current electronic device, and the first lens has the first capability to characterize the hardware performance of the first lens to support the first shooting mode.

[0041] In some embodiments, the determining module is further configured to:

[0042] Obtain lens information corresponding to the shooting focal length; the lens information includes at least identification information, which is used to identify the type of lens corresponding to the shooting focal length;

[0043] Based on the lens information and the scene information, the preset function is triggered by the shooting focal length in the current shooting scene.

[0044] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0045] processor;

[0046] Memory used to store processor-executable instructions;

[0047] The processor is configured to perform the shooting method as described in the first aspect of this disclosure.

[0048] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the shooting method as described in the first aspect of the present disclosure.

[0049] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the shooting method as described in the first aspect of the present disclosure.

[0050] The method described above, as disclosed in this disclosure, has the following beneficial effects: The method provided in the embodiments of this disclosure can determine a suitable target shooting mode for the current shooting scene based on scene information and configuration information of the actual shooting scene. It is applicable to all shooting scenes, and using a suitable target shooting mode for shooting helps improve the quality of the captured images. Furthermore, when automatic activation or deactivation of the first shooting mode is allowed, seamless and smooth switching between the first and second shooting modes can be achieved, thereby improving the user's shooting experience.

[0051] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0052] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0053] Figure 1 This is a flowchart illustrating a shooting method according to an exemplary embodiment.

[0054] Figure 2 This is a flowchart illustrating a shooting method according to an exemplary embodiment.

[0055] Figure 3 This is a flowchart illustrating a shooting method according to an exemplary embodiment.

[0056] Figure 4A This is a schematic diagram illustrating a shooting mode according to an exemplary embodiment.

[0057] Figure 4B This is a schematic diagram illustrating a shooting mode according to an exemplary embodiment.

[0058] Figure 5 This is a flowchart illustrating a shooting method according to an exemplary embodiment.

[0059] Figure 6 This is a block diagram illustrating a shooting device according to an exemplary embodiment.

[0060] Figure 7 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0061] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0062] To address the aforementioned issues, this disclosure provides a shooting method. In response to a shooting operation, upon triggering a preset function, this disclosure determines a target shooting mode corresponding to the current shooting scene based on scene information and configuration information. The preset function indicates whether a first shooting mode is allowed to be automatically turned on or off. The target shooting mode includes either a first shooting mode or a second shooting mode. The first shooting mode is used to capture images with high dynamic range, and the second shooting mode is used to capture images without high dynamic range. The configuration information indicates the configured shooting parameters related to the current shooting scene.

[0063] The method provided in this disclosure can determine a suitable target shooting mode for the current shooting scene based on scene information and configuration information of the actual shooting scene. It is applicable to all shooting scenarios, and using the appropriate target shooting mode for shooting helps improve the quality of the captured images. In addition, when automatic activation or deactivation of the first shooting mode is allowed, seamless and smooth switching between the first shooting mode and the second shooting mode can be achieved, thereby improving the user's shooting experience.

[0064] The shooting method provided in this embodiment is executed by an electronic device, which may be a mobile phone, tablet computer, laptop, smart robot, smart wearable device, or other smart device.

[0065] Figure 1 This is a flowchart illustrating a photographing method according to an exemplary embodiment, performed by an electronic device. See also... Figure 1 The method includes the following steps:

[0066] Step S101: In response to the shooting operation, if the preset function is triggered, the target shooting mode corresponding to the current shooting scene is determined based on the scene information and configuration information of the current shooting scene.

[0067] The preset function is used to indicate whether the first shooting mode can be automatically turned on or off. The target shooting mode includes the first shooting mode or the second shooting mode. That is, the target shooting mode corresponding to the current shooting scene can be the first shooting mode or the second shooting mode. The first shooting mode is used to shoot images with high dynamic range, and the second shooting mode is used to shoot images without high dynamic range. The configuration information is used to indicate the shooting parameters configured related to the current shooting scene.

[0068] In some embodiments, the shooting operation can be initiated by a user or an electronic device, and the shooting operation can include taking a picture or recording a video. Accordingly, when the shooting operation is a picture, a single target image can be obtained. When the shooting operation is a video recording, multiple target images can be obtained, and a recorded video can then be generated based on these multiple target images.

[0069] In some embodiments, the electronic device may, in response to a shooting request corresponding to a shooting operation, obtain scene information and configuration information of the current shooting scene, and perform subsequent steps based on the scene information and configuration information. A brief explanation of the scene information and configuration information follows.

[0070] The scene information for the current shooting scene can include the type of the current shooting scene, the subjects included in the current shooting scene, and the status value (OperationMode) of the current shooting scene. Among them, the status value (OperationMode) of the current shooting scene can distinguish the type of shooting scene. For example, the status value of a video recording scene is 8004, while the status value of a still photography scene is 9002.

[0071] Optionally, configuration information can be determined based on the display conditions of the current shooting scene. These display conditions can include the color display, brightness display, and other aspects of the current shooting scene. For example, configuration information can include color parameters, exposure parameters, and other information for the current shooting scene.

[0072] In some embodiments, the electronic device can automatically turn on or off the first shooting mode based on scene information and configuration information of the current shooting scene, thereby determining the target shooting mode corresponding to the current shooting scene. The target shooting mode can be the first shooting mode or the second shooting mode.

[0073] In some embodiments, the first shooting mode may refer to a High-Dynamic Range (HDR) shooting mode. HDR shooting mode can be used to capture images with high dynamic range. High dynamic range refers to the breadth of the brightness range that can be captured and rendered in an image. Images with high dynamic range have a wider brightness range and can retain rich details in both shadow and highlight areas. Furthermore, the image also has richer color details, higher contrast, and an effect closer to what the human eye sees.

[0074] The second shooting mode is a non-HDR shooting mode, i.e., the normal shooting mode. This mode can be used to capture images that do not have a high dynamic range. It should be noted that compared to HDR images captured in the first shooting mode, non-HDR images captured in the second shooting mode may have poorer color detail and a smaller brightness range. Therefore, shooting in the first shooting mode will result in better image / video display quality.

[0075] In one example, the default function could be AutoHDR, which allows the electronic device to automatically turn HDR shooting mode on or off. Additionally, it should be noted that when the electronic device turns off HDR shooting mode, it can still capture the current scene in a second shooting mode.

[0076] In some embodiments, the electronic device can store configuration information in real time to a preset file (HDR_info meta file) corresponding to the first shooting mode. During the process of determining the target shooting mode, it retrieves the configuration information from the preset file and determines the target shooting mode based on the retrieved configuration information and scene information. It should be noted that the configuration information in the preset file can be updated in real time in response to changes in the configuration information. The shooting parameters represented by the configuration information can include multiple parameters or a single parameter.

[0077] In related technologies, higher quality images can be obtained by manually enabling or disabling the high dynamic range (HDR) shooting mode in multi-camera scenarios. For example, users can manually enable the HDR shooting mode control in the display interface to achieve HDR shooting and obtain HDR images. However, manually enabling or disabling the HDR shooting mode in multi-camera scenarios is not only unsuitable for all shooting scenarios but also reduces the quality of the captured images. For instance, users may not be able to enable or manually enable the HDR shooting mode in scenarios where it is required. Compared to related technologies, the embodiments of this disclosure can determine the target shooting mode for the current shooting scenario based on scene information and configuration information of the actual shooting scenario. This target shooting mode is applicable to all shooting scenarios, and using an appropriate target shooting mode improves the quality of the captured images. Furthermore, the embodiments of this disclosure can automatically enable / disable the first shooting mode, thereby reducing the complexity of manual operation and improving shooting efficiency.

[0078] Step S102: Switch the shooting mode to target shooting mode.

[0079] In some embodiments, the current shooting mode can be obtained, and in response to a difference between the current shooting mode and the target shooting mode, the shooting mode can be switched from the current shooting mode to the target shooting mode. In one example, the electronic device can perform switching between a first shooting mode and a second shooting mode; for example, the electronic device can switch the shooting mode from the first shooting mode to the second shooting mode; or, the electronic device can switch the shooting mode from the second shooting mode back to the first shooting mode.

[0080] Alternatively, in some embodiments, the shooting mode is kept as the target shooting mode in response to the current shooting mode being the same as the target shooting mode.

[0081] In some embodiments, a sensor is provided in the lens of the electronic device. The electronic device can determine the sensor parameters corresponding to the target shooting mode and set the sensor parameters to the sensor parameters corresponding to the target shooting mode, thereby switching the shooting mode to the target shooting mode.

[0082] In related technologies, manually turning high dynamic range (HDR) shooting mode on or off cannot achieve a smooth switching between shooting modes, which can degrade the user's shooting experience. However, in this embodiment, the electronic device can automatically turn the first shooting mode on or off, thus enabling a seamless and smooth switching between the first and second shooting modes, thereby improving the user's shooting experience.

[0083] Step S103: Capture the current scene in target shooting mode to obtain the target image.

[0084] In some embodiments, the shooting operation can be either a photo capture operation or a video recording operation. In one example, when the shooting operation is a photo capture operation, a photo of the current shooting scene can be taken to obtain a target image; while when the shooting operation is a video recording operation, a video of the current shooting scene can be recorded to obtain multiple target images. It should be noted that image capture and output can be achieved through sensors installed in the electronic device; the specific process will not be elaborated here.

[0085] In one example, when the shooting operation is a video recording operation, a target video can be generated based on multiple target images. In some embodiments, multiple target images can be input into a preset encoding algorithm and / or a preset encoding application to obtain the target video.

[0086] In some embodiments, the target image or video can be displayed on the display interface of an electronic device for user viewing. Users can personalize the target image or video displayed on the display interface.

[0087] The method provided in this disclosure can determine the target shooting mode based on relevant information of the actual scene, thereby providing a shooting method applicable to all shooting scenarios. Furthermore, it can determine a suitable shooting mode based on relevant information of the actual scene, thereby improving shooting accuracy. In addition, by automatically turning the first shooting mode on or off based on relevant information of the actual scene, a seamless and smooth switching between the first and second shooting modes can be achieved, thereby improving the user's shooting experience.

[0088] Taking the shooting operation as an example, in some embodiments, when the target shooting mode is the second shooting mode, the target image obtained by taking a picture of the current shooting scene in the second shooting mode is an image determined based on a single image. This single image only has one exposure time, and correspondingly, the color display of the image may be relatively poor.

[0089] In some embodiments, when the target shooting mode is the first shooting mode, the target image obtained by taking a picture of the current shooting scene in the first shooting mode is an image determined based on at least two images, each of which has a different exposure duration. Optionally, the target image can be determined based on a first image and a second image, and the exposure durations of the first image and the second image can be different. In one example, the first image can be a long exposure image, while the second image can be a short exposure image. The long exposure image can capture details in the dark areas of the scene, but may cause overexposure in the bright areas; the short exposure image can retain details in the bright areas, but details in the dark areas may be lost.

[0090] In some embodiments, the first image and the second image can be fused to obtain the target image. Thus, by fusing the image features of the first image and the second image, high dynamic range images can be generated and fused based on multi-scale sampling, taking into account multiple weighted factors such as gradient, saturation, and brightness, starting from long-exposure and short-exposure image data. This effectively overcomes the problem of excessive dynamic range and generates images with greater realism and detail.

[0091] In some embodiments, the first shooting mode may include multiple types of first shooting modes, and the fusion method of the first image and the second image acquired under different types of first shooting modes is different. Optionally, for some types of first shooting modes, the first image and the second image can be fused directly in the lens sensor during the shooting process (provided that the hardware performance of the lens sensor meets the fusion requirements), thereby directly outputting the target image. Optionally, for some types of first shooting modes, the lens can output the first image and the second image, and input the first image and the second image into an Online Fusion Engine (OFE) for fusion.

[0092] In some embodiments, the fusion method of the first image and the second image can be determined based on whether the hardware performance of the lens sensor meets the fusion requirements. Optionally, if the hardware performance of the lens sensor meets the fusion requirements, the first image and the second image can be fused using the lens sensor in any shooting mode. Optionally, if the hardware performance of the lens sensor does not meet the non-fusion requirements, the first image and the second image can be input to the OFE for fusion.

[0093] It should be noted that, regardless of the fusion method used, other operations can be performed on the first image, the second image, or the fused image before or after fusion. For example, noise reduction operations can be performed on the image to reduce noise, improve image clarity, and optimize image display; or brightness optimization operations can be performed on the image.

[0094] Additionally, when the shooting operation is a video recording operation, it can be understood as multiple consecutive photo shooting operations. The process of determining the target image in a single photo shooting operation can be referred to the above content, and will not be repeated here.

[0095] The method provided in this disclosure can acquire at least two images with different exposure times in a first shooting mode, and then fuse these images to obtain a target image. Thus, by fusing images with different exposure times, an image with better display quality can be obtained, thereby improving the user's viewing experience.

[0096] In some embodiments, a preset function can be triggered at the shooting focal length in the current shooting scene, and if the first lens has the first capability, the target shooting mode can be determined based on scene information and configuration information.

[0097] In some embodiments, the shooting focal length can be used to characterize the range of change of a zoom lens between different focal lengths. The shooting focal length triggering a preset function can mean that the lens corresponding to the shooting focal length can trigger a preset function. The lens corresponding to the shooting focal length can be used to characterize the target type of lens corresponding to the shooting focal length. That is, in the current shooting scene, when shooting with a lens of the target type, the AutoHDR shooting option can be triggered. Thus, in the current shooting scene, the electronic device can automatically turn HDR shooting mode on or off.

[0098] Additionally, the type of lens corresponding to a different focal length may change. Optionally, the target lens type can include telephoto lenses, wide-angle lenses, ultra-wide-angle lenses, main lenses, macro lenses, etc.

[0099] Optionally, the lens corresponding to the shooting focal length can include a single lens or multiple lenses, and when multiple lenses are included, each lens can be of a different type. For example, if an electronic device is equipped with a main camera lens and a telephoto lens in the focal length range of 35mm-85mm, then the lens corresponding to the shooting focal length can include both a main camera lens and a telephoto lens.

[0100] In some embodiments, the first lens is a lens corresponding to the shooting focal length in the current electronic device, that is, the first lens is a lens of the target type in the current electronic device, and the first lens has a first capability to characterize the hardware performance of the first lens to support the first shooting mode.

[0101] In some embodiments, the current shooting scene can be determined based on the number of lenses corresponding to the shooting focal length. Optionally, when the shooting focal length corresponds to multiple lenses, the current shooting scene can be a multi-camera shooting scene; while when the shooting focal length corresponds to a single lens, the current shooting scene can be a single-camera shooting scene. Accordingly, the type and number of the first lens can correspond to the type and number of lenses corresponding to the shooting focal length. Similarly, when the first lens includes a single lens, it can correspond to a single-camera scene, and when the first lens includes multiple lenses, it can correspond to a multi-camera scene.

[0102] To facilitate understanding, the following example will briefly explain the relationship between the lens corresponding to the shooting focal length and the first lens. For instance, if the lenses corresponding to the shooting focal length are a telephoto lens and a main camera lens, and the current electronic device is equipped with lenses 1-3, where lens 1 is the main camera lens, lens 2 is a telephoto lens, and lens 3 is an ultra-wide-angle lens, then the first lens can refer to lens 1 and lens 2 in the current electronic device.

[0103] Among these, preset functions can broadly refer to the software-level capabilities of a certain type of lens. The first lens possesses the first capability, which characterizes the hardware performance of the first lens to support the first shooting mode. This first capability can be defined as StaggerHDR capability.

[0104] The following explains the process of determining the preset functions supported by the lens for the current shooting focal length.

[0105] In some embodiments, lens information corresponding to the shooting focal length can be obtained, and based on the lens information and scene information, it can be determined whether the shooting focal length in the current shooting scene triggers a preset function; the lens information includes at least identification information, which is used to identify the lens corresponding to the shooting focal length.

[0106] Optionally, the identification information may include a first identifier and a second identifier. The first identifier can be used to identify the type of lens. Different types of lenses have different first identifiers; for example, the first identifiers for telephoto lenses and main lenses are different. The second identifier can also be used to identify the type of lens, and the first and second identifiers are related. In one example, the second identifier can be used to distinguish between the main lens and other lenses that are auxiliary to the main lens in a multi-camera scene. The main lens refers to the lens primarily used for shooting, such as the main camera lens.

[0107] In some embodiments, for each shooting scenario and each shooting focal length, taking a reference shooting scenario and reference shooting focal length as an example, a first shooting mode can be forcibly enabled before the electronic device leaves the factory. When the first shooting mode is enabled, a first reference image is determined based on reference scene information corresponding to the reference shooting scenario and reference lens information corresponding to the reference shooting focal length. The reference lens information includes at least reference identification information, which is used to identify the type of lens corresponding to the reference shooting focal length. Alternatively, without enabling a preset shooting mode, a second reference image can be determined based on the reference scene information corresponding to the reference shooting scenario and the reference lens information corresponding to the reference shooting focal length. In response to the image quality of the first reference image being higher than the image quality of the second reference image, a preset function is triggered for the reference shooting focal length in the reference shooting scenario. Conversely, in response to the image quality of the first reference image being lower than or equal to the image quality of the second reference image, a preset function is triggered for the reference shooting focal length in the reference shooting scenario.

[0108] It is understandable that, through the above process, images corresponding to each situation can be obtained when the first shooting mode is turned on and when the first shooting mode is turned off. If the image obtained when the first shooting mode is turned on has image gain compared to the image when the first shooting mode is turned off, then it is determined that the preset function can be triggered at the reference shooting focal length in the reference shooting scene.

[0109] In some embodiments, reference information for triggering a preset function can be saved to preset evaluation information. Thus, the preset evaluation information includes multiple reference information, including reference scene information for a reference shooting scene and reference lens information corresponding to a reference shooting focal length, and the preset function is triggered at the reference shooting focal length in the reference shooting scene.

[0110] In some embodiments, scene information and lens information can be matched with preset evaluation information, and it can be determined whether the reference shooting focal length in the matched reference information triggers the preset function, so as to determine whether the lens corresponding to the shooting focal length supports the preset function. Optionally, the preset evaluation information may also include reference information in which the reference shooting focal length does not trigger the preset function in the reference shooting scene.

[0111] In some embodiments, if the preset evaluation information only includes reference information supporting the preset function, scene information and lens information can be matched with the preset evaluation information. In response to the scene information and lens information matching the reference information in the preset evaluation information, it is determined that the preset function is triggered at the reference shooting focal length in the reference shooting scene. In some embodiments, if the preset evaluation information includes reference information indicating whether the preset function is triggered / not triggered at the reference shooting focal length, scene information and lens information can be matched with the preset evaluation information. In response to the scene information and lens information matching the reference information in the preset evaluation information, a matching result is determined; the matching result is used to characterize whether the preset function is triggered at the reference shooting focal length in the reference shooting scene.

[0112] The following explains how to determine that the first shot possesses the first capability.

[0113] In some embodiments, lens parameters of a first lens can be obtained, and based on these parameters, it can be determined that the first lens possesses a first capability. The lens parameters can be used to characterize the hardware performance of the first lens. In response to the first lens possessing the first capability, a preset shooting function of the first lens can be activated. This preset shooting function is used to capture high dynamic range images.

[0114] In some embodiments, the electronic device may acquire lens parameters of each of its equipped lenses, determine whether each lens possesses a first capability based on the lens parameters of each lens, and determine that a target lens possesses the first capability, wherein the target lens includes at least the first lens. In response to the electronic device's target lens possessing the first capability, a preset shooting function of the target lens is activated; the preset shooting function is used to capture high dynamic range images, wherein the target lens includes at least the first lens.

[0115] In some embodiments, if the preset function is triggered at the shooting focal length in the current shooting scene and the first lens has the first capability, shooting can be performed using either the first shooting mode or the second shooting mode based on the actual situation. If the preset function is not triggered at the shooting focal length in the current shooting scene and / or the first lens does not have the first capability, shooting can be performed using the second shooting mode.

[0116] In some embodiments, in response to a change in at least one of the scene information and lens information, the scene information and lens information are updated to obtain updated scene information and updated lens information. For example, when the current shooting scene changes, the scene information will change accordingly based on the change in the current shooting scene; or, when the user zooms in or out of the current shooting scene, the shooting focal length changes, the lens corresponding to the shooting focal length changes, and the lens information will also change accordingly. Then, the updated scene information and updated lens information can be matched with reference information given in preset evaluation information. In this way, the method shown in the embodiments of this disclosure can be executed cyclically when at least one of the scene information and lens information changes, thereby determining the target shooting mode in real time and performing seamless switching between shooting modes to obtain an image with excellent display effect.

[0117] It should be noted that when the shooting focal length changes, the preset function can be triggered by resetting the shooting focal length in the current shooting scene. In this way, this disclosure can provide a shooting method under all focal lengths, thereby realizing a shooting method under all scenes and all focal lengths.

[0118] The method provided in this disclosure can determine whether the shooting focal length in the current shooting scene can trigger a preset function, and whether the first lens has a first capability. If the preset function is triggered at the shooting focal length in the current shooting scene and the first lens has the first capability, the electronic device can be jointly determined to support HDR shooting at both the software and hardware levels. In this way, during subsequent shooting, the electronic device can smoothly switch between the first shooting mode and the second shooting mode in real time based on the actual situation, thereby improving the display effect of the target image.

[0119] In some embodiments, the following is by Figure 2The illustrated embodiment explains the process of determining configuration information.

[0120] Figure 2 This is a flowchart illustrating a photographing method according to an exemplary embodiment, performed by an electronic device. See also... Figure 2 The method includes the following steps:

[0121] Step S201: Obtain the exposure information of the current shooting scene.

[0122] In one example, exposure information may include ISO sensitivity, shutter speed, autofocus (AF) algorithm status value, auto white balance (AWB) algorithm status value, and auto exposure (AE) algorithm status value. The autofocus algorithm adjusts the lens's focal length to ensure the subject is in sharp focus. The auto white balance algorithm adjusts the image's color balance to ensure realistic and natural colors. The auto exposure algorithm adjusts exposure parameters during shooting to ensure the captured image has appropriate brightness.

[0123] It should be noted that the state value of the autofocus algorithm can refer to the focus parameters, the state value of the auto white balance algorithm refers to the appropriate exposure parameters determined based on the current ISO, current shutter speed, and other exposure parameters.

[0124] In some embodiments, after the preset function is triggered at the shooting focal length in the current shooting scene and the first lens has the first capability, the exposure information and shooting mode can be initialized. For example, the parameters in the exposure information can be initialized to preset values ​​and the shooting mode can be initialized to a preset mode.

[0125] Step S202: Determine configuration information based on exposure information.

[0126] The configuration information includes the exposure count (ExpNum) for the current shooting scene and the status parameter (DcgMode) of the first shooting mode. The status parameter of the first shooting mode indicates whether the first shooting mode has been entered and the type of the first shooting mode when it is entered. It should be noted that the electronic device can be set with multiple first shooting modes. The type of the first shooting mode refers to any one of the multiple types of first shooting modes. Different types of first shooting modes correspond to different status parameters.

[0127] Exposure count is used to characterize the number of images taken during the shooting process to synthesize a final image. Multiple images can be images with different exposure levels. For example, for HDR shooting mode, the exposure count can be 2 or 3. When the exposure count is 2, long exposure images and short exposure images can be captured; while when the exposure count is 3, long exposure images, medium exposure images, and short exposure images can be captured.

[0128] In one example, exposure information can be input into the Automatic Exposure Control (AEC) algorithm, and configuration information can be determined based on the AEC algorithm.

[0129] The method provided in this disclosure can determine configuration information through exposure information, thereby obtaining an image with color balance, realistic colors, and appropriate brightness.

[0130] In some embodiments, using the first shooting mode provides a better viewing experience for the user. However, if the first shooting mode is used to capture the first frame of the image, the resulting image will have a wide brightness range, which may irritate the user's eyes and affect the user's viewing experience.

[0131] Therefore, in some embodiments, in response to the image to be captured being the first frame image during the shooting process, the target shooting mode is determined to be a second shooting mode; the second shooting mode is used to capture images that do not have a high dynamic range. Thus, the display effect of the first frame image during the shooting process will be softer, thereby reducing eye strain and making the first frame image more suitable for user viewing.

[0132] In some embodiments, in response to the image to be captured being an image other than the first frame image during the shooting process, the target shooting mode corresponding to the current shooting scene is determined based on scene information and configuration information.

[0133] The method provided in this disclosure allows for a softer image display effect when capturing the first frame image by employing a second shooting mode; and when capturing other images besides the first frame image by employing a target shooting mode, images using a shooting mode suitable for the current shooting scene can be obtained, thereby achieving a better display effect.

[0134] This disclosure does not limit the specific types of the first and second shooting modes. Optionally, the second shooting mode may include a pixel binning shooting mode. The binning shooting mode can merge multiple adjacent pixels into one pixel. Optionally, the first shooting mode may include at least one of several shooting modes, such as Double Gain (DXG) shooting mode, Dual Output Line 2 (DOL2) shooting mode, Camera Management System (CMS) shooting mode, Double eXposure Gain timing (DXG timing) shooting mode, Double eXposure Gain Combine (DXG Combine) shooting mode, Low Bitrate Motion Feedback (LBMF) shooting mode, and Low Frequency Image Analysis (LOFIA) shooting mode.

[0135] DXG shooting mode is a mode that captures two frames in a single exposure. These two frames can be read using High Conversion Gain (HCG) and Low Conversion Gain (LCG) respectively, or High Analog Gain (HAG) and Low Analog Gain (LAG) respectively. DOL2 shooting mode is a dual-output line mode, typically used for exposure timing control of the image sensor. DOL2 mode enables High Dynamic Range (HDR) shooting by acquiring multiple frames with different exposure timings. CMS shooting mode can be used to control and manage various lens parameters and functions. DXG timing shooting mode is a specific exposure timing mode used to control the exposure timing of the image sensor in DXG shooting mode and improve HDR effects by optimizing the exposure timing. DXG COMBINE shooting mode is a mode that fuses multiple frames acquired in DXG mode. This mode generates a final image with a wider dynamic range by fusing images with different gains. LBMF (Low Bit Rate Motion Feedback) mode is typically used in video recording to optimize motion compensation and coding efficiency through a feedback mechanism. Lofia Image Analysis (LOFIA) mode is used to analyze and process low-frequency information in images, and is commonly used for image enhancement and noise suppression.

[0136] In some embodiments, scene information may correspond to at least one shooting mode, and different scene information may correspond to different at least one shooting mode. For example, scene information for a night scene recording scene may correspond to Binning shooting mode, DXG shooting mode, and CMS shooting mode; similarly, scene information for a document photography scene may correspond to Binning shooting mode, DXG shooting mode, DOL2 shooting mode, and CMS shooting mode. In some embodiments, at least one reference shooting mode corresponding to the scene information may be determined; the at least one reference shooting mode includes at least one first shooting mode and / or a second shooting mode, wherein the second shooting mode is used to capture images without high dynamic range; based on configuration information, a target shooting mode is determined among the at least one reference shooting mode.

[0137] The method provided in this disclosure can determine the most suitable shooting mode (i.e., the target shooting mode) among at least one shooting mode by combining configuration information with scene information. In this way, scene information and configuration information can be comprehensively considered to specifically determine the target shooting mode that is suitable for the current scene information and current configuration information, thereby improving the display effect of the image obtained in the target shooting mode.

[0138] In some embodiments, each reference shooting mode corresponds to its own triggering condition. Configuration information can be compared with the triggering condition of each reference shooting mode. When the configuration information meets any triggering condition, the reference shooting mode corresponding to that triggering condition is determined as the target shooting mode. In some embodiments, when the image to be captured is an image other than the first frame image during the shooting process, it can be handled as follows: Figure 3 The illustrated embodiment explains the process of determining the target shooting mode.

[0139] Figure 3 This is a flowchart illustrating a photographing method according to an exemplary embodiment, performed by an electronic device. See also... Figure 3 The method includes the following steps:

[0140] Step S301: Determine the trigger condition corresponding to each reference shooting mode in at least one reference shooting mode; the trigger condition is used to characterize the trigger threshold of the shooting parameters represented by the reference configuration information in the reference shooting scene.

[0141] The reference shooting mode may include a first shooting mode and / or a second shooting mode.

[0142] In some embodiments, when there are multiple shooting parameters, each shooting reference corresponds to a trigger threshold.

[0143] Step S302: In response to the configuration information satisfying the target triggering condition, the reference shooting mode corresponding to the target triggering condition is determined as the target shooting mode.

[0144] Among them, the target trigger condition is any one of the at least one trigger condition. The configuration information satisfies the target trigger condition, which means that the shooting parameters represented by the configuration information reach the trigger threshold represented by the target trigger condition. The trigger threshold represented by the target trigger condition is the trigger threshold of the shooting parameters represented by the target configuration information in the target shooting scene.

[0145] In some embodiments, the configuration information can be matched with the triggering conditions corresponding to each reference shooting mode. If the parameter value in the configuration information reaches the triggering threshold in the target triggering condition, the reference shooting mode corresponding to the target triggering condition is determined as the target shooting mode. Alternatively, if the configuration information does not meet any triggering condition, shooting is performed based on the second shooting mode.

[0146] It should be noted that the trigger threshold can be set and selected based on actual needs. For example, the trigger threshold can be a first preset value or a second preset value.

[0147] The method provided in this disclosure can determine the trigger conditions corresponding to each reference shooting mode, compare the configuration information with the trigger conditions, and determine the reference shooting mode corresponding to the target trigger conditions that the configuration information satisfies as the target shooting mode. In this way, a shooting mode suitable for the actual shooting parameters can be determined, thereby obtaining a target image with better display effects.

[0148] In some embodiments, the execution of this disclosure involves calls to underlying logic and devices. The following describes the execution process of an exemplary imaging method.

[0149] In response to a shooting operation, the electronic device can determine whether the shooting focal length in the current shooting scene triggers a preset function. If the shooting focal length in the current shooting scene does not trigger the preset function, the second shooting mode is used for shooting. If the shooting focal length in the current shooting scene triggers the preset function, it determines whether the first lens has the first capability. If the first lens has the first capability, the preset shooting function of the first lens is activated. At the same time, the electronic device will also determine whether other lenses besides the first lens have the first capability, for example, whether the second lens has the first capability, and simultaneously activate the preset shooting functions of other lenses with the first capability. If the first lens does not have the first capability, the preset shooting function of the first lens is not activated. In this case, if the first lens is used for shooting, the second shooting mode is used by default.

[0150] Subsequently, if the preset function is triggered at the current shooting focal length and the first lens has the necessary capabilities, a seamless switching logic is executed. The seamless switching logic includes the following:

[0151] In response to a shooting request that requests the capture of the first frame, the second shooting mode can be used. However, in response to a shooting request that requests the capture of images other than the first frame, scene information and configuration information of the current shooting scene can be acquired, and the configuration information can be stored in a preset file in real time. Based on the scene information and the configuration information in the preset file, the target shooting mode is determined. The electronic device can determine the sensor parameters (SensorMode) corresponding to the target shooting mode and send these parameters to the underlying kernel. The kernel can then switch the shooting mode based on these sensor parameters to obtain the target shooting mode. Afterward, the sensor can capture images in the target shooting mode and obtain the target image.

[0152] In one example, when the image to be captured is the second frame, the determined target shooting mode can be the second shooting mode; when the image to be captured is the third frame, the determined target shooting mode can be the first shooting mode. Responding to the difference between the target shooting mode of the third frame and the target shooting mode of the second frame, a switch between the second and first shooting modes can be performed. For example, refer to... Figure 4A The diagram illustrates one shooting mode. When the image to be captured is the second frame, the target shooting mode displayed on the shooting interface is the Binning shooting mode, while the reference... Figure 4B The diagram illustrates one shooting mode. When the image to be captured is the third frame, the target shooting mode displayed on the shooting interface has switched from Binning shooting mode to DXG shooting mode. It should be noted that when the target shooting mode is the first shooting mode, the display interface can show the specific type of the first shooting mode, such as... Figure 4A The diagram shown can also display HDR shooting mode.

[0153] In response to the target shooting mode being set to the first shooting mode, the target image can be determined in the following two ways:

[0154] The first method involves outputting a first image and a second image from a sensor, and using Multi-Frame Temporal Filter (MCTFE) to reduce the noise in the first and second images. The denoised first image and the denoised second image are then input into OFE to perform image fusion to obtain the target image.

[0155] In the second approach, sensors in certain types of first shooting modes (e.g., DXG timing shooting mode or DXGCOMBINE shooting mode) can perform image fusion operations, thereby directly outputting the fused image. That is, the sensor can fuse the first image and the second image to obtain the target image, and then input the target image. Optionally, during the process of fusing the first image, the second image, and / or the fused image, noise reduction processing can be performed on the first image, the second image, and / or the fused image to obtain the target image.

[0156] It should be noted that in multi-camera scenarios, the target image corresponding to each of the multiple lenses can be obtained, and the target images corresponding to each lens can be fused to obtain the final image.

[0157] Figure 5 This is a flowchart illustrating a photographing method according to an exemplary embodiment, performed by an electronic device. See also... Figure 5 The method includes the following steps:

[0158] Step S501: In response to the shooting operation, obtain lens information corresponding to the shooting focal length.

[0159] Step S502: Based on lens information and scene information, determine the shooting focal length to trigger the preset function in the current shooting scene.

[0160] Step S503: If the preset function is triggered at the shooting focal length in the current shooting scene and the first lens has the first capability, the preset shooting function of the first lens is activated.

[0161] Step S504: Obtain the exposure information of the current shooting scene.

[0162] Step S505: Based on the exposure information, determine the configuration information and store the configuration information in a preset file in real time.

[0163] Step S506: Determine the target shooting mode based on scene information and configuration information in the preset file.

[0164] Step S507: Switch the shooting mode to target shooting mode.

[0165] Step S508: Take a picture of the current shooting scene in target shooting mode to obtain a target image.

[0166] In step S509, in response to the current shooting scene being a video recording scene, multiple target images are determined, and a target video is generated based on the multiple target images.

[0167] Figure 6 This is a block diagram illustrating a photographing device according to an exemplary embodiment, configured in an electronic device, see [link to relevant documentation]. Figure 6The device includes:

[0168] The determination module 601 is configured to respond to a shooting operation and, upon triggering a preset function, determine the target shooting mode corresponding to the current shooting scene based on scene information and configuration information of the current shooting scene. The preset function is used to indicate whether the first shooting mode is allowed to be automatically turned on or off. The target shooting mode includes the first shooting mode or the second shooting mode. The first shooting mode is used to shoot images with high dynamic range, and the second shooting mode is used to shoot images without high dynamic range. The configuration information is used to indicate the shooting parameters configured related to the current shooting scene.

[0169] Processing module 602 is configured to switch the shooting mode to target shooting mode;

[0170] The shooting module 603 is configured to capture the current shooting scene in target shooting mode to obtain a target image.

[0171] In some embodiments, the determining module 601 is configured to:

[0172] When the preset function is triggered at the shooting focal length in the current shooting scene, and the first lens has the first capability, the target shooting mode is determined based on scene information and configuration information; the first lens is the lens corresponding to the shooting focal length in the current electronic device, and the first lens has the first capability to characterize the hardware performance of the first lens to support the first shooting mode.

[0173] In some embodiments, the determining module 601 is further configured to:

[0174] Obtain lens information corresponding to the shooting focal length; the lens information includes at least identification information, which is used to identify the type of lens corresponding to the shooting focal length.

[0175] Based on lens and scene information, determine the shooting focal length in the current shooting scene to trigger the preset function.

[0176] In some embodiments, the determining module 601 is configured to:

[0177] In response to the matching of scene information and lens information with reference information in preset evaluation information, the preset function is triggered at the shooting focal length in the current shooting scene. The preset evaluation information includes multiple reference information, including reference scene information of the reference shooting scene and reference lens information corresponding to the reference shooting focal length. The preset function is triggered at the reference shooting focal length in the reference shooting scene.

[0178] In some embodiments, the determining module 601 is further configured to:

[0179] In response to a change in at least one of the scene information and camera information, update the scene information and camera information to obtain the updated scene information and updated camera information.

[0180] In response to the fact that the target lens of the current electronic device has a first capability, the preset shooting function of the target lens is activated; the preset shooting function is used to capture high dynamic range images, and the target lens includes at least the first lens.

[0181] In some embodiments, the determining module 601 is configured to:

[0182] Obtain exposure information for the current shooting scene;

[0183] Based on the exposure information, the configuration information is determined. The configuration information includes the exposure count in the current shooting scene and the status parameters of the first shooting mode. The status parameters of the first shooting mode are used to characterize whether the first shooting mode is entered and the type of the first shooting mode when entering the first shooting mode.

[0184] In some embodiments, the determining module 601 is configured to:

[0185] In response to the image to be captured being any image other than the first frame during the shooting process, the target shooting mode corresponding to the current shooting scene is determined based on scene information and configuration information.

[0186] In some embodiments, the determining module 601 is configured to:

[0187] Determine at least one reference shooting mode corresponding to the scene information; the at least one reference shooting mode includes at least one first shooting mode and / or a second shooting mode;

[0188] Based on the configuration information, the target shooting mode is determined from at least one reference shooting mode.

[0189] In some embodiments, the determining module 601 is configured to:

[0190] Determine the triggering condition for each reference shooting mode in at least one reference shooting mode; the triggering condition is used to characterize the triggering threshold of the shooting parameters represented by the reference configuration information in the reference shooting scene;

[0191] In response to the configuration information satisfying the target triggering condition, the reference shooting mode corresponding to the target triggering condition is determined as the target shooting mode; the target triggering condition is any one of at least one triggering condition, and the configuration information satisfying the target triggering condition means that the shooting parameters represented by the configuration information reach the triggering threshold represented by the target triggering condition, and the triggering threshold represented by the target triggering condition means the triggering threshold of the shooting parameters represented by the target configuration information in the target shooting scene.

[0192] In some embodiments, the determining module 601 is configured to:

[0193] In response to the image to be captured being the first frame of the shooting process, the target shooting mode is determined to be the second shooting mode.

[0194] In some embodiments, the imaging module 603 is configured to:

[0195] In target shooting mode, the current shooting scene is captured to obtain a first image and a second image; the exposure time of the first image is different from that of the second image;

[0196] The target image is determined based on the first image and the second image.

[0197] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0198] This disclosure also provides an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the shooting method described in the above embodiments.

[0199] Figure 7 This is a block diagram of an electronic device 700 according to an exemplary embodiment.

[0200] Reference Figure 7 The electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 707, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 717.

[0201] Processing component 702 typically controls the overall operation of electronic device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.

[0202] Memory 704 is configured to store various types of data to support the operation of electronic device 700. Examples of this data include instructions for any application or method operating on electronic device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device 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 storage, flash memory, magnetic disk, or optical disk.

[0203] Power supply assembly 707 provides power to various components of electronic device 700. Power supply assembly 707 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 700.

[0204] Multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0205] Audio component 710 is configured to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when electronic device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 717. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.

[0206] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0207] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of electronic device 700. For example, sensor assembly 714 can detect the on / off state of electronic device 700, the relative positioning of components such as the display and keypad of electronic device 700, changes in position of electronic device 700 or a component of electronic device 700, the presence or absence of user contact with electronic device 700, orientation or acceleration / deceleration of electronic device 700, and temperature changes of electronic device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0208] Communication component 717 is configured to facilitate wired or wireless communication between electronic device 700 and other devices. Electronic device 700 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 717 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 717 also includes a near-field communication (NFC) module to facilitate short-range communication. 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.

[0209] In an exemplary embodiment, the electronic device 700 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 components to perform the methods described above.

[0210] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of an electronic device 700 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0211] A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the imaging method provided by an exemplary embodiment of this disclosure.

[0212] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the shooting method described in the above embodiments.

[0213] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0214] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A shooting method, characterized in that, include: In response to a shooting operation, when a preset function is triggered, a target shooting mode corresponding to the current shooting scene is determined based on scene information and configuration information of the current shooting scene. The preset function is used to indicate whether the first shooting mode is allowed to be automatically turned on or off. The target shooting mode includes the first shooting mode or the second shooting mode. The first shooting mode is used to shoot images with high dynamic range, and the second shooting mode is used to shoot images without high dynamic range. The configuration information is used to indicate the shooting parameters configured in relation to the current shooting scene. Switch the shooting mode to the target shooting mode; The target image is obtained by capturing the current shooting scene in the target shooting mode.

2. The shooting method according to claim 1, characterized in that, When a preset function is triggered, determining the target shooting mode corresponding to the current shooting scene based on scene information and configuration information includes: When the preset function is triggered at the shooting focal length in the current shooting scene, and the first lens has the first capability, the target shooting mode is determined based on the scene information and the configuration information; the first lens is the lens corresponding to the shooting focal length in the current electronic device, and the first lens has the first capability to characterize the hardware performance of the first lens to support the first shooting mode.

3. The shooting method according to claim 2, characterized in that, The method further includes: Obtain lens information corresponding to the shooting focal length; the lens information includes at least identification information, which is used to identify the type of lens corresponding to the shooting focal length; Based on the lens information and the scene information, the preset function is triggered by the shooting focal length in the current shooting scene.

4. The shooting method according to claim 3, characterized in that, The step of determining the shooting focal length to trigger the preset function in the current shooting scene based on the lens information and the scene information includes: In response to the matching of the scene information and the lens information with the reference information in the preset evaluation information, the preset function is triggered at the shooting focal length in the current shooting scene. The preset evaluation information includes multiple reference information, including reference scene information of the reference shooting scene and reference lens information corresponding to the reference shooting focal length. The preset function is triggered at the reference shooting focal length in the reference shooting scene.

5. The shooting method according to claim 3, characterized in that, The method further includes: In response to a change in at least one of the scene information and camera information, update the scene information and camera information to obtain the updated scene information and updated camera information.

6. The shooting method according to claim 2, characterized in that, The method further includes: In response to the target lens of the current electronic device having the first capability, the preset shooting function of the target lens is activated; the preset shooting function is used to capture high dynamic range images, and the target lens includes at least the first lens.

7. The shooting method according to claim 1, characterized in that, The method further includes: Obtain the exposure information of the current shooting scene; Based on the exposure information, the configuration information is determined; the configuration information includes the exposure number in the current shooting scene and the state parameters of the first shooting mode, the state parameters of the first shooting mode being used to characterize whether the first shooting mode is entered and the type of the first shooting mode when entering the first shooting mode.

8. The shooting method according to claim 1, characterized in that, The step of determining the target shooting mode corresponding to the current shooting scene based on scene information and configuration information includes: In response to the fact that the image to be captured is an image other than the first frame image during the shooting process, the target shooting mode corresponding to the current shooting scene is determined based on the scene information and the configuration information.

9. The shooting method according to claim 1 or 8, characterized in that, The step of determining the target shooting mode corresponding to the current shooting scene based on the scene information and configuration information of the current shooting scene includes: Determine at least one reference shooting mode corresponding to the scene information; the at least one reference shooting mode includes at least one first shooting mode and / or a second shooting mode; Based on the configuration information, the target shooting mode is determined among the at least one reference shooting mode.

10. The shooting method according to claim 9, characterized in that, Determining the target shooting mode among the at least one reference shooting mode based on the configuration information includes: Determine the triggering condition corresponding to each of the at least one reference shooting modes; the triggering condition is used to characterize the triggering threshold of the shooting parameters represented by the reference configuration information under the reference shooting scene; In response to the configuration information satisfying the target triggering condition, the reference shooting mode corresponding to the target triggering condition is determined as the target shooting mode; the target triggering condition is any one of the at least one triggering condition, and the configuration information satisfying the target triggering condition means that the shooting parameters represented by the configuration information reach the triggering threshold represented by the target triggering condition, and the triggering threshold represented by the target triggering condition means the triggering threshold of the shooting parameters represented by the target configuration information in the target shooting scene.

11. The shooting method according to claim 1, characterized in that, The method further includes: In response to the image to be captured being the first frame image in the shooting process, the target shooting mode is determined to be the second shooting mode.

12. The shooting method according to claim 1, characterized in that, The step of capturing the current shooting scene in the target shooting mode to obtain a target image includes: The current shooting scene is captured in the target shooting mode to obtain a first image and a second image; the exposure time of the first image and the exposure time of the second image are different; The target image is determined based on the first image and the second image.

13. A shooting device, characterized in that, include: The determination module is configured to respond to a shooting operation and, upon triggering a preset function, determine the target shooting mode corresponding to the current shooting scene based on scene information and configuration information. The preset function is used to indicate whether the first shooting mode is allowed to be automatically turned on or off. The target shooting mode includes the first shooting mode or the second shooting mode. The first shooting mode is used to capture images with high dynamic range, and the second shooting mode is used to capture images without high dynamic range. The configuration information is used to indicate the configured shooting parameters related to the current shooting scene. The processing module is configured to switch the shooting mode to the target shooting mode; The shooting module is configured to capture the current shooting scene in the target shooting mode to obtain a target image.

14. The shooting device according to claim 13, characterized in that, The determining module is configured as follows: When the preset function is triggered at the shooting focal length in the current shooting scene, and the first lens has the first capability, the target shooting mode is determined based on the scene information and the configuration information; the first lens is the lens corresponding to the shooting focal length in the current electronic device, and the first lens has the first capability to characterize the hardware performance of the first lens to support the first shooting mode.

15. The imaging device according to claim 14, characterized in that, The determining module is further configured to: Obtain lens information corresponding to the shooting focal length; the lens information includes at least identification information, which is used to identify the type of lens corresponding to the shooting focal length; Based on the lens information and the scene information, the preset function is triggered by the shooting focal length in the current shooting scene.

16. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the shooting method as described in any one of claims 1-12.

17. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the shooting method as described in any one of claims 1-12.

18. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the shooting method as described in any one of claims 1-12.