Video shooting method and device and electronic equipment

By responding to air-distance gestures and using multi-camera fusion technology, the problem of inconsistent equipment jitter and direction speed during underwater shooting is solved, and efficient video recording and easy operation is achieved.

CN119254911APending Publication Date: 2025-01-03VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411543437.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

When taking photos of a group video of a diving figure and a moving object underwater, improper operation of the user may cause electronic equipment to shake or inconsistent movement direction and speed of the diving figure and the moving object, resulting in the camera being unable to record the video correctly, which is inefficient.

Method used

By responding to the user's air gestures, using the first and second rear cameras to record videos of moving objects and diving objects respectively, and fuse them, avoiding the user's need to manually adjust the camera direction and speed, and simplifying the operation process.

Benefits of technology

It improves the ease and efficiency of electronic devices when shooting videos underwater, ensures that the group videos of diving characters and sports objects can be accurately recorded, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254911A_ABST
    Figure CN119254911A_ABST
Patent Text Reader

Abstract

The invention discloses a video shooting method and device and electronic equipment, and belongs to the technical field of video processing. The video shooting method provided by the embodiment of the invention comprises the following steps: in an underwater shooting mode, in response to a first air gesture, recording a moving object video through a first rear camera, and recording a diving object video through a second rear camera; the moving object video comprises a moving object, and the diving object video comprises a diving figure; and performing video fusion on the diving object video and the moving object video, and outputting an underwater video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of video technology, and specifically relates to a video shooting method, device and electronic equipment. Background Art

[0002] Typically, when a user wants to use an electronic device to take a group photo video of a diver and a moving object underwater, the user can first instruct the diver to move in the same direction and speed as the moving object, and then point the camera of the electronic device toward the diver and the moving object, and press input on the electronic device so that the camera of the electronic device can start recording the group photo video of the diver and the moving object.

[0003] However, since the electronic device may shake due to the user's pressing input on the electronic device, or at least one of the movement direction and movement speed of the diving person and the moving object may be inconsistent, this may cause the camera to be unable to point to the diving person and the moving object, resulting in the camera being unable to record the group photo video of the diving person and the moving object. In this case, the user may need to repeat the above steps multiple times before the electronic device can record the group photo video of the diving person and the moving object. This results in low efficiency of the electronic device in recording the video required by the user. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a video shooting method, device and electronic device, which can avoid the situation where the electronic device is shaken due to the user pressing input on the electronic device, and avoid the situation where at least one of the movement direction and movement speed of the diving person and the moving object is inconsistent, so as to avoid the first rear camera and the second rear camera being unable to face the diving person and the moving object, thereby simplifying the user's operation in the process of the electronic device recording a group photo video of the diving person and the moving object, thereby improving the efficiency of the electronic device in shooting the video required by the user.

[0005] In a first aspect, an embodiment of the present application provides a video shooting method, the method comprising: in an underwater shooting mode, the electronic device records a moving object video through a first rear camera and a diving object video through a second rear camera in response to a first air gesture; the moving object video includes the moving object, and the diving object video includes a diving person; and the diving object video and the moving object video are fused to output an underwater video.

[0006] In a second aspect, an embodiment of the present application provides a video shooting device, the video shooting device comprising: a recording module, for recording a moving object video through a first rear camera and a diving object video through a second rear camera in response to a first air gesture in an underwater shooting mode; the moving object video includes a moving object, and the diving object video includes a diving person. A processing module, for performing video fusion on the diving object video and the moving object video recorded by the recording module, and outputting an underwater video.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program 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, and 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, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of 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 is executed by at least one processor to implement the steps of the method described in the first aspect.

[0011] In an embodiment of the present application, in an underwater shooting mode, the electronic device can record a moving object video through the first rear camera and a diving object video through the second rear camera according to a first air gesture, wherein the moving object video includes the moving object, and the diving object video includes a diving person. Thus, the electronic device can fuse the diving object video and the moving object video to output an underwater video. Since the user performs the first air gesture relative to the electronic device, the electronic device can be triggered to record a video without the user having to press input to the electronic device. Therefore, the situation in which the electronic device shakes due to the user pressing input to the electronic device can be avoided, so as to avoid the first rear camera and the second rear camera being unable to face the diving person and the moving object. Furthermore, the electronic device can record the diving object video and the moving object video respectively through different first rear cameras and second rear cameras, and perform video fusion based on the diving object video and the moving object video to directly obtain the underwater video, that is, directly obtain the group photo video of the diving person and the moving object, without the user instructing the diving person to move in the same direction and speed as the moving object, thus avoiding the situation where the first rear camera and the second rear camera cannot be directed to the diving person and the moving object due to at least one inconsistency between the direction and speed of movement of the diving person and the moving object. This can simplify the user's operation in the process of the electronic device recording the group photo video of the diving person and the moving object, thus improving the efficiency of the electronic device in capturing the video required by the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a flowchart of a video shooting method provided by some embodiments of the present application;

[0013] Figure 2 is a schematic diagram of the structure of an electronic device in a video shooting method provided by some embodiments of the present application;

[0014] Figure 3A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0015] Figure 3B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0016] Figure 3C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0017] Figure 4 is a flowchart of a video shooting method provided by some embodiments of the present application;

[0018] Figure 5is a flowchart of a video shooting method provided by some embodiments of the present application;

[0019] Fig. 6A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0020] Figure 6B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0021] Fig. 7A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0022] Figure 7B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0023] Fig. 8A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0024] Figure 8B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0025] Fig. 9A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0026] Fig. 9B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0027] Fig.10 is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0028] Fig.11 is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0029] Fig. 12A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0030] Fig. 12B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0031] Fig.13A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0032] Fig. 13B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0033] Fig.14 is a flowchart of a video shooting method provided by some embodiments of the present application;

[0034] Fig.15A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0035] Fig. 15B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0036] Fig. 15C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0037] Fig.15D is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0038] Fig.16A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0039] Fig. 16B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0040] Fig. 16C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0041] Fig.16D is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0042] Fig.17A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0043] Fig. 17B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0044] Fig. 17C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0045] Fig.17D is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0046] Fig.18A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0047] Fig.18B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0048] Fig.18C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0049] Fig.18D is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0050] Fig.19A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0051] Fig.19B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0052] Fig.19C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0053] Fig. 20A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0054] Fig. 20B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0055] Fig. 20C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0056] Fig.21A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0057] Fig.21B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0058] Fig.22A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0059] Fig. 22B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0060] Fig.23A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0061] Fig. 23B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0062] Fig.24A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0063] Fig. 24B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0064] Fig.25A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0065] Fig.25B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0066] Fig.25C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0067] Fig.25D is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0068] Fig.26A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0069] Fig.26B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0070] Fig.26C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0071] Fig.26D is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0072] Fig.27A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0073] Fig.27B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0074] Fig.27C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0075] Fig.27D is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0076] Fig.28A is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0077] Fig.28B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0078] Fig.28C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0079] Fig.28D is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0080] Fig.29 is a flowchart of a video shooting method provided by some embodiments of the present application;

[0081] Fig. 30Ais a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0082] Fig. 30B is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0083] Fig. 30C is a schematic diagram of a mobile phone interface provided by some embodiments of the present application;

[0084] Fig.31 is a schematic diagram of the structure of a video shooting device provided in some embodiments of the present application;

[0085] Fig.32 is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application;

[0086] Fig.33 It is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0087] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0088] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0089] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) 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 (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0090] The professional terms involved in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.

[0091] 1. Air gestures

[0092] An air gesture refers to a gesture made by a user to an electronic device without touching the electronic device. The electronic device can recognize the user's air gesture to the electronic device through a camera and detect the gesture information of the air gesture, so that the electronic device can perform corresponding operations based on the gesture information.

[0093] Among them, the gesture information may include any attribute information of the air gesture, such as the air gesture speed, the air gesture trajectory, the distance between the air gesture starting point and the air gesture end point, the vertical air gesture distance, the horizontal air gesture distance, the air gesture direction, the air gesture frequency, etc.

[0094] 2. Logo

[0095] An identifier is a symbol, sign or mark that can represent or distinguish a thing or group. Usually, an identifier can be text, graphics, numbers, etc. The identifier in this application is a text, symbol, image, etc. used to indicate information, and can be a control or other container as a carrier for displaying information, including but not limited to text identifiers, symbol identifiers, and image identifiers.

[0096] The video shooting method, device and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0097] It should be noted that the video shooting method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, and vehicle-mounted electronic devices. In some embodiments of the present application, the video shooting method provided in the embodiments of the present application is described by taking the electronic device as the execution subject to execute the video shooting method as an example.

[0098] The video shooting method provided in the embodiments of the present application can be applied to video shooting scenarios, wherein one specific application scenario is the underwater shooting of a group video of a diver and underwater moving creatures, and another specific application scenario is the underwater shooting of a group video of a diver and underwater moving objects.

[0099] In a scene of shooting a group photo video of a diving person and underwater moving creatures, it is assumed that the underwater moving creatures include multiple schools of fish. The user wants to shoot a group photo video of the diving person and one of the multiple schools of fish, and wants the one school of fish to move in the group photo video with a movement trajectory required by the user, and wants the camera of the electronic device to record the group photo video with the recording parameters required by the user. At this time, the video shooting method provided in the embodiment of the present application can be used to shoot the group photo video.

[0100] In the scenario of shooting a group photo video of a diving person and an underwater moving object underwater, it is assumed that the underwater moving creatures include multiple underwater moving objects. The user wants to shoot a group photo video of one of the multiple underwater moving objects, and wants the underwater moving object to move in the group photo video with a motion trajectory required by the user, and wants the camera of the electronic device to record the group photo video with the recording parameters required by the user. At this time, the video shooting method provided in the embodiment of the present application can be used to shoot the group photo video.

[0101] Figure 1 FIG. 1 is a flow chart of a video shooting method provided by an embodiment of the present application. Figure 1 As shown, the video shooting method provided in the embodiment of the present application may include the following steps 101 and 102.

[0102] Step 101: In underwater shooting mode, the electronic device records a video of a moving object through a first rear camera and a video of a diving object through a second rear camera in response to a first air gesture.

[0103] In some embodiments of the present application, the first rear camera may be a rotatable camera, such as a periscope camera. The first rear camera and the second rear camera are disposed on the same surface of the electronic device. For example, the first rear camera and the second rear camera may be disposed on the back of the electronic device. It should be noted that the “back of the electronic device” may be understood as the side opposite to the side where the display screen of the electronic device is located.

[0104] For example, a mobile phone is used as an example. Figure 2 As shown, a first rear camera 11 and a second rear camera 12 are arranged on the back of the mobile phone 10, wherein the back of the mobile phone 10 can be understood as the side opposite to the side where the display screen of the mobile phone 10 is located.

[0105] In some embodiments of the present application, the first air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, or an air gesture in which the user's hand is in a specific posture. For example, the first air gesture may be an air gesture in which the user's hand makes a "fist".

[0106] In the embodiment of the present application, the moving object video includes a moving object, and the diving object video includes a diving person.

[0107] In some embodiments of the present application, the moving object may be a moving object in the field of view of the first rear camera. Wherein, when the field of view of the first rear camera includes a plurality of moving objects, the moving object may be the object closest to the first rear camera, the object farthest from the first rear camera, or an object selected by a user.

[0108] In some embodiments of the present application, the above-mentioned moving object may include at least one object.

[0109] In some embodiments of the present application, the above-mentioned moving object includes at least one of the following: an underwater moving creature, an underwater moving person, and an underwater moving object.

[0110] In some examples, the underwater moving organisms may include at least one of the following: a school of fish, a school of shrimps and crabs, a school of jellyfish, a school of plankton, etc. The underwater moving objects may include at least one of the following: a submarine, a diving model, a floating object, etc.

[0111] It can be seen that since the moving object can include at least one of underwater moving creatures, underwater moving people and underwater moving objects, that is, the electronic device can record videos including multiple underwater moving creatures through the first rear camera. Therefore, the diversity of the moving object video recorded by the first rear camera can be improved, thereby improving the diversity of the underwater video output by fusion of the moving object video and the diving object video.

[0112] In some embodiments of the present application, the diving person may be a person in the field of view of the second rear camera. If the field of view of the second rear camera includes multiple persons, the diving person may be the person closest to the second rear camera, the person farthest from the second rear camera, or a person selected by the user.

[0113] In a scenario of shooting a group video of a diver and underwater moving creatures underwater, assuming that a user wants to shoot a group video of the diver and a moving object, where the moving object is one of multiple schools of fish, the user can first trigger the electronic device to start an application with a shooting function, so that the electronic device can display a shooting preview interface, which includes an "underwater shooting mode" control, and displays video frames captured by the third rear camera in the shooting preview interface, so that the user can click on the "underwater shooting mode" control to enable the electronic device to turn on the underwater shooting mode, and turn on the first rear camera, the second rear camera and the front camera, and display video frames captured by at least one of the first rear camera and the second rear camera in the image preview area in the shooting preview interface, so that the electronic device can determine whether the first air gesture is detected through the video frames captured by the front camera, and when it is determined that the first air gesture is detected, in response to the first air gesture, record the moving object video through the first rear camera, and record the diving object video through the second rear camera.

[0114] The third rear camera may be any one of the following: the first rear camera, the second rear camera, or a rear camera other than the first rear camera and the second rear camera. When the third rear camera is the first rear camera or the second rear camera, after the user clicks and inputs the "underwater shooting mode" control, the electronic device may turn on the front camera and the second rear camera or the first rear camera.

[0115] The front camera may be disposed on the front of the electronic device. It should be noted that the “front of the electronic device” may be understood as the side where the display screen of the electronic device is located.

[0116] Among them, when the electronic device turns on the underwater shooting mode and displays the video frames captured by the first rear camera and the second rear camera in the image preview area, the electronic device can display the video frames captured by the first rear camera and the video frames captured by the second rear camera in the image preview area in split screen.

[0117] In a scenario of shooting a group video of a diver and an underwater moving object underwater, assuming that a user wants to shoot a group video of the diver and the moving object, where the moving object is one of multiple underwater moving objects, the user can first trigger the electronic device to start an application with a shooting function, so that the electronic device can display a shooting preview interface, which includes an "underwater shooting mode" control, and displays video frames captured by the third rear camera in the shooting preview interface, so that the user can click on the "underwater shooting mode" control to enable the electronic device to start the underwater shooting mode, and turn on the first rear camera, the second rear camera and the front camera, and display video frames captured by at least one of the first rear camera and the second rear camera in the image preview area in the shooting preview interface, so that the electronic device can determine whether the first air gesture is detected through the video frames captured by the front camera, and when it is determined that the first air gesture is detected, in response to the first air gesture, record the moving object video through the first rear camera, and record the diving object video through the second rear camera.

[0118] For example, Figure 3A As shown, the mobile phone displays a shooting preview interface 13 , which includes an “underwater shooting mode” control 14 , so that the user can click on the “underwater shooting mode” control 14 to input.

[0119] In the scene of shooting underwater photos of diving people and underwater moving creatures, combined with Figure 2 and Figure 3A ,like Figure 3B As shown, the mobile phone displays the video frames captured by the third rear camera in the image preview area 16 in the shooting preview interface 13, and the third rear camera is the second rear camera 12. After the user clicks and inputs the "underwater shooting mode" control 14, the mobile phone can turn on the underwater shooting mode, and turn on the first rear camera 11 and the front camera 15. The front camera 15 is set on the front of the mobile phone, and displays the video frames captured by the first rear camera 11 in the image preview area 16 in the shooting preview interface 13, for example, including video frames of multiple schools of fish, so that the mobile phone can determine whether the first air gesture is detected through the video frames captured by the front camera 15, for example, the first air gesture is a user's hand gesture of making a "fist" in the air, and then the mobile phone records the moving object video through the first rear camera 11, for example, including a video of one of the multiple schools of fish, and records the diving object video through the second rear camera 12. Among them, the front of the mobile phone can be understood as the side where the display screen of the mobile phone is located.

[0120] In the scene of shooting a group photo video of a diving person and an underwater moving object, combined with Figure 2 and Figure 3A ,like Figure 3C As shown, the mobile phone displays the video frames captured by the third rear camera in the image preview area 16 in the shooting preview interface 13, and the third rear camera is the second rear camera 12. After the user clicks and inputs the "underwater shooting mode" control 14, the mobile phone can turn on the underwater shooting mode, and turn on the first rear camera 11 and the front camera 15, the front camera 15 is set on the front of the mobile phone, and displays the video frames captured by the first rear camera 11 in the image preview area 16 in the shooting preview interface 13, for example, including video frames of multiple underwater moving objects, so that the mobile phone can determine whether the first air gesture is detected through the video frames captured by the front camera 15, for example, the first air gesture is a user's hand gesture of making a "fist" in the air, and then the mobile phone records the moving object video through the first rear camera 11, for example, including a video of one of the multiple underwater moving objects, and records the diving object video through the second rear camera 12.

[0121] It should be noted that in Figure 3B and Figure 3C In the figure, the image preview area 16 is illustrated as an area enclosed by a dotted frame, and the dotted frame may not be displayed in actual application.

[0122] In some embodiments of the present application, the first rear camera and the second rear camera may record videos at the same frame rate, or record videos at different frame rates.

[0123] In some embodiments of the present application, the first rear camera is a rotatable camera. Figure 1 ,like Figure 4 As shown, the above step 101 can be specifically implemented through the following step 101a.

[0124] Step 101a, in the underwater shooting mode, the electronic device responds to the first air gesture to control the first rear camera to track and record the moving object. During the tracking and recording process, the first rear camera is controlled to rotate with the moving object, and the video of the diving object is recorded through the second rear camera.

[0125] In some embodiments of the present application, the electronic device can control the driving motor of the first rear camera to drive the first rear camera to rotate following the moving object, so as to ensure that the first rear camera can record a video including the moving object.

[0126] It can be understood that since the electronic device can control the rotation of the rotatable camera during the shooting process, the shooting range of the rotatable camera is larger. Using the rotatable camera to shoot moving objects can reduce the situation where the moving objects cannot be shot.

[0127] Thus, it can be seen that since the electronic device can control the first rear camera to rotate with the moving object during the tracking and recording process, even if the moving object moves too fast, the electronic device can control the first rear camera to rotate with the moving object to avoid the moving object from moving out of the field of view of the first rear camera. Therefore, the situation where the first rear camera cannot record the video including the moving object due to the moving speed of the moving object being too fast can be reduced. In this way, the user only needs to perform an air gesture on the electronic device once to make the first rear camera record the video including the moving object, without the user having to perform multiple air gestures to make the first rear camera record multiple times. In this way, the user's operation in the process of obtaining the video required by the user can be simplified.

[0128] Step 102: The electronic device fuses the diving object video and the moving object video to output an underwater video.

[0129] In some embodiments of the present application, the electronic device may extract multiple video frames including only moving objects from the video frames recorded by the first rear camera, and superimpose each of the multiple video frames on the superimposed position of each video frame recorded by the second rear camera, so as to perform video fusion of the diving object video and the moving object video. The superimposed position may be a preset position or a position set by the user.

[0130] In some embodiments of the present application, the electronic device may extract multiple video frames that only include the diving object from the video frames recorded by the second rear camera, and superimpose each of the multiple video frames on the second position of each video frame recorded by the first rear camera, so as to perform video fusion of the diving object video and the moving object video.

[0131] It can be understood that the underwater video includes a diving object and a moving object, that is, the underwater video can be understood as a group photo video of the diving object and the moving object.

[0132] The embodiment of the present application provides a video shooting method. In an underwater shooting mode, the electronic device can record a moving object video through a first rear camera and a diving object video through a second rear camera according to a first air gesture. The moving object video includes the moving object, and the diving object video includes a diving person. Thus, the electronic device can fuse the diving object video with the moving object video and output an underwater video. Since the user performs a first air gesture relative to the electronic device, the electronic device can be triggered to record a video without the user having to press input to the electronic device. Therefore, the situation in which the electronic device shakes due to the user pressing input to the electronic device can be avoided, so as to avoid the first rear camera and the second rear camera being unable to face the diving person and the moving object. Furthermore, the electronic device can record the diving object video and the moving object video respectively through different first rear cameras and second rear cameras, and perform video fusion based on the diving object video and the moving object video to directly obtain the underwater video, that is, directly obtain the group photo video of the diving person and the moving object, without the user instructing the diving person to move in the same direction and speed as the moving object, thus avoiding the situation where the first rear camera and the second rear camera cannot be directed to the diving person and the moving object due to at least one inconsistency between the direction and speed of movement of the diving person and the moving object. This can simplify the user's operation in the process of the electronic device recording the group photo video of the diving person and the moving object, thus improving the efficiency of the electronic device in capturing the video required by the user.

[0133] In some embodiments of the present application, since the user may want to set the shooting object of the first rear camera, the user may want to set the motion track of the diving object or the moving object in the underwater video, and the user may want to set at least one of the parameter values ​​of the recording parameters of the first rear camera or the second rear camera, before the electronic device performs video fusion on the diving object video and the moving object video, the electronic device may also set the shooting object of the first rear camera, the motion track of the diving object or the moving object in the underwater video, and at least one of the parameter values ​​of the recording parameters of the first rear camera or the second rear camera according to the user's air gesture. The following will give an example.

[0134] In some embodiments of the present application, Figure 1 ,like Figure 5 As shown, before the above step 102, the video shooting method provided in the embodiment of the present application may further include the following steps 201 to 203.

[0135] Step 201: In response to a second air gesture, the electronic device performs moving object recognition on at least two moving object video frames captured by a first rear camera, and recognizes Q moving objects.

[0136] It should be noted that the order in which the electronic device performs step 101 and step 201 is not limited in the embodiments of the present application. In one example, the electronic device may first perform step 101 and then perform step 201, that is, the electronic device may first record a moving object video through the first rear camera, and record a diving object video through the second rear camera, and then perform moving object recognition on at least two moving object video frames captured by the first rear camera; in another example, the electronic device may first perform step 201 and then perform step 101, that is, the electronic device may first perform moving object recognition on at least two moving object video frames captured by the first rear camera, and then record a moving object video through the first rear camera, and record a diving object video through the second rear camera; in yet another example, the electronic device may perform step 201 while performing step 101, that is, the electronic device may perform moving object recognition on at least two moving object video frames captured by the first rear camera while recording a moving object video through the first rear camera and recording a diving object video through the second rear camera. Figure 5 In the figure, it is illustrated that the electronic device first executes step 101 and then executes step 201.

[0137] In the embodiment of the present application, Q is a positive integer.

[0138] In some embodiments of the present application, the second air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, or an air gesture in which the user's hand is in a specific posture. For example, the second air gesture may be an air gesture in which the user's hand makes the number "1".

[0139] In some embodiments of the present application, when the electronic device turns on the underwater shooting model, the user can perform a second air gesture relative to the electronic device, so that the electronic device can determine whether the second air gesture is detected through the video frames captured by the front camera, and when it is determined that the second air gesture is detected, in response to the second air gesture, perform moving object recognition on at least two moving object video frames captured by the first rear camera.

[0140] In some embodiments of the present application, the electronic device may first obtain at least two moving object video frames captured by the first rear camera, and determine whether each object is a moving object based on whether the position of each object in the at least two moving object frames changes, so as to determine at least one moving object. Then the electronic device may use a clustering algorithm to determine the moving objects of the at least one moving object whose interval distance is less than or equal to the preset distance and whose object type is the same as one moving object, so as to determine Q moving objects. It is understood that each moving object may include at least one moving object whose interval distance is less than or equal to the preset distance and whose object type is the same.

[0141] Step 202: The electronic device displays Q moving object identifiers in a shooting control area of ​​a shooting preview interface, and displays a moving object selection identifier on the first moving object identifier.

[0142] In the embodiment of the present application, the Q moving object identifiers are used to indicate Q moving objects, the moving object selection identifier is used to indicate a selected moving object, and the Q moving object identifiers include a first moving object identifier.

[0143] In some embodiments of the present application, the moving object identifier may include at least one of the following: a thumbnail of the moving object, a name of the moving object, etc. The moving object selection identifier may include at least one of the following: a selection box, a selection mark, etc.

[0144] In some embodiments of the present application, the electronic device may display the shooting control area in a blank area of ​​the shooting preview interface, or may display the shooting control area in a floating manner on the shooting preview interface, and display Q moving object identifiers in the shooting control area. For example, the electronic device may display the shooting control area in a floating manner on the image preview area of ​​the shooting preview interface.

[0145] The electronic device may display Q moving object identifiers in the shooting control area in a predetermined order. The predetermined order may be any of the following: order from near to far from the first rear camera, order from slow to fast in motion speed, order from large to small in object size in the shooting preview interface, etc.

[0146] In some examples, the predetermined order is the order of the object sizes in the shooting preview interface from large to small, and the step 202 can be specifically implemented by the following step 202a.

[0147] Step 202a: The electronic device displays Q moving object identifiers in the shooting control area of ​​the shooting preview interface in the order of the object sizes of the Q moving objects from large to small, and displays a moving object selection identifier on the first moving object identifier.

[0148] In some embodiments of the present application, the above-mentioned object size may be a display size of the moving object in the image preview area of ​​the shooting preview interface.

[0149] In some embodiments of the present application, the electronic device can detect the display size of each of the Q moving objects in the image preview area to determine the object size of each moving object, so that the electronic device can display the Q moving object identifiers in order of the object sizes of the Q moving objects from large to small.

[0150] In the embodiment of the present application, the first moving object identifier is a moving object identifier indicating a moving object with the largest object size among the Q moving objects.

[0151] It can be understood that since there may be a situation where the user wants to take a group photo video of the diving person and the moving object with the largest object size, the electronic device can display the Q moving object identifiers in order of the object sizes of the Q moving objects from large to small, that is, the moving object identifiers corresponding to larger moving objects are preferentially displayed in the front position in the shooting control area, and the moving object selection identifier is displayed by default on the moving object identifier corresponding to the largest moving object, that is, the moving object selection identifier is directly displayed on the moving object identifier corresponding to the moving object with the highest probability of user selection, and the distance between the moving object identifier corresponding to the moving object with a higher probability of user selection and the moving object identifier corresponding to the moving object with the highest probability of user selection is smaller, thereby reducing the interactive operations of the moving objects required by the user to select.

[0152] In the scene of shooting underwater photos of diving people and underwater moving creatures, combined with Figure 3B ,like Fig. 6A As shown, when the video frame including multiple schools of fish captured by the first rear camera 11 is displayed in the image preview area 16 in the shooting preview interface 13, the user can perform a second air gesture relative to the mobile phone, such as making an air gesture of the number "1" with the user's hand, so that the front camera 15 of the mobile phone can recognize the air gesture of the user's hand making the number "1". Figure 6BAs shown, after the user makes an air gesture of making the number "1" with his hand, the mobile phone responds to the air gesture, performs moving object recognition on at least two moving object video frames captured by the first rear camera 11, and recognizes Q moving objects, such as school of fish 17, school of fish 18, school of fish 19, school of fish 20, school of fish 21 and school of fish 22, where school of fish 17 includes 3 fish, school of fish 18 includes 1 fish, school of fish 19 includes 1 fish, school of fish 20 includes 4 fish, school of fish 21 includes 2 fish, and school of fish 22 includes 1 fish, and a shooting control area 23 is suspended in the shooting preview interface 13, and the shooting control area 23 is selected according to the schools of fish 17, 18, 19, and 22. In the order of the object sizes of the school of fish 20, the school of fish 21 and the school of fish 22 from large to small, Q moving object identifiers are displayed, such as the school of fish identifier 24, the school of fish identifier 25, the school of fish identifier 26, the school of fish identifier 27, the school of fish identifier 28 and the school of fish identifier 29, the school of fish identifier 24 is used to indicate the school of fish 17, the school of fish identifier 25 is used to indicate the school of fish 18, the school of fish identifier 26 is used to indicate the school of fish 19, the school of fish identifier 27 is used to indicate the school of fish 20, the school of fish identifier 28 is used to indicate the school of fish 21, and the school of fish identifier 29 is used to indicate the school of fish 22, and a moving object selection identifier is displayed on the moving object identifier of the moving object with the largest object size among the Q moving objects, for example, a moving object selection identifier 30 is displayed on the school of fish identifier 27. The above-mentioned school of fish identifiers can be thumbnails of the indicated schools of fish.

[0153] In the scene of shooting a group photo video of a diving person and an underwater moving object, combined with Figure 3C ,like Fig. 7A As shown, when the video frame including multiple underwater objects captured by the first rear camera 11 is displayed in the image preview area 16 in the shooting preview interface 13, the user can perform a second air gesture relative to the mobile phone, such as making an air gesture of the number "1" with the user's hand, so that the front camera 15 of the mobile phone can recognize the air gesture of the user's hand making the number "1". Figure 7BAs shown, after the user makes an air gesture of making the number "1" with his hand, the mobile phone responds to the air gesture, performs moving object recognition on at least two moving object video frames captured by the first rear camera 11, recognizes Q moving objects, such as submarine 31, submarine 32 and water grass 33, and displays a shooting control area 34 in a floating manner in the shooting preview interface 13, and displays Q moving object identifiers in the shooting control area 34 in the order of the object sizes of submarine 31, submarine 32 and water grass 33 from large to small, such as submarine identifier 35, submarine identifier 36 and water grass identifier 37, wherein submarine identifier 35 is used to indicate submarine 31, submarine identifier 36 is used to indicate submarine 32, and water grass identifier 37 is used to indicate water grass 33, and a moving object selection identifier is displayed on the moving object identifier of the moving object with the largest object size among the Q moving objects, for example, a moving object selection identifier 38 is displayed on submarine identifier 36.

[0154] It should be noted that in Figure 6B and Figure 7B The moving object selection mark is indicated by a dotted selection box.

[0155] It can be seen that since the electronic device can display Q moving object identifiers in the order that the user may need, and display the moving object selection identifier on the first moving object identifier, this can make the moving object selection identifier be displayed on the moving object identifier corresponding to the moving object with the highest probability of user selection, and the distance between the moving object identifier corresponding to the moving object with a higher probability of user selection and the moving object identifier corresponding to the moving object with the highest probability of user selection is smaller, so that the user can move the moving object selection identifier to the required moving object identifier without any operation or only requires less interactive operation, thereby reducing the operations required for the user to move the moving object selection identifier to the required moving object identifier.

[0156] Step 203: The electronic device controls the moving object selection identifier to move to the second moving object identifier in response to the third air gesture, and determines the second moving object indicated by the second moving object identifier as the tracking object of the first rear camera.

[0157] In some embodiments of the present application, the third air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture. For example, the third air gesture may be an air gesture in which the user's hand makes a finger pointing in the direction of movement, or may be an air gesture in which the user's hand makes a number.

[0158] In the embodiment of the present application, the Q moving object identifiers include a second moving object identifier.

[0159] It can be understood that the second moving object identifier is a moving object identifier among the Q moving object identifiers that is different from the first moving object identifier.

[0160] In some embodiments of the present application, after the electronic device controls the moving object selection identifier to move to the second moving object identifier, the user can perform an eleventh air gesture relative to the electronic device, so that the electronic device can determine whether the eleventh air gesture is detected through the video frames captured by the front camera, and when it is determined that the eleventh air gesture is detected, in response to the eleventh air gesture, determine the second moving object indicated by the second moving object identifier as the tracking object of the first rear camera.

[0161] In some embodiments of the present application, the eleventh air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture. For example, the eleventh air gesture may be an air gesture in which the user's hand makes a "fist".

[0162] In some embodiments of the present application, after determining the second moving object as a tracking object of the first rear camera, the electronic device may control the first rear camera to rotate following the second moving object to record a moving object video including the second moving object.

[0163] It can be understood that the above-mentioned moving object video may include a second moving object.

[0164] In this way, it can be seen that since the electronic device can identify the moving objects for at least two moving object video frames captured by the first rear camera according to the second air gesture, and display Q moving object identifiers corresponding to the Q identified moving objects in the shooting control area, the user can clearly know the Q moving objects included in the at least two moving object video frames captured by the first rear camera. In this way, if the Q moving objects do not include the moving object required by the user, the user can quickly trigger the electronic device to re-identify the moving objects for at least two moving object video frames captured by the first rear camera, and quickly select the moving object required by the user. Furthermore, the electronic device can determine the second moving object required by the user as the tracking object of the first rear camera through the third air gesture. In this way, on the one hand, it can avoid the situation where the electronic device shakes due to the user pressing the electronic device, so as to avoid the situation where the user needs to re-trigger the first rear camera for a long time to re-capture the moving object video frame including the moving object required by the user. On the other hand, the electronic device can trigger the electronic device to accurately determine the second moving object required by the user as the tracking object of the first rear camera through the third air gesture. In this way, it can reduce the situation where the electronic device determines the moving object that the user does not need as the tracking object of the first rear camera, resulting in the user needing to perform multiple operations to re-determine the second moving object required by the user as the tracking object of the first rear camera. In summary, the efficiency of the electronic device in determining the tracking object of the first rear camera can be improved.

[0165] In some embodiments of the present application, the above step 203 can be specifically implemented by the following step 203a or step 203b.

[0166] Step 203a: The electronic device moves the moving object selection identifier to a moving object identifier adjacent to the first moving object identifier according to the moving direction indicated by the third air gesture.

[0167] In some embodiments of the present application, when the third air gesture is an air gesture in which the user makes a finger pointing in a moving direction, the electronic device can move the moving object selection identifier to a moving object identifier adjacent to the first moving object identifier according to the moving direction indicated by the third air gesture.

[0168] In some embodiments of the present application, when the second moving object identifier is not a moving object identifier adjacent to the first moving object identifier, the user can again perform a third air gesture relative to the electronic device, so that the electronic device can again move the moving object selection identifier to a moving object identifier adjacent to the first moving object identifier according to the moving direction indicated by the third air gesture, and so on, until the moving object selection identifier is moved to the second moving object identifier.

[0169] In the underwater shooting of diving people and underwater moving creatures, combined with Figure 6B ,like Fig. 8A As shown, the user can perform a third air gesture relative to the mobile phone, such as a user's hand gesture of pointing right, so that the front camera 15 of the mobile phone can recognize the user's hand gesture of pointing right. Figure 8B As shown, after the user makes an air gesture with his finger pointing to the right, the mobile phone responds to the air gesture by moving the moving object selection mark 30 to a moving object mark adjacent to the fish school mark 27, for example, to the fish school mark 24.

[0170] In this way, it can be seen that since the electronic device can move the moving object selection identifier to a moving object identifier adjacent to the first moving object identifier according to the moving direction indicated by the third air gesture according to the user's third air gesture, the moving object selection identifier can be moved to the moving object identifier required by the user without the user pressing the electronic device. Therefore, it can avoid the situation where the electronic device shakes due to the user pressing, thereby avoiding the situation where the user needs to re-trigger the first rear camera for a long time to re-capture the moving object video frame including the moving object required by the user. In summary, the efficiency of the electronic device in determining the moving object required by the user can be improved.

[0171] Step 203b: The electronic device moves the motion object selection marker to the motion object marker corresponding to the number indicated by the third air gesture.

[0172] In some embodiments of the present application, when the third air gesture is an air gesture in which the user makes a number with his hand, the electronic device moves the moving object selection identifier to the moving object identifier corresponding to the number indicated by the third air gesture.

[0173] In some embodiments of the present application, the electronic device may move the moving object selection mark to the Xth moving object mark among the Q moving object marks, where X is a number indicated by the user's hand.

[0174] In the scene of shooting a group photo video of a diving person and an underwater moving object, combined with Figure 7B ,like Fig. 9A As shown, the user can perform a third air gesture relative to the mobile phone, such as a user's hand gesture of the number "2", so that the front camera 15 of the mobile phone can recognize the user's hand gesture of the number "2". Fig. 9BAs shown, after the user makes an air gesture of the number "2" with his hand, the mobile phone responds to the air gesture and moves the motion object selection mark 38 to the motion object mark corresponding to the number "2", for example, moves the motion object selection mark 38 to the submarine mark 35.

[0175] In this way, it can be seen that since the electronic device can move the motion object selection identifier to the motion object identifier corresponding to the number indicated by the third air gesture according to the user's third air gesture, the motion object selection identifier can be moved to the motion object identifier required by the user without the user pressing the electronic device. Therefore, it can avoid the situation where the electronic device shakes due to the user pressing, thereby avoiding the situation where the user needs to re-trigger the first rear camera for a long time to re-capture the motion object video frame including the motion object required by the user. In summary, the efficiency of the electronic device in determining the motion object required by the user can be improved.

[0176] In some embodiments of the present application, after the above step 201, the video shooting method provided by the embodiment of the present application may further include the following step 204, and after the above step 203, the video shooting method provided by the embodiment of the present application may further include the following step 205.

[0177] Step 204: The electronic device displays a moving object indication mark in the object area of ​​the first moving object in the image preview area of ​​the shooting preview interface.

[0178] In the embodiment of the present application, the first moving object is a moving object indicated by a first moving object identifier, and the moving object identifier is used to indicate a display area of ​​the selected moving object in the image preview area.

[0179] In some embodiments of the present application, the electronic device may further display a moving object mark on other moving objects among the Q moving objects except the first moving object, and the moving object mark is used to indicate the display area of ​​the unselected moving objects among the Q moving objects in the image preview area. The moving object mark may include at least one of the following: a selection box, a selection mark, etc.

[0180] In the scene of shooting underwater photos of diving people and underwater moving creatures, combined with Figure 6B ,like Fig.10 As shown, the mobile phone can display a moving object indication mark 39 in the object area of ​​the school of fish 20 in the image preview area 16, and display moving object marks 40 on the object areas of the schools of fish 17, 18, 19, 21 and 22 respectively.

[0181] In the scene of shooting a group photo video of a diving person and an underwater moving object, combined with Figure 7B,like Fig.11 As shown, the mobile phone can display a moving object indication mark 41 on the object area of ​​the submarine 32 in the image preview area 16, and display a moving object mark 42 on the object area and object area of ​​the submarine 31 and the water grass 33 respectively.

[0182] Step 205: The electronic device updates the moving object indication mark to the object area of ​​the second moving object in the image preview area of ​​the shooting preview interface for display.

[0183] In the embodiment of the present application, the second moving object is a moving object indicated by a second moving object identifier.

[0184] In some embodiments of the present application, the electronic device may further display moving object marks on other moving objects among the Q moving objects except the second moving object.

[0185] In the scene of shooting underwater photos of diving people and underwater moving creatures, combined with Figure 8B and Fig.10 ,like Fig. 12A As shown, the mobile phone can update the moving object indication mark 39 to the object area of ​​the school of fish 17 in the image preview area 16 for display, and display the moving object mark 40 on the object areas of the school of fish 18, the school of fish 19, the school of fish 20, the school of fish 21 and the school of fish 22 respectively. In the case that the school of fish 17 is the school of fish required by the user, the user can perform an eleventh air gesture relative to the mobile phone, such as the user's hand making a "fist" air gesture, such as Fig. 12B As shown, the mobile phone can determine the school of fish 17 as the tracking object of the first rear camera 11 in response to the user's hand making a "fist" gesture in the air, and cancel the display of the moving object mark 40 and the school of fish identifier 24, the school of fish identifier 25, the school of fish identifier 26, the school of fish identifier 27, the school of fish identifier 28 and the school of fish identifier 29.

[0186] In the scene of shooting a group photo video of a diving person and an underwater moving object, combined with Fig. 9B and Fig.11 ,like Fig.13A As shown, the mobile phone can update the moving object indication mark 41 to the object area of ​​the submarine 31 in the image preview area 16 for display, and display the moving object mark 42 on the object areas of the submarine 32 and the waterweed 33. In the case that the submarine 31 is the object required by the user, the user can perform the eleventh air gesture relative to the mobile phone, such as the air gesture of the user making a "fist" with his hand, such as Fig. 12B As shown, the mobile phone can determine the submarine 31 as the tracking object of the first rear camera 11 in response to the user's hand making a "fist" gesture, and cancel the display of the moving object mark 42 and the submarine logo 35, the submarine logo 36 and the water grass logo 37.

[0187] In this way, it can be seen that since the electronic device can also display a moving object indication mark in the object area of ​​the first moving object in the image preview area, and display a moving object indication mark in the object area of ​​the second moving object in the image preview area after the moving object selection mark moves to the second moving object mark, the user can accurately know whether the moving object currently selected by the electronic device is the moving object required by the user, thereby reducing the situation where the electronic device determines the moving object that the user does not require as the tracking object of the first rear camera.

[0188] In some embodiments of the present application, Figure 1 ,like Fig.14 As shown, before the above step 102, the video shooting method provided in the embodiment of the present application may further include the following steps 301 and 302.

[0189] Step 301: In response to a fourth air gesture, the electronic device displays at least one alternative trajectory identifier and a first prompt message in a shooting control area of ​​a shooting preview interface, and displays a trajectory selection identifier on a first trajectory identifier among the at least one trajectory identifier.

[0190] It should be noted that the order in which the electronic device executes step 101 and step 301 is not limited in the embodiments of the present application. In one example, the electronic device may first perform step 101 and then perform step 301, that is, the electronic device may first record a moving object video through the first rear camera and a diving object video through the second rear camera, and then display at least one alternative track identifier and the first prompt information in the shooting control area of ​​the shooting preview interface, and display a track selection identifier on the first track identifier among the at least one track identifier; in another example, the electronic device may first perform step 201 and then perform step 101, that is, the electronic device may first display at least one alternative track identifier and the first prompt information in the shooting control area of ​​the shooting preview interface, and display a track selection identifier on the first track identifier among the at least one track identifier, and then record a moving object video through the first rear camera and a diving object video through the second rear camera; in yet another example, the electronic device may perform step 301 while performing step 101, that is, the electronic device may record a moving object video through the first rear camera and a diving object video through the second rear camera, and at the same time display at least one alternative track identifier and the first prompt information in the shooting control area of ​​the shooting preview interface, and display a track selection identifier on the first track identifier among the at least one track identifier.

[0191] In some embodiments of the present application, the fourth air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture. For example, the fourth air gesture may be an air gesture in which the user's hand makes the number "2".

[0192] In an embodiment of the present application, a trajectory identifier is used to indicate a motion trajectory; the above-mentioned trajectory selection identifier is used to indicate a selected trajectory identifier; the above-mentioned first prompt information is used to prompt the setting of the motion trajectory of the trajectory usage object; the above-mentioned trajectory usage object is the tracking object of the first rear camera or the object selected by the user from the moving object and the diving person.

[0193] In some embodiments of the present application, the motion trajectory indicated by the above-mentioned trajectory identifier may be a motion trajectory preset in the electronic device.

[0194] In some embodiments of the application, the above-mentioned track selection mark may include at least one of the following: a selection box, a selection mark, etc.

[0195] In some embodiments of the present application, the above-mentioned track usage object may be a default object, or may be an object set by a user.

[0196] Step 302: In response to the fifth air gesture, the electronic device controls the trajectory selection mark to move to the second trajectory mark, and determines the motion trajectory indicated by the second trajectory mark as the motion trajectory of the trajectory use object.

[0197] In some embodiments of the present application, the fifth air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture. For example, the fifth air gesture may be an air gesture in which the user's hand makes a finger pointing in the direction of movement, or may be an air gesture in which the user's hand makes a number.

[0198] It should be noted that, for the description of the electronic device controlling the trajectory selection identifier to move to the second trajectory identifier, reference can be made to the specific description of the electronic device controlling the motion object selection identifier to move to the second motion object identifier in the above embodiment, which will not be repeated in detail in the embodiment of the present application.

[0199] In some embodiments of the present application, after the electronic device controls the trajectory selection identifier to move to the second trajectory identifier, the user can perform a twelfth air gesture relative to the electronic device, so that the electronic device can determine whether the twelfth air gesture is detected through the video frames captured by the front camera, and when it is determined that the twelfth air gesture is detected, in response to the twelfth air gesture, determine the motion trajectory indicated by the second trajectory identifier as the motion trajectory of the trajectory usage object.

[0200] In some embodiments of the present application, the twelfth air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture. For example, the twelfth air gesture may be an air gesture in which the user's hand makes a "fist".

[0201] In some embodiments of the present application, after the electronic device determines the motion trajectory indicated by the second trajectory identifier as the motion trajectory of the trajectory usage object, when playing the underwater video, the motion trajectory of the trajectory usage object is the same as the motion trajectory indicated by the second trajectory identifier.

[0202] In the scene of shooting underwater photos of diving people and underwater moving creatures, combined with Figure 3B ,like Fig.15A As shown, when the video frame including multiple schools of fish captured by the first rear camera 11 is displayed in the image preview area 16 in the shooting preview interface 13, the user can perform a fourth air gesture relative to the mobile phone, such as making an air gesture of the number "2" with the user's hand, so that the front camera 15 of the mobile phone can recognize the air gesture of the user's hand making the number "2". Fig. 15B As shown, after the user makes a gesture of the number "2" with his hand, the mobile phone responds to the gesture and displays at least one alternative track mark and the first prompt information, such as track mark 44, track mark 45 and prompt information 46, in the shooting control area 43 of the shooting preview interface 13, and displays the track selection mark 47 on the track mark 44, so that the user can make a fifth gesture with respect to the mobile phone, such as a gesture of the user's hand pointing to the right. Fig. 15C As shown, after the user makes an air gesture with his hand pointing right, the mobile phone can move the trajectory selection mark 47 to the trajectory mark 45 in response to the air gesture. When the motion trajectory indicated by the trajectory mark 45 is the motion trajectory required by the user, the user can perform a twelfth air gesture with respect to the mobile phone, such as a "fist" gesture made by the user's hand, as shown in FIG. Fig.15D As shown, the mobile phone can determine the motion trajectory indicated by the trajectory identifier 45 as the motion trajectory of the trajectory usage object in response to the user's hand making a "fist" gesture, and cancel the display of the trajectory identifier 44, the trajectory identifier 45, the trajectory selection identifier 47 and the prompt information 46.

[0203] In the scene of shooting a group photo video of a diving person and an underwater moving object, combined with Figure 3C ,like Fig.16AAs shown, when the video frame including multiple objects captured by the first rear camera 11 is displayed in the image preview area 16 in the shooting preview interface 13, the user can perform a fourth air gesture relative to the mobile phone, such as making an air gesture of the number "2" with the user's hand, so that the front camera 15 of the mobile phone can recognize the air gesture of the user's hand making the number "2". Fig. 16B As shown, after the user makes a gesture of the number "2" with his hand, the mobile phone responds to the gesture and displays at least one alternative track mark and the first prompt information, such as track mark 49, track mark 50 and prompt information 51, in the shooting control area 48 of the shooting preview interface 13, and displays the track selection mark 52 on the track mark 49, so that the user can make a fifth gesture with respect to the mobile phone, such as a gesture of the user's hand pointing to the right. Fig. 16C As shown, after the user makes an air gesture with the user's hand pointing right, the mobile phone can move the trajectory selection mark 52 to the trajectory mark 50 in response to the air gesture. In the case where the motion trajectory indicated by the trajectory mark 50 is the motion trajectory required by the user, the user can perform a twelfth air gesture with respect to the mobile phone, such as the air gesture of the user's hand making a "fist", as shown in FIG. Fig.16D As shown, the mobile phone can determine the motion trajectory indicated by the trajectory identifier 50 as the motion trajectory of the trajectory usage object in response to the user's hand making a "fist" gesture, and cancel the display of the trajectory identifier 49, the trajectory identifier 50, the trajectory selection identifier 52 and the prompt information 51.

[0204] In this way, it can be seen that since the electronic device can display at least one trajectory identifier and the first prompt information in the shooting control area according to the fourth air gesture, and the trajectory selection identifier is displayed on the first trajectory identifier, the user can know that the motion trajectory of the trajectory usage object can be set, and through the fifth air gesture, the trajectory selection identifier can be controlled to accurately move to the second trajectory identifier corresponding to the motion trajectory required by the user. Therefore, the situation where the electronic device determines the motion trajectory that the user does not require as the motion trajectory of the trajectory usage object can be reduced.

[0205] In some embodiments of the present application, the video shooting method provided in the embodiments of the present application may further include the following steps 401 and 402.

[0206] Step 401: The electronic device displays a second prompt message.

[0207] In some embodiments of the present application, the electronic device may display the second prompt information in response to the user's twelfth air gesture. Alternatively, the electronic device may display the second prompt information in response to the fourth air gesture, and when the object of trajectory use is determined, display at least one alternative trajectory identifier and the first prompt information in the shooting control area of ​​the shooting preview interface, and display the trajectory selection identifier on the first trajectory identifier of at least one trajectory identifier. Alternatively, the electronic device may display the second prompt information after displaying the trajectory selection identifier on the first trajectory identifier of at least one trajectory identifier.

[0208] In some embodiments of the present application, the above-mentioned twelfth air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture.

[0209] In the embodiment of the present application, the second prompt information is used to prompt the user to set a track usage object.

[0210] In some embodiments of the present application, the electronic device may display the second prompt information in the shooting control area of ​​the shooting preview interface.

[0211] Step 402: In response to the sixth air gesture, the electronic device determines an object corresponding to the gesture type of the sixth air gesture as a trajectory usage object.

[0212] In some embodiments of the present application, the above-mentioned gesture types may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture.

[0213] In an embodiment of the present application, when the gesture type of the sixth air gesture is the first gesture type, the object using the trajectory is a moving object; when the gesture type of the sixth air gesture is the second gesture type, the object using the trajectory is a diving person.

[0214] In some embodiments of the present application, the first gesture type may be any one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, or an air gesture in which the user's hand is in a specific posture. The second gesture type may be any one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, or an air gesture in which the user's hand is in a specific posture. The first gesture type and the second gesture type are different.

[0215] In this way, it can be seen that since the electronic device can display the second prompt information so that the user can know that the trajectory usage object can be set, the user can perform the corresponding sixth air gesture relative to the electronic device according to the object required by the user, so that the electronic device can accurately determine the object required by the user as the trajectory usage object. Therefore, the situation where the electronic device determines the object that the user does not require as the trajectory usage object can be reduced.

[0216] In some embodiments of the present application, the camera of the object's video used for recording the trajectory is the main camera, and the camera other than the main camera in the first rear camera and the second rear camera is the auxiliary camera. In some examples, the above step 102 can be specifically implemented by the following steps 102a to 102c.

[0217] Step 102a: The electronic device extracts N object images from the N main video frames recorded by the main camera.

[0218] In some embodiments of the present application, the main camera and the auxiliary camera may record videos at the same frame rate.

[0219] In the embodiment of the present application, each of the above-mentioned N object images only includes the trajectory usage object; N is an integer greater than 1.

[0220] Step 102b: The electronic device selects N reference trajectory points from the motion trajectory of the trajectory usage object according to the motion direction of the motion trajectory of the trajectory usage object.

[0221] In the embodiment of the present application, the motion trajectory of the trajectory using object may be the motion trajectory indicated by the second trajectory identifier.

[0222] In some embodiments of the present application, the motion trajectory of the above-mentioned trajectory usage object includes multiple trajectory points, so that the electronic device can determine a predetermined trajectory point among the multiple trajectory points as a first reference trajectory point, and determine a second trajectory point among the multiple trajectory points along the motion direction of the motion trajectory of the trajectory usage object as a second reference trajectory point, and determine a third trajectory point among the multiple trajectory points as a third reference trajectory point, and so on, until N reference trajectory points are determined.

[0223] In some examples, when the number of multiple trajectory points of the motion trajectory of the trajectory usage object is Y, and Y is less than N, the electronic device may determine a predetermined trajectory point among the multiple trajectory points as the first reference trajectory point, and determine a second trajectory point along the motion direction of the motion trajectory of the trajectory usage object among the multiple trajectory points as the second reference trajectory point, and so on, to determine Y reference trajectory points, and then determine the first trajectory point among the multiple trajectory points as the Y+1th reference trajectory point, and determine the second trajectory point among the multiple trajectory points as the Y+2th reference trajectory point, and so on, to determine NY reference trajectory points, thereby determining N reference trajectory points. Y is a positive integer.

[0224] Step 102c: the electronic device synthesizes the N object images into positions corresponding to the N reference trajectory points in the N auxiliary video frames respectively.

[0225] It can be understood that since the main camera and the auxiliary camera can record videos at the same frame rate, the number of main video frames recorded by the main camera and the number of auxiliary video frames recorded by the auxiliary camera can be the same, that is, the number of auxiliary video frames is also N.

[0226] In this embodiment of the present application, the auxiliary video frame is a video frame recorded by an auxiliary camera.

[0227] In some embodiments of the present application, each of the N reference trajectory points corresponds to a coordinate information. Thus, the electronic device can superimpose the first object image in the N object images on the coordinate information corresponding to the first reference trajectory point in the N reference trajectory points in the first video frame in the N video frames, and superimpose the second object image in the N object images on the coordinate information corresponding to the second reference trajectory point in the N reference trajectory points in the second video frame in the N video frames, and so on, until the Nth object image in the N object images is superimposed on the coordinate information corresponding to the Nth reference trajectory point in the N reference trajectory points in the Nth video frame in the N video frames. The above-mentioned coordinate information can be the coordinate information in the first coordinate system, and the first coordinate system can be a coordinate system with a corner of the display screen of the electronic device as the coordinate origin and two adjacent edge lines as the X-axis and Y-axis.

[0228] The electronic device may match the image center point of the first object image with the coordinate information corresponding to the first reference trajectory point in the first video frame, and so on.

[0229] In the scene of shooting a group photo of a diving person and underwater moving creatures, assuming that the first rear camera is the main camera, combined with Fig. 12B and Fig.15D ,like Fig.17AAs shown, the mobile phone can extract N object images from the N main video frames recorded by the first rear camera, for example, the mobile phone extracts object image 53, object image 54, object image 55, object image 56 and object image 57. Fig. 17B As shown, the motion trajectory of the trajectory object is motion trajectory 58, and the motion direction of motion trajectory 58 is clockwise, so that the mobile phone can determine the predetermined trajectory point 59 in motion trajectory 58 as the first reference trajectory point, and determine the second trajectory point 60 in the motion trajectory 58 along the clockwise direction as the second reference trajectory point, and determine the third trajectory point 61 in the motion trajectory 58 along the clockwise direction as the third reference trajectory point, and determine the fourth trajectory point 62 in the motion trajectory 58 along the clockwise direction as the fourth reference trajectory point, and determine the fifth trajectory point 63 in the motion trajectory 58 along the clockwise direction as the fifth reference trajectory point. Fig. 17C As shown, the second rear camera of the mobile phone records N auxiliary video frames, such as auxiliary video frame 64, auxiliary video frame 65, auxiliary video frame 66, auxiliary video frame 67 and auxiliary video frame 68. Fig.17D As shown, the mobile phone can superimpose the object image 53 on the position corresponding to the first reference trajectory point in the auxiliary video frame 64, that is, the position corresponding to the predetermined trajectory point 59, and superimpose the object image 54 on the position corresponding to the second reference trajectory point in the auxiliary video frame 65, that is, the position corresponding to the second trajectory point 60, and superimpose the object image 55 on the position corresponding to the third reference trajectory point in the auxiliary video frame 66, that is, the position corresponding to the third trajectory point 61, and superimpose the object image 56 on the position corresponding to the fourth reference trajectory point in the auxiliary video frame 67, that is, the position corresponding to the fourth trajectory point 62, and superimpose the object image 57 on the position corresponding to the fifth reference trajectory point in the auxiliary video frame 68, that is, the position corresponding to the fifth trajectory point 63.

[0230] It should be noted that in FIG. 17A to FIG. 17D In the figure, N is 5 for illustration. In practical application, N can be other numbers. Thus, when playing underwater video, the fish school 17 can be shown in the underwater video according to Fig. 17B The motion trajectory 58 in the figure moves in a clockwise direction.

[0231] In the scene of shooting a group photo video of a diving person and an underwater moving object, assuming that the first rear camera is the main camera, combined with Fig. 13B and Fig.16D ,like Fig.18A As shown, the mobile phone can extract N object images from the N main video frames recorded by the first rear camera. For example, the mobile phone extracts object image 69, object image 70, object image 71, object image 72 and object image 73 from 5 main video frames. Fig.18BAs shown, the motion trajectory of the trajectory object is motion trajectory 74, and the motion direction of motion trajectory 74 is clockwise, so that the mobile phone can determine the predetermined trajectory point 75 in motion trajectory 74 as the first reference trajectory point, and determine the second trajectory point 76 in the motion trajectory 74 along the clockwise direction as the second reference trajectory point, and determine the third trajectory point 77 in the motion trajectory 74 along the clockwise direction as the third reference trajectory point, and determine the fourth trajectory point 78 in the motion trajectory 74 along the clockwise direction as the fourth reference trajectory point, and determine the fifth trajectory point 79 in the motion trajectory 74 along the clockwise direction as the fifth reference trajectory point. Fig.18C As shown, the second rear camera of the mobile phone records N auxiliary video frames, such as auxiliary video frame 80, auxiliary video frame 81, auxiliary video frame 82, auxiliary video frame 83 and auxiliary video frame 84. Fig.18D As shown, the mobile phone can superimpose the object image 69 on the position corresponding to the first reference track point in the auxiliary video frame 80, that is, the position corresponding to the predetermined track point 75, and superimpose the object image 70 on the position corresponding to the second reference track point in the auxiliary video frame 81, that is, the position corresponding to the second track point 76, and superimpose the object image 71 on the position corresponding to the third reference track point in the auxiliary video frame 82, that is, the position corresponding to the third track point 77, and superimpose the object image 72 on the position corresponding to the fourth reference track point in the auxiliary video frame 83, that is, the position corresponding to the fourth track point 78, and superimpose the object image 73 on the position corresponding to the fifth reference track point in the auxiliary video frame 84, that is, the position corresponding to the fifth track point 79. Thus, when playing the underwater video, the submarine 31 can move from the predetermined track point 75 to the fifth track point 79 in the underwater video in a clockwise direction.

[0232] It should be noted that in 18A to 18D In the figure, N is 5 for illustration. In practical application, N can be other numbers. Thus, when playing underwater video, the submarine 31 can play the underwater video according to Fig.18B The motion trajectory 74 in the figure moves in a clockwise direction.

[0233] In this way, it can be seen that since the electronic device can directly extract N object images that only include the trajectory-using object from the N main video frames recorded by the main camera, and select N reference trajectory points from the motion trajectory of the trajectory-using object according to the motion direction of the motion trajectory of the trajectory-using object, and directly synthesize the N object images to the positions corresponding to the N reference trajectory points in the N auxiliary video frames, so that when playing the underwater video, the motion trajectory of the trajectory-using object is the same as the motion trajectory required by the user, without the user having to perform multiple operations after obtaining the underwater video. Therefore, the user's operations in the process of obtaining the video required by the user can be simplified.

[0234] In some embodiments of the present application, the video shooting method provided in the embodiments of the present application may further include the following steps 403 to 406.

[0235] Step 403: The electronic device displays a custom track control in the shooting control area.

[0236] In the embodiment of the present application, the above-mentioned custom trajectory control is used to set a custom motion trajectory.

[0237] In some embodiments of the present application, the electronic device may display the custom track control while displaying at least one track identifier and the first prompt information. Alternatively, the electronic device may display the custom track control in the shooting control area in response to the thirteenth air gesture.

[0238] Among them, the above-mentioned thirteenth air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture.

[0239] Step 404: The electronic device controls the trajectory selection indicator to move to the custom trajectory control in response to the seventh air gesture, and displays the third prompt information.

[0240] In the embodiment of the present application, the third prompt information is used to prompt the user to draw a custom motion trajectory.

[0241] In some embodiments of the present application, the seventh air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture. For example, the seventh air gesture may be an air gesture in which the user's hand makes a finger pointing in the direction of movement, or may be an air gesture in which the user's hand makes a number.

[0242] It should be noted that, for the instructions on how the electronic device controls the trajectory selection identifier to move to the custom trajectory control, reference may be made to the specific description of how the electronic device controls the motion object selection identifier to move to the second motion object identifier in the above embodiment, which will not be repeated in detail in the embodiments of the present application.

[0243] In some embodiments of the present application, after the electronic device controls the trajectory selection indicator to move to the custom trajectory control, the user can perform a fourteenth air gesture relative to the electronic device so that the electronic device can display the third prompt information in response to the fourteenth air gesture.

[0244] The fourteenth air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture. For example, the fourteenth air gesture may be an air gesture in which the user's hand makes a "fist".

[0245] In the scene of shooting underwater photos of diving people and underwater moving creatures, combined with Fig. 15B ,like Fig.19A As shown, after the user makes a gesture of the number "2" with his hand, the mobile phone responds to the gesture and displays the track mark 44, track mark 45, prompt information 46 and custom control 85 in the shooting control area 43 of the shooting preview interface 13, so that the user can make the seventh gesture twice with respect to the mobile phone, for example, make two gestures of the user's hand pointing to the right. Fig.19B As shown, after the user performs two air gestures with the user's hand pointing right, the mobile phone responds to the air gesture and controls the track selection mark 47 to move to the custom control 85, so that the user can perform a fourteenth air gesture with respect to the electronic device, such as a "fist" air gesture with the user's hand. Fig.19C As shown, after the user makes a "fist" gesture with his hand, the mobile phone can display a third prompt message, such as prompt message 86.

[0246] In the scene of shooting a group photo video of a diving person and an underwater moving object, combined with Fig. 16B ,like Fig. 20A As shown, after the user makes a gesture of the number "2" with his hand, the mobile phone responds to the gesture and displays the track mark 49, track mark 50, prompt information 51 and custom control 87 in the shooting control area 48 of the shooting preview interface 13, so that the user can make two seventh gestures with respect to the mobile phone, for example, make two gestures of the user's hand pointing to the right. Fig. 20B As shown, after the user performs two air gestures with the user's hand pointing right, the mobile phone responds to the air gesture and controls the track selection mark 52 to move to the custom control 87, so that the user can perform a fourteenth air gesture with respect to the electronic device, such as a "fist" air gesture with the user's hand. Fig. 20C As shown, after the user makes a "fist" gesture with his hand, the mobile phone can display a third prompt message, such as prompt message 88.

[0247] Step 405: In response to the eighth air gesture for drawing a motion trajectory, the electronic device displays the motion trajectory drawn by the eighth air gesture.

[0248] In some embodiments of the present application, the eighth air gesture may be an air gesture in which the user's hand moves in the air.

[0249] In some embodiments of the present application, the electronic device may display the motion trajectory drawn by the eighth air gesture in a floating manner on the image preview area.

[0250] In some embodiments of the present application, the above step 405 can be specifically implemented through the following step 405a.

[0251] Step 405a: The electronic device displays the motion trajectory drawn by the eighth air gesture according to the trajectory thickness corresponding to the trajectory drawing speed of the eighth air gesture.

[0252] In some embodiments of the present application, the above-mentioned trajectory drawing speed can be any one of the following: the movement speed of the user's hand when the electronic device recognizes the start of the eighth air gesture, the average movement speed of the user's hand during the user's eighth air gesture, and the movement speed of the user's hand when the electronic device recognizes the end of the eighth air gesture. Of course, the above-mentioned trajectory drawing speed can also be the movement speed of the user's hand at any time during the user's eighth air gesture, or the average movement speed of the user's hand between any two times during the user's eighth air gesture, and the embodiments of the present application are no longer exhaustive here.

[0253] In some embodiments of the present application, a first trajectory thickness and a second trajectory thickness are preset in the electronic device, and the first trajectory thickness is thicker than the second trajectory thickness, so that the electronic device can display the motion trajectory drawn by the eighth air gesture according to the first trajectory thickness when the above-mentioned trajectory drawing speed is less than or equal to the preset speed; or, the electronic device can display the motion trajectory drawn by the eighth air gesture according to the second trajectory thickness when the above-mentioned trajectory drawing speed is greater than the preset speed.

[0254] In the scene of shooting underwater photos of diving people and underwater moving creatures, combined with Fig.19C ,like Fig.21A As shown, the user can perform an eighth air gesture, such as an air gesture in which the user's hand moves in the air, so that the mobile phone responds to the air gesture, and when the trajectory drawing speed of the air gesture is less than or equal to the set speed, the motion trajectory 89 drawn by the eighth air gesture is displayed according to the first trajectory thickness. Or, as Fig.21B As shown, the user can perform an eighth air gesture, such as an air gesture in which the user's hand moves in the air, so that the mobile phone responds to the air gesture. When the trajectory drawing speed of the air gesture is less than or equal to the set speed, the motion trajectory 90 drawn by the eighth air gesture is displayed according to the first trajectory thickness.

[0255] In the scene of shooting a group photo video of a diving person and an underwater moving object, combined with Fig. 20C ,like Fig.22A As shown, the user can perform an eighth air gesture, such as an air gesture in which the user's hand moves in the air, so that the mobile phone responds to the air gesture, and when the trajectory drawing speed of the air gesture is less than or equal to the set speed, the motion trajectory 91 drawn by the eighth air gesture is displayed according to the first trajectory thickness. Or, as Fig. 22B As shown, the user can perform an eighth air gesture, such as an air gesture in which the user's hand moves in the air, so that the mobile phone responds to the air gesture. When the trajectory drawing speed of the air gesture is less than or equal to the set speed, the motion trajectory 92 drawn by the eighth air gesture is displayed according to the first trajectory thickness.

[0256] In this way, it can be seen that since the electronic device can also display the motion trajectory drawn by the eighth air gesture according to the trajectory thickness corresponding to the trajectory drawing speed of the eighth air gesture, the user can accurately know whether the speed of the motion trajectory drawn by the eighth air gesture is the speed required by the user based on the trajectory thickness of the motion trajectory, thereby reducing the situation where a motion trajectory that the user does not require is determined as the motion trajectory of the trajectory usage object.

[0257] Step 406: The electronic device determines the motion trajectory drawn by the eighth air gesture as the motion trajectory of the trajectory usage object.

[0258] In some embodiments of the present application, a user can perform a fifteenth air gesture relative to the electronic device, so that the electronic device can respond to the fifteenth air gesture, determine the motion trajectory drawn by the eighth air gesture as the motion trajectory of the trajectory usage object, and display the fifth prompt information, which is used to prompt the user that the motion trajectory of the trajectory usage object has been set.

[0259] The fifteenth air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, or an air gesture in which the user's hand is in a specific posture. For example, the fifteenth air gesture may be an air gesture in which the user's hand makes a "fist".

[0260] In the scene of shooting underwater photos of diving people and underwater moving creatures, combined with Fig.21A ,like Fig.23A As shown, the user can perform a fifteenth air gesture relative to the electronic device, such as a "fist" gesture made by the user's hand, so that the mobile phone can determine the motion trajectory drawn by the eighth air gesture as the motion trajectory of the trajectory use object and display the third prompt information 93. Or, combined with Fig.21B ,like Fig. 23BAs shown, the user can perform the fifteenth air gesture relative to the electronic device, such as making a "fist" gesture with his hand, so that the mobile phone can determine the motion trajectory drawn by the eighth air gesture as the motion trajectory of the trajectory usage object, and display the third prompt information 94.

[0261] In the scene of shooting a group photo video of a diving person and an underwater moving object, combined with Fig.22A ,like Fig.24A As shown, the user can perform a fifteenth air gesture relative to the electronic device, such as a "fist" gesture made by the user's hand, so that the mobile phone can determine the motion trajectory drawn by the eighth air gesture as the motion trajectory of the trajectory use object and display the third prompt information 95. Or, combined with Fig. 22B ,like Fig. 24B As shown, the user can perform the fifteenth air gesture relative to the electronic device, such as making a "fist" gesture with his hand, so that the mobile phone can determine the motion trajectory drawn by the eighth air gesture as the motion trajectory of the trajectory usage object, and display the third prompt information 96.

[0262] It can be seen that since the electronic device can also display a custom trajectory control for setting a custom motion trajectory, when the user needs to set the motion trajectory of the trajectory usage object by himself, the user can control the trajectory selection mark to move to the custom trajectory control and draw the motion trajectory required by the user, so that the electronic device can directly determine the motion trajectory required by the user as the motion trajectory of the trajectory usage object, without spending a long time to find the motion trajectory required by the user. Therefore, the efficiency of determining the motion trajectory of the trajectory usage object can be improved.

[0263] In some embodiments of the present application, the camera of the object video used for recording the trajectory is the main camera, and the camera other than the main camera in the first rear camera and the second rear camera is the auxiliary camera; the recording frame rate of the main camera is the frame rate corresponding to the trajectory drawing speed of the eighth air gesture. In some examples, the above step 102 can be specifically implemented by the following steps 102d to 102h.

[0264] Step 102d: The electronic device extracts N object images from the N main video frames recorded by the main camera.

[0265] In the embodiment of the present application, each of the above-mentioned N object images only includes the trajectory usage object; N is an integer greater than 1.

[0266] In some embodiments of the present application, after the electronic device determines the motion trajectory drawn by the eighth air gesture as the motion trajectory of the trajectory usage object, the electronic device can adjust the recording frame rate of the main camera to the frame rate corresponding to the trajectory drawing speed of the eighth air gesture, and record N main video frames.

[0267] It should be noted that, for instructions on how an electronic device extracts N object images from N main videos recorded by a main camera, reference may be made to the specific description in the above embodiment, and the embodiments of the present application will not be repeated here.

[0268] In some embodiments of the present application, before the above step 102d, the video shooting method provided by the embodiment of the present application may further include the following step 501 or step 502.

[0269] Step 501: When the trajectory drawing speed of the eighth air gesture is greater than or equal to the speed threshold, the electronic device determines the first frame rate as the recording frame rate of the main camera.

[0270] Step 502: When the trajectory drawing speed of the eighth air gesture is less than the speed threshold, the electronic device determines the second frame rate as the recording frame rate of the main camera.

[0271] In the embodiment of the present application, the first frame rate is lower than the second frame rate.

[0272] In some embodiments of the present application, the second frame rate may be a default recording frame rate of the main camera, or a recording frame rate set by a user.

[0273] In some embodiments of the present application, the first frame rate may be any one of the following: 30, 60, 90. The second frame rate may be any one of the following: 60, 90, 120. Of course, the first frame rate and the second frame rate may also be other frame rates, which are not limited in the embodiments of the present application.

[0274] It can be seen that since the electronic device can use different frame rates to update the recording frame rate of the main camera according to the relationship between the trajectory drawing speed of the eighth air gesture and the speed threshold, in the subsequent steps, the electronic device can directly use different fusion methods to fuse the video recorded by the main camera and the video recorded by the auxiliary camera, so that when playing the underwater video, the trajectory uses the object according to the trajectory drawing speed drawn by the eighth air gesture, and moves along the motion trajectory drawn by the eighth air gesture, without the user having to perform multiple operation adjustments, thereby simplifying the user's operations in the process of obtaining the underwater video required by the user.

[0275] Step 102e: the electronic device selects M reference trajectory points from the motion trajectory of the trajectory usage object according to the motion direction of the motion trajectory of the trajectory usage object.

[0276] In the embodiment of the present application, M is a positive integer, M≤N.

[0277] In some embodiments of the present application, the value of M may be determined by the number N of N object images, or may be determined by the number of auxiliary video frames recorded by the auxiliary camera.

[0278] In some embodiments of the present application, the motion trajectory of the above-mentioned trajectory object includes multiple trajectory points. Therefore, the electronic device can first determine a predetermined trajectory point among the multiple trajectory points as the first reference trajectory point, and select a reference trajectory point in the motion direction of the motion trajectory of the trajectory object at the predetermined trajectory point to obtain M reference trajectory points.

[0279] In some embodiments of the present application, the above N can be any of the following: 5, 10, 15, 20, 25, 30, 35, 40, etc. The above M can be any of the following: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, etc. Of course, the above N and M can also take other values, which are not limited in the embodiments of the present application.

[0280] In some examples, when the trajectory drawing speed of the eighth air gesture is greater than or equal to the speed threshold, the value of M is determined by the number N of N object images, N=M, and the electronic device can determine a predetermined trajectory point among the multiple trajectory points as the first reference trajectory point, and select M-1 reference trajectory points according to a preset point selection interval in the direction of motion of the trajectory of the object using the trajectory of the predetermined trajectory point, so as to obtain M reference trajectory points. Among them, the preset point selection interval Z can be a positive integer, for example, Z can be 1, that is, the electronic device can select a reference trajectory point every other trajectory point in the direction of motion of the trajectory of the object using the trajectory of the predetermined trajectory point.

[0281] It can be understood that since the electronic device can select M-1 reference trajectory points according to the preset point interval in the motion direction of the motion trajectory of the trajectory object at the predetermined trajectory point, the distance between each of the M reference trajectory points can be larger. Therefore, in the subsequent steps, after the M images of the object to be fused are respectively synthesized to the positions corresponding to the M reference trajectory points in the M auxiliary video frames to be fused, the distance between the trajectory object in two adjacent images of the object to be fused is also larger. Therefore, when playing the underwater video, the movement speed of the trajectory object is also faster.

[0282] In other examples, when the trajectory drawing speed of the eighth air gesture is less than the speed threshold, the value of M is determined by the number of auxiliary video frames recorded by the auxiliary camera, and the electronic device can determine a predetermined trajectory point among the multiple trajectory points as the first reference trajectory point, and determine the second trajectory point in the motion direction of the motion trajectory of the object of the trajectory of the predetermined trajectory point as the second reference trajectory point, and determine the third trajectory point in the motion direction of the motion trajectory of the object of the trajectory of the predetermined trajectory point as the third reference trajectory point, and so on, to determine M-1 reference trajectory points, thereby obtaining M reference trajectory points.

[0283] It can be understood that since the electronic device can determine each trajectory point in the motion direction of the motion trajectory of the trajectory object of the predetermined trajectory point as a reference trajectory point to determine M-1 reference trajectory points, this can make the distance between each of the M reference trajectory points smaller, so that in the subsequent steps, after the M images of the object to be fused are respectively synthesized to the positions corresponding to the M reference trajectory points in the M auxiliary video frames to be fused, the distance between the trajectory object in two adjacent images of the object to be fused is also smaller, and therefore, when playing the underwater video, the movement speed of the trajectory object is also slower.

[0284] It should be noted that, for the description of the electronic device selecting M reference trajectory points when the value of M is greater than the number of multiple trajectory points included in the motion trajectory of the trajectory usage object, please refer to the specific description in the above embodiment, and the embodiments of the present application will not be repeated here.

[0285] Step 102f: The electronic device determines M object images to be fused from the N object images.

[0286] Step 102g: The electronic device determines M auxiliary video frames to be merged from the T auxiliary video frames recorded by the auxiliary camera.

[0287] In the embodiment of the present application, T is an integer greater than 1, and M≤T.

[0288] The following will use different examples to illustrate a specific scheme in which an electronic device determines M object images to be fused and M auxiliary video frames to be fused.

[0289] In some embodiments of the present application, when the trajectory drawing speed of the eighth air gesture is greater than or equal to the speed threshold, the above step 102f can be specifically implemented by the following step 102f1, and the above step 102g can be specifically implemented by the following steps 102g1 and 102g2.

[0290] Step 102f1: The electronic device determines N object images as M object images to be fused.

[0291] In the embodiment of the present application, M=N.

[0292] It can be understood that the electronic device can determine each object image as an object image to be fused.

[0293] Step 102g1, the electronic device determines the first frame interval according to the size relationship between T and N.

[0294] In the embodiment of the present application, N<T.

[0295] In the embodiment of the present application, the above-mentioned T may be the number of auxiliary video frames recorded by the auxiliary camera.

[0296] In some embodiments of the present application, the above T may be any of the following: 5, 10, 15, 20, 25, 30, 35, 40, etc. Of course, the above T may also take other values, which are not limited in the embodiments of the present application.

[0297] In some embodiments of the present application, the first frame interval may be a positive integer, for example, any of the following: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, etc. Of course, the first frame interval may also be other frame intervals, which are not limited in the embodiments of the present application.

[0298] In some embodiments of the present application, the electronic device may first calculate the difference between T and N, and then determine the first frame interval according to a value obtained by dividing the difference by N.

[0299] The electronic device may round down the value obtained by dividing the difference by N to obtain a first value, and then determine the difference between the first value and value 1 as the first frame interval. Alternatively, the electronic device may directly determine the first value as the first frame interval.

[0300] Step 102g2: The electronic device selects auxiliary video frames to be merged from the T auxiliary video frames at equal intervals according to the first frame-taking interval to obtain M auxiliary video frames to be merged.

[0301] It can be seen that when the number of N object images is less than T auxiliary video frames, the electronic device can accurately determine the first frame interval according to the size relationship between T and N, and select M auxiliary video frames to be fused that are equal to the N object images from the T auxiliary time-frequency frames at equal intervals according to the first frame interval. Therefore, in subsequent steps, the electronic device can fuse the N object images at equal intervals on the M auxiliary video frames to be fused, thereby improving the movement smoothness of the objects using the trajectory in the underwater video, and thus, the video quality of the underwater video can be improved.

[0302] In some embodiments of the present application, when the trajectory drawing speed of the eighth air gesture is less than the speed threshold, the above step 102f can be specifically implemented by the following steps 102f2 and 102f3, and the above step 102g can be specifically implemented by the following step 102g3.

[0303] Step 102f2: The electronic device determines the second frame interval according to the relationship between T and N.

[0304] In the embodiment of the present application, N>T.

[0305] In the embodiment of the present application, the above-mentioned T may be the number of auxiliary video frames recorded by the auxiliary camera.

[0306] In some embodiments of the present application, the second frame interval may be a positive integer, for example, any of the following: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, etc. Of course, the second frame interval may also be other frame intervals, which are not limited in the embodiments of the present application.

[0307] In some embodiments of the present application, the electronic device may first calculate the difference between N and T, and then determine the second frame interval according to a value obtained by dividing the difference by T.

[0308] The electronic device may round down the value obtained by dividing the difference by T to obtain a second value, and then determine the difference between the second value and value 1 as the second frame interval. Alternatively, the electronic device may directly determine the second value as the second frame interval.

[0309] Step 102f3: The electronic device selects the to-be-fused object images at equal intervals from the N object images according to the second frame-taking interval, to obtain M to-be-fused object images.

[0310] Step 102g3: The electronic device determines T auxiliary video frames as M auxiliary video frames to be merged.

[0311] In the embodiment of the present application, M=T.

[0312] It can be seen that, when the number of N object images is greater than T auxiliary video frames, the electronic device can accurately determine the second frame interval based on the size relationship between T and N, and select M object images to be fused that are equal to the T auxiliary video frames from the N object images at equal intervals according to the second frame interval. Therefore, in subsequent steps, the electronic device can fuse the M object images to be fused one by one on the T auxiliary video frames, thereby avoiding the situation where the electronic device cannot fuse the N object images and the T auxiliary video frames due to the different numbers of N object images and T auxiliary video frames.

[0313] Step 102h: The electronic device synthesizes the M to-be-fused object images to the positions corresponding to the M reference trajectory points in the M to-be-fused auxiliary video frames respectively.

[0314] In some embodiments of the present application, each of the M reference trajectory points corresponds to a coordinate information, which is the coordinate information in the first coordinate system. Thus, the electronic device can superimpose the first image of the object to be fused among the M images of the object to be fused on the coordinate information corresponding to the first reference trajectory point among the M reference trajectory points in the first auxiliary video frame to be fused among the M auxiliary video frames to be fused, and superimpose the second image of the object to be fused among the M images of the object to be fused on the coordinate information corresponding to the second reference trajectory point among the M reference trajectory points in the second auxiliary video frame to be fused among the M auxiliary video frames to be fused, and so on, until the Mth image of the object to be fused among the M images of the object to be fused is superimposed on the coordinate information corresponding to the Mth reference trajectory point among the M reference trajectory points in the Mth auxiliary video frame to be fused among the M auxiliary video frames to be fused.

[0315] In the scenario of shooting a group photo video of a diving person and underwater moving creatures, assuming that the first rear camera is the main camera, the trajectory drawing speed of the eighth air gesture is greater than or equal to the speed threshold. Fig. 12B and Fig. 23B ,like Fig.25A As shown, the mobile phone can extract N object images from the N main video frames recorded by the first rear camera, for example, the mobile phone extracts object image 97, object image 98 and object image 99, so that the mobile phone can determine object image 97, object image 98 and object image 99 as the object images to be fused. Fig.25B As shown, the motion trajectory of the trajectory object is motion trajectory 100, and the motion direction of motion trajectory 100 is from left to right along the motion trajectory 100, so that the mobile phone can determine the predetermined trajectory point 101 in the motion trajectory 100 as the first reference trajectory point, and determine the trajectory point 102 with a preset point interval along the direction of the predetermined trajectory point 101 as the second reference trajectory point, and determine the trajectory point 103 with a preset point interval along the direction of the trajectory point 102 as the third reference trajectory point. Fig.25C As shown, the second rear camera of the mobile phone records T auxiliary video frames, such as auxiliary video frame 104, auxiliary video frame 105, auxiliary video frame 106, auxiliary video frame 107 and auxiliary video frame 108, so that the mobile phone can select auxiliary video frames to be merged from auxiliary video frame 104, auxiliary video frame 105, auxiliary video frame 106, auxiliary video frame 107 and auxiliary video frame 108 according to the first frame interval. For example, if the first frame interval is 1, the mobile phone can select auxiliary video frame 104, auxiliary video frame 106 and auxiliary video frame 108 as auxiliary video frames to be merged. Fig.25D As shown, the mobile phone can superimpose object image 97 on the position corresponding to the first reference trajectory point in the auxiliary video frame 104, that is, the position corresponding to the predetermined trajectory point 101, and superimpose object image 98 on the position corresponding to the second reference trajectory point in the auxiliary video frame 106, that is, the position corresponding to trajectory point 102, and superimpose object image 99 on the position corresponding to the third reference trajectory point in the auxiliary video frame 108, that is, the position corresponding to trajectory point 103.

[0316] In the scene of shooting a group photo video of a diving person and underwater moving creatures, assuming that the first rear camera is the main camera, the trajectory drawing speed of the eighth air gesture is less than the speed threshold. Fig. 12B and Fig.23A ,like Fig.26A As shown, the mobile phone can extract N object images from the N main video frames recorded by the first rear camera, for example, the mobile phone extracts object images 109, 110, 111, 112 and 113, and selects the object image to be fused from object images 109, 110, 111, 112 and 113 according to the second frame interval. For example, if the second frame interval is 1, the mobile phone can select object images 109, 111 and 113 as the object images to be fused. Fig.26B As shown, the motion trajectory of the trajectory object is motion trajectory 114, and the motion direction of the motion trajectory 114 is from left to right along the motion trajectory 114, so that the mobile phone can determine the predetermined trajectory point 115 in the motion trajectory 114 as the first reference trajectory point, and determine the second trajectory point 116 in the motion trajectory 114 along the direction as the second reference trajectory point, and determine the third trajectory point 117 in the motion trajectory 114 along the direction as the third reference trajectory point. Fig.26C As shown, the second rear camera of the mobile phone records T auxiliary video frames, such as auxiliary video frame 118, auxiliary video frame 119 and auxiliary video frame 120, so that the mobile phone can determine auxiliary video frame 118, auxiliary video frame 119 and auxiliary video frame 120 as auxiliary video frames to be merged. Fig.26D As shown, the mobile phone can superimpose the object image 109 on the position corresponding to the first reference trajectory point in the auxiliary video frame 118, that is, the position corresponding to the predetermined trajectory point 115, and superimpose the object image 111 on the position corresponding to the second reference trajectory point in the auxiliary video frame 119, that is, the position corresponding to the second trajectory point 116, and superimpose the object image 113 on the position corresponding to the third reference trajectory point in the auxiliary video frame 120, that is, the position corresponding to the third trajectory point 117.

[0317] In the scenario of shooting a group photo video of a diving person and an underwater moving object, assuming that the first rear camera is the main camera, the trajectory drawing speed of the eighth air gesture is greater than or equal to the speed threshold. Fig. 13B and Fig. 24B ,like Fig.27A As shown, the mobile phone can extract N object images from the N main video frames recorded by the first rear camera, for example, the mobile phone extracts object image 121, object image 122 and object image 123, so that the mobile phone can determine object image 121, object image 122 and object image 123 as the object images to be fused. Fig.27B As shown, the motion trajectory of the trajectory object is motion trajectory 124, and the motion direction of motion trajectory 124 is from left to right along the motion trajectory 124, so that the mobile phone can determine the predetermined trajectory point 125 in the motion trajectory 124 as the first reference trajectory point, and determine the trajectory point 126 with a preset point interval along the direction of the predetermined trajectory point 125 as the second reference trajectory point, and determine the trajectory point 127 with a preset point interval along the direction of the trajectory point 126 as the third reference trajectory point. Fig.27C As shown, the second rear camera of the mobile phone records T auxiliary video frames, such as auxiliary video frame 128, auxiliary video frame 129, auxiliary video frame 130, auxiliary video frame 131 and auxiliary video frame 132, so that the mobile phone can select auxiliary video frames to be merged from auxiliary video frames 128, auxiliary video frames 129, auxiliary video frames 130, auxiliary video frames 131 and auxiliary video frames 132 according to the first frame interval. For example, if the first frame interval is 1, the mobile phone can select auxiliary video frames 128, auxiliary video frames 130 and auxiliary video frames 132 as auxiliary video frames to be merged. Fig.27D As shown, the mobile phone can superimpose object image 121 on the position corresponding to the first reference trajectory point in the auxiliary video frame 128, that is, the position corresponding to the predetermined trajectory point 125, and superimpose object image 122 on the position corresponding to the second reference trajectory point in the auxiliary video frame 130, that is, the position corresponding to trajectory point 126, and superimpose object image 123 on the position corresponding to the third reference trajectory point in the auxiliary video frame 132, that is, the position corresponding to trajectory point 127.

[0318] In the scenario of shooting a group photo video of a diving person and an underwater moving object, assuming that the first rear camera is the main camera, the trajectory drawing speed of the eighth air gesture is less than the speed threshold. Fig. 13B and Fig.24A ,like Fig.28AAs shown, the mobile phone can extract N object images from the N main video frames recorded by the first rear camera, for example, the mobile phone extracts object images 133, 134, 135, 136 and 137, and selects the object image to be fused from object images 133, 134, 135, 136 and 137 according to the second frame interval. For example, if the second frame interval is 1, the mobile phone can select object images 133, 135 and 137 as the object images to be fused. Fig.28B As shown, the motion trajectory of the trajectory object is motion trajectory 138, and the motion direction of the motion trajectory 138 is from left to right along the motion trajectory 138, so that the mobile phone can determine the predetermined trajectory point 139 in the motion trajectory 138 as the first reference trajectory point, and determine the second trajectory point 140 in the motion trajectory 138 along the direction as the second reference trajectory point, and determine the third trajectory point 141 in the motion trajectory 138 along the direction as the third reference trajectory point. Fig.28C As shown, the second rear camera of the mobile phone records T auxiliary video frames, such as auxiliary video frame 142, auxiliary video frame 143 and auxiliary video frame 144, so that the mobile phone can determine auxiliary video frame 142, auxiliary video frame 143 and auxiliary video frame 144 as auxiliary video frames to be merged. Fig.28D As shown, the mobile phone can superimpose the object image 133 on the position corresponding to the first reference trajectory point in the auxiliary video frame 142, that is, the position corresponding to the predetermined trajectory point 139, and superimpose the object image 135 on the position corresponding to the second reference trajectory point in the auxiliary video frame 143, that is, the position corresponding to the second trajectory point 140, and superimpose the object image 137 on the position corresponding to the third reference trajectory point in the auxiliary video frame 144, that is, the position corresponding to the third trajectory point 141.

[0319] In this way, it can be seen that since the electronic device can directly extract N object images that only include the trajectory-using object from the N main video frames recorded by the main camera, and select M reference trajectory points from the motion trajectory of the trajectory-using object according to the motion direction of the motion trajectory of the trajectory-using object, and directly synthesize the M object images to be fused determined by the N object images to the positions corresponding to the M reference trajectory points in the M auxiliary video frames to be fused determined by T auxiliary video frames, so that when playing the underwater video, the motion trajectory of the trajectory-using object is the same as the motion trajectory required by the user, and the motion speed of the trajectory-using object matches the motion speed required by the user, without the user having to perform multiple operations after obtaining the underwater video. Therefore, the user's operations in the process of obtaining the video required by the user can be simplified.

[0320] In some embodiments of the present application, Figure 1 ,like Fig.29 As shown, before the above step 102, the video shooting method provided in the embodiment of the present application may further include the following steps 601 and 602.

[0321] Step 601: The electronic device displays a fourth prompt message in response to the ninth air gesture.

[0322] It should be noted that the embodiment of the present application does not limit the order in which the electronic device executes step 101 and step 601. In one example, the electronic device may first execute step 101 and then execute step 601, that is, the electronic device may first record the moving object video through the first rear camera and record the diving object video through the second rear camera, and then display the fourth prompt information; in another example, the electronic device may first execute step 601 and then execute step 101, that is, the electronic device may display the fourth prompt information, and then record the moving object video through the first rear camera and record the diving object video through the second rear camera; in another example, the electronic device may execute step 601 while executing step 101, that is, the electronic device may record the moving object video through the first rear camera and record the diving object video through the second rear camera, and display the fourth prompt information. Fig.29 In the figure, it is illustrated that the electronic device first executes step 101 and then executes step 601.

[0323] In some embodiments of the present application, the ninth air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture. For example, the ninth air gesture may be an air gesture in which the user's hand makes the number "3", or may be an air gesture in which the user's hand makes the number "4".

[0324] In the embodiment of the present application, the fourth prompt information is used to prompt setting of parameter values ​​of the recording parameters of the first rear camera or the second rear camera.

[0325] In some embodiments of the present application, the above-mentioned video recording parameters may include at least one of the following: exposure, exposure time, focal length, contrast, etc.

[0326] In some embodiments of the present application, when the gesture type of the ninth air gesture is the third gesture type, the fourth prompt information is used to prompt setting of parameter values ​​of the recording parameters of the first rear camera. When the gesture type of the ninth air gesture is the fourth gesture type, the fourth prompt information is used to prompt setting of parameter values ​​of the recording parameters of the second rear camera.

[0327] Among them, the third gesture type may be a gesture type in which the user makes the gesture of the number "3" with his hand, and the fourth gesture type may be a gesture type in which the user makes the gesture of the number "4" with his hand.

[0328] In some embodiments of the present application, when the fourth prompt information is used to prompt the setting of the parameter value of the recording parameter of the first rear camera, the electronic device can display the video frame recorded by the first rear camera in the image preview area in response to the ninth air gesture, and display the fourth prompt information in the image preview area. Alternatively, when the fourth prompt information is used to prompt the setting of the parameter value of the recording parameter of the second rear camera, the electronic device can display the video frame recorded by the second rear camera in the image preview area in response to the ninth air gesture, and display the fourth prompt information in the image preview area.

[0329] Step 602: The electronic device updates the parameter value of the recording parameter of the first rear camera or the second rear camera in response to the tenth air gesture.

[0330] In some embodiments of the present application, the tenth air gesture may include at least one of the following: an air gesture in which the user's hand makes a specific shape, an air gesture in which the user's hand moves along a specific trajectory, and an air gesture in which the user's hand is in a specific posture. For example, the tenth air gesture may be an air gesture in which the user's palm opens and closes.

[0331] In some embodiments of the present application, the electronic device may determine a new parameter value of a corresponding recording parameter based on the tenth air gesture, and set the parameter value of the recording parameter to the new parameter value.

[0332] In this way, it can be seen that since the electronic device can also prompt the user to set the parameter values ​​of the recording parameters of the first rear camera or the second rear camera according to the user's ninth air gesture, and update the parameter values ​​of the recording parameters of the first rear camera or the second rear camera according to the user's tenth air gesture without the user pressing the electronic device, it can avoid the situation where the electronic device shakes due to the user pressing the electronic device, thereby avoiding the situation where the underwater video is unclear due to the shaking of the electronic device. In this way, the video quality of the underwater video obtained by the electronic device can be improved.

[0333] In some embodiments of the present application, the video recording parameters include focal length. In some examples, before the above step 602, the video shooting method provided by the embodiment of the present application may further include the following step 701, and the above step 602 may be specifically implemented by the following steps 602a to 602c.

[0334] Step 701: The electronic device displays a focus control control.

[0335] In the embodiment of the present application, the above-mentioned focal length control widget is used to adjust the focal length.

[0336] In some embodiments of the present application, the electronic device may display a focus control control in the shooting control area while displaying the fourth prompt information.

[0337] Step 602a: The electronic device adjusts the display size of the focus control control according to the hand opening and closing angle of the tenth air gesture.

[0338] In some embodiments of the present application, at least one first correspondence is stored in the electronic device, and the first correspondence is a correspondence between an angle and a size, so that the electronic device can determine an angle matching the above-mentioned hand opening and closing angle from at least one angle in the at least one first correspondence, and then, when the hand opening and closing angle is an open angle, increase the control display size of the focus control control according to the size corresponding to the angle; or, when the hand opening and closing angle is a closed angle, reduce the control display size of the focus control control according to the size corresponding to the angle.

[0339] Step 602b: The electronic device updates the focal length value of the first rear camera or the second rear camera according to the adjusted control display size of the focus control control.

[0340] In some embodiments of the present application, at least one second correspondence is stored in the electronic device, and the second correspondence is a correspondence between size and value, so that the electronic device can determine a size that matches the control display size of the adjusted focus control control from at least one size in the at least one second correspondence, and set the focal length value of the focal length of the first rear camera or the second rear camera to a value corresponding to the one size.

[0341] In a scene of shooting a group photo video of a diver and an underwater moving creature underwater, or in a scene of shooting a group photo video of a diver and an underwater moving object underwater, the user can perform a ninth air gesture relative to the mobile phone, and the ninth air gesture is a gesture type of the user's hand making the number "4", such as Fig. 30A As shown, the mobile phone can display a fourth prompt message 145 in the image preview area 144 and a focus control control 147 in the shooting control area 146, wherein the fourth prompt message 145 is used to prompt the user to set the focus value of the focus of the second rear camera, so that the user can perform the tenth air gesture; when the tenth air gesture is an air gesture with the user's palm open, as shown in FIG. Fig. 30BAs shown, the mobile phone can increase the control display size of the focus control control 147 according to the hand opening angle of the tenth air gesture, and update the focus value of the focus of the second rear camera according to the adjusted control display size of the focus control control 147, that is, the display size of the diving figure 148 in the image preview area 144 becomes larger; in the case where the tenth air gesture is an air gesture in which the palm of the user's hand is closed, as shown Fig. 30C As shown, the mobile phone can reduce the control display size of the focus control control 147 according to the hand closure angle of the tenth air gesture, and update the focal length value of the focal length of the second rear camera according to the adjusted control display size of the focus control control 147, that is, the display size of the diving character 148 in the image preview area 144 becomes smaller.

[0342] It can be seen that since the electronic device can also display the focus control control and update the focus value of the focus of the first rear camera or the second rear camera according to the hand opening and closing angle of the tenth air gesture without the user pressing the electronic device, it can avoid the situation where the electronic device shakes due to the user pressing the electronic device, thereby avoiding the situation where the underwater video is unclear due to the shaking of the electronic device. In this way, the video quality of the underwater video obtained by the electronic device can be improved.

[0343] The video shooting method provided in the embodiment of the present application can be executed by a video shooting device. In the embodiment of the present application, the video shooting device provided in the embodiment of the present application is described by taking the video shooting method executed by the video shooting device as an example.

[0344] Fig.31 FIG. 1 is a schematic diagram showing the structure of a video shooting device provided in an embodiment of the present application. Fig.31 As shown, the video shooting device 80 provided in the embodiment of the present application may include: a recording module 81, which is used to record a moving object video through a first rear camera and a diving object video through a second rear camera in response to a first air gesture in an underwater shooting mode; the moving object video includes a moving object, and the diving object video includes a diving person. A processing module 82 is used to perform video fusion on the diving object video and the moving object video recorded by the recording module 81, and output an underwater video.

[0345] The embodiment of the present application provides a video shooting device, because the user performs a first air gesture relative to the video shooting device, the video shooting device can be triggered to record a video without the user pressing the video shooting device, so that the video shooting device can be prevented from shaking due to the user pressing the video shooting device, so as to prevent the first rear camera and the second rear camera from being unable to face the diving person and the moving object. In addition, the video shooting device can record the diving object video and the moving object video respectively through different first rear cameras and second rear cameras, and perform video fusion based on the diving object video and the moving object video to directly obtain an underwater video, that is, directly obtain a group photo video of the diving person and the moving object, without the user instructing the diving person to keep the same movement direction and movement speed as the moving object to move, so that the situation that the first rear camera and the second rear camera cannot face the diving person and the moving object due to at least one of the movement direction and movement speed of the diving person and the moving object being inconsistent can be avoided. Thus, the user's operation in the process of the video shooting device recording the group photo video of the diving person and the moving object can be simplified, so that the efficiency of the video shooting device to shoot the video required by the user can be improved.

[0346] In a possible implementation, the above-mentioned moving object includes at least one of the following: an underwater moving creature, an underwater moving person, or an underwater moving object.

[0347] In a possible implementation, the video shooting device 80 provided in the embodiment of the present application may further include: an identification module and a display module. The identification module is used to identify the moving object for at least two moving object video frames captured by the first rear camera in response to the second air gesture before the processing module 82 performs video fusion of the diving object video and the moving object video and outputs the underwater video, and identifies Q moving objects; Q is a positive integer. The display module is used to display Q moving object identifiers in the shooting control area of ​​the shooting preview interface, and display a moving object selection identifier on the first moving object identifier; the Q moving object identifiers are used to indicate the Q moving objects, and the moving object selection identifier is used to indicate the selected moving object, and the Q moving object identifiers include the first moving object identifier. The above-mentioned processing module 82 is used to control the moving object selection identifier to move to the second moving object identifier in response to the third air gesture, and determine the second moving object indicated by the second moving object identifier as the tracking object of the first rear camera, and the Q moving object identifiers include the second moving object identifier.

[0348] In a possible implementation, the display module is specifically used to display Q moving object identifiers in order of their object sizes from large to small; wherein the first moving object identifier is a moving object identifier indicating the moving object with the largest object size among the Q moving objects.

[0349] In a possible implementation, the display module is also used to perform motion object recognition on at least two motion object video frames captured by the first rear camera in response to the second air gesture by the recognition module, and after Q motion objects are recognized, display a motion object indication mark in the object area of ​​the first motion object in the image preview area of ​​the shooting preview interface; the first motion object is the motion object indicated by the first motion object mark, and the motion object indication mark is used to indicate the display area of ​​the selected motion object in the image preview area. The display module is also used to update the motion object indication mark to the object area of ​​the second motion object in the image preview area of ​​the shooting preview interface for display after the processing module 82 controls the motion object selection mark to move to the second motion object mark; wherein the second motion object is the motion object indicated by the second motion object mark.

[0350] In one possible implementation, the above-mentioned processing module 82 is specifically used to move the moving object selection identifier to a moving object identifier adjacent to the first moving object identifier according to the moving direction indicated by the third air gesture; or, to move the moving object selection identifier to the moving object identifier corresponding to the number indicated by the third air gesture.

[0351] In a possible implementation, the video shooting device 80 provided in the embodiment of the present application may further include: a display module. The display module is used to display at least one alternative trajectory identifier and a first prompt message in the shooting control area of ​​the shooting preview interface in response to the fourth air gesture before the processing module 82 performs video fusion on the diving object video and the moving object video and outputs the underwater video, and display a trajectory selection identifier on the first trajectory identifier among the at least one trajectory identifier; a trajectory identifier is used to indicate a motion trajectory; the trajectory selection identifier is used to indicate the selected trajectory identifier; the first prompt message is used to prompt the setting of the motion trajectory of the trajectory use object; the trajectory use object is the tracking object of the first rear camera or the object selected by the user from the moving object and the diving person. The above-mentioned processing module 82 is also used to control the trajectory selection identifier displayed by the display module to move to the second trajectory identifier in response to the fifth air gesture, and determine the motion trajectory indicated by the second trajectory identifier as the motion trajectory of the trajectory use object.

[0352] In a possible implementation, the display module is further used to display a second prompt message; the second prompt message is used to prompt the user to set a track usage object. The processing module 82 is further used to respond to the sixth air gesture and determine the object corresponding to the gesture type of the sixth air gesture as the track usage object; wherein, when the gesture type of the sixth air gesture is the first gesture type, the track usage object is a moving object; when the gesture type of the sixth air gesture is the second gesture type, the track usage object is a diving person.

[0353] In a possible implementation, the camera for recording the video of the trajectory object is the main camera, and the camera other than the main camera in the first rear camera and the second rear camera is the auxiliary camera. The processing module 82 is specifically used to extract N object images from the N main video frames recorded by the main camera; each object image only includes the trajectory object; N is an integer greater than 1; and according to the movement direction of the trajectory of the trajectory object, N reference trajectory points are selected from the motion trajectory of the trajectory object; and the N object images are respectively synthesized to the positions corresponding to the N reference trajectory points in the N auxiliary video frames; wherein the auxiliary video frames are video frames recorded by the auxiliary camera.

[0354] In a possible implementation, the display module is also used to display a custom trajectory control in the shooting control area; the custom trajectory control is used to set a custom motion trajectory. The processing module 82 is also used to control the trajectory selection mark to move to the custom trajectory control displayed by the display module in response to the seventh air gesture, and display a third prompt message; the third prompt message is used to prompt the user to draw a custom motion trajectory. The display module is also used to display the motion trajectory drawn by the eighth air gesture in response to the eighth air gesture for drawing the motion trajectory. The processing module 82 is also used to determine the motion trajectory drawn by the eighth air gesture displayed by the display module as the motion trajectory of the trajectory usage object.

[0355] In a possible implementation, the display module is specifically used to display the motion trajectory drawn by the eighth air gesture according to the trajectory thickness corresponding to the trajectory drawing speed of the eighth air gesture.

[0356] In a possible implementation, the camera for recording the video of the trajectory object is the main camera, and the camera other than the main camera in the first rear camera and the second rear camera is the auxiliary camera; the recording frame rate of the main camera is the frame rate corresponding to the trajectory drawing speed of the eighth air gesture. The above-mentioned processing module 82 is specifically used to extract N object images from the N main video frames recorded by the main camera; each object image only includes the trajectory object; N is an integer greater than 1; and according to the movement direction of the trajectory of the trajectory object, M reference trajectory points are selected from the motion trajectory of the trajectory object; M is a positive integer, M≤N; and from the N object images, M object images to be fused are determined; and from the T auxiliary video frames recorded by the auxiliary camera, M auxiliary video frames to be fused are determined; T is an integer greater than 1, M≤T; and the M object images to be fused are respectively synthesized to the positions corresponding to the M reference trajectory points in the M auxiliary video frames to be fused.

[0357] In a possible implementation, the processing module 82 is also used to, before extracting N object images from N main video frames recorded from the main camera, determine the first frame rate as the recording frame rate of the main camera when the speed of drawing the trajectory of the eighth air gesture is greater than or equal to the speed threshold; or, when the speed of drawing the trajectory of the eighth air gesture is less than the speed threshold, determine the second frame rate as the recording frame rate of the main camera; wherein the first frame rate is less than the second frame rate.

[0358] In a possible implementation, when the trajectory drawing speed of the eighth air gesture is greater than or equal to the speed threshold, the processing module 82 is specifically used to determine the N object images as M object images to be fused; M = N. The processing module 82 is specifically used to determine the first frame interval according to the size relationship between T and N; N < T; and according to the first frame interval, select the auxiliary video frames to be fused at equal intervals from the T auxiliary video frames to obtain M auxiliary video frames to be fused.

[0359] In a possible implementation, when the trajectory drawing speed of the eighth air gesture is less than the speed threshold, the processing module 82 is specifically used to determine the second frame interval according to the size relationship between T and N; N>T; and according to the second frame interval, select the object images to be fused from the N object images at equal intervals to obtain M object images to be fused. The processing module 82 is specifically used to determine T auxiliary video frames as M auxiliary video frames to be fused; M=T.

[0360] In a possible implementation, the video shooting device 80 provided in the embodiment of the present application may further include: a display module. The display module is used to display a fourth prompt message in response to the ninth air gesture before the recording module 81 records the video of the moving object through the first rear camera and the video of the diving object through the second rear camera; the fourth prompt message is used to prompt the setting of the parameter value of the recording parameter of the first rear camera or the second rear camera. The above-mentioned processing module 82 is also used to update the parameter value of the recording parameter of the first rear camera or the second rear camera in response to the tenth air gesture.

[0361] In a possible implementation, the recording parameters include focal length. The display module is further configured to display a focal length control control before the processing module 82 updates the parameter value of the recording parameters of the first rear camera or the second rear camera in response to the tenth air gesture. The processing module 82 is specifically configured to adjust the control display size of the focus control control displayed by the display module according to the hand opening and closing angle of the tenth air gesture; and update the focal length value of the focal length of the first rear camera or the second rear camera according to the adjusted control display size of the focus control control.

[0362] In a possible implementation, the first rear camera is a rotatable camera. The recording module 81 is specifically configured to control the first rear camera to track and record a moving object, and during the tracking and recording process, control the first rear camera to rotate along with the moving object.

[0363] The video shooting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile internet device (mobile internet device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (network attached storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

[0364] The video 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.

[0365] The video shooting device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the method embodiment of Figure 30 are not described again here.

[0366] In some embodiments of the present application, Fig.32 As shown, an embodiment of the present application further provides an electronic device 90, including a processor 91 and a memory 92, wherein the memory 92 stores programs or instructions that can be executed on the processor 91, and when the program or instructions are executed by the processor 91, the various process steps of the above-mentioned video shooting method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0367] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0368] Fig.33 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0369] 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.

[0370] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.33 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 described in detail here.

[0371] Among them, the input unit 104 is used to record a moving object video through the first rear camera and a diving object video through the second rear camera in response to a first air gesture in the underwater shooting mode; the moving object video includes the moving object, and the diving object video includes a diving person.

[0372] The processor 110 is used to fuse the diving object video and the moving object video to output the underwater video.

[0373] The embodiment of the present application provides an electronic device, because the user performs a first air gesture relative to the electronic device, the electronic device can be triggered to record a video without the user pressing the electronic device, so that the electronic device can be prevented from shaking due to the user pressing the electronic device, so as to prevent the first rear camera and the second rear camera from being unable to face the diving person and the moving object. In addition, the electronic device can record the diving object video and the moving object video respectively through different first rear cameras and second rear cameras, and perform video fusion based on the diving object video and the moving object video to directly obtain an underwater video, that is, directly obtain a group photo video of the diving person and the moving object, without the user instructing the diving person to keep the same movement direction and movement speed as the moving object to move, so that the situation that the first rear camera and the second rear camera cannot face the diving person and the moving object due to at least one of the movement direction and movement speed of the diving person and the moving object being inconsistent can be avoided. Thus, the user's operation in the process of the electronic device recording the group photo video of the diving person and the moving object can be simplified, so that the efficiency of the electronic device to shoot the video required by the user can be improved.

[0374] In some embodiments of the present application, the processor 110 is further used to perform moving object recognition on at least two moving object video frames captured by the first rear camera in response to the second air gesture, and recognize Q moving objects; Q is a positive integer.

[0375] The display unit 106 is used to display Q moving object identifiers in the shooting control area of ​​the shooting preview interface, and to display a moving object selection identifier on the first moving object identifier; the Q moving object identifiers are used to indicate the Q moving objects, and the moving object selection identifier is used to indicate the selected moving object, and the Q moving object identifiers include the first moving object identifier.

[0376] The processor 110 is also used to control the moving object selection identifier to move to the second moving object identifier in response to the third air gesture, and determine the second moving object indicated by the second moving object identifier as the tracking object of the first rear camera, and the Q moving object identifiers include the second moving object identifier.

[0377] In some embodiments of the present application, the display unit 106 is specifically used to display Q moving object identifiers in order of the object sizes of the Q moving objects from large to small; wherein the above-mentioned first moving object identifier is a moving object identifier indicating the moving object with the largest object size among the Q moving objects.

[0378] In some embodiments of the present application, the display unit 106 is also used to display a moving object indication mark in the object area of ​​the first moving object in the image preview area of ​​the shooting preview interface; the first moving object is the moving object indicated by the first moving object identifier, and the moving object indication mark is used to indicate the display area of ​​the selected moving object in the image preview area.

[0379] The display unit 106 is further used to update the moving object indication mark to the object area of ​​the second moving object in the image preview area of ​​the shooting preview interface for display; wherein the second moving object is the moving object indicated by the second moving object mark.

[0380] In some embodiments of the present application, the processor 110 is specifically used to move the moving object selection identifier to a moving object identifier adjacent to the first moving object identifier according to the moving direction indicated by the third air gesture; or, to move the moving object selection identifier to the moving object identifier corresponding to the number indicated by the third air gesture.

[0381] In some embodiments of the present application, the display unit 106 is also used to display at least one alternative trajectory identifier and a first prompt message in the shooting control area of ​​the shooting preview interface in response to the fourth air gesture, and to display a trajectory selection identifier on the first trajectory identifier among the at least one trajectory identifier; a trajectory identifier is used to indicate a motion trajectory; the trajectory selection identifier is used to indicate a selected trajectory identifier; the first prompt message is used to prompt the setting of the motion trajectory of the trajectory usage object; the trajectory usage object is the tracking object of the first rear camera or the object selected by the user from the moving object and the diving figure.

[0382] The processor 110 is further configured to control the trajectory selection marker to move to the second trajectory marker in response to the fifth air gesture, and determine the motion trajectory indicated by the second trajectory marker as the motion trajectory of the trajectory using object.

[0383] In some embodiments of the present application, the display unit 106 is further used to display second prompt information; the second prompt information is used to prompt the user to set a track usage object.

[0384] The processor 110 is also used to respond to the sixth air gesture and determine the object corresponding to the gesture type of the sixth air gesture as the trajectory usage object; wherein, when the gesture type of the sixth air gesture is the first gesture type, the trajectory usage object is a moving object; when the gesture type of the sixth air gesture is the second gesture type, the trajectory usage object is a diving character.

[0385] In some embodiments of the present application, the camera for recording the video of the object using the trajectory is the main camera, and the camera other than the main camera among the first rear camera and the second rear camera is the auxiliary camera.

[0386] The processor 110 is specifically used to extract N object images from N main video frames recorded by the main camera; each object image only includes the trajectory object; N is an integer greater than 1; and according to the movement direction of the movement trajectory of the trajectory object, N reference trajectory points are selected from the motion trajectory of the trajectory object; and the N object images are respectively synthesized to the positions corresponding to the N reference trajectory points in N auxiliary video frames; wherein the auxiliary video frame is a video frame recorded by the auxiliary camera.

[0387] In some embodiments of the present application, the display unit 106 is further used to display a custom trajectory control in the shooting control area; the custom trajectory control is used to set a custom motion trajectory.

[0388] The processor 110 is further configured to control the trajectory selection indicator to move to the custom trajectory control in response to the seventh air gesture.

[0389] The display unit 106 is also used to display a third prompt information; the third prompt information is used to prompt the user to draw a custom motion trajectory; and in response to the eighth air gesture for drawing the motion trajectory, the motion trajectory drawn by the eighth air gesture is displayed.

[0390] The processor 110 is further configured to determine the motion trajectory drawn by the eighth air gesture as the motion trajectory of the trajectory usage object.

[0391] In some embodiments of the present application, the display unit 106 is specifically used to display the motion trajectory drawn by the eighth air gesture according to the trajectory thickness corresponding to the trajectory drawing speed of the eighth air gesture.

[0392] In some embodiments of the present application, the camera for recording the video of the object using the trajectory is the main camera, and the cameras other than the main camera among the first rear camera and the second rear camera are auxiliary cameras; the recording frame rate of the main camera is the frame rate corresponding to the trajectory drawing speed of the eighth air gesture.

[0393] The processor 110 is specifically used to extract N object images from N main video frames recorded by the main camera; each object image only includes the trajectory using object; N is an integer greater than 1; and according to the movement direction of the movement trajectory of the trajectory using object, M reference trajectory points are selected from the motion trajectory of the trajectory using object; M is a positive integer, M≤N; and from the N object images, M object images to be fused are determined; and from the T auxiliary video frames recorded by the auxiliary camera, M auxiliary video frames to be fused are determined; T is an integer greater than 1, M≤T; and the M object images to be fused are respectively synthesized to the positions corresponding to the M reference trajectory points in the M auxiliary video frames to be fused.

[0394] In some embodiments of the present application, the processor 110 is also used to determine the first frame rate as the recording frame rate of the main camera when the trajectory drawing speed of the eighth air gesture is greater than or equal to the speed threshold; or, when the trajectory drawing speed of the eighth air gesture is less than the speed threshold, determine the second frame rate as the recording frame rate of the main camera; wherein the first frame rate is less than the second frame rate.

[0395] In some embodiments of the present application, when the trajectory drawing speed of the eighth air gesture is greater than or equal to a speed threshold, the processor 110 is specifically configured to determine N object images as M object images to be fused; M=N.

[0396] The processor 110 is specifically configured to determine a first frame interval according to a relationship between T and N; N<T; and select auxiliary video frames to be merged at equal intervals from the T auxiliary video frames according to the first frame interval to obtain M auxiliary video frames to be merged.

[0397] In some embodiments of the present application, when the trajectory drawing speed of the eighth air gesture is less than a speed threshold, the processor 110 is specifically used to determine a second frame interval based on the size relationship between T and N; N>T; and according to the second frame interval, select the object images to be fused from the N object images at equal intervals to obtain M object images to be fused.

[0398] The processor 110 is specifically configured to determine T auxiliary video frames as M auxiliary video frames to be merged; M=T.

[0399] In some embodiments of the present application, the display unit 106 is further used to display a fourth prompt message in response to the ninth air gesture; the fourth prompt message is used to prompt the setting of parameter values ​​of the recording parameters of the first rear camera or the second rear camera.

[0400] The processor 110 is further configured to update parameter values ​​of recording parameters of the first rear camera or the second rear camera in response to the tenth air gesture.

[0401] In some embodiments of the present application, the above-mentioned video recording parameters include focal length.

[0402] The display unit 106 is also used to display focus control controls.

[0403] Processor 110 is also used to adjust the control display size of the focus control control according to the hand opening and closing angle of the tenth air gesture; and update the focal length value of the focal length of the first rear camera or the second rear camera according to the adjusted control display size of the focus control control.

[0404] In some embodiments of the present application, the first rear camera is a rotatable camera.

[0405] The input unit 104 is specifically used to control the first rear camera to track and record the moving object. During the tracking and recording process, the first rear camera is controlled to rotate along with the moving object.

[0406] It should be understood that in the 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 a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0407] 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, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), 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 RAM (SRAM), a dynamic RAM (DRAM), a synchronous DRAM (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 rambus RAM (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.

[0408] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0409] 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, each process of the above-mentioned video shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0410] 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.

[0411] 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 video shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0412] 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.

[0413] 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 video shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0414] It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment 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.

[0415] 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 a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, 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, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0416] 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 the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A video shooting method, characterized in that: include: In the underwater shooting mode, in response to the first air gesture, a video of a moving object is recorded through the first rear camera, and a video of a diving object is recorded through the second rear camera; The moving object video includes a moving object, and the diving object video includes a diving person; The diving object video and the moving object video are fused to output an underwater video.

2. The method according to claim 1, characterized in that The moving object includes at least one of the following: an underwater moving creature, an underwater moving person, and an underwater moving object.

3. The method according to claim 1, characterized in that Before fusing the diving object video with the moving object video and outputting the underwater video, the method further includes: In response to the second air gesture, performing moving object recognition on at least two moving object video frames captured by the first rear camera, and identifying Q moving objects; Q is a positive integer; In a shooting control area of ​​a shooting preview interface, Q moving object identifiers are displayed, and a moving object selection identifier is displayed on a first moving object identifier; the Q moving object identifiers are used to indicate the Q moving objects, the moving object selection identifier is used to indicate a selected moving object, and the Q moving object identifiers include the first moving object identifier; In response to the third air gesture, the moving object selection identifier is controlled to move to the second moving object identifier, and the second moving object indicated by the second moving object identifier is determined as the tracking object of the first rear camera, and the Q moving object identifiers include the second moving object identifier.

4. The method according to claim 3, characterized in that: The displaying of Q moving object identifiers includes: Displaying the Q moving object identifiers in descending order of object sizes of the Q moving objects; The first moving object identifier is a moving object identifier indicating a moving object with the largest object size among the Q moving objects.

5. The method according to claim 3, characterized in that: In response to the second air gesture, performing moving object recognition on at least two moving object video frames captured by the first rear camera, after Q moving objects are recognized, the method further includes: In an object area of ​​a first moving object in the image preview area of ​​the shooting preview interface, a moving object indication mark is displayed; the first moving object is a moving object indicated by the first moving object mark, and the moving object indication mark is used to indicate a display area of ​​the selected moving object in the image preview area; After controlling the moving object selection mark to move to the second moving object mark, the method further includes: updating the moving object indication mark to an object area of ​​the second moving object in the image preview area of ​​the shooting preview interface for display; The second moving object is the moving object indicated by the second moving object identifier.

6. The method according to claim 3, characterized in that The controlling the moving object selection mark to move to the second moving object mark comprises: Moving the moving object selection mark to a moving object mark adjacent to the first moving object mark according to the moving direction indicated by the third air gesture; Alternatively, the motion object selection identifier is moved to the motion object identifier corresponding to the number indicated by the third air gesture.

7. The method according to claim 1, characterized in that Before fusing the diving object video with the moving object video and outputting the underwater video, the method further includes: In response to the fourth air gesture, at least one alternative trajectory identifier and a first prompt message are displayed in the shooting control area of ​​the shooting preview interface, and a trajectory selection identifier is displayed on the first trajectory identifier of the at least one trajectory identifier; a trajectory identifier is used to indicate a motion trajectory; the trajectory selection identifier is used to indicate a selected trajectory identifier; the first prompt message is used to prompt the setting of the motion trajectory of the trajectory use object; the trajectory use object is the tracking object of the first rear camera or the object selected by the user from the motion object and the diving figure; In response to the fifth air gesture, the trajectory selection mark is controlled to move to the second trajectory mark, and the motion trajectory indicated by the second trajectory mark is determined as the motion trajectory of the trajectory using object.

8. The method according to claim 7, characterized in that The method further comprises: Displaying a second prompt message; the second prompt message is used to prompt the user to set the track usage object; In response to a sixth air gesture, determining an object corresponding to the gesture type of the sixth air gesture as the trajectory using object; Among them, when the gesture type of the sixth air gesture is the first gesture type, the object using the trajectory is the moving object; when the gesture type of the sixth air gesture is the second gesture type, the object using the trajectory is the diving person.

9. The method according to claim 7, characterized in that: The camera for recording the video of the object using the trajectory is a main camera, and the cameras other than the main camera among the first rear camera and the second rear camera are auxiliary cameras; The step of fusing the diving object video with the moving object video to output an underwater video includes: Extract N object images from the N main video frames recorded by the main camera; each object image only includes the object used in the trajectory; N is an integer greater than 1; According to the moving direction of the moving trajectory of the trajectory using object, selecting N reference trajectory points from the moving trajectory of the trajectory using object; synthesizing the N object images to positions corresponding to the N reference trajectory points in the N auxiliary video frames respectively; The auxiliary video frame is a video frame recorded by the auxiliary camera.

10. The method according to claim 7, characterized in that The method further comprises: In the shooting control area, a custom trajectory control is displayed; the custom trajectory control is used to set a custom motion trajectory; In response to the seventh air gesture, controlling the trajectory selection mark to move to the custom trajectory control, and displaying a third prompt information; the third prompt information is used to prompt the user to draw a custom motion trajectory; In response to an eighth air gesture for drawing a motion trajectory, displaying the motion trajectory drawn by the eighth air gesture; The motion trajectory drawn by the eighth air gesture is determined as the motion trajectory of the trajectory using object.

11. The method according to claim 10, characterized in that The displaying the motion trajectory drawn by the eighth air gesture includes: The motion trajectory drawn by the eighth air gesture is displayed according to the trajectory thickness corresponding to the trajectory drawing speed of the eighth air gesture.

12. The method according to claim 11, characterized in that The camera for recording the video of the object using the trajectory is the main camera, and the cameras other than the main camera among the first rear camera and the second rear camera are auxiliary cameras; the recording frame rate of the main camera is the frame rate corresponding to the speed of drawing the trajectory of the eighth air gesture; The step of fusing the diving object video with the moving object video includes: Extract N object images from the N main video frames recorded by the main camera; each object image only includes the object used in the trajectory; N is an integer greater than 1; According to the motion direction of the motion trajectory of the trajectory using object, M reference trajectory points are selected from the motion trajectory of the trajectory using object; M is a positive integer, M≤N; Determining M object images to be fused from the N object images; Determine M auxiliary video frames to be fused from the T auxiliary video frames recorded by the auxiliary camera; T is an integer greater than 1, M≤T; The M to-be-fused object images are respectively synthesized to positions corresponding to the M reference trajectory points in the M to-be-fused auxiliary video frames.

13. The method according to claim 12, characterized in that Before extracting N object images from the N main video frames recorded from the main camera, the method further includes: When the trajectory drawing speed of the eighth air gesture is greater than or equal to the speed threshold, determining the first frame rate as the recording frame rate of the main camera; or, When the trajectory drawing speed of the eighth air gesture is less than a speed threshold, determining the second frame rate as the recording frame rate of the main camera; The first frame rate is lower than the second frame rate.

14. The method according to claim 13, characterized in that When the trajectory drawing speed of the eighth air gesture is greater than or equal to the speed threshold, determining M to-be-fused object images from the N object images includes: Determine the N object images as M object images to be fused; M=N; The step of determining M auxiliary video frames to be fused from the T auxiliary video frames recorded by the auxiliary camera includes: According to the relationship between T and N, the first frame interval is determined; N<T; According to the first frame-taking interval, auxiliary video frames to be merged are selected at equal intervals from the T auxiliary video frames to obtain M auxiliary video frames to be merged.

15. The method according to claim 13, characterized in that When the trajectory drawing speed of the eighth air gesture is less than the speed threshold, determining M to-be-fused object images from the N object images includes: According to the relationship between T and N, the second frame interval is determined; N>T; According to the second frame-taking interval, selecting the to-be-fused object images from the N object images at equal intervals to obtain M to-be-fused object images; The step of determining M auxiliary video frames to be fused from the T auxiliary video frames recorded by the auxiliary camera includes: The T auxiliary video frames are determined as M auxiliary video frames to be merged; M=T.

16. The method according to claim 1, characterized in that Before recording the moving object video by the first rear camera and recording the diving object video by the second rear camera, the method further includes: In response to the ninth air gesture, displaying fourth prompt information; the fourth prompt information is used to prompt setting of parameter values ​​of recording parameters of the first rear camera or the second rear camera; In response to the tenth air gesture, update the parameter value of the recording parameter of the first rear camera or the second rear camera.

17. The method according to claim 16, characterized in that The video recording parameters include focal length; Before updating the parameter value of the video recording parameter of the first rear camera or the second rear camera in response to the tenth air gesture, the method further includes: Display focus control controls; The updating of the parameter value of the recording parameter of the first rear camera or the second rear camera in response to the tenth air gesture includes: According to the hand opening and closing angle of the tenth air gesture, adjusting the control display size of the focus control control; Update the focal length value of the first rear camera or the second rear camera according to the adjusted control display size of the focal length control control.

18. The method according to claim 1, characterized in that The first rear camera is a rotatable camera; The step of recording a moving object video by using the first rear camera comprises: The first rear camera is controlled to track and record the moving object. During the tracking and recording process, the first rear camera is controlled to rotate along with the moving object.

19. A video shooting device, characterized in that: include: A recording module, configured to record a moving object video through a first rear camera and a diving object video through a second rear camera in response to a first air gesture in an underwater shooting mode; the moving object video includes the moving object, and the diving object video includes a diving person; The processing module is used to fuse the diving object video and the moving object video recorded by the recording module and output the underwater video.

20. The device according to claim 19, characterized in that The moving object includes at least one of the following: an underwater moving creature, an underwater moving person, and an underwater moving object.

21. The device according to claim 19, characterized in that The video shooting device further includes: an identification module and a display module; The recognition module is used for, before the processing module performs video fusion on the diving object video and the moving object video and outputs the underwater video, in response to the second air gesture, performing moving object recognition on at least two moving object video frames captured by the first rear camera, and identifying Q moving objects; Q is a positive integer; The display module is used to display Q moving object identifiers in a shooting control area of ​​a shooting preview interface, and to display a moving object selection identifier on a first moving object identifier; the Q moving object identifiers are used to indicate the Q moving objects, the moving object selection identifier is used to indicate a selected moving object, and the Q moving object identifiers include the first moving object identifier; The processing module is used to control the moving object selection identifier to move to the second moving object identifier in response to the third air gesture, and determine the second moving object indicated by the second moving object identifier as the tracking object of the first rear camera, and the Q moving object identifiers include the second moving object identifier.

22. The device according to claim 21, characterized in that The display module is specifically configured to display the Q moving object identifiers in descending order of the object sizes of the Q moving objects; The first moving object identifier is a moving object identifier indicating a moving object with the largest object size among the Q moving objects.

23. The device according to claim 21, characterized in that The display module is further configured to, in response to the second air gesture, perform moving object recognition on the at least two moving object video frames captured by the first rear camera in the recognition module, and after recognizing the Q moving objects, display a moving object indication mark in an object area of ​​the first moving object in the image preview area of ​​the shooting preview interface; the first moving object is the moving object indicated by the first moving object mark, and the moving object indication mark is used to indicate a display area of ​​the selected moving object in the image preview area; The display module is further configured to update the moving object indication mark to the object area of ​​the second moving object in the image preview area of ​​the shooting preview interface for display after the processing module controls the moving object selection mark to move to the second moving object mark; The second moving object is the moving object indicated by the second moving object identifier.

24. The device according to claim 21, characterized in that The processing module is specifically used to move the motion object selection identifier to a motion object identifier adjacent to the first motion object identifier according to the moving direction indicated by the third air gesture; or, to move the motion object selection identifier to the motion object identifier corresponding to the number indicated by the third air gesture.

25. The device according to claim 19, characterized in that The video shooting device also includes: a display module; The display module is used for displaying at least one alternative trajectory identifier and a first prompt message in a shooting control area of ​​a shooting preview interface in response to a fourth air gesture before the processing module performs video fusion on the diving object video and the moving object video and outputs the underwater video, and displaying a trajectory selection identifier on a first trajectory identifier among the at least one trajectory identifier; a trajectory identifier is used to indicate a motion trajectory; the trajectory selection identifier is used to indicate a selected trajectory identifier; the first prompt message is used to prompt the setting of a motion trajectory of a trajectory use object; the trajectory use object is a tracking object of the first rear camera or an object selected by a user from among the moving object and the diving person; The processing module is further configured to control the trajectory selection mark displayed by the display module to move to the second trajectory mark in response to the fifth air gesture, and determine the motion trajectory indicated by the second trajectory mark as the motion trajectory of the trajectory using object.

26. The device according to claim 25, characterized in that The display module is further used to display second prompt information; the second prompt information is used to prompt the user to set the track usage object; The processing module is further configured to, in response to a sixth air gesture, determine an object corresponding to the gesture type of the sixth air gesture as the trajectory use object; Among them, when the gesture type of the sixth air gesture is the first gesture type, the object using the trajectory is the moving object; when the gesture type of the sixth air gesture is the second gesture type, the object using the trajectory is the diving person.

27. The device according to claim 25, characterized in that The camera for recording the video of the object using the trajectory is a main camera, and the cameras other than the main camera among the first rear camera and the second rear camera are auxiliary cameras; The processing module is specifically used to extract N object images from the N main video frames recorded by the main camera; each object image only includes the trajectory use object; N is an integer greater than 1; and according to the motion direction of the motion trajectory of the trajectory use object, select N reference trajectory points from the motion trajectory of the trajectory use object; and synthesize the N object images to the positions corresponding to the N reference trajectory points in the N auxiliary video frames respectively; The auxiliary video frame is a video frame recorded by the auxiliary camera.

28. The device according to claim 25, characterized in that The display module is further used to display a custom trajectory control in the shooting control area; the custom trajectory control is used to set a custom motion trajectory; The processing module is further used to control the trajectory selection mark to move to the custom trajectory control displayed by the display module in response to the seventh air gesture, and display a third prompt information; the third prompt information is used to prompt the user to draw a custom motion trajectory; The display module is further configured to, in response to an eighth air gesture for drawing a motion trajectory, display the motion trajectory drawn by the eighth air gesture; The processing module is further used to determine the motion trajectory drawn by the eighth air gesture displayed by the display module as the motion trajectory of the trajectory using object.

29. The device according to claim 19, characterized in that The first rear camera is a rotatable camera; The recording module is specifically used to control the first rear camera to track and record the moving object. During the tracking and recording process, the first rear camera is controlled to rotate along with the moving object.

30. 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 video shooting method according to any one of claims 1 to 18 are implemented.