A photographing method and an electronic device

By automatically detecting the stationary state and constant quantity of people in electronic devices, the countdown shooting is automatically initiated, solving the convenience and quality issues caused by manual button triggering by users, and improving the convenience and clarity of image shooting.

CN122120591APending Publication Date: 2026-05-29HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2024-11-27
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

The current image capture process of electronic devices requires users to manually trigger the capture button, which results in poor convenience and affects the image quality.

Method used

The electronic device automatically starts a countdown when it determines that the person in the preview image remains stationary, and automatically takes an image when the countdown ends, including detecting conditions such as the stationary state of the person and the number of people remaining unchanged.

Benefits of technology

It improves the convenience and quality of image capture, ensures that people are clearly visible in the image, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122120591A_ABST
    Figure CN122120591A_ABST
Patent Text Reader

Abstract

A photographing method and an electronic device are provided to improve the convenience of image photographing and improve user experience. For example, the electronic device displays a photographing interface, the photographing interface includes a preview image, and the preview image includes a person object. The electronic device starts a timer when the person object in the preview image remains stationary. The electronic device photographs to obtain a first image when the timer reaches a set time length.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a shooting method and electronic device. Background Technology

[0002] Currently, most electronic products have image capture capabilities. Generally, the image capture process involves opening the camera interface on the electronic device and then clicking the capture button to complete the shot. This method requires the user to manually press the capture button, which is not very convenient. Summary of the Invention

[0003] This application provides a shooting method and electronic device that can improve the convenience of image shooting and enhance the user experience.

[0004] In a first aspect, a shooting method is provided, applied to an electronic device, the method comprising: displaying a shooting interface, the shooting interface including a preview image, the preview image including a human object; determining that the human object in the preview image remains stationary, and starting a timer; when the timer reaches a set duration, capturing a first image.

[0005] In this embodiment of the application, the electronic device can automatically capture images, which improves the convenience of image capture. Moreover, when the electronic device determines that the person in the preview image is stationary, it starts a countdown. When the countdown reaches 0, it automatically captures the image. Since the countdown is started only when the person is stationary, it can ensure that the image is captured automatically when the subject has already adjusted the shooting posture, so as to ensure that the person in the captured image is clear, thus improving the image capture command.

[0006] In one possible design, starting a timer when it is determined that the person in the preview image remains stationary includes: starting a timer when it is determined that the person in the preview image remains stationary and the stationary duration reaches a first duration.

[0007] In this embodiment of the application, when the electronic device determines that the stillness duration of the person in the preview image has reached the first duration, it starts a countdown to take a picture, avoiding accidental start of the countdown and ensuring that the picture is taken automatically when the subject has adjusted the shooting posture, so as to ensure that the person in the picture is clear and improve the image shooting command.

[0008] In one possible design, the preview image includes N human figures. The step of starting a timer when the human figures in the preview image are stationary includes: starting a timer when M human figures out of the N human figures are stationary, wherein the ratio of M to N is greater than a first threshold; and / or, the M human figures are located at a preset position in the preview image.

[0009] In this embodiment of the application, when the electronic device determines that most of the people in the preview image remain still, it starts a countdown to take a picture, which improves the convenience of image shooting and ensures that most of the people in the captured image are clear, thus improving the image shooting command.

[0010] In one possible design, the M individual figures are located in the central area of ​​the preview image.

[0011] In this embodiment of the application, when the electronic device determines that the person in the center area of ​​the preview image remains stationary, it starts a countdown to take a picture, which improves the convenience of image shooting and ensures that the main person in the captured image is clear, thus improving the image shooting command.

[0012] In one possible design, prior to starting the timer, the method further includes determining that the number of human figures contained within the preview image remains constant.

[0013] In this embodiment of the application, when the electronic device determines that the number of people in the preview image remains unchanged, it starts a countdown to take a picture, which improves the convenience of image shooting and ensures that the people in the captured image are clear, thus improving the image shooting command.

[0014] In one possible design, determining that the number of human objects contained in the preview image remains constant includes: determining that the number of human objects in the preview image remains constant for a second duration.

[0015] In this embodiment of the application, when the electronic device determines that the number of people in the preview image remains unchanged and the duration of this unchanged period is a second duration, it starts a countdown to take a picture. This avoids accidentally starting the countdown and can ensure that the captured image is as clear as possible without any people entering or leaving the frame, thus improving the image capture efficiency.

[0016] In one possible design, before starting the timer when it is determined that the person in the preview image remains stationary, the method further includes: receiving a first operation; and in response to the first operation, entering a first mode, wherein the first operation is a mode for starting the timer after determining that the person is stationary.

[0017] In this embodiment, after the electronic device enters the first mode, it starts a countdown to take a picture when the subject is determined to be stationary. Therefore, users can decide whether to enter the first mode according to their needs, resulting in a better user experience.

[0018] In one possible design, after entering the first mode, the method further includes: displaying a first prompt message, the first prompt message being used to indicate that the first mode has been entered.

[0019] In this embodiment of the application, after the electronic device enters the first mode, it can prompt the user that it has entered the first mode, resulting in a better user experience.

[0020] In one possible design, the method further includes: receiving a second operation; and in response to the second operation, exiting the first mode and entering a second mode, wherein the second mode is a mode that starts a countdown when the shooting button is triggered.

[0021] In this embodiment, after the electronic device enters the second mode, a countdown begins for shooting when the user presses the shutter button. Therefore, the user can choose to use either the first or second mode according to their needs, resulting in a better user experience.

[0022] In one possible design, the method further includes: receiving a third operation; and in response to the third operation, setting a set duration for the timer in the first mode.

[0023] In this embodiment, after the electronic device enters the first mode, it starts a countdown to take a picture when the subject is determined to be stationary. Therefore, users can decide whether to enter the first mode according to their needs, resulting in a better user experience. Furthermore, the countdown duration in the first mode can be set by the user, further enhancing the user experience.

[0024] In one possible design, the timer's set duration in the first mode is the default duration.

[0025] In this embodiment, after the electronic device enters the first mode, it starts a countdown to take a picture when the subject is determined to be stationary. Therefore, users can decide whether to enter the first mode according to their needs, resulting in a better user experience. Moreover, the countdown duration in the first mode can be a default duration, eliminating the need for users to set it manually, thus offering good convenience.

[0026] In one possible design, the electronic device includes a first screen and a second screen, the first screen being located on the front of the electronic device and the second screen being located on the back of the electronic device. Before starting the timer when it is determined that the person in the preview image remains stationary, the device further includes: determining that the shooting interface is displayed on the second screen.

[0027] In this embodiment, when the rear display screen of the electronic device enters the shooting interface, it can automatically enter the first mode for shooting, that is, when the person is determined to be stationary, a countdown is started to take the picture. This automatic entry into the first mode is highly convenient.

[0028] In one possible design, the second screen is smaller than the first screen.

[0029] In this embodiment, because the rear display screen of the electronic device is relatively small, it can automatically enter the first mode for shooting when the rear display screen enters the shooting interface. That is, it starts a countdown to shoot when the subject is determined to be stationary. This automatic entry into the first mode is highly convenient.

[0030] In one possible design, the shooting interface does not include a shooting button.

[0031] In this embodiment, because the rear display screen of the electronic device is relatively small, it can automatically enter the first mode for shooting when the rear display screen enters the shooting interface. That is, it starts a countdown to shoot when the subject is confirmed to be stationary. This automatic entry into the first mode is highly convenient. Furthermore, in this case, the electronic device can automatically shoot, so there is no need to display a shooting button on the rear display screen, avoiding obstruction of the display screen.

[0032] Secondly, an electronic device is also provided, comprising:

[0033] Processor, memory, and one or more programs;

[0034] The one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the method provided in the first aspect above.

[0035] Thirdly, a computer-readable storage medium is also provided for storing a computer program that, when run on a computer, causes the computer to perform the method provided in the first aspect above.

[0036] Fourthly, a computer program product is also provided, comprising a computer program that, when run on a computer, causes the computer to perform the method provided in the first aspect above.

[0037] Fifthly, a chip is also provided, which is coupled to a memory in an electronic device for calling a computer program stored in the memory and executing the technical solution provided in the first aspect of the embodiments of this application. In the embodiments of this application, "coupling" means that two components are directly or indirectly combined with each other.

[0038] For the technical effects that can be achieved by the second to fifth aspects mentioned above, please refer to the description of the technical effects that can be achieved by the corresponding design scheme in the first aspect mentioned above. This application will not repeat them here. Attached Figure Description

[0039] Figure 1 A schematic diagram of a manually taken image provided for an embodiment of this application;

[0040] Figure 2 A schematic diagram illustrating automatic image capture according to an embodiment of this application;

[0041] Figure 3 A schematic diagram illustrating a manually triggered countdown provided in an embodiment of this application;

[0042] Figure 4 A schematic diagram illustrating an embodiment of this application of an automatically triggered countdown;

[0043] Figure 5 This is a schematic flowchart of a shooting method provided in an embodiment of this application;

[0044] Figure 6 Another schematic flowchart of the shooting method provided in one embodiment of this application;

[0045] Figure 7 A schematic diagram of a shooting interface provided in an embodiment of this application;

[0046] Figures 8A to 8B Another schematic diagram of the shooting interface provided in an embodiment of this application;

[0047] Figures 9A to 9B A schematic diagram of a folding device provided in an embodiment of this application;

[0048] Figures 10 to 11 A schematic diagram of a prompt message for a first mode provided in an embodiment of this application;

[0049] Figure 12 Another schematic flowchart of the shooting method provided in one embodiment of this application;

[0050] Figures 13A to 13B A schematic diagram of an electronic device provided in an embodiment of this application;

[0051] Figure 14 Another schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0052] The following explanations of some terms used in the embodiments of this application are provided to facilitate understanding by those skilled in the art.

[0053] The embodiments of this application involve at least one, including one or more; where "multiple" means two or more. Furthermore, it should be understood that in the description of this specification, terms such as "first," "second," and "third" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or order. For example, "first event" and "second event" do not represent the degree of importance of the two or their order, but are merely for descriptive distinction. In the embodiments of this application, "and / or" merely describes an association relationship, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0054] The directional terms mentioned in the embodiments of this application, such as "up", "down", "left", "right", "inner", and "outer", are only for reference to the directions in the accompanying drawings. Therefore, the directional terms used are for better and clearer explanation and understanding of the embodiments of this application, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the embodiments of this application.

[0055] References to "one embodiment," "in some examples," or "some embodiments" as described in the embodiments of this application mean that one or more embodiments of this specification include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in some examples," "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0056] The technical solutions provided in this application can be applied to electronic devices. The electronic device can be any device with image capture capabilities. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, personal computer (PC), ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), or other portable devices; or it can be a wearable device such as a watch or bracelet; or it can be an in-vehicle device, which can be mounted on various means of transportation such as cars, trains, electric vehicles, helicopters, airplanes, ships, bicycles, and motorcycles; or it can be a virtual reality (VR) device, augmented reality (AR) device, mixed reality (MR) device, etc. In short, this application does not limit the specific type of electronic device.

[0057] In the embodiments of this application, the image capturing function of the electronic device may include two types: manual capturing and automatic capturing, which will be described separately below.

[0058] 1. Manual shooting.

[0059] For example, an electronic device takes a picture based on a user's operation. The user operation could be an action performed on a shutter button. For example, such as... Figure 1 This is a schematic diagram of an image capturing interface provided in an embodiment of this application. Figure 1 The image capture interface includes a capture button 100. When the electronic device receives an operation on the capture button 100, it captures an image. This manual shooting method allows the user to take a picture after preparing their shooting posture and triggering the capture button, resulting in images that generally meet the user's expectations. However, in some scenarios, manual shooting is inconvenient and can affect image quality. For example, in a scenario where a user is holding their phone to take a selfie, after adjusting their shooting posture, they need to trigger the capture button on the shooting interface with their hand to take a picture. Understandably, during the process of triggering the capture button, on the one hand, the user needs to look at the capture button, which means they cannot look directly at the camera, resulting in the image where the user's eyes are not looking directly at the lens, affecting aesthetics; on the other hand, triggering the capture button may require adjusting body posture, forcing the user to adjust their original shooting posture, thus affecting the user experience.

[0060] II. Automatic shooting.

[0061] One possible approach is that after the electronic device displays the image capture interface, a timer can be started, and the image is automatically captured when the timer reaches a set duration. Optionally, the timer can be a countdown timer. For example, the set duration could be 2 seconds, 5 seconds, 10 seconds, etc. Figure 2 This is another schematic diagram of an image capturing interface provided in an embodiment of this application. Figure 2 The image capture interface displays a countdown timer; when the countdown reaches 0, the image is automatically captured. This automatic capture method eliminates the need for the user to look at the capture button or adjust their body position to reach it, significantly improving convenience. It should be noted that this automatic capture method can also be called "timed capture," "countdown capture," "delayed capture," or other names without limitation.

[0062] The following embodiments are mainly illustrated using automatic shooting as an example. As mentioned above, in an automatic shooting scenario, the electronic device needs to start a countdown timer, and automatically shoot when the countdown reaches 0. In the embodiments of this application, the electronic device starts the countdown timer in two ways: the first is manual start, and the second is automatic start.

[0063] The first method is to manually start the countdown.

[0064] One possible approach is for the electronic device to start a countdown when it receives a manual operation, and automatically take a picture when the countdown reaches zero. For example, please see... Figure 3 (a) in the figure is a schematic diagram of an image capturing interface provided in an embodiment of this application. Figure 3 In (a), the image capture interface includes a capture button 100. When the electronic device receives an operation on the capture button 100, it starts a countdown, such as... Figure 3 (b) For example, when the electronic device receives an operation on the shutter button 100, it can immediately start a countdown. In this method, after the user triggers the shutter button 100, the countdown starts immediately. The user should ideally prepare their shooting posture before the countdown reaches 0; otherwise, the shooting quality will be affected. Therefore, if the countdown duration is set to be short, the user's preparation time for shooting posture will be very short, which will create a sense of urgency for the user and affect the user experience.

[0065] The second method is to automatically start the countdown.

[0066] One possible approach is for the electronic device to automatically start a countdown when it detects that certain conditions are met, and then automatically take a picture when the countdown reaches zero. For example, please see... Figure 4 (a) in the figure is a schematic diagram of an image capturing interface provided in an embodiment of this application. Figure 4In (a) of the image capture interface, a preview image is included. When the electronic device determines that the preview image meets the conditions, it automatically starts a countdown, such as... Figure 4 (b) In this method, the countdown can start automatically without the user needing to press the shutter button 100, which is quite convenient.

[0067] As mentioned above, the electronic device automatically starts a countdown when it detects that a condition is met. Optionally, the condition may include at least one of the following:

[0068] (1) The preview image contains a human figure, and the human figure is in a static state.

[0069] Optionally, the person in the preview image being stationary can include: the position, posture, expression, or action of the person in the preview image remaining unchanged. It is understood that the preview image may include other objects besides the person, such as the background (e.g., trees, buildings, vehicles). Considering that the background may be stationary or dynamically changing, the electronic device in this embodiment may not need to consider whether the background is stationary. In some embodiments, the person in the preview image being stationary can include: the person in the preview image being stationary relative to the background. For example, the first moving speed of the person is less than the second moving speed of the background; optionally, the difference between the first and second moving speeds is greater than a preset speed. Taking street scene photography as an example, the subject is walking on the street, and vehicles are driving on the street. Therefore, the preview image includes both the person and the vehicles. The moving speed of the person is less than the moving speed of the vehicles, thus determining that the person is stationary relative to the background.

[0070] It is understandable that the preview image may contain one or more figures. Taking a preview image containing N figures as an example, where N is an integer greater than or equal to 2, the electronic device determines that the figures in the preview image are stationary by: determining that M figures in the preview image are stationary, where the ratio of M / N is higher than a threshold, for example, the threshold is 1 / 2, 2 / 3, etc., and / or, the M figures are located at a preset position in the preview image (e.g., the central area). In other words, the countdown can begin when most figures in the preview image are stationary and / or when figures in the central area are stationary.

[0071] In some embodiments, the electronic device may start the countdown immediately when it determines that the person in the preview image is stationary. Alternatively, the electronic device may start the countdown when it determines that the person in the preview image is stationary and the stationary period exceeds a preset duration (indicating that the subject has posed).

[0072] (2) The preview image contains human figures, and the number of human figures remains unchanged.

[0073] In other words, the electronic device automatically starts a countdown to take a picture when it determines that no people are entering or leaving the frame. Optionally, the number of people remains constant, which may include: the number of heads remaining constant, for example, the number of faces remaining constant.

[0074] In some embodiments, the electronic device may start the countdown immediately when it determines that the number of people in the preview image remains constant. Alternatively, the electronic device may start the countdown when it determines that the number of people in the preview image remains constant and the duration of this constant change exceeds a preset duration (indicating that all subjects are in the frame).

[0075] The following text will continue to use the second method (i.e., automatically starting the countdown) as an example for detailed explanation.

[0076] For example, see Figure 5 This is a schematic flowchart of a shooting method provided in an embodiment of this application, as shown below. Figure 5 As shown, the process may include:

[0077] S400 displays the shooting interface. For example, the shooting interface could be... Figure 4 The interface shown in (a) is shown in the image.

[0078] S401, Entering the first mode, which is the automatic countdown mode, also known as the "automatic timer mode". The process of entering the first mode will be explained later. Figure 6 As described in the text.

[0079] S402, Start Algorithm. This algorithm is used to determine whether the conditions are met. If they are met, the countdown begins.

[0080] Optionally, before S402, the function may also include: the electronic device receiving an operation on the shutter button. That is, if the first mode has already been entered, the algorithm is only activated after the user triggers the shutter button to perform a conditional judgment; if the condition is met, a countdown is started.

[0081] S403: The algorithm identifies whether the preview image contains a person. If it does, S404 is executed; otherwise, S403 is executed again.

[0082] Optionally, the algorithm can be an image recognition algorithm that can identify the type of objects contained in the preview image. When an object of the type of person is identified in the preview image, it is determined that the preview image contains a person object.

[0083] S404: The algorithm determines whether the character object is stationary. If it is, then execute S405; otherwise, re-execute S404 or re-execute S403.

[0084] One possible approach is for an electronic device to capture multiple consecutive preview images and determine the location, posture, expression, and movement of a person within each frame. If the position, posture, expression, and movement of the person are identical across multiple consecutive preview images, then the person is determined to be stationary.

[0085] S405, the algorithm determines whether the number of character objects remains unchanged. If so, execute S406; otherwise, re-execute S405, S404, or S403.

[0086] One possible approach is for the electronic device to capture multiple consecutive preview images and determine the number of human objects in each preview image. If the number of human objects is the same in multiple consecutive preview images, then the number of human objects is determined to remain constant.

[0087] S406, countdown begins.

[0088] S407: Take an image when the countdown reaches 0.

[0089] Optionally, the images captured by the electronic device in S407 may include one or more frames; for example, the captured images may be an animated image or an image sequence.

[0090] The above embodiments illustrate two shooting methods: manual and automatic shooting, and the automatic shooting method includes both manual and automatic countdown initiation. In some embodiments, the electronic device may include at least one of a first mode, a second mode, and a third mode. The first mode and the second mode are both automatic shooting modes; for example, the first mode is an automatic countdown initiation mode (also known as an automatic timing mode), and the second mode is a manual countdown initiation mode (also known as a manual timing mode). The third mode is a manual shooting mode. The following describes the image capturing process using an electronic device including the first mode, the second mode, and the third mode as an example.

[0091] For example, see Figure 6 This is a schematic flowchart of an image capturing method provided in an embodiment of this application. Figure 6 As shown, the process includes:

[0092] S500, displaying the shooting interface.

[0093] In this embodiment of the application, when the electronic device displays the shooting interface, it may enter a first mode, a second mode, or a third mode; when entering the third mode, the process of S502 to S503 is used to shoot images; when entering the second mode, the process of S505 to S507 is used to shoot images; when entering the first mode, the process of S510 to S515 is used to shoot images.

[0094] S501, enter the third mode, which is the manual shooting mode.

[0095] In some embodiments, when an electronic device launches a camera application, it defaults to the third mode. In other embodiments, the electronic device is in the third mode even when it has not entered any other shooting mode (e.g., the first or second mode).

[0096] S502: Determine if the shutter button has been pressed. If yes, execute S503; otherwise, re-execute S502.

[0097] S503, taking pictures.

[0098] S504, enter the second mode, which is the manual timer mode, meaning the user needs to manually trigger the countdown.

[0099] One possible approach is that the electronic device enters the second mode after detecting a command indicating that it is in the second mode. For example, the shooting interface includes a second control for indicating the second mode, and the electronic device enters the second mode when it detects that the user clicks on the second control.

[0100] For example, such as Figure 7 In (a), the shooting interface displays a timer control 700. When the electronic device receives an operation on the control 700, it displays the "Manual Timer" option 701 (i.e., the second control). If the electronic device receives an operation on option 701, it enters the second mode.

[0101] For example, such as Figure 7 In (b), the shooting interface displays a timer control 703. When the electronic device receives an operation on the control 703, it displays the "Manual Timer" option 704 (i.e., the second control). If the electronic device receives an operation on the option 704, it enters the second mode.

[0102] For example, such as Figure 7 In (c), the shooting interface displays a timer control 706. When the electronic device receives an operation on the control 706, it displays the "Manual Timer" option 707 (i.e., the second control). If the electronic device receives an operation on the option 707, it enters the second mode.

[0103] For example, such as Figure 8A (a) The shooting interface includes more options 801. After the electronic device detects that the user clicks on more options 801, it displays as follows: Figure 8A (b) The shooting mode interface includes a timer control 802. When the electronic device detects that the user has clicked control 802, it displays the "Manual Timer" option 803 (i.e., the second control). If the electronic device receives an operation on option 803, it enters the second mode.

[0104] For example, such as Figure 8B (a) The shooting interface includes a settings button. After the electronic device detects that the user has clicked the settings button, it displays the following: Figure 8B (b) The settings interface includes a timed shooting option. After the electronic device detects that the user has clicked the timed shooting option, it displays the following: Figure 8B (c) is the interface, which includes two options: "Manual Timer" and "Automatic Timer". When the electronic device receives an operation for the "Manual Timer" option, it displays as shown below. Figure 8B (d) The interface includes a switch button for entering or exiting the second mode.

[0105] S505 checks if the shutter button has been pressed. If so, proceed to S506; otherwise, repeat S505.

[0106] S506, countdown begins.

[0107] In some embodiments, the countdown duration set in S506 can be the default duration in the second mode, such as 5 seconds. This eliminates the need for the user to manually set the countdown duration in the second mode. In other embodiments, the countdown duration set in S506 can be a user-specified duration. One possible approach is as follows: Figure 8B (d) The interface includes options for setting the countdown duration in the second mode, such as 2s, 5s, 10s, etc. Assuming the electronic device determines that the user selects 2s, then the countdown duration in the second mode is set to 2s.

[0108] S507, taking pictures.

[0109] S508, enter the first mode, which is the automatic timer mode, that is, the countdown will start automatically.

[0110] Optionally, entering the first mode can include two methods: automatic entry and manual entry.

[0111] Taking manually entering the first mode as an example, the phone enters the first mode after detecting a command indicating that it is in the first mode. One possible approach is to include a first control on the shooting interface to indicate the first mode; when the electronic device detects that the user clicks on this first control, it enters the first mode.

[0112] For example, such as Figure 7 In (a) of the image capture interface, a timer control 700 is displayed. When the electronic device receives an operation on the control 700, it displays the "Automatic Timer" option 702 (i.e., the first control). If the electronic device receives an operation on option 702, it enters the first mode.

[0113] For example, such as Figure 7 In (b), the shooting interface displays a timing control 703. When the electronic device receives an operation on the control 703, it displays the "automatic timing" option 705 (i.e., the first control). If the electronic device receives an operation on the option 705, it enters the first mode.

[0114] For example, such as Figure 7 In (c), the shooting interface displays a timing control 706. When the electronic device receives an operation on the control 706, it displays the "Automatic Timing" option 708 (i.e., the first control). If the electronic device receives an operation on the option 708, it enters the first mode.

[0115] For example, such as Figure 8A (a) The shooting interface includes more options 801. After the electronic device detects that the user clicks on more options 801, it displays as follows: Figure 8A (b) The shooting mode interface includes a timer control 802. When the electronic device detects that the user has clicked control 802, it displays the "Automatic Timer" option 804 (i.e., the first control). If the electronic device receives an operation on option 804, it enters the first mode.

[0116] For example, such as Figure 8B (a) The shooting interface includes a settings button. After the electronic device detects that the user has clicked the settings button, it displays the following: Figure 8B (b) The settings interface includes a timed shooting option. After the electronic device detects that the user has clicked the timed shooting option, it displays the following: Figure 8B (c) is the interface, which includes two options: "Manual Timer" and "Automatic Timer". When the electronic device receives an operation for the "Automatic Timer" option, it displays as shown below. Figure 8B (e) is an interface that includes a switch button for entering or exiting the first mode.

[0117] Taking automatic entry into the first mode as an example, for instance, the electronic device automatically enters the first mode when it determines that the entry conditions for the first mode are met. Optionally, the entry conditions for the first mode may include at least one of the following:

[0118] (1) The electronic device determines that the current shooting interface is displayed, but the user is not holding the phone. One possible scenario is that the user fixes the electronic device on a tripod and the user is a certain distance away from the electronic device. In this scenario, it can automatically enter the first shooting mode.

[0119] (2) The electronic device includes a first screen and a second screen. The first screen is located on the back of the electronic device, and the second screen is located on the front of the electronic device. The electronic device automatically enters the first mode when it determines that the first screen is currently displaying the shooting interface. That is, it can automatically enter the first mode when the shooting interface is displayed on the rear screen. One possible scenario is, for example, as... Figure 9A The electronic device has a screen (the first screen) on its back, but this screen is relatively small. When the shooting interface is displayed on this screen, it can automatically enter the first mode. Optionally, the shooting interface on this screen may not include the shooting button 100, because displaying the shooting button 100 on a small screen would obscure the entire screen. It should be noted that... Figure 9A Taking the circular rear display screen (i.e., the first screen) as an example, it is understandable that the rear display screen could have other shapes; this is not a limitation. Furthermore, Figure 9A Taking the second screen as an example, it's optional; the second screen may not be a foldable screen. One possible scenario is, for example... Figure 9B When a user uses the rear display screen (i.e., the first screen) to open the shooting interface for a selfie, the camera application detects that the shooting interface is open on the rear display screen and automatically enters the first mode. After entering the first mode, when it detects that the person in the preview image is in a stationary state, it starts a countdown. When the countdown reaches 0, it takes an image.

[0120] Optionally, before the electronic device automatically enters the first mode, it may output a prompt message to remind the user whether to enter the first mode. For example, such as... Figure 10 In (a), the shooting interface displays a prompt: "Enter first mode?". Considering that users may not be familiar with the function of the first mode, in some embodiments, Figure 10 In (a) of the above, when the electronic device receives an operation in response to the prompt information, it displays as shown in the image. Figure 10The interface in (b) includes a brief introduction to the first mode, such as, "Start the countdown while you remain still." Therefore, the user can clearly understand the function of the first mode through this introduction. Optionally, the introduction to the first mode may automatically disappear after a certain duration, or it may disappear upon detecting user interaction (e.g., interaction anywhere within the shooting interface). Continuing... Figure 10 Taking (a) as an example, after the electronic device displays a prompt asking whether to enter the first mode, it enters the first mode if it receives a confirmation command. One possible approach is for the electronic device to prompt the user to tap to confirm entering the first mode; when the electronic device receives a tap, it enters the first mode. Alternatively, the electronic device can display a confirmation control (not shown in the figure), and when it receives an operation on the confirmation control, it enters the first mode. Or, the electronic device can collect an audio signal and detect that the audio signal includes the message "Confirm Entry," then it enters the first mode.

[0121] In some embodiments, after the electronic device enters the first mode, it may display a prompt message to indicate that it has successfully entered the first mode. For example, please see... Figure 11 The electronic device displays a prompt message: "Entering the first mode." Optionally, the prompt message will automatically disappear after a certain period of time.

[0122] S509, startup algorithm.

[0123] S510: The algorithm identifies whether the preview image contains a person. If it does, S511 is executed; otherwise, S510 is executed again.

[0124] S511: The algorithm determines whether the character object is stationary. If it is, S512 is executed; otherwise, S511 or S510 is executed again.

[0125] S512, the algorithm determines whether the number of character objects remains unchanged. If so, execute S513; otherwise, re-execute S512, S511, or S510.

[0126] S513, countdown begins.

[0127] In some embodiments, the countdown duration set in S513 can be the default duration in the first mode, such as 5 seconds. This eliminates the need for the user to manually set the countdown duration in the first mode. In other embodiments, the countdown duration set in S513 can be a user-specified duration. One possible approach is as follows: Figure 8B(e) The interface includes options for setting the countdown duration in the first mode, such as 2s, 5s, 10s, etc. Assuming the electronic device determines that the user selects 2s, then the countdown duration in the first mode is set to 2s.

[0128] S514: Capture an image when the countdown reaches 0.

[0129] Please see Figure 12 This is a schematic diagram illustrating another process of the shooting method provided in one embodiment of this application. This process can be applied to... Figure 9A or Figure 9B The foldable phone shown. Figure 12 The process may include:

[0130] On the S1200, in the camera application, turn on the automatic timer function.

[0131] by Figure 9A Taking a foldable phone as an example, users can launch the camera app on the front display and then turn on the automatic timer function within the camera app. For example, turn on... Figure 8B (e) interface, and trigger the automatic timer switch to turn on.

[0132] The S1201 triggers the automatic timer function when the shooting interface is opened on the external screen.

[0133] It should be noted that the embodiments of this application are not limited to opening the shooting interface on the external screen. One possible way is to first open the shooting interface on the front display screen, and then trigger a switch button to switch the shooting interface to the external screen.

[0134] S1202, determine whether there is a human figure in the preview image. If so, execute S1203; otherwise, continue the detection.

[0135] S1203: Is the character object stationary relative to the background? If yes, proceed to S1204; otherwise, continue the check.

[0136] S1204, countdown begins.

[0137] S1205, countdown ended, automatic photo taking.

[0138] S1206, Next round of shooting. Optionally, S1206 can include continuing to execute S1202 through S1205.

[0139] Please see Figure 13A This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may be a mobile phone as mentioned above. Figure 13AAs shown, the electronic device includes a processor, a camera, a display, and a memory. The processor performs image processing, such as identifying whether a person or object exists in the preview image, whether the person or object is stationary, and whether the number of people or objects remains constant. The camera captures images. The display shows the images. The memory stores the images. For example, after the electronic device activates the camera, the display shows a preview image captured by the camera. The processor identifies whether a person or object exists in the preview image, whether the person or object is stationary, and whether the number of people or objects remains constant. When the conditions are met, a countdown begins to take a picture, and then the captured image is stored in the memory.

[0140] Please see Figure 13B This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may be a mobile phone as mentioned above. Figure 13B As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0141] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the nerve center and command center of the electronic device. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has just used or is recurring. If processor 110 needs to reuse an instruction or data, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of processor 110, and thus improves system efficiency.

[0142] In some embodiments, the processor 110 may execute the shooting method provided in the embodiments of this application.

[0143] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0144] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0145] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0146] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0147] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.

[0148] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.

[0149] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0150] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0151] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0152] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in conjunction with a tuning switch.

[0153] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G in electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0154] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0155] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the electronic device to communicate with networks and other devices via wireless communication technology.

[0156] The display screen 194 is used to display the application's interface, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device may include one or N display screens 194, where N is a positive integer greater than 1.

[0157] The electronic device 100 can perform shooting functions through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor. The ISP is used to process the data fed back by the camera 193.

[0158] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and software code for at least one application program. The data storage area may store data generated during the use of the electronic device (e.g., images, videos, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, general-purpose flash memory, etc.

[0159] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, images, videos, and other files can be saved on the external memory card.

[0160] Electronic devices can implement audio functions such as music playback and recording through audio modules 170, speakers 170A, receivers 170B, microphones 170C, headphone jacks 170D, and application processors.

[0161] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0162] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls and other external playback scenarios through one or more speakers 170A.

[0163] The receiver 170B, also known as a "handpiece," can be one or more, and is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0164] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.

[0165] The 170D headphone jack is used to connect wired headphones.

[0166] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.

[0167] The gyroscope sensor 180B can be used to determine the motion attitude of an electronic device. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization.

[0168] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0169] The magnetic sensor 180D includes a Hall effect sensor. Electronic devices can use the magnetic sensor 180D to detect the opening and closing of a flip cover.

[0170] The 180E accelerometer can detect the magnitude of acceleration in various directions (typically three axes) of electronic devices. When the electronic device is stationary, it can detect the magnitude and direction of gravity.

[0171] The 180F distance sensor is used to measure distance. Electronic devices can measure distance using infrared or laser.

[0172] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device emits infrared light outward through the LED. The electronic device uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the electronic device. When insufficient reflected light is detected, the electronic device can determine that no object is near the electronic device.

[0173] An ambient light sensor 180L is used to detect ambient light levels. Electronic devices can adaptively adjust the brightness of the display screen 194 based on the detected ambient light levels.

[0174] The fingerprint sensor 180H is used to collect fingerprints.

[0175] The 180J temperature sensor is used to detect temperature.

[0176] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K is used to detect touch operations applied to or near it. The touch sensor can then transmit the detected touch operation to the application processor to determine the type of touch event.

[0177] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords.

[0178] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. The electronic device can receive button inputs and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device.

[0179] Understandable, Figure 13B The components shown do not constitute a specific limitation on the electronic device. The electronic device in the embodiments of the present invention may include, but is not limited to, components that are more advanced than those shown. Figure 13B More or fewer parts. Furthermore, Figure 13B The combination / connection relationships between the components can also be adjusted and modified.

[0180] Figure 14 This is a schematic diagram of the structure of the electronic device 1400 provided in an embodiment of this application. The electronic device 1400 can be one of the electronic devices described above (e.g., a mobile phone). Figure 14 As shown, the electronic device 1400 may include: one or more processors 1401; one or more memories 1402; a communication interface 1403; and one or more computer programs 1404. These devices can be connected via one or more communication buses 1405. The one or more computer programs 1404 are stored in the memory 1402 and configured to be executed by the one or more processors 1401. The one or more computer programs 1404 include instructions. For example, when the electronic device 1400 is the electronic device described above, the instructions can be used to perform relevant steps of the electronic device as in the corresponding embodiments above, such as executing... Figures 1 to 12The relevant steps of the electronic device. The communication interface 1403 is used to enable communication between the electronic device 1400 and other devices, such as a transceiver.

[0181] In the embodiments provided above, the methods provided by the embodiments of this application are described from the perspective of an electronic device (e.g., a mobile phone) as the executing entity. To implement the functions of the methods provided in the embodiments of this application, the electronic device may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is implemented in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.

[0182] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)). Where there is no conflict, the solutions in the above embodiments can be used in combination.

[0183] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0184] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0185] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0186] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0187] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope and intent of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and variations.

Claims

1. A shooting method, characterized in that, Applied to electronic devices, the method includes: The shooting interface is displayed, which includes a preview image, and the preview image includes a person object; When the person in the preview image remains stationary, start the timer; When the timer reaches the set duration, the first image is captured.

2. The method according to claim 1, characterized in that, When it is determined that the person in the preview image remains stationary, a timer is started, including: When the person in the preview image is determined to remain still and the stillness duration reaches a first duration, a timer is started.

3. The method according to claim 1 or 2, characterized in that, The preview image includes N human figures, where N is a positive integer. The step of starting a timer when the human figures in the preview image remain stationary includes: When it is determined that M out of the N character objects are stationary, a timer is started, wherein the ratio of M to N is greater than a first threshold, and / or the M character objects are located at a preset position in the preview image, wherein M is a positive integer less than or equal to N.

4. The method according to any one of claims 1-3, characterized in that, Before starting the timer, the following is also included: The number of human figures contained in the preview image is kept constant.

5. The method according to claim 4, characterized in that, Determining that the number of human figures contained within the preview image remains constant includes: The number of human figures in the preview image is determined to remain constant, and the duration for which this constant number remains constant is defined as the second duration.

6. The method according to any one of claims 1-5, characterized in that, Before starting the timer when the person in the preview image is determined to remain stationary, the method further includes: First operation received; In response to the first operation, enter the first mode, whereby the first operation is to start a timer after determining that the character object is stationary.

7. The method according to claim 6, characterized in that, After entering the first mode, the method further includes: The first prompt message is displayed, indicating that the first mode has been entered.

8. The method according to claim 6 or 7, characterized in that, The method further includes: Receive the second operation; In response to the second operation, exit the first mode and enter the second mode, which is the mode that starts a countdown when the shooting button is triggered.

9. The method according to any one of claims 6-8, characterized in that, The method further includes: Receive third operation; In response to the third operation, the set duration of the timer in the first mode is set.

10. The method according to any one of claims 6-9, characterized in that, The timer's set duration in the first mode is the default duration.

11. The method according to any one of claims 1-10, characterized in that, The electronic device includes a first screen and a second screen, the first screen being located on the front of the electronic device and the second screen being located on the back of the electronic device. Before starting the timer after determining that the person in the preview image remains stationary, the device further includes: The shooting interface is confirmed to be displayed on the second screen.

12. The method according to claim 11, characterized in that, The size of the second screen is smaller than the size of the first screen.

13. The method according to any one of claims 1-12, characterized in that, The shooting interface does not include a shooting button.

14. An electronic device, characterized in that, include: Processor, memory, and one or more programs; The one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the steps of the method as described in any one of claims 1-13.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1 to 13.

16. A computer program product, characterized in that, Includes a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1 to 13.