Photographing method and device, readable storage medium and electronic equipment

By displaying animations on the camera display interface in long-exposure photography mode, the duration of the animation is consistent with the exposure time, which solves the problem of stuck illusion caused by the unchanged interface during long-exposure photography and improves user interactivity.

CN118695101APending Publication Date: 2024-09-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310295270.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the long-exposure photo mode, the display interface does not change and stays at the last frame preview before taking the photo, giving users the illusion that the camera is stuck.

Method used

During the long-exposure photography process, a prompt animation is displayed on the camera's display interface. The display duration of the animation is determined by the exposure time of the camera in the preview state, reminding the user that the camera is taking pictures.

Benefits of technology

This avoids the illusion that the user feels the camera is stuck, and improves the interactivity between the user and the camera device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The invention relates to the technical field of photographing, and provides a photographing method and device, a readable storage medium and electronic equipment, and the photographing method comprises the steps: controlling a camera to carry out long-exposure photographing in response to a long-exposure photographing instruction in a preview state of a long-exposure photographing mode; and in the long-exposure photographing process, a prompt animation is displayed on the display interface, the prompt animation is used for prompting that the camera is photographing, and the display duration of the prompt animation is determined through the exposure time of the camera in the preview state. In the long-exposure photographing process, the prompt animation of which the display duration is determined by the exposure time of the camera in the long-exposure preview state is added on the display interface of the camera, and the prompt animation is used for prompting that the camera is photographing, so that the problems that the display interface is not changed in the process of photographing by selecting the long-exposure photographing mode and the photographing time is not changed are solved. And the last frame of preview picture stays before photographing, so that the camera jamming illusion is caused to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of photographing technology, and in particular to a photographing method, device, readable storage medium and electronic device. Background Art

[0002] With the popularization of smart devices, more and more devices are equipped with camera functions.

[0003] Common camera functions all include a preview function, which is to display the image currently captured by the lens on the built-in display of the device or an external display.

[0004] In the related art, when taking photos in the long exposure mode, the display interface shows the last frame preview before taking the photo. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present disclosure provides a photographing method, device, readable storage medium and electronic device.

[0006] According to a first aspect of an embodiment of the present disclosure, there is provided a photographing method, comprising:

[0007] In the preview state of the long exposure photography mode, in response to a long exposure photography instruction, the camera is controlled to perform long exposure photography; and,

[0008] During the long-exposure photography process, a prompt animation is displayed on the display interface, and the prompt animation is used to prompt that the camera is taking a photo, wherein the display duration of the prompt animation is determined by the exposure time of the camera in the preview state.

[0009] Optionally, before responding to the long exposure photographing instruction and controlling the camera to perform the long exposure photographing, the method includes:

[0010] In response to the camera entering a long exposure shooting mode, in a preview state of the long exposure shooting mode, obtaining a first ambient brightness, and obtaining a first exposure time according to the first ambient brightness, wherein the first exposure time is an exposure time of the camera in the preview state;

[0011] The displaying the prompt animation on the display interface includes: displaying the prompt animation according to the first exposure time.

[0012] Optionally, acquiring the first ambient brightness and obtaining the first exposure time according to the first ambient brightness includes: periodically acquiring the first ambient brightness and obtaining the first exposure time according to the first ambient brightness;

[0013] The method further includes: in response to the long exposure photographing instruction, determining a first exposure time most recently obtained according to the first ambient brightness;

[0014] The displaying of the prompt animation on the display interface includes: displaying the prompt animation according to the first exposure time obtained most recently.

[0015] Optionally, in response to the long exposure photography instruction, controlling the camera to perform long exposure photography includes:

[0016] In response to the long-exposure photographing instruction, acquiring a second ambient brightness, and obtaining a second exposure time according to the second ambient brightness;

[0017] The camera is controlled to perform long-exposure photography according to the second exposure time and a pre-stored second exposure table.

[0018] Optionally, in response to the long exposure photography instruction, controlling the camera to perform long exposure photography includes:

[0019] In response to the long-exposure photographing instruction, the camera is controlled to perform long-exposure photographing according to a pre-stored second exposure table and the first exposure time obtained most recently.

[0020] Optionally, acquiring the first ambient brightness and obtaining the first exposure time according to the first ambient brightness includes:

[0021] Determining a first exposure value according to the first ambient brightness;

[0022] A first exposure time is obtained according to the first exposure value and a pre-stored first exposure table, wherein the first exposure table is an exposure table in a preview state.

[0023] Optionally, obtaining the first exposure time according to the first exposure value and a pre-stored first exposure table includes:

[0024] Determining a plurality of exposure value intervals according to the first exposure table;

[0025] Determining a target exposure value interval to which the first exposure value belongs from the multiple exposure value intervals;

[0026] A first exposure time is obtained according to the target exposure value interval.

[0027] Optionally, the first exposure table includes a segmented control relationship between exposure time intervals and sensitivity, and the segmented control relationship indicates that multiple continuous exposure times correspond to the same sensitivity; and determining multiple exposure value intervals according to the first exposure table includes:

[0028] Determine a starting exposure time and an ending exposure time in each of the exposure time intervals;

[0029] According to each of the starting exposure time and the ending exposure time, and the corresponding sensitivity, a plurality of exposure value intervals are obtained, wherein the exposure value intervals represent the exposure value corresponding to the starting exposure time and the exposure value corresponding to the ending exposure time.

[0030] Optionally, obtaining a first exposure time according to the target exposure value interval includes:

[0031] According to the target exposure value interval, determining a target sensitivity corresponding to the target exposure value interval;

[0032] A first exposure time is obtained according to the target sensitivity.

[0033] Optionally, the method further comprises:

[0034] Performing exposure compensation on the first exposure value.

[0035] According to a second aspect of an embodiment of the present disclosure, there is provided a photographing device, including:

[0036] A photographing module, configured to control the camera to perform long-exposure photographing in response to a long-exposure photographing instruction in a preview state of a long-exposure photographing mode;

[0037] The display module is configured to display a prompt animation on the display interface during the long exposure photography process, wherein the prompt animation is used to prompt that the camera is taking a photo, wherein the display duration of the prompt animation is determined by the exposure time of the camera in the preview state.

[0038] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of any one of the photographing methods provided in the first aspect of the present disclosure are implemented.

[0039] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0040] processor;

[0041] a memory for storing processor-executable instructions;

[0042] Wherein, the processor is configured to:

[0043] Execute any step of the photographing method provided in the first aspect of the present disclosure.

[0044] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0045] In the preview state of the long-exposure photography mode, in response to the long-exposure photography instruction, the camera is controlled to perform long-exposure photography; and, in the process of long-exposure photography, a prompt animation is displayed on the display interface, the prompt animation is used to prompt the camera that the camera is taking a photo, wherein the display duration of the prompt animation is determined by the exposure time of the camera in the preview state. In the process of long-exposure photography, a prompt animation whose display duration is determined by the exposure time of the camera in the long-exposure preview state is added to the display interface of the camera, and the prompt animation is used to prompt the camera that the camera is taking a photo, so as to solve the problem that in the process of taking photos using the long-exposure photography mode, the display interface does not change and stays on the last preview frame before taking the photo, causing the user to feel that the camera is stuck. At the same time, the prompt animation can also improve the interactivity between the user and the smart device where the camera is located.

[0046] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 The figure is a flow chart of a photographing method according to an exemplary embodiment.

[0049] Figure 2 is a flow chart of another photographing method according to an exemplary embodiment.

[0050] Figure 3 is a flow chart of another photographing method according to an exemplary embodiment.

[0051] Figure 4 The present invention is a flowchart of sub-steps of controlling a camera to perform long exposure photography in response to a long exposure photography instruction according to an exemplary embodiment.

[0052] Figure 5 is a schematic diagram of a second exposure meter according to an exemplary embodiment.

[0053] Figure 6 The present invention is another sub-step flowchart of controlling a camera to perform long exposure photography in response to a long exposure photography instruction according to an exemplary embodiment.

[0054] Figure 7 The present invention is a flowchart of sub-steps of obtaining a first ambient brightness and obtaining a first exposure time according to the first ambient brightness according to an exemplary embodiment.

[0055] Figure 8 According to an exemplary embodiment, Figure 7 Flow chart of sub-steps of step S32.

[0056] Fig. 9 According to an exemplary embodiment, Figure 8 Flowchart of sub-steps of step S321.

[0057] Fig.10 According to an exemplary embodiment, Figure 8 Flowchart of sub-steps of step S323.

[0058] Fig.11 The figure is a block diagram of a photographing device according to an exemplary embodiment.

[0059] Fig.12 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0061] With the popularization of smart devices, more and more devices are equipped with camera functions.

[0062] Common camera functions all include a preview function, which is to display the image currently captured by the lens on the built-in display of the device or an external display.

[0063] In the related art, when taking photos in the long exposure mode, the display interface does not change and stays on the last preview frame before taking the photo, giving the user the illusion that the camera is stuck.

[0064] In order to solve the above technical problems, the embodiment of the present disclosure adds a prompt animation on the display interface of the camera to prompt that the camera is taking a photo during the long exposure photo shooting process, and the display duration of the prompt animation is determined by the exposure time of the camera in the long exposure preview state. In this way, even if the preview screen on the display interface does not change, the prompt animation can remind the user that the camera is taking a photo, thereby avoiding giving the user the illusion that the camera is stuck.

[0065] Figure 1 is a flow chart of a photographing method according to an exemplary embodiment. Figure 1 As shown, the photographing method is used for a smart device including a camera, and includes steps S1 and S2:

[0066] Step S1, in the preview state of the long exposure shooting mode, in response to a long exposure shooting instruction, controlling the camera to perform long exposure shooting;

[0067] Step S2, during the long exposure photography process, a prompt animation is displayed on the display interface, the prompt animation is used to prompt that the camera is taking a photo, wherein the display duration of the prompt animation is determined by the exposure time of the camera in the preview state.

[0068] After the user enters the camera software, the preview begins. During this process, the user can select a mode. If the user selects the "long exposure" mode, the camera enters the long exposure shooting mode and begins long exposure preview. After the user clicks the shooting function button, a long exposure shooting instruction is generated and long exposure shooting begins.

[0069] The long exposure shooting instruction may be a shooting instruction in a long exposure shooting mode. After the user clicks a shooting function button in the long exposure shooting mode, the smart device generates a long exposure shooting instruction.

[0070] The prompt animation can be a continuously changing dynamic picture, such as a progress indication animation, a flashing animation with the text "shooting", etc. The display duration of the prompt animation is determined by the exposure time of the camera in the preview state. It can be understood that the display duration of the prompt animation is determined by the exposure time of the camera in the long exposure preview state. For example, the display duration of the prompt animation is the exposure time of the camera in the long exposure preview state.

[0071] Both a preview screen and a prompt animation are displayed on the display interface of the camera. The preview screen and the prompt animation may be distributed vertically or horizontally on the display interface, or the prompt animation may be included in the preview screen, which is not limited in this embodiment.

[0072] It should be noted that the order of description of step S1 and step S2 does not represent the order of execution thereof, and step S1 and step S2 may be performed simultaneously.

[0073] By adopting the above technical solution, during the long exposure shooting process, a prompt animation whose display duration is determined by the exposure time of the camera in the long exposure preview state is added to the display interface of the camera. The prompt animation is used to prompt the camera that a photo is being taken, so as to solve the problem that during the long exposure shooting mode is selected for shooting, the display interface does not change and stays on the last frame preview screen before shooting, causing the user to have the illusion that the camera is stuck. At the same time, the prompt animation can also improve the interactivity between the user and the smart device where the camera is located.

[0074] In order to improve the interactive experience, the display duration of the prompt animation can be further set. Figure 2 is a flow chart of another photographing method according to an exemplary embodiment. Figure 2 As shown, the photographing method includes steps S300 to S302:

[0075] Step S300, in response to the camera entering a long exposure shooting mode, in a preview state of the long exposure shooting mode, obtaining a first ambient brightness, and obtaining a first exposure time according to the first ambient brightness, wherein the first exposure time is an exposure time of the camera in the preview state;

[0076] Step S301, in response to a long exposure photographing instruction, controlling the camera to perform long exposure photographing;

[0077] Step S302, during the long exposure photography process, displaying a prompt animation on the display interface, the prompt animation is used to prompt that the camera is taking a photo, and displaying the prompt animation on the display interface includes: displaying the prompt animation according to the first exposure time.

[0078] After the user enters the camera software, the preview begins. During this process, the user can select a mode. If the user selects the "long exposure" mode, the camera enters the long exposure shooting mode and begins long exposure preview. After the user clicks the shooting function button, a long exposure shooting instruction is generated and long exposure shooting begins.

[0079] The first ambient brightness may be the ambient brightness in the long exposure preview state, that is, the ambient brightness after the camera enters the long exposure photographing mode and before generating a long exposure photographing instruction.

[0080] In order to facilitate users to quickly take long-exposure photos of different subjects and save time in adjusting long-exposure parameters, standard templates can be set for different subjects in the long-exposure photography mode, that is, sub-modes in the long-exposure photography mode. For example, the "Brilliant Starry Sky" sub-mode is set for the starry sky as the subject, the "Romantic Star Trails" sub-mode is set for the star trails as the subject, the "Creative Light Gathering" sub-mode is set for light, and the "Mountain and Flowing Water" sub-mode is set for the mountains and rivers as the subject.

[0081] The first ambient brightness may also be the ambient brightness in the long exposure sub-mode preview state, that is, the ambient brightness after the camera enters the sub-mode in the long exposure shooting mode and before generating a long exposure shooting instruction.

[0082] The first exposure time may be the exposure time of the camera in the long exposure preview state, that is, the exposure time calculated when the ambient brightness is the first ambient brightness during the preview process, for example, 30s.

[0083] During the long exposure photography process, both a preview image and a prompt animation are displayed on the display interface of the camera, wherein the display duration of the prompt animation may be the first exposure time.

[0084] It should be noted that the order of description of step S301 and step S302 does not represent the order of execution thereof, and step S301 and step S302 may be performed simultaneously.

[0085] By adopting the above-mentioned technical solution, the long exposure shooting mode is entered through the camera, and the first exposure time is obtained under the first ambient brightness in the preview state of the long exposure shooting mode, and a prompt animation is displayed according to the first exposure time, so that the duration of displaying the prompt animation is similar to the exposure duration, that is, the time when the prompt animation ends is close to the time when the exposure process ends, and the prompt effect is obvious, thereby improving the interactive experience between the user and the smart device.

[0086] In order to further improve the interactive experience, on the basis of setting the display duration of the prompt animation, the display duration can be further accurately displayed. Figure 3 is a flow chart of another photographing method according to an exemplary embodiment. Figure 3 As shown, the photographing method includes steps S400 to S403:

[0087] Step S400, in response to the camera entering a long exposure shooting mode, in a preview state of the long exposure shooting mode, periodically acquiring a first ambient brightness, and obtaining a first exposure time according to the first ambient brightness;

[0088] Step S401, in response to a long exposure photographing instruction, determining a first exposure time most recently obtained according to a first ambient brightness;

[0089] Step S402, in response to the long exposure photo taking instruction, controlling the camera to take a long exposure photo;

[0090] Step S403, during the long exposure photography process, a prompt animation is displayed on the display interface, the prompt animation is used to prompt that the camera is taking a photo, and the prompt animation is displayed on the display interface, including: displaying the prompt animation according to the most recently obtained first exposure time.

[0091] The first environment brightness is periodically acquired, and the first exposure time is periodically obtained.

[0092] In response to the camera entering the long exposure shooting mode, in the preview state of the long exposure shooting mode, the first environment brightness is periodically obtained, and the first exposure time is obtained according to the first environment brightness. It can be understood that after the camera enters the long exposure shooting mode, in the preview state of the long exposure shooting mode, the first environment brightness is obtained according to the preset time interval, and the first exposure time corresponding to each first environment brightness is obtained. The preset time interval can be set according to actual conditions, for example, 1 / 30s.

[0093] In response to the long exposure photography instruction, determining the first exposure time obtained most recently according to the first ambient brightness can be understood as determining the first exposure time obtained most recently according to the first ambient brightness since the long exposure photography instruction. For example, the first ambient brightness 1 is obtained in sequence at a preset time interval to obtain the first exposure time 1, the first ambient brightness 2 is obtained to obtain the first exposure time 2, the first ambient brightness 3 is obtained to obtain the first exposure time 3, and the camera enters the long exposure photography mode. Then, the first exposure time obtained most recently according to the first ambient brightness is the first exposure time 3.

[0094] During the long-exposure photography process, a preview image and a prompt animation are displayed on the display interface of the camera, wherein the display duration of the prompt animation may be the first exposure time most recently obtained according to the first ambient brightness.

[0095] The detailed description of some steps can refer to step S300 to step S302, which will not be repeated in this embodiment.

[0096] It should be noted that the order of description of step S402 and step S403 does not represent the order of execution thereof, and step S402 and step S403 may be performed simultaneously.

[0097] Compared with other first exposure times, the most recent first exposure time obtained based on the first ambient brightness is closest to the time when the long exposure photo-taking instruction is issued. During this period, the possibility of changes in ambient brightness is the smallest. The obtained first exposure time is closest to the actual exposure time. The prompt animation displayed based on the first exposure time can be more accurate.

[0098] During the photo-taking process, in order to obtain more beautiful photos, it is necessary to set exposure parameters, where the exposure parameters include exposure time and sensitivity.

[0099] In one possible implementation, see Figure 4 In response to the long exposure photography instruction, the step of controlling the camera to perform long exposure photography may include step S101 and step S102:

[0100] Step S101, in response to a long exposure photographing instruction, obtaining a second ambient brightness, and obtaining a second exposure time according to the second ambient brightness;

[0101] Step S102, controlling the camera to take long-exposure photos according to the second exposure time and a pre-stored second exposure table.

[0102] After the user enters the camera software, the preview begins. During this process, the user can select a mode. If the user selects the "long exposure" mode, the camera enters the long exposure shooting mode and begins long exposure preview. After the user clicks the shooting function button, a long exposure shooting instruction is generated and long exposure shooting begins.

[0103] The second ambient brightness may be the ambient brightness at a certain time within a period of time after the camera generates a long exposure shooting instruction, and the period of time must be lower than the general long exposure shooting time. For example, the second ambient brightness may be the ambient brightness at the time when the camera generates the long exposure shooting instruction, and the second ambient brightness may also be the ambient brightness 1 second after the camera generates the long exposure shooting instruction.

[0104] The second exposure time may be an exposure time calculated when the ambient brightness is the second ambient brightness during the photographing process, for example, 31 seconds.

[0105] The second exposure meter may be an exposure meter in a photographing mode.

[0106] In order to facilitate users to quickly take long-exposure photos of different subjects and save time in adjusting exposure parameters, standard templates can be set for different subjects in the long-exposure photography mode, that is, sub-modes in the long-exposure photography mode. For example, the "Brilliant Starry Sky" sub-mode is set for the starry sky as the subject, the "Romantic Star Trails" sub-mode is set for the star trails as the subject, the "Creative Light Gathering" sub-mode is set for light, and the "Mountain and Flowing Water" sub-mode is set for the mountains and rivers as the subject.

[0107] When there are multiple sub-modes, each sub-mode can correspond to a second exposure table respectively. It is also necessary to determine the target second exposure table corresponding to the sub-mode from the multiple second exposure tables based on the user's selection of the sub-mode, and control the camera to perform long exposure photography according to the target second exposure table and the second exposure time.

[0108] The target second exposure table may be determined after the user selects the sub-mode and before the user presses the photo button, that is, before the camera enters the long-exposure photo taking mode.

[0109] like Figure 5As shown, the camera is controlled to perform long exposure photography according to the second exposure time and a pre-stored second exposure table. It can be understood that the second exposure time is used as the cutoff time, that is, the exposure parameters are set according to different sensitivities corresponding to different exposure time points in the second exposure table to perform long exposure photography until the exposure time point reaches the second exposure time.

[0110] It should be noted that the first exposure time and the second exposure time may be similar or equal, but their meanings are different. The first exposure time is the exposure time of the camera in the long exposure preview state, and the second exposure time is the exposure time in the long exposure photo taking state.

[0111] The long exposure photography is controlled according to the second exposure time obtained according to the second ambient brightness when the camera receives the long exposure photography instruction, combined with the second exposure table pre-stored in the long exposure photography mode, so that the setting of the exposure parameters is more reasonable and the obtained photos are more beautiful.

[0112] The detailed process of obtaining the second ambient brightness and obtaining the second exposure time according to the second ambient brightness can refer to the process of obtaining the first ambient brightness and obtaining the first exposure time according to the first ambient brightness, and this embodiment will not be repeated here.

[0113] It should be noted that since the exposure time of long exposure is generally greater than 10s, the second exposure time obtained according to the second ambient brightness can be carried out simultaneously with the long exposure photography. When the long exposure photography starts, the second exposure time can be calculated according to the second ambient brightness, and the obtained second exposure time can be used as the cutoff time for the long exposure photography.

[0114] While responding to the long exposure photography instruction, the second environment brightness is obtained, and long exposure photography is started according to the second exposure table, and then the second exposure time is obtained according to the second environment brightness, and the second exposure time is used as the cutoff time for executing the second exposure table.

[0115] In this way, long exposure photography can be performed directly in response to a long exposure photography instruction, without having to start long exposure photography after obtaining the second exposure time, thereby reducing the time difference in the process of obtaining the second exposure time and making the long exposure time more accurate.

[0116] In one possible implementation, see Figure 6 In response to the long exposure photography instruction, the step of controlling the camera to perform long exposure photography may include step S103:

[0117] Step S103, in response to the long exposure photographing instruction, controlling the camera to perform long exposure photographing according to a pre-stored second exposure table and the most recently obtained first exposure time.

[0118] The second exposure meter may be an exposure meter in a long exposure photographing mode.

[0119] In order to facilitate users to quickly take long-exposure photos of different subjects and save time in adjusting exposure parameters, standard templates can be set for different subjects in the long-exposure photography mode, that is, sub-modes in the long-exposure photography mode. For example, the "Brilliant Starry Sky" sub-mode is set for the starry sky as the subject, the "Romantic Star Trails" sub-mode is set for the star trails as the subject, the "Creative Light Gathering" sub-mode is set for light, and the "Mountain and Flowing Water" sub-mode is set for the mountains and rivers as the subject.

[0120] When there are multiple sub-modes, each sub-mode can correspond to a second exposure table respectively. It is also necessary to determine the target second exposure table corresponding to the sub-mode from the multiple second exposure tables based on the user's selection of the sub-mode, and control the camera to perform long exposure photography according to the target second exposure table and the first exposure time.

[0121] The target second exposure table may be determined after the user selects the sub-mode and before the user presses the photo button, that is, before the camera enters the long-exposure photo taking mode.

[0122] Controlling the camera to perform long exposure photography according to the pre-stored second exposure table and the most recently obtained first exposure time can be understood as taking the most recently obtained first exposure time as the cutoff time, that is, setting exposure parameters according to different sensitivities corresponding to different exposure time points in the second exposure table to perform long exposure photography until the exposure time point reaches the first exposure time.

[0123] In one possible implementation, see Figure 7 , obtaining a first ambient brightness, and obtaining a first exposure time according to the first ambient brightness, including:

[0124] Step S31, determining a first exposure value according to a first ambient brightness;

[0125] Step S32, obtaining a first exposure time according to the first exposure value and a pre-stored first exposure table, wherein the first exposure table is an exposure table in a preview state.

[0126] The first exposure value may be an exposure value obtained under a first ambient brightness.

[0127] Determining the first exposure value according to the first ambient brightness can be understood as substituting the first ambient brightness into the first calculation formula to obtain the first exposure value. The first calculation formula is:

[0128]

[0129] Among them, EV1 is the first exposure value, L is the first ambient brightness, S is the initial sensitivity, the value of the initial sensitivity is generally 100, K is a constant, the constant K is generally set by the manufacturer, and its value is generally 10.6~13.4.

[0130] The first exposure table includes the control relationship between the exposure time and the sensitivity in the preview state, in which one exposure time corresponds to one sensitivity. The first exposure time is obtained according to the first exposure value and the pre-stored first exposure table, which can be understood as:

[0131] First, obtain each exposure time and its corresponding sensitivity in the first exposure table, and according to each exposure time and its corresponding sensitivity, substitute them into the second calculation formula to calculate multiple exposure values. The second calculation formula is:

[0132] EV0=log2(Fno*Fno*3.125 / T / ISO)

[0133] Among them, EV0 is the exposure value, Fno is the aperture size, when the camera's camera is determined, Fno is a fixed value, T is the exposure time, and ISO is the sensitivity.

[0134] Secondly, the first exposure value is compared with a plurality of calculated exposure values ​​respectively to determine the exposure value having the smallest difference with the first exposure value.

[0135] Finally, the exposure time corresponding to the exposure value that has the smallest difference from the first exposure value is taken as the first exposure time.

[0136] In order to quickly reduce the amount of calculation, the first exposure time can be obtained by interval calibration.

[0137] In one possible implementation, see Figure 8 , step S32 may include steps S321 to S323:

[0138] Step S321, determining a plurality of exposure value intervals according to the first exposure table;

[0139] Step S322, determining a target exposure value interval to which the first exposure value belongs from a plurality of exposure value intervals;

[0140] Step S323, obtaining a first exposure time according to the target exposure value interval.

[0141] The first exposure table includes a control relationship between the exposure time interval and the sensitivity in the preview state. In the control relationship, the control relationship can be a segmented control relationship, that is, multiple consecutive exposure times correspond to the same sensitivity, and as the exposure time interval increases, the sensitivity also increases.

[0142] The gaze exposure value interval may be an exposure value interval to which the first exposure value belongs.

[0143] The exposure value interval is an interval composed of exposure values ​​calculated according to the exposure time and sensitivity at the segment nodes in the segment control relationship in the first exposure table. For example, when the exposure time is 2s, the sensitivity is 80, which is substituted into the second calculation formula to obtain an exposure value of 1; when the exposure time is 5s, the sensitivity is 85, which is substituted into the second calculation formula to obtain an exposure value of 2; when the exposure time is 10s, the sensitivity is 93, which is substituted into the second calculation formula to obtain an exposure value of 3; when the exposure time is 20s, the sensitivity is 100, which is substituted into the second calculation formula to obtain an exposure value of 4; when the exposure time is 35s, the sensitivity is 110, which is substituted into the second calculation formula to obtain an exposure value of 5. The exposure values ​​are arranged from large to small as follows: exposure value 1, exposure value 2, exposure value 3, exposure value 4, exposure value 5, and the multiple exposure value intervals may be [exposure value 1, +∞), [exposure value 2, exposure value 1), [exposure value 3, exposure value 2), [exposure value 4, exposure value 3), [exposure value 5, exposure value 4).

[0144] By calibrating the exposure value interval, the target exposure interval to which the first exposure value belongs can be quickly determined, so that the first exposure time can be quickly obtained, which saves the amount of calculation and calculation time and improves the calculation efficiency of the first exposure time.

[0145] In a possible implementation, the first exposure table includes a segmented control relationship between the exposure time interval and the sensitivity, and the segmented control relationship indicates that a plurality of consecutive exposure times correspond to the same sensitivity; see Fig. 9 , step S321 may include step S3211 and step S3212:

[0146] Step S3211, determining the start exposure time and the end exposure time in each exposure time interval;

[0147] Step S3212, according to each starting exposure time and ending exposure time, and the corresponding sensitivity, multiple exposure value intervals are obtained, and the exposure value interval represents the exposure value corresponding to the starting exposure time and the exposure value corresponding to the ending exposure time.

[0148] The first exposure table includes a control relationship between the exposure time interval and the sensitivity in the preview state. In the control relationship, the control relationship can be a segmented control relationship, that is, multiple continuous exposure times correspond to the same sensitivity, and as the exposure time increases, the sensitivity also increases. For example, the exposure time interval is 0 to 2s, and the sensitivity is 80; the exposure time interval is 2 to 5s, and the sensitivity is 85; the exposure time interval is 5 to 10s, and the sensitivity is 93; the exposure time interval is 10 to 20s, and the sensitivity is 100; the exposure time interval is 20 to 35s, and the sensitivity is 110.

[0149] In the above example, the first exposure time interval is 0-2s, with a starting exposure time of 0s and an ending exposure time of 2s; the second exposure time interval is 2-5s, with a starting exposure time of 2s and an ending exposure time of 5s; the third exposure time interval is 5-10s, with a starting exposure time of 5s and an ending exposure time of 10s; the fourth exposure time interval is 10-20s, with a starting exposure time of 10s and an ending exposure time of 20s; the fifth exposure time interval is 20-35s, with a starting exposure time of 20s and an ending exposure time of 35s.

[0150] According to each starting exposure time and ending exposure time, and the corresponding sensitivity, multiple exposure value intervals are obtained, that is, according to the starting exposure time 0s and the ending exposure time 2s of the first exposure time interval, and the corresponding sensitivity 80, they are respectively substituted into the second calculation formula to obtain exposure values ​​6 and 7 respectively; according to the starting exposure time 2s and the ending exposure time 5s of the second exposure time interval, and the corresponding sensitivity 85, they are respectively substituted into the second calculation formula to obtain exposure values ​​8 and 9 respectively; according to the starting exposure time 5s of the third exposure time interval, s and the end exposure time 10s, and the corresponding sensitivity 93, are respectively substituted into the second calculation formula to obtain exposure values ​​10 and 11; according to the exposure time 10s at the beginning and 20s at the end of the fourth exposure time interval, and the corresponding sensitivity 100, they are respectively substituted into the second calculation formula to obtain exposure values ​​12 and 13; according to the exposure time 20s at the beginning and 35s at the end of the fifth exposure time interval, and the corresponding sensitivity 110, they are respectively substituted into the second calculation formula to obtain exposure values ​​14 and 15. The exposure values ​​are ranked from large to small as follows: exposure value 6, exposure value 7, exposure value 8, exposure value 9, exposure value 10, exposure value 11, exposure value 12, exposure value 13, exposure value 14. Then the multiple exposure value intervals may be [exposure value 7, exposure value 6], [exposure value 9, exposure value 8], [exposure value 11, exposure value 10], [exposure value 13, exposure value 12], and [exposure value 15, exposure value 14] respectively.

[0151] In one possible implementation, see Fig.10 , step S323 may include step S3231 and step S3232:

[0152] Step S3231, determining the target sensitivity corresponding to the target exposure value interval according to the target exposure value interval;

[0153] Step S3232, obtaining a first exposure time according to the target sensitivity.

[0154] In the same target exposure value interval, the sensitivity is the same, and this sensitivity is the target sensitivity corresponding to the target exposure value interval.

[0155] According to the target sensitivity, the first exposure time is obtained. It can be understood that the target sensitivity and the first exposure value are substituted into the second calculation formula to solve the first exposure time.

[0156] The exposure value is compensated to take into account the differences in the camera sensor hardware.

[0157] In a possible implementation, the method further includes:

[0158] Exposure compensation is performed on the first exposure value.

[0159] Exposure compensation is performed on the first exposure value to obtain a new first exposure value, and a step of obtaining a first exposure time is performed according to the new first exposure value and a pre-stored first exposure table.

[0160] It should be noted that exposure compensation may also be performed on the second exposure value, and the compensation value of the exposure compensation performed on the second exposure value is equal to the exposure value of the exposure compensation performed on the first exposure value.

[0161] By performing exposure compensation on the first exposure value and the second exposure value, the impact caused by the difference in camera sensor hardware can be reduced and the accuracy of the exposure time can be improved.

[0162] Fig.11 is a block diagram of a photographing device according to an exemplary embodiment. Fig.11 The photographing device 500 includes: a photographing module 501 and a display module 502.

[0163] The photographing module 501 is configured to control the camera to perform long exposure photographing in response to a long exposure photographing instruction in a preview state of the long exposure photographing mode;

[0164] The display module 502 is configured to display a prompt animation on the display interface during the long exposure photography process, where the prompt animation is used to prompt that the camera is taking a photo, wherein the display duration of the prompt animation is determined by the exposure time of the camera in the preview state.

[0165] Optionally, the photographing device 500 further includes: a first determining module.

[0166] A first determination module is configured to, in response to the camera entering a long exposure shooting mode, obtain a first ambient brightness in a preview state of the long exposure shooting mode, and obtain a first exposure time according to the first ambient brightness, wherein the first exposure time is an exposure time of the camera in the preview state;

[0167] The display module 502 is further configured to display a prompt animation according to the first exposure time.

[0168] Optionally, the first determination module is further configured to periodically obtain the first ambient brightness, and obtain the first exposure time according to the first ambient brightness;

[0169] The photographing device 500 further includes: a second determining module.

[0170] A second determination module is configured to determine, in response to a long exposure photographing instruction, a first exposure time most recently obtained according to a first ambient brightness;

[0171] The display module 502 is further configured to display a prompt animation according to the most recently obtained first exposure time.

[0172] Optionally, the photo-taking module 501 is specifically configured to: in response to a long-exposure photo-taking instruction, obtain a second ambient brightness, and obtain a second exposure time according to the second ambient brightness; and control the camera to perform long-exposure photo-taking according to the second exposure time and a pre-stored second exposure table.

[0173] Optionally, the photographing module 501 is specifically configured to: in response to a long exposure photographing instruction, control the camera to perform long exposure photographing according to a pre-stored second exposure table and the most recently obtained first exposure time.

[0174] Optionally, the first determining module includes a first determining submodule and a second determining submodule:

[0175] A first determining submodule is configured to determine a first exposure value according to a first ambient brightness;

[0176] The second determining submodule is configured to obtain a first exposure time according to the first exposure value and a pre-stored first exposure table, wherein the first exposure table is an exposure table in a preview state.

[0177] Optionally, the second determining submodule includes a first determining subunit, a second determining subunit and a third determining subunit:

[0178] A first determining subunit is configured to determine a plurality of exposure value intervals according to a first exposure table;

[0179] A second determining subunit is configured to determine, from a plurality of exposure value intervals, a target exposure value interval to which the first exposure value belongs;

[0180] The third determining subunit is configured to obtain a first exposure time according to a target exposure value interval.

[0181] Optionally, the first exposure table includes a segmented control relationship between the exposure time interval and the sensitivity, and the segmented control relationship represents that multiple consecutive exposure times correspond to the same sensitivity; the first determination subunit is specifically configured to: determine the starting exposure time and the ending exposure time in each exposure time interval; according to each starting exposure time and the ending exposure time, and the corresponding sensitivity, obtain multiple exposure value intervals, and the exposure value interval represents the exposure value corresponding to the starting exposure time and the exposure value corresponding to the ending exposure time.

[0182] Optionally, the third determining subunit is specifically configured to: determine a target sensitivity corresponding to the target exposure value interval according to the target exposure value interval; and obtain the first exposure time according to the target sensitivity.

[0183] Optionally, the photographing device 500 further includes a compensation module.

[0184] The compensation module is configured to perform exposure compensation on the first exposure value.

[0185] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0186] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the photographing method provided by the present disclosure are implemented.

[0187] Fig.12 800 is a block diagram of an electronic device according to an exemplary embodiment. The electronic device 800 may be based on the MediaTek platform, and the electronic device 800 may be the above-mentioned smart device, for example, a mobile phone, a computer, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0188] Reference Fig.12, the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .

[0189] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned photographing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0190] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 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 memory, flash memory, magnetic disk or optical disk.

[0191] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

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

[0193] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0194] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0195] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0196] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also 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 technologies.

[0197] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned photographing method.

[0198] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to complete the above-mentioned photographing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0199] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned photographing method when executed by the programmable device.

[0200] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0201] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A photographing method, characterized in that: include: In the preview state of the long exposure shooting mode, in response to the long exposure shooting instruction, the camera is controlled to perform long exposure shooting; and, During the long-exposure photography process, a prompt animation is displayed on the display interface, and the prompt animation is used to prompt that the camera is taking a photo, wherein the display duration of the prompt animation is determined by the exposure time of the camera in the preview state.

2. The method according to claim 1, characterized in that Before controlling the camera to perform long exposure photography in response to the long exposure photography instruction, the method includes: In response to the camera entering a long exposure shooting mode, in a preview state of the long exposure shooting mode, obtaining a first ambient brightness, and obtaining a first exposure time according to the first ambient brightness, wherein the first exposure time is an exposure time of the camera in the preview state; The displaying the prompt animation on the display interface includes: displaying the prompt animation according to the first exposure time.

3. The method according to claim 2, characterized in that The acquiring the first environment brightness and obtaining the first exposure time according to the first environment brightness comprises: periodically acquiring the first environment brightness and obtaining the first exposure time according to the first environment brightness; The method further includes: in response to the long exposure photographing instruction, determining a first exposure time most recently obtained according to the first ambient brightness; The displaying of the prompt animation on the display interface includes: displaying the prompt animation according to the first exposure time obtained most recently.

4. The method according to claim 3, characterized in that In response to the long exposure photographing instruction, controlling the camera to perform long exposure photographing includes: In response to the long-exposure photographing instruction, acquiring a second ambient brightness, and obtaining a second exposure time according to the second ambient brightness; The camera is controlled to perform long-exposure photography according to the second exposure time and a pre-stored second exposure table.

5. The method according to claim 3, characterized in that: In response to the long exposure photographing instruction, controlling the camera to perform long exposure photographing includes: In response to the long-exposure photographing instruction, the camera is controlled to perform long-exposure photographing according to a pre-stored second exposure table and the first exposure time obtained most recently.

6. The method according to claim 2, characterized in that The acquiring the first environment brightness and obtaining the first exposure time according to the first environment brightness includes: Determining a first exposure value according to the first ambient brightness; A first exposure time is obtained according to the first exposure value and a pre-stored first exposure table, wherein the first exposure table is an exposure table in a preview state.

7. The method according to claim 6, characterized in that The obtaining a first exposure time according to the first exposure value and a pre-stored first exposure table includes: Determining a plurality of exposure value intervals according to the first exposure table; Determining a target exposure value interval to which the first exposure value belongs from the multiple exposure value intervals; A first exposure time is obtained according to the target exposure value interval.

8. The method according to claim 7, characterized in that The first exposure table includes a segmented control relationship between exposure time intervals and sensitivities, wherein the segmented control relationship indicates that a plurality of consecutive exposure times correspond to the same sensitivity; Determining a plurality of exposure value intervals according to the first exposure table includes: Determine a starting exposure time and an ending exposure time in each of the exposure time intervals; According to each of the starting exposure time and the ending exposure time, and the corresponding sensitivity, a plurality of exposure value intervals are obtained, wherein the exposure value intervals represent the exposure value corresponding to the starting exposure time and the exposure value corresponding to the ending exposure time.

9. The method according to claim 8, characterized in that The obtaining a first exposure time according to the target exposure value interval includes: According to the target exposure value interval, determining a target sensitivity corresponding to the target exposure value interval; A first exposure time is obtained according to the target sensitivity.

10. The method according to claim 6, characterized in that The method further comprises: Performing exposure compensation on the first exposure value.

11. A photographing device, characterized in that: include: A photographing module, configured to control the camera to perform long-exposure photographing in response to a long-exposure photographing instruction in a preview state of a long-exposure photographing mode; The display module is configured to display a prompt animation on the display interface during the long exposure photography process, wherein the prompt animation is used to prompt that the camera is taking a photo, wherein the display duration of the prompt animation is determined by the exposure time of the camera in the preview state.

12. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 10 are implemented.

13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the steps of the method according to any one of claims 1 to 10.