Snapshot method, terminal device, and storage medium

By setting the capture function to turn on and automatically recognizing scene changes in the camera's photo mode, it solves the problem of difficulty in capturing wonderful moments in dynamic scenes in time, and improves the user's shooting experience and photo quality.

WO2024179053A1PCT designated stage expired Publication Date: 2024-09-06HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/132996
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2023-11-21
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When shooting dynamic scenes, it is difficult for users to capture the wonderful moments of object movement in time, resulting in a poor shooting experience.

Method used

Provide a capture method by displaying the photo preview interface in the camera's photo mode, setting the on or off status of the capture function, capturing image frames in real time in response to user operations, and automatically identifying scene changes when the automatic capture function is turned on, and saving the comprehensive score highest image frame.

Benefits of technology

It realizes the quick activation of the capture function in dynamic scenes, ensuring that the optimal frame during the shooting process is captured, improving the user's shooting experience and photo quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023132996_06092024_PF_FP
    Figure CN2023132996_06092024_PF_FP
Patent Text Reader

Abstract

The present application provides a snapshot method, a terminal device, and a storage medium. The method comprises: in a photographing mode of a camera, displaying a photographing preview interface, a first icon being displayed in the photographing preview interface, and the first icon being in an off state; in response to an operation of a user on a photographing button at a first moment, saving, into an image library, a first image frame captured at the first moment; in response to an operation of the user on the first icon, enabling a first function, and switching the first icon from the off state to an on state; displaying, in the photographing preview interface, a second image frame captured at a second moment in real time; and in response to an operation of the user on the photographing button at a third moment, saving the second image frame into the image library, wherein the second moment is earlier than the third moment. The technical solution provided by embodiments of the present application can improve photo quality and enhance user experience of using a camera.
Need to check novelty before this filing date? Find Prior Art

Description

A capture method, terminal device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 27, 2023, with application number 202310216792.5 and invention name “A capture method, terminal device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of image processing, and in particular to a capture method, terminal device and storage medium. Background Art

[0003] In daily life, when users use mobile phones and other electronic devices to take pictures, they click the shooting button to complete the photo shooting. When encountering a dynamic scene, for example, the target in the preview screen is in motion, and the user wants to capture the wonderful moment of the target's movement, but when the user's eyes see the wonderful moment and then click the shooting button to make the camera shoot, due to the target being in motion and the user's reaction delay and action delay, the mobile phone cannot accurately capture the wonderful moment of the object's movement, and the user experience is low. Contents of the invention

[0004] In view of this, the present application provides a capture method, a terminal device and a storage medium, which are used to solve the problem that the camera cannot record the wonderful moments of the movement in time when encountering a moving target, thereby improving the user's photo-taking experience.

[0005] Some embodiments of the present application provide a snapshot method, a terminal device, and a storage medium. The following describes the present application from multiple aspects, and the implementation methods and beneficial effects of the following aspects can be referenced with each other.

[0006] In a first aspect, the present application provides a snapshot method, the method comprising: in a camera's photo mode, displaying a photo preview interface, displaying a first icon in the photo preview interface, and the first icon being in a closed state; in response to a user's operation of a shooting button at a first moment, saving a first image frame captured at the first moment to a gallery; in response to the user's operation of the first icon, turning on a first function, and switching the first icon from a closed state to an open state; displaying a second image frame captured in real time at a second moment in the photo preview interface; and in response to the user's operation of the shooting button at a third moment, saving the second image frame to the gallery, wherein the second moment is earlier than the third moment.

[0007] In an embodiment of the present application, the first function may be referred to as a snapshot function, and the first icon is an icon indicating the state of the first function and turning the first function on or off. The shooting button is a shooting icon and may also be referred to as a shutter. When the first function is turned off, the terminal device saves the image frame (i.e., picture) captured at the moment the user operates the shooting button to the gallery. When the first function is turned on, in response to the user's operation of the shooting button, the terminal device may save the image frame before the operation to the gallery, thereby completing manual snapshot.

[0008] Through the snapshot method provided in the embodiment of the present application, when the first icon in the photo preview interface is turned off, the electronic device can save the corresponding image frame in real time in response to the user's photo operation; when the first icon is turned on, the electronic device can capture a frame of image before (or after) the operation in response to the user's photo operation, so that the user can quickly turn on the snapshot function in dynamic scenes and turn off the snapshot function in non-dynamic scenes to obtain better photo effects, so as to adapt to different shooting scenes.

[0009] In some embodiments, the method further includes: saving a third image frame to the gallery in response to a user operating the capture button at a fourth moment, wherein a fifth moment at which the third image frame is captured is later than the fourth moment.

[0010] Through the capture method provided in the embodiment of the present application, the terminal device can determine the optimal frame from the pictures taken in a period of time before and after the operation of the shooting icon. Therefore, through the solution of the present application, no matter whether the reaction time when taking pictures is delayed or advanced, the optimal frame in the shooting process can be captured, the best moment can be recorded, and user needs can be met to the greatest extent.

[0011] In some embodiments, the first setting item of the camera is an off state.

[0012] In the embodiment of the present application, the first setting item may be a setting item for turning on the automatic snapshot function, ie, an automatic snapshot switch item. When the first setting item is in the off state, the automatic snapshot function is turned off, and only manual snapshot is supported.

[0013] In some embodiments, when the first setting item of the camera is on, when a transition is detected in the real-time image frame displayed on the photo preview interface, a fourth image frame is automatically saved to the gallery, wherein the moment of capturing the fourth image frame is earlier than the moment of the transition.

[0014] In an embodiment of the present application, when the first setting item of the camera is in the on state, the automatic capture function is turned on. At this time, the terminal device can support automatic capture and manual capture at the same time.

[0015] When the terminal device captures image frames, it can identify the scene captured by the camera based on the captured image frames. When it is determined that the shooting scene has changed, that is, a transition occurs, such as from scene 1 to scene 2, the terminal device generates a photo based on the image frame with the highest comprehensive score in scene 1, stores the photo in the gallery, and completes automatic capture.

[0016] Through the snapshot method provided in the embodiments of the present application, the terminal device can support manual snapshots and support simultaneous automatic and manual snapshots, which meets the user's snapshot needs and improves the user's photography experience. In addition, the photo ultimately output by the terminal device is the frame with the highest overall score within the entire scene, that is, the optimal frame within the entire scene. Therefore, there is no need for the user to manually click the capture icon, which overcomes the problem of delayed response and can record the best moments, that is, wonderful moments, improving the user's photography experience.

[0017] In some embodiments, the second image frame is an image with the highest comprehensive score among a plurality of image frames in a first time period before the third moment and a plurality of image frames in a second time period after the third moment; and / or

[0018] The third image frame is an image with the highest comprehensive score among the multiple image frames in the first time period before the fourth moment and the multiple image frames in the second time period after the fourth moment;

[0019] The comprehensive score includes image quality score, portrait score and action score.

[0020] For example, the terminal device may pre-set weighting coefficients corresponding to the image quality score, portrait score, and action score, respectively. The terminal device then performs a weighted average of the image quality score, portrait score, and action score for a frame of image based on the pre-set weighting coefficients to obtain a comprehensive score for the frame of image. In the embodiments of the present application, the terminal device may also use other methods to determine the comprehensive score, which is not limited to this.

[0021] In some embodiments, the length of the first time period is 1 second, and the length of the second time period is 0.5 seconds.

[0022] In some embodiments, the photo preview interface also includes: a fourth icon, and the method also includes: when the fourth icon is in an on state and the first icon is in a off state, in response to the user's operation on the first icon, the first icon is switched from an off state to an on state, and the first function is turned on, the fourth icon is switched from an on state to an off state, and the second function is turned off; in response to the user's operation on the first icon, the first icon is switched from an on state to a off state, and the first function is turned off, the fourth icon is switched from an off state to an on state, and the second function is turned on.

[0023] In some embodiments, the photo preview interface also includes: a fourth icon, and the method also includes: when the first icon is in an on state and the fourth icon is in a off state, in response to the user's operation on the fourth icon, switching the fourth icon from an off state to an on state, and turning on the second function, switching the first icon from an on state to an off state, and turning off the first function; in response to the user's operation on the fourth icon, switching the fourth icon from an on state to a off state, and turning off the second function, switching the first icon from an off state to an on state, and turning on the first function.

[0024] In an embodiment of the present application, the fourth icon may be an icon for the AI ​​photography function. The terminal device may memorize user selections, such as the user's selection to enable the second function before enabling the first function, or the user's selection to enable the first function before enabling the second function, and based on the memorized user selections, quickly and automatically enable the corresponding photography function, thereby improving the efficiency of switching between photography functions.

[0025] In some embodiments, the method further includes: the photo preview interface further including: a fifth icon, wherein before the first function is enabled, the fifth icon is in a first state, the first state being any one of flash on, flash off, flash automatic, or flash always on. The method further includes: in response to a user operation on the first icon, switching the first icon from an off state to an on state, enabling the first function, displaying the fifth icon in an inoperable state, and disabling the flash.

[0026] In some embodiments, the method further includes: in response to a user operation on the first icon, switching the first icon from an on state to an off state, turning off the first function, and restoring the fifth icon to the first state.

[0027] In this embodiment of the present application, the flash and the first function are mutually exclusive, and turning on the flash will seriously affect the quality of the photo taken with the first function. The terminal device can display the fifth icon of the flash in an inoperable state when the first function is turned on, thereby disabling the flash and preventing the user from accidentally turning on the flash.

[0028] In some embodiments, the method further includes: when the first icon is in the on state, if the shooting scene of the camera changes from a first ambient light brightness to a second ambient light brightness, and the first ambient light brightness is greater than the second ambient light brightness, then turning off the first function and switching the first icon from the on state to the off state.

[0029] In some embodiments, the method also includes: when the ambient light brightness of the shooting scene of the camera is less than the third ambient light brightness and the first icon is in the off state, in response to the user's operation on the first icon, turning on the first function, and switching the first icon from the off state to the on state, a pop-up box displays sixth information, and the sixth information is used to prompt that it is not suitable to turn on the first function under the current shooting scene.

[0030] In the embodiment of the present application, the scenes of the second and third ambient light brightness are scenes that are not suitable for the snapshot function, such as night scenes, low-light environments, and high-dynamic scenes, that is, scenes where the ambient brightness is less than or equal to the preset brightness threshold. The scene of the first ambient light brightness is a scene that is suitable for the snapshot function, that is, a scene where the ambient brightness is greater than the preset brightness threshold, which can also be called a normal light environment.

[0031] When the first function is enabled, if the scene being photographed by the terminal device changes from a first ambient light level to a second ambient light level, the first function is automatically disabled and other camera functions, such as the AI ​​photography function, are enabled. Furthermore, after the first function is automatically disabled, the terminal device may display a fifth message in a pop-up window, indicating that the first function has been automatically disabled. When the first function is enabled, if the terminal device is in a scene unsuitable for snapshot photography for a long period of time, the terminal device may output a prompt, such as the sixth message, to encourage the user to disable the first function by operating the terminal device.

[0032] The fifth message will be displayed for a certain period of time (e.g., 5 seconds) and then disappear. In the process dimension, during the life cycle of the camera after it is turned on, the fifth message will be displayed every time a scene is switched, such as from a scene suitable for the snapshot function to a scene not suitable for the snapshot function.

[0033] The display rule of the sixth information can be: if the current scene is not suitable for snapshot, the sixth information does not disappear until the scene displayed in the preview window is suitable for snapshot. The display rule of the sixth information can also be implemented in the following two ways:

[0034] Method 1: For scene recognition, if the sixth information is displayed less than a preset number of times, such as five times, the sixth information will not be displayed again after five times, avoiding repeated reminders that affect the user experience. Here, in the process dimension, within the life cycle of opening the camera, the terminal device can display the sixth information at specified intervals for a specified duration, up to a maximum of five times.

[0035] Method 2: For scenes not suitable for snapshots, the sixth information is permanently displayed with no limit on the number of times. That is, the sixth information is displayed every time the scene is not suitable for snapshots. This can improve the shooting effect.

[0036] In some embodiments, the method further includes: when automatically saving the fourth image frame to the gallery, displaying a thumbnail of the fourth image frame in a gallery preview window on the photo preview interface, and the gallery preview window carries a first symbol.

[0037] In an embodiment of the present application, the terminal device stores the generated photo in the gallery, and at the same time, displays a thumbnail of the photo in the gallery preview window. For photos captured automatically, such as the fourth image frame mentioned above, when the thumbnail of the fourth image frame is displayed in the gallery preview window, the gallery preview window carries a first symbol (also referred to as a designated symbol); for photos captured manually, such as the second image frame and the third image frame mentioned above, or photos captured by other means, such as the first image frame mentioned above, when the thumbnail of the first image frame, the second image frame or the third image frame is displayed in the gallery preview window, the gallery preview window does not carry the first symbol. The first symbol not only serves the purpose of reminding the user that the current capture process is automatic, but also facilitates the user to understand the status of the camera, thereby improving user privacy and security.

[0038] In some embodiments, the method further includes: in response to a user operation on the gallery preview window on the photo preview interface, displaying a first image interface, wherein the first image interface includes the fourth image frame and the third icon.

[0039] In an embodiment of the present application, in response to a user's operation on the gallery preview window, the terminal device can jump from the photo preview interface to the first image interface (i.e., the picture display interface). For photos captured automatically, such as the fourth image frame mentioned above, when the fourth image frame is displayed on the picture display interface, a third icon will also be displayed on the picture display interface to prompt that the photo is a photo captured automatically; for photos captured manually, such as the second and third image frames mentioned above, or photos captured by other means, such as the first image frame mentioned above, when the first, second, or third image frames are displayed on the picture display interface, the third icon will not be displayed on the picture display interface. The third icon distinguishes the automatically captured photos from other photos, making it easier for users to process the photos correctly.

[0040] In some embodiments, the method further includes: displaying a third card on the first image interface in response to a user operation on the third icon.

[0041] In the embodiment of the present application, the third card can be used to introduce the automatic snapshot function. After the third card is displayed, if the user does not operate, the third card will not disappear; when the user clicks on a blank space, the third card disappears.

[0042] In some embodiments, the method further includes: when the first icon is in the on state, if the shooting scene of the camera is a macro scene, turning on the third function; in response to the user's operation of the shooting icon at the sixth moment, saving the fifth image frame captured at the sixth moment to the gallery.

[0043] In the embodiments of the present application, both the snapshot function and the AI ​​photography function can support the recognition of macro scenes. Macro photography can be achieved in the current photo mode with the snapshot function or the AI ​​photography function enabled, without the user having to manually switch the photo mode. When the snapshot function and the AI ​​photography function are enabled, the terminal device can activate the macro capability, but the macro function icon will not be displayed to simplify the photo preview interface.

[0044] In some embodiments, when the first function is turned on and the first setting item of the camera is in the on state, the execution priority of the function of manually saving image frames is higher than the execution priority of the function of automatically saving image frames, and the function of automatically saving image frames is stopped during the execution of the function of manually saving image frames.

[0045] In the embodiment of the present application, the function of manually saving image frames is the manual capture function, and the function of automatically saving image frames is the automatic capture function.

[0046] In some embodiments, the method further includes: when the first icon is in a closed state and the camera is turned on for the first time, displaying a first card on the photo preview interface, wherein the first card is used to introduce a snapshot function (ie, the first function).

[0047] In an embodiment of the present application, the display rules of the first card may be: in the process dimension, the first card is only prompted once within a life cycle after the camera is opened; if the user does not perform any operation, the first card will not disappear, that is, the terminal device will not close the first card; if the user performs an operation, such as clicking a blank space, exiting the camera, or switching the camera mode, the first card disappears.

[0048] When you first open the camera, the first icon is off, meaning the snapshot function is disabled. The device displays the first card on the photo preview screen to introduce the snapshot function and provide guidance on how to use it, enhancing the user's photography experience. Furthermore, the first card is only displayed the first time the camera is used, avoiding repeated reminders that could impact the user's experience.

[0049] In some embodiments, the method further includes: after the first card is closed, if the first icon is in a closed state, displaying a first bubble, wherein the first bubble is used to prompt to turn on the snapshot function.

[0050] In an embodiment of the present application, after the first card is closed, if the terminal device does not turn on the snapshot function, that is, the first icon remains in the closed state, the terminal device displays a first bubble to prompt the user to turn on the snapshot function, thereby improving the quality of the captured photos.

[0051] In some embodiments, the method further includes: in response to the user turning on the camera, displaying a photo preview interface in the camera's photo mode when the snapshot function has not been turned on; if the camera's shooting scene is a scene suitable for the snapshot function, displaying a first bubble on the photo preview interface, the first bubble being used to prompt the user to turn on the snapshot function.

[0052] In an embodiment of the present application, the display rules of the first bubble may be: in the process dimension, the first bubble is prompted only once within a life cycle after the camera is turned on; under the premise that the user does not clear the terminal device cache, if the user has never clicked the snapshot function icon and the terminal device has never turned on the snapshot function, the number of times the first bubble prompts is not limited to prompt the user to use the snapshot function and improve the quality of the photos taken; if the user has clicked the snapshot function icon and the terminal device has turned on the snapshot function, the first bubble will no longer be displayed to reduce the impact on the user's use of the camera.

[0053] After the first bubble is displayed, if the user does not perform any operation, the first bubble will disappear after being displayed for a certain period of time (such as 5 seconds), that is, the terminal device closes the first bubble; if the user performs any operation, the first bubble will disappear immediately.

[0054] In an embodiment of the present application, in order to further avoid repeated prompts and adverse effects on the user's use of the camera, the terminal device will only display the first bubble on the photo preview interface when it detects that the time since the last use of the camera has reached a specified time, such as the next day, and the shooting scene is a scene suitable for the snapshot function; if the time since the last use of the camera is less than the specified time, the first bubble will not be displayed.

[0055] In some embodiments, the method further includes: when the first icon is in an on state, displaying a second icon in the photo preview interface; in response to a user's operation on the second icon, displaying a second card on the photo preview interface, wherein the second card is used to introduce the snapshot function.

[0056] In the embodiment of the present application, the second icon can be an icon with the letter "i" in a circle, an icon with the letter "!" in a rectangle, or other styles, which are not limited to this. When the terminal device turns on the snapshot function, the second icon is displayed in the photo preview interface. When the snapshot function is turned off, the second icon is not displayed in the photo preview interface.

[0057] When the snapshot function is enabled, the terminal device displays a second card introducing the snapshot function in response to the user's operation on the second icon, so that the user can understand the snapshot function at any time, accurately enable the snapshot function, and thus improve the quality of photos. After the second card is displayed, if the user does not perform any operation, the second card will not disappear. If the user performs an operation, such as clicking a blank space, the first bubble will immediately disappear.

[0058] In some embodiments, the method also includes: in response to the user's operation on the first icon, after the snapshot function is turned on, a pop-up box displays first information, and the first information is used to prompt that the snapshot function has been turned on; in response to the user's operation on the first icon, after the snapshot function is turned off, a pop-up box displays second information, and the second information is used to prompt that the snapshot function has been turned off.

[0059] In the embodiment of the present application, the terminal device displays prompt information of the camera function status, such as the first information and the second information, based on the opening and closing of the camera function (such as the snapshot function mentioned above), so as to facilitate the user to understand the camera status. The first information and the second information disappear after being displayed for a certain period of time (such as 2 seconds).

[0060] In some embodiments, the method also includes: when the first icon is in the closed state, in response to the user's operation on the first icon, a pop-up box displays third information after a specified interval, and the third information is used to prompt whether to turn on the automatic snapshot function; in response to the user confirming the operation of turning on the automatic snapshot function, the automatic snapshot function is turned on, and the first icon is switched from the closed state to the open state.

[0061] In the embodiment of the present application, after the user purchases a new terminal device or upgrades the system version, if the user does not perform any settings on the camera, the automatic snapshot function is turned off by default, which ensures the user's privacy and security.

[0062] When the snapshot function is off, in response to the user's operation on the first icon, the terminal device turns on the snapshot function and, after a specified time interval (e.g., 2 seconds), displays a third message prompting whether to turn on the automatic snapshot function. Based on the third message, the user confirms turning on the automatic snapshot function. In response to the user's confirmation, the terminal device turns on the automatic snapshot function; otherwise, the terminal device keeps the automatic snapshot function off.

[0063] In an embodiment of the present application, the third message is used to introduce and enable the automatic snapshot function for the user, so that the terminal device can quickly enable the automatic snapshot function and improve the quality of photos. In addition, in an embodiment of the present application, the third message can be displayed only when the snapshot function is enabled for the second time. If the terminal device has already enabled the automatic snapshot function before the second activation of the snapshot function, the third message will not be displayed when the snapshot function is enabled for the second time or thereafter; if the terminal device has not enabled the automatic snapshot function before the second activation of the snapshot function, the third message will be displayed when the snapshot function is enabled for the second time, and will not be displayed thereafter, to avoid repeated reminders that affect the user experience.

[0064] In some embodiments, the method further includes: in response to the user confirming the operation of turning on the automatic snapshot function, after turning on the automatic snapshot function, a pop-up box displays fourth information, and the fourth information is used to prompt that the automatic snapshot function has been turned on.

[0065] In the embodiment of the present application, the terminal device displays a prompt message of the camera function status, such as the fourth message, based on the opening and closing of the camera function (such as the automatic snapshot function), so that the user can understand the camera status. The fourth message is displayed for a certain period of time (such as 2 seconds) and then disappears.

[0066] In some embodiments, after storing the fourth image frame in the gallery, the method further includes: displaying a second bubble on the photo preview interface, where the second bubble is used to prompt a user to view the fourth image frame automatically captured.

[0067] In an embodiment of the present application, the display rules of the second bubble may be: in the process dimension, the second bubble is prompted only once within a life cycle after the camera is turned on, and the second bubble is displayed after the first automatically captured photo is taken. In the subsequent process, the second bubble is no longer displayed to reduce the impact on the user's use of the camera.

[0068] After the second bubble is displayed, if the user does not perform any operation, the second bubble will disappear after being displayed for a certain period of time (such as 5 seconds), that is, the terminal device closes the second bubble; if the user performs any operation, the second bubble will disappear immediately.

[0069] In some embodiments, in the gallery, automatically captured photos carry a third icon, which facilitates distinguishing automatically captured photos from other photos.

[0070] In a second aspect, the present application provides a snapshot device, comprising a unit for executing the method described in the first aspect. The device may be configured to execute the method described in the first aspect. For a description of the units in the device, please refer to the description of the first aspect above and will not be repeated here for the sake of brevity.

[0071] The method described in the first aspect above can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions, such as an image acquisition module or unit, a processing module or unit, etc.

[0072] In a third aspect, the present application provides a terminal device, including:

[0073] a memory for storing instructions to be executed by one or more processors of the device, and

[0074] The processor is used to execute the instructions so that the terminal device executes any of the methods provided in the first aspect above.

[0075] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a terminal device, the terminal device executes any of the methods provided in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0077] FIG1a is a schematic structural diagram of a terminal device provided in an embodiment of the present application;

[0078] FIG1b is a schematic diagram of the architecture of the software system provided in an embodiment of the present application;

[0079] FIG2 is a schematic diagram of a solution for overcoming the problem of delayed response when capturing an image in the related art;

[0080] Figures 3a-3e are schematic diagrams of an interface for setting the automatic snapshot function provided in an embodiment of the present application;

[0081] FIG4-1 is a flowchart illustrating a manual capture process when the automatic capture function is disabled according to an embodiment of the present application;

[0082] FIG4-2 is a schematic diagram of an implementation of manual capture and automatic capture provided in an embodiment of the present application;

[0083] FIG4-3 is a flowchart of manual and automatic capture when the automatic capture function is enabled according to an embodiment of the present application;

[0084] 5A-5B are schematic diagrams of the interface of Scenario 1 provided in an embodiment of the present application;

[0085] FIG6 is a schematic diagram of a card 41 and a message box 42 provided in an embodiment of the present application;

[0086] FIG7 is a schematic diagram of an interface of scenario 2 provided in an embodiment of the present application;

[0087] FIG8 is a schematic diagram of a pop-up window 45 provided in an embodiment of the present application;

[0088] FIG9 is a schematic diagram of an interface of scenario 3 provided in an embodiment of the present application;

[0089] FIG10 is a schematic diagram of an interface of a scene 41 provided in an embodiment of the present application;

[0090] FIG11 is a schematic diagram of an interface of a scenario 42 provided in an embodiment of the present application;

[0091] FIG12 is a schematic diagram of an interface of scenario 5 provided in an embodiment of the present application;

[0092] FIG13 is a schematic diagram of an interface of scenario 6 provided in an embodiment of the present application;

[0093] FIG14 is a schematic diagram of an interface of scenario 7 provided in an embodiment of the present application;

[0094] FIG15 is a schematic diagram of an interface of scenario 8 provided in an embodiment of the present application;

[0095] FIG16 is a schematic diagram of an interface of scenario 9 provided in an embodiment of the present application;

[0096] FIG17 is a schematic diagram of a pop-up window introducing the snapshot function provided in an embodiment of the present application;

[0097] FIG18 is a schematic diagram of an interface for enabling the automatic snapshot function according to an embodiment of the present application;

[0098] FIG19 is another structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0099] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.

[0100] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first instruction and the second instruction are intended to distinguish different user instructions and do not limit their order. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0101] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0102] In order to better understand the embodiments of the present application, the structure of the terminal device in the embodiments of the present application is introduced below. In the embodiments of the present application, the terminal device can also be referred to as an electronic device.

[0103] Referring to Figure 1a, Figure 1a shows a structural schematic diagram of a terminal device according to an embodiment of the present application. The terminal device shown in Figure 1a 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identity Module (SIM) card interface 195, etc. Among them, the sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and a bone conduction sensor 180M, etc.

[0104] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0105] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0106] The processor 110 can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and execution.

[0107] Processor 110 may also include a 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 have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory, avoiding repeated accesses and reducing processor 110 latency, thereby improving system efficiency.

[0108] In some embodiments, the processor 110 may include one or more interfaces. The 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, and a Subscriber Identity Module (SIM) interface.

[0109] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C interfaces. The processor 110 can be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through the I2C interface, allowing the processor 110 and the touch sensor 180K to communicate through the I2C interface, thereby realizing the touch function of the terminal device.

[0110] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S interfaces. The processor 110 can be coupled to the audio module 170 via the I2S interface 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, enabling the function of answering calls through a Bluetooth headset.

[0111] 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 interface. The audio module 170 can transmit the acquired downlink audio stream data and uplink audio stream data to a terminal device wirelessly connected to the terminal device via the wireless communication module 160.

[0112] In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0113] 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 communication 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, enabling the terminal device connected via Bluetooth to obtain downlink audio stream data.

[0114] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the Camera Serial Interface (CSI) and the Display Serial Interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the terminal device's camera function. The processor 110 and the display 194 communicate via the DSI interface to implement the terminal device's display function.

[0115] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device. In other embodiments of the present application, the terminal device may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.

[0116] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

[0117] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device can be used to cover a single or multiple 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 other embodiments, the antennas can be used in conjunction with a tuning switch.

[0118] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for terminal devices. In some embodiments, the mobile communication module 150 can be used to transmit call data between two terminal devices. For example, when acting as the called device, it can obtain downlink audio stream data from the calling device and transmit uplink audio stream data to the calling device.

[0119] The wireless communication module 160 can provide wireless communication solutions applied to terminal devices, including Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), and infrared technology (IR).

[0120] In some embodiments, the antenna 1 of the terminal device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device can communicate with the network and other devices through wireless communication technology. In one embodiment of the present application, the terminal device can achieve local area network connection with another terminal device through the wireless communication module 160. Wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division-Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the Beidou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or the Satellite Based Augmentation System (SBAS), etc.

[0121] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, and a quantum dot light-emitting diode (QLED). In some embodiments, the terminal device may include one or N display screens 194, where N is a positive integer greater than one.

[0122] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music, videos, and audio files can be stored on the external memory card. In some embodiments, the terminal device may include one or N external memory interfaces 120, where N is a positive integer greater than one.

[0123] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, and at least one application required for a function (such as a sound playback function, an image playback function, and a recording function, etc.). The data storage area may store data created during the use of the terminal device (such as uplink audio data, downlink audio data, and a phone book, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (UFS), etc. The processor 110 executes various functional applications and data processing of the terminal device by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor 110.

[0124] The terminal device can implement push message processing functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor. For example, the terminal device receives a target message and the category of the target message pushed by the push server; if the category of the target message is determined to be a category that can be displayed immediately, the terminal device displays the target message; if the category of the target message is determined not to be a category that can be displayed immediately, the terminal device displays the target message if the target message meets the display conditions.

[0125] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio signals into digital audio signals for input. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0126] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the terminal device receives a call or voice message, the voice transmitted by the calling device can be heard through the receiver 170B.

[0127] Microphone 170C, also known as a "microphone" or "speaker," converts sound signals into electrical audio signals. When making a call or sending a voice message, a user can place their mouth close to microphone 170C and speak. This input signals into microphone 170C, enabling the collection of uplink audio data.

[0128] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A may be located within display screen 194. In some embodiments, a user pressing an answer button on display screen 194 manually answers a call, while a user pressing an end button on display screen 194 manually ends a call.

[0129] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed within the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor 180K can transmit the detected touch operations to the application processor to determine the type of touch event, and can provide visual output related to the touch operations via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the terminal device, at a location different from that of the display screen 194.

[0130] The buttons 190 include a power button, a volume button, etc. The buttons 190 may be mechanical buttons or touch buttons. The terminal device may receive button inputs and generate key signal inputs related to user settings and function control of the terminal device.

[0131] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, after receiving an incoming call signal, motor 191 generates vibrations to prompt the user that there is a call to be answered.

[0132] The SIM card interface 195 is used to connect a SIM card. A SIM card can be inserted into or removed from the terminal device to connect to and disconnect from the SIM card interface 195. The terminal device may support one or N SIM card interfaces, where N is a positive integer greater than one. The SIM card interface 195 may support Nano SIM cards, Micro SIM cards, and SIM cards. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. These cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device interacts with the network through the SIM card to implement functions such as call and data communications. In some embodiments, the terminal device uses an eSIM, or embedded SIM card. The eSIM card can be embedded in the terminal device and cannot be separated from the terminal device. In some embodiments, the terminal device may include one or N SIM card interfaces 195, where N is a positive integer greater than one.

[0133] The following describes the software structure diagram of the terminal device.

[0134] The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device.

[0135] As shown in FIG1b , FIG1b is a software structure block diagram of a terminal device provided in an embodiment of the present application.

[0136] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0137] The application layer can include a series of application packages. As shown in Figure 1b, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

[0138] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 1b, the application framework layer can include a window manager, content provider, view system, telephony manager, resource manager, notification manager, and algorithm framework.

[0139] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0140] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0141] The view system includes visual controls, such as those for displaying text and images. The view system is used to build the application's display interface. A display interface can be composed of one or more views. For example, the display interface for a text notification icon might include a view for displaying text and a view for displaying an image.

[0142] The phone manager is used to provide communication functions for terminal devices, such as call status management (including answering, hanging up, etc.).

[0143] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0144] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0145] The algorithm framework includes a framework of relevant algorithms for implementing the capture method of the embodiment of the present application, such as an algorithm for calculating the motion amplitude of the target object in the preview image obtained by the electronic device, an algorithm for determining whether the motion amplitude of the target object in the preview image meets the preset conditions, and an algorithm for controlling the electronic device to complete automatic capture of the target object when the motion amplitude of the target object meets the preset conditions.

[0146] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.

[0147] The core library consists of two parts: one containing the Java language's callable functions and the other the Android core library. The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0148] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0149] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0150] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0151] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing and layer processing.

[0152] A 2D graphics engine is a drawing engine for 2D drawings.

[0153] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, etc.

[0154] The following uses a photo-taking scenario to illustrate the workflow of the terminal device software and hardware.

[0155] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into raw input events (including touch coordinates, timestamp of the touch operation and other information). The raw input events are stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch single-click operation and the control corresponding to the single-click operation as an example, the camera application calls the interface of the application framework layer, starts the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193. The technical solution provided in the embodiment of the present application mainly improves the algorithm framework of the application framework layer, which is used to implement the relevant algorithms of the capture method.

[0156] Mobile phones and other electronic devices have the function of taking photos and videos. When a user wants to "capture" a wonderful moment of a target's movement through a mobile phone, the user clicks the shooting button on the phone to trigger the phone to take a photo. However, due to the reaction lag when "capturing", the mobile phone cannot accurately capture the wonderful moment of the object's movement, and the photo the user finally takes may not be the ideal photo of a certain moment. Among them, the reaction lag may be a reaction lag caused by human factors (such as reaction delay and action delay), or it may be a reaction lag caused by the mobile phone (such as camera reaction delay). The above-mentioned shooting button is the shutter button.

[0157] Currently, one possible way to capture photos of a moment is to first shoot a video and then take a screenshot of a specific frame from the video to save as a photo. This process is cumbersome, impacting the user experience. Furthermore, the quality of the photos captured from the video is low, which also degrades the user experience.

[0158] In the related art, in order to solve the problem of missing wonderful moments due to delayed reaction when taking snapshots, a corresponding solution has been proposed. As shown in Figure 2, when the user clicks the shooting button (denoted as T1), the photo is triggered, and the mobile phone collects an image frame at a certain moment before T1 (denoted as T2), and uses the image frame as the snapshot. For example, the difference between T2 and T1 is a preset value, such as 50 milliseconds (ms). In this way, the mobile phone selects a frame 50ms ahead to obtain the image frame just before the photo is taken, physically achieving a "0" delay and avoiding the problem of delayed reaction. However, the photos captured in this way may not be clear, or the face angle may not be good, or the facial expression may not be ideal, so they may not be ideal photos of a certain moment and cannot meet user needs.

[0159] The photographing methods in the related art cannot accurately capture the pictures that the user wants to capture, or the operations are inconvenient, such as needing to switch to the video shooting function, shoot the video, and then take a screenshot.

[0160] In order to solve the above technical problems, an embodiment of the present application provides a photo preview interface and a photo taking method of a camera in a terminal device. In the embodiment of the present application, a control for turning on or off the snapshot function is set on the photo preview interface of the camera in the terminal device.

[0161] In one possible implementation, when the control of the snapshot function of the photo preview interface is turned off, the terminal device detects the user's photo operation 1. In response to the photo operation 1, the terminal device can capture a frame of image during the photo operation 1 and save it as the photo result.

[0162] In another possible implementation, the terminal device turns on the snapshot function in response to the user clicking the control of the snapshot function, and the control of the snapshot function is turned on (for example, highlighted). When the control of the snapshot function is turned on, if the control of the automatic snapshot function in the setting interface of the camera application of the terminal device is turned off, the terminal device detects the user's photo operation 2. In response to the photo operation 2, the terminal device can save a frame of the picture from a period of time before the photo operation 2 to a period of time after the photo operation 2 as the result of the photo, that is, manual snapshot. When the terminal device does not detect the user's photo operation 2, the terminal device will not automatically save the picture, that is, it will not automatically capture the picture.

[0163] In another possible implementation, when the control of the snapshot function in the photo preview interface is turned on, if the automatic snapshot control in the setting interface of the camera application of the terminal device is turned on, the terminal device detects the user's photo operation 2. In response to the photo operation 2, the terminal device can save a frame of picture from a period of time before the photo operation 2 to a period of time after the photo operation 2 as the result of the photo. The terminal device can also automatically analyze the previewed picture and save a frame of picture as the result of the photo when the preset conditions are met, that is, automatically capture. The preset conditions may include: the preview stream has a transition, and a frame of picture between the current transition and the previous transition is saved as the result of the automatic capture. The comprehensive score of the frame of picture is high, and the factors referenced by the comprehensive score include: clarity, target action, etc. The embodiments of the present application do not make specific limitations on this.

[0164] In the embodiment of the present application, the snapshot function is a shooting function supported by the camera, and the snapshot function supports an intelligent high-speed shutter, which can quickly capture wonderful moments when capturing scenes such as people smiling, jumping, running, and cats, dogs, etc. Wonderful moments may include but are not limited to the moment when the subject of the scene in scenes such as people smiling, jumping, running, and cats, dogs, etc. performs a specified action. For example, in a scene where a person smiles, the specified action is when the corner of the person's mouth reaches the highest point, and accordingly, the wonderful moment is when the corner of the person's mouth reaches the highest point; in a scene where a person jumps, the specified action is when the person jumps to the highest point, and accordingly, the wonderful moment is when the person jumps to the highest point; in a cat scene, the specified action is when the cat's front legs land on the ground and then move back and lift up, and accordingly, the wonderful moment is when the cat's front legs land on the ground and then move back and lift up. In different scenes, the specified action may also include other actions, which are not limited to this.

[0165] In the snapshot method provided in the embodiment of the present application, a control for turning on or off the snapshot function is set on the photo preview interface of the terminal device. A switch item for the automatic snapshot function can be set in the camera setting interface of the terminal device. In response to the user's operation on the switch item of the automatic snapshot function, the terminal device turns on or off the automatic snapshot function. In the embodiment of the present application, when the automatic snapshot function is turned on, if the snapshot function is turned off, the automatic snapshot function will be automatically disabled; if the snapshot function is turned on again, the automatic snapshot function will be automatically undisabled, that is, the automatic snapshot function is enabled. Alternatively, when the automatic snapshot function is turned off, if the snapshot function is turned off and then the snapshot function is turned on again, the automatic snapshot function remains turned off.

[0166] FIG3a shows the interface of the camera application, which may be a photo preview interface. The interface includes: a preview window 17, a snapshot function icon 11, an AI photography function icon 12, a live shooting mode icon 13, a flash icon 14, a filter shooting mode icon 15, a focal length 16, a gallery preview window 18, a shooting icon (shutter) 19, a front and rear lens switching icon 110, a settings icon 111, etc. Among them, the snapshot function icon 11 is the control for the snapshot function.

[0167] In some embodiments, a "Smart Photo" setting item is provided within the camera settings interface of a terminal device. The next level of settings within Smart Photo may include controls for an automatic capture function. As shown in FIG3a , in response to a user clicking on setting control 111, the terminal device displays the camera settings interface shown in FIG3b . The camera settings interface includes setting item 1, namely, the "Smart Photo" setting item. Within the "Smart Photo" settings interface, an "Auto Capture" switch item (i.e., the control for the automatic capture function described above) is provided, such as switch item 6 of the smart photo settings interface shown in FIG3c . The control for the automatic capture function is the switch item for the automatic capture function. The naming and functional description of the switch item for the automatic capture function can be customized based on actual needs. For example, the switch item for the automatic capture function can also be named "Eagle Eye Automatic Capture," such as switch item 6 of the smart photo settings interface shown in FIG3d . Taking the smart photo settings interface shown in FIG3c as an example, in this embodiment of the present application, a user clicks on setting item 1 of the "Smart Photo" setting interface shown in FIG3b . In response to the user clicking on setting item 1, the terminal device opens the smart photo settings interface shown in FIG3c .

[0168] When a user clicks the "Auto Snapshot" switch item 6 in the smart photo setting interface shown in FIG3 c , the terminal device turns the automatic snapshot function on or off in response to the user clicking the switch item 6. For example, when the "Auto Snapshot" switch item 6 is in the off state, the terminal device turns on the automatic snapshot function when the user clicks the "Auto Snapshot" switch item 6; when the "Auto Snapshot" switch item 6 is in the on state, the terminal device turns off the automatic snapshot function when the user clicks the "Auto Snapshot" switch item 6. In the embodiment of the present application, the state of the "Auto Snapshot" switch item 6 is not affected by the snapshot function. For example, when the "Auto Snapshot" switch item 6 is in the on state, the terminal device turns on or off the snapshot function when the user does not detect that the user has operated the "Auto Snapshot" switch item 6, and the "Auto Snapshot" switch item 6 remains in the on state; when the "Auto Snapshot" switch item 6 is in the off state, the terminal device turns on or off the snapshot function when the user has not detected that the user has operated the "Auto Snapshot" switch item 6, and the "Auto Snapshot" switch item 6 remains in the off state.

[0169] In the embodiments of the present application, a setting item is associated with a subordinate interface. For example, in FIG3b , the "Smart Photo" setting item 1 is associated with the Smart Photo setting interface. The Smart Photo setting interface is a subordinate interface associated with setting item 1, and the symbol ">" indicates that a subordinate interface is associated. In the camera setting interface and the smart photo setting interface, in addition to the "Smart Photo" setting item and the "Auto Snap" switch item, one or more setting items and one or more switch items may also be arranged, such as the "Photo Ratio," "Video Resolution," "Video Frame Rate," "Voice-activated Photo," and other setting items in FIG3b and FIG3c , as well as switch items such as "High-Efficiency Video Format," "HDR10," "AI Movie Tone," "Smart High Dynamic Range Recording," "Gesture Photo," and "Smile Snap." Taking FIG3b as an example, the switch items in the on state can be referred to as switch items 2 and 4 in FIG3b , and the switch items in the off state can be referred to as switch items 3 and 5 in FIG3b . The on and off switch items may also be represented in other forms, which are not limited to this.

[0170] To accurately set the parameters of each setting item and the switches to be turned on or off, each setting interface can display the parameters of each setting item and the function of each switch. As shown in Figure 3b, the camera settings interface shows that the parameter of the "Photo Ratio" setting item is 4:3, which means the aspect ratio of the photo is 4:3. The camera settings interface also displays the function of the "High-Efficiency Video Format" switch item, which states that it can save about 35% of space. You may not be able to play videos in this format on other devices.

[0171] In addition, to prevent accidental operation, after a switch item is turned on, the terminal device can disable mutually exclusive switches. As shown in Figure 3b, the "AI Movie Tone" switch item 4 and the "Intelligent High Dynamic Range Recording" switch item 5 are mutually exclusive. After turning on switch item 4, the terminal device grays out switch item 5 to disable it. As shown in Figure 3c, the "Smile Snap" switch item and the "Gesture Photo" switch item are mutually exclusive. After turning on the "Smile Snap" switch item, the terminal device grays out the "Gesture Photo" switch item to disable it.

[0172] To facilitate understanding of the capture method provided in the embodiments of the present application, the capture method in the scenarios where the automatic capture function is turned on and the automatic capture function is turned off are described below.

[0173] In an embodiment of the present application, in the photo preview interface, camera mode icons such as photo, portrait, night scene, video, and movie supported by the camera can be displayed. In different camera modes, icons such as shooting capabilities and parameters supported by different camera modes are displayed, as well as scene preview windows, gallery preview windows, etc.

[0174] As shown in Figures 3a and 3e, the photo preview interface displays the snapshot function icon 11, the AI ​​photography function icon 12, the live shooting mode icon 13, the flash icon 14, the filter shooting mode icon 15, the focal length 16, the preview window 17, the gallery preview window 18, the shooting icon 19, the front and rear lens switching icon 110, the settings icon 111, and the introduction icon 112 in the "photo" camera mode. For the turned-on photo function, its icon is turned on (such as highlighted), such as the icon 12 in Figure 3a and the icon 11 in Figure 3e. For the turned-off photo function, its icon is turned off, such as the icon 11 in Figure 3a and the icon 12 in Figure 3e. The display form of opening and closing different icons can be the same or different, and there is no limitation on this.

[0175] (1) In the scenario where the snapshot function is turned on and the automatic snapshot function is turned off, the snapshot process is shown in Figure 4-1.

[0176] Activating the snapshot function means that the user clicks icon 11 in FIG. 3a . The terminal device, in response to the user clicking icon 11 in FIG. 3a , activates the snapshot function. As shown in FIG. 3e , icon 11 is highlighted, indicating that the snapshot function is activated. When the snapshot function is activated, the user can click icon 19 . The terminal device, in response to the user clicking icon 19 , can save a frame of the image between a first preset time point before the click operation and a second preset time point after the click operation.

[0177] The automatic snapshot function is turned off and the "automatic snapshot" switch item 6 shown in Figure 3c is in the off state. When the terminal device does not detect the user clicking the icon 19, the terminal device will not automatically save the picture, that is, it will not automatically snapshot.

[0178] The specific process of the photographing method in the embodiment of the present application includes:

[0179] In step S11, when the terminal device displays the camera's photo preview interface (the interface shown in FIG3e ), the camera captures and caches one or more frames of images within a first preset time period before the current time, and the one or more frames of images are images that meet the preset criteria within the first preset time period.

[0180] In the embodiment of the present application, the first preset time length can be set according to actual needs. For example, the first preset time length can be 0.5 seconds, 1 second, 1.5 seconds, etc.

[0181] The user can open the camera of the terminal device by clicking the camera icon on the desktop of the terminal device or by inputting a voice command to open the camera application to the terminal device, and the terminal device can display the interface shown in Figure 3a. At this time, the snapshot function is turned off, and the terminal device captures the picture in real time, obtaining the image frame stream shown in (1) of Figure 4-2. Here, the terminal device does not cache the captured picture. When the snapshot function is turned off, when the terminal device captures picture 0, the user clicks the shooting icon 19, and the terminal device saves and outputs picture 0 as the final photo in response to the user's operation of clicking the shooting icon 19.

[0182] After the terminal device opens the camera, the user clicks icon 11 in Figure 3a. In response to the user clicking icon 11 in Figure 3a, the terminal device turns on the snapshot function and displays the interface shown in Figure 3e. The terminal device captures images in real time and stores the local best moment (LBM) within a first preset time period before the current time and a specified number of recent frame images in the cache queue. The local best moment is the frame with the highest comprehensive score within a sub-time period.

[0183] Assume that the first preset duration is 1 second, the terminal device can capture 30 frames of images within 1 second, the sub-time period is 1 / 3 second, and the specified number is 10. This is explained in conjunction with Figure 4-2. When the snapshot function is enabled and the automatic snapshot function is disabled, the terminal device can cache the first LBM (i.e., image-22), the second LBM (i.e., image-13), and the most recent 10 frames of images (i.e., image-9 to image 0). The first LBM is the LBM from the 1st second to the 2 / 3rd second before the current time, the second LBM is the LBM from the 2 / 3rd second to the 1 / 3rd second before the current time, and the most recent 10 frames are the images from the 1 / 3rd second before the current time to the current moment. The current time (i.e., this moment) is the time of the image captured in real time by the terminal device.

[0184] As time passes, the latest 10 frames of images are continuously added to the cache queue, causing the cache queue's contents to be updated. According to the first-in-first-out rule, the first LBM stored in the cache queue is discarded, the second LBM stored in the last 10 frames is updated to the first LBM, and the third LBM in the last 10 frames (such as Picture 7 in Figure 4-2) is updated to the second LBM.

[0185] In an embodiment of the present application, in order to save storage space, when storing the above-mentioned LBM, the terminal device may only store the LBM. In order to improve the quality of the generated photos, the terminal device may also store the LBM and the continuous multi-frame pictures after the LBM. For example, in Figure 4-2, the first LBM is picture-22, and the second LBM is picture-13. The cache queue stores picture-22 and the three frames of pictures after picture-22, namely pictures-21, -20 and -19, and stores picture-13 and the three frames of pictures after picture-13, namely pictures-12, -11 and -10. The number of the above-mentioned continuous multi-frame pictures can be 1, 2, 3 or 4, etc., which is set according to actual needs.

[0186] Step S12: The terminal device receives an operation in which the user clicks on a shooting icon in a photo preview interface.

[0187] As shown in FIG3e , the user clicks the shooting icon 19 in the photo preview interface, and the terminal device executes step S13 in response to the user's click operation to obtain a manually captured photo.

[0188] Step S13, in response to the user's operation in step S12, the terminal device continues to capture pictures, and generates and saves the captured photos based on the cached pictures and the pictures captured within the second preset time period after the current time.

[0189] The second preset time length may be 0.5 seconds, 1 second, 1.5 seconds, etc. The current time indicates the time when the user clicks the capture icon.

[0190] Still taking Figure 4-2 as an example for explanation. For example, the first preset time length is 1 second, the second preset time length is 0.5 seconds, when the terminal device captures picture 0, the user clicks the shooting icon 19, and when the snapshot function is turned on and the automatic snapshot function is turned off, as shown in (2) of Figure 4-2, in response to the user clicking the shooting icon 19, the terminal device can determine the target LBM within 1 second before the current time based on the pictures within 1 second before the current time cached as shown in Figure 4-2, as in the case of (2) in Figure 4-2, based on the first LBM, the second LBM and the third LBM, the target LBM within 1 second before the current time is determined. The target LBM determined by LBM is the -22nd frame; within 0.5 seconds after the current time, the terminal device compares each captured frame of picture (such as picture 1 to picture 15) with the target LBM to determine a new target LBM; 0.5 seconds after the current time, the terminal device can determine the final target LBM within 1 second before the current time (i.e., the moment of capturing picture 0) to 0.5 seconds after the current time, i.e., the optimal frame. For example, in the case (2) in Figure 4-2, the optimal frame determined is the -22nd frame. The terminal device can save the optimal frame as a captured photo, for example, (2) in Figure 4-2 directly outputs the -22nd frame. It can also fuse the optimal frame and the consecutive multiple frames after the optimal frame to obtain a captured photo. For example, in (2) in Figure 4-2, the optimal frame is determined to be picture -22, and pictures -22, -21, -20, and -19 are fused to obtain fused picture 1, which is then output and saved.

[0191] In some embodiments, if the time interval between the user clicking the shooting icon 19 this time and the last time the user clicked the shooting icon 19 is greater than or equal to a third preset time length, and the third preset time length is the sum of the first preset time length and the second preset time length, then the terminal device can save the photo according to the above steps S11 to S13.

[0192] In some embodiments, the time interval between the user clicking the shooting icon 19 this time and the last time the user clicked the shooting icon 19 is less than the third preset time length, but the time interval is greater than the second preset time length, then the terminal device can generate and save the captured photos based on one or more frames of pictures within the time period of the last capture before the current time, and the pictures captured within the second preset time length after the current time.

[0193] In some embodiments, if the time interval between the user clicking the shooting icon 19 this time and the last time the user clicked the shooting icon 19 is less than the second preset time, the terminal device can use the target LBM determined before the current time as the last captured photo and save it. In addition, the terminal device can generate and save the currently captured photo based on the photo captured within the second preset time after the current time. For example, the first preset time can be 1 second, and the second preset time can be 0.5 seconds. The user clicks the shooting icon 19 at times t1 and t2, respectively, and the interval between t1 and t2 is less than 0.5 seconds. The terminal device can determine the target LBM within the time from t1-1 seconds to t2 as the photo captured at time t1; it can compare the pictures captured after t2 frame by frame, and determine the optimal frame within 0.5 seconds after t2 as the photo captured at time t2.

[0194] In the embodiments of the present application, the scoring rules for images can be set according to actual needs. For example, the scoring rules can be: obtaining a first score for the clarity of the image, a second score for the action performed by the subject in the image relative to the specified action, and performing a weighted sum of the first and second scores to obtain the image score. The scoring rules can also be: obtaining a first score for the clarity of the image, a second score for the action performed by the subject in the image relative to the specified action, and a third score for the size of the subject in the image, and performing a weighted sum of the first and second scores to obtain the image score.

[0195] In an embodiment of the present application, the terminal device caches one or more frames of images within a first preset time period before the user clicks the capture icon. After the user clicks the capture icon, the terminal device determines the target LBM within the first preset time period based on the cached one or more frames of images, compares the images within a second preset time period after the capture icon is clicked with the target LBM frame by frame to obtain a new target LBM, and generates a photo of the moment the user wants to capture based on the new LBM. Since the generation of the photo refers to the images before the user clicks the capture icon and the images after the user clicks the capture icon, even if there is a reaction lag, the terminal device can accurately capture the moment of the object's movement and generate a high-quality photo.

[0196] (2) When the snapshot function and the automatic snapshot function are enabled, the snapshot process is shown in Figure 4-3.

[0197] Among them, the automatic snapshot control is turned on, which means that the "automatic snapshot" switch item 6 shown in Figure 3c is in the turned-on state. When the terminal device does not detect the user clicking the icon 19, the terminal device will automatically save the picture, that is, it will automatically capture the picture. The specific process of the photo-taking method of the embodiment of the present application includes:

[0198] In step S21, when the terminal device displays the camera's photo preview interface (the interface shown in Figure 3e), it captures pictures through the camera, compares frame by frame, determines an LBM in the current scene, and stores the LBM; and captures and caches one or more frames of pictures within a first preset time length before the current time through the camera, and the one or more frames of pictures are pictures that meet the preset standards within the first preset time length.

[0199] In an embodiment of the present application, to improve the quality of photos, when caching an LBM, the terminal device can cache multiple consecutive frames of images after the LBM. For example, in (3) of Figure 4-2, the cache queue stores an LBM of a scene captured automatically, namely, picture-60, and three consecutive frames of images after picture-60, namely, pictures-59, -58, and -57. In addition, the cache queue also stores multiple frames of images for manual capture.

[0200] Step S22, when the terminal device detects that a scene change (ie, transition) occurs, a photo is generated according to the LBM in the current scene, ie, a photo is automatically captured.

[0201] The terminal device can use a relevant scene detection algorithm to detect the scene of the image frame, and compare the scene of this detection with the scene of the previous detection. If the scene has changed, it is determined that a scene conversion has occurred. If the scene has not changed, it is determined that no scene conversion has occurred. The terminal device can perform scene detection frame by frame, or it can periodically perform scene detection on the acquired image frames, which is not limited in the embodiments of the present application. The way to determine the scene change can be that the terminal device compares whether one or more targets obtained by the two detections have changed, which is not specifically limited in the embodiments of the present application.

[0202] Step S23: The terminal device receives an operation in which the user clicks on a shooting icon in the photo preview interface.

[0203] Step S24, in response to the user's operation in step S23, the terminal device continues to capture pictures, and generates and saves the captured photos based on the cached pictures within the first preset time length and the pictures captured within the second preset time length after the current time.

[0204] In an embodiment of the present application, in a scenario where the snapshot function is turned on and the automatic snapshot function is turned on, the terminal device supports automatic snapshots such as the above-mentioned steps S21-S22, and also supports manual snapshots. That is, during the automatic snapshot process, the terminal device can generate manually captured photos in response to the user clicking the shooting icon 19 in the photo preview interface. For example, as shown in (3) of Figure 4-2, in a scenario where the snapshot function is turned on and the automatic snapshot function is turned on, the terminal device captures the image frame stream, uses the automatic snapshot method to store the LBM in the cache queue, and uses the manual snapshot method to store multiple frames of images within a time window of 1 second before the current time in the cache queue, so that the terminal device can support automatic snapshots and manual snapshots at the same time. If the user does not click the shooting icon, the terminal device can fuse the LBM in a scene stored in the cache queue and subsequent multiple frames, such as fused images -60, -59, -58, and -57, to obtain fused image 2, and output and maintain fused image 2. If the user clicks the shooting icon, the terminal device can respond to the user's operation of clicking the shooting icon by fusing the optimal frames within 1 second before clicking the shooting icon and 0.5 seconds after clicking the shooting icon in the cache queue and subsequent multiple frames, such as fusing pictures -22, -21, -20, and -19, to obtain fused picture 1, and output and maintain fused picture 1.

[0205] In some embodiments, in scenarios where both the snapshot function and the automatic snapshot function are enabled, the order in which automatic and manual snapshots are executed is not limited. This order is determined based on actual usage requirements and is not limited in the embodiments of this application. For example, a terminal device may first execute automatic snapshots and then execute manual snapshots. For another example, a terminal device may first execute manual snapshots and then execute automatic snapshots.

[0206] In an embodiment of the present application, the terminal device can also set the execution priority of manual capture and automatic capture. For example, in a scenario where manual capture is triggered, the execution priority of manual capture is higher than the execution priority of automatic capture, that is, manual capture is executed first. In addition, automatic capture is prohibited during the execution of manual capture, and automatic capture is resumed after manual capture is completed. In this way, the execution of automatic capture will not affect or interfere with manual capture.

[0207] In an embodiment of the present application, when the terminal device performs automatic capture, it caches one or more frames of images within the entire scene; and generates photos based on the cached images. The terminal device generates automatically captured photos, and without the user manually clicking the capture icon, it can automatically identify the wonderful moments of the scene and capture the scene to obtain photos, thereby accurately capturing the wonderful moments of the scene and timely recording the wonderful moments of the movement. In addition, when the automatic capture function is turned on, the terminal device supports the user to manually capture photos, further meeting the user's capture needs and improving the user's photo-taking experience.

[0208] In scenarios where the snapshot function is enabled, the automatic snapshot function is enabled, or disabled, the terminal device captures images and generates photos. To improve the quality of the photos, enhance user privacy, and enhance user experience, the terminal device can output corresponding prompt information based on user operations and scene switching. The following describes in detail the snapshot method provided by the embodiments of this application and the prompt information output during the snapshot process through specific scenarios.

[0209] Scenario 1: Guiding users to use the snapshot function for the first time.

[0210] 1) The display screen of the terminal device displays the desktop, as shown in FIG5A (a). In response to the user clicking the camera icon on the desktop, the terminal device opens the camera; the terminal device displays the camera's photo preview interface.

[0211] In the embodiment of the present application, the use of the camera in the terminal device is divided into first use and non-first use. In the embodiment of the present application, if any of the following conditions is met, it can be considered as the first use of the camera:

[0212] a. A user purchases a new terminal device, which is equipped with a camera. The camera includes the snapshot function of the embodiment of the present application. In this case, the user clicks to open the camera for the first time.

[0213] b. The user upgrades the system version. The new system version includes the snapshot function of the embodiment of the present application. The user clicks to open the camera for the first time.

[0214] When the user opens the camera for the first time or not, the camera's photo preview interface will be different. This will be explained in detail later and will not be introduced here.

[0215] 2) When the camera is used for the first time, the photo preview interface is shown in FIG5A(b), and a card 41 is displayed on the photo preview interface, which displays a description of the snapshot function. In an embodiment of the present application, the card 41 may include a default photo and text describing the snapshot function, such as the card 41 shown in FIG5A(b), wherein the text describing the snapshot function is "Turn on "Great Snapshot" and shoot scenes of people smiling, jumping, running, and cats, dogs, etc., and the smart high-speed shutter helps you capture the moment." The text describing the snapshot function in the card 41 may also be other content, such as the card 41 shown in FIG6(a) including "Great Snapshot: Supports smart high-speed shutter, helping you quickly capture the moment when shooting cats, dogs, or people smiling, jumping, running, etc." and the card 41 shown in FIG6(b) including "Turn on "Eagle Eye Great Snapshot" and shoot scenes of people smiling, jumping, running, and cats, dogs, etc., and the smart high-speed shutter helps you quickly capture the moment." There is no limitation on this. In addition, the card 41 can point to the icon 11 of the snapshot function, so that the user can know the icon of the snapshot function and accurately turn on the snapshot function.

[0216] In this embodiment of the present application, card 41 appears only once during the lifecycle of the camera after it is opened. If the user does not perform any action, card 41 persists. However, if the user performs an action, such as clicking a blank area, exiting the camera, or switching camera modes, card 41 disappears. Card 41 is only displayed the first time the camera is used, to avoid repeated reminders that can impact the user experience.

[0217] In the interface shown in Figure 5A(b), the terminal device has the AI ​​photography function enabled, displaying the focal lengths supported by the AI ​​photography function. As shown in Figure 5A(b), the maximum supported focal length is 10X. After the AI ​​photography function is enabled, the flash is turned off, but the flash is available, meaning that the terminal device can turn on the flash in response to a user clicking the flash icon.

[0218] 3) In response to the user clicking the icon 11 of the snapshot function in the photo preview interface shown in Figure 5A (b), the above-mentioned card 41 disappears, the terminal device turns on the snapshot function, the snapshot function icon 11 turns on (such as being highlighted), the AI ​​photography function icon 12 turns off, and the terminal device can display a toast prompt box in the preview window, as shown in Figure 5A (c), including a message prompt box 42 that reads "Great Snapshot is turned on." At this time, the terminal device can intelligently identify the subject of the scene and capture the picture, such as the running person shown in Figure 5A (c).

[0219] In the embodiment of the present application, the message prompt box 42 can disappear after being displayed for a specified period of time (e.g., 3 seconds), or it can disappear after the user performs an operation. This is not limited to this. In addition, the description information included in the message prompt box 42 can also be adjusted according to actual needs. As shown in FIG6 (c), the message prompt box 42 can include description information such as "Eagle Eye Wonderful Snapshot is turned on."

[0220] The snapshot function and the flash are mutually exclusive. When the snapshot function is turned on, the flash is turned off and the flash icon is grayed out, disabling the flash function. At the same time, the focal length is switched to a focal length supported by the snapshot function, as shown in Figure 5A (c), which supports up to 5X telephoto.

[0221] In order to remind the user that the terminal device is taking a snapshot, after the terminal device turns on the snapshot function, a halo is displayed outside the shooting icon, and the halo has a dynamic effect of color change.

[0222] 4) The terminal device turns off the automatic snapshot function by default. The scene in the photo preview interface is a motion scene, and the state of the subject in the scene is constantly changing. For example, the state of the person shown in (c) in FIG5A changes to the state of the person shown in (d) in FIG5A. In response to the user manually clicking the shooting icon in the photo preview interface shown in (d) in FIG5A, when the terminal device intelligently identifies the wonderful moment that needs to be photographed, it captures this wonderful moment and generates a photo. For the specific process, please refer to the above description of the process of manually clicking the shooting icon for manual snapshot, and refer to the relevant description of steps S11 to S13 in the above FIG4-1. After the photo is generated, the terminal device displays a thumbnail of the photo in the gallery preview window 18 on the photo preview interface, as shown in (e) in FIG5A. The time for the gallery preview window to display the thumbnail of the photo is delayed by a second preset time length relative to the time when the user clicks the shooting icon.

[0223] In an embodiment of the present application, in response to the user clicking the shooting icon in the photo preview interface, the picture saved by the terminal device may be earlier than the moment when the user clicks the shooting icon, as shown in (c), (d), and (e) in Figure 5A, and the picture saved by the terminal device may also be later than the moment when the user clicks the shooting icon, as shown in (a), (b), (c), and (d) in Figure 5B. As shown in (b) in Figure 5B, when the snapshot function is turned on, the user clicks the shooting icon 19 to trigger the taking of a photo. As shown in (d) in Figure 5B, in response to the user operation, the terminal device "snaps" the wonderful moment, provides the user with a photo of the wonderful moment, and displays a thumbnail of the photo, such as the thumbnail of the photo at the moment shown in (c) in 5B. It should be noted that the terminal device selects a frame of picture after the shooting moment according to the frame selection strategy provided in the embodiment of the present application to generate a photo.

[0224] In the embodiment of the present application, the automatic snapshot function is turned off by default, which means that after the user purchases a new terminal device or upgrades the system version, the automatic snapshot function is turned off by default if the user does not perform any setting operations on the camera.

[0225] 5) If the terminal device displays the photo preview interface shown in Figure 5A (b) and the user does not click on the icon 11 of the snapshot function, after the card 41 disappears for the fourth preset time period, the terminal device displays a bubble 43 as shown in Figure 5A (f) to prompt the user to turn on the snapshot function. As shown in Figure 5A (f), the bubble 43 prompting the user to turn on the snapshot function points to the icon 11 of the snapshot function and includes text descriptions such as "Click to turn on the "Great Snap" mode". In this embodiment of the present application, the descriptive information included in the bubble 43 can also be adjusted according to actual needs. As long as it serves to prompt the user to turn on the snapshot function, the bubble 43 can include descriptive information such as "Click to turn on Eagle Eye's Great Snap".

[0226] After the terminal device displays bubble 43, if the user does not perform any operation, the bubble disappears after the fifth preset time. The fourth preset time and the fifth preset time can be set according to actual needs. The fourth preset time and the fifth preset time can be the same or different. For example, the fourth preset time and the fifth preset time are both 5 seconds. In this embodiment of the present application, a simple text prompt is used to prompt the user to turn on the snapshot function so that the user can take high-quality photos and improve the user experience.

[0227] 6) The scene in the photo preview interface is a motion scene, and the state of the subject in the scene is constantly changing. For example, the state of the character shown in (f) of FIG. 5A changes to the state of the character shown in (g) of FIG. 5A . In response to the user clicking the shooting icon 19 in the photo preview interface shown in (g) of FIG. 5A , the terminal device captures a frame of the image when the user clicks the shooting icon as a snapshot, and saves the photo. After generating the photo, the terminal device displays a thumbnail of the photo in the gallery preview window 18 on the photo preview interface, as shown in (h) of FIG. 5A . The time difference between the time when the gallery preview window displays the photo thumbnail and the time when the user clicks the shooting icon can be ignored. It can be considered that the time when the user clicks the shooting icon is the time when the gallery preview window displays the photo thumbnail.

[0228] Scenario 2: Guiding users to use the automatic snapshot function for the first time.

[0229] 1) If the user turns on the snapshot function when using the camera for the first time, and the message prompt box 42 disappears, the terminal device displays the interface shown in FIG. 7 (a).

[0230] 2) In response to the user clicking on the snapshot function icon 11 in the interface shown in FIG. 7 (a) to manually turn off the snapshot function, the terminal device displays the interface shown in FIG. 7 (b). At this time, the AI ​​photography function icon 12 is turned on (e.g., highlighted), and the snapshot function icon 11 is turned off. The terminal device may display a toast prompt box in the preview window, as shown in FIG. 7 (b), including a message prompt box 44 stating "'Great Snapshot' is turned off", to prompt the user that the snapshot function has been manually turned off.

[0231] In the embodiment of the present application, the message prompt box 44 can disappear after being displayed for a specified period of time (e.g., 3 seconds), or it can disappear after the user performs an operation. This is not limited to this. The descriptive information included in the message prompt box 44 can also be adjusted according to actual needs. For example, the message prompt box 44 can include descriptive information such as "Eagle Eye Highlight Snap is closed."

[0232] 3) In response to the user clicking the snapshot function icon for the second time, that is, in response to the user clicking the snapshot function icon 11 in the photo preview interface shown in Figure 7 (b), the terminal device turns on the snapshot function again and displays the interface shown in Figure 7 (c), with the snapshot function icon 11 turned on and the AI ​​photography function icon 12 turned off. The terminal device can also display a toast prompt box, i.e., a message prompt box 42, in the preview window. At this point, the terminal device can intelligently identify the scene subject and capture the picture, such as the running figure shown in Figure 7 (c). Figure 7 (c) is the same as the interface shown in Figure 5A (c) above. Please refer to the description of the interface in Figure 5A (c).

[0233] 4) The terminal device turns on the snapshot function for the second time. After an interval of 2 seconds, the terminal device displays the interface shown in Figure 7 (d), and displays a pop-up window 45 on the photo preview interface to prompt the user whether to turn on the automatic snapshot function. The pop-up window 45 includes a default photo, text describing the automatic snapshot function, and function options. As shown in Figure 7 (d), the pop-up window 45 includes: "Do you want to turn on the "automatic snapshot" function? Automatically take photos when intelligently identifying people smiling, jumping, running, and cats, dogs, and other wonderful moments. After turning it on, you can turn it off in "Settings" > "Smart Photo"" and other text describing the automatic snapshot function, as well as options such as "Don't prompt again", "Cancel", and "Turn on". In the embodiment of the present application, the text describing the automatic snapshot function can also be other text content. As shown in Figure 8, the pop-up window 45 includes: "Do you want to turn on "Eagle Eye Automatic Snapshot"? Automatically take photos when intelligently identifying people smiling, jumping, running, and cats, dogs, and other wonderful moments. After turning it on, you can turn it off in "Settings" > "Smart Photo". There is no limitation on this.

[0234] After the user clicks "On" in the pop-up window 45, the automatic snapshot function switch item of the "Smart Photo" setting item in the terminal device is simultaneously turned on, and the terminal device can use automatic snapshot to generate photos to assist the manual snapshot function; that is, in the camera's photo preview interface, the terminal device supports the user to manually click the shooting icon to capture photos. At the same time, the terminal device can also automatically identify "wonderful" moments and complete automatic snapshots. After the user clicks "Cancel" in the pop-up window 45, the terminal device does not turn on automatic snapshots. In other words, the user needs to click the shooting icon, and the terminal device responds to the user's operation of clicking the shooting icon to capture the photo. If the user does not click the shooting icon, the terminal device will not automatically capture and save the photo.

[0235] In the embodiment of the present application, the arrangement of the "Smart Photo" setting item and the "Auto Snapshot" switch item in the terminal device is shown in Figures 3b and 3c. When the user sets the automatic snapshot function to be turned on, both automatic and manual snapshots are supported when the snapshot function is turned on. When the user sets the automatic snapshot function to be turned off, only manual snapshots are supported when the snapshot function is turned on.

[0236] In addition, if the user sets the automatic snapshot function to be turned on in the "Smart Photo" setting item after using the camera for the first time, the terminal device will no longer display the pop-up window 45 shown in Figure 7 (d) when manually clicking the snapshot function icon 11 for the second time or in the subsequent process; if the user does not set the automatic snapshot function to be turned on in the "Smart Photo" setting item after using the camera for the first time, the terminal device will display the pop-up window 45 shown in Figure 7 (d) after manually clicking the snapshot function icon 11 for the second time, and will no longer display the pop-up window 45 shown in Figure 7 (d) in the subsequent process. In addition, in the process dimension, the pop-up window 45 is only prompted once within a life cycle after the camera is opened to improve the user experience.

[0237] In addition, if the user selects the option of "no more prompts" in the pop-up window 45, the terminal device will no longer prompt the user to turn on the snapshot function, such as the subsequent bubble 43 will no longer prompt.

[0238] 5) In response to the user clicking the "Turn on" option in the pop-up window 45, the terminal device turns on the automatic snapshot function, and the terminal device can display a toast prompt box in the preview window to prompt that the automatic snapshot function has been turned on, such as the message prompt box 46 including "Automatic snapshot is turned on" as shown in (e) of Figure 7. The descriptive information included in the message prompt box 46 can also be adjusted according to actual needs. For example, the message prompt box 46 can include descriptive information such as "Eagle Eye automatic snapshot is turned on".

[0239] 6) After the terminal device turns on the automatic capture function, the user does not need to click the shutter, the terminal device can intelligently identify the scene subject, capture the picture, and generate a photo. For the specific process, please refer to the description of Figure 4-3 above. After a photo is automatically captured, the thumbnail and designated symbol of this photo are displayed in the gallery preview window. The designated symbol indicates that the photo displayed in the gallery preview window 18 is a photo captured automatically. As shown in Figure 7 (f), the designated symbol is a small circle 47 on the gallery preview window. When automatically capturing, there is a delay in the time when the gallery preview window 18 displays the photo thumbnail relative to the moment indicated by the captured photo. As shown in Figure 7 (f), when the gallery preview window displays the photo thumbnail, the scene subject displayed in the preview window no longer exists.

[0240] To guide users in proper camera use and preview photos, after the first automatically captured photo is captured, the terminal device may display a bubble 48 on the photo preview interface to prompt the user to view the automatically captured photo. As shown in FIG7(f), bubble 48 points to the gallery preview window and includes a description that reads "Click to view automatically captured photos." The description included in bubble 48 can also be adjusted based on actual needs. For example, bubble 48 may include a description such as "View automatically captured photos."

[0241] After the terminal device displays bubble 48, if the user does not perform any operation, the bubble disappears after a sixth preset time period. The sixth preset time period can be set according to actual needs, for example, the sixth preset time period can be 5 seconds. After bubble 48 disappears, the terminal device continues to automatically capture and generate photos.

[0242] In the process dimension, the bubble 48 prompt is only displayed once within a life cycle after the camera is turned on. The total number of bubble 48 prompts is less than or equal to a specified number, such as 1 time, 3 times, etc.

[0243] In order to remind the user that the terminal device is taking a snapshot, after the terminal device turns on the snapshot function, a halo is displayed outside the shooting icon, and the halo has a dynamic effect of color change.

[0244] In scenario 3, the terminal recognizes the scene and intelligently prompts you to enable the snapshot function.

[0245] 1) If the user does not enable the snapshot function when using the camera for the first time, the AI ​​photography function will be used by default. As shown in the photo preview interface in Figure 9 (a), the AI ​​photography function icon 12 is turned on, indicating that the AI ​​photography function is enabled, and the snapshot function icon 11 is turned off. The scene shown in Figure 9 (a) is a static scene and is not suitable for the snapshot function.

[0246] 2) Afterwards, such as the next day, when the user uses the camera again to shoot a scene suitable for the snapshot function, if the time since the last use of the camera reaches the specified time, such as the next day, the terminal device recognizes the motion scene suitable for the snapshot function as shown in (b) in Figure 9, and displays a bubble 43 to prompt the user to turn on the snapshot function, as shown in (c) in Figure 9.

[0247] In an embodiment of the present application, the bubble 43 prompt rule can be as follows: in the process dimension, the prompt is only issued once within a life cycle after the camera is opened; if the user does not clear the terminal device cache, if the user has never clicked the snapshot function icon and the terminal device has never turned on the snapshot function, the bubble 43 prompt is not limited in the number of times, so as to prompt the user to use the snapshot function and improve the quality of the photos taken; if the user has clicked the snapshot function icon and the terminal device has turned on the snapshot function, the bubble 43 prompt is no longer issued to reduce the impact on the user's camera use. The recommended interval of bubble 43 can be calculated on a daily or hourly basis, and bubble prompts are no longer issued within the recommended interval to reduce the impact on the user's camera use.

[0248] 3) The user clicks the icon 11 of the snapshot function in the photo preview interface shown in Figure 9 (c), and the terminal device switches to turn on the snapshot function. The icon 11 of the snapshot function is turned on, and the icon 12 of the AI ​​photography function is turned off, as shown in Figure 7 (c), and the terminal device can display a toast prompt box in the preview window, as shown in Figure 7 (c), including a message prompt box 42 that says "'Wonderful Snapshot' is turned on".

[0249] The terminal device can intelligently identify the subject in the scene and capture the image. If the automatic capture function is enabled on the terminal device, the terminal device will subsequently support both automatic and manual capture. If the automatic capture function is not enabled on the terminal device, the terminal device will subsequently support only manual capture.

[0250] Scenario 4: The terminal device remembers the user's operations.

[0251] In one possible implementation, if before the user turns on the snapshot function, the terminal device turns on the AI ​​photography function according to the user's previous operation, as shown in (b) in Figure 5A above, the icon 12 corresponding to the AI ​​photography function is turned on, and the AI ​​photography function is in the turned-on state. Because the user manually clicks to turn on the snapshot function, the AI ​​photography function is turned off, and the icon 12 corresponding to the AI ​​photography function is turned off, that is, the AI ​​photography function is in the turned-off state; the terminal device will remember the user's operation, and when the user turns off the snapshot function, the terminal device automatically turns on the AI ​​photography function, that is, the icon corresponding to the AI ​​photography function in the photo preview interface displayed by the terminal device automatically turns on, and the AI ​​photography function is automatically turned on. Conversely, if before the user turns on the snapshot function, the AI ​​photography function of the terminal device is turned off, the icon 12 corresponding to the AI ​​photography function is turned off, that is, the AI ​​photography function is in the turned-off state, and when the user turns off the snapshot function, the AI ​​photography function of the terminal device is still turned off.

[0252] In another possible implementation, if before the user turns on the AI ​​photography function, the terminal device turns on the snapshot function according to the user's previous operation, as shown in (c) in Figure 5A above, the icon 11 corresponding to the snapshot function is turned on, and the snapshot function is in the on state. Because the user manually clicks to turn on the AI ​​photography function, the snapshot function is turned off, and the icon 11 corresponding to the snapshot function is turned off, that is, the snapshot function is in the off state; the terminal device will remember the user's operation, and when the user turns off the AI ​​photography function, the terminal device automatically turns on the snapshot function, that is, the icon corresponding to the snapshot function in the photo preview interface displayed by the terminal device is automatically turned on, and the snapshot function is automatically turned on. Conversely, if before the user turns on the AI ​​photography function, the snapshot function of the terminal device is turned off, the icon 11 corresponding to the snapshot function is turned off, and the snapshot function is in the off state, when the user turns off the AI ​​photography function, the snapshot function of the terminal device is still turned off.

[0253] Based on the above description, scene 4 can be further divided into scene 41 and scene 42.

[0254] In scene 41, the terminal device remembers the user's operation and automatically turns on the AI ​​photography function.

[0255] 1) The camera's photo preview interface is shown in Figure 10(a), with the AI ​​photography function enabled and the snapshot function disabled. In response to a user manually clicking the snapshot function icon 11 in the photo preview interface shown in Figure 10(a), the terminal device enables the snapshot function and displays the photo preview interface shown in Figure 10(b).

[0256] 2) As shown in FIG10(b), the terminal device turns on the snapshot function and turns off the AI ​​photography function. The terminal device may display a toast prompt box in the preview window to indicate that the snapshot function is turned on, such as the message prompt box 42 shown in FIG10(b). After the snapshot function is turned on, the snapshot function icon 11 is turned on and the AI ​​photography function icon 12 is turned off.

[0257] Here, before the snapshot function is turned on, the AI ​​photography function is turned on. When the user manually clicks the snapshot function icon to turn on the snapshot function, the snapshot function and the AI ​​photography function are mutually exclusive, resulting in the AI ​​photography function being turned off. At this time, the terminal device remembers the user's choice, that is, remembers the user's choice of the status of the AI ​​photography function.

[0258] 3) When the user changes the shooting scene, and the converted scene is a scene suitable for the AI ​​photography function, such as changing from the scene shown in (b) in Figure 10 to the scene shown in (c) in Figure 10, the user manually clicks the icon 11 of the snapshot function in the interface shown in (c) in Figure 10, and the terminal device responds to the user's operation and turns off the snapshot function.

[0259] 4) After the terminal device turns off the snapshot function, it remembers the user's previous selection and automatically turns on the AI ​​photography function, that is, turns on the AI ​​photography function, uses the AI ​​photography function to intelligently identify the scene, and displays a toast prompt box in the preview window to prompt that the snapshot function has been turned off, as shown in (d) in Figure 10, including a message prompt box 44 of "'Wonderful Snapshot' is turned off".

[0260] In Figure 10(d), after the AI ​​photography function is turned on, the AI ​​photography function icon is turned on and the snapshot function icon 11 is turned off. At the same time, the terminal device recognizes the scene shown in Figure 10(d) and displays the corresponding AI scene logo 410 in the preview window, as shown in Figure 10(e). After the snapshot function is turned off, the snapshot function icon 11 is turned off and the AI ​​photography function icon 12 is turned on.

[0261] Here, the user manually turns off the snapshot function, so the terminal device will not remember the user's selection, that is, it will not remember the user's selection of the snapshot function status. In this case, when the user manually turns off the AI ​​photography function, the terminal device will not automatically turn on the snapshot function.

[0262] In scene 42, the terminal device memorizes the user's operation and automatically turns on the snapshot function.

[0263] 1) The camera's photo preview interface is shown in Figure 11(a), with the AI ​​photography function enabled and the snapshot function disabled. In response to a user manually clicking the snapshot function icon 11 in the photo preview interface shown in Figure 11(a), the terminal device enables the snapshot function and displays the photo preview interface shown in Figure 11(b).

[0264] 2) As shown in FIG11(b), the terminal device turns on the snapshot function and turns off the AI ​​photography function. The terminal device may display a toast prompt box in the preview window to indicate that the snapshot function is turned on, such as the message prompt box 42 shown in FIG11(b). After the snapshot function is turned on, the snapshot function icon 11 is turned on and the AI ​​photography function icon 12 is turned off.

[0265] Here, before the snapshot function is turned on, the AI ​​photography function is turned on. When the user manually clicks the snapshot function icon to turn on the snapshot function, the snapshot function and the AI ​​photography function are mutually exclusive, resulting in the AI ​​photography function being turned off. At this time, the terminal device remembers the user's choice, that is, remembers the user's choice of the status of the AI ​​photography function.

[0266] 3) When the user changes the shooting scene and the converted scene is a scene suitable for the AI ​​photography function, such as changing from the scene shown in Figure 11 (b) to the scene shown in Figure 11 (c), the user manually clicks the AI ​​photography function icon 12 to turn on the AI ​​photography function.

[0267] Here, before the AI ​​photography function is turned on, the snapshot function is turned on. When the user manually clicks the icon of the AI ​​photography function and turns on the AI ​​photography function, the snapshot function and the AI ​​photography function are mutually exclusive, resulting in the snapshot function being turned off. At this time, the terminal device remembers the user's choice, that is, remembers the user's choice of the status of the snapshot function.

[0268] 4) Based on the click operation shown in Figure 11 (c), the terminal device turns on the AI ​​photography function and turns off the snapshot function, which can then use the AI ​​photography function to intelligently identify the scene and display the corresponding AI scene logo. When the snapshot function is turned off, the snapshot function icon is turned off and the AI ​​photography function icon is turned on, as shown in Figure 11 (d).

[0269] In an embodiment of the present application, after the terminal device manually turns on the AI ​​photography function, a toast prompt box can be displayed in the preview window, as shown in (d) in Figure 11, including a message prompt box 411 that says "AI photography is turned on". At the same time, the terminal device recognizes the scene shown in (d) in Figure 11 and displays the corresponding AI scene identifier in the preview window. The descriptive information included in the message prompt box 411 can also be adjusted according to actual needs. For example, the message prompt box 411 can include descriptive information such as "AI photography function is turned on".

[0270] 5) When the user wants to take a photo using the snapshot function, the user can manually click the icon of the AI ​​photography function in the interface shown in (d) in Figure 11. In response to the user's operation, the terminal device remembers the user's previous selection, automatically turns on the snapshot function, and turns off the AI ​​photography function, as shown in (e) in Figure 11.

[0271] Here, the user manually turns off the AI ​​photography function, so the terminal device will not remember the user's selection of the AI ​​photography function status. In this case, when the user manually turns off the snapshot function, the AI ​​photography function will not be automatically turned on.

[0272] In an embodiment of the present application, after the terminal device turns off the AI ​​photography function, a toast prompt box may be displayed in the preview window, as shown in FIG11(e), including a message prompt box 412 stating that "AI photography is turned off." The descriptive information included in the message prompt box 412 may also be adjusted according to actual needs. For example, the message prompt box 412 may include descriptive information such as "AI photography function is turned off."

[0273] In scenario 5, the terminal device recognizes the macro scene and activates the AI ​​macro function.

[0274] 1) The camera's photo preview interface is shown in Figure 12 (a). The AI ​​photography function is off, and the snapshot function is on. The terminal device uses the snapshot function to capture and generate a photo. In Figure 12 (a), the snapshot function icon 11 is on, and the AI ​​photography function icon 12 is off.

[0275] 2) When the user changes the shooting scene and the terminal device intelligently recognizes that the scene is a macro scene, such as switching from the motion scene shown in Figure 12 (a) to the macro scene shown in Figure 12 (b), the terminal device activates the AI ​​macro function without the user having to manually switch the shooting mode.

[0276] In the embodiments of the present application, both the snapshot function and the AI ​​photography function can support the recognition of macro scenes. Macro photography can be achieved in the current photo mode with the snapshot function or the AI ​​photography function enabled, without the user having to manually switch the photo mode. When the snapshot function and the AI ​​photography function are enabled, the terminal device can activate the macro capability, but the macro function icon will not be displayed to simplify the photo preview interface.

[0277] 3) The user clicks the shooting icon 19 in the interface shown in Figure 12 (b) to complete the photo shooting. After the photo is generated, the terminal device displays a thumbnail of the photo in the gallery preview window 18, as shown in Figure 12 (c).

[0278] For photos taken with the AI ​​Macro feature enabled, the difference between the time the photo's thumbnail appears in the gallery preview window and the time the user clicks the capture icon is negligible. The time the user clicks the capture icon can be considered the time the photo's thumbnail appears in the gallery preview window. Furthermore, photos taken with the AI ​​Macro feature enabled are not considered snapshots and will not carry the designated symbol 47.

[0279] 4) When the user changes the shooting scene again, and the converted scene is a scene suitable for the snapshot function, such as switching from the macro scene shown in Figure 12 (c) to the motion scene shown in Figure 12 (d), the terminal device continues to use the snapshot function to capture pictures and generate photos through manual or automatic snapshot.

[0280] Scene 6: The terminal device views the captured photos.

[0281] 1) The camera's photo preview interface is shown in Figure 13 (a), with the AI ​​photography function turned off and the snapshot function turned on. If the terminal device has the automatic snapshot function turned on, the terminal device uses the snapshot function to automatically capture the image and save it.

[0282] 2) When the automatic snapshot function is turned on, the terminal device uses the camera to automatically snapshot and capture pictures. When the photo is generated, the photo is saved to the album, and a thumbnail of the photo is displayed in the gallery preview window 18 on the photo preview interface, as shown in (b) in Figure 13, and a designated symbol 47 is displayed on the gallery preview window 18. The designated symbol 47 indicates that the photo displayed in the gallery preview window is a photo captured automatically.

[0283] 3) The user clicks on the gallery preview window in the interface shown in FIG13(b) to view a large preview of the image. That is, in response to the user clicking on the gallery preview window shown in FIG13(b), the terminal device displays the photo in the gallery preview window in the image display interface shown in FIG13(c). For automatically captured photos, the image display interface displays an "auto-capture" icon, such as icon 413 shown in FIG13(c). Icon 413 indicates that the photo displayed on the image display interface is an automatically captured photo.

[0284] When the snapshot function is turned on and the automatic snapshot function is turned on, or when the snapshot function is turned on and the automatic snapshot function is turned off, the terminal device uses the camera to manually snapshot, captures pictures, and generates photos. The terminal device displays a thumbnail of the photo in the gallery preview window 18, but does not display the designated symbol 47 on the gallery preview window. Accordingly, when the photo is displayed on the picture display interface, the icon 413 is not displayed.

[0285] 4) When the user clicks the “auto-snap” icon 413 shown in (c) of FIG13 , a pop-up window introducing the auto-snap capability is displayed. That is, in response to the user clicking the icon 413 shown in (c) of FIG13 , the terminal device displays a pop-up window 414 introducing the auto-snap function. As shown in (d) of FIG13 , the pop-up window 414 includes text content such as “auto-snap, after the camera turns on “auto-snap”, it will automatically take photos when it intelligently recognizes a person smiling, jumping, running, or a cat, dog, etc.” The pop-up window 414 may also include a default photo, which can refer to the default photos in the above pop-ups 41 and 45. The descriptive information included in the pop-up window 414 may also be adjusted according to actual needs. For example, the pop-up window 414 may include descriptive information such as “Eagle Eye auto-snap, after the camera turns on “Eagle Eye auto-snap”, it will automatically take photos when it intelligently recognizes a person smiling, jumping, running, or a cat, dog, etc.”

[0286] In the embodiment of the present application, when the user clicks on a blank space, the pop-up window 414 disappears.

[0287] When the snapshot function is turned on, the user manually clicks the shutter, and the terminal device responds to the user's operation and saves the picture, but does not display icon 413 in the album.

[0288] In scenario 7, the terminal device displays a prompt indicating that the scene is not suitable for capturing.

[0289] 1) When the terminal device exits the camera or turns off the camera, the terminal device memorizes the camera status, such as the AI ​​photography function is turned on and the snapshot function is turned off. The terminal device retains the memory of the camera status for a specified period of time, such as 15 minutes. Within the specified period of time, in response to the user clicking the camera icon on the desktop of the terminal device, the terminal device turns on the camera again. At this time, the terminal device maintains the camera status when the camera was last exited or turned off, that is, the AI ​​photography function is turned on and the snapshot function is turned off, as shown in Figure 14 (a) for the photo preview interface in scenes that are not suitable for snapshots, such as night scenes, dark light environments, and high dynamics.

[0290] After a specified period of time, the terminal device clears the memory of the camera status. In response to the user clicking the camera icon on the terminal device's desktop, the terminal device opens the camera again. At this time, the terminal device adopts the default camera status, such as the status when the camera is first opened in Scenario 1 above, that is, the AI ​​photography function is turned on and the snapshot function is turned off.

[0291] Since the shutter speed is fast and the exposure time is short in the snapshot function, you may not be able to capture satisfactory photos when using the snapshot function in scenes such as night scenes, low-light environments, and high-dynamic scenes. Therefore, scenes such as night scenes, low-light environments, and high-dynamic scenes are not suitable for snapshot.

[0292] 2) The user manually clicks the snapshot function icon 11 on the interface shown in Figure 14 (a), turning on the snapshot function and turning off the AI ​​photography function. That is, the snapshot function icon 11 is turned on, and the AI ​​photography function icon 12 is turned off. The terminal device can also display a toast prompt box in the preview window, as shown in Figure 14 (b), including a message prompt box 42 with text content such as "'Wonderful Snap' is turned on". At this time, the terminal device can intelligently identify the main subject of the scene and generate a photo through automatic or manual snapshot. The prompt rules of the message prompt box 42 can be found in the relevant description above.

[0293] 3) When the terminal device detects the scene and determines that the current scene is not suitable for snapshot, such as a night scene, a low-light environment, or a scene with high dynamic range, the terminal device displays a toast prompt box in the preview window, as shown in Figure 14 (c). This message prompt box 415 includes text such as "The current shooting environment recommends disabling the wonderful snapshot function" to prompt the user to disable the snapshot function and switch to the photo mode to obtain a high-quality photo. The description included in the message prompt box 415 can also be adjusted according to actual needs. For example, the message prompt box 415 may include a description such as "The current shooting environment is not suitable for the current photo mode."

[0294] In the embodiment of the present application, the display rule of the message prompt box 415 can be: in the current scene that is not suitable for snapshot, the message prompt box 415 does not disappear until the scene displayed in the preview window is suitable for snapshot.

[0295] The display rules of the message prompt box 415 can also be implemented in the following two ways:

[0296] Method 1: For scene recognition, the message prompt box 415 is displayed less than a preset number of times, such as 5 times. After the message prompt box 415 is displayed 5 times, no more prompts are given to avoid repeated reminders affecting the user experience.

[0297] Here, in the process dimension, within a life cycle after the camera is turned on, the terminal device can display a message prompt box 415 of a specified duration at specified intervals, and the message prompt box 415 can be displayed up to 5 times.

[0298] Mode 2: For scenes that are not suitable for snapshot, the message prompt box 415 is permanently displayed without a limit on the number of times, that is, each time the scene is switched to a scene that is not suitable for snapshot, the message prompt box 415 is displayed. This can improve the shooting effect.

[0299] 4) Based on the message prompt box 415, the user clicks the snapshot function icon 11 on the photo preview interface shown in Figure 14 (c). In response to the user's operation, the terminal device turns off the snapshot function and turns on the AI ​​photography function based on the remembered user selection. The terminal device can also display a toast prompt box in the preview window, as shown in Figure 14 (d), including a message prompt box 44 stating "'Great Snap' is turned off." The prompt rules of the message prompt box 44 can be found in the relevant description above.

[0300] In scenario 8, when a suitable snapshot scene changes to a non-suitable snapshot scene, the terminal device automatically turns off the snapshot function. A suitable snapshot scene is a scene where the ambient brightness is greater than a preset brightness threshold, also known as a normal light environment.

[0301] 1) When the terminal device exits the camera or turns off the camera, the terminal device memorizes the camera status, such as the AI ​​photography function is turned on and the snapshot function is turned off. The terminal device retains the memory of the camera status for a specified period of time, such as 15 minutes. Within the specified period of time, in response to the user clicking the camera icon on the desktop of the terminal device, the terminal device turns on the camera again. At this time, the terminal device maintains the camera status when the camera was last exited or turned off, that is, the AI ​​photography function is turned on and the snapshot function is turned off, as shown in Figure 15 (a) for the photo preview interface in scenes that are not suitable for snapshots, such as night scenes, low-light environments, and high dynamics.

[0302] After a specified period of time, the terminal device clears the memory of the camera status. In response to the user clicking the camera icon on the terminal device's desktop, the terminal device opens the camera again. At this time, the terminal device adopts the default camera status, such as the status when the camera is first opened in Scenario 1 above, that is, the AI ​​photography function is turned on and the snapshot function is turned off.

[0303] 2) The user manually clicks the snapshot function icon 11 on the interface shown in Figure 15 (a), and the terminal device turns on the snapshot function and turns off the AI ​​photography function. The terminal device can also display a toast prompt box in the preview window, as shown in Figure 15 (b), including a message prompt box 42 that reads "Great Snap is On." At this point, the terminal device can intelligently identify the subject of the scene and generate a photo through automatic or manual snapshot. The prompt rules of message prompt box 42 can be found in the relevant description above.

[0304] 3) When the user's environment changes from the normal lighting environment shown in Figure 15(b) to a night scene, low-light environment, high-dynamic range, or other scene not suitable for snapshots, as shown in Figure 15(c), the terminal device automatically disables the snapshot function, enables the AI ​​photography function, and displays a toast prompt box in the preview window, as shown in Figure 15(c), including the message prompt box 416 "The environment is too dark, and the wonderful snapshot has been turned off." This ensures the quality of the photos taken and the security of the user's information.

[0305] The message prompt box 416 disappears after being displayed for a specified time (eg, 5 seconds). In terms of the process dimension, within a life cycle after the camera is turned on, the message prompt box 416 is displayed each time in the environment switching scenario described in 3).

[0306] 4) After the terminal device exits the snapshot function, it uses the AI ​​photography function to take photos, that is, it returns to normal photo taking mode.

[0307] 5) After the scene shown in (b) of FIG15 is converted to the scene shown in (c) of FIG15 and the snapshot function is exited, although the scene is still in a night scene, a dark light environment, a high dynamic scene or other scenes that are not suitable for snapshot, as shown in (d) of FIG15 , the user can actively turn on the snapshot function again, that is, the user clicks the icon 11 of the snapshot function in the interface shown in (d) of FIG15 , and the terminal device turns on the snapshot function and turns off the AI ​​photography function. The terminal device can also display a toast prompt box in the preview window, as shown in (e) of FIG15 , including a message prompt box 42 that says ““Wonderful Snapshot” is turned on”. At this time, the terminal device can intelligently identify the subject of the scene and generate photos by automatically or manually snapshotting. The prompt rules of the message prompt box 42 can be found in the above-mentioned relevant description.

[0308] 6) When the terminal device detects the scene and determines that the current scene is not suitable for snapshot, such as a night scene, a low-light environment, or a high-dynamic scene, that is, the terminal device is continuously located in a scene not suitable for snapshot, the terminal device displays a toast prompt box in the preview window, as shown in (f) of Figure 15, including a message prompt box 415 of "It is recommended to turn off snapshot in the current shooting environment" to prompt the user to switch to the photo mode to obtain high-quality photos.

[0309] Scene 9: The terminal device displays photos in the gallery.

[0310] 1) The user clicks the gallery icon on the desktop as shown in (a) of Figure 16. In response to the user operation, the terminal device opens the gallery. As shown in (b) of Figure 16, the user browses the photos in the gallery. Among them, the photos captured automatically carry the "automatic capture" icon 413, and the photos captured manually and the photos captured in other shooting modes do not carry the "automatic capture" icon 413.

[0311] 2) The user clicks the album icon in Figure 16 (b). In response to the user's operation, the terminal device opens the album, as shown in the album interface in Figure 16 (c). The automatically captured photos are put together with all photos and are not classified into separate folders.

[0312] The user can click on the "Camera" album in the album interface shown in Figure 16 (c) to view all photos taken by the terminal device. That is, in response to the user's operation of clicking on the "Camera" album shown in Figure 16 (c), the terminal device displays the photos corresponding to the "Camera" album, as shown in Figure 16 (d).

[0313] 3) As shown in FIG16( d ), the automatically captured photo carries an “auto-capture” icon 413 .

[0314] 4) The user clicks on the photo with icon 413 shown in Figure 16(d) to view a large preview of the photo, i.e., the terminal device displays the photo on the photo display interface, as shown in Figure 16(e). For photos captured automatically, the photo display interface displays an "auto-capture" icon 413, as shown in Figure 16(e).

[0315] 5) When the user clicks the “Auto Snap” icon 413, a pop-up window introducing the automatic snapshot capability is displayed, as shown in FIG16(f), including a pop-up window 414 stating “Auto Snap, after the camera turns on “Auto Snap”, it will automatically take photos when it intelligently recognizes people smiling, jumping, running, and cats, dogs, etc.” The pop-up window 414 may also include a default photo. When the user clicks a blank space, the pop-up window 414 disappears. In the embodiment of the present application, the information in the pop-up window introducing the automatic snapshot capability may be fixed material to simplify the complexity of the camera display.

[0316] In some embodiments, when a user clicks on the "All Photos" album as shown in Figure 16 (c), in response to the user's click operation, the terminal device displays the photos corresponding to the "All Photos" album, and the photos saved by the terminal device through the automatic capture function (i.e., the photos captured automatically) will display the icon 413 shown in Figure 16 (d). Similarly, the user clicks on the photo with the icon 413 shown in Figure 16 (d) to view a large preview, that is, the photo is displayed on the picture display interface, as shown in Figure 16 (e). For photos captured by the automatic capture function, the picture display interface displays the "automatic capture" icon 413, as shown in Figure 16 (e).

[0317] In the embodiment of the present application, to facilitate the user's real-time understanding of the snapshot function, a small i introduction icon 112 is displayed in the upper right corner of the preview window when the snapshot function is turned on. The user clicks the small i introduction icon to display a pop-up window introducing the snapshot function, as shown in FIG17(a), including a pop-up window 417 that reads "Wonderful snapshots! When shooting scenes of people smiling, jumping, running, cats, dogs, etc., the intelligent high-speed shutter helps you capture wonderful moments."

[0318] When the user clicks on a blank space, the pop-up window 417 corresponding to the small i introduction icon disappears. The text content included in the pop-up window 417 can be set according to actual needs. For example, as shown in Figure 17 (b), the pop-up window 417 can include "Eagle Eye Wonderful Snapshot, when shooting scenes such as people smiling, jumping, running, and cats, dogs, etc., the intelligent high-speed shutter helps you capture wonderful moments. After turning on Eagle Eye Wonderful Snapshot, you can also turn on the "Eagle Eye Auto Snapshot" function in "Settings" > "Smart Photo" to automatically capture more wonderful moments" and other descriptive information. For another example, the text content included in the pop-up window 417 can also be: "Wonderful Snapshot, support for intelligent high-speed shutter, help you capture wonderful moments; turn on "Auto Snapshot", when it recognizes cats, dogs or people smiling, jumping, running and other actions, it can automatically capture photos of wonderful moments."

[0319] In the embodiment of the present application, the terminal device can use the method shown in scenario 2 to enable the automatic snapshot function, and can also use other methods to enable the automatic snapshot function. In some embodiments, the terminal device can display a pop-up window 49 on the photo preview interface when the camera is used for the first time to prompt the user to enable the automatic snapshot function. For example,

[0320] 1) The display screen of the terminal device displays the desktop, as shown in Figure 18(a). In response to the user clicking the camera icon on the desktop, the terminal device opens the camera and displays the camera's photo preview interface.

[0321] 2) When the camera is used for the first time, the photo preview interface is shown in FIG18(b). A pop-up window 49 is displayed on the photo preview interface, which includes a default photo, text describing the snapshot function and the automatic snapshot function, and function options. The pop-up window 49 shown in FIG18(b) includes: "Snapshot function; intelligent high-speed shutter to help you capture moments such as movement. Supports "automatic snapshot", which automatically takes photos when it recognizes moments such as people smiling, jumping, running, and cats and dogs." and other text describing the snapshot function and the automatic snapshot function, as well as options such as "Turn on the "automatic snapshot" function and "OK". The user checks the "Turn on the "automatic snapshot" function" option in the pop-up window 49, or unchecks the "Turn on the "automatic snapshot" function" option, and then clicks the "OK" option. After the user checks the "Turn on the "Auto Snapshot" function" option in pop-up window 49 and clicks the "OK" option, the "Auto Snapshot" switch item of the "Smart Photo" setting item in the terminal device is turned on simultaneously. After the terminal device turns on the snapshot function, automatic snapshot can be used to generate photos; after the user unchecks the "Turn on the "Auto Snapshot" function" option in pop-up window 49 and clicks the "OK" option, the "Auto Snapshot" switch item of the "Smart Photo" setting item in the terminal device is turned off simultaneously. After the terminal device turns on the snapshot function, only manual snapshot can be used to generate photos.

[0322] After the user clicks the "OK" option in the pop-up window 49, in response to the user's click operation, the terminal device displays a bubble 43 as shown in Figure 18(c) prompting the user to turn on the snapshot function. Based on bubble 43, after the user clicks the snapshot function icon, if the user checks the "Turn on the "Automatic Snapshot" function" option in the pop-up window 49, the terminal device uses automatic snapshot to generate a photo; if the user unchecks the "Turn on the "Automatic Snapshot" function" option in the pop-up window 49, the terminal device uses manual snapshot to generate a photo.

[0323] The present application also provides a capture device, which includes a unit for executing the capture method described above. The device can be used to execute the capture method described above. For the description of the units in the device, please refer to the description of the capture method described above. For the sake of brevity, it will not be repeated here.

[0324] The above-mentioned capture method can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions, such as an image acquisition module or unit, a processing module or unit, etc.

[0325] Referring to FIG19 , an embodiment of the present application further provides a terminal device, including:

[0326] Memory 191, for storing instructions executed by one or more processors of the device, and

[0327] The processor 192 is used to execute the instructions stored in the memory 191, so that the terminal device executes any of the capture methods executed by the terminal devices shown in Figures 3a to 18.

[0328] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a terminal device, the terminal device executes any of the capture methods executed by the terminal device shown in Figures 3a to 18.

[0329] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a terminal device, enables the terminal device to execute any of the capture methods executed by the terminal device shown in FIG. 3 a to FIG. 18 .

[0330] The various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0331] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0332] Program code can be implemented with a high-level programming language or an object-oriented programming language to communicate with the processing system. Where necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.

[0333] In some cases, the disclosed embodiments can be implemented in hardware, firmware, software or any combination thereof. The disclosed embodiments can also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which can be read and executed by one or more processors. For example, instructions can be distributed over a network or by other computer-readable media. Therefore, machine-readable media can include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to, floppy disks, optical disks, optical disks, compact disc read-only memories (Compact Disc Read Only Memory, CD-ROMs), magneto-optical disks, read-only memories (ROM), random access memories (RAM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), magnetic cards or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) using the Internet in electrical, optical, acoustic or other forms of propagation signals. Accordingly, machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0334] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the accompanying drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such a feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.

[0335] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.

[0336] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.

[0337] Although the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims

1. A snapshot method, characterized in that: The method comprises: In the camera's photo mode, displaying a photo preview interface, wherein the photo preview interface displays a first icon, and the first icon is in a closed state; In response to a user operating a capture button at a first moment, saving a first image frame captured at the first moment into a gallery; In response to a user operation on the first icon, enabling a first function and switching the first icon from an off state to an on state; Displaying a second image frame captured in real time at a second moment in the photo preview interface; In response to the user operating the shooting button at a third moment, the second image frame is saved in the gallery, wherein the second moment is earlier than the third moment.

2. The method according to claim 1, characterized in that The method further comprises: In response to the user operating the shooting button at a fourth moment, saving a third image frame to the gallery, wherein a fifth moment at which the third image frame is captured is later than the fourth moment.

3. The method according to claim 1 or 2, characterized in that: The first setting item of the camera is an off state.

4. The method according to claim 3, characterized in that The method further comprises: When the first setting item of the camera is in the on state, upon detecting that a transition occurs in the real-time image frame displayed on the photo preview interface, the fourth image frame is automatically saved to the gallery, wherein the moment of capturing the fourth image frame is earlier than the moment of the transition.

5. The method according to claim 1 or 2, characterized in that: The second image frame is an image with the highest comprehensive score among a plurality of image frames in a first time period before the third moment and a plurality of image frames in a second time period after the third moment; and / or, The third image frame is an image with the highest comprehensive score among a plurality of image frames in a first time period before the fourth moment and a plurality of image frames in a second time period after the fourth moment; The comprehensive score includes image quality score, portrait score and action score.

6. The method according to claim 5, characterized in that The length of the first time period is 1 second, and the length of the second time period is 0.5 seconds.

7. The method according to any one of claims 1 to 6, characterized in that: The photo preview interface also includes: a fourth icon, The method further comprises: When the fourth icon is in the on state and the first icon is in the off state, in response to a user operation on the first icon, the first icon is switched from the off state to the on state, and the first function is turned on, and the fourth icon is switched from the on state to the off state, and the second function is turned off; In response to the user's operation on the first icon, the first icon is switched from an on state to an off state, and the first function is turned off; the fourth icon is switched from an off state to an on state, and the second function is turned on.

8. The method according to any one of claims 1 to 6, characterized in that: The photo preview interface also includes: a fourth icon, The method further comprises: When the first icon is in the on state and the fourth icon is in the off state, in response to a user's operation on the fourth icon, the fourth icon is switched from the off state to the on state and the second function is turned on, and the first icon is switched from the on state to the off state and the first function is turned off; In response to the user's operation on the fourth icon, the fourth icon is switched from an on state to an off state, and the second function is turned off; the first icon is switched from an off state to an on state, and the first function is turned on.

9. The method according to any one of claims 1 to 6, characterized in that: The photo preview interface also includes: a fifth icon, before the first function is turned on, the fifth icon is in a first state, the first state is any one of flash on, flash off, flash automatic or flash always on, The method further comprises: In response to a user's operation on the first icon, the first icon is switched from an off state to an on state, the first function is turned on, the fifth icon is displayed as an inoperable state, and the flash is disabled.

10. The method according to claim 9, characterized in that The method further comprises: In response to a user's operation on the first icon, the first icon is switched from an on state to an off state, the first function is disabled, and the fifth icon is restored to the first state.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: When the first icon is in the on state, if the shooting scene of the camera changes from the first ambient light brightness to the second ambient light brightness, and the first ambient light brightness is greater than the second ambient light brightness, the first function is turned off and the first icon is switched from the on state to the off state.

12. The method according to any one of claims 1 to 11, characterized in that: The method further comprises: When the ambient light brightness of the shooting scene of the camera is less than the third ambient light brightness and the first icon is in an off state, in response to the user's operation on the first icon, the first function is turned on, and the first icon is switched from an off state to an on state, and a pop-up box displays sixth information, and the sixth information is used to prompt that it is not suitable to turn on the snapshot function in the current shooting scene.

13. The method according to claim 4, characterized in that The method further comprises: When the fourth image frame is automatically saved to the gallery, a thumbnail of the fourth image frame is displayed in the gallery preview window on the photo preview interface, and the gallery preview window carries a first symbol.

14. The method according to claim 13, characterized in that The method further comprises: In response to the user's operation on the gallery preview window on the photo preview interface, a first image interface is displayed, wherein the first image interface includes the fourth image frame and the third icon.

15. The method according to claim 14, characterized in that The method further comprises: In response to the user's operation on the third icon, a third card is displayed on the first image interface.

16. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: When the first icon is in the on state, if the shooting scene of the camera is a macro scene, turn on the third function; In response to the user's operation on the shooting icon at the sixth moment, the fifth image frame captured at the sixth moment is saved in the gallery.

17. The method according to claim 4, characterized in that When the first function is turned on and the first setting item of the camera is in the on state, the execution priority of the function of manually saving image frames is higher than the execution priority of the function of automatically saving image frames, and the function of automatically saving image frames is stopped during the execution of the function of manually saving image frames.

18. A terminal device, characterized in that: include: a memory for storing instructions to be executed by one or more processors of the device, and A processor is used to execute the instructions so that the terminal device executes the method described in any one of claims 1-17.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a terminal device, the terminal device executes the method according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • Snapshot method, terminal device and storage medium

    CN118555477A

  • Photographing method, mobile terminal and computer readable storage medium

    CN107302666A

  • Shooting method and device for delayed photography

    CN112532857A

  • Shooting preview method, shooting preview device, electronic equipment and medium

    CN113747080A

  • Shooting method, electronic equipment and storage medium

    CN113810608A