Video recording method and device, electronic equipment and storage medium

CN116156076BActive Publication Date: 2026-08-21VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202211338623.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2026-08-21
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

[0004]本申请实施例的目的是提供一种视频录制方法、装置、电子设备及存储介质,能够解决视频的预览界面中往往只有某一帧视频帧的缩略图,预览界面中的内容较为单薄的问题

Benefits of technology

[0015] In this embodiment of the application, during the video recording process, at least one of the camera movement trajectory information and the movement trajectory information of the target object is recorded to obtain the target trajectory information of the recorded video. Based on the target trajectory information, a first video is generated. The target trajectory information can be directly displayed on the preview interface of the first video, so that the video preview interface no longer only displays a thumbnail of a certain video frame, but also displays the target trajectory information, which effectively enriches the content of the video preview interface and helps users to achieve more accurate video search through richer content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156076B_ABST
    Figure CN116156076B_ABST
Patent Text Reader

Abstract

The application discloses a video processing method and device, electronic equipment and storage medium, and belongs to the technical field of shooting. The method comprises the following steps: in the recording process of a video, target trajectory information is acquired, the target trajectory information comprising at least one of the following: panning trajectory information in the video recording process, motion trajectory information of a target shooting object; and a first video is generated based on the target trajectory information, wherein a preview interface of the first video comprises the target trajectory information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of photography technology, specifically relating to a video recording method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of mobile terminal video shooting functions, more and more users are using mobile terminals to shoot videos, and the amount of videos stored on mobile terminals is also increasing. When searching for video files, users often use the content in the video preview interface to determine the video they want.

[0003] However, in related technologies, the video preview interface often only shows a thumbnail of a single video frame, making the content in the preview interface rather limited and inconvenient for users to accurately find the video they want. Summary of the Invention

[0004] The purpose of this application is to provide a video recording method, apparatus, electronic device, and storage medium that can solve the problem that the video preview interface often only shows a thumbnail of a single video frame, resulting in a relatively thin content in the preview interface.

[0005] In a first aspect, embodiments of this application provide a video recording method, the method comprising:

[0006] During the video recording process, target trajectory information is acquired, which includes at least one of the following: camera movement trajectory information during the video recording process, and motion trajectory information of the target object being filmed;

[0007] Based on the target trajectory information, a first video is generated, wherein the preview interface of the first video includes the target trajectory information.

[0008] Secondly, embodiments of this application provide a video processing apparatus, including:

[0009] The acquisition module is used to acquire target trajectory information during the video recording process. The target trajectory information includes at least one of the following: camera movement trajectory information during the video recording process and motion trajectory information of the target object being filmed.

[0010] A generation module is used to generate a first video based on the target trajectory information, wherein the preview interface of the first video includes the target trajectory information.

[0011] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0012] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0013] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0014] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0015] In this embodiment of the application, during the video recording process, at least one of the camera movement trajectory information and the movement trajectory information of the target object is recorded to obtain the target trajectory information of the recorded video. Based on the target trajectory information, a first video is generated. The target trajectory information can be directly displayed on the preview interface of the first video, so that the video preview interface no longer only displays a thumbnail of a certain video frame, but also displays the target trajectory information, which effectively enriches the content of the video preview interface and helps users to achieve more accurate video search through richer content. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the video recording method described in the embodiments of this application;

[0017] Figure 2 This is one of the schematic diagrams showing the interface of the video recording method described in the embodiments of this application;

[0018] Figure 3 This is a second schematic diagram of the interface display of the video recording method described in the embodiments of this application;

[0019] Figure 4 This is the third schematic diagram of the interface display of the video recording method described in the embodiments of this application;

[0020] Figure 5 This is the fourth schematic diagram of the interface display of the video recording method described in the embodiments of this application;

[0021] Figure 6 This is the fifth schematic diagram showing the interface of the video recording method described in the embodiments of this application;

[0022] Figure 7 This is the sixth schematic diagram showing the interface of the video recording method described in the embodiments of this application;

[0023] Figure 8 This is the seventh schematic diagram of the interface display of the video recording method described in the embodiments of this application;

[0024] Figure 9 This is a schematic diagram of the video processing device structure provided in the embodiments of this application;

[0025] Figure 10 This is a schematic diagram of the electronic device structure provided in the embodiments of this application;

[0026] Figure 11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0028] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0029] If a user shoots multiple videos about the same target content, the video frame thumbnails displayed in the preview interfaces of these videos may be very similar, making it difficult for the user to locate the video using only the preview interface containing video frame thumbnails. Related technologies primarily employ the following methods for video location:

[0030] Firstly, AI video classification allows users to locate the desired video within its corresponding category. For example, videos can be categorized by time, location, people, scenery, etc., and then the user can view the video they are looking for within the relevant category.

[0031] However, AI video classification may not yield the results that users expect, increasing the difficulty of video localization.

[0032] Secondly, users can manually create albums to save their videos, making it easier to locate and find them later. For example, they can create albums for scenery, people, food, etc., and save the videos according to the categories. They can then locate and find the desired videos in the corresponding albums later.

[0033] However, the method of creating an album, saving it, and then locating and searching for it is time-consuming and cumbersome.

[0034] Thirdly, use third-party software to manage mobile phone videos, automatically categorize photos by people, time, and location for easy location and retrieval.

[0035] However, managing mobile videos through third-party apps has several drawbacks. Besides the inaccurate categorization results, the installation process requires various user permissions, increasing memory consumption and the risk of information leakage.

[0036] The video recording method, apparatus, electronic device, and storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0037] Figure 1 This is a schematic diagram of the video recording method described in the embodiments of this application, such as... Figure 1 As shown, it includes:

[0038] Step 110: During the video recording process, acquire target trajectory information, which includes at least one of the following: camera movement trajectory information during video recording, and motion trajectory information of the target object being filmed;

[0039] Specifically, the video described in this application embodiment can be a video shot by an electronic device, which is specifically an electronic device with video shooting function, such as a smartphone, camera, tablet computer, etc.

[0040] The target trajectory information described in this application embodiment can refer to trajectory information obtained during video recording. Specifically, the target trajectory information can be camera movement trajectory information during video recording, or the movement trajectory information of the target shooting object in the video shooting preview interface. More specifically, the target trajectory information can simultaneously include camera movement trajectory information during video recording and the movement trajectory information of the target shooting object in the video shooting preview interface.

[0041] More specifically, the camera movement trajectory information can refer to the trajectory information of the camera module used to record video in the electronic device moving in real three-dimensional space during the video recording process. This camera movement trajectory information can effectively record the trajectory of the user manipulating the electronic device during the video recording process.

[0042] More specifically, the target shooting object described in the embodiments of this application refers to the object appearing in the recorded video frame, which can be displayed in the video shooting preview interface. The target shooting object can be an object manually selected by the user or an object automatically detected by the target detection algorithm. For example, the target shooting object can be a person or animal appearing in the video, or a flying insect, etc.

[0043] The motion trajectory information of the target object described in the embodiments of this application can specifically refer to the motion trajectory information of the target object recorded during the video recording process. For example, when the target object is a butterfly, the motion trajectory information can refer to the trajectory of the butterfly's flight.

[0044] In this embodiment, the motion trajectory information of the target object can effectively help users recall the relevant content of the video and thus select the video.

[0045] Step 120: Based on the target trajectory information, generate a first video, wherein the preview interface of the first video includes the target trajectory information.

[0046] Specifically, after the video recording is completed, the target trajectory information is saved together with the recorded video to generate the first video, that is, the first video contains the target trajectory information.

[0047] More specifically, the target trajectory information can be displayed in the preview interface of the first video. In this embodiment, the preview interface of the first video is the interface displayed when the user searches for the video; specifically, it can be a thumbnail cover or a preview interface of the first video during playback.

[0048] Understandably, when users are searching for videos, they will open the photo album interface, which may display previews of multiple videos. These previews can be displayed as thumbnails within the photo album interface, for example... Figure 2 This is one of the interface display diagrams of the video recording method described in the embodiments of this application, such as... Figure 2 As shown, a thumbnail 211 of the first video is displayed in the album interface 21.

[0049] In this embodiment, the target trajectory information can be displayed in the preview interface. Specifically, the generation process of the target trajectory information can be dynamically played in the preview interface, or the target trajectory information can be directly displayed in the preview interface.

[0050] When searching for a video, users can quickly identify the video content by checking the target trajectory information in the video preview interface. The target trajectory information displayed in the preview interface can greatly help users locate the video they want.

[0051] In this embodiment of the application, during the video recording process, at least one of the camera movement trajectory information and the movement trajectory information of the target object is recorded to obtain the target trajectory information of the recorded video. Based on the target trajectory information, a first video is generated. The target trajectory information can be directly displayed on the preview interface of the first video, so that the video preview interface no longer only displays a thumbnail of a certain video frame, but also displays the target trajectory information, which effectively enriches the content of the video preview interface and helps users to achieve more accurate video search through richer content.

[0052] Optionally, after generating the first video, the process further includes:

[0053] When the album interface is displayed, a first input from the user to the album interface is received; wherein the first input is used to draw a first trajectory;

[0054] If the similarity between the first trajectory and the target trajectory information is greater than a first threshold, in response to the first input, the first video is displayed, and other videos or images in the album interface are canceled from being displayed.

[0055] The album interface described in this application embodiment can specifically refer to an interface for viewing and selecting images and videos stored locally. The album interface can display thumbnails of multiple videos or pictures.

[0056] The first input described in the embodiments of this application can specifically be the input of a user's touch and swipe in the album interface, and the first trajectory refers to the trajectory drawn by the touch and swipe.

[0057] Specifically, if a user wants to locate a video using the target trajectory information displayed in the video preview interface, the user still needs to search and judge in multiple preview interfaces, which may still be time-consuming. Therefore, in this embodiment, the user can input a first trajectory that is close to the target trajectory information of the first video they want to find in the album interface.

[0058] When the electronic device receives the first input for drawing the first trajectory, it will compare the first trajectory with the target trajectory information corresponding to each video. Specifically, this can be achieved through a conventional similarity comparison algorithm.

[0059] The first threshold described in this application embodiment can be a pre-set threshold. If the similarity between the first trajectory and the target trajectory information is greater than the first threshold, it means that the video the user is looking for is likely the first video corresponding to the target trajectory information. At this time, the first video can be displayed on the screen of the display device to realize the location of the first video, which facilitates the user's subsequent operations. At the same time, other videos or images in the album interface are canceled from being displayed.

[0060] For example, Figure 3 This is a second schematic diagram of the interface display provided in the embodiments of this application, such as... Figure 3 As shown, the user draws a first trajectory 311 on the album interface 21. If the similarity between the first trajectory 311 and the target trajectory information is greater than a first threshold, the user responds to the first input and displays a first video. Specifically, the user can display a preview interface 31 of the first video and cancel the display of other videos or images in the album interface.

[0061] In this embodiment of the application, the user can directly draw a first trajectory whose similarity to the target trajectory information exceeds a first preset threshold, thereby quickly matching the first video corresponding to the target trajectory information, and thus quickly locating the video and improving the video location efficiency.

[0062] Optionally, acquiring target trajectory information during video recording includes:

[0063] When the shooting preview interface is displayed, a second input from the user regarding the target shooting object in the shooting preview interface is received;

[0064] In response to the second input, the motion trajectory information of the target object is used as the target trajectory information.

[0065] Specifically, the shooting preview interface described in this application embodiment can refer to the shooting preview interface displayed on the screen of an electronic device during the video shooting process. The shooting preview interface displays the video frame content being recorded by the electronic device. Therefore, it can be understood that the shooting preview interface can display at least one shooting object, such as a human body, animal, or insect in the video frame content.

[0066] In this embodiment of the application, the second input may specifically be the user's operation of selecting a target shooting object from at least one shooting object in the shooting preview interface, which may specifically be the operation of clicking on the target shooting object, or the operation of long pressing, etc.

[0067] Optionally, the second input described in the embodiments of this application can be an operation to select multiple target shooting objects. Specifically, it can be to click multiple shooting objects as target shooting objects at the same time, or to continuously click multiple shooting objects as target shooting objects within a first preset time interval.

[0068] In some alternative embodiments, the selection of the target object can also be automatically achieved by a target detection algorithm.

[0069] Figure 4 This is the third schematic diagram of the interface display described in the embodiments of this application, such as... Figure 4 As shown, the user selects the target shooting object 42 in the shooting preview interface 41. Specifically, the user can long press the target shooting object 42 in the shooting preview interface 41 with two fingers and swipe up to complete the selection of the target shooting object 42.

[0070] Figure 5 This is the fourth schematic diagram of the interface display described in the embodiments of this application, as shown below. Figure 5 As shown, the user selects two target objects 42 in the shooting preview interface 41. The user simultaneously long-presses the two target objects 42 in the shooting preview interface 41 and swipes up to complete the selection of multiple target objects.

[0071] In response to the second input, the electronic device begins recording the motion trajectory information of the target object during the video recording process. Specifically, it can automatically track and save the motion trajectory of the target object through an object tracking algorithm to obtain the target trajectory information.

[0072] In this embodiment of the application, by receiving a second input from the user selecting the target shooting object in the shooting preview interface, the user can set the target shooting object and record the motion trajectory information, which can better meet the user's shooting needs.

[0073] Optionally, when the number of target subjects is at least two, using the motion trajectory information of the target subjects as the target trajectory information includes:

[0074] When the motion trajectory information of each of the target objects is different, the motion trajectory information of each of the target objects is taken as the target trajectory information;

[0075] If there is the same motion trajectory information among the motion trajectory information of each of the target objects, any one of the same motion trajectory information shall be used as the target trajectory information.

[0076] Specifically, if the number of target objects is at least two, it means that the user has selected at least two target objects. Since the motion trajectory information of each target object will be recorded, multiple motion trajectory information will be generated at this time.

[0077] Furthermore, multiple motion trajectory information can be analyzed. If the motion trajectory information of each of the target objects is different, it means that each motion trajectory information has its own unique motion trajectory characteristics. Therefore, the motion trajectory information of each object can be saved as target trajectory information. Correspondingly, when displaying target trajectory information, multiple saved motion trajectories can be displayed simultaneously.

[0078] If there are identical motion trajectory information among the motion trajectory information of each of the target objects, it means that the identical motion trajectory information has the same motion trajectory characteristics. In order to save storage space, it is not necessary to save all the identical motion trajectory information. Only one of the motion trajectory information needs to be saved. Therefore, any one of the identical motion trajectory information can be saved as the target trajectory information.

[0079] More specifically, if there is the same motion trajectory information among the motion trajectory information of each target object, and there are other motion trajectory information that is different from it, in addition to saving any one of the same motion trajectory information as the target trajectory information, other different motion trajectory information will also be saved as the target trajectory information.

[0080] In this embodiment, when the motion trajectory information of the target objects are all different, the motion trajectory information of each target object is used as the target trajectory information, which effectively ensures the integrity of the motion trajectory features contained in the target trajectory information. When there is the same motion trajectory information among the target objects, only one of the same motion trajectory information is saved as the target trajectory information. While effectively ensuring the integrity of the motion trajectory features contained in the target trajectory information, the amount of data stored is effectively reduced.

[0081] Optionally, acquiring target trajectory information during video recording includes:

[0082] During video recording, the camera's pose information is acquired;

[0083] The target trajectory information is determined based on the camera's pose information.

[0084] Specifically, the camera described in the embodiments of this application may refer to a camera module in an electronic device, or a camera.

[0085] The target trajectory information in this application embodiment can specifically refer to the trajectory of the camera module of the electronic device moving in real space during the shooting process, which can be composed of multiple pose information.

[0086] In this embodiment, the camera pose information specifically refers to the position and orientation of the camera in the real scene during video recording. This pose information can be detected by electronic devices or sensors such as gyroscopes in the camera.

[0087] In this embodiment of the application, the camera's pose information during video recording can effectively reflect the movement trajectory of the camera module during video shooting. Through this movement trajectory, it can effectively help users recall the process of shooting the video, thereby helping users to locate the video.

[0088] Optionally, the preview interface of the first video further includes a first thumbnail, wherein the first thumbnail is a thumbnail of the video frame corresponding to the first trajectory point in the target trajectory information, or a thumbnail of the video frame corresponding to the target shooting object, and the display position of the first thumbnail is associated with the position of the first trajectory point.

[0089] Specifically, in this embodiment of the application, the preview interface of the first video not only displays the target trajectory information, but also displays a first thumbnail. The first thumbnail can be a thumbnail of the video frame corresponding to the first trajectory point in the target trajectory information, or it can be a thumbnail of the video frame corresponding to the target shooting object. The first thumbnail can help the user recall the specific video content in the video, thereby more accurately locating the video.

[0090] In this embodiment of the application, the video frame corresponding to the target shooting object can specifically refer to any video frame in which the target shooting object appears, and it specifically helps the user recall the specific content of the video through the target shooting object.

[0091] More specifically, in the embodiments of this application, the target trajectory information includes multiple trajectory points. Since the target trajectory information is generated synchronously during the video recording process, it can be understood that each trajectory point in the target trajectory information can correspond to a video frame in the first video. The video frame of the first trajectory point can refer to the video frame recorded when the first trajectory point is recorded.

[0092] In this embodiment, the display position of the first thumbnail is associated with the position of the first trajectory point, specifically, it can be displayed around the first trajectory point. Figure 6 This is the fifth schematic diagram of the interface display described in the embodiments of this application, such as... Figure 6As shown, a first thumbnail 611 is displayed in the preview interface 31 of the first video.

[0093] Optionally, in some embodiments, the first trajectory point may be a trajectory point randomly selected from the target trajectory information.

[0094] Optionally, the first trajectory point may also refer to the trajectory point recorded when the camera's pose information changes or when the motion trajectory of the subject changes.

[0095] In this embodiment of the application, a first thumbnail can be further displayed on the preview interface of the first video, thereby helping the user recall the content of the first video through the content of the thumbnail, and thus helping the user to accurately locate the video.

[0096] Optionally, after generating the first video, the process further includes:

[0097] Receive a third input from the user regarding the first thumbnail;

[0098] In response to the third input, the first thumbnail is de-displayed in the preview interface;

[0099] Alternatively, it may receive a fourth input from the user regarding the second trajectory point in the target trajectory information;

[0100] In response to the fourth input, a second thumbnail is displayed in the preview interface. The display position of the second thumbnail is associated with the position of the second trajectory point, and the second thumbnail is a thumbnail of the video frame corresponding to the second trajectory point.

[0101] Specifically, the first thumbnail in this application embodiment may be a thumbnail automatically generated by the above algorithm, which may not be able to well reflect the main content of the video. In this case, the user can further manually add or delete the first thumbnail displayed in the preview interface.

[0102] The electronic device can receive a third input from the user on the first thumbnail. This third input is an operation to delete the first thumbnail, which can be done by long-pressing the first thumbnail and then dragging it to a specific location to delete it.

[0103] In response to the third input, the electronic device will delete the first thumbnail from the preview interface and cancel the display of the first thumbnail.

[0104] Optionally, the electronic device may receive a fourth input from the user to add the video frame corresponding to the second trajectory point as the first thumbnail. Specifically, this may be an operation where the user long-presses the second trajectory point, which specifically refers to the trajectory point in the target trajectory information.

[0105] In response to the fourth input, the electronic device adds a thumbnail of the video frame corresponding to the second trajectory point as a second thumbnail to the preview interface for display. More specifically, the display position of the second thumbnail is associated with the position of the second trajectory point. For example, the second thumbnail may be displayed around the second trajectory point.

[0106] In this embodiment, users can manually add new second thumbnails or delete first thumbnails, which can effectively ensure that the thumbnails in the preview interface better meet the user's needs and better help the user identify the content of the video.

[0107] Optionally, after generating the first video, the process further includes:

[0108] Receive the user's fifth input for the third trajectory point in the target trajectory information;

[0109] In response to the fifth input, the first video is played starting from the third video frame corresponding to the third trajectory point.

[0110] Specifically, after finding the first video that meets their needs, users can play the video, or they can preview the first video while searching for it to determine the video content. At this point, users do not need to start playing the first video from the beginning, but can select the playback start node by selecting the third trajectory point in the target trajectory information.

[0111] The electronic device receives a fifth input from the user to the third trajectory point. This fifth input can be an operation that instructs the electronic device to start playing the first video from the third video frame corresponding to the third trajectory point. Specifically, it can be a click operation or a long press operation on the third trajectory point.

[0112] In response to the fifth input, the electronic device uses the third video frame as the playback start node and plays the first video.

[0113] In this embodiment of the application, through the fifth input, the user can select a third trajectory point in the target trajectory information as the start node for playing the first video, thereby effectively controlling the playback of the first video and better meeting the user's needs.

[0114] Optionally, after receiving the user's second input on the target object in the shooting preview interface, the method further includes:

[0115] Receive the user's sixth input;

[0116] In response to the sixth input, image information of the image region corresponding to the target object is saved, and a second video of the target object is generated based on the image information.

[0117] Specifically, in this embodiment of the application, after selecting the target shooting object in the shooting preview interface, the user can further select whether to generate a storyboard video of the target shooting object. The storyboard video can specifically refer to the video content of the image area corresponding to the target shooting object, which can specifically be the video content composed of the image information of the image area corresponding to the target shooting object recorded after receiving the sixth input.

[0118] More specifically, after generating a second video of the target subject, the second video can be saved separately, or it can be saved in association with the first video.

[0119] Figure 7 This is the sixth schematic diagram of the interface display described in the embodiments of this application, as shown below. Figure 7 As shown, the electronic device receives input in the shooting preview interface 41 to trigger the storyboard of the target shooting object. This input can be a two-finger swipe to the right by the user. Then, a confirmation window 71 will be displayed in the shooting preview interface 41 asking whether to generate a second video corresponding to the target shooting object 42. The user can choose whether to generate a second video. Figure 8 This is the seventh schematic diagram of the interface display described in the embodiments of this application, such as... Figure 8 As shown, after the user selects to generate a second video, the second video and the first video can be saved together. In the album interface 21, a thumbnail 211 of the first video and a thumbnail 811 of the second video are displayed.

[0120] More specifically, after the second video is generated, it can be played as a thumbnail in the preview interface of the first video, thereby effectively helping users recall the content of the video.

[0121] In this embodiment of the application, by saving the image information of the image area corresponding to the target shooting object, a second video of the target shooting object is generated, which can further help the user recall the video content.

[0122] Figure 9 This is a schematic diagram of the video processing device structure provided in the embodiments of this application, such as... Figure 9 As shown, it includes: an acquisition module 910 and a generation module 920, wherein the acquisition module 910 is used to acquire target trajectory information during the video recording process, the target trajectory information including at least one of the following: camera movement trajectory information during the video recording process, and movement trajectory information of the target object being filmed; wherein the generation module 920 is used to generate a first video based on the target trajectory information, wherein the preview interface of the first video includes the target trajectory information.

[0123] Optionally, the device further includes:

[0124] The first receiving module is configured to receive a first input from the user to the album interface when the album interface is displayed; wherein the first input is used to draw a first trajectory.

[0125] The first response module is configured to, in response to the first input, display the first video and cancel the display of other videos or images in the album interface when the similarity between the first trajectory and the target trajectory information is greater than a first threshold.

[0126] Optionally, the acquisition module includes:

[0127] The receiving unit is used to receive a second input from the user regarding the target object in the shooting preview interface when the shooting preview interface is displayed;

[0128] A response unit is configured to respond to the second input by using the motion trajectory information of the target object as the target trajectory information.

[0129] Optionally, when the number of target objects is at least two, the acquisition module is specifically used for:

[0130] When the motion trajectory information of each of the target objects is different, the motion trajectory information of each of the target objects is taken as the target trajectory information;

[0131] If there is the same motion trajectory information among the motion trajectory information of each of the target objects, any one of the same motion trajectory information shall be used as the target trajectory information.

[0132] Optionally, the acquisition module is specifically used for:

[0133] During video recording, the camera's pose information is acquired;

[0134] The target trajectory information is determined based on the camera's pose information.

[0135] Optionally, the preview interface of the first video further includes a first thumbnail, wherein the first thumbnail is a thumbnail of the video frame corresponding to the first trajectory point in the target trajectory information, or a thumbnail of the video frame corresponding to the target shooting object, and the display position of the first thumbnail is associated with the position of the first trajectory point.

[0136] Optionally, the device further includes:

[0137] The second receiving module is used to receive the user's third input on the first thumbnail;

[0138] The second response module is used to respond to the third input by canceling the display of the first thumbnail in the preview interface;

[0139] Alternatively, a third receiving module is used to receive a fourth input from the user regarding the second trajectory point in the target trajectory information;

[0140] The third response module is used to respond to the fourth input by displaying a second thumbnail in the preview interface. The display position of the second thumbnail is associated with the position of the second trajectory point, and the second thumbnail is a thumbnail of the video frame corresponding to the second trajectory point.

[0141] Optionally, the device further includes:

[0142] The fourth receiving module is used to receive the user's fifth input on the third trajectory point in the target trajectory information;

[0143] The fourth response module is used to respond to the fifth input by playing the first video starting from the third video frame corresponding to the third trajectory point.

[0144] Optionally, the device further includes:

[0145] The fifth receiving module is used to receive the user's sixth input;

[0146] The fifth response module is used to respond to the sixth input, save the image information of the image area corresponding to the target shooting object, and generate a second video of the target shooting object based on the image information.

[0147] In this embodiment of the application, during the video recording process, at least one of the camera movement trajectory information and the movement trajectory information of the target object is recorded to obtain the target trajectory information of the recorded video. Based on the target trajectory information, a first video is generated. The target trajectory information can be directly displayed on the preview interface of the first video, so that the video preview interface no longer only displays a thumbnail of a certain video frame, but also displays the target trajectory information, which effectively enriches the content of the video preview interface and helps users to achieve more accurate video search through richer content.

[0148] The video processing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0149] The video processing device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0150] The video processing device provided in this application embodiment can achieve... Figures 1 to 9 The various processes implemented in the method embodiments achieve the same technical effect, and will not be described again here to avoid repetition.

[0151] Optionally, Figure 10 This is a schematic diagram of the electronic device structure provided in the embodiments of this application, such as... Figure 10 As shown, this application embodiment also provides an electronic device 1000, including a processor 1001 and a memory 1002. The memory 1002 stores a program or instructions that can run on the processor 1001. When the program or instructions are executed by the processor 1001, they implement the various steps of the above-described video recording method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0152] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0153] Figure 11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0154] The electronic device 1100 includes, but is not limited to, components such as: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, and processor 1110.

[0155] Those skilled in the art will understand that the electronic device 1100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 11 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0156] The processor 1110 is used to acquire target trajectory information during the video recording process. The target trajectory information includes at least one of the following: camera movement trajectory information during the video recording process and motion trajectory information of the target object being filmed.

[0157] Based on the target trajectory information, a first video is generated, wherein the preview interface of the first video includes the target trajectory information.

[0158] The user input unit 1107 is used to receive a first input from the user to the album interface when the album interface is displayed; wherein the first input is used to draw a first trajectory.

[0159] The display unit 1106 is configured to, in response to the first input, display the first video and cancel the display of other videos or images in the album interface when the similarity between the first trajectory and the target trajectory information is greater than a first threshold.

[0160] The user input unit 1107 is used to receive a second input from the user regarding the target shooting object in the shooting preview interface when the shooting preview interface is displayed;

[0161] The processor 1110 is configured to respond to the second input by using the motion trajectory information of the target object as the target trajectory information.

[0162] The processor 1110 is used to treat the motion trajectory information of each of the target objects as the target trajectory information when the motion trajectory information of each target object is different.

[0163] If there is the same motion trajectory information among the motion trajectory information of each of the target objects, any one of the same motion trajectory information shall be used as the target trajectory information.

[0164] The processor 1110 is used to acquire camera pose information during video recording;

[0165] The target trajectory information is determined based on the camera's pose information.

[0166] User input unit 1107 is used to receive a third input from the user regarding the first thumbnail;

[0167] Display unit 1106 is configured to, in response to the third input, cancel the display of the first thumbnail in the preview interface;

[0168] Alternatively, the user input unit 1107 is used to receive a fourth input from the user regarding the second trajectory point in the target trajectory information;

[0169] The display unit 1106 is configured to respond to the fourth input by displaying a second thumbnail in the preview interface. The display position of the second thumbnail is associated with the position of the second trajectory point, and the second thumbnail is a thumbnail of the video frame corresponding to the second trajectory point.

[0170] User input unit 1107 is used to receive a fifth input from the user regarding the third trajectory point in the target trajectory information;

[0171] The display unit 1106 is configured to respond to the fifth input by playing the first video starting from the third video frame corresponding to the third trajectory point.

[0172] User input unit 1107 is used to receive the user's sixth input;

[0173] The processor 1110 is configured to, in response to the sixth input, save image information of the image region corresponding to the target object, and generate a second video of the target object based on the image information.

[0174] In this embodiment of the application, during the video recording process, at least one of the camera movement trajectory information and the movement trajectory information of the target object is recorded to obtain the target trajectory information of the recorded video. Based on the target trajectory information, a first video is generated. The target trajectory information can be directly displayed on the preview interface of the first video, so that the video preview interface no longer only displays a thumbnail of a certain video frame, but also displays the target trajectory information, which effectively enriches the content of the video preview interface and helps users to achieve more accurate video search through richer content.

[0175] It should be understood that, in this embodiment, the input unit 1104 may include a graphics processing unit (GPU) 11041 and a microphone 11042. The GPU 11041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1106 may include a display panel 11061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.

[0176] The memory 1109 can be used to store software programs and various data. The memory 1109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1109 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0177] Processor 1110 may include one or more processing units; optionally, processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1110.

[0178] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described video recording method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0179] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0180] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above video recording method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0181] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0182] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the video recording method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0183] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0184] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0185] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A video recording method, characterized in that, include: During the video recording process, target trajectory information is acquired, which includes at least one of the following: camera movement trajectory information during the video recording process, and motion trajectory information of the target object being filmed; Based on the target trajectory information, a first video is generated, wherein the preview interface of the first video includes the target trajectory information; After generating the first video, the process further includes: When the album interface is displayed, a first input from the user to the album interface is received; wherein the first input is used to draw a first trajectory; If the similarity between the first trajectory and the target trajectory information is greater than a first threshold, in response to the first input, the first video is displayed, and other videos or images in the album interface are canceled from being displayed.

2. The video recording method according to claim 1, characterized in that, The process of acquiring target trajectory information during video recording includes: When the shooting preview interface is displayed, a second input from the user regarding the target shooting object in the shooting preview interface is received; In response to the second input, the motion trajectory information of the target object is used as the target trajectory information.

3. The video recording method according to claim 2, characterized in that, When the number of target subjects is at least two, the step of using the motion trajectory information of the target subjects as the target trajectory information includes: When the motion trajectory information of each of the target objects is different, the motion trajectory information of each of the target objects is taken as the target trajectory information; If there is the same motion trajectory information among the motion trajectory information of each of the target objects, any one of the same motion trajectory information shall be used as the target trajectory information.

4. The video recording method according to claim 1, characterized in that, The process of acquiring target trajectory information during video recording includes: During video recording, the camera's pose information is acquired; The target trajectory information is determined based on the camera's pose information.

5. The video recording method according to claim 1, characterized in that, The preview interface of the first video also includes a first thumbnail, wherein the first thumbnail is a thumbnail of the video frame corresponding to the first trajectory point in the target trajectory information, or a thumbnail of the video frame corresponding to the target shooting object, and the display position of the first thumbnail is associated with the position of the first trajectory point.

6. The video recording method according to claim 5, characterized in that, After generating the first video, the process also includes: Receive a third input from the user regarding the first thumbnail; In response to the third input, the first thumbnail is de-displayed in the preview interface; Alternatively, it may receive a fourth input from the user regarding the second trajectory point in the target trajectory information; In response to the fourth input, a second thumbnail is displayed in the preview interface. The display position of the second thumbnail is associated with the position of the second trajectory point, and the second thumbnail is a thumbnail of the video frame corresponding to the second trajectory point.

7. The video recording method according to claim 1, characterized in that, After generating the first video, the process also includes: Receive the user's fifth input for the third trajectory point in the target trajectory information; In response to the fifth input, the first video is played starting from the third video frame corresponding to the third trajectory point.

8. The video recording method according to claim 2, characterized in that, After receiving the user's second input on the target object in the shooting preview interface, the method further includes: Receive the user's sixth input; In response to the sixth input, image information of the image region corresponding to the target object is saved, and a second video of the target object is generated based on the image information.

9. A video recording device, characterized in that, include: The acquisition module is used to acquire target trajectory information during the video recording process. The target trajectory information includes at least one of the following: camera movement trajectory information during the video recording process and motion trajectory information of the target object being filmed. A generation module is used to generate a first video based on the target trajectory information, wherein the preview interface of the first video includes the target trajectory information; The device further includes: The first receiving module is configured to receive a first input from the user to the album interface when the album interface is displayed; wherein the first input is used to draw a first trajectory. The first response module is configured to, in response to the first input, display the first video and cancel the display of other videos or images in the album interface when the similarity between the first trajectory and the target trajectory information is greater than a first threshold.

10. The video recording apparatus according to claim 9, characterized in that, The acquisition module includes: The receiving unit is used to receive a second input from the user regarding the target object in the shooting preview interface when the shooting preview interface is displayed; A response unit is configured to respond to the second input by using the motion trajectory information of the target object as the target trajectory information.

11. The video recording apparatus according to claim 10, characterized in that, When the number of target objects is at least two, the acquisition module is specifically used for: When the motion trajectory information of each of the target objects is different, the motion trajectory information of each of the target objects is taken as the target trajectory information; If there is the same motion trajectory information among the motion trajectory information of each of the target objects, any one of the same motion trajectory information shall be used as the target trajectory information.

12. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the video recording method as described in any one of claims 1-8.

13. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the video recording method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Information searching method and electronic device

    CN108228826A

  • Video recording method and device, electronic equipment and storage medium

    CN113873100A

  • Video thumbnail display method and device and storage medium

    CN113918766A

  • Video playing method and device and electronic equipment

    CN114286160A

  • Video recording method and device and electronic equipment

    CN114598819A