Shooting method and device, electronic equipment, storage medium and program product
By receiving input in the shooting preview interface to determine the object and composition parameters, automatic composition is achieved, which solves the problem of poor composition caused by unpredictable subject movements and improves the shooting effect.
Patent Information
- Application Number
- CN202511011914.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-09-12
AI Technical Summary
During the shooting process, the subject's movements are difficult to predict, resulting in poor composition, the subject easily out of the frame, and unsmooth zoom operation, which reduces the shooting effect.
By receiving input to the shooting preview interface, determining the first object and composition parameters, and shooting based on these parameters, ensuring that the composition of the object in the picture meets preset requirements, automatic composition is achieved.
You can shoot videos with excellent composition without manual composition or zooming, which improves the shooting effect.
Smart Images

Figure CN120640125A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of camera technology, and specifically relates to a shooting method, device, electronic device, storage medium and program product. Background Art
[0002] As people's demand for recording a better life continues to increase, users hope to capture every happy moment in life through electronic devices.
[0003] However, in actual shooting, the unpredictable movements of the subject can lead to problems such as poor composition, the subject being out of frame, and unsmooth zooming, which greatly reduces the shooting quality. Consequently, current electronic devices have poor shooting quality. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a shooting method, device, electronic device, storage medium and program product, which can improve the shooting effect of the electronic device.
[0005] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising: receiving a first input to a shooting preview interface; in response to the first input, determining a first object and a first composition parameter, the first composition parameter being a composition parameter of the first object; shooting the first object based on the first composition parameter to obtain a first video; wherein, during the process of shooting the first video, the composition of the first object in the shooting screen satisfies the first composition parameter.
[0006] In a second aspect, embodiments of the present application provide a shooting device comprising: a receiving module, a determining module, and a shooting module. The receiving module is configured to receive a first input to a shooting preview interface; the determining module is configured to determine a first object and a first composition parameter in response to the first input received by the receiving module, wherein the first composition parameter is a composition parameter of the first object; and the shooting module is configured to shoot the first object based on the first composition parameter determined by the determining module to obtain a first video; wherein, during the shooting of the first video, the composition of the first object in the shot image satisfies the first composition parameter.
[0007] 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 method described in the first aspect are implemented.
[0008] 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 method described in the first aspect are implemented.
[0009] 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 method described in the first aspect.
[0010] 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 method described in the first aspect.
[0011] In an embodiment of the present application, a first input to a shooting preview interface is received, and then in response to the first input, a first object and a first composition parameter are determined, the first composition parameter being a composition parameter of the first object, and then the first object is shot based on the first composition parameter to obtain a first video, wherein, in the process of shooting the first video, the composition of the first object in the shooting screen satisfies the first composition parameter. In this way, by inputting to the shooting preview interface, the electronic device can be triggered to determine the first object and the first composition parameter, and then the first object is shot based on the first composition parameter to obtain a video containing the first object and the composition of the first object in the shooting screen that satisfies the first composition parameter, that is, a video that automatically composes the object can be obtained, and a video with excellent composition can be shot without manual composition or zooming, thereby improving the shooting effect of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is one of the flow charts of the shooting method provided in the embodiment of the present application;
[0013] Figure 2 This is the second flow chart of the shooting method provided in the embodiment of the present application;
[0014] Figure 3 This is one of the schematic diagrams of the shooting preview interface provided in the embodiment of the present application;
[0015] Figure 4 This is the third flow chart of the shooting method provided in the embodiment of the present application;
[0016] Figure 5 This is a schematic diagram of the first prompt information provided in an embodiment of the present application;
[0017] Figure 6 This is the second schematic diagram of the shooting preview interface provided in the embodiment of the present application;
[0018] Figure 7 is a schematic diagram of the second prompt information provided in an embodiment of the present application;
[0019] Figure 8 is a schematic diagram of a whole-body model provided in an embodiment of the present application;
[0020] Figure 9 is a schematic diagram of a half-body mode provided in an embodiment of the present application;
[0021] Figure 10 is a schematic diagram of a close-up mode provided in an embodiment of the present application;
[0022] Figure 11 This is one of the schematic diagrams of the composition mode control provided in the embodiment of the present application;
[0023] Figure 12 This is the second schematic diagram of the composition mode control provided in an embodiment of the present application;
[0024] Figure 13 This is the third schematic diagram of the composition mode control provided in an embodiment of the present application;
[0025] Figure 14 is a schematic diagram of a camera provided in an embodiment of the present application;
[0026] Figure 15 This is one of the schematic diagrams of the camera FOV provided in the embodiment of the present application;
[0027] Figure 16 This is the second schematic diagram of the camera FOV provided in an embodiment of the present application;
[0028] Figure 17 This is the third schematic diagram of the camera FOV provided in the embodiment of the present application;
[0029] Figure 18 This is the fourth schematic diagram of the camera FOV provided in the embodiment of the present application;
[0030] Figure 19 This is the fifth schematic diagram of the camera FOV provided in the embodiment of the present application;
[0031] Figure 20 This is the sixth schematic diagram of the camera FOV provided in the embodiment of the present application;
[0032] Figure 21 This is one of the schematic diagrams of the lens locking control provided in an embodiment of the present application;
[0033] Figure 22 This is the second schematic diagram of the lens locking control provided in an embodiment of the present application;
[0034] Figure 23 is one of the schematic diagrams of the second object provided in the embodiment of the present application;
[0035] Figure 24 This is the second schematic diagram of the second object provided in the embodiment of the present application;
[0036] Figure 25This is the third schematic diagram of the second object provided in the embodiment of the present application;
[0037] Figure 26 This is the third schematic diagram of the shooting preview interface provided in the embodiment of the present application;
[0038] Figure 27 This is the fourth schematic diagram of the shooting preview interface provided in the embodiment of the present application;
[0039] Figure 28 This is the fifth schematic diagram of the shooting preview interface provided in the embodiment of the present application;
[0040] Figure 29 is a schematic diagram of a specific implementation process of the shooting method provided in an embodiment of the present application;
[0041] Figure 30 is a schematic diagram of a photographing device provided in an embodiment of the present application;
[0042] Figure 31 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0043] Figure 32 This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] 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.
[0045] The terms "first," "second," and the like in the specification 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 refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0046] The terms "at least one" and "at least one of" in 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".
[0047] The terms "included" in the examples of this application include, but are not limited to, the objects included. The terms used in the implementation methods of this application are only used to explain the specific examples of this application and are not intended to limit this application. The following explains the terms involved in the examples of this application.
[0048] Logo: The logo in this application refers to text, symbols, images, etc. used to indicate information. Controls or other containers can be used as carriers for displaying information, including but not limited to text logos, symbol logos, and image logos.
[0049] Controls: These are graphical elements that users can directly manipulate or perceive during interaction. They are used to receive user input, trigger functions, or display real-time information. They serve as a bridge between users and device or application functions, delivering instructions and providing status feedback through visual means.
[0050] Object: Also known as subject, it refers to the object in the shooting scene, which can be one or more. For example, the object can be a person, pet, building, object, or anything else the user wants to focus on.
[0051] Composition: During the shooting process, you adjust the position, size, and proportion of the subject in the frame to ensure that the subject's presentation meets your preset expectations. This ensures that the captured image meets aesthetic standards while highlighting the subject, improving the quality of the shot. When composing, all shooting and composing operations are centered around a single subject. In complex scenes, there may be multiple subjects in the frame, and the user can select one of them as the subject for composing.
[0052] Interface: refers to the graphical interaction layer that users see through the screen of an electronic device. Also known as the "user interface (UI)", it is the medium interface for interaction and information exchange between applications or operating systems and users. It realizes the conversion between the internal form of information and the form acceptable to users. The user interface is source code written in a specific computer language such as Java and XML. The interface source code is parsed and rendered on the electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical way. It can include visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets (Web widgets, Widgets) displayed on the display screen of an electronic device.
[0053] Application: A computer program developed to run on an operating system to accomplish one or more specific tasks. Applications run in user mode, can interact with users, and have a visual user interface.
[0054] Shooting preview interface: It is the interface of the real-time view image that users see on the device screen before taking a photo. It is a visual interactive area where the image data captured by the camera sensor is processed and rendered in real time. It can be a GUI on which visual interface elements such as buttons, navigation bars, and widgets can be displayed.
[0055] Focal length: The distance from the optical center of a lens to the image plane, usually measured in millimeters (mm).
[0056] Magnification: This refers to the zoom ratio of a lens, or the degree to which it can bring distant objects closer and magnify them. Magnification = Lens Focal Length / Standard Focal Length. Standard focal length is typically around 50mm, but may vary depending on the device. The higher the magnification, the larger the object appears in the frame, while also reducing the area covered by the image. For example, a 2x zoom lens can make an object appear twice as close as it actually is.
[0057] Field of View (FOV): This refers to the range of a scene that a lens can capture, usually expressed as an angle. FOV = 2*arctan(sensor width / (2*focal length)). Both sensor width and focal length affect FOV; a larger focal length reduces FOV. A larger FOV captures a wider range of scenes and is often used for landscape photography. A smaller FOV allows the lens to focus more closely on distant subjects and is often used for close-up photography.
[0058] Space Alignment Transform (SAT): is a technique for smooth switching and fusion between multiple cameras, enabling continuous and smooth zoom effects.
[0059] The following, in conjunction with the accompanying drawings, describes in detail the shooting method, device, electronic device, storage medium and program product provided by the embodiments of the present application through specific embodiments and their application scenarios.
[0060] The embodiments of the present application can be applied to video shooting scenarios. Specifically, the video shooting scenarios can include shooting scenes of any object. The aforementioned objects can include people, pets, dolls, statues, or any fixed or non-fixed objects. The embodiments of the present application do not limit the objects to be shot.
[0061] The following describes the video shooting scenario using the example of a person or a pet as the subject.
[0062] A specific scenario may be shooting a video of people. For example, in a shooting scene of a family gathering, there are multiple children playing, including the user's children and their friends, and the user wants to shoot a video of his or her children playing.
[0063] Another specific application scenario may be shooting a video of a pet. For example, in an outdoor scene, a user's pet puppy is playing on the grass, and the user wants to shoot a video of the puppy playing.
[0064] It should be noted that the above-mentioned scenes of photographing people and photographing pets are only illustrative examples of some possible application scenarios of the embodiments of the present application. In actual implementation, the embodiments of the present application can also be applied to more needs to photograph any possible scenes, and the embodiments of the present application are not limited here.
[0065] The embodiments of the present application provide a shooting method, device, electronic device, storage medium and program product. By inputting into a shooting preview interface, the electronic device can be triggered to determine a first object and a first composition parameter, and then the first object is shot based on the first composition parameter to obtain a video containing the first object and the composition of the first object in the shooting picture meeting the first composition parameter. That is, a video with an automatically composed image of the object can be obtained, and a video with excellent composition can be shot without manual composition or zooming, thereby improving the shooting effect of the electronic device.
[0066] The execution subject of the shooting method provided in the embodiment of the present application can be a shooting device, which can be an electronic device, or a functional module or functional entity in the electronic device. The following uses an electronic device as an example to illustrate the technical solution provided in the embodiment of the present application.
[0067] Figure 1A flowchart of a shooting method provided by an embodiment of the present application is shown. Figure 1 As shown, the shooting method provided in the embodiment of the present application may include the following steps 201 to 203.
[0068] Step 201: The electronic device receives a first input to a shooting preview interface.
[0069] In the embodiment of the present application, the shooting preview interface includes at least one object, and the first input may include a selection input of any one of the at least one object.
[0070] In an embodiment of the present application, the first input is used to capture a first video containing a first subject, wherein the composition of the first subject within the captured image satisfies first composition parameters. The first subject is the subject that the user wishes to highlight and record within the captured scene. For example, if there are multiple children playing in a scene, and one of the children is the subject the user most wants to capture, then this child is the first subject.
[0071] Optionally, in the embodiment of the present application, the first input includes, but is not limited to, touch input by a user on the shooting preview interface using a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input. The specific input can be determined based on actual usage needs and is not limited in the embodiment of the present application.
[0072] Optionally, in an embodiment of the present application, the touch input may be a single-click input, a double-click input, or any number of click inputs, or may be a long-press input or a short-press input.
[0073] Optionally, in an embodiment of the present application, the above-mentioned specific gesture can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
[0074] Optionally, in an embodiment of the present application, the shooting preview interface may include a shooting control, which is used to trigger the electronic device to shoot a video.
[0075] Optionally, in the embodiment of the present application, the first input may be a click input by the user on the shooting preview interface.
[0076] Optionally, in an embodiment of the present application, when the electronic device has activated composition mode, the user can use the touch area of the electronic device to perform touch input on any object in the shooting preview interface to control the electronic device to use the first object selected by the user as the subject of the subsequent composition in the composition mode. In this way, it can be ensured that the subsequent video shooting is performed under the composition of the first object, so that the first video can be captured in which the composition of the first object in the shooting screen meets the first composition parameters.
[0077] Optionally, in an embodiment of the present application, the above-mentioned composition mode can be understood as a mode for shooting a video with an automatic composition effect.
[0078] For example, taking the electronic device as a mobile phone, the user can open the camera application (APP) in the mobile phone, and the mobile phone displays the shooting preview interface of the camera APP, which includes at least one object and a shooting control. The user clicks on an object and clicks on the shooting control. The mobile phone responds to the user's click operation on the shooting control and shoots a first video in which the composition of the object in the shooting screen meets the first composition parameter.
[0079] Step 202: The electronic device determines a first object and a first composition parameter in response to a first input.
[0080] In the embodiment of the present application, the first composition parameter is a composition parameter of the first object, and the first object is an object selected by the first input.
[0081] In the embodiment of the present application, the above-mentioned first composition parameter is a parameter representing information such as the position, size, and proportion of the first object in the shooting picture, and is used to determine whether the composition of the subject in the picture meets the preset requirements.
[0082] Step 203: Shoot the first object based on the first composition parameter to obtain a first video; wherein, during the shooting of the first video, the composition of the first object in the shooting picture satisfies the first composition parameter.
[0083] In the embodiment of the present application, the above-mentioned first video is a first video captured by an electronic device and contains a first object, and the composition of the first object in the captured image satisfies a first composition parameter.
[0084] In the embodiments of the present application, "the composition of the first object in the captured image satisfies the first composition parameters" means that the composition parameters of the first object conform to a preset composition model. A preset composition model is a composition rule pre-set in the device that specifies the ideal position, size, and proportion of the subject in the image when composing. The electronic device can analyze the image content in real time based on different composition modes and adjust the capture parameters to ensure that the captured image meets the user's composition requirements.
[0085] Optionally, in an embodiment of the present application, after the user makes a first input to the first object, the electronic device can lock the first object as the subject of the composition and start shooting. During the shooting process, the electronic device can switch the camera according to the position of the first object and the proportion of the first object in the picture, so that the subject can be in the center of the picture in real time and at a suitable frame ratio. This step runs through the entire video shooting process and is a continuous and dynamic process. The electronic device can adjust and optimize the shooting picture in real time to ensure the composition effect of the shooting picture. During the shooting process, the user can operate the electronic device to end shooting so that the electronic device ends shooting and obtains the first video.
[0086] An embodiment of the present application provides a shooting method, which can trigger an electronic device to determine a first object and a first composition parameter by inputting into a shooting preview interface, and then shoot the first object based on the first composition parameter to obtain a video containing the first object and whose composition in the shooting picture satisfies the first composition parameter. That is, a video with an automatically composed image of the object can be obtained, and a video with excellent composition can be shot without manual composition or zooming, thereby improving the shooting effect of the electronic device.
[0087] Optionally, in the embodiment of the present application, the shooting preview interface further includes a first control. Figure 1 ,like Figure 2 As shown, before the above step 201, the shooting method provided in the embodiment of the present application further includes the following steps 301 and 302, and the above step 203 can be implemented through the following step 203a.
[0088] Step 301: The electronic device receives a second input to a first control.
[0089] In an embodiment of the present application, the first control may be used to start a composition mode of the electronic device. For example, the first control may be called a composition control, an automatic composition control, a composition mode start control, a composition mode control, or the like.
[0090] In the embodiment of the present application, the second input is used to start the composition mode of the electronic device.
[0091] In the embodiment of the present application, the above-mentioned composition mode is an intelligent shooting function, which can automatically adjust the composition of the picture so that the position and proportion of the shooting subject in the picture conform to the preset composition model.
[0092] Optionally, in the embodiment of the present application, the second input may be any form of input by the user to the first control of the shooting preview interface.
[0093] Exemplarily, the second input may be a single-click input, a short-press input, a long-press input, or a single-click gesture of the user on the first control, etc., which is not limited in this embodiment of the present application.
[0094] Step 302: The electronic device starts a composition mode in response to a second input.
[0095] Optionally, in an embodiment of the present application, the electronic device starts a composition mode in response to a second input. Then, when the user uses the electronic device to shoot a video next, the electronic device can process the preview image during the shooting process to obtain a video with a composition effect.
[0096] Optionally, in the embodiment of the present application, Figure 3 As shown, the shooting preview interface includes a toolbar, a preview window, a magnification control, a camera mode option, an album shortcut control, a shooting control, and a camera flip control.
[0097] The toolbar may be used to display one or more functional controls, which may include a flash control, an automatic composition control, a setting control, etc. It is understood that the toolbar may include more or fewer functional controls.
[0098] The preview window may be used to display a preview image obtained after image data rendering in real time. The preview window may also be referred to as a viewfinder.
[0099] The magnification control unit can be used to adjust the shooting magnification of the electronic device.
[0100] Among them, the camera mode option can be a preset function module that can be selected by the user to adapt to different shooting scenes or operating requirements, and achieve specific shooting effects or creative intentions by adjusting the combination of hardware parameters and software algorithms. Figure 3 As shown, the camera mode options may include a "night scene" mode option, a "portrait" mode option, a "photo" mode option, a "video recording" mode option, and the like.
[0101] In an embodiment of the present application, after the user opens the camera application, he can select the video recording option in the camera mode selection on the camera's shooting preview interface, and then click the automatic composition control to trigger the electronic device to start the composition mode.
[0102] Taking the electronic device as a mobile phone as an example, for example, Figure 3 As shown, after the user starts the camera application in the mobile phone, the mobile phone displays a shooting preview interface 20, which includes an automatic composition control 21, that is, the first control mentioned above. After the user clicks the automatic composition control 21, the mobile phone starts the composition mode.
[0103] Step 203a: In response to the first input, the electronic device shoots the first object based on the first composition parameter in the composition mode to obtain a first video.
[0104] Optionally, in the embodiment of the present application, the first input may include input to the first object and the shooting control of the shooting preview interface.
[0105] In this way, the user triggers the electronic device to start the composition mode through one input, and then triggers the electronic device to shoot a video with automatic composition of the object selected by the user in the composition mode through another input. That is, the user can trigger the electronic device to shoot a video in which the composition parameters of the object in the shooting picture meet the preset composition model through two inputs, which reduces the user's operation complexity and improves the user's operation efficiency.
[0106] Optionally, in an embodiment of the present application, the shooting preview interface includes at least one object, and the at least one object includes a first object. Figure 1 ,like Figure 4 As shown, before the above step 201, the shooting method provided in the embodiment of the present application further includes the following step 303.
[0107] Step 303: The electronic device displays the first prompt information and at least one prompt box.
[0108] In the embodiment of the present application, the first prompt information is used to prompt the user to lock the object.
[0109] Exemplarily, the first prompt message may be: “Click the focus frame to lock the subject.”
[0110] In the embodiments of the present application, the aforementioned locking refers to the process by which the electronic device continuously tracks and adjusts the composition of a selected object. After the user locks the object, the electronic device can use the user-selected object as the subject of the photograph and automatically adjust the image during subsequent photographs to ensure that the subject remains in a specific position and proportion within the frame, conforming to a preset composition model.
[0111] In an embodiment of the present application, the above-mentioned prompt box can also be called a focus frame, which is a visual identifier used to indicate the area where the object is located in the shooting preview interface, and can be a rectangular frame, a circular frame or a frame of other shapes.
[0112] In the embodiment of the present application, the area selected by each prompt box in the at least one prompt box is the area where an object is located. The at least one prompt box can be used to prompt the user to select an object as the subject of the composition.
[0113] Optionally, in an embodiment of the present application, after the electronic device displays the first prompt information and at least one prompt box, the user can follow the prompt of the first prompt information to select the prompt box containing the object that the user needs to compose from the at least one prompt box, and then trigger the shooting control of the shooting preview interface. The electronic device responds to the user's trigger input of the shooting control, that is, the above-mentioned first input, to shoot a video in the composition mode. In other words, the above-mentioned first input can be the user's selection input of the prompt box containing the first object in the at least one prompt box and the trigger input of the shooting control, so as to trigger the electronic device to shoot a video in the composition mode with the first object as the main subject of the composition.
[0114] For example, Figure 5 As shown, the shooting preview interface 20 of the mobile phone includes a person, and the person is framed by a prompt box 23, and also includes a first prompt message 25: "Click the focus frame to lock the subject."
[0115] In this embodiment of the present application, the user can manually select subjects such as people or pets that appear in the picture. Figure 6 As shown, when there is no person or other subject in the picture, the prompt "Please make sure there is a person or subject in the picture" appears. When a person or subject appears in the picture, a focus frame follows the target and a prompt "Click the focus frame to lock the tracking subject" appears.
[0116] In this way, the electronic device can provide the user with clearer operation guidance and enhance the user's shooting experience by displaying the first prompt information and at least one prompt box when the user has not yet selected an object.
[0117] Optionally, in an embodiment of the present application, before "shooting to obtain a first video containing the first object" in the above step 202, the shooting method provided in the embodiment of the present application further includes the following step 401.
[0118] Step 401: The electronic device displays a second prompt message and a composition prompt window.
[0119] In the embodiment of the present application, the second prompt information is used to prompt that the first object is in a locked state.
[0120] Exemplarily, the second prompt information may be: “The tracking subject has been locked.”
[0121] In the embodiment of the present application, the composition prompt window is used to display the global picture of the shooting picture and the composition picture of the first object.
[0122] In the embodiments of the present application, the global image is the complete captured scene captured by the camera, including all foreground and background elements, to help users understand the overall layout of the image. The composition image refers to the display effect after the first object is composed according to a preset composition model, allowing users to intuitively see whether the position and proportion of the subject in the image meet expectations.
[0123] Optionally, in an embodiment of the present application, after receiving the first input, the electronic device may display a second prompt message to prompt the user that the object selected by the user is in a locked state, and display a composition prompt window to show the user the global picture of the shooting picture and the composition picture of the object.
[0124] In the embodiment of the present application, when the tracking subject is locked, the electronic device prompts "Tracking subject has been locked", and a small navigation window appears in the upper right corner, showing the scope of the global picture and the composition picture.
[0125] In this way, the electronic device can let the user know clearly that the device has successfully locked the selected object by displaying a second prompt message, and provide the user with an intuitive reference of the global picture and the composition picture by displaying a composition prompt window, so that the user can more intuitively understand the overall layout of the shooting picture, and help the user decide whether to use the layout to shoot, so that the shooting effect of the electronic device can better meet the needs of the user.
[0126] Optionally, in an embodiment of the present application, the above step 401 can be specifically implemented through the following steps 401a and 401b, and the "shooting and obtaining a first video containing the first object" in the above step 202 can be specifically implemented through the following step 202b.
[0127] Step 401a: In response to a selection input of a first object in the shooting preview interface, the electronic device determines the first object and displays second prompt information.
[0128] In the embodiment of the present application, the selection input is used to select the first object in the shooting preview interface.
[0129] In the embodiment of the present application, the selection input may be any form of input by the user to the first object.
[0130] Exemplarily, the selection input may be a single-click input, a short-press input, a long-press input, or a single-click gesture of the user on the first object, and the embodiment of the present application does not limit this.
[0131] Step 402a: The electronic device determines a first composition parameter in response to a selection input of a composition mode in the shooting preview interface, and displays a composition prompt window.
[0132] In the embodiment of the present application, the above selection input is used to select a composition mode in the shooting preview interface.
[0133] In the embodiment of the present application, the selection input may be any form of input to the composition mode by the user.
[0134] Exemplarily, the selection input may be a single-click input, a short-press input, a long-press input, or a single-click gesture of the user for the composition mode, etc., which is not limited in the embodiments of the present application.
[0135] Optionally, in an embodiment of the present application, after receiving the user's selection input for one of the at least one prompt boxes, the electronic device can use the object in the prompt box as the subject of the composition and lock it, and then the electronic device can display a second prompt message to prompt the user that the object is in a locked state, and then the electronic device can accept the user's selection input for the composition mode and display a composition prompt window to show the user the global picture of the shooting picture and the composition picture of the object.
[0136] For example, combined with Figure 3 ,like Figure 7 As shown, the user can click and input the person in the prompt box 23 in the shooting preview interface 20 to trigger the mobile phone to lock the person and display a second prompt message 26: "Locked tracking subject" and a composition prompt window 27.
[0137] Step 202b: In response to the shooting input, the electronic device tracks and shoots the first object based on the first composition parameter to obtain a first video containing the first object.
[0138] In an embodiment of the present application, the above-mentioned shooting input is used to trigger the electronic device to start shooting video.
[0139] Exemplarily, the shooting input may be a single-click input, a short-press input, a long-press input, or a single-click gesture of the shooting control by the user, etc., which is not limited in this embodiment of the present application.
[0140] Optionally, in an embodiment of the present application, after the electronic device locks onto the first object, the user can input a shooting input to the electronic device, such as clicking on a shooting control to trigger the electronic device to start shooting a video. During the video shooting process, the electronic device continues to track the first object based on the previous locking operation, monitors the position changes of the first object in real time, and automatically composes the image, such as adjusting the focus, cropping, switching cameras, etc., to ensure that the subject always remains at a specific position and proportion in the image, continuously capture the image, record the movements of the first object and changes in the scene, and generate a video stream. If the user clicks the shooting control again or stops shooting the video by other means, the electronic device stops shooting and obtains a complete first video containing the first object.
[0141] In this way, the electronic device can capture and obtain a first video containing the first object through the user's object selection input and shooting input, without the user having to manually adjust the interaction and composition, thereby reducing the user's operation complexity and improving the user's operation efficiency.
[0142] Optionally, in an embodiment of the present application, the shooting preview interface further includes a second control. After step 401, the shooting method provided in the embodiment of the present application further includes steps 402 and 403, and the "shooting to obtain a first video containing the first object" in step 202 can be specifically implemented by step 202c.
[0143] Step 402: The electronic device receives a fourth input to the second control.
[0144] In an embodiment of the present application, the second control may be used to select a composition mode for the first object.
[0145] In the embodiment of the present application, the fourth input is used to select a composition mode of the first object.
[0146] In the embodiment of the present application, the above-mentioned composition mode can also be called the composition ratio, which is the proportion of the composition subject in the shooting picture.
[0147] Optionally, in the embodiment of the present application, the fourth input may be any form of input by the user to the second control of the shooting preview interface.
[0148] Exemplarily, the fourth input may be a single-click input, a short-press input, a long-press input, or a single-click gesture of the user on the second control, etc., which is not limited in this embodiment of the present application.
[0149] Step 403: The electronic device selects a composition mode for the first object in response to the fourth input.
[0150] In the embodiment of the present application, the above-mentioned composition mode includes any one of the following: full body mode, half body mode and close-up mode.
[0151] Among them, the full body mode is to make the proportion of the whole body occupy the preset proportion of the frame; the half body mode is to make the proportion of the upper body approximately the preset proportion of the entire frame; the close-up mode focuses more on recording and shooting the subject's demeanor or expression, so that the subject's head occupies the preset proportion of the entire frame. The preset proportion refers to the ratio of the first object and the shooting screen required for composition. Select different subject composition ratio options, the size of the subject in the frame is different, and the size of the whole body proportion is as follows Figure 8 As shown, the proportion of the half body is as follows Figure 9 As shown, the close-up ratio is as follows Figure 10 shown.
[0152] Optionally, in the embodiment of the present application, the above-mentioned preset ratio can be a default ratio of the electronic device or a preset ratio of the user. For example, the above-mentioned preset ratio can be 2 / 3, 3 / 4, etc. The specific ratio can be determined according to actual use requirements and is not limited by the embodiment of the present application.
[0153] Optionally, in an embodiment of the present application, the shooting preview interface may include a composition mode control. After the user clicks the composition mode control, the electronic device displays at least one composition mode option on the shooting preview interface. The user can input any one of the at least one composition mode options to trigger the electronic device to switch to the composition mode corresponding to the composition mode option.
[0154] For example, Figure 11 As shown, the shooting preview interface 20 includes a composition mode control 28. After the user clicks the dynamic photo control 28, the user can Figure 11 ,like Figure 12 As shown, the shooting preview interface 20 of the mobile phone displays composition mode options, which are full body mode 281, half body mode 282 and close-up mode 283. Figure 12 ,like Figure 8 As shown, if the user clicks on the full body mode 281, the mobile phone can be triggered to switch to the full body mode. Figure 12 ,like Figure 9 As shown, if the user clicks half mode 282, the mobile phone can be triggered to switch to half body mode. Figure 12 ,like Figure 10 As shown, assuming that the user clicks on the close-up mode 283, the mobile phone can be triggered to switch to the close-up mode.
[0155] Optionally, in an embodiment of the present application, when the electronic device does not lock the object, if the user performs a fourth input on the electronic device, the electronic device may be triggered to display a lock prompt message to prompt the user to lock the subject.
[0156] For example, Figure 13 As shown, the shooting preview interface 20 includes a full body mode 281, a half body mode 282 and a close-up mode 283. If the user does not input the object and directly clicks the half body mode 282, the mobile phone will display a lock prompt message 29: "Please select and lock the subject first."
[0157] In this embodiment of the application, after selecting a subject, the user can initially select the subject's composition ratio, choosing from three modes: "Full Body," "Half Body," and "Close-up." If no selection is made, the default is "Full Body." If the subject's composition ratio is selected without selecting a subject, a prompt will appear: "Please select and lock the subject."
[0158] Step 202c: The electronic device shoots the first object based on the selected composition mode and the first composition parameter to obtain a first video.
[0159] Optionally, in an embodiment of the present application, when a first object is selected and a composition mode is selected, the electronic device uses the first object as the main body of the composition and composes the image according to the selected composition mode. The user can input a shooting input to the electronic device to trigger the electronic device to shoot a first video containing the first object based on the selected composition mode.
[0160] In this way, the user can select a desired composition mode from multiple composition modes through the fourth input of the second control. The electronic device can then capture a first video containing the first object based on the composition mode selected by the user. This allows the user to flexibly choose between multiple composition modes based on their shooting creativity or subject characteristics, enriching the shooting effects and meeting the user's diverse shooting needs. Furthermore, the user can select different composition modes through simple input operations without complex settings or adjustments, reducing the user's operational complexity.
[0161] Optionally, in the embodiment of the present application, the above step 202c can be specifically implemented through the following step 202c1.
[0162] Step 202c1: During the video shooting process, the electronic device adjusts the composition ratio of the first object in the shooting picture based on the selected composition mode, and shoots the first object based on the first composition parameter to obtain a first video.
[0163] Optionally, in an embodiment of the present application, when the first object is selected and the composition mode is selected, the user can input a shooting input to the electronic device to start shooting a video. During the video shooting process, the electronic device can shoot a first video containing the first object based on the selected composition mode.
[0164] Specifically, if Figure 14 As shown, taking a mobile phone with three cameras as an example, the focal lengths from largest to smallest are telephoto camera, main camera, and ultra-wide-angle camera. It should be noted that some electronic devices have more or fewer cameras, such as two cameras. When the shooting method provided in the embodiment of the present application is applied to electronic devices with other numbers of cameras, the basic principles and core ideas remain unchanged. The difference lies in the difference in the maximum magnification of automatic switching. The following is an explanation with reference to the accompanying drawings, where 30 is the target composition screen, 31 is the FOV of the ultra-wide-angle camera, 32 is the FOV of the main camera, and 33 is the FOV of the telephoto camera:
[0165] (1) When the subject is close:
[0166] like Figure 15 As shown, when the subject is close, for example, between 1.5 meters and 2 meters, an ultra-wide-angle camera with a larger FOV is required to fully capture the subject. At this time, the electronic device can use the ultra-wide-angle camera to shoot, and at the same time, to ensure that the subject is finally in the center of the entire frame, the picture is cropped and zoomed (ZOOM).
[0167] (2) When the subject is at a moderate distance: Figure 16 As shown in the figure, when the subject is at a moderate distance, such as 2.5 meters to 3.5 meters, the subject and its composition range are within the FOV of the main camera. At this time, the electronic device can use the main camera to shoot and perform image cropping and zooming. Figure 17 As shown, when the subject is at a moderate distance and is within the FOV of the main camera, but the composition range of the subject has exceeded the FOV of the main camera, in order to ensure a comprehensive composition range, the electronic device can use the ultra-wide-angle camera to shoot and crop and zoom.
[0168] (3) When the subject is far away: Figure 18 As shown in the figure, when the subject is far away, for example, more than 5 meters away, the subject and its composition range are both within the FOV of the telephoto camera. At this time, the telephoto camera is used to shoot, crop and zoom. Figure 19 As shown in the figure, when the subject is far away and within the FOV of the telephoto camera, but the composition range of the subject has exceeded the FOV of the telephoto camera, use the main camera or ultra-wide-angle camera to shoot and crop and zoom.
[0169] Optionally, in the embodiment of the present application, the camera switches during the movement as follows:
[0170] (1) When the subject moves from a relatively close distance to a distant place: Figure 15 As shown, the subject moves from near to far, for example, from 10 meters away to 1 meter away from the photographer, as shown in 16, and its composition range gradually changes from the FOV of the ultra-wide-angle camera to the FOV of the main camera, as shown in 18. When it finally reaches the FOV of the telephoto camera, the camera automatically switches from the ultra-wide-angle camera to the main camera and then to the telephoto camera.
[0171] (2) When the subject is at a long distance and moves from the middle position to the edge: Figure 18 As shown in the figure, when the subject is at a long distance, for example, 5 meters away, it moves around. Figure 19 As shown in the figure, when moving from the middle position to the edge, the camera automatically switches from the telephoto camera to the main camera, as shown in the figure. Figure 20As shown, switch to the ultra-wide-angle camera for cropping; at this time, it is very likely that the subject will move out of the camera's field of view, and the user needs to adjust the shooting angle in advance according to the subject's movement status.
[0172] It should be noted that the above camera switching is based on the full body ratio. Two examples are given to illustrate the camera switching, and not all scenes are exhaustive. The camera switching rules for all scenes are judged and switched according to the above description. When "half body" is selected, the above distance range is shortened to approximately 0.6 times that of "full body". Selecting the "close-up" ratio generally calls for a telephoto lens.
[0173] It should be noted that due to the different optical properties of different cameras, there will be slight parallax jumps in a few frames during the switching process. Although the parallax can be greatly reduced through effect debugging, making it less noticeable to the user, it is impossible to completely avoid the entire problem. Therefore, the shooting method provided in the embodiment of the application also provides a zoom function based on a single camera and a locked lens.
[0174] Specifically, if Figure 21 If you only want to take a single shot with automatic composition, you can click a magnification before composing the picture, and then click Figure 22 34 in the Lock Lens control. For example, if the main camera is currently selected with a 1x zoom, clicking the Lock Lens control 34 will crop the image based on the main camera. This feature requires the user to determine the appropriate zoom for the subject, so that the lens selected based on the zoom setting can achieve the best image quality.
[0175] In this way, the electronic device can automatically adjust the composition ratio of the first object in the shooting picture according to the selected composition mode, ensuring that the position and ratio of the subject in the picture conform to the preset composition model, thereby improving the composition effect of the shooting picture.
[0176] Optionally, in an embodiment of the present application, the “capturing and obtaining a first video containing the first object” in the above step 202 can be specifically implemented through the following steps 202d and 202e.
[0177] Step 202d: The electronic device controls the first camera to start shooting video.
[0178] Optionally, in the embodiment of the present application, the first camera may be a default setting of the electronic device or a user-preset setting. For example, the first camera may be a main camera. The specific setting may be determined based on actual usage requirements and is not limited by the embodiment of the present application.
[0179] Optionally, in an embodiment of the present application, after the user selects the object to be framed and inputs a shooting command to the electronic device, the electronic device may start shooting a video using the first camera.
[0180] Step 202e: During the video shooting process, the electronic device adjusts the camera and shooting magnification used for shooting based on the first composition parameter to shoot a first video containing the first object.
[0181] Optionally, in an embodiment of the present application, during video capture, the electronic device can monitor the composition parameters of a first object in the captured image in real time and automatically adjust the camera used for capture and the shooting magnification based on the composition parameters of the first object in the captured image, including switching cameras and adjusting the zoom factor, to maintain the composition effect. After the user stops capturing, the electronic device saves the captured first video, in which the composition of the first object in the first video meets the preset composition conditions.
[0182] In this way, the electronic device can start shooting from the first camera and adjust the camera and shooting magnification used for shooting in real time according to the composition parameters of the first object, so that the appropriate camera and shooting magnification can be selected in real time for shooting, so that the first object presents the best composition effect in each shooting frame of the video, thereby improving the shooting effect.
[0183] Optionally, in the embodiment of the present application, the above step 202e can be specifically implemented through the following step 202e1.
[0184] Step 202e1: When the first composition parameter does not meet the preset composition condition, the electronic device adjusts the camera and shooting magnification used for shooting based on the first composition parameter to shoot a first video containing the first object.
[0185] The fact that the first composition parameter does not satisfy the preset composition condition includes at least one of the following: the first object is not in the current shooting picture, and the camera currently used for shooting is not the camera with the largest focal length among the cameras that can completely shoot the first object.
[0186] Optionally, in an embodiment of the present application, the electronic device can monitor the composition parameters of the first object in the captured image in real time. If it detects that the composition parameters do not meet preset composition conditions, that is, if the subject has left the image or a more suitable camera is available, the electronic device can automatically switch to the appropriate camera and adjust the shooting magnification to compose the image. After the user stops shooting, the electronic device saves the first video captured, in which the composition of the first object meets the preset composition conditions.
[0187] In this way, the electronic device can monitor the composition parameters in the shooting picture in real time, and when it detects that the subject leaves the picture or a more suitable camera is available, it automatically switches the camera and adjusts the shooting magnification to ensure that the shooting picture always meets the composition requirements, so that the appropriate camera and shooting magnification can be selected in real time for shooting, so that the first object presents the best composition effect in each shooting picture of the video, thereby improving the shooting effect.
[0188] Optionally, in an embodiment of the present application, the above step 202e can be specifically implemented through the following steps 202e2 and 202e3.
[0189] Step 202e2: The electronic device switches to shooting with the second camera based on the first composition parameter.
[0190] In the embodiment of the present application, the second camera is the camera with the largest focal length among the cameras that can fully photograph the first object.
[0191] Optionally, in an embodiment of the present application, if the first composition parameter in the current image does not meet the preset composition condition, the electronic device may determine that the currently used first camera does not meet the composition requirement, and thus the electronic device may use the camera with the largest focal length among the cameras that can fully capture the first object as the shooting camera, i.e., the second camera. In this way, the electronic device can use the camera with the largest focal length as much as possible while ensuring that the subject is fully in the frame, thereby improving the clarity of the first object.
[0192] Step 202e3: The electronic device determines a first shooting magnification based on the proportion of the first object in the picture taken by the second camera, and uses the first shooting magnification and the position of the first object in the picture taken by the second camera to adjust the picture taken by the second camera for zooming, and captures a first video containing the first object.
[0193] Optionally, in an embodiment of the present application, the electronic device may determine an appropriate capture magnification based on the proportion of the first object in the image. Specifically, the electronic device may multiply the ratio of the size of the first object to the size of the image by a preset ratio to obtain the first capture magnification. The size may be length, width, area, etc.
[0194] Optionally, in an embodiment of the present application, after determining the first shooting magnification, the electronic device can use the first shooting magnification to scale the position of the first object in the captured image, thereby scaling the first object to the center of the captured image, thereby achieving a better composition effect. If the user clicks the shooting control again or stops shooting the video by other means, the electronic device stops shooting and obtains the first video that completely includes the first object.
[0195] In this way, during the video shooting process, the electronic device can continuously adjust the camera and shooting magnification and zoom, so that the position and proportion of the subject in the picture always meet the composition requirements, and finally obtain the first video that composes the first object, thereby improving the shooting effect.
[0196] Optionally, in an embodiment of the present application, the shooting method provided in the embodiment of the present application further includes the following steps 501 to 503.
[0197] Step 501: When the electronic device is shooting a first video, if the shooting preview interface includes a second object, the electronic device receives a third input on the second object.
[0198] In the embodiment of the present application, the third input is used to trigger the electronic device to track and photograph the second object.
[0199] Optionally, in the embodiment of the present application, the third input may be any form of input by the user to the second object.
[0200] Exemplarily, the third input may be a single-click input, a short-press input, a long-press input, or a single-click gesture of the user on the second object, and the embodiment of the present application does not limit this.
[0201] Optionally, in an embodiment of the present application, in addition to the original first object, other objects may appear in the captured image of the electronic device. For example, while filming a child playing, another child walks into the frame. In this case, the user can select this newly appeared second object by touching the screen or using a third input method. The electronic device can receive the user's third input and track and film the second object.
[0202] Step 502: The electronic device determines a second object and a second composition parameter of the second object in response to a third input.
[0203] In the embodiment of the present application, the second composition parameter is a composition parameter of the second object.
[0204] Step 503: The electronic device shoots the second object based on the second composition parameter to obtain a first video including the first object and the second object.
[0205] Optionally, in an embodiment of the present application, during the process of framing a first object in a video, the user may wish to switch to framing a second object in the captured image. The electronic device may accept a third input from the user regarding the second object, switch from framing the first object to framing the second object, and continue filming. If the user clicks the capture control again or stops capturing the video in other ways, the electronic device stops capturing, resulting in the first video framing the first object and switching midway to framing the second object.
[0206] For example, Figure 23 As shown, the shooting preview interface includes a person 35 and a person 36. During the shooting process of composing the person 35, if the user wants to compose the person 36, the user can click on the person 36. Figure 24 As shown, the electronic device locks the character 36, as shown Figure 25 As shown, the image is switched to composing the person 36 .
[0207] In an embodiment of the present application, during the shooting process, when other targets appear in the picture and you want to change the subject, you only need to double-click another target to complete the subject switching, and automatically compose and track the new subject by smoothly zooming and automatically switching the lens according to the distance.
[0208] In this way, when there are other objects besides the first object in the shooting picture, the user can select the object through a simple input operation to trigger the electronic device to automatically switch the camera, adjust the focal length, crop the picture, etc. according to the preset composition model, ensuring that the position and proportion of the newly selected object in the picture conform to the preset composition model, so that the electronic device can flexibly switch the object for composition during the shooting process, thereby improving the flexibility of shooting.
[0209] Optionally, in an embodiment of the present application, the shooting method provided in the embodiment of the present application further includes the following steps 601 and 602, or includes the following steps 601 and 603.
[0210] Step 601: During the process of shooting a first video, when a first object disappears from the shooting screen, the electronic device displays a third prompt message.
[0211] In the embodiment of the present application, the third prompt information is used to prompt that the first object is being detected.
[0212] Exemplarily, the third prompt information may be: “Detecting tracking subject”.
[0213] Optionally, in an embodiment of the present application, the electronic device can detect the presence status of the first object in real time. If the first object leaves the shooting screen due to movement or obstruction, the electronic device can immediately detect this change and display a third prompt message on the screen to inform the user that the current electronic device is trying to re-detect the object.
[0214] For example, Figure 26 As shown, assuming that the first object leaves the shooting screen, the electronic device can display the third prompt information 37 in the shooting preview interface 20.
[0215] Step 602: When the first object is detected within the preset time period, the electronic device activates a default composition mode and displays a fourth prompt message.
[0216] In the embodiment of the present application, the above-mentioned default composition mode means that the electronic device cancels the cropping and scaling of the shooting picture and restores it to the default shooting picture.
[0217] In the embodiment of the present application, the fourth prompt information is used to prompt to lock the shooting object.
[0218] For example, the fourth prompt message may be: “Click the focus frame to lock the tracking subject.”
[0219] In the embodiment of the present application, the preset time period is used for the electronic device to re-monitor the first object.
[0220] Optionally, in the embodiment of the present application, the above-mentioned preset duration can be a default duration of the electronic device or a preset duration of the user. For example, the above-mentioned preset duration can be 2 seconds. The specific duration can be determined according to actual use requirements and is not limited by the embodiment of the present application.
[0221] Optionally, in an embodiment of the present application, after the electronic device displays the third prompt information, if the electronic device re-monitors the first object within a preset time period, the electronic device can automatically switch to the default composition mode and display a fourth prompt information to prompt the user to lock the first object.
[0222] For example, Figure 28 As shown, assuming that the first object leaves the shooting screen and returns to the shooting screen within a preset time period, the electronic device can display the fourth prompt information 39 in the shooting preview interface 20.
[0223] Step 603: If the first object is not detected within the preset time period, the electronic device displays a fifth prompt message.
[0224] In the embodiment of the present application, the fifth prompt information is used to prompt that the first object disappears from the shooting screen.
[0225] Exemplarily, the fifth prompt information may be: “The tracking subject has been lost.”
[0226] Optionally, in an embodiment of the present application, during the shooting process, if the first subject temporarily leaves the shooting screen and does not return within a preset time period, the electronic device can display a fifth prompt message to inform the user that the subject has disappeared.
[0227] For example, Figure 27 As shown, assuming that the first subject leaves the shooting screen and does not return to the shooting screen within a preset time period, the electronic device can display a fifth prompt message 38 in the shooting preview interface 20.
[0228] In this embodiment of the present application, during filming, if the subject moves violently, the subject may be lost. If the subject leaves the frame for less than 2 seconds, the algorithm will continue to detect the original subject and prompt "Detecting Tracking Subject." If the original subject returns to the frame within 2 seconds, the prompt "Please lock the tracking subject" will be displayed. If the subject is not detected for more than 2 seconds, the prompt "Tracking Subject Lost" will be displayed.
[0229] In this way, electronic devices can help users understand the shooting status in a timely manner by displaying prompt information, making it easier for users to adjust the shooting angle or position and perform operations, ensuring that the subject can return to the picture and continue to be tracked, thereby reducing shooting interruptions caused by the loss of the subject and improving the success rate of shooting.
[0230] The embodiment of the present application provides an automatic composition function of optical zoom based on multi-camera SAT. After it is turned on, when the subject moves in the picture, it can help the user to automatically compose and automatically switch the focal length, so that the subject can continue to remain in the center of the picture and the same picture ratio without going out of the frame; it solves the problems of the user being unable to follow the subject's movement in time when recording, poor composition, and unsmooth manual zoom composition. At the same time, it can realize camera switching and smooth cropping, effectively improving clarity and pixel output capacity, and taking into account both image quality and shooting experience.
[0231] The core innovation of the shooting method provided in the embodiment of the present application lies in the design of an automatic composition function, which can realize automatic subject recognition and tracking and support manual selection of any subject for tracking and switching of subjects; after subject tracking, the center composition capability of automatic following is realized, and the user can manually switch the proportion of the person in the automatic composition, such as full body, half body, and close-up; support intelligent zoom shooting, when the subject walks in or out, it can smoothly zoom and SAT switch the lens for shooting according to the proportion and position of the person in the picture (when the subject occupies a large part of the picture (close), it automatically switches to wide-angle shooting; when the subject occupies a small part of the picture (far away), it switches to telephoto lens shooting).
[0232] In the embodiment of the present application, the electronic device can realize the complete product function of automatic video composition. After it is turned on, the subject can be manually selected, the subject can be centered and the camera can be switched, so that the user does not need to worry about the composition of the picture in scenes such as parent-child and sports, and can focus on the shooting content to obtain the ideal video picture.
[0233] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more of them 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.
[0234] The following is an illustration of the execution process of the shooting method provided by the embodiment of the present application through a specific application scenario. Figure 29 As shown, the shooting method provided in the embodiment of the present application may include the following steps 10 to 16.
[0235] Step 10: The user opens the camera and clicks the composition control to trigger the electronic device to enter the composition mode.
[0236] Step 11: The user selects a subject in the image captured by the electronic device, triggering the electronic device to lock the subject.
[0237] Step 12: The user selects a composition ratio of the subject, triggering the electronic device to switch the composition ratio.
[0238] Step 13: The user selects whether to use a single camera for zooming.
[0239] Step 14: During the shooting process, the electronic device switches the lens and zooms according to the position of the subject and the proportion of the subject occupying the screen.
[0240] Step 15: During the shooting process, the user selects another subject in the picture, causing the electronic device to switch subjects.
[0241] Step 16: When the subject is lost, the electronic device continues to detect the subject.
[0242] The shooting method provided in the embodiment of the present application can be executed by a shooting device. In the embodiment of the present application, the shooting method is executed by a shooting device as an example to illustrate the shooting device provided in the embodiment of the present application.
[0243] Figure 30 FIG. 1 shows a possible structural diagram of a shooting device involved in some embodiments of the present application. Figure 30 As shown, the shooting device 70 may include: a receiving module 71 , a determining module 72 and a shooting module 73 .
[0244] The receiving module 71 is configured to receive a first input to the shooting preview interface.
[0245] The determining module 72 is configured to determine a first object and a first composition parameter in response to the first input received by the receiving module, where the first composition parameter is a composition parameter of the first object.
[0246] The shooting module 73 is used to shoot the first object based on the first composition parameter determined by the determination module to obtain a first video; wherein, during the process of shooting the first video, the composition of the first object in the shooting picture meets the first composition parameter.
[0247] In one possible implementation, the shooting preview interface further includes a first control. The shooting device provided in the embodiment of the present application further includes: a processing module. The receiving module 71 is further configured to receive a second input to the first control before receiving the first input in the shooting preview interface. The processing module is configured to start the composition mode in response to the second input received by the receiving module 71. The shooting module 73 is specifically configured to: in response to the first input received by the receiving module 71, shoot the first object based on the first composition parameter in the composition mode to obtain a first video.
[0248] In one possible implementation, the shooting preview interface includes at least one object, including a first object. The shooting device provided in an embodiment of the present application further includes a display module. The display module is configured to display a first prompt message and at least one prompt box before the receiving module 71 receives the first input in the shooting preview interface. The first prompt message is configured to prompt the user to lock the object, and the area selected in each prompt box is the area where an object is located.
[0249] In one possible implementation, the shooting device provided in an embodiment of the present application further includes a display module. The display module is configured to display a second prompt message and a composition prompt window before the shooting module 73 captures a first video containing the first object, wherein the second prompt message indicates that the first object is locked, and the composition prompt window displays an overall view of the captured image and a composition view of the first object.
[0250] In one possible implementation, the display module is specifically configured to, in response to a selection input of a first object in the shooting preview interface received by the receiving module 71, determine the first object and display a second prompt message; and, in response to a selection input of a composition mode in the shooting preview interface received by the receiving module 71, determine first composition parameters and display a composition prompt window. The capture module 73 is specifically configured to, in response to the capture input, track and capture the first object based on the first composition parameters to obtain a first video containing the first object.
[0251] In a possible implementation, the composition mode includes any one of the following: full body mode, half body mode, and close-up mode.
[0252] In one possible implementation, the shooting module 73 is specifically used to: control the first camera to start shooting video; and, during the video shooting process, adjust the camera and shooting magnification used for shooting based on the first composition parameter to shoot a first video containing the first object.
[0253] In one possible implementation, the capture module 73 is specifically configured to, if the first composition parameter does not satisfy a preset composition condition, adjust the camera used for capture and the capture magnification based on the first composition parameter to capture a first video containing the first object. The fact that the composition parameter does not satisfy the preset composition condition includes at least one of the following: the first object is not in the current capture frame, or the camera currently used for capture is not a camera with the largest focal length that can fully capture the first object.
[0254] In one possible implementation, the receiving module 71 is further configured to, during the process of shooting the first video, receive a third input regarding the second object if the shooting preview interface includes the second object. The determining module 72 is further configured to, in response to the third input received by the receiving module 71, determine the second object and second composition parameters of the second object. The capturing module 73 is further configured to capture the second object based on the second composition parameters to obtain a first video including the first and second objects.
[0255] In one possible implementation, the shooting device provided in an embodiment of the present application further includes a display module. The display module is configured to: during the shooting of the first video, if a first object is detected to have disappeared from the shooting image, display a third prompt message, the third prompt message being used to indicate that the first object is being detected; if the first object is detected within a preset time period, activate a default composition mode and display a fourth prompt message, the fourth prompt message being used to indicate that the shooting object is locked; or if the first object is not detected within the preset time period, display a fifth prompt message, the fifth prompt message being used to indicate that the first object has disappeared from the shooting image.
[0256] In an embodiment of the present application, a shooting device is provided. By inputting into a shooting preview interface, the shooting device can be triggered to determine a first object and a first composition parameter. Then, based on the first composition parameter, the first object is shot to obtain a video containing the first object and whose composition in the shooting picture satisfies the first composition parameter. That is, a video with an automatically composed image of the object can be obtained, and a video with an excellent composition can be obtained without manual composition or zooming, thereby improving the shooting effect of the shooting device.
[0257] The 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 (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), 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.
[0258] The shooting device in the embodiment of the present application may be a device having an operating system. The operating system may 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.
[0259] The shooting device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.
[0260] Alternatively, as Figure 31 As shown, an embodiment of the present application further provides an electronic device 1000, including a processor 1001 and a memory 1002, wherein the memory 1002 stores a program or instruction that can be run on the processor 1001, and when the program or instruction is executed by the processor 1001, each step of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0261] 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.
[0262] Figure 32 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0263] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101 , a network module 102 , an audio output unit 103 , an input unit 104 , a sensor 105 , a display unit 106 , a user input unit 107 , an interface unit 108 , a memory 109 , and a processor 110 .
[0264] Those skilled in the art will understand that the electronic device 100 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 110 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 32 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.
[0265] The user input unit 107 is used to receive a first input on a first object in the shooting preview interface.
[0266] The processor 110 is configured to determine a first object and a first composition parameter in response to a first input received by the receiving module, where the first composition parameter is a composition parameter of the first object.
[0267] The processor 110 is configured to shoot a first object based on a first composition parameter determined by the determination module to obtain a first video; wherein, during the shooting of the first video, the composition of the first object in the shooting picture satisfies the first composition parameter.
[0268] Optionally, the shooting preview interface further includes a first control. The user input unit 107 is further configured to receive a second input to the first control before receiving the first input in the shooting preview interface. The processor 110 is configured to initiate a composition mode in response to the second input. The processor 110 is specifically configured to, in response to the first input, capture the first object in the composition mode based on the first composition parameter to obtain a first video.
[0269] Optionally, the shooting preview interface includes at least one object, the at least one object including a first object. The display unit 106 is configured to display a first prompt message and at least one prompt box before receiving a first input in the shooting preview interface, the first prompt message being configured to prompt a user to lock the object, and the area selected in each prompt box being an area where an object is located.
[0270] Optionally, the above-mentioned display unit 106 is used to display a second prompt information and a composition prompt window before shooting a first video containing the first object, wherein the second prompt information is used to prompt that the first object is in a locked state, and the composition prompt window is used to display the global picture of the shooting picture and the composition picture of the first object.
[0271] Optionally, the display unit 106 is specifically configured to, in response to a selection input of a first object in the shooting preview interface, determine the first object and display a second prompt; and, in response to a selection input of a composition mode in the shooting preview interface, determine first composition parameters and display a composition prompt window. The processor 110 is specifically configured to, in response to the shooting input, track and shoot the first object based on the first composition parameters to obtain a first video containing the first object.
[0272] Optionally, the composition mode includes any one of the following: full body mode, half body mode and close-up mode.
[0273] Optionally, the processor 110 is specifically configured to: control the first camera to start shooting a video; and, during the video shooting process, adjust the camera and shooting magnification used for shooting based on the first composition parameter to shoot a first video containing the first object.
[0274] Optionally, the processor 110 is specifically configured to, if the first composition parameter does not satisfy a preset composition condition, adjust the camera used for shooting and the shooting magnification based on the first composition parameter to capture a first video containing the first object. The fact that the composition parameter does not satisfy the preset composition condition includes at least one of the following: the first object is not in the current shooting frame, and the camera currently used for shooting is not a camera with the largest focal length that can fully capture the first object.
[0275] Optionally, the user input unit 107 is further configured to receive a third input regarding the second object if the shooting preview interface includes the second object during the shooting of the first video. The processor 110 is further configured to determine the second object and second composition parameters of the second object in response to the third input. The processor 110 is further configured to shoot the second object based on the second composition parameters to obtain a first video including the first object and the second object.
[0276] Optionally, the above-mentioned display unit 106 is used to: during the process of shooting the first video, when it is detected that the first object disappears from the shooting screen, display a third prompt message, and the third prompt message is used to prompt that the first object is being detected; when the first object is detected within a preset time period, start the default composition mode and display a fourth prompt message, and the fourth prompt message is used to prompt that the shooting object is locked; or, when the first object is not detected within the preset time period, display a fifth prompt message, and the fifth prompt message is used to prompt that the first object disappears from the shooting screen.
[0277] An embodiment of the present application provides an electronic device, which can trigger the electronic device to determine a first object and a first composition parameter by inputting into a shooting preview interface, and then shoot the first object based on the first composition parameter to obtain a video containing the first object and whose composition in the shooting picture satisfies the first composition parameter. That is, a video with the object automatically composed can be obtained, and a video with excellent composition can be shot without manual composition or zooming, thereby improving the shooting effect of the electronic device.
[0278] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here. The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, it will not be repeated here.
[0279] It should be understood that in an embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 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 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 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 an operating stick, which will not be repeated here.
[0280] The memory 109 can be used to store software programs and various data. The memory 109 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 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. 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 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0281] Processor 110 may include one or more processing units. Optionally, processor 110 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 110.
[0282] 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 shooting method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0283] 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.
[0284] 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 shooting method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0285] 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.
[0286] 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 shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0287] 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.
[0288] 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.
[0289] 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 shooting method, characterized in that: include: receiving a first input to the shooting preview interface; In response to the first input, determining a first object and a first composition parameter, wherein the first composition parameter is a composition parameter of the first object; The first object is photographed based on the first composition parameters to obtain a first video; wherein, during the process of photographing the first video, the composition of the first object in the photographing picture satisfies the first composition parameters.
2. The method according to claim 1, characterized in that The shooting preview interface includes a first control; Before receiving the first input on the shooting preview interface, the method further includes: receiving a second input to the first control; In response to the second input, initiating a composition mode; The step of photographing the first object based on the first composition parameter to obtain a first video includes: In response to the first input, the first object is photographed based on the first composition parameter in the composition mode to obtain a first video.
3. The method according to claim 1, characterized in that The shooting preview interface includes at least one object, and the at least one object includes the first object; Before receiving the first input to the shooting preview interface, the method further includes: A first prompt message and at least one prompt box are displayed, wherein the first prompt message is used to prompt the user to lock the object, and the area selected by each prompt box is the area where an object is located.
4. The method according to claim 1, wherein Before photographing the first object based on the first composition parameter to obtain the first video, the method further includes: A second prompt message and a composition prompt window are displayed, wherein the second prompt message is used to prompt that the first object is in a locked state, and the composition prompt window is used to display the global picture of the shooting picture and the composition picture of the first object.
5. The method according to claim 4, characterized in that The determining of the first object and the first composition parameter in response to the first input includes: In response to a selection input of a first object in the shooting preview interface, determining the first object and displaying the second prompt information; In response to a selection input of a composition mode in the shooting preview interface, determining the first composition parameter and displaying the composition prompt window; The step of photographing the first object based on the first composition parameter to obtain a first video includes: In response to a shooting input, the first object is tracked and shot based on the first composition parameter to obtain a first video containing the first object.
6. The method according to claim 5, characterized in that The composition mode includes any one of the following: full body mode, half body mode and close-up mode.
7. The method according to claim 1, characterized in that The step of photographing the first object based on the first composition parameter to obtain a first video includes: Control the first camera to start shooting video; During the video shooting process, the camera and shooting magnification used for shooting are adjusted based on the first composition parameters to shoot a first video containing the first object.
8. The method according to claim 7, characterized in that The adjusting, based on the first composition parameter, a camera and a shooting magnification used for shooting to obtain a first video containing the first object includes: If the first composition parameter does not satisfy a preset composition condition, adjusting a camera and a shooting magnification used for shooting based on the first composition parameter to shoot a first video containing the first object; The fact that the first composition parameter does not satisfy the preset composition condition includes at least one of the following: the first object is not in the current shooting picture, and the camera currently used for shooting is not the camera with the largest focal length among the cameras that can completely shoot the first object.
9. The method according to claim 1, characterized in that The method further comprises: During the process of shooting the first video, if the shooting preview interface includes a second object, receiving a third input on the second object; In response to the third input, determining the second object and a second composition parameter of the second object; The second object is photographed based on the second composition parameter to obtain a first video including the first object and the second object.
10. The method according to claim 1, characterized in that The method further comprises: During the process of shooting the first video, if the first object disappears from the shooting screen, displaying third prompt information, wherein the third prompt information is used to prompt that the first object is being detected; When the first object is detected within a preset time period, a default composition mode is activated and a fourth prompt message is displayed, wherein the fourth prompt message is used to prompt the user to lock the photographed object; or When the first object is not detected within a preset time period, fifth prompt information is displayed, where the fifth prompt information is used to prompt that the first object disappears from the shooting screen.
11. A photographing device, characterized in that: include: Receiving module, determining module and shooting module; The receiving module is configured to receive a first input to the shooting preview interface; The determining module is configured to determine a first object and a first composition parameter in response to the first input received by the receiving module, wherein the first composition parameter is a composition parameter of the first object; The shooting module is used to shoot the first object based on the first composition parameters determined by the determination module to obtain a first video; wherein, during the process of shooting the first video, the composition of the first object in the shooting picture meets the first composition parameters.
12. The device according to claim 11, characterized in that The shooting preview interface also includes a first control; The shooting device further includes: a processing module; The receiving module is further configured to receive a second input to the first control before receiving a first input to the shooting preview interface; The processing module is configured to start a composition mode in response to the second input received by the receiving module; The shooting module is specifically used for: In response to the first input received by the receiving module, the first object is photographed based on the first composition parameter in the composition mode to obtain the first video.
13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein 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 shooting method according to any one of claims 1 to 10 are implemented.
14. A readable storage medium, characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the shooting method according to any one of claims 1 to 10 are implemented.
15. A computer program product, characterized in that The program product is stored in a storage medium, and is executed by at least one processor to implement the shooting method according to any one of claims 1 to 10.