Dynamic photo shooting method and device and electronic equipment
Generating dynamic photos through a dual-camera system solves the problem that existing technologies cannot simultaneously record the shooting scene and the photographer's expressions and movements, achieving a richer shooting experience.
Patent Information
- Application Number
- CN202510702500.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-09-05
AI Technical Summary
In a shooting scenario, existing technologies cannot simultaneously record the scene of the shooting and the photographer's expression and movements at the moment of shooting.
A dual-camera system, one for the front camera and one for the rear camera, is used to generate dynamic photos. By receiving user input, the camera field of view and split-screen mode are adjusted, and the images and videos captured by the camera are stitched together to generate dynamic photos that include the photographer and the shooting scene.
It can simultaneously record the scene of the shooting and the photographer's expression and movements at the moment of shooting, enhancing the shooting experience.
Smart Images

Figure CN120602769A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a method, device and electronic equipment for taking dynamic photos. Background Art
[0002] As the functions of electronic devices continue to improve, taking photos using electronic devices such as mobile phones is becoming more and more common.
[0003] In some shooting scenes, such as a concert, the photographer can use a mobile phone to continuously take multiple photos of the concert. Although this can record the scene of the concert, the photographer's expression and movements at the moment of shooting cannot be recorded. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for shooting dynamic photos, which can simultaneously record the picture of the shooting scene and the photographer's expression and movement at the moment of shooting.
[0005] In a first aspect, an embodiment of the present application provides a method for taking a dynamic photo, the method comprising:
[0006] receiving a first input to a shooting preview interface; the shooting preview interface includes a first shooting preview window and a second shooting preview window, the first shooting preview window includes a preview image captured by the first camera; the second shooting preview window includes a preview image captured by the second camera; the first camera and the second camera have different shooting fields of view;
[0007] In response to the first input, a dynamic photo is generated based on images captured by the first camera and the second camera.
[0008] In some embodiments of the present application, the first camera and the second camera are respectively one of a front camera and a rear camera.
[0009] In some embodiments of the present application, before receiving the first input to the shooting preview interface, the method further includes:
[0010] receiving a second input to a dual-view function activation control in a shooting preview interface; the shooting preview interface includes a shooting preview area, the shooting preview area includes a preview image captured by the first camera or a preview image captured by the second camera; the dual-view function activation control is used to activate a dual-view dynamic photo shooting function;
[0011] In response to the second input, the dual-view dynamic photo shooting function is turned on, and the shooting preview area is updated to a first shooting preview window and a second shooting preview window.
[0012] In some embodiments of the present application, the split-screen mode of the first shooting preview window and the second shooting preview window is a first split-screen mode;
[0013] The method further includes:
[0014] receiving a third input to a split-screen control on the shooting preview interface;
[0015] In response to a third input, at least two split-screen mode identifiers are displayed, the split-screen mode identifiers being used to indicate a split-screen mode of the first shooting preview window and the second shooting preview window; the at least two split-screen mode identifiers include a first split-screen mode identifier and a second split-screen mode identifier; the first split-screen mode identifier indicates a first split-screen mode, and the second split-screen mode identifier indicates a second split-screen mode;
[0016] receiving a fourth input of a second split screen mode identifier among the at least one split screen mode identifier;
[0017] In response to the fourth input, the split screen mode of the first shooting preview window and the second shooting preview window is updated to the second split screen mode.
[0018] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a top-bottom split-screen mode, the method further includes:
[0019] receiving a window size adjustment input for the first shooting preview window or the second shooting preview window;
[0020] In response to the window size adjustment input, the window sizes of the first shooting preview window and the second shooting preview window are updated.
[0021] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a rectangular split-screen mode, the second shooting preview window is a rectangular window, and the second shooting preview window is displayed floating on the first shooting preview window;
[0022] When the split screen mode of the first shooting preview window and the second shooting preview window is a circular split screen mode, the second shooting preview window is a circular window, and the second shooting preview window is displayed floating on the first shooting preview window.
[0023] In some embodiments of the present application, the method further comprises:
[0024] receiving a window position adjustment input for the second shooting preview window;
[0025] In response to the window position adjustment input, the display position of the second shooting preview window is updated.
[0026] In some embodiments of the present application, the method further comprises:
[0027] receiving a window size adjustment input for the second shooting preview window;
[0028] In response to the window size adjustment input, the window size of the second shooting preview window is updated.
[0029] In some embodiments of the present application, after receiving a second input to a control for turning on the dual-view function in the shooting preview interface, the method further includes:
[0030] When the preview image captured by the first camera is displayed in the shooting preview area, a focus mark is displayed on the first shooting preview window; wherein the focus mark is used to indicate that the main field of view is within the shooting range of the first camera;
[0031] When the shooting preview area displays a preview image captured by the second camera, a focus mark is displayed on the second shooting preview window; wherein the focus mark is used to indicate that the main field of view is within the shooting range of the second camera.
[0032] In some embodiments of the present application, the method further comprises:
[0033] receiving a fourth input to a focus switch control on the shooting preview interface;
[0034] In response to the fourth input, the display content of the first shooting preview window is updated to the preview image captured by the second camera, and the display content of the second shooting preview window is updated to the preview image captured by the first camera.
[0035] In some embodiments of the present application, the method further comprises:
[0036] When the focus mark is displayed on the first shooting preview window, in response to the fifth input to the second shooting preview window, the display content of the first shooting preview window is updated to the preview image captured by the second camera, and the display content of the second shooting preview window is updated to the preview image captured by the first camera.
[0037] In some embodiments of the present application, when a focus mark is displayed on the first shooting preview window and the shooting focal length of the preview image in the first shooting preview window is the first focal length, the method further includes:
[0038] receiving a sixth input of a focus adjustment control on the shooting preview interface;
[0039] In response to the sixth input, the shooting focal length of the preview image in the first shooting preview window is updated to the second focal length.
[0040] In some embodiments of the present application, when a focus mark is displayed on the first shooting preview window, the method further includes:
[0041] receiving a seventh input of a special effect setting control on the shooting preview interface;
[0042] In response to a seventh input, displaying at least one filter identifier; the filter identifier indicates a filter;
[0043] receiving a selection input of a filter identifier among at least one filter identifier;
[0044] In response to the selection input, a filter indicated by the filter identifier selected by the selection input is added to the preview image displayed in the first shooting preview window.
[0045] In some embodiments of the present application, when a focus mark is displayed on the first shooting preview window, the method further includes:
[0046] receiving an eighth input of a special effect setting control on the shooting preview interface;
[0047] In response to an eighth input, displaying at least one animation effect identifier;
[0048] receiving a selection input of one of the at least one animation effect identifier;
[0049] In response to the selection input, the motion effect indicated by the motion effect identifier selected by the selection input is added to the preview image displayed in the first shooting preview window.
[0050] In some embodiments of the present application, generating a dynamic photo based on images captured by the first camera and the second camera includes:
[0051] Performing video encoding on a first preview data stream captured by the first camera to generate a first video, and performing video encoding on a second preview data stream captured by the second camera to generate a second video;
[0052] Performing image encoding on a first photographic data stream collected by the first camera to generate a first image, and performing image encoding on a second photographic data stream collected by the second camera to generate a second image;
[0053] splicing the first image and the second image according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface to obtain a cover image;
[0054] splicing each frame of the first video with each frame of the second video according to the display positions of the first and second shooting preview windows in the shooting preview interface to generate a third video;
[0055] The cover image and the third video are packaged to generate a dynamic photo.
[0056] In some embodiments of the present application, before receiving the first input to the shooting preview interface, the method further includes:
[0057] Display at least one shooting duration option;
[0058] In response to a selection input of one of at least one shooting duration options, a shooting duration of the dynamic photo is determined, where the shooting duration is the duration indicated by the shooting duration option selected by the selection input.
[0059] In some embodiments of the present application, before receiving the second input to the dual-view function activation control in the shooting preview interface, the display mode of the dual-view function activation control is the first display mode;
[0060] After receiving a second input to a control for enabling the dual-view function in the shooting preview interface, the method further includes:
[0061] Update the display mode of the dual-view function activation control to the second display mode;
[0062] The second display mode is different from the first display mode.
[0063] In a second aspect, an embodiment of the present application provides a dynamic photo shooting device, the device comprising:
[0064] a receiving module configured to receive a first input to a shooting preview interface; the shooting preview interface comprising a first shooting preview window and a second shooting preview window, the first shooting preview window comprising a preview image captured by the first camera; the second shooting preview window comprising a preview image captured by the second camera; the first camera and the second camera having different shooting fields of view;
[0065] The processing module is configured to generate a dynamic photo based on images captured by the first camera and the second camera in response to the first input received by the receiving module.
[0066] In some embodiments of the present application, the first camera and the second camera are respectively one of a front camera and a rear camera.
[0067] In some embodiments of the present application, the receiving module is further configured to:
[0068] Before receiving the first input to the shooting preview interface, receiving a second input to a dual-view function activation control in the shooting preview interface; the shooting preview interface includes a shooting preview area, the shooting preview area includes a preview image captured by the first camera or a preview image captured by the second camera; the dual-view function activation control is used to activate the dual-view dynamic photo shooting function;
[0069] The processing module is configured to enable a dual-view dynamic photo shooting function in response to a second input received by the receiving module, and update the shooting preview area to a first shooting preview window and a second shooting preview window.
[0070] In some embodiments of the present application, the split-screen mode of the first shooting preview window and the second shooting preview window is a first split-screen mode;
[0071] The receiving module is further configured to receive a third input to the split-screen control on the shooting preview interface;
[0072] a display module configured to display at least two split-screen mode identifiers in response to a third input received by the receiving module, the split-screen mode identifiers being used to indicate a split-screen mode of the first shooting preview window and the second shooting preview window; the at least two split-screen mode identifiers including a first split-screen mode identifier and a second split-screen mode identifier; the first split-screen mode identifier indicating a first split-screen mode, and the second split-screen mode identifier indicating a second split-screen mode;
[0073] The receiving module is further configured to receive a fourth input of a second split-screen mode identifier among the at least one split-screen mode identifier;
[0074] The display module is further configured to update the split screen mode of the first shooting preview window and the second shooting preview window to a second split screen mode in response to a fourth input from the receiving module.
[0075] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a top-bottom split-screen mode, the receiving module is further configured to:
[0076] receiving a window size adjustment input for the first shooting preview window or the second shooting preview window;
[0077] The processing module is further configured to update the window sizes of the first shooting preview window and the second shooting preview window in response to a window size adjustment input.
[0078] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a rectangular split-screen mode, the second shooting preview window is a rectangular window, and the second shooting preview window is displayed floating on the first shooting preview window;
[0079] When the split screen mode of the first shooting preview window and the second shooting preview window is a circular split screen mode, the second shooting preview window is a circular window, and the second shooting preview window is displayed floating on the first shooting preview window.
[0080] In some embodiments of the present application, the receiving module is further configured to:
[0081] receiving a window position adjustment input for the second shooting preview window;
[0082] The processing module is further configured to update the display position of the second shooting preview window in response to the window position adjustment input received by the receiving module.
[0083] In some embodiments of the present application, the receiving module is further configured to:
[0084] receiving a window size adjustment input for the second shooting preview window;
[0085] The processing module is further configured to update the window size of the second shooting preview window in response to the window size adjustment input received by the receiving module.
[0086] In some embodiments of the present application, the device further comprises:
[0087] A display module, configured to, after receiving a second input to a control for enabling the dual-view function in the shooting preview interface, display a focus mark on the first shooting preview window when the shooting preview area displays a preview image captured by the first camera; wherein the focus mark is used to indicate that the primary view is within the shooting range of the first camera;
[0088] When the shooting preview area displays a preview image captured by the second camera, a focus mark is displayed on the second shooting preview window; wherein the focus mark is used to indicate that the main field of view is within the shooting range of the second camera.
[0089] In some embodiments of the present application, the receiving module is further configured to:
[0090] receiving a fourth input to a focus switch control on the shooting preview interface;
[0091] The display module is further configured to update the display content of the first shooting preview window to the preview image captured by the second camera, and update the display content of the second shooting preview window to the preview image captured by the first camera in response to the fourth input received by the receiving module.
[0092] In some embodiments of the present application, the display module is further used to:
[0093] When the focus mark is displayed on the first shooting preview window, in response to the fifth input to the second shooting preview window, the display content of the first shooting preview window is updated to the preview image captured by the second camera, and the display content of the second shooting preview window is updated to the preview image captured by the first camera.
[0094] In some embodiments of the present application, the receiving module is further configured to:
[0095] When a focus mark is displayed on the first shooting preview window and the shooting focal length of the preview image in the first shooting preview window is the first focal length, receiving a sixth input to the focus adjustment control on the shooting preview interface;
[0096] The display module is further configured to update the shooting focal length of the preview image in the first shooting preview window to a second focal length in response to a sixth input received by the receiving module.
[0097] In some embodiments of the present application, the receiving module is further configured to:
[0098] In a case where the focus mark is displayed on the first shooting preview window, receiving a seventh input to the special effect setting control on the shooting preview interface;
[0099] The display module is further configured to display at least one filter identifier in response to the seventh input received by the receiving module; the filter identifier indicates a filter;
[0100] The receiving module is further configured to receive a selection input of a filter identifier among the at least one filter identifier;
[0101] The display module is further configured to add the filter indicated by the filter identifier selected by the selection input to the preview image displayed in the first shooting preview window in response to the selection input received by the receiving module.
[0102] In some embodiments of the present application, the receiving module is further configured to:
[0103] In a case where the focus mark is displayed on the first shooting preview window, receiving an eighth input to the special effect setting control on the shooting preview interface;
[0104] The display module is further configured to display at least one motion effect identifier in response to an eighth input received by the receiving module;
[0105] The receiving module is further configured to receive a selection input of one of the at least one motion effect identifier;
[0106] The display module is further configured to add the motion effect indicated by the motion effect identifier selected by the selection input to the preview image displayed in the first shooting preview window in response to the selection input received by the receiving module.
[0107] In some embodiments of the present application, the processing module is specifically configured to:
[0108] Performing video encoding on a first preview data stream captured by the first camera to generate a first video, and performing video encoding on a second preview data stream captured by the second camera to generate a second video;
[0109] Performing image encoding on a first photographic data stream collected by the first camera to generate a first image, and performing image encoding on a second photographic data stream collected by the second camera to generate a second image;
[0110] splicing the first image and the second image according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface to obtain a cover image;
[0111] splicing each frame of the first video and each frame of the second video according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface, and encoding all the spliced images to generate a third video;
[0112] The cover image and the third video are packaged to generate a dynamic photo.
[0113] In some embodiments of the present application, the device further comprises:
[0114] A display module, configured to display at least one shooting duration option before receiving a first input to the shooting preview interface;
[0115] The processing module is also used to determine the shooting duration of the dynamic photo in response to the selection input of one shooting duration option among at least one shooting duration option, and the shooting duration is the duration indicated by the shooting duration option selected by the selection input.
[0116] In some embodiments of the present application, before receiving the second input to the dual-view function activation control in the shooting preview interface, the display mode of the dual-view function activation control is the first display mode;
[0117] The device also includes:
[0118] A display module, configured to update the display mode of the dual-view function activation control to a second display mode after receiving a second input to the dual-view function activation control in the shooting preview interface;
[0119] The second display mode is different from the first display mode.
[0120] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the dynamic photo shooting method described in the first aspect are implemented.
[0121] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the dynamic photo shooting method as described in the first aspect are implemented.
[0122] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the dynamic photo shooting method as described in the first aspect.
[0123] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the dynamic photo shooting method as described in the first aspect.
[0124] In an embodiment of the present application, a first input to a shooting preview interface is received; the shooting preview interface includes a first shooting preview window and a second shooting preview window, the first shooting preview window including a preview image captured by the first camera; the second shooting preview window including a preview image captured by the second camera; the first camera and the second camera have different shooting fields of view; and in response to the first input, a dynamic photo is generated based on the images captured by the first camera and the second camera. In this way, the electronic device uses two cameras with different fields of view to respectively capture images of the user's environment and the photographer, and generates a dynamic photo based on the images of the user's environment and the photographer with different shooting fields of view. The dynamic photo can then simultaneously record the scene of the shooting scene and the photographer's movements and expressions at the moment of shooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0125] Figure 1 is a flowchart of a method for taking dynamic photos provided by some embodiments of the present application;
[0126] Figure 2A is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0127] Figure 2B is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0128] Figure 2C is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0129] Figure 2D is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0130] Figure 2E is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0131] Figure 2F is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0132] Figure 2G is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0133] Figure 2H is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0134] Figure 2I is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0135] Figure 2J is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0136] Figure 2K is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0137] Figure 2L is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0138] Figure 2M is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0139] Figure 2N is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0140] Figure 2O is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0141] Figure 2P is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0142] Figure 2Q is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0143] Figure 2R is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0144] Figure 2S is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0145] Figure 2T is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0146] Figure 2U is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0147] Figure 2Vis a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0148] Figure 2W is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0149] Figure 2X is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0150] Figure 2Y is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0151] Figure 2Z is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0152] Figure 3 is a flowchart of a method for taking dynamic photos provided by some embodiments of the present application;
[0153] Figure 4 is a schematic diagram of a dynamic photo shooting method provided by some embodiments of the present application;
[0154] Figure 5A is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0155] Figure 5B is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0156] Figure 5C is a schematic diagram of some dynamic photo shooting interfaces provided by some embodiments of the present application;
[0157] Figure 5D is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0158] Figure 5E is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0159] Figure 5F is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0160] Figure 5G is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0161] Figure 5H is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0162] Figure 5Iis a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0163] Figure 5J is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0164] Figure 5K is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0165] Figure 5L is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0166] Figure 5M is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0167] Figure 5N is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0168] Figure 5O is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0169] Figure 5P is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0170] Figure 5Q is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0171] Figure 5R is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0172] Figure 5S is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0173] Figure 5T is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0174] Figure 5U is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0175] Figure 5V is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0176] Figure 5W is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0177] Figure 5X is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0178] Figure 5Y is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0179] Figure 5Z is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0180] Figure 6A is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0181] Figure 6B is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0182] Figure 6C is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0183] Figure 6D is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0184] Figure 6E is a schematic diagram of a dynamic photo shooting interface provided by some embodiments of the present application;
[0185] Figure 7 is a flowchart of a method for taking dynamic photos provided by some embodiments of the present application;
[0186] Figure 8 is a schematic diagram of a dynamic photo shooting process provided by some embodiments of the present application;
[0187] Figure 9 is a schematic structural diagram of a dynamic photo shooting device provided by some embodiments of the present application;
[0188] Figure 10 is a schematic structural diagram of a dynamic photo shooting device provided by some embodiments of the present application;
[0189] Figure 11 is a schematic structural diagram of an electronic device provided by some embodiments of the present application;
[0190] Figure 12 This is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION
[0191] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0192] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0193] The terms "at least one" and "at least one of" in the specification and claims of this application refer to any one, any two, or a combination of more than two of the objects included. For example, at least one of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two" means two or more, and its meaning is similar to "at least one".
[0194] The terms used in the embodiments of this application are only used to explain the specific embodiments of this application and are not intended to limit this application. The following is an explanation of the terms involved in the embodiments of the present invention.
[0195] Interface: This refers to the visual interface through which users interact with electronic devices, such as mobile phones. It serves as the medium for information presentation and input and output within hardware and software systems. Electronic devices can present their interfaces through displays, and users interact with them through touch, click, or gestures. The interface can include elements such as icons, buttons, menus, text, and logos.
[0196] Shooting preview interface: An interface that displays a preview image of the image captured by the electronic device. Through the preview image displayed on the shooting preview interface, the user can know the display effect of the captured photo.
[0197] Dynamic photos: Dynamic photos are extremely short videos generated by electronic devices after taking photos, which can record dynamic moments before and after the photo is taken.
[0198] Control: A control (also called part, component, widget or control) is a graphical user interface element and the basic building block of the user interface, such as a window or text box, displayed in the program interface of any application. A control can be a button, text box, label, etc., used to control all data processed by each application and the interactive operations on this data.
[0199] The logo in this application refers to text, symbols, images, etc. used to indicate information, and controls or other containers can be used as carriers for displaying information, including but not limited to text logos, symbol logos, and image logos.
[0200] The following describes in detail the dynamic photo shooting method provided by the embodiment of the present application through specific embodiments and their application scenarios in combination with the accompanying drawings.
[0201] The dynamic photo shooting method provided in the embodiments of the present application can be applied to scenarios where a mobile phone is used to shoot dynamic photos. For example, in scenario 1, while watching a concert, user A uses a mobile phone to simultaneously shoot the live concert scene and the user's own picture. In scenario 2, while interacting with a companion, user B uses a mobile phone to simultaneously shoot the companion's picture and his own picture.
[0202] The dynamic photo shooting method provided in the embodiments of the present application may be executed by a dynamic photo shooting device. For example, the dynamic photo shooting device may be an electronic device, or a functional component or functional entity within the electronic device. The following description of the dynamic photo shooting method provided in the embodiments of the present application will be exemplified using an electronic device as the executing entity.
[0203] Figure 1 This is a flow chart of a method for taking dynamic photos provided by an embodiment of the present application. Figure 1 As shown, the dynamic photo shooting method provided in the embodiment of the present application may include the following steps 101 and 102.
[0204] Step 101: The electronic device receives a first input to a shooting preview interface.
[0205] In some embodiments of the present application, the shooting preview interface includes a first shooting preview window and a second shooting preview window, the first shooting preview window includes a preview image captured by the first camera; the second shooting preview window includes a preview image captured by the second camera; the shooting fields of view of the first camera and the second camera are different.
[0206] For example, the shooting field of view parameters of the above-mentioned first camera may include a shooting angle range of 60°-90° in front of the user and a shooting focal length range of 0.6x-5x when the mobile phone screen is facing the user. The shooting field of view parameters of the above-mentioned second camera may include a shooting angle range of 60°-90° behind the user and a shooting focal length range of 0.8x-2x when the mobile phone screen is facing the user.
[0207] For example, the shooting field of view parameters of the above-mentioned first camera may include a shooting angle range of 30°-150° in front of the user and a shooting focal length range of 0.6x-20x when the mobile phone screen is facing the user. The shooting field of view parameters of the above-mentioned second camera may include a shooting angle range of 60°-120° behind the user and a shooting focal length range of 0.8x-3x when the mobile phone screen is facing the user.
[0208] In some embodiments of the present application, the electronic device may receive a first input to a shooting control on the shooting preview interface, where the first input is used to instruct shooting a dynamic photo.
[0209] In some embodiments of the present application, the above-mentioned first input can be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0210] In some embodiments of the present application, the above-mentioned gesture input may include but is not limited to at least one of the following: click gesture, sliding gesture, drag gesture, pressure recognition gesture, long press gesture, area change gesture, double-press gesture, double-click gesture, specific gesture input or other possible gesture inputs. The specific gesture input form can be determined according to actual needs and is not limited to this in some embodiments.
[0211] In some embodiments of the present application, the above-mentioned click input can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input, which is not limited in some embodiments.
[0212] In some embodiments of the present application, the above-mentioned sliding input can be a sliding input in any direction, such as sliding up, sliding down, sliding to the left or sliding to the right, etc., which is not limited in some embodiments.
[0213] In some embodiments of the present application, the shapes of the first shooting preview window and the second shooting preview window can be any possible shape such as a circle, rectangle, triangle, diamond, ring or polygon, which can be determined according to actual usage requirements and is not limited by the embodiments of the present invention.
[0214] In some embodiments of the present application, the shape of the shooting control may be any possible shape such as a circle, rectangle, triangle, diamond, ring or polygon, and the specific shape may be determined according to actual usage requirements, and is not limited in the embodiments of the present invention.
[0215] In some embodiments of the present application, the first camera and the second camera are respectively one of a front camera and a rear camera.
[0216] In some embodiments of the present application, the first camera may be a front camera, the second camera may be a rear camera, and the first shooting preview window may include a preview image of the rear field of view of the mobile phone captured by the rear camera; the second shooting preview window may include a preview image of the front field of view of the mobile phone captured by the front camera.
[0217] Step 102: The electronic device generates a dynamic photo based on images captured by the first camera and the second camera in response to the first input.
[0218] Combined with scenario 1, such as Figure 2A As shown, a shooting preview interface 20a is displayed on the screen 20 of user A's mobile phone. A first shooting preview window 211 of shooting preview interface 20a may include a preview image of a female singer singing on a live concert stage captured by the rear camera, and a second shooting preview window 212 of shooting preview interface 20a may include a preview image of user A captured by the front camera. If the mobile phone receives a tap input from user A on the shooting control 23 on the dynamic photo shooting interface 20a, the mobile phone may generate a dynamic photo in response to the tap input based on the preview image of the female singer singing on the live concert stage captured by the rear camera and the preview image of user A captured by the front camera.
[0219] Combined with scenario 2, such as Figure 2B As shown, a shooting preview interface 20a is displayed on the screen 20 of user B's mobile phone. A first shooting preview window 211 of shooting preview interface 20a may include a preview image of user B's companions captured by the rear camera, and a second shooting preview window 212 of shooting preview interface 20a may include a preview image of user B captured by the front camera. If the mobile phone receives a tap input from user B on the shooting control 23 on the dynamic photo shooting interface 20a, the mobile phone may generate a dynamic photo in response to the tap input based on the preview image of user B's companions captured by the rear camera and the preview image of user B captured by the front camera.
[0220] In the dynamic photo shooting method provided in the embodiment of the present application, the electronic device receives a first input to a shooting preview interface; the shooting preview interface includes a first shooting preview window and a second shooting preview window, the first shooting preview window includes a preview image captured by the first camera; the second shooting preview window includes a preview image captured by the second camera; the shooting fields of the first camera and the second camera are different; in response to the first input, a dynamic photo is generated based on the images captured by the first camera and the second camera. In this way, the electronic device uses two cameras with different fields of view to respectively capture images of the user's environment and the photographer's image, and generates a dynamic photo based on the images of the user's environment and the photographer's image with different shooting fields of view, thereby being able to simultaneously record the scene of the shooting scene and the photographer's movements and expressions at the moment of shooting through the dynamic photo.
[0221] In some embodiments of the present application, Figure 1 ,like Figure 3 As shown, the above step 102 can be implemented through the following steps 102a to 102e:
[0222] Step 102a: The electronic device performs video encoding on the first preview data stream captured by the first camera to generate a first video, and performs video encoding on the second preview data stream captured by the second camera to generate a second video.
[0223] In some embodiments of the present application, the electronic device may subject the images captured by the first camera and the second camera to RAW pre-processing through an image signal processing (ISP) pipeline to obtain a first preview data stream and a first photo data stream captured by the first camera and a second preview data stream and a second photo data stream captured by the second camera, respectively.
[0224] In some embodiments of the present application, the electronic device may perform electronic image stabilization (EIS) on the first preview data stream and the second preview stream, perform red, green, blue (RGB) and YUV domain processing, and then use the MP4 standard to encode the YUV domain processed first preview data stream and the second preview stream to generate the first video and the second video. Wherein, Y is called the grayscale component, UV is the chrominance component, U represents the blue component, and V represents the red component.
[0225] Step 102b: The electronic device performs image encoding on the first photographic data stream collected by the first camera to generate a first image, and performs image encoding on the second photographic data stream collected by the second camera to generate a second image.
[0226] In some embodiments of the present application, the mobile phone can perform photo processing (process) and RAW pre-processing, photo algorithm post-processing, adding special effect filters and YUV processing on the above-mentioned first photo data stream and the above-mentioned second photo data stream respectively, and then use the image compression technology standard (Joint Photographic Experts Group, JPEG) to perform image encoding on the above-mentioned first photo data stream and the above-mentioned second photo data after YUV processing to generate the above-mentioned first image and the above-mentioned second image.
[0227] Step 102c: The electronic device splices the first image and the second image according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface to obtain a cover image.
[0228] In some embodiments of the present application, the display position of the image captured by the first camera in the generated cover image is consistent with the display position of the first shooting preview window in the above-mentioned shooting preview interface; the display position of the image captured by the second camera in the generated cover image is consistent with the display position of the second shooting preview window in the above-mentioned shooting preview interface.
[0229] In some embodiments of the present application, when the first shooting preview window and the second shooting preview window respectively display the preview image captured by the first camera and the preview image captured by the second camera, the electronic device can stitch the first image and the second image according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface to obtain a cover image.
[0230] For example, combined with scenario 1, Figure 2A As shown, the first shooting preview window 211 is displayed in the lower half of the shooting preview interface 20a, and the second shooting preview window 212 is displayed in the upper half of the shooting preview interface 20a. The mobile phone can then stitch the encoded image of the female singer singing on the concert stage and the encoded image of user A into a cover image. The encoded image of the female singer singing on the concert stage is displayed in the lower half of the cover image, and the encoded image of user A is displayed in the upper half of the cover image.
[0231] For example, combined with scenario 2, Figure 2BAs shown, the first shooting preview window 211 is displayed in the lower half of the shooting preview interface 20a, and the second shooting preview window 212 is displayed in the upper half of the shooting preview interface 20a. The mobile phone can then stitch the encoded images of user B's companions and the encoded image of user B into a cover image. The encoded images of user B's companions are displayed in the lower half of the cover image, and the encoded image of user B is displayed in the upper half of the cover image.
[0232] Step 102d: The electronic device stitches each frame of the first video with each frame of the second video according to the display positions of the first and second shooting preview windows in the shooting preview interface to generate a third video.
[0233] In some embodiments of the present application, the display position of the image captured by the first camera in each video frame of the generated third video is consistent with the display position of the first shooting preview window in the above-mentioned shooting preview interface; in the generated third video, the display position of the image captured by the second camera in each video frame of the generated third video is consistent with the display position of the second shooting preview window in the above-mentioned shooting preview interface.
[0234] It should be noted that the process of the electronic device stitching each frame of the video image in the first video with each frame of the video image in the second video can refer to the above step 102a3. To avoid repetition, this embodiment will not be repeated here.
[0235] Step 102e: The electronic device packages the cover image and the third video to generate a dynamic photo.
[0236] In some embodiments of the present application, the electronic device may package a cover image in JPEG format and a third video in MP4 format to generate a dynamic photo.
[0237] In this way, the electronic device generates a first video by performing video encoding on the first preview data stream captured by the first camera, and generates a second video by performing video encoding on the second preview data stream captured by the second camera; performs image encoding on the first photo data stream captured by the first camera to generate a first image, and performs image encoding on the second photo data stream captured by the second camera to generate a second image; according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface, the first image and the second image are image stitched together to obtain a cover image; according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface, each frame of video image in the first video is image stitched together with each frame of video image in the second video to generate a third video, and can generate dynamic photos including images of the user's environment and the image of the photographer taken by two cameras with different fields of view, and can thus simultaneously record the scene of the shooting scene and the actions and expressions of the photographer at the shooting moment through the dynamic photos.
[0238] In some embodiments of the present application, Figure 1 ,like Figure 4 As shown, before the above step 101, the dynamic photo shooting method provided by the embodiment of the present application may further include the following steps 103a and 103b:
[0239] Step 103a: The electronic device receives a second input for enabling the dual-view function in the shooting preview interface.
[0240] In some embodiments of the present application, the above-mentioned shooting preview interface includes a shooting preview area, and the above-mentioned shooting preview area includes a preview image captured by the first camera or a preview image captured by the second camera; the above-mentioned dual-view function activation control is used to activate the dual-view dynamic photo shooting function.
[0241] In some embodiments of the present application, when the electronic device turns on the dual-view dynamic photo shooting function, the electronic device can simultaneously display the preview image captured by the first camera and the preview image captured by the second camera on the shooting preview interface.
[0242] In some embodiments of the present application, the second input may be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0243] In some embodiments of the present application, the dual field of view function activation control may be fixedly displayed at a certain position in the shooting preview interface.
[0244] For example, the dual view function activation control may be fixedly displayed in a preset position of the shooting preview interface, such as at least one of the following: a status bar, a notification bar, a task bar, or a virtual navigation bar.
[0245] In some embodiments of the present application, the dual-view function activation control may be a floating control.
[0246] Exemplarily, the dual-view function activation control can be displayed floatingly at any position in the above-mentioned shooting preview interface. When the user drags the dual-view function activation control, the dual-view function activation control can move on the above-mentioned shooting preview interface along with the user's dragging operation and be displayed at any position in the above-mentioned shooting preview interface.
[0247] It should be noted that, when the user subsequently wants to operate the dual-view function activation control, the user can control the movement of the dual-view function activation control through specific input.
[0248] In some embodiments of the present application, the dual-view function activation control may also be displayed superimposed on the first position with a preset transparency.
[0249] For example, assuming that the preset transparency is recorded as T, the value range of T can be 0% <T<120%。
[0250] In some embodiments of the present application, the background color of the dual-view function activation control may also change.
[0251] In some embodiments of the present application, the dual-view function activation control may be displayed at high brightness or low brightness to remind the user of the specific display location of the dual-view function activation control.
[0252] Step 103b: The electronic device activates the dual-view dynamic photo shooting function in response to the second input, and updates the shooting preview area to the first shooting preview window and the second shooting preview window.
[0253] In some embodiments of the present application, after the electronic device turns on the dual-field dynamic photo shooting function, when shooting dynamic photos, two cameras with different fields of view can be used to respectively shoot images of the user's environment and the photographer's image, and then generate dynamic photos based on the images of the user's environment and the photographer's image.
[0254] Combined with scenario 1, such as Figure 2C As shown, the shooting preview area 21 of the shooting preview interface 20a of the mobile phone may include a preview image of a female singer singing on the stage of a concert captured by the rear camera. Figure 2CWhen the second input of the dual view function opening control 22 is received on the shooting preview interface 20a, the mobile phone can respond to the second input, such as Figure 2A As shown, the shooting preview area 21 is updated to include a first shooting preview window 211 including a preview image of a female singer singing on the concert stage captured by the rear camera and a second shooting preview window 212 including a preview image of user A captured by the front camera. Or, as Figure 2D As shown, the shooting preview area 21 of the shooting preview interface 20a of the mobile phone may include a preview image of user A captured by the front camera. Figure 2D When the second input of the dual view function opening control 22 is received on the shooting preview interface 20a, the mobile phone can respond to the second input, such as Figure 2E As shown, the shooting preview area 21 is updated to a first shooting preview window 211 including a preview image of a female singer singing on a live concert stage captured by the rear camera and a second shooting preview window 212 including a preview image of user A captured by the front camera.
[0255] Combined with scenario 1, such as Figure 2F As shown, the shooting preview area 21 of the shooting preview interface 20a of the mobile phone may include a preview image of the companion of user B captured by the rear camera. Figure 2F When the second input of the dual view function opening control 22 is received on the shooting preview interface 20a, the mobile phone can respond to the second input, such as Figure 2B As shown, the shooting preview area 21 is updated to include a first shooting preview window 211 including a preview image of the companion of user B captured by the rear camera and a second shooting preview window 212 including a preview image of user B captured by the front camera. Or, as Figure 2G As shown, the shooting preview area 21 of the shooting preview interface 20a of the mobile phone may include a preview image of user B captured by the front camera. Figure 2G When the second input of the dual view function opening control 22 is received on the shooting preview interface 20a, the mobile phone can respond to the second input, such as Figure 2H As shown, the shooting preview area 21 is updated to a first shooting preview window 211 including preview images of user B's companions captured by the rear camera and a first shooting preview window 212 including a preview image of user B captured by the front camera.
[0256] In this way, the electronic device receives a second input to the dual-field function activation control in the shooting preview interface; in response to the second input, the dual-field dynamic photo shooting function is activated, and the shooting preview area is updated to the first shooting preview window and the second shooting preview window, so that the user can view the images of the user's environment and the photographer's image captured by two cameras with different shooting fields of view through the first shooting preview window and the second shooting preview window, and then, when subsequently shooting dynamic photos, it can generate dynamic photos including the images of the user's environment and the photographer's image captured by two cameras with different fields of view, and then, through the dynamic photos, it can simultaneously record the picture of the shooting scene and the photographer's movements and expressions at the moment of shooting.
[0257] In some embodiments of the present application, the split-screen mode of the first shooting preview window and the second shooting preview window is a first split-screen mode; the dynamic photo shooting method provided in the embodiment of the present application may further include the following steps 104a to 104d:
[0258] Step 104a: The electronic device receives a third input to the split-screen control on the shooting preview interface.
[0259] In some embodiments of the present application, the shape of the above-mentioned split-screen control can be any possible shape such as a circle, rectangle, triangle, diamond, ring or polygon, which can be determined according to actual usage requirements and is not limited by the embodiments of the present invention.
[0260] In some embodiments of the present application, the third input may be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0261] Step 104b: The electronic device displays at least two split-screen mode identifiers in response to the third input.
[0262] In some embodiments of the present application, the above-mentioned split-screen mode identifier is used to indicate the split-screen mode of the above-mentioned first shooting preview window and the above-mentioned second shooting preview window; the above-mentioned at least two split-screen mode identifiers include a first split-screen mode identifier and a second split-screen mode identifier; the above-mentioned first split-screen mode identifier indicates the above-mentioned first split-screen mode, and the above-mentioned second split-screen mode identifier indicates the second split-screen mode.
[0263] In some embodiments of the present application, the above-mentioned split-screen mode identifier can be displayed in the form of an icon.
[0264] In some embodiments of the present application, the first split-screen mode may be a current split-screen mode of the first preview window and the second preview window.
[0265] In some embodiments of the present application, the first split-screen mode identifier and the second split-screen mode identifier indicate different split-screen modes.
[0266] In some embodiments of the present application, the electronic device may display the first split-screen mode identifier and the second split-screen mode identifier in different ways. For example, the electronic device may display the second split-screen mode identifier at normal brightness and the first split-screen mode identifier at low brightness.
[0267] In some embodiments of the present application, the first split-screen mode identifier may include any of the following:
[0268] Upper and lower split-screen mode logo, rectangular split-screen mode logo and circular split-screen mode logo.
[0269] In some embodiments of the present application, the top-bottom split-screen mode identifier is used to indicate the top-bottom split-screen mode; the rectangular split-screen mode identifier is used to indicate the rectangular split-screen mode; and the circular split-screen identifier is used to indicate the circular split-screen mode.
[0270] In some embodiments of the present application, the second split-screen mode identifier may include any of the following:
[0271] Top-bottom split-screen mode logo, left-right split-screen mode logo, rectangular split-screen mode logo, and circular split-screen mode logo.
[0272] Combined with scenario 1, after turning on the dual-view function, Figure 2A As shown, the mobile phone can display the first preview window 211 and the second preview window 212 in the split-screen mode in the shooting preview area 21. When the mobile phone receives a press input on the split-screen control 24 on the shooting preview interface 20a, it can respond to the press input and combine Figure 2A ,like Figure 2I As shown, an upper and lower split screen mode mark 241, a rectangular split screen mode mark 242 and a circular split screen mode mark 243 are displayed.
[0273] Combined with scenario 2, after turning on the dual-view function, Figure 2B As shown, the mobile phone can display the first preview window 211 and the second preview window 212 in the upper and lower split screen mode in the shooting preview area 21. Figure 2B When the split screen control 24 on the shooting preview interface 20a is pressed, the pressing input can be responded to, such as Figure 2J As shown, a top-bottom split screen mode control 241 , a rectangular split screen mode control 242 , and a circular split screen mode control 243 are displayed.
[0274] Step 104c: The electronic device receives a fourth input of a second split screen mode identifier among the at least one split screen mode identifier.
[0275] In some embodiments of the present application, the fourth input may be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0276] Step 104d: In response to the fourth input, the electronic device updates the split-screen mode of the first shooting preview window and the second shooting preview window to the second split-screen mode.
[0277] In some embodiments of the present application, when the above-mentioned second split-screen mode identifier is a top-bottom split-screen mode identifier, the electronic device can update the split-screen mode of the above-mentioned first shooting preview window and the above-mentioned second shooting preview window to a top-bottom split-screen mode, that is, the electronic device displays the above-mentioned first shooting preview window in the lower half of the above-mentioned image preview area, and displays the above-mentioned second shooting preview window in the upper half of the above-mentioned image preview area.
[0278] In some embodiments of the present application, when the second split-screen mode identifier is a circular split-screen mode identifier, the electronic device may update the split-screen mode of the first shooting preview window and the second shooting preview window to a circular split-screen mode.
[0279] In some embodiments of the present application, when the first split-screen mode identifier is a rectangular split-screen mode identifier, the electronic device may update the split-screen modes of the first shooting preview window and the second shooting preview window to a rectangular split-screen mode.
[0280] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a rectangular split-screen mode, the second shooting preview window is a rectangular window, and the second shooting preview window is displayed floating on the first shooting preview window;
[0281] When the split-screen mode of the first shooting preview window and the second shooting preview window is a circular split-screen mode, the second shooting preview window is a circular window, and the second shooting preview window is displayed floating on the first shooting preview window.
[0282] In some embodiments of the present application, after the split-screen mode of the first shooting preview window and the second shooting preview window is updated to the second split-screen mode, when the electronic device takes a dynamic photo, it can adjust the display positions of the image taken by the first camera and the image taken by the second camera in the dynamic photo according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface indicated by the second split-screen mode.
[0283] Combined with scenario 1, such as Figure 2IAs shown, when the mobile phone receives a press input on the upper and lower split screen mode identifier 241, the display method of the first shooting preview window 211 and the second shooting preview window 212 will not change. If the mobile phone receives a press input on the rectangular split screen mode identifier 242, the mobile phone can respond to the press input. Figure 2I The rectangular split screen mode mark 242 in the pressing input is as follows: Figure 2K As shown, the mobile phone can display the preview image of user A captured by the front camera in the rectangular second shooting preview window 212, and display the preview image of the female singer singing on the concert stage captured by the rear camera in the first shooting preview window 211, and the second shooting preview window 212 is displayed floating on the first shooting preview window 211. Or, if the mobile phone receives a call to Figure 2I If the circular split screen mode mark 243 is pressed, the mobile phone can respond to the press input, such as Figure 2L As shown, the mobile phone can display a preview image of user A captured by the front camera in the circular second shooting preview window 212, and display a preview image of a female singer singing on the live concert stage captured by the rear camera in the first shooting preview window 211, and the second shooting preview window 212 is displayed floating on the first shooting preview window 211.
[0284] Combined with scenario 2, such as Figure 2M As shown, when the mobile phone receives a press input to the upper and lower split screen mode mark 241, the display method of the first shooting preview window 211 and the second shooting preview window 212 will not change. Figure 2M If the rectangular split screen mode identifier 242 is pressed, the mobile phone can respond to the rectangular split screen mode identifier 242, such as Figure 2N As shown, the mobile phone can display the preview image of user B captured by the front camera in the rectangular second shooting preview window 212, and display the preview image of user B's companions captured by the rear camera in the second shooting preview window 211, and the second shooting preview window 212 is displayed floating on the first shooting preview window 211. Or, if the mobile phone receives a call to Figure 2M The mobile phone can respond to the pressing input of the circular split screen mode identifier 243, such as Figure 2O As shown, the mobile phone can display the preview image of user B captured by the front camera in the circular second shooting preview window 212, and display the preview image of user B's companions captured by the rear camera in the first shooting preview window 211, and the second shooting preview window 212 is displayed floating on the first shooting preview window 211.
[0285] In this way, the electronic device receives a third input to the split-screen control on the shooting preview interface; in response to the third input, displays at least two split-screen mode identifiers; receives a fourth input to the second split-screen mode identifier in at least one split-screen mode identifier; in response to the fourth input, updates the split-screen mode of the first shooting preview window and the second shooting preview window to the second split-screen mode, and can flexibly adjust the split-screen mode of the first shooting preview window and the second shooting preview window. When generating a dynamic photo, the display position of the image captured by the first camera and the image captured by the second camera in the dynamic photo can be flexibly adjusted according to the display position of the first shooting preview window and the second shooting preview window in the shooting preview interface indicated by the second split-screen mode.
[0286] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a top-bottom split-screen mode, the dynamic photo shooting method provided in the embodiment of the present application may further include the following steps 105a and 105b:
[0287] Step 105a: The electronic device receives a window size adjustment input for the first shooting preview window or the second shooting preview window.
[0288] In some embodiments of the present application, the above-mentioned window size adjustment input can be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0289] Step 105a: The electronic device updates the window sizes of the first shooting preview window and the second shooting preview window in response to the window size adjustment input.
[0290] In some embodiments of the present application, the image size of the preview image captured by the first camera can be updated along with the window size of the first shooting preview window, and the image size of the preview image captured by the second camera can be updated along with the window size of the second shooting preview window.
[0291] In some embodiments of the present application, when taking a dynamic photo, the size of the image taken by the first camera in the dynamic photo can be updated with the window size of the above-mentioned first shooting preview window, and the size of the image taken by the second camera can be updated with the window size of the above-mentioned first shooting preview window.
[0292] In conjunction with scenario 1 or scenario 2, the mobile phone can respond to an up / down drag input on the first shooting preview window 211 or the second shooting preview window 212 to adjust the window size of the first shooting preview window 211 and the second shooting preview window 212. For example, the mobile phone can respond to an upward drag input on the first shooting preview window 211 or the second shooting preview window 212 to increase the window size of the first shooting preview window 211 and decrease the window size of the second shooting preview window 212. Alternatively, the mobile phone can respond to a downward drag input on the first shooting preview window 211 or the second shooting preview window 212 to decrease the window size of the first shooting preview window 211 and increase the window size of the second shooting preview window 212.
[0293] For example, in combination with scenario 1, Figure 2P As shown, when the shooting preview area 21 displays a dividing line 213 separating the first shooting preview window 211 and the second shooting preview window 212, if the mobile phone receives an upward drag input on the area dividing line 213, the mobile phone can also adjust the position of the dividing line 213 in the shooting preview area 21 in response to the upward drag input, thereby increasing the window size of the first shooting preview window 211 and reducing the window size of the second shooting preview window 212. Specifically, the size of the preview image of the female singer singing on the stage of the concert will increase with the window size of the first shooting preview window 211, while the size of the preview image of user A will decrease with the window size of the second shooting preview window 212. Alternatively, if the mobile phone receives a downward drag input on the area dividing line 213, the mobile phone can also adjust the position of the dividing line 213 in the shooting preview area 21 in response to the downward drag input, thereby increasing the window size of the first shooting preview window 211 and reducing the window size of the second shooting preview window 212. Among them, the size of the preview image of the female singer singing on the live concert stage will increase with the window size of the first shooting preview window 211, and the size of the preview image of user A will decrease with the window size of the second shooting preview window 212.
[0294] For example, in combination with scenario 2, Figure 2QAs shown, when the capture preview area 21 displays a dividing line 213 separating a first capture preview window 211 and a second capture preview window 212, if the phone receives an upward drag input on the region dividing line 213, the phone can also adjust the position of the dividing line 213 upward in the capture preview area 21 in response to the upward drag input, thereby increasing the window size of the first capture preview window 211 and decreasing the window size of the second capture preview window 212. In this case, the size of the preview image of user B's companion increases with the window size of the first capture preview window 211, while the size of the preview image of user B decreases with the window size of the second capture preview window 212. Alternatively, if the phone receives a downward drag input on the region dividing line 213, the phone can also adjust the position of the dividing line 213 upward in the capture preview area 21 in response to the downward drag input, thereby increasing the window size of the first capture preview window 211 and decreasing the window size of the second capture preview window 212. The size of the preview image of user B's companion will increase with the window size of the first shooting preview window 211 , and the size of the preview image of user B will decrease with the window size of the second shooting preview window 212 .
[0295] In this way, the electronic device receives window size adjustment input for the first shooting preview window or the second shooting preview window, and updates the window size of the first shooting preview window and the second shooting preview window in response to the window size adjustment input. The window size of the first shooting preview window and the second shooting preview window can be flexibly adjusted, and then when generating a dynamic photo, the size of the image captured by the first camera and the image captured by the second camera in the dynamic photo can be flexibly adjusted according to the window size of the first shooting preview window and the second shooting preview window.
[0296] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a rectangular split-screen mode or a circular split-screen mode, the dynamic photo shooting method provided in the embodiment of the present application may further include the following steps 106a and 106b:
[0297] Step 106a: The electronic device receives an input for adjusting the window position of the second shooting preview window.
[0298] In some embodiments of the present application, the above-mentioned window position adjustment input can be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0299] Step 106a: The electronic device updates the display position of the second shooting preview window in response to the window position adjustment input.
[0300] In some embodiments of the present application, when the above-mentioned shooting preview window displays a preview image captured by the second camera, after the display position of the above-mentioned second shooting preview window is updated, when the electronic device takes a dynamic photo, the display position of the image captured by the second camera can be updated along with the display position of the second shooting preview window.
[0301] Combined with scenario 1, such as Figure 2R As shown, when the mobile phone receives a right-bottom drag input to the non-corner area of the rectangular second shooting preview window 212, it can respond to the right-bottom drag input to the non-border area of the second shooting preview window 212, as shown in FIG. Figure 2S As shown, the position of the second shooting preview window 212 is adjusted from the upper left corner of the shooting preview area 21 to the lower right corner of the shooting preview area 21 .
[0302] Combined with scenario 2, such as Figure 2T As shown, when the mobile phone receives a right-bottom drag input to the non-corner area of the circular second shooting preview window 212, it can respond to the right-bottom drag input to the non-border area of the second shooting preview window 212, as shown in FIG. Figure 2U As shown, the position of the second shooting preview window 212 is adjusted from the upper left corner of the shooting preview area 21 to the lower right corner of the shooting preview area 21 .
[0303] In this way, the electronic device receives the window position adjustment input for the second shooting preview window; in response to the window position adjustment input, the display position of the second shooting preview window is updated, and the display position of the second shooting preview window can be flexibly adjusted, and then when shooting dynamic photos, the display position of the image captured by the second camera in the dynamic photo can be flexibly adjusted.
[0304] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a rectangular split-screen mode or a circular split-screen mode, the dynamic photo shooting method provided in the embodiment of the present application may further include the following steps 107a and 107b:
[0305] Step 107a: The electronic device receives an input for adjusting the size of the second shooting preview window.
[0306] In some embodiments of the present application, the above-mentioned window size adjustment input can be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0307] Step 107b: The electronic device updates the window size of the second shooting preview window in response to the window size adjustment input.
[0308] In some embodiments of the present application, the preview image captured by the second camera may be updated along with the window size of the second shooting preview window.
[0309] In some embodiments of the present application, the size of the image captured by the second camera in the dynamic photo can be updated along with the window size of the second shooting preview window.
[0310] Combined with scenario 1, such as Figure 2V As shown, when the mobile phone receives a right-down drag input to the lower right corner of the frame 2121 of the rectangular second shooting preview window 212, it can respond to the right-down drag input, such as Figure 2W As shown in FIG. 2 , if the window size of the rectangular second shooting preview window 212 is increased, the size of the preview image of user A displayed in the rectangular second shooting preview window 212 will also increase accordingly. Figure 2X As shown, when the mobile phone receives a right-down drag input to the lower right corner of the frame 2121 of the circular second shooting preview window 212, it can respond to the right-down drag input, such as Figure 2Y As shown, by increasing the window size of the circular second shooting preview window 212 , the size of the preview image of user A displayed in the circular second shooting preview window 212 will also increase accordingly.
[0311] Combined with scenario 2, such as Figure 2Z As shown, when the mobile phone receives a right-down drag input to the lower right corner of the frame 2121 of the rectangular second shooting preview window 212, it can respond to the right-down drag input, such as Figure 5A As shown in FIG. 2 , if the window size of the rectangular second shooting preview window 212 is increased, the size of the preview image of user B displayed in the rectangular second shooting preview window 212 will also increase accordingly. Figure 5B As shown, when the mobile phone receives a right-down drag input to the lower right corner of the frame 2121 of the circular second shooting preview window 212, it can respond to the right-down drag input, such as Figure 5C As shown, by increasing the window size of the circular second shooting preview window 212 , the size of the preview image of user B displayed in the circular second shooting preview window 212 will also increase accordingly.
[0312] In some embodiments of the present application, after the above step 103a, the dynamic photo shooting method provided by the embodiment of the present application may further include the following step 108b or step 108b:
[0313] Step 108a: When the electronic device displays the preview image captured by the first camera in the shooting preview area, a focus mark is displayed on the first shooting preview window.
[0314] The focus mark is used to indicate that the main field of view is within the shooting range of the first camera.
[0315] In some embodiments of the present application, when the focus mark is displayed on the first shooting preview window, the focus mark may be a frame of the first shooting preview window displayed with high brightness.
[0316] Combined with scenario 1, such as Figure 2C As shown, when the preview area 21 displays a preview image of a female singer singing on a live concert stage captured by the rear camera, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x, which is the shooting focus range of the rear camera, and is used to adjust the shooting focus of the preview image of the female singer singing on the live concert stage captured by the rear camera. Figure 2C As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 2C The second input of the dual view function opening control 22 on the shooting preview interface 20a in the embodiment can be responded to by the second input, such as Figure 2A As shown, the shooting preview area 21 is updated to a first shooting preview window 211 including a preview image of a female singer singing on a live concert stage captured by the rear camera and a second shooting preview window 212 including a preview image of user A captured by the front camera, and the border 2111 of the first shooting preview window 211 is displayed in high brightness. At this time, the shooting focal length range indicated by the focus adjustment control 26 displayed on the shooting preview interface 20a is still the shooting focal length range of the rear camera.
[0317] Combined with scenario 2, such as Figure 2F As shown, when the preview area 21 displays a preview image of user B's companion captured by the rear camera, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x, which is the shooting focus range of the front camera, for adjusting the shooting focus of the preview image of user B's companion captured by the rear camera. Figure 2F As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 2F The second input of the dual view function opening control 22 on the shooting preview interface 20a in the embodiment can be responded to by the second input, such as Figure 2BAs shown, the shooting preview area 21 is updated to a first shooting preview window 211 including preview images of user B's companions captured by the rear camera and a second shooting preview window 212 including preview images of user B captured by the front camera, and the border 2111 of the first shooting preview window 211 is displayed in high brightness. At this time, the shooting focal length range indicated by the focus adjustment control 26 displayed on the shooting preview interface 20a is still the shooting focal length range of the rear camera.
[0318] Step 108b: When the electronic device displays the preview image captured by the second camera in the shooting preview area, a focus mark is displayed on the second shooting preview window.
[0319] The focus mark is used to indicate that the main field of view is within the shooting range of the second camera.
[0320] In some embodiments of the present application, when the focus mark is displayed on the second shooting preview window, the focus mark may be a frame of the second shooting preview window displayed with high brightness.
[0321] Combined with scenario 1, such as Figure 2D As shown, when the preview area 21 displays the preview image of user A captured by the front camera, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera, and is used to adjust the shooting focus of the preview image of user A captured by the front camera. Figure 2D As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Figure 2D The second input of the dual view function opening control 22 on the shooting preview interface 20a in the embodiment can be responded to by the second input, such as Figure 2E As shown, the shooting preview area 21 is updated to a first shooting preview window 211 including a preview image of user A captured by the front camera and a second shooting preview window 212 including a preview image of a female singer singing on the live stage of a concert captured by the rear camera, and the border of the second shooting preview window 212 is displayed in high brightness. At this time, the shooting focal length range indicated by the focus adjustment control 26 displayed on the shooting preview interface 20a is still the shooting focal length range of the front camera.
[0322] Combined with scenario 2, such as Figure 2GAs shown, when the preview area 21 displays the preview image of user B captured by the front camera, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera, and is used to adjust the shooting focus of the preview image of user B captured by the front camera. Figure 2D As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Figure 2G The second input of the dual view function opening control 22 on the shooting preview interface 20a in the embodiment can be responded to by the second input, such as Figure 2H As shown, the shooting preview area 21 is updated to a first shooting preview window 211 including a preview image of user B's companion captured by the rear camera and a second shooting preview window 212 including a preview image of user B captured by the front camera, and the border of the second shooting preview window 212 is displayed in high brightness. At this time, the shooting focal length range indicated by the focus adjustment control 26 displayed on the shooting preview interface 20a is still the shooting focal length range of the front camera.
[0323] In this way, when the electronic device displays the preview image captured by the first camera in the shooting preview area, the focus mark is displayed on the first shooting preview window, or when the electronic device displays the preview image captured by the second camera in the shooting preview area, the focus mark is displayed on the second shooting preview window, which can prompt the user which main camera is in focus.
[0324] In some embodiments of the present application, the dynamic photo shooting method provided in the embodiments of the present application may further include the following steps 109a and 109b:
[0325] Step 109a: The electronic device receives a fourth input to the focus switch control on the shooting preview interface.
[0326] In some embodiments of the present application, the fourth input may be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0327] In some embodiments of the present application, the shape of the focus switching control can be any possible shape such as a circle, rectangle, triangle, diamond, ring or polygon, which can be determined according to actual usage requirements and is not limited by the embodiments of the present invention.
[0328] Step 109b: In response to the fourth input, the electronic device updates the display content of the first shooting preview window to the preview image captured by the second camera, and updates the display content of the second shooting preview window to the preview image captured by the first camera.
[0329] In some embodiments of the present application, the electronic device updates the display content of the first shooting preview window to the preview image captured by the second camera, and updates the display content of the second shooting preview window to the preview image captured by the first camera. The display content of the two shooting preview windows can be flexibly set, and when taking dynamic photos, the display areas of the image captured by the first camera and the image captured by the second camera in the dynamic photos can be flexibly set.
[0330] In scenario 1, if Figure 5D As shown, when the first preview window 211 and the second preview window 212 are in a split-screen mode, and the focus mark is located in the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5D As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5D When the focus switch control 25 on the shooting preview interface 20a is pressed, the pressing input can be responded to, such as Figure 5E As shown, the first preview window 211 located in the lower half of the shooting preview interface 20a displays a preview image of user A captured by the front camera, and the second preview window 212 located in the upper half of the shooting preview interface 20a displays a preview image of a female singer singing on a live concert stage captured by the rear camera. At this time, the focus adjustment control 26 displayed on the shooting preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5E As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Alternatively, as Figure 5F As shown, when the first preview window 211 and the second preview window 212 are in circular split-screen mode and the focus mark is located in the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5F As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5F When the focus switch control 25 on the shooting preview interface 20a is pressed, the pressing input can be responded to, such as Figure 5GAs shown, the circular second preview window 211 displays a preview image of a female singer singing on a live concert stage captured by the rear camera, and the first preview window 211 displays a preview image of user A captured by the front camera. At this time, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5G As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Alternatively, as Figure 5H As shown, when the first preview window 211 and the second preview window 212 are in a rectangular split-screen mode and the focus mark is located in the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5H As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5H When the focus switch control 25 on the shooting preview interface 20a is pressed, the pressing input can be responded to, such as Figure 5I As shown, the second rectangular preview window 212 displays a preview image of a female singer singing on a live concert stage captured by the rear camera, and the first preview window 211 displays a preview image of user A captured by the front camera. At this time, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5I As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Thereafter, when shooting a dynamic photo, the mobile phone can display a preview image of user A captured by the front camera in the display area corresponding to the first shooting preview window 211 on each frame of the dynamic photo, and display an image of the concert scene captured by the rear camera in the display area corresponding to the second shooting preview window 212 on each frame of the dynamic photo.
[0331] In scenario 2, if Figure 5J As shown, when the first preview window 211 and the second preview window 212 are in a split-screen mode, and the focus mark is located in the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5JAs shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5J When the focus switch control 25 on the shooting preview interface 20a is pressed, the pressing input can be responded to, such as Figure 5K As shown, the first preview window 211 located in the lower half of the shooting preview interface 20a displays the preview image of user B captured by the front camera, and the second preview window 212 located in the lower half of the shooting preview interface 20a displays the preview image of user B's companion captured by the rear camera. At this time, the shooting focal length range indicated by the focus adjustment control 26 displayed on the shooting preview interface 20a is the shooting focal length range of the front camera, 0.8x-2x. For example Figure 5K As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Alternatively, as Figure 5L As shown, when the first preview window 211 and the second preview window 212 are in circular split-screen mode and the focus mark is located in the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5L As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5L When the focus switch control 25 on the shooting preview interface 20a is pressed, the pressing input can be responded to, such as Figure 5M As shown, the circular second preview window 212 displays a preview image of user B's companions captured by the rear camera, and the first preview window 211 displays a preview image of user B captured by the front camera. At this time, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5M As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Alternatively, as Figure 5N As shown, when the first preview window 211 and the second preview window 212 are in a rectangular split-screen mode and the focus mark is located in the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5NAs shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5N When the focus switch control 25 on the shooting preview interface 20a is pressed, the pressing input can be responded to, such as Figure 5O As shown, the second rectangular preview window 212 displays a preview image of user B's companions captured by the rear camera, and the first preview window 211 displays a preview image of user B captured by the front camera. At this time, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5O As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Thereafter, when shooting a dynamic photo, the mobile phone can display a preview image of user B captured by the front camera in the display area corresponding to the first shooting preview window 211 on each frame of the dynamic photo, and display an image of user B's companions captured by the rear camera in the display area corresponding to the second shooting preview window 212 on each frame of the dynamic photo.
[0332] In some embodiments of the present application, the electronic device receives a fourth input to the focus switch control on the shooting preview interface; in response to the fourth input, the display content of the first shooting preview window is updated to the preview image captured by the second camera, and the display content of the second shooting preview window is updated to the preview image captured by the first camera, and the display position of the preview image captured by the first camera and the preview image captured by the first camera are flexibly adjusted. Therefore, when generating a dynamic photo, the display area of the image captured by the first camera and the image captured by the first camera in the dynamic photo can be flexibly adjusted.
[0333] In some embodiments of the present application, the dynamic photo shooting method provided in the embodiments of the present application may further include the following step 110:
[0334] Step 110: When the electronic device displays a focus mark on the first shooting preview window, in response to the fifth input to the second shooting preview window, the electronic device updates the display content of the first shooting preview window to the preview image captured by the second camera, and updates the display content of the second shooting preview window to the preview image captured by the first camera.
[0335] In some embodiments of the present application, after the electronic device updates the display content of the first shooting preview window to the preview image captured by the second camera, and updates the display content of the second shooting preview window to the preview image captured by the first camera, when taking a dynamic photo, the image captured by the second camera can be displayed in the display area corresponding to the first shooting preview window on each frame of the dynamic photo, and the image captured by the first camera can be displayed in the display area corresponding to the second shooting preview window on each frame of the dynamic photo.
[0336] In some embodiments of the present application, the fifth input may be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0337] In scenario 1, if Figure 5D As shown, when the first preview window 211 and the second preview window 212 are in a split-screen mode, and the focus mark is displayed on the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5D As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5D When the second preview window 212 is pressed, the user can respond to the pressing input, such as Figure 5E As shown, the first preview window 211 located in the lower half of the shooting preview interface 20a displays a preview image of user A captured by the front camera, and the second preview window 212 located in the upper half of the shooting preview interface 20a displays a preview image of a female singer singing on a live concert stage captured by the rear camera. At this time, the focus adjustment control 26 displayed on the shooting preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5E As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Alternatively, as Figure 5F As shown, when the first preview window 211 and the second preview window 212 are in a circular split-screen mode and the focus mark is displayed on the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5FAs shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5F When the second preview window 212 is pressed, the user can respond to the pressing input, such as Figure 5G As shown, the circular second preview window 211 displays a preview image of a female singer singing on a live concert stage captured by the rear camera, and the first preview window 211 displays a preview image of user A captured by the front camera. At this time, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5G As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Alternatively, as Figure 5H As shown, when the first preview window 211 and the second preview window 212 are in a rectangular split-screen mode and the focus mark is displayed on the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5H As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5H When the second preview window 212 is pressed, the user can respond to the pressing input, such as Figure 5I As shown, the second rectangular preview window 212 displays a preview image of a female singer singing on a live concert stage captured by the rear camera, and the first preview window 211 displays a preview image of user A captured by the front camera. At this time, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5I As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Thereafter, when shooting a dynamic photo, the mobile phone can display a preview image of user A captured by the front camera in the display area corresponding to the first shooting preview window 211 on each frame of the dynamic photo, and display an image of the concert scene captured by the rear camera in the display area corresponding to the second shooting preview window 212 on each frame of the dynamic photo.
[0338] In scenario 2, if Figure 5JAs shown, when the first preview window 211 and the second preview window 212 are in a split-screen mode, and the focus mark is displayed on the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5J As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5J When the second preview window 212 is pressed, the user can respond to the pressing input, such as Figure 5K As shown, the first preview window 211 located in the lower half of the shooting preview interface 20a displays the preview image of user B captured by the front camera, and the second preview window 212 located in the lower half of the shooting preview interface 20a displays the preview image of user B's companion captured by the rear camera. At this time, the shooting focal length range indicated by the focus adjustment control 26 displayed on the shooting preview interface 20a is the shooting focal length range of the front camera, 0.8x-2x. For example Figure 5K As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Alternatively, as Figure 5L As shown, when the first preview window 211 and the second preview window 212 are in a circular split-screen mode and the focus mark is displayed on the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5L As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5L When the second preview window 212 is pressed, the user can respond to the pressing input, such as Figure 5M As shown, the circular second preview window 212 displays a preview image of user B's companions captured by the rear camera, and the first preview window 211 displays a preview image of user B captured by the front camera. At this time, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5M As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Alternatively, as Figure 5NAs shown, when the first preview window 211 and the second preview window 212 are in a rectangular split-screen mode and the focus mark is displayed on the first preview window 211, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.6x-5x for the rear camera. Figure 5N As shown, the focus adjustment control 26 includes a 0.6x focus mark 261, a 1x focus mark 262, a 2x focus mark 263, and a 5x focus mark 264. Figure 5N When the second preview window 212 is pressed, the user can respond to the pressing input, such as Figure 5O As shown, the second rectangular preview window 212 displays a preview image of user B's companions captured by the rear camera, and the first preview window 211 displays a preview image of user B captured by the front camera. At this time, the focus adjustment control 26 displayed on the preview interface 20a indicates a shooting focus range of 0.8x-2x, which is the shooting focus range of the front camera. For example Figure 5O As shown, the focus adjustment control 26 includes a 0.8x focus mark 261, a 1x focus mark 262, a 1.5x focus mark 267, and a 2x focus mark 263. Thereafter, when shooting a dynamic photo, the mobile phone can display a preview image of user B captured by the front camera in the display area corresponding to the first shooting preview window 211 on each frame of the dynamic photo, and display an image of user B's companions captured by the rear camera in the display area corresponding to the second shooting preview window 212 on each frame of the dynamic photo.
[0339] In this way, when the electronic device displays the focus mark on the first shooting preview window, in response to the fifth input to the second shooting preview window, the display content of the first shooting preview window is updated to the preview image captured by the second camera, and the display content of the second shooting preview window is updated to the preview image captured by the first camera. The display positions of the preview image captured by the first camera and the preview image captured by the first camera can be flexibly adjusted, and then when generating a dynamic photo, the display areas of the image captured by the first camera and the image captured by the first camera in the dynamic photo can be flexibly adjusted.
[0340] In some embodiments of the present application, when a focus mark is displayed on the first shooting preview window and the shooting focal length of the preview image in the first shooting preview window is the first focal length, the dynamic photo shooting method provided by the embodiment of the present application may further include the following steps 111a and 111b:
[0341] Step 111a: The electronic device receives a sixth input to the focus adjustment control on the shooting preview interface.
[0342] In some embodiments of the present application, the sixth input may be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0343] In some embodiments of the present application, when a focus mark is displayed on the above-mentioned first shooting preview window, the above-mentioned focus adjustment control is used to indicate the adjustment of the focus of the camera that captures the preview image displayed on the above-mentioned first shooting preview window, that is, the above-mentioned focus adjustment control is used to indicate the adjustment of the shooting focus of the preview image in the first shooting preview window.
[0344] In some embodiments of the present application, the focus adjustment control may be a strip-shaped focus adjustment control, i.e., a focus adjustment bar, and may also include at least one focus adjustment mark, and one focus adjustment mark indicates a focal length.
[0345] Combined with scenario 1, such as Figure 2A As shown, when the shooting preview window 211 displays a preview image of a female singer singing on a live concert stage, and the shooting preview window 211 displays a focus mark, the focus adjustment control 26 is used to adjust the shooting focal length of the preview image of the female singer singing on a live concert stage.
[0346] Combined with scenario 2, such as Figure 2B As shown, when the shooting preview window 211 displays the preview image of user B's companion and the shooting preview window 211 displays a focus mark, the focus adjustment control 26 is used to adjust the shooting focus of the preview image of user B's companion.
[0347] Step 111b: The electronic device updates the shooting focal length of the preview image in the first shooting preview window to the second focal length in response to the sixth input.
[0348] In some embodiments of the present application, after the electronic device updates the shooting focal length of the preview image in the first shooting preview window to the second focal length, when shooting a dynamic photo, it can update the focal length of the camera that captures the preview image displayed in the first shooting preview window in the dynamic photo to the second focal length.
[0349] Combined with scenario 1, such as Figure 2AAs shown, the mobile phone can display a 0.6x focus adjustment mark 261, a 1x focus adjustment mark 262, a 2x focus adjustment mark 263, and a 5x focus adjustment mark 264 on the first shooting preview window 211. When the mobile phone receives a click input on the 1x focus adjustment mark 262, it can adjust the shooting focus of the preview image of the female singer singing on the live concert stage to 1x shooting focus in response to the click input, and display the preview image of the female singer singing on the live concert stage captured by the rear camera using 1x shooting focus on the first shooting preview window 211. Figure 5P As shown, when the mobile phone receives a click input on the 2x focal length adjustment indicator 262, it can adjust the shooting focal length of the preview image of the female singer singing on the live concert stage to 2x shooting focal length in response to the click input, and display the preview image of the female singer singing on the live concert stage captured by the rear camera using the 2x shooting focal length in the first shooting preview window 211. Subsequently, when shooting dynamic photos, the mobile phone can adjust the focal length of the rear camera to 2x shooting focal length. In this way, the shooting focal length of each frame of the concert scene image captured by the rear camera in the dynamic photos is adjusted to 2x shooting focal length.
[0350] Combined with scenario 1, such as Figure 5Q As shown, the mobile phone can display a preview image of a female singer singing on the live concert stage in the first shooting preview window 211, and when the first shooting preview window 211 displays a focus mark, the mobile phone can display a focus adjustment bar 265 from 0.6 times to 20 times on the first shooting preview window 211, wherein the focus adjustment control bar 265 can instruct the mobile phone to adjust the shooting focus of the preview image of the female singer singing on the live concert stage to a minimum of 0.6 times the shooting focus and a maximum of 20 times the shooting focus. The middle shooting focus is 1.2 times the shooting focus. When the mobile phone receives a call to Figure 5Q When the drag input of the middle focal length 1.2x focal length icon 2651 is performed and the dragging of the 2.2x focal length icon 2652 is stopped, the mobile phone can adjust the shooting focal length of the preview image of the female singer singing on the live concert stage from 1.2x shooting focal length to 2.2x shooting focal length in response to the drag input, and Figure 5R As shown, a preview image of a female singer singing on a live concert stage, captured by the rear camera using a 2.2x shooting focal length, is displayed in the lower half area 211. Subsequently, when shooting dynamic photos, the mobile phone can adjust the shooting focal length of the rear camera from 1.2x shooting focal length to 2.2x shooting focal length. In this way, the shooting focal length of each frame of the concert scene image captured by the rear camera in the dynamic photo is adjusted from 1.2x shooting focal length to 2.2x shooting focal length.
[0351] Combined with scenario 2, such as Figure 2BAs shown, the mobile phone can display a 0.6x focus adjustment mark 261, a 1x focus adjustment mark 262, a 2x focus adjustment mark 263, and a 5x focus adjustment mark 264 on the first shooting preview window 211. When the mobile phone receives a click input on the 1x focus adjustment mark 262, it can adjust the shooting focus of the preview image of user B's companion to 1x shooting focus in response to the click input, and display the preview image of the companion captured by the rear camera using 1x shooting focus on the first shooting preview window 211. Figure 5S As shown, when the mobile phone receives a click input on the 2x focal length adjustment indicator 262, it can adjust the shooting focal length of the preview image of user B's companion to 2x shooting focal length in response to the click input, and display the preview image of user B's companion captured by the rear camera using the 2x shooting focal length in the first shooting preview window 211. Subsequently, when shooting dynamic photos, the mobile phone can adjust the focal length of the rear camera to 2x shooting focal length. In this way, the shooting focal length of each frame of the image of user B's companion captured by the rear camera in the dynamic photos is adjusted to 2x shooting focal length.
[0352] Combined with scenario 2, such as Figure 5T As shown, the mobile phone can display the preview image of user B's companion in the first shooting preview window 211, and when the first shooting preview window 211 displays a focus mark, the mobile phone can display a focus adjustment bar 265 from 0.6 times to 20 times on the first shooting preview window 211, wherein the focus adjustment bar 265 can instruct the mobile phone to adjust the shooting focus of the preview image of user B's companion to a minimum of 0.6 times the shooting focus and a maximum of 20 times the shooting focus. The middle shooting focus is 1.2 times the shooting focus. When the mobile phone receives a call for Figure 5T When the drag input of the middle focal length 1.2x focal length icon 2651 is performed and the dragging of the 2.2x focal length icon 2652 is stopped, the mobile phone can adjust the shooting focal length of the preview image of user B's companion from 1.2x shooting focal length to 2.2x shooting focal length in response to the drag input, and Figure 5U As shown, a preview image of user B's companions captured by the rear camera at 2.2x focal length is displayed in the first shooting preview window 211. Subsequently, when shooting dynamic photos, the mobile phone can adjust the shooting focal length of the rear camera from 1.2x focal length to 2.2x focal length. In this way, the shooting focal length of each frame of the image of user B's companions captured by the rear camera in the dynamic photos is adjusted from 1.2x focal length to 2.2x focal length.
[0353] In this way, the electronic device receives the sixth input of the focus adjustment control on the shooting preview interface through the electronic device; in response to the sixth input, the shooting focal length of the preview image in the first shooting preview window is updated to the second focal length, and the shooting teaching aids of the preview image displayed in the first shooting preview window can be flexibly adjusted. When generating a dynamic photo, the shooting focal length of the camera that captures the preview image displayed in the first shooting preview window in the dynamic photo can be adjusted, thereby adjusting the display effect of the dynamic photo.
[0354] In some embodiments of the present application, when a focus mark is displayed on the first shooting preview window, the dynamic photo shooting method provided by the embodiment of the present application may further include the following steps 112a and 112d:
[0355] Step 112a: The electronic device receives a seventh input to the special effect setting control on the shooting preview interface.
[0356] In some embodiments of the present application, the seventh input may be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0357] In some embodiments of the present application, the shape of the special effect setting control can be any possible shape such as a circle, rectangle, triangle, diamond, ring or polygon, which can be determined according to actual usage requirements and is not limited by the embodiments of the present invention.
[0358] Step 112b: The electronic device displays at least one filter identifier in response to the seventh input.
[0359] In some embodiments of the present application, one of the filter identifiers above indicates a filter.
[0360] Step 112c: The electronic device receives a selection input of one of the at least one filter identifier.
[0361] In some embodiments of the present application, the above-mentioned selection input can be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0362] Step 112d: In response to the selection input, the electronic device adds the filter indicated by the filter identifier selected by the selection input to the preview image displayed in the first shooting preview window.
[0363] In some embodiments of the present application, after the electronic device adds the filter indicated by the filter identifier selected by the selection input on the preview image displayed in the above-mentioned first shooting preview window, when generating a dynamic photo, it can add the filter indicated by the filter identifier selected by the selection input on the image captured by the camera that captures the preview image displayed in the first shooting preview window in the dynamic photo.
[0364] Combined with scenario 1, such as Figure 5V As shown, in the case where the first shooting preview window 211 displays a preview image of a female singer singing on the concert stage, when the mobile phone receives the Figure 5V When the special effect setting control 27 in the example is clicked, the user can respond to the click input, such as Figure 5W As shown, the mobile phone displays a Fuji CC filter logo 271, a Fuji NC filter logo 272, a Hideaki Hamada filter logo 273, and a DV1 filter logo 274. When the mobile phone receives a click input on the Fuji CC filter logo 271, the mobile phone can, in response to the click input, add the Fuji CC filter to the preview image of the female singer singing on the live concert stage. After adding the Fuji CC filter to the preview image of the female singer singing on the live concert stage, when the mobile phone generates a dynamic photo, it can add the Fuji CC filter to each frame of the concert scene image captured by the rear camera.
[0365] Combined with scenario 2, such as Figure 5X As shown, in the case where the first shooting preview window 211 displays a preview image of the companion of user B, when the mobile phone receives the Figure 5X When the special effect setting control 27 in the example is clicked, the user can respond to the click input, such as Figure 5Y As shown, a Fuji CC filter logo 271, a Fuji NC filter logo 272, a Hamada Hideaki filter logo 273, and a DV1 filter logo 274 are displayed. When the mobile phone receives a click input on Fuji NC filter logo 272, the mobile phone can, in response to the click input, add the Fuji CC filter to the preview image of user B's companion. After adding the Fuji CC filter to the preview image of user B's companion, when the mobile phone generates a dynamic photo, it can add the Fuji CC filter to each frame of the image of user B's companion captured by the rear camera.
[0366] In this manner, the electronic device receives a seventh input to the special effects setting control on the shooting preview interface; displays at least one filter identifier in response to the seventh input; receives a selection input for one of the at least one filter identifier; and, in response to the selection input, adds the filter indicated by the filter identifier selected by the selection input to the preview image displayed in the first shooting preview window. This allows for flexible addition of filters to the preview image displayed in the first shooting preview window. When generating a dynamic photo, the filter can be added to each frame captured by the camera that captures the preview image displayed in the first shooting preview window, thereby enhancing the display quality of the dynamic photo.
[0367] In some embodiments of the present application, when a focus mark is displayed on the first shooting preview window, the dynamic photo shooting method provided by the embodiment of the present application may further include the following steps 113a and 113d:
[0368] Step 113a, the electronic device receives the eighth input of the special effects setting control on the shooting preview interface.
[0369] In some embodiments of the present application, the eighth input may be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0370] Step 113b: The electronic device displays at least one motion effect identifier in response to the eighth input.
[0371] In some embodiments of the present application, one of the above-mentioned motion effect identifiers may indicate one motion effect.
[0372] Step 113c: The electronic device receives a selection input of one of the at least one motion effect identifier;
[0373] Step 113d: In response to the selection input, the electronic device adds the motion effect indicated by the motion effect identifier selected by the selection input to the preview image displayed in the first shooting preview window.
[0374] In some embodiments of the present application, after the electronic device adds the motion effect indicated by the motion effect identifier selected by selection input on the preview image displayed in the above-mentioned first shooting preview window, when generating a dynamic photo, it can add the motion effect indicated by the motion effect identifier selected by selection input on the image captured by the camera that captures the preview image displayed in the first shooting preview window in the dynamic photo.
[0375] Combined with scenario 1, such as Figure 5V As shown, in the case where the first shooting preview window 211 displays a preview image of a female singer singing on the concert stage, when the mobile phone receives the Figure 5VWhen the special effect setting control 27 in the example is clicked, the user can respond to the click input, such as Figure 5Z As shown, a soft light effect animation icon 275 and a light leak effect animation icon 276 are displayed. When the mobile phone receives a click input on the light leak effect animation icon 276, the light leak effect animation can be added to the preview image of the female singer singing on the live concert stage in response to the click input. After the light leak effect animation is added to the preview image of the female singer singing on the live concert stage, when the mobile phone generates a dynamic photo, the light leak effect animation can be added to each frame of the concert scene image captured by the rear camera.
[0376] Combined with scenario 2, such as Figure 5X As shown, in the case where the first shooting preview window 211 displays a preview image of the companion of user B, when the mobile phone receives the Figure 5X When the special effect setting control 27 in the example is clicked, the user can respond to the click input, such as Figure 6A As shown, a soft light effect animation icon 275 and a light leak effect animation icon 276 are displayed. When the mobile phone receives a click input on the soft light effect animation icon 275, the soft light effect animation can be added to the preview image of user B's companion in response to the click input. After the soft light effect animation is added to the preview image of user B's companion, when the mobile phone generates a dynamic photo, the soft light effect animation can be added to each frame of the image of user B's companion captured by the rear camera.
[0377] In this manner, the electronic device receives an eighth input to the special effect setting control on the shooting preview interface; displays at least one motion effect identifier in response to the eighth input; receives a selection input for one of the at least one motion effect identifier; and in response to the selection input, adds the motion effect indicated by the selected motion effect identifier to the preview image displayed in the first shooting preview window. This allows for flexible addition of motion effects to the preview image displayed in the first shooting preview window, and when generating a dynamic photo, the motion effect can be added to each frame of the dynamic photo captured by the camera that captures the preview image displayed in the first shooting preview window, thereby enhancing the display quality of the dynamic photo.
[0378] In some embodiments of the present application, before step 101, the dynamic photo shooting method provided by the embodiment of the present application may further include the following steps 114a and 114b:
[0379] Step 114a: The electronic device displays at least one shooting duration option.
[0380] In some embodiments of the present application, when the electronic device receives the ninth input to the shooting duration selection control, it may display the at least one shooting duration option.
[0381] In some embodiments of the present application, the shape of the above-mentioned shooting time selection control can be any possible shape such as a circle, rectangle, triangle, diamond, ring or polygon, which can be determined according to actual usage requirements and is not limited by the embodiments of the present invention.
[0382] In some embodiments of the present application, the ninth input may be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0383] Step 114b: The electronic device determines a shooting duration for the dynamic photo in response to a selection input of one of the at least one shooting duration options.
[0384] In some embodiments of the present application, the shooting duration is the duration indicated by the shooting duration option selected by the selection input.
[0385] In some embodiments of the present application, the above-mentioned selection input can be a user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0386] In some embodiments of the present application, after the electronic device determines the shooting duration of the dynamic photo, upon receiving the above-mentioned first input, it can respond to the above-mentioned first input and generate a dynamic photo of the duration indicated by the shooting duration option selected by the above-mentioned selection input based on the video images shot by the above-mentioned first camera and the above-mentioned second camera within the first duration before receiving the above-mentioned first input, the video images shot by the above-mentioned first camera and the above-mentioned second camera within the second duration after receiving the above-mentioned first input, and the images shot by the above-mentioned first camera and the above-mentioned second camera at the moment of receiving the second input, wherein the sum of the above-mentioned first duration and the above-mentioned second duration is the duration indicated by the shooting duration option selected by the above-mentioned selection input.
[0387] Combined with scenario 1, for example Figure 6B As shown, if the mobile phone receives a click input of the shooting time control 28, it can respond to the click input, such as Figure 6CAs shown, a self-selected duration control 281, a 3s shooting duration 282, and a 5s shooting duration 283 are displayed. After the mobile phone receives the 5s shooting duration 283, if a click input of the shooting control 23 is received, the mobile phone can, in response to the click input, stitch together each frame of the video image of user A shot by the front camera within 3.5 seconds before receiving the click input and the video image of the female singer singing on the live concert stage shot by the rear camera within 3.5 seconds before receiving the click input, stitch together each frame of the video image of user A shot by the front camera within 1.5 seconds after receiving the click input and the video image of the female singer singing on the live concert stage shot by the rear camera within 1.5 seconds before receiving the click input, and stitch together the image of user A shot by the front camera when the click input is received and the image of the female singer singing on the live concert stage shot by the rear camera when the click input is received. Then, the 3.5-second video stitching before the click input, the 1.5-second video stitching after the click input, and the stitched image are packaged to generate a 5-second dynamic photo. In this way, the dynamic photo can simultaneously record the scene of the female singer singing on the stage of the concert while user A is watching the concert, as well as the movements and expressions of user B at the moment of capture.
[0388] Combined with scenario 2, for example Figure 6D As shown, if the mobile phone receives a click input of the shooting time control 28, it can respond to the click input, such as Figure 6E As shown, a self-selected duration control 281, a 3s shooting duration 282, and a 5s shooting duration 283 are displayed. When the mobile phone receives the 3s shooting duration 282, if it receives a click input from the shooting control 23, it can respond to the click input by stitching together each frame of the video image of user B captured by the front camera within 1.5 seconds before receiving the click input and the video image of user B's companion captured by the rear camera within 1.5 seconds before receiving the click input. It can also stitch together each frame of the video image of user B captured by the front camera within 1.5 seconds after receiving the click input and the video image of user B's companion captured by the rear camera within 1.5 seconds before receiving the click input. It can also stitch together the image of user B captured by the front camera at the time of receiving the click input and the image of user B's companion captured by the rear camera at the time of receiving the click input. Then, the stitched video corresponding to the 1.5 seconds before receiving the click input, the stitched video corresponding to the 1.5 seconds after receiving the click input, and the stitched image are packaged to generate a 3s dynamic photo. In this way, the dynamic photos taken can simultaneously record the interaction between user B and his companions, the pictures of user B's companions at the moment of shooting, and the actions and expressions of user B.
[0389] In this way, the electronic device determines the shooting duration of the dynamic photo by displaying at least one shooting duration option and responding to the selection input of one of the at least one shooting duration option, and can flexibly select the shooting duration of the dynamic photo from the at least one shooting duration.
[0390] In some embodiments of the present application, before receiving the second input to the dual-view function activation control in the shooting preview interface, the display mode of the dual-view function activation control is the first display mode; after the above step 103a, the dynamic photo shooting method provided in the embodiment of the present application may further include the following step 115:
[0391] Step 115: The electronic device updates the display mode of the dual-view function activation control to the second display mode;
[0392] The second display mode is different from the first display mode.
[0393] In some embodiments of the present application, the first display mode may include any of the following:
[0394] First brightness, first color.
[0395] In some embodiments of the present application, the second display mode may include any one of the following:
[0396] A second brightness and a second color, wherein the second brightness is greater than the first brightness.
[0397] like Figure 2C As shown, before receiving the click input of the dual view function opening control 22 in the shooting preview interface, the mobile phone can display the dual view function opening control 22 in a low brightness mode. Figure 2C After the dual view function opening control 22 is clicked and inputted on the shooting preview interface 20a, the user can respond to the click input, such as Figure 2A As shown, the dual-view function activation control 22 is displayed in a high-brightness manner. In this way, the user can be prompted to activate the dual-view function.
[0398] In this way, the electronic device can promptly remind the user to turn on the dual view function by displaying the dual view function turn-on control in different ways before and after receiving the second input to the dual view function turn-on control in the shooting preview interface.
[0399] Below, taking a mobile phone as an example, the dynamic photo shooting method provided in the embodiment of the present application is described. Figure 7 FIG. 1 is a flow chart of a method for taking dynamic photos provided in an embodiment of the present application. Figure 7 As shown, the method may include the following steps 701 to 705:
[0400] Step 701: The mobile phone performs a live photo dual-view switch entry.
[0401] For example, Figure 2C As shown, open the camera and enter the live mode. The [Dynamic Photo] function is enabled by default and can be disabled manually by the user. The [Dual View] function is disabled by default. Click the dual view function enable control 22 to turn on the dual view switch. Figure 2A As shown, preview images captured by the front and rear cameras are displayed simultaneously. The default split screen mode is "upper and lower." The preview interface allows you to manually drag the centerline of the split screen to achieve different ratios of the dual field of view. You can click the button to switch to "rectangular" or "circular" split screen mode, and the small frame can be dragged and resized.
[0402] For example, in live mode, click to open the dual-view function, which is a secondary sub-function of dynamic photos. This function opens the front and rear cameras at the same time, requiring hardware circuit design to support the front camera and any rear camera to be opened at the same time.
[0403] It should be noted that the live mode is a dynamic photo shooting mode, and the dual field of view function is a dynamic photo dual field of view shooting mode.
[0404] For example, Figure 8 As shown, the mobile phone can process the images captured by the front camera and the rear camera through the image signal processing (ISP) pipeline raw (RAW) pre-processing to obtain the preview data stream and photo data stream of the front camera and the preview data stream and photo data stream of the rear camera respectively.
[0405] Exemplarily, the mobile phone can perform electronic image stabilization (EIS) on the preview data stream of the rear camera, and then perform red, green, blue (RGB) and YUV domain processing. Among them, Y is called the grayscale component, UV is the chroma component, U represents the blue component, and V represents the red component. Furthermore, filters and special effects are added to the image stream after RGB and YUV domain processing, and then YUV processing is performed. Furthermore, the preview data stream of the front camera is subjected to electronic image stabilization (EIS), and then red, green, blue (RGB) and YUV domain processing. Among them, Y is called the grayscale component, UV is the chroma component, U represents the blue component, and V represents the red component. Further, filters and special effects are added to the preview data stream after RGB and YUV domain processing, and then YUV processing is performed.
[0406] For example, the mobile phone can process the preview data stream of the front camera in RGB and YUV domains, and then add filters and special effects to the preview data stream after RGB and YUV domain processing, and then perform YUV processing.
[0407] For example, the mobile phone can merge the preview data stream processed by the front camera YUV and the preview data stream processed by the rear camera YUV, and then generate a video in MP4 format.
[0408] For example, the phone can process the front camera's photo data stream and the rear camera's photo data stream in sequence, performing RAW pre-processing, photo algorithm post-processing, adding special effects and filters, and YUV processing. The YUV-processed front camera and rear camera photo data streams are then merged to generate an image in JPEG format, using the image compression technology standard developed by the Joint Photographic Experts Group (JPEG). Finally, the phone packages the JPEG image and MP4 video to generate a dynamic photo.
[0409] For example, after clicking the dual-view function activation control 22 , the low brightness will be updated to a high brightness display color for differentiation. Figure 2C and Figure 2D These are the images of the rear camera and the front camera before entering the live mode and turning on the dual-view function.
[0410] Step 702: The mobile phone implements dual-field focal length control.
[0411] For example, Figure 2A As shown, after the dual view function is turned on, a split screen control 24 appears in the lower right corner of the dynamic photo shooting interface 20a. When the mobile phone receives a press input on the split screen control 24 on the shooting preview interface 20a, it can respond to the press input and combine Figure 2A ,like Figure 2I As shown, the top-bottom split screen mode logo 241, the rectangular split screen mode logo 242 and the circular split screen mode logo 243 are displayed. The top-bottom split screen mode is entered by default for the first time.
[0412] For example, if entering from the rear camera, Figure 2A As shown, the upper field of view is the front camera image, the lower field of view is the rear camera image, and the focus stays on the lower part, which is displayed with a highlighted border;
[0413] For example, if entering from the front camera, Figure 5E As shown, the upper field of view is the rear camera screen, the lower field of view is the front camera screen, and the focus stays on the bottom, which is displayed with a highlighted border.
[0414] Exemplarily, the effects of the focus include at least one of the following:
[0415] Indicates whether the main field of view of the current image is the rear camera or the front camera;
[0416] The linked zoom bar and photo duration setting controls are switched to an interface that matches the corresponding camera. The zoom bar only takes effect on the field of view where the focus is.
[0417] Exemplarily, the focus follows the field of view before switching.
[0418] Specifically, if the front interface is the rear camera when switching to the dual-view mode, the focus is on the rear camera after switching;
[0419] Specifically, if the front interface is the front camera when switching to the dual-view mode, the focus is on the front camera after switching.
[0420] For example, Figure 2C As shown, when the current image is in the rear camera, click the dual view function to open the control 22 to switch to the dual view mode. Figure 2A As shown, the focus is on the rear camera.
[0421] For example, in dual field of view mode, the mobile phone can perform focal length switching operations and focus adjustment operations.
[0422] For example, the mobile phone can switch the focal length of the preview image at the focus in response to the pressing operation of clicking any point button in the zoom bar. Figure 5PAs shown in the figure, click the 2x point button in the zoom bar to switch the focal length from 1x to 2x.
[0423] For example, the mobile phone can focus the preview image at the focus point in response to the pressing and dragging operation of the point button in the zoom bar. Figure 5Q and Figure 5R As shown, press and hold the button at the center of the zoom bar and drag to adjust the focus from 1.2x to 2.2x.
[0424] Step 703: dual-view split-screen control of the mobile phone.
[0425] For example, Figure 2A As shown, the default mode for the first entry is top-bottom split screen mode. Before clicking to shoot, Figure 2P As shown, the position of the split screen centerline can be manually adjusted to achieve dual fields of view with different proportions.
[0426] For example, in combination Figure 2A ,like Figure 2I As shown, after clicking the split-screen control 24 in the lower right corner of the shooting preview interface 20a to display the upper and lower split-screen mode indicators 241, the rectangular split-screen mode indicator 242, and the circular split-screen mode indicator 243, the mobile phone can choose to switch to the rectangular split-screen mode or the circular split-screen mode in response to the operation of the rectangular split-screen mode indicator 242 or the circular split-screen mode indicator 243. When the rectangular split-screen mode or the circular split-screen mode is selected, the small rectangular or circular shooting preview window displays the preview image captured by the front camera by default, and the large shooting preview window displays the preview image captured by the rear camera.
[0427] For example, in rectangular split-screen mode or circular split-screen mode, when you drag the non-corner area of the small shooting preview window, you can perform the operation of moving the small shooting preview window position. The small shooting preview window can be moved within the range of the large shooting preview window. When it overlaps with the icon, the small shooting preview window is displayed at the bottom of the icon. Figure 2S As shown, the small box can be dragged within the large box and covered by other icons.
[0428] For example, in rectangular split-screen mode or circular split-screen mode, you can drag the lower right corner of the small frame to adjust the size of the small frame, such as Figure 2W and Figure 2Y shown.
[0429] For example, in the three split-screen modes of top-bottom split-screen mode, rectangular split-screen mode, and circular split-screen mode, any of the following methods of switching focus is supported:
[0430] Double-click the screen to switch the field of view focus;
[0431] Click the switch button in the lower right corner to switch the field of view focus.
[0432] For example, you can double-click the shooting preview window that does not display the focus in the screen to switch the field of view focus.
[0433] For example, before and after switching the field of view focus, the field of view focal length remains unchanged. Figure 5E ,like Figure 5G as well as Figure 5I shown.
[0434] Step 704: The mobile phone adds a dual-view overlay filter and dynamic special effects.
[0435] For example, Figure 5V As shown, in dual field of view mode, filters and dynamic special effects can be superimposed to meet the user's personalized creative needs. Click the special effect setting control 27 in the lower right corner of the screen to enter the filter and dynamic effect selection. In dual field of view state, the style and special effect functions are effective for the entire picture (front and rear fields of view), maintaining the overall style unity, such as Figure 5W and Figure 5Z shown.
[0436] Step 705: The mobile phone enables users to select the length of the LivePhoto video.
[0437] For example, Figure 6C As shown, in dual field of view mode, different livephoto video lengths can be selected to meet the user's personalized creative needs. 3s and 5s options are supported, recording 1.5s before and 1.5s after taking a photo, and 1.5s before and 3.5s after taking a photo. Figure 6B As shown, different livephoto video durations can be selected through the shooting operation duration control 291.
[0438] The dynamic photo shooting method provided in the embodiments of this application implements the dual-field function of LivePhoto, while providing flexible split-screen modes for users to choose from, as well as overlaying multiple filters and dynamic special effects, giving users greater creative space. This allows users to record their own reaction moments in scenes such as stages, concerts, and competitions, and to record interactive moments between parents and children, couples, and friends in everyday scenes, adding more fun.
[0439] Specific scenario examples:
[0440] In a concert scenario, by using the dynamic photo shooting method provided in the embodiment of the present application, the mobile phone can capture the image of the idol on the stage captured by the rear camera and the user's own image captured by the front camera to generate dynamic photos. The generated dynamic photos can record the moments when the user and the idol are on the same screen, as well as the user's own reactions at the highlight moments, and record the user's true feelings.
[0441] In a game scenario, by using the dynamic photo shooting method provided in the embodiment of the present application, the mobile phone can capture images of the game scene captured by the rear camera and images of the user himself captured by the front camera to generate dynamic photos. The generated dynamic photos can record the highlights of the game and the user's own reactions, and the emotions captured on the same screen are more accurate and more contagious.
[0442] In a parent-child interaction scenario, by using the dynamic photo shooting method provided in the embodiment of the present application, the mobile phone can capture images of children playing captured by the rear camera and images of the user himself captured by the front camera to generate dynamic photos. The generated dynamic photos can record the children playing and the user's own reactions, express the natural expression of family affection, and preserve beautiful memories.
[0443] In the interactive scenario of couples or friends, by using the dynamic photo shooting method provided in the embodiment of the present application, the mobile phone can capture the image of the other party captured by the rear camera and the image of the user himself captured by the front camera to generate dynamic photos. The generated dynamic photos can record the happy moments of being with the other party and preserve vivid memories.
[0444] It should be noted that the specific implementation process of the dynamic photo shooting method in the above steps can be found in the relevant description of the above embodiment. To avoid repetition, this embodiment will not be repeated here.
[0445] It should be noted that the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more can be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of this application do not limit this.
[0446] The dynamic photo shooting method provided in the embodiment of the present application can be executed by a dynamic photo shooting device. In the embodiment of the present application, the dynamic photo shooting device performing the dynamic photo shooting method is taken as an example to illustrate the dynamic photo shooting device provided in the embodiment of the present application.
[0447] Figure 9 is a structural diagram of a dynamic photo shooting device 900 provided in an embodiment of the present application. The dynamic photo shooting device 900 includes: a receiving module 901 and a processing module 902.
[0448] The receiving module 901 is configured to receive a first input to a shooting preview interface; the shooting preview interface includes a first shooting preview window and a second shooting preview window, the first shooting preview window includes a preview image captured by the first camera; the second shooting preview window includes a preview image captured by the second camera; the first camera and the second camera have different shooting fields of view;
[0449] The processing module 902 is configured to generate a dynamic photo based on images captured by the first camera and the second camera in response to the first input received by the receiving module 901 .
[0450] In some embodiments of the present application, the first camera and the second camera are respectively one of a front camera and a rear camera.
[0451] In some embodiments of the present application, the receiving module 901 is further configured to:
[0452] Before receiving the first input to the shooting preview interface, receiving a second input to a dual-view function activation control in the shooting preview interface; the shooting preview interface includes a shooting preview area, the shooting preview area includes a preview image captured by the first camera or a preview image captured by the second camera; the dual-view function activation control is used to activate the dual-view dynamic photo shooting function;
[0453] The processing module 902 is configured to enable a dual-view dynamic photo shooting function in response to the second input received by the receiving module 901 , and update the shooting preview area to the first shooting preview window and the second shooting preview window.
[0454] In some embodiments of the present application, the split-screen mode of the first shooting preview window and the second shooting preview window is a first split-screen mode;
[0455] The receiving module is further configured to receive a third input to the split-screen control on the shooting preview interface;
[0456] Combine Figure 9 ,like Figure 10 As shown, the apparatus 900 further includes:
[0457] a display module 903 configured to display, in response to the third input received by the receiving module 901, at least two split-screen mode identifiers, the split-screen mode identifiers being used to indicate split-screen modes of the first shooting preview window and the second shooting preview window; the at least two split-screen mode identifiers including a first split-screen mode identifier and a second split-screen mode identifier; the first split-screen mode identifier indicating the first split-screen mode, and the second split-screen mode identifier indicating the second split-screen mode;
[0458] The receiving module 901 is further configured to receive a fourth input of the second split-screen mode identifier in the at least one split-screen mode identifier;
[0459] The display module 903 is further configured to update the split screen mode of the first shooting preview window and the second shooting preview window to the second split screen mode in response to the fourth input of the receiving module 901 .
[0460] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a top-bottom split-screen mode, the receiving module 901 is further configured to:
[0461] receiving a window size adjustment input for the first shooting preview window or the second shooting preview window;
[0462] The processing module 902 is further configured to update the window sizes of the first shooting preview window and the second shooting preview window in response to the window size adjustment input.
[0463] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a rectangular split-screen mode, the second shooting preview window is a rectangular window, and the second shooting preview window is displayed floating on the first shooting preview window;
[0464] When the split screen mode of the first shooting preview window and the second shooting preview window is a circular split screen mode, the second shooting preview window is a circular window, and the second shooting preview window is displayed floating on the first shooting preview window.
[0465] In some embodiments of the present application, the receiving module 901 is further configured to:
[0466] receiving a window position adjustment input for the second shooting preview window;
[0467] The processing module 902 is further configured to update the display position of the second shooting preview window in response to the window position adjustment input received by the receiving module 901 .
[0468] In some embodiments of the present application, the receiving module 901 is further configured to:
[0469] receiving a window size adjustment input for the second shooting preview window;
[0470] The processing module 902 is further configured to update the window size of the second shooting preview window in response to the window size adjustment input received by the receiving module 901 .
[0471] In some embodiments of the present application, the apparatus 900 further includes:
[0472] Display module 903 is configured to, after receiving a second input to a control for enabling the dual-view function in the shooting preview interface, display a focus mark on the first shooting preview window when the shooting preview area displays a preview image captured by the first camera; wherein the focus mark is used to indicate that the primary view is within the shooting range of the first camera;
[0473] When the shooting preview area displays a preview image captured by the second camera, a focus mark is displayed on the second shooting preview window; wherein the focus mark is used to indicate that the main field of view is within the shooting range of the second camera.
[0474] In some embodiments of the present application, the receiving module 901 is further configured to:
[0475] receiving a fourth input to a focus switching control on the shooting preview interface;
[0476] The display module 903 is also used to update the display content of the first shooting preview window to the preview image captured by the second camera in response to the fourth input received by the receiving module 901, and update the display content of the second shooting preview window to the preview image captured by the first camera.
[0477] In some embodiments of the present application, the display module 903 is further configured to:
[0478] When the focus mark is displayed on the first shooting preview window, in response to the fifth input to the second shooting preview window, the display content of the first shooting preview window is updated to the preview image captured by the second camera, and the display content of the second shooting preview window is updated to the preview image captured by the first camera.
[0479] In some embodiments of the present application, the receiving module 901 is further configured to:
[0480] receiving a sixth input to a focus adjustment control on the shooting preview interface when a focus mark is displayed on the first shooting preview window and a shooting focus length of the preview image in the first shooting preview window is a first focus length;
[0481] The display module 903 is further configured to update the shooting focal length of the preview image in the first shooting preview window to a second focal length in response to the sixth input received by the receiving module 901 .
[0482] In some embodiments of the present application, the receiving module 901 is further configured to:
[0483] In a case where a focus mark is displayed on the first shooting preview window, receiving a seventh input to a special effect setting control on the shooting preview interface;
[0484] The display module 903 is further configured to display at least one filter identifier in response to the seventh input received by the receiving module 901; the filter identifier indicates a filter;
[0485] The receiving module 901 is further configured to receive a selection input of one of the at least one filter identifier;
[0486] The display module 903 is further configured to, in response to the selection input received by the receiving module 901 , add the filter indicated by the filter identifier selected by the selection input to the preview image displayed in the first shooting preview window.
[0487] In some embodiments of the present application, the receiving module 901 is further configured to:
[0488] In a case where a focus mark is displayed on the first shooting preview window, receiving an eighth input to a special effect setting control on the shooting preview interface;
[0489] The display module 903 is further configured to display at least one motion effect identifier in response to the eighth input received by the receiving module;
[0490] The receiving module 901 is further configured to receive a selection input of one of the at least one motion effect identifier;
[0491] The display module 903 is further configured to, in response to the selection input received by the receiving module, add the motion effect indicated by the motion effect identifier selected by the selection input to the preview image displayed in the first shooting preview window.
[0492] In some embodiments of the present application, the processing module 902 is specifically configured to:
[0493] Performing video encoding on a first preview data stream captured by the first camera to generate a first video, and performing video encoding on a second preview data stream captured by the second camera to generate a second video;
[0494] Performing image encoding on a first photographic data stream collected by the first camera to generate a first image, and performing image encoding on a second photographic data stream collected by the second camera to generate a second image;
[0495] splicing the first image and the second image according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface to obtain a cover image;
[0496] splicing each frame of the first video with each frame of the second video according to the display positions of the first and second shooting preview windows in the shooting preview interface, and encoding all the spliced images to generate a third video;
[0497] The cover image and the third video are packaged to generate a dynamic photo.
[0498] In some embodiments of the present application, the apparatus 900 further includes:
[0499] Display module 903, configured to display at least one shooting duration option before receiving a first input to the shooting preview interface;
[0500] The processing module 902 is further configured to determine a shooting duration for a dynamic photo in response to a selection input of one of the at least one shooting duration options, wherein the shooting duration is the duration indicated by the shooting duration option selected by the selection input.
[0501] In some embodiments of the present application, before receiving the second input to the dual-view function activation control in the shooting preview interface, the display mode of the dual-view function activation control is the first display mode;
[0502] The apparatus 900 further includes:
[0503] The display module 903 is configured to update the display mode of the dual-view function activation control in the shooting preview interface to a second display mode after receiving a second input to the dual-view function activation control in the shooting preview interface;
[0504] The second display mode is different from the first display mode.
[0505] In the dynamic photo shooting device provided in an embodiment of the present application, the dynamic photo shooting device receives a first input to a shooting preview interface; the shooting preview interface includes a first shooting preview window and a second shooting preview window, the first shooting preview window includes a preview image captured by the first camera; the second shooting preview window includes a preview image captured by the second camera; the shooting fields of the first camera and the second camera are different; in response to the first input, a dynamic photo is generated based on the images captured by the first camera and the second camera. In this way, the electronic device uses two cameras with different fields of view to respectively capture images of the user's environment and the photographer's image, and generates a dynamic photo based on the images of the user's environment and the photographer's image with different shooting fields of view, thereby being able to simultaneously record the scene of the shooting scene and the photographer's movements and expressions at the moment of shooting through the dynamic photo.
[0506] The dynamic photo shooting device in the embodiments of the present application can be an electronic device or a component of an electronic device, such as an integrated circuit or chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device, an augmented reality / virtual reality device, a robot, a wearable device, an ultra-mobile personal computer, a netbook or a personal digital assistant, etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.
[0507] The dynamic photo shooting device in the embodiment of the present application is a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0508] The dynamic photo shooting device provided in the embodiment of the present application can implement each process implemented by each embodiment of the above-mentioned dynamic photo shooting method. To avoid repetition, it will not be repeated here.
[0509] Alternatively, as Figure 11 As shown, an embodiment of the present application also provides an electronic device 1100, including a processor 1101 and a memory 1102, wherein the memory 1102 stores a program or instruction that can be run on the processor 1101, and when the program or instruction is executed by the processor 1101, the various steps of the above-mentioned dynamic photo shooting method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0510] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0511] Figure 12 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0512] The electronic device 1200 includes but is not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210.
[0513] Those skilled in the art will understand that the electronic device 1200 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1210 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 11 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0514] The user input unit 1207 is configured to receive a first input to a shooting preview interface; the shooting preview interface includes a first shooting preview window and a second shooting preview window, wherein the first shooting preview window includes a preview image captured by the first camera; the second shooting preview window includes a preview image captured by the second camera; and the first camera and the second camera have different shooting fields of view.
[0515] The processor 1210 is configured to generate a dynamic photo based on images captured by the first camera and the second camera in response to the first input.
[0516] In some embodiments of the present application, the first camera and the second camera are respectively one of a front camera and a rear camera.
[0517] In some embodiments of the present application, the user input unit 1207 is further used to:
[0518] Before receiving the first input to the shooting preview interface, receiving a second input to a dual-view function activation control in the shooting preview interface; the shooting preview interface includes a shooting preview area, the shooting preview area includes a preview image captured by the first camera or a preview image captured by the second camera; the dual-view function activation control is used to activate the dual-view dynamic photo shooting function;
[0519] The processor 1210 is configured to enable a dual-view dynamic photo shooting function in response to the second input, and update the shooting preview area to the first shooting preview window and the second shooting preview window.
[0520] In some embodiments of the present application, the split-screen mode of the first shooting preview window and the second shooting preview window is a first split-screen mode;
[0521] The user input unit 1207 is further configured to receive a third input to the split-screen control on the shooting preview interface;
[0522] Display unit 1206 is configured to display at least two split-screen mode identifiers in response to receiving the third input, the split-screen mode identifiers being used to indicate split-screen modes of the first shooting preview window and the second shooting preview window; the at least two split-screen mode identifiers including a first split-screen mode identifier and a second split-screen mode identifier; the first split-screen mode identifier indicating the first split-screen mode, and the second split-screen mode identifier indicating the second split-screen mode;
[0523] The user input unit 1207 is further configured to receive a fourth input of the second split-screen mode identifier in the at least one split-screen mode identifier;
[0524] The display unit 1206 is further configured to update the split screen mode of the first shooting preview window and the second shooting preview window to the second split screen mode in response to the fourth input.
[0525] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a top-bottom split-screen mode, the user input unit 1207 is further configured to:
[0526] receiving a window size adjustment input for the first shooting preview window or the second shooting preview window;
[0527] The processor 1210 is further configured to update the window sizes of the first shooting preview window and the second shooting preview window in response to the window size adjustment input.
[0528] In some embodiments of the present application, when the split-screen mode of the first shooting preview window and the second shooting preview window is a rectangular split-screen mode, the second shooting preview window is a rectangular window, and the second shooting preview window is displayed floating on the first shooting preview window;
[0529] When the split screen mode of the first shooting preview window and the second shooting preview window is a circular split screen mode, the second shooting preview window is a circular window, and the second shooting preview window is displayed floating on the first shooting preview window.
[0530] In some embodiments of the present application, the user input unit 1207 is further used to:
[0531] receiving a window position adjustment input for the second shooting preview window;
[0532] The processor 1210 is further configured to update the display position of the second shooting preview window in response to the window position adjustment input.
[0533] In some embodiments of the present application, the user input unit 1207 is further used to:
[0534] receiving a window size adjustment input for the second shooting preview window;
[0535] The processor 1210 is further configured to update the window size of the second shooting preview window in response to the window size adjustment input.
[0536] In some embodiments of the present application, the display unit 1206 is further configured to, after receiving a second input to a control for enabling the dual-field function in the shooting preview interface, display a focus mark on the first shooting preview window when the shooting preview area displays a preview image captured by the first camera; wherein the focus mark is used to indicate that the primary field of view is within the shooting range of the first camera;
[0537] When the shooting preview area displays a preview image captured by the second camera, a focus mark is displayed on the second shooting preview window; wherein the focus mark is used to indicate that the main field of view is within the shooting range of the second camera.
[0538] In some embodiments of the present application, the user input unit 1207 is further used to:
[0539] receiving a fourth input to a focus switching control on the shooting preview interface;
[0540] The display unit 1206 is further configured to update the display content of the first shooting preview window to the preview image captured by the second camera, and update the display content of the second shooting preview window to the preview image captured by the first camera in response to the fourth input.
[0541] In some embodiments of the present application, the display unit 1206 is further configured to:
[0542] When the focus mark is displayed on the first shooting preview window, in response to the fifth input to the second shooting preview window, the display content of the first shooting preview window is updated to the preview image captured by the second camera, and the display content of the second shooting preview window is updated to the preview image captured by the first camera.
[0543] In some embodiments of the present application, the user input unit 1207 is further used to:
[0544] receiving a sixth input to a focus adjustment control on the shooting preview interface when a focus mark is displayed on the first shooting preview window and a shooting focus length of the preview image in the first shooting preview window is a first focus length;
[0545] The display unit 1206 is further configured to update the shooting focal length of the preview image in the first shooting preview window to a second focal length in response to the sixth input.
[0546] In some embodiments of the present application, the user input unit 1207 is further used to:
[0547] In a case where a focus mark is displayed on the first shooting preview window, receiving a seventh input to a special effect setting control on the shooting preview interface;
[0548] The display unit 1206 is further configured to display at least one filter identifier in response to the seventh input; the filter identifier indicates a filter;
[0549] The user input unit 1207 is further configured to receive a selection input of one of the at least one filter identifier;
[0550] The display unit 1206 is further configured to, in response to the selection input, add the filter indicated by the filter identifier selected by the selection input to the preview image displayed in the first shooting preview window.
[0551] In some embodiments of the present application, the user input unit 1207 is further used to:
[0552] In a case where a focus mark is displayed on the first shooting preview window, receiving an eighth input to a special effect setting control on the shooting preview interface;
[0553] The display unit 1206 is further configured to display at least one motion effect identifier in response to the eighth input received by the receiving module;
[0554] The user input unit 1207 is further configured to receive a selection input of one of the at least one animation effect identifier;
[0555] The display unit 1206 is further configured to, in response to the selection input received by the receiving module, add the motion effect indicated by the motion effect identifier selected by the selection input to the preview image displayed in the first shooting preview window.
[0556] In some embodiments of the present application, the processor 1210 is specifically configured to:
[0557] Performing video encoding on a first preview data stream captured by the first camera to generate a first video, and performing video encoding on a second preview data stream captured by the second camera to generate a second video;
[0558] Performing image encoding on a first photographic data stream collected by the first camera to generate a first image, and performing image encoding on a second photographic data stream collected by the second camera to generate a second image;
[0559] splicing the first image and the second image according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface to obtain a cover image;
[0560] splicing each frame of the first video with each frame of the second video according to the display positions of the first and second shooting preview windows in the shooting preview interface, and encoding all the spliced images to generate a third video;
[0561] The cover image and the third video are packaged to generate a dynamic photo.
[0562] In some embodiments of the present application, the display unit 1206 is further configured to display at least one shooting duration option before receiving a first input to the shooting preview interface;
[0563] The processor 1210 is further configured to determine a shooting duration for a dynamic photo in response to a selection input of one of the at least one shooting duration options, where the shooting duration is the duration indicated by the shooting duration option selected by the selection input.
[0564] In some embodiments of the present application, before receiving the second input to the dual-view function activation control in the shooting preview interface, the display mode of the dual-view function activation control is the first display mode;
[0565] The display unit 1206 is further configured to update the display mode of the dual-view function activation control in the shooting preview interface to the second display mode after receiving a second input to the dual-view function activation control in the shooting preview interface;
[0566] The second display mode is different from the first display mode.
[0567] In an embodiment of the present application, an electronic device is provided, wherein the electronic device receives a first input to a shooting preview interface; the shooting preview interface includes a first shooting preview window and a second shooting preview window, the first shooting preview window including a preview image captured by a first camera; the second shooting preview window including a preview image captured by a second camera; the first camera and the second camera have different shooting fields of view; and in response to the first input, a dynamic photo is generated based on the images captured by the first camera and the second camera. In this way, the electronic device uses two cameras with different fields of view to respectively capture images of the user's environment and the photographer's image, and generates a dynamic photo based on the images of the user's environment and the photographer's image with different shooting fields of view, thereby being able to simultaneously record the scene of the shooting scene and the photographer's movements and expressions at the moment of shooting through the dynamic photo.
[0568] It should be understood that in an embodiment of the present application, the input unit 1204 may include a graphics processing unit (GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and at least one of other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts: a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0569] The memory 1209 can be used to store software programs and various data. The memory 1209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1209 may include a volatile memory or a non-volatile memory, or the memory 1209 may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 1209 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0570] Processor 1210 may include one or more processing units. Optionally, processor 1210 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1210.
[0571] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned dynamic photo shooting method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0572] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0573] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned dynamic photo shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0574] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0575] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned dynamic photo shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0576] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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 statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0577] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0578] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A method for shooting dynamic photos, characterized in that: include: Receiving a first input to a shooting preview interface; the shooting preview interface includes a first shooting preview window and a second shooting preview window, the first shooting preview window includes a preview image captured by the first camera; the second shooting preview window includes a preview image captured by the second camera; the first camera and the second camera have different shooting fields of view; In response to the first input, a dynamic photo is generated based on images captured by the first camera and the second camera.
2. The method according to claim 1, characterized in that The first camera and the second camera are respectively one of a front camera and a rear camera.
3. The method according to claim 1, characterized in that Before receiving the first input to the shooting preview interface, the method further includes: receiving a second input to a dual-view function activation control in a shooting preview interface; the shooting preview interface including a shooting preview area, the shooting preview area including a preview image captured by the first camera or a preview image captured by the second camera; the dual-view function activation control is used to activate a dual-view dynamic photo shooting function; In response to the second input, the dual-view dynamic photo shooting function is turned on, and the shooting preview area is updated to the first shooting preview window and the second shooting preview window.
4. The method according to claim 1, wherein The split-screen mode of the first shooting preview window and the second shooting preview window is a first split-screen mode; The method further comprises: receiving a third input to a split-screen control on the shooting preview interface; In response to the third input, at least two split-screen mode identifiers are displayed, the split-screen mode identifiers being used to indicate split-screen modes of the first shooting preview window and the second shooting preview window; the at least two split-screen mode identifiers include a first split-screen mode identifier and a second split-screen mode identifier; the first split-screen mode identifier indicates the first split-screen mode, and the second split-screen mode identifier indicates the second split-screen mode; receiving a fourth input of the second split-screen mode identifier among the at least one split-screen mode identifier; In response to the fourth input, the split screen mode of the first shooting preview window and the second shooting preview window is updated to the second split screen mode.
5. The method according to claim 1, wherein When the split-screen mode of the first shooting preview window and the second shooting preview window is a top-bottom split-screen mode, the method further includes: receiving a window size adjustment input for the first shooting preview window or the second shooting preview window; In response to the window size adjustment input, the window sizes of the first shooting preview window and the second shooting preview window are updated.
6. The method according to claim 1, characterized in that When the split-screen mode of the first shooting preview window and the second shooting preview window is a rectangular split-screen mode, the second shooting preview window is a rectangular window, and the second shooting preview window is displayed floating on the first shooting preview window; When the split screen mode of the first shooting preview window and the second shooting preview window is a circular split screen mode, the second shooting preview window is a circular window, and the second shooting preview window is displayed floating on the first shooting preview window.
7. The method according to claim 6, characterized in that The method further comprises: receiving a window position adjustment input for the second shooting preview window; In response to the window position adjustment input, the display position of the second shooting preview window is updated.
8. The method according to claim 6, characterized in that The method further comprises: receiving a window size adjustment input for the second shooting preview window; In response to the window size adjustment input, the window size of the second shooting preview window is updated.
9. The method according to claim 3, characterized in that After receiving a second input to a control for enabling the dual-view function in the shooting preview interface, the method further includes: When the preview image captured by the first camera is displayed in the shooting preview area, a focus mark is displayed on the first shooting preview window; wherein the focus mark is used to indicate that the main field of view is within the shooting range of the first camera; When the shooting preview area displays a preview image captured by the second camera, a focus mark is displayed on the second shooting preview window; wherein the focus mark is used to indicate that the main field of view is within the shooting range of the second camera.
10. The method according to claim 9, characterized in that The method further comprises: receiving a fourth input to a focus switching control on the shooting preview interface; In response to the fourth input, the display content of the first shooting preview window is updated to the preview image captured by the second camera, and the display content of the second shooting preview window is updated to the preview image captured by the first camera.
11. The method according to claim 9, characterized in that The method further comprises: When the focus mark is displayed on the first shooting preview window, in response to the fifth input to the second shooting preview window, the display content of the first shooting preview window is updated to the preview image captured by the second camera, and the display content of the second shooting preview window is updated to the preview image captured by the first camera.
12. The method according to claim 9, characterized in that When a focus mark is displayed on the first shooting preview window and a shooting focal length of the preview image in the first shooting preview window is a first focal length, the method further includes: receiving a sixth input to a focus adjustment control on the shooting preview interface; In response to the sixth input, the shooting focal length of the preview image in the first shooting preview window is updated to a second focal length.
13. The method according to claim 9, characterized in that When a focus mark is displayed on the first shooting preview window, the method further includes: receiving a seventh input of a special effect setting control on the shooting preview interface; In response to the seventh input, display at least one filter identifier, wherein the filter identifier indicates a filter; receiving a selection input of a filter identifier among the at least one filter identifier; In response to the selection input, a filter indicated by the filter identifier selected by the selection input is added to the preview image displayed in the first shooting preview window.
14. The method according to claim 9, characterized in that When a focus mark is displayed on the first shooting preview window, the method further includes: receiving an eighth input to a special effect setting control on the shooting preview interface; In response to the eighth input, displaying at least one animation effect identifier; receiving a selection input of one of the at least one animation effect identifier; In response to the selection input, the motion effect indicated by the motion effect identifier selected by the selection input is added to the preview image displayed in the first shooting preview window.
15. The method according to claim 1, wherein The generating of a dynamic photo based on images captured by the first camera and the second camera includes: Performing video encoding on a first preview data stream captured by the first camera to generate a first video, and performing video encoding on a second preview data stream captured by the second camera to generate a second video; Performing image encoding on a first photographic data stream collected by the first camera to generate a first image, and performing image encoding on a second photographic data stream collected by the second camera to generate a second image; splicing the first image and the second image according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface to obtain a cover image; splicing each frame of the first video with each frame of the second video according to the display positions of the first shooting preview window and the second shooting preview window in the shooting preview interface to generate a third video; The cover image and the third video are packaged to generate a dynamic photo.
16. The method according to claim 1, wherein Before receiving the first input to the shooting preview interface, the method further includes: Display at least one shooting duration option; In response to a selection input of one of the at least one shooting duration options, a shooting duration of the dynamic photo is determined, where the shooting duration is the duration indicated by the shooting duration option selected by the selection input.
17. The method according to claim 3, characterized in that Before receiving the second input to the dual-view function activation control in the shooting preview interface, the display mode of the dual-view function activation control is the first display mode; After receiving a second input to a control for enabling the dual-view function in the shooting preview interface, the method further includes: Updating the display mode of the dual-view function activation control to the second display mode; The second display mode is different from the first display mode.
18. A dynamic photo shooting device, characterized in that: include: a receiving module configured to receive a first input to a shooting preview interface; the shooting preview interface comprising a first shooting preview window and a second shooting preview window, the first shooting preview window comprising a preview image captured by a first camera; the second shooting preview window comprising a preview image captured by a second camera; the first camera and the second camera having different shooting fields of view; A processing module is configured to generate a dynamic photo based on images captured by the first camera and the second camera in response to the first input received by the receiving module.
19. The device according to claim 18, characterized in that The first camera and the second camera are respectively one of a front camera and a rear camera.
20. The device according to claim 18, characterized in that The receiving module is further configured to: Before receiving the first input to the shooting preview interface, receiving a second input to a dual-view function activation control in the shooting preview interface; the shooting preview interface includes a shooting preview area, the shooting preview area includes a preview image captured by the first camera or a preview image captured by the second camera; the dual-view function activation control is used to activate the dual-view dynamic photo shooting function; The processing module is configured to enable a dual-view dynamic photo shooting function in response to the second input received by the receiving module, and update the shooting preview area to the first shooting preview window and the second shooting preview window.
21. The device according to claim 18, characterized in that The split-screen mode of the first shooting preview window and the second shooting preview window is a first split-screen mode; The receiving module is further configured to receive a third input to the split-screen control on the shooting preview interface; The device further comprises: a display module, configured to display at least two split-screen mode identifiers in response to the third input received by the receiving module, the split-screen mode identifiers being used to indicate split-screen modes of the first shooting preview window and the second shooting preview window; the at least two split-screen mode identifiers including a first split-screen mode identifier and a second split-screen mode identifier; the first split-screen mode identifier indicating the first split-screen mode, and the second split-screen mode identifier indicating the second split-screen mode; The receiving module is further configured to receive a fourth input of the second split-screen mode identifier in the at least one split-screen mode identifier; The display module is further configured to update the split screen mode of the first shooting preview window and the second shooting preview window to the second split screen mode in response to the fourth input of the receiving module.
22. The device according to claim 18, characterized in that When the split-screen mode of the first shooting preview window and the second shooting preview window is a top-bottom split-screen mode, the receiving module is further configured to: receiving a window size adjustment input for the first shooting preview window or the second shooting preview window; The processing module is further configured to update the window sizes of the first shooting preview window and the second shooting preview window in response to the window size adjustment input.
23. The device according to claim 18, characterized in that When the split-screen mode of the first shooting preview window and the second shooting preview window is a rectangular split-screen mode, the second shooting preview window is a rectangular window, and the second shooting preview window is displayed floating on the first shooting preview window; When the split screen mode of the first shooting preview window and the second shooting preview window is a circular split screen mode, the second shooting preview window is a circular window, and the second shooting preview window is displayed floating on the first shooting preview window.
24. The device according to claim 23, characterized in that The receiving module is further configured to: receiving a window position adjustment input for the second shooting preview window; The processing module is further configured to update the display position of the second shooting preview window in response to the window position adjustment input received by the receiving module.
25. An electronic device, characterized in that: It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the dynamic photo shooting method as described in any one of claims 1 to 17 are implemented.