Video cover setting method and device, electronic equipment and storage medium

文档序号:394722 发布日期:2021-12-14 浏览:31次 中文

阅读说明:本技术 视频封面设置方法、装置、电子设备及存储介质 (Video cover setting method and device, electronic equipment and storage medium ) 是由 王超 于 2021-09-16 设计创作,主要内容包括:本申请提供了一种视频封面设置方法、装置、电子设备及存储介质,该方法包括:显示目标视频的至少两个备选封面缩略图;接收用户对至少两个备选封面缩略图中的第一目标封面缩略图的第一输入;响应于第一输入,将目标视频的视频封面更新为第一目标封面缩略图。(The application provides a video cover setting method, a video cover setting device, electronic equipment and a storage medium, wherein the method comprises the following steps: displaying at least two alternative cover thumbnails for the target video; receiving a first input of a user to a first object cover thumbnail of the at least two alternative cover thumbnails; in response to the first input, a video cover of the target video is updated to a first target cover thumbnail.)

1. A method for video cover setting, comprising:

displaying at least two alternative cover thumbnails for the target video;

receiving a first input of a user to a first object cover thumbnail of the at least two alternative cover thumbnails;

in response to the first input, updating a video cover of the target video to the first target cover thumbnail.

2. The method of claim 1, wherein prior to displaying at least two alternative cover thumbnails for the target video, further comprising:

displaying at least two key video frame thumbnails of a target video;

receiving second input of the user on at least two target key video frame thumbnails in the at least two key video frame thumbnails;

at least two alternative cover thumbnails are derived in response to the second input.

3. The method of claim 2, wherein prior to displaying at least two key video frame thumbnails for the target video, further comprising:

extracting video frames containing preset key feature information in a target video to obtain at least two frames of key video frames;

and obtaining at least two key video frame thumbnails according to the at least two key video frames.

4. The method of claim 2, wherein prior to displaying at least two key video frame thumbnails for the target video, further comprising:

receiving a third input of the target video from the user;

obtaining at least two key video frames in response to the third input;

and obtaining at least two key video frame thumbnails according to the at least two key video frames.

5. The method of claim 3 or 4, wherein after obtaining at least two alternative cover thumbnails in response to the second input, further comprising:

the target video, the at least two alternative cover thumbnails and at least two alternative cover original images are stored in an associated mode, and the at least two alternative cover original images are key video frames corresponding to the at least two alternative cover thumbnails;

before displaying at least two alternative cover thumbnails of the target video, the method further comprises:

receiving a fourth input of the user to a video cover of the target video;

the at least two alternative cover thumbnails displaying the target video, comprising:

in response to the fourth input, displaying at least two alternative cover thumbnails associated with the target video.

6. The method of claim 1, wherein after displaying at least two alternative cover thumbnails for the target video, further comprising:

receiving a fifth input from the user to a second object cover thumbnail of the at least two alternative cover thumbnails;

displaying at least one application icon in response to the fifth input;

receiving a sixth input of the user to a first application icon of the at least one application icon;

and responding to the sixth input, establishing an incidence relation between the second object cover thumbnail and a first application program corresponding to the first application program icon, and displaying an application program identifier in the second object cover thumbnail, wherein the application program identifier is used for indicating the first application program.

7. The method of claim 6, wherein after displaying the application identification in the second object cover thumbnail, further comprising:

receiving a seventh input by the user to the second object cover thumbnail;

in response to the seventh input, the target video is shared to a first application indicated by the application identification, and a video cover of the target video in the first application is the second target cover thumbnail.

8. The method of claim 1, further comprising:

receiving an eighth input of the user to the program interface of the second application program;

in response to the eighth input, displaying at least two alternative cover thumbnails for the target video;

receiving a ninth input from the user to a third object cover thumbnail of the at least two alternative cover thumbnails;

in response to the ninth input, the target video is shared to the second application program, and a video cover of the target video in the second application program is the third target cover thumbnail.

9. A video cover setting apparatus, the apparatus comprising:

the first display module is used for displaying at least two alternative cover thumbnails of the target video;

a first receiving module, configured to receive a first input of a user to a first object cover thumbnail of the at least two alternative cover thumbnails;

a first processing module to update a video cover of the target video to the first target cover thumbnail in response to the first input.

10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the video cover setting method according to any one of claims 1-8.

11. A readable storage medium storing thereon a program or instructions which, when executed by a processor, implement the steps of the video cover setting method according to any one of claims 1 to 8.

Technical Field

The application belongs to the technical field of video processing, and particularly relates to a method and a device for setting a video cover, electronic equipment and a storage medium.

Background

With the improvement of pixels and portability of electronic devices, more and more users record videos by using electronic devices, and after the videos are recorded, a thumbnail corresponding to a first frame image of the video is generally automatically set as a video cover. The cover in the prior art is single in setting mode and cannot meet the requirements of users.

Disclosure of Invention

The embodiment of the application aims to provide a video cover setting method and device, electronic equipment and a storage medium, and the problem that the cover setting mode is single in the prior art can be solved.

In a first aspect, an embodiment of the present application provides a method for setting a video cover, where the method includes:

displaying at least two alternative cover thumbnails for the target video;

receiving a first input of a user to a first object cover thumbnail of the at least two alternative cover thumbnails;

in response to the first input, updating a video cover of the target video to the first target cover thumbnail.

In a second aspect, an embodiment of the present application provides a video cover setting apparatus, including:

the first display module is used for displaying at least two alternative cover thumbnails of the target video;

a first receiving module, configured to receive a first input of a user to a first object cover thumbnail of the at least two alternative cover thumbnails;

a first processing module to update a video cover of the target video to the first target cover thumbnail in response to the first input.

In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.

In a fourth aspect, embodiments of the present 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 according to the first aspect.

In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.

At least two alternative cover thumbnails of a target video are displayed in the embodiment of the invention; receiving a first input of a user to a first object cover thumbnail of the at least two alternative cover thumbnails; in response to the first input, updating a video cover of the target video to the first target cover thumbnail. In the embodiment of the application, the target video is provided with at least two alternative cover pages, a user can perform first input on a desired cover page thumbnail according to different scenes, namely, the video cover page can be updated to be a corresponding cover page thumbnail, and user-defined setting of the video cover page by the user is realized. In addition, the user can set the most representative front cover according to different application scenes, the setting mode of the front cover is enriched, and different requirements of the user are met.

Drawings

FIG. 1 is a flow chart of a video cover setting method provided by an embodiment of the present application;

FIG. 2a is a schematic view of a scene of a video cover setting method according to an embodiment of the present application;

fig. 2b is a second schematic view of a video cover setting method according to an embodiment of the present application;

fig. 3a is a third schematic view of a scene of a video cover setting method according to an embodiment of the present application;

FIG. 3b is a fourth view of a scene of a video cover setting method according to an embodiment of the present application;

fig. 4a is a fifth schematic view of a scene of a video cover setting method according to an embodiment of the present application;

FIG. 4b is a sixth schematic view of a scene of a video cover setting method according to an embodiment of the present application;

fig. 4c is a seventh schematic view of a scene of a video cover setting method according to an embodiment of the present application;

fig. 4d is an eighth schematic view of a scene of a video cover setting method according to an embodiment of the present application;

fig. 5a is a ninth view illustrating a scene of a video cover setting method according to an embodiment of the present application;

FIG. 5b is a diagram illustrating a scene of a video cover setting method according to an embodiment of the present application;

FIG. 5c is an eleventh illustration of a scene schematic diagram of a video cover setting method according to an embodiment of the disclosure;

FIG. 5d is a twelve-point diagram illustrating a scene of a video cover setting method according to an embodiment of the present application;

fig. 6 is a block diagram of a video cover setting apparatus according to an embodiment of the present application;

fig. 7 is a block diagram of an electronic device provided in an embodiment of the present application;

fig. 8 is a hardware configuration diagram of an electronic device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.

The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.

The video cover setting method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

The video cover setting method provided by the embodiment of the application can be applied to cover setting of recorded videos, or cover setting of downloaded videos, or other scenes for setting video covers, and is not specifically limited herein.

In the following, a description will be given of an example in which the video cover setting method is applied to cover setting of a recorded video using an electronic device.

Referring to fig. 1, fig. 1 is a flowchart of a video cover setting method according to an embodiment of the present application. The video cover setting method provided by the embodiment of the application comprises the following steps:

s101, displaying at least two alternative cover thumbnails of the target video.

In this embodiment, the target video is a video recorded by the electronic device. It should be understood that a general process of a user recording a video using an electronic device is that the user turns on a video recording function of the electronic device to record video content captured by a camera of the electronic device.

And after the target video is acquired, displaying at least two alternative cover thumbnails of the target video. It should be understood that alternative cover thumbnails of the target video may be displayed in a horizontal arrangement or a vertical arrangement, and may also be displayed in other arrangements, which is not limited in this embodiment.

S102, receiving a first input of a user to a first object cover thumbnail in the at least two alternative cover thumbnails.

In this step, a first input of the user is received, where the first input may be: the user may specifically determine the actual use requirement according to a click input of the first object cover thumbnail, or a voice instruction input by the user, or a specific gesture input by the user, which is not limited in the embodiment of the present application.

The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure identification gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application can be click input, double-click input, click input of any number of times and the like, and can also be long-time press input or short-time press input.

S103, in response to the first input, updating the video cover of the target video to the first target cover thumbnail.

In this step, in response to the first input, the video cover of the target video is updated to the first target cover thumbnail.

As shown in fig. 2a, during the video recording process, the video display area of the display screen of the electronic device displays at least two alternative cover thumbnails of the target video, namely "key frame 1", "key frame 2" and "key frame 3" in the figure.

Fig. 2b is a second schematic view of a scene of the video cover determination method according to the embodiment of the present application, and as shown in fig. 2b, after receiving the first input, if the alternative cover thumbnail corresponding to the first input is "cover 1", the video cover of the target video is updated to "cover 1".

In addition, after the video cover is determined, the video cover information including, but not limited to, a thumbnail of the video cover, an original image of the video cover, and an input time of the first input corresponding to the video cover may be stored in the database.

In the embodiment of the application, the target video is provided with at least two alternative cover pages, a user can perform first input on a desired cover page thumbnail according to different scenes, namely, the video cover page can be updated to be a corresponding cover page thumbnail, and user-defined setting of the video cover page by the user is realized. In addition, the user can set the most representative front cover according to different application scenes, the setting mode of the front cover is enriched, and different requirements of the user are met.

Optionally, before displaying at least two alternative cover thumbnails of the target video, the method further includes:

displaying at least two key video frame thumbnails of a target video;

receiving second input of the user on at least two target key video frame thumbnails in the at least two key video frame thumbnails;

at least two alternative cover thumbnails are derived in response to the second input.

In this embodiment, after the target video is obtained, key video frame thumbnails of the target video are displayed, where the number of the key video frame thumbnails is greater than or equal to 2, and the key video frames are video frames in the target video.

In this embodiment, the second input may be: the method includes that a user clicks on a target key video frame thumbnail to input, or a voice instruction input by the user, or a specific gesture input by the user can be specifically determined according to actual use requirements, and the method is not limited in the embodiment of the application. It should be understood that the target key video frame thumbnail belongs to the key video frame thumbnail of the target video.

The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure identification gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application can be click input, double-click input, click input of any number of times and the like, and can also be long-time press input or short-time press input.

In this embodiment, under the condition that the second input is received, the target key video frame thumbnail corresponding to the target video is determined as the alternative cover page thumbnail, and the alternative cover page is selected from the key video frame, so that the cover page can better reflect the video content of the target video.

The following sets forth the manner in which key video frame thumbnails are determined:

optionally, before displaying at least two key video frame thumbnails of the target video, the method further includes:

extracting video frames containing preset key feature information in a target video to obtain at least two frames of key video frames;

and obtaining at least two key video frame thumbnails according to the at least two key video frames.

It should be understood that the target video is composed of a plurality of video frames, and each video frame may be understood as one frame image. In this embodiment, a preset image feature detection algorithm is used to perform image feature extraction on each video frame, for example, a Scale-invariant feature transform (SIFT) algorithm and a Histogram of Oriented Gradients (HOG) algorithm, to determine an image feature set corresponding to each video frame, where the image feature set may be understood as a set including image features of the same type, and each image feature set includes at least one feature object.

Illustratively, using the SIFT algorithm to perform image feature detection on a video frame comprising 3 human face objects and 2 vehicle objects, it may be determined that the video frame comprises 2 image feature sets, wherein one image feature set comprises 3 human face objects and the other image feature set comprises 2 vehicle objects.

In this embodiment, first weight values corresponding to the image feature sets are preset. After an image feature set corresponding to a video frame is obtained through detection, the number of feature objects included in the image feature set is multiplied by a first weight value corresponding to the image feature set, and a second weight value corresponding to the image feature set is obtained. Further, after the second weight values corresponding to all image feature sets in the video frame are obtained through calculation in the above manner, all the second weight values are accumulated and summed to obtain a target value corresponding to the video frame, and then the video frame with the target value larger than the preset threshold value is determined as the key frame. The key frames are also called key video frames.

As exemplified above, a video frame includes 2 image feature sets, one of which includes 3 person face objects and the other of which includes 2 vehicle objects. Here, it is assumed that the first weight value corresponding to the face image feature set is 1, the first weight value corresponding to the vehicle image feature set is 2, and the preset threshold is 6. Then, multiplying the number of the face objects by the corresponding first weight value, and determining that the second weight value corresponding to the face image feature set is 3; multiplying the number of the vehicle objects by the corresponding first weight value, and determining that the second weight value corresponding to the vehicle image feature set is 4; and adding a second weight value corresponding to the vehicle image feature set and a second weight value corresponding to the face image feature set, and determining that a target value corresponding to the video frame is greater than a preset threshold value, wherein the video frame is a key frame.

It should be understood that, in some embodiments, after detecting that the number of image features corresponding to a video frame is greater than a preset threshold value using an image feature detection algorithm, the video frame is determined to be a key frame. In other embodiments, a video frame is determined to be a key frame after detecting the presence of a particular image feature in the video frame using an image feature detection algorithm.

In this embodiment, the video frames are detected by using a preset image feature detection algorithm, the key video frames are automatically selected, and the video frames are determined as the key frames only when the target value corresponding to the video frames is greater than the preset value, so that the key frames can represent the video content of the target video, and the selected video cover is more representative.

In this embodiment, after the key frame is extracted, the thumbnail of the image corresponding to the key frame is determined as the key video frame thumbnail.

Optionally, before displaying at least two key video frame thumbnails of the target video, the method further includes:

receiving a third input of the target video from the user;

obtaining at least two key video frames in response to the third input;

and obtaining at least two key video frame thumbnails according to the at least two key video frames.

In this embodiment, the user may also manually determine the key frame without using a preset image feature detection algorithm, and the specific implementation manner is as follows: during recording of the video, the user may perform a third input, such as a slide-up operation or a slide-down operation on the video display area, to determine the current video frame as the key frame.

Wherein the third input may be: the click input of the user to the target video, or the voice instruction input by the user, or the specific gesture input by the user may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present application.

In this embodiment, the user may determine the key frame manually, so as to ensure that the selection of the key frame meets the user's preference and meet the user's requirements.

In this embodiment, after the key frame is extracted, the thumbnail of the image corresponding to the key frame is determined as the key video frame thumbnail, so that the key video frame thumbnail can reflect the video content of the target video.

Optionally, after obtaining at least two alternative cover thumbnails in response to the second input, the method further includes:

the target video, the at least two alternative cover thumbnails and at least two alternative cover original images are stored in an associated mode, and the at least two alternative cover original images are key video frames corresponding to the at least two alternative cover thumbnails;

before displaying at least two alternative cover thumbnails of the target video, the method further comprises:

receiving a fourth input of the user to a video cover of the target video;

the at least two alternative cover thumbnails displaying the target video, comprising:

in response to the fourth input, displaying at least two alternative cover thumbnails associated with the target video.

In this embodiment, after the key video frame is determined, the target video, the alternative cover thumbnail and the alternative cover original image are stored in an associated manner. Wherein, the alternative cover artwork can be understood as an image corresponding to the key video frame.

In the case of receiving a fourth input by the user to the video cover of the target video, displaying at least two alternative cover thumbnails associated with the target video, wherein the fourth input may be: the video book cover is input by clicking a video book cover by a user, or a voice command input by the user, or a specific gesture input by the user can be determined according to actual use requirements, and the embodiment of the application is not limited thereto. The alternative cover thumbnail is a thumbnail of the alternative cover original, that is, a thumbnail of an image corresponding to the key video frame.

In the embodiment, after the key video frame is determined, the target video, the alternative cover thumbnail and the alternative cover original image are stored in an associated manner; and displaying the alternative cover thumbnail based on a fourth input by the user to the video cover of the target video. In this way, the displayed alternative cover thumbnail may reflect the video content of the target video.

Optionally, after displaying at least two alternative cover thumbnails of the target video, the method further includes:

receiving a fifth input from the user to a second object cover thumbnail of the at least two alternative cover thumbnails;

displaying at least one application icon in response to the fifth input;

receiving a sixth input of the user to a first application icon of the at least one application icon;

and responding to the sixth input, establishing an incidence relation between the second object cover thumbnail and a first application program corresponding to the first application program icon, and displaying an application program identifier in the second object cover thumbnail, wherein the application program identifier is used for indicating the first application program.

The application identifier in this embodiment is a text, a symbol, an image, and the like for indicating information, and a control or another container may be used as a carrier for displaying information, including but not limited to a text identifier, a symbol identifier, and an image identifier.

In this embodiment, a fifth input from the user is received, and an execution object of the fifth input is a second object cover thumbnail. And responding to a fifth input, and displaying an application program icon corresponding to the second object cover thumbnail. And under the condition that a sixth input to the first application icon is received, establishing an association relation between the second object cover thumbnail and the first application, and displaying the application identification in the second object cover thumbnail.

The first application icon belongs to an application icon corresponding to a second object cover thumbnail, the first application icon is used for representing a first application, and an application identifier displayed in the second object cover thumbnail is used for indicating the first application.

For example, after receiving a user touch input to the second object cover thumbnail, 2 application icons are displayed, wherein 1 application icon is associated with application a and the other 1 application icon is associated with application B. After receiving the touch input of the user to the application icon associated with the application A, displaying the application identification associated with the application A in the second object cover thumbnail.

In this embodiment, through input of a user, an association relationship between the second object cover thumbnail and the first application corresponding to the first application icon is established, and an application identifier is displayed in the second object cover thumbnail. Therefore, in the subsequent steps, the target video can be quickly shared to the first application program through the operation of the user on the application program identification, and the convenience of the user in video sharing is improved.

Optionally, after displaying the application identifier in the second object cover thumbnail, the method further includes:

receiving a seventh input by the user to the second object cover thumbnail;

in response to the seventh input, the target video is shared to a first application indicated by the application identification, and a video cover of the target video in the first application is the second target cover thumbnail.

In this embodiment, the target video is shared to the first application program when a seventh input to the second target cover page thumbnail is received, where a video cover page of the target video is the second target cover page thumbnail.

For ease of understanding, please refer to FIGS. 3a-3 b. As shown in fig. 3a, the user performs a downslide operation on the video cover to display alternative cover thumbnails, where the alternative cover thumbnails display 3 covers and application tags corresponding to each cover, for example, the application tag corresponding to the cover 1 is application 1, the application tag corresponding to the cover 2 is application 2, and the application tag corresponding to the cover 3 is application 3. As shown in fig. 3b, after receiving a click operation performed by the user on the cover 2, the cover of the target video is set as the cover 2, and the target video after the cover is reset is sent to the application 2. The cover 2 described above may be understood as a third object cover thumbnail.

In this embodiment, the user carries out relevant input to the alternative cover thumbnail, namely can share the target video to corresponding application fast to different applications, can set up different video covers, provide diversified selection for the setting of video cover.

Optionally, the method further comprises:

receiving an eighth input of the user to the program interface of the second application program;

in response to the eighth input, displaying at least two alternative cover thumbnails for the target video;

receiving a ninth input from the user to a third object cover thumbnail of the at least two alternative cover thumbnails;

in response to the ninth input, the target video is shared to the second application program, and a video cover of the target video in the second application program is the third target cover thumbnail.

In this embodiment, in a case where an eighth input to the program interface of the second application is received, at least two alternative cover thumbnail images of the target video are displayed. The eighth input may be a touch input, for example, the eighth input is a slide-up operation or a slide-down operation.

In a case that a ninth input is received for a third object cover page thumbnail in the at least two alternative cover page thumbnails, the object video is shared to the second application, and a video cover of the object video in the second application is the third object cover page thumbnail.

As shown in fig. 4a, in an implementation scenario, a user may perform a touch input on a control "album" in an operation interface corresponding to a second application, and display the album interface, where the touch input may be understood as an eighth input. As shown in FIG. 4b, the album interface includes a "video cover page" and a "picture interface page" and the user can perform a ninth input to the video cover page control to display the video cover page. In this implementation scenario, as shown in fig. 4c, the video cover page is displayed with all videos and a plurality of alternative cover thumbnails corresponding to each video. The user can perform input on the cover 3 corresponding to the video 3. In response to this input, the cover 3 is set as the video cover for video 3 and video 3 is sent to the target application, where cover 3 may also be understood as the second target cover thumbnail, as shown in fig. 4 d.

In this embodiment, when the user shares the target video, the user can set the video cover of the target video in a user-defined manner, and then the user requirements are met.

In other embodiments, the user may change the video cover through a related operation.

Referring to fig. 5a-5d, in other embodiments, the user may perform a long press operation on the video cover to display alternative cover thumbnails. The alternative cover thumbnail is displayed with thumbnails corresponding to 4 covers, and if the alternative cover thumbnail cannot be completely displayed, a user can check all the alternative cover thumbnails through sliding operation.

In this embodiment, the user may also perform a touch operation on the thumbnail of the cover to view the original image of the cover, where the original image of the cover is the original image corresponding to the thumbnail of the cover. As shown in fig. 5b, the user may press the cover 2 for a long time to view the original image corresponding to the cover 2.

As shown in fig. 5c to 5d, the user may perform a touch input or a slide input or other types of input on the cover 2, for example, the user may click on the cover 2 to set the video cover as the cover 2, thereby resetting the video cover.

In the embodiment, the user can replace the video cover according to personal preferences, so that the setting mode of the video cover is enriched, and the user requirements are further met.

Fig. 6 is a schematic diagram of a possible structure of a video cover setting apparatus according to an embodiment of the present disclosure, and as shown in fig. 6, the video cover setting apparatus 200 includes:

a first display module 201, configured to display at least two alternative cover thumbnails of a target video;

a first receiving module 202, configured to receive a first input from a user on a first object cover thumbnail of the at least two alternative cover thumbnails;

a first processing module 203 for updating a video cover of the target video to the first target cover thumbnail in response to the first input.

In the embodiment of the application, the target video is provided with at least two alternative cover pages, a user can perform first input on a desired cover page thumbnail according to different scenes, namely, the video cover page can be updated to be a corresponding cover page thumbnail, and user-defined setting of the video cover page by the user is realized. In addition, the user can set the most representative front cover according to different application scenes, the setting mode of the front cover is enriched, and different requirements of the user are met.

Optionally, the video cover setting apparatus 200 further includes:

the second display module is used for displaying at least two key video frame thumbnails of the target video;

a second receiving module, configured to receive a second input of at least two target key video frame thumbnails from the at least two key video frame thumbnails from the user;

and the second processing module is used for responding to the second input and obtaining at least two alternative cover thumbnails.

In this embodiment, when the second input is received, the target key video frame thumbnail corresponding to the target video is determined as the alternative cover thumbnail, so that the alternative cover thumbnail can reflect the video content of the target video.

Optionally, the second display module is specifically configured to:

extracting video frames containing preset key feature information in a target video to obtain at least two frames of key video frames;

and obtaining at least two key video frame thumbnails according to the at least two key video frames.

In the embodiment, the video frame is detected by using the preset image feature detection algorithm, and the video frame is determined as the key frame only when the target value corresponding to the video frame is greater than the preset value, so that the key frame can embody the video content of the target video, and the selected video cover is more representative.

Optionally, the second display module is further specifically configured to:

receiving a third input of the target video from the user;

obtaining at least two key video frames in response to the third input;

and obtaining at least two key video frame thumbnails according to the at least two key video frames.

In this embodiment, after the key frame is extracted, the thumbnail of the image corresponding to the key frame is determined as the key video frame thumbnail, so that the key video frame thumbnail can reflect the video content of the target video.

Optionally, the video cover setting apparatus 200 further includes:

the third processing module is used for storing the target video, the at least two alternative cover thumbnails and at least two alternative cover original images in an associated manner, wherein the at least two alternative cover original images are key video frames corresponding to the at least two alternative cover thumbnails;

the video cover setting apparatus 200 further includes:

the third receiving module is used for receiving fourth input of the user to a video cover of the target video;

the first display module 201 is specifically configured to:

in response to the fourth input, displaying at least two alternative cover thumbnails associated with the target video.

In the embodiment, after the key video frame is determined, the target video, the alternative cover thumbnail and the alternative cover original image are stored in an associated manner; and displaying the alternative cover thumbnail based on a fourth input by the user to the video cover of the target video. In this way, the displayed alternative cover thumbnail may reflect the video content of the target video.

Optionally, the video cover setting apparatus 200 further includes:

a fourth receiving module, configured to receive a fifth input from the user on a second object cover thumbnail of the at least two alternative cover thumbnails;

a third display module for displaying at least one application icon in response to the fifth input;

a fifth receiving module, configured to receive a sixth input of the first application icon from the user in the at least one application icon;

and the fourth processing module is used for responding to the sixth input, establishing the incidence relation between the second object cover thumbnail and the first application program corresponding to the first application program icon, and displaying an application program identifier in the second object cover thumbnail, wherein the application program identifier is used for indicating the first application program.

In this embodiment, through input of a user, an association relationship between the second object cover thumbnail and the first application corresponding to the first application icon is established, and an application identifier is displayed in the second object cover thumbnail. Therefore, in the subsequent steps, the target video can be quickly shared to the first application program through the operation of the user on the application program identification, and the convenience of the user in video sharing is improved.

Optionally, the video cover setting apparatus 200 further includes:

a sixth receiving module, configured to receive a seventh input of the second object cover thumbnail from the user;

and the fifth processing module is used for responding to the seventh input, sharing the target video to the first application program indicated by the application program identification, wherein the video cover of the target video in the first application program is the second target cover thumbnail.

In this embodiment, the user carries out relevant input to the alternative cover thumbnail, namely can share the target video to corresponding application fast to different applications, can set up different video covers, provide diversified selection for the setting of video cover.

Optionally, the video cover setting apparatus 200 is specifically configured to:

receiving an eighth input of the user to the program interface of the second application program;

in response to the eighth input, displaying at least two alternative cover thumbnails for the target video;

receiving a ninth input from the user to a third object cover thumbnail of the at least two alternative cover thumbnails;

in response to the ninth input, the target video is shared to the second application program, and a video cover of the target video in the second application program is the third target cover thumbnail.

In this embodiment, when the user shares the target video, the user can set the video cover of the target video in a user-defined manner, and then the user requirements are met.

The video cover setting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.

The video cover setting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.

The video cover setting device provided in the embodiment of the present application can implement each process implemented in the embodiment of the method in fig. 1, and is not described here again to avoid repetition.

Optionally, as shown in fig. 7, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and executable on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the above-mentioned embodiment of the video cover setting method, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.

It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.

Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.

Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.

The display unit 1006 is configured to display at least two alternative cover thumbnails of the target video;

a user input unit 1007 for receiving a first input of a user for a first object cover thumbnail of the at least two alternative cover thumbnails;

a processor 1010 to update a video cover of the target video to the first target cover thumbnail in response to the first input.

In the embodiment of the application, the target video is provided with at least two alternative cover pages, a user can perform first input on a desired cover page thumbnail according to different scenes, namely, the video cover page can be updated to be a corresponding cover page thumbnail, and user-defined setting of the video cover page by the user is realized. In addition, the user can set the most representative front cover according to different application scenes, the setting mode of the front cover is enriched, and different requirements of the user are met.

The display unit 1006 is further configured to display at least two key video frame thumbnails of the target video;

a user input unit 1007, further configured to receive a second input of at least two target key video frame thumbnails from the user;

a processor 1010 further configured to obtain at least two alternative cover thumbnails in response to the second input.

In this embodiment, when the second input is received, the target key video frame thumbnail corresponding to the target video is determined as the alternative cover thumbnail, so that the alternative cover thumbnail can reflect the video content of the target video.

The processor 1010 is further configured to extract video frames containing preset key feature information in the target video to obtain at least two key video frames;

and obtaining at least two key video frame thumbnails according to the at least two key video frames.

In the embodiment, the video frame is detected by using the preset image feature detection algorithm, and the video frame is determined as the key frame only when the target value corresponding to the video frame is greater than the preset value, so that the key frame can embody the video content of the target video, and the selected video cover is more representative.

The user input unit 1007 is further configured to receive a third input of the target video from the user;

a processor 1010 further configured to obtain at least two key video frames in response to the third input;

and obtaining at least two key video frame thumbnails according to the at least two key video frames.

In this embodiment, after the key frame is extracted, the thumbnail of the image corresponding to the key frame is determined as the key video frame thumbnail, so that the key video frame thumbnail can reflect the video content of the target video.

The processor 1010 is further configured to associate and store the target video, the at least two alternative cover thumbnails, and at least two alternative cover artwork, where the at least two alternative cover artwork are key video frames corresponding to the at least two alternative cover thumbnails;

a user input unit 1007, further configured to receive a fourth input of a video cover of the target video by the user;

a display unit 1006, further configured to display at least two alternative cover thumbnails associated with the target video in response to the fourth input.

In the embodiment, after the key video frame is determined, the target video, the alternative cover thumbnail and the alternative cover original image are stored in an associated manner; and displaying the alternative cover thumbnail based on a fourth input by the user to the video cover of the target video. In this way, the displayed alternative cover thumbnail may reflect the video content of the target video.

The user input unit 1007 is further configured to receive a fifth input from the user on a second object cover thumbnail in the at least two alternative cover thumbnails;

a display unit 1006, further configured to display at least one application icon in response to the fifth input;

a user input unit 1007, further configured to receive a sixth input of the first application icon in the at least one application icon by the user;

the processor 1010 is further configured to, in response to the sixth input, establish an association relationship between the second object cover thumbnail and the first application corresponding to the first application icon, and display an application identifier in the second object cover thumbnail, where the application identifier is used to indicate the first application.

In this embodiment, through input of a user, an association relationship between the second object cover thumbnail and the first application corresponding to the first application icon is established, and an application identifier is displayed in the second object cover thumbnail. Therefore, in the subsequent steps, the target video can be quickly shared to the first application program through the operation of the user on the application program identification, and the convenience of the user in video sharing is improved.

The user input unit 1007 is further configured to receive a seventh input of the second object cover thumbnail from the user;

the processor 1010 is further configured to, in response to the seventh input, share the target video to a first application indicated by the application identifier, where a video cover of the target video in the first application is the second target cover thumbnail.

In this embodiment, the user carries out relevant input to the alternative cover thumbnail, namely can share the target video to corresponding application fast to different applications, can set up different video covers, provide diversified selection for the setting of video cover.

The user input unit 1007 is further configured to receive an eighth input to the program interface of the second application from the user;

a display unit 1006, further configured to display at least two alternative cover thumbnails for the target video in response to the eighth input;

a user input unit 1007, further configured to receive a ninth input from the user on a third object cover thumbnail of the at least two alternative cover thumbnails;

the processor 1010 is further configured to share the target video to the second application program in response to the ninth input, where a video cover of the target video in the second application program is the third target cover thumbnail.

In this embodiment, when the user shares the target video, the user can set the video cover of the target video in a user-defined manner, and then the user requirements are met.

It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10071 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.

The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned embodiment of the video cover setting method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

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 Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.

The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is configured to run a program or an instruction, implement each process of the above-mentioned video cover setting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.

It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.

While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

29页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种网络路由信息管理装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类