Video preview method, video preview apparatus, and electronic device

By displaying the multi-frame image thumbnails obtained in the video preview method in the album interface, the problem of inaccurate video selection in the prior art is solved, and more comprehensive video content display and more accurate video selection are achieved.

WO2025036376A1PCT designated stage expired Publication Date: 2025-02-20VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/111908
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-14
Filing Date
2024-08-14
Publication Date
2025-02-20

AI Technical Summary

Technical Problem

In the prior art, videos can only be selected through one frame of image content in the video in the album interface, and videos that meet the needs cannot be accurately selected.

Method used

By acquiring at least two frames of the target image in the video and displaying thumbnails of these images in the album interface, the display of video content is improved and the user can select the desired video more accurately.

Benefits of technology

By increasing the number of target images corresponding to the thumbnail, the video content can be displayed more comprehensively and the user's ability to select satisfactory videos can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024111908_20022025_PF_FP_ABST
    Figure CN2024111908_20022025_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of image processing. Disclosed are a video preview method, a video preview apparatus, and an electronic device. The method comprises: acquiring N target image frames in a first video, N being an integer greater than 1; and displaying, in a photo album interface, thumbnails that are in a one-to-one correspondence with the N target image frames.
Need to check novelty before this filing date? Find Prior Art

Description

Video preview method, video preview device and electronic device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese Patent Application No. 202311021535.2 filed in China on August 14, 2023, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application belongs to the field of image processing technology, and specifically relates to a video preview method, a video preview device and an electronic device. Background Art

[0004] In the related art, thumbnails of photos and videos are mixed and displayed in the album interface, among which the thumbnails of videos are usually the image content of the first frame or the last frame in the video. In this way, when the user selects a video in the album interface, he can only select the video based on the image content of one frame in the video, which has the defect of not being able to accurately select the video that meets the needs.

[0005] Summary of the Invention

[0006] The purpose of the embodiments of the present application is to provide a video preview method, a video preview device and an electronic device. For the same video, thumbnails of at least two frames of images can be displayed in the album interface. In this way, by increasing the number of image frames corresponding to the thumbnails, the video content displayed in the album interface can be improved, thereby facilitating users to select videos that meet their needs.

[0007] In a first aspect, an embodiment of the present application provides a video preview method, the method comprising:

[0008] Obtain N frames of target images in the first video, where N is an integer greater than 1;

[0009] Thumbnails corresponding to the N frames of target images are displayed on the album interface.

[0010] In a second aspect, an embodiment of the present application provides a video preview device, the device comprising:

[0011] An acquisition module, configured to acquire N frames of target images from the first video, where N is an integer greater than 1;

[0012] The first display module is used to display thumbnails corresponding to the N frames of target images on the album interface.

[0013] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.

[0017] In an embodiment of the present application, N target images are obtained from a first video, where N is an integer greater than 1; and thumbnails corresponding to the N target images are displayed on an album interface. Thus, for a video, thumbnails of at least two frames can be displayed on the album interface. By increasing the number of target images corresponding to thumbnails, the video content displayed on the album interface can be improved, thereby facilitating user selection of videos that meet their needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] FIG1 is a flow chart of a video preview method provided in an embodiment of the present application;

[0019] FIG2 is a schematic diagram of an album interface in the related art;

[0020] FIG3 is a schematic diagram of one of the photo album interfaces in an embodiment of the present application;

[0021] FIG4 is a second schematic diagram of the album interface in an embodiment of the present application;

[0022] FIG5 is a schematic diagram of the operation of the second input in an embodiment of the present application;

[0023] FIG6 is a schematic diagram of the operation of the third input in an embodiment of the present application;

[0024] FIG7 is a schematic diagram of the workflow of Example 1 of the present application;

[0025] FIG8 is a schematic diagram of the workflow of Example 2 of the present application;

[0026] FIG9 is a schematic structural diagram of a video preview device provided in an embodiment of the present application;

[0027] FIG10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0028] FIG11 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0030] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

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

[0032] Referring to FIG1 , the video preview method provided in the embodiment of the present application may include the following steps:

[0033] Step 101: Obtain N frames of target images in a first video, where N is an integer greater than 1.

[0034] Step 102: Display thumbnails corresponding to the N frames of target images on an album interface.

[0035] In some embodiments, the first video may be obtained by shooting with a camera, or the first video may be received through network transmission. For ease of explanation, the embodiments of the present application generally use the example of obtaining the first video by shooting with a camera as an example, which does not constitute a specific limitation here.

[0036] In one embodiment, the N frames of target images may be acquired during the process of acquiring the first video. For example, during the process of shooting the first video, a frame of image is taken at intervals of a certain length as the target image.

[0037] In another embodiment, a first video may be acquired first, and then N frames of target images may be extracted from the first video.

[0038] It should be noted that the video is composed of a large number of pictures arranged in chronological order, and each picture has its own corresponding frame time or arrangement position. At this time, the target image can be a picture arranged at any position in the first video, or a picture in the first video corresponding to any frame time.

[0039] As shown in FIG. 2 , in the related art, only one thumbnail 21 of a video is displayed in the album interface, such as a thumbnail of the first frame image in the video.

[0040] In the embodiment of the present application, at least two frames of images are extracted from the first video as target images, and thumbnails of all target images are displayed in the album interface. At this time, as shown in Figure 3, one video will correspond to at least two thumbnails 32, and each thumbnail 32 corresponds to different image content in the video. Compared with the related art that only displays a thumbnail of an image frame in a video, it is possible to display thumbnails of more images in the same video, which is beneficial for users to preview more detailed image content in the video based on the thumbnail.

[0041] Optionally, thumbnails of at least two frames of target images extracted from the same video can be displayed in the album interface according to the arrangement order of the at least two frames of target images, that is, the arrangement order of the thumbnails displayed in the album interface is consistent with the arrangement order of the corresponding target images in the first video.

[0042] It is worth mentioning that the above-mentioned album interface can be the interface of an album application, and the album application can include a large number of photos and videos. Based on the embodiment of the present application, the thumbnails of the photos and the thumbnails of the videos can be displayed together in the album interface for the user to select. Among them, the thumbnails of the videos are thumbnails of the target images extracted from the video, and a video can have at least two thumbnails.

[0043] In a first embodiment, a method of acquiring N frames of target images in the first video may be: extracting N frames of target images from the first video according to a preset period.

[0044] Optionally, the preset period can be a preset time period. For example, assuming that the length of the first video is 100s, a frame of target image is taken out every 10s, then the images at the 11 time points of 0s, 10s, 20s, 30s, 40s, 50s, 60s, 70s, 80s, 90s, and 100s are selected as target images.

[0045] Optionally, the preset period can be a preset frame number period, for example: assuming that the first video contains 10 frames of images, one frame of image is extracted from the first video as the target image every 3 frames, then the 1st frame, 4th frame, 7th frame and 10th frame are selected as the target images.

[0046] Optionally, the preset period may be factory preset for the electronic device that executes the video preview method provided in the embodiment of the present application, or may be set by the user, or may be positively correlated with the length of the video, and is not specifically limited here.

[0047] In this embodiment, based on the preset period, the longer the first video is, the larger the value of N is.

[0048] In a second embodiment, a method of obtaining N frames of target images in the first video may be: extracting N frames of target images from the first video based on a preset value, where N is the preset value.

[0049] Optionally, the above-mentioned preset value may be the factory preset value of N of the electronic device that executes the video preview method provided in the embodiment of the present application, or the value of N set by the user, or the value of N is positively correlated with the video length, which is not specifically limited here.

[0050] Optionally, after the value of N is determined, N frames of images may be uniformly extracted from the first video as target images.

[0051] In this embodiment, the value of N can be preset so that the same number of target images can be extracted for videos of different lengths. In this way, a fixed number of target images can be extracted from each video, such as 5 frames of target images per video.

[0052] In a third embodiment, obtaining N frames of target images in the first video includes:

[0053] When the difference between the feature information of the first image and the feature information of the second image is greater than or equal to a first threshold, the second image is determined as the target image, wherein the first image and the second image are two adjacent frames of images in the first video, and the first image is arranged before the second image.

[0054] Optionally, the above-mentioned feature information can be feature point information. In this case, the difference between the feature information of the first image and the feature information of the second image is greater than or equal to the first threshold value, or the difference between the feature point information of two adjacent frames of images in the first video can be greater than or equal to the first threshold value, for example: the first image captures a person and the second image captures a scene.

[0055] In some implementations, feature information of each frame of the first video may be extracted, and feature information of two adjacent frames of the image may be compared for difference.

[0056] Among them, the first threshold can be a pre-set value or a value set by the user. For example, assuming that the first threshold is 50%, when the change in the feature points of two adjacent frames of images is greater than or equal to 50%, the latter frame of the two adjacent frames of images is used as the target image.

[0057] In some embodiments, feature information of any two adjacent frames of images in the first video can be compared to determine whether the feature difference between the two adjacent frames is large. If so, it is determined that the content captured by the latter frame of the two adjacent frames has changed. At this time, the latter frame of image is used as the target image, and a more representative target image can be selected from the first video.

[0058] For example: the album interface shown in Figure 3 displays thumbnails of target images extracted using the first or second implementation method; the album interface shown in Figure 4 displays thumbnails of target images extracted using the third implementation method. Comparing Figures 3 and 4, it can be seen that the thumbnail selected in Figure 3 may not be able to fully reflect the content of the first video, or may omit part of the content of the first video, or repeatedly display the same similar scene redundantly. Compared with Figure 4, the image 41 containing the "ribbon" is omitted in the album interface as shown in Figure 3; and the difference between the target images corresponding to any two adjacent thumbnails in Figure 4 is relatively large, so that the content of the first video can be displayed more comprehensively and completely.

[0059] In this embodiment, the probability of extracting target images with similar or repeated content can be reduced, and thus, on the basis of reducing the number of target images, the extracted target images can specifically reflect the changes in the image content in the first video.

[0060] In a fourth embodiment, obtaining N frames of target images in the first video includes:

[0061] In a case where a first object is acquired from the third image and a second object acquired from the fourth image is different from the first object, determining the third image as the target image;

[0062] The fourth image is each frame of image arranged before the third image in the first video.

[0063] Among them, the number of fourth images can be one or more, for example: when the fourth image is the second frame image in the first video, at this time, the third image includes the first frame image in the first video; when the fourth image is the Mth frame image in the first video, at this time, the third image includes the first frame to the (M-1)th frame image in the first video, where M is an integer greater than 1.

[0064] Of course, the third image can also be the first frame image in the first video, and there is no fourth image. At this time, there must be no second object matching the object in the first frame image, so the first frame image in the first video is used as the target image.

[0065] In some implementations, the first object and the second object may be people.

[0066] Optionally, attribute information of objects in each frame of the first video may be obtained. For example, the attribute information of each object may be identification information of each person, such as distinguishing person A, person B, etc. through attribute information.

[0067] Optionally, the second object obtained from the fourth image is different from the first object, and the second attribute information of the second object may not match the first attribute information of the first object, such as a person appears in the third image that has not appeared in the fourth image.

[0068] In other implementations, the first object and the second object may be scenes.

[0069] Optionally, attribute information of objects in each frame of the first video may be obtained. For example, the attribute information of each object may be identification information of each scene, such as distinguishing scene C from scene D through attribute information.

[0070] Optionally, the second object obtained from the fourth image is different from the first object, and a scene that has not appeared in the fourth image may appear in the third image. For example, the third image is an image of an indoor scene, and the fourth image before the third image is an image of an outdoor scene, then the third image is determined as the target image.

[0071] For example, the person in each frame of the first video is identified frame by frame, and the first frame of the first video is determined as the target image. Then, the person in the second frame is compared with the person in the first frame. If the person in the second frame is the same as the person in the first frame, the second frame is not determined as the target image. If the person in the second frame is at least partially different from the person in the first frame, the second frame is determined as the target image. Finally, the same process is repeated until the Qth frame in the first video is determined to be the target image, where Q is the total number of frames in the first video.

[0072] In this embodiment, objects in each frame of the first video can be identified, and the image containing the first appearance of each object can be used as the target image, so that the target image can display different objects in a targeted manner, thereby fully reflecting the different objects in the video and avoiding redundant display of the same objects through thumbnails in the album interface.

[0073] It should be noted that at least two of the above four implementations for extracting N frames of target images from the first video can be combined, for example: the image extracted by the third implementation and the image extracted by the fourth implementation are used as target images, which is not specifically limited here.

[0074] In some implementations, the user can also operate on the thumbnails in the album interface to edit the thumbnails, such as deleting thumbnails, updating thumbnails, adding thumbnails, etc.

[0075] In a first embodiment, the method further comprises:

[0076] receiving a first input of a first thumbnail, where the first thumbnail is a thumbnail of a first target image in the N frames of target images;

[0077] In response to the first input, the first video is played starting from the first target image.

[0078] In one embodiment, the method further comprises:

[0079] A first identifier is displayed on the thumbnail, where the first identifier indicates that the thumbnail is a thumbnail of a video.

[0080] For example, as shown in Figure 3, there is a first mark 31 above each video thumbnail 32 in the album interface, and the first mark 31 can be a video mark. In this way, through the first mark 31, it is possible to distinguish whether the thumbnail in the album interface is a photo thumbnail or a video thumbnail.

[0081] Optionally, the first input may be a touch input to the first identifier in the first thumbnail, such as clicking the first identifier in the first thumbnail.

[0082] In this embodiment, by performing a first input on the first thumbnail, the first video can be triggered to start playing from the first target image corresponding to the first thumbnail. That is, by selecting the thumbnail targeted by the first input, the starting position of the playback of the first video can be adjusted.

[0083] In a second embodiment, the method further comprises:

[0084] receiving a second input of a second thumbnail, wherein the thumbnails of the N frames of target images include the second thumbnail;

[0085] In response to the second input, the second thumbnail is deleted from the album interface.

[0086] Among them, the second input can be any operation for deleting the second thumbnail, for example: as shown in Figure 5, the second input is a touch input of two fingers together. Specifically, as shown in Figure 5, the user can use two fingers to touch the two thumbnails in the album interface respectively. When the two fingers are together, one of the two thumbnails can be deleted, such as deleting the right one of the two thumbnails, or deleting the lower one of the two thumbnails. There is no specific limitation here.

[0087] It should be noted that, while deleting the second thumbnail, a frame of target image corresponding to the second thumbnail may also be deleted from the target image extracted from the first video.

[0088] In this embodiment, when too many target images are extracted, thumbnails corresponding to some of the target images may be deleted from the album interface through the second input.

[0089] In a third embodiment, the method further comprises:

[0090] receiving a third input of a third thumbnail, wherein the third thumbnail is a thumbnail of a second target image in the N frames of target images;

[0091] During the execution of the third input, the third thumbnail and thumbnails of each frame of the first video that is arranged after the second target image are displayed frame by frame in the first area;

[0092] When it is detected that the third input is finished, the third thumbnail is modified into a thumbnail of a third target image, where the thumbnail of the third target image is the thumbnail displayed in the first area at the end of the third input.

[0093] In some implementations, the first area may be the area within the album interface where the third thumbnail is located.

[0094] Among them, the third input is an input with a certain duration, for example: a long press operation. At this time, the execution period of the third input is the period of long pressing the third thumbnail, and the moment when the third input execution ends is the moment when the long press of the third thumbnail ends, that is, the moment when the touch part leaves the third thumbnail.

[0095] It should be noted that the third thumbnail and the thumbnail of each frame of the first video that follows the second target image are displayed frame by frame in the first area. This is different from the "playing the first video starting from the first target image in response to the first input" in the first embodiment. Specifically, the first embodiment can open the video playback interface to play the first video starting from the first target image; in this embodiment, the thumbnail is only switched to be displayed within the original display area of ​​the third thumbnail. That is, at this time, the displayed interface is still the album interface, and there is no need to open the video playback interface.

[0096] For example, as shown in FIG6 , when the user's finger long presses the first area 61, the thumbnail displayed in the first area 61 starts to switch backward frame by frame. When the user's finger leaves the first area 61, the thumbnail currently displayed in the first area 61 is used as the thumbnail of the target image. In this way, the thumbnail in the first area 61 is updated, and the target image is updated.

[0097] In this embodiment, the thumbnails in the first area can be updated by performing a third input on the first area.

[0098] In some embodiments, the method further comprises:

[0099] A second identifier is displayed on the thumbnail, where the second identifier is used to uniquely identify the first video in the target album corresponding to the album interface.

[0100] In one embodiment, the second identifier may be a video identifier, such as "Video 1", "Video 2", etc. In this case, the second identifier may be used to distinguish the videos corresponding to the thumbnails in the album interface.

[0101] In another embodiment, the second identifier can be the identifier of the target image, such as "Video 1-1" indicates the first target image in video 1, and "Video 1-2" indicates the second target image in video 1. In this case, the second identifier can be used to distinguish the target images corresponding to each thumbnail in the album interface.

[0102] In this embodiment, the second identifier can be used to distinguish the videos corresponding to the thumbnails in the album interface. In this way, when the target album corresponding to the album interface contains at least two videos, based on the different second identifiers corresponding to different videos, the thumbnails corresponding to different videos can be displayed separately in the album interface.

[0103] It's worth noting that when selecting a video from the album interface, selecting a thumbnail will select the video corresponding to that thumbnail. For example, when selecting a video to send from the album interface, if the same video has N thumbnails, the user only needs to select any of the N thumbnails, such as clicking on a thumbnail, to select that video as the video to be sent.

[0104] As an optional implementation, the method further includes:

[0105] Determine the target sub-album according to the image features contained in each photo or each frame of the target image in the target album;

[0106] Among them, the target album includes the album corresponding to the album interface, the target sub-album includes at least one photo or a fourth target image, the N frames of target images include the fourth target image, and the photos or fourth target images in the target sub-album have the same image features.

[0107] The aforementioned image features may include at least one of facial features, shooting scene features, and other features. The presence of the same image features in the photos or fourth target images in the target sub-album can be understood as grouping photos and videos containing image content of the same person or scene into sub-albums associated with that person. For ease of explanation, the present application uses facial features as an example of an image feature, which is not intended to be a specific limitation.

[0108] Optionally, in one embodiment, face recognition or scene recognition can be performed on the photos or target images to classify the faces or scenes contained in each photo or each frame of the target image, and the photos or target images containing the same face or scene can be grouped into the same sub-album. In this way, when the sub-album interface is displayed, a thumbnail corresponding to each photo or target image in the sub-album can be displayed.

[0109] It should be noted that when at least one target image frame of a video is classified in a certain sub-album, it means that the video is classified in the sub-album.

[0110] It is worth noting that in related technologies, photos are only classified based on facial recognition information and shooting location information, while in the implementation of the present application, photos and videos can be classified based on image features.

[0111] In addition, given that different target images in the same video may contain different image features, different target images in the same video may be classified into different sub-albums.

[0112] For example: Suppose a video includes two frames of target images, where the first frame of target image contains the face of person A and the second frame of target image contains the face of person B. Then, by performing facial image recognition on these two frames of target images, it can be determined that the first frame of target image contains the face of person A, and the video is thus classified in the sub-album corresponding to person A. It can be determined that the second frame of target image contains the face of person B, and the video is also classified in the sub-album corresponding to person B.

[0113] It should be noted that when a sub-album interface is displayed, the thumbnails displayed in the sub-album interface all have image features corresponding to the sub-album.

[0114] For example: Suppose a video includes two frames of target images, where the first frame of target image contains the face of person A and the second frame of target image contains the face of person B. When the sub-album interface corresponding to person A is displayed, the interface contains a thumbnail corresponding to the first frame of target image; when the sub-album interface corresponding to person B is displayed, the interface contains a thumbnail corresponding to the second frame of target image.

[0115] In order to facilitate the description of the video preview method provided in the embodiments of the present application, the video preview method provided in the present application is illustrated by taking the following two embodiments as examples.

[0116] Example 1

[0117] As shown in FIG7 , the video preview method in this embodiment may include the following steps:

[0118] Step 701: Shoot a first video.

[0119] Step 702: Display thumbnails of N frames of target images in the album interface.

[0120] In this step, the first implementation or the second implementation for extracting N frames of target images from the first video in the method embodiment shown in FIG1 can be adopted to achieve the extraction of N frames of target images in the first video.

[0121] Step 703: The user searches for the desired video in the album interface based on the N thumbnails.

[0122] Step 704: The user clicks on the selected thumbnail.

[0123] Step 705: Play the video.

[0124] In this embodiment, by increasing the number of target images corresponding to thumbnails, the video content displayed in the album interface can be improved, thereby facilitating users to select videos that meet their needs.

[0125] Example 2

[0126] As shown in FIG8 , the video preview method in this embodiment may include the following steps:

[0127] Step 801: Shoot a first video.

[0128] Step 802: Display thumbnails of N frames of target images in the album interface.

[0129] In this step, the third implementation and / or the fourth implementation for extracting N frames of target images from the first video in the method embodiment shown in Figure 1 can be adopted to achieve the extraction of N frames of target images in the first video.

[0130] Step 803: The user searches for the desired video in the album interface based on N thumbnails.

[0131] Step 804: The user clicks on the selected thumbnail.

[0132] Step 805: Categorize the photos and videos together.

[0133] In this step, reference may be made to the method embodiment shown in FIG1 : determining the explanation of the target sub-album according to the image features contained in each photo or each frame of the target image in the target album, which will not be repeated here.

[0134] In this embodiment, the third implementation and / or the fourth implementation for extracting N frames of target images from the first video in the method embodiment shown in Figure 1 are adopted to extract N frames of target images in the first video, and more thumbnails can be used to display the content of the first video more comprehensively; in addition, the function of classifying photos and videos together is also realized.

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

[0136] Referring to FIG. 9 , the video preview device 900 provided in this embodiment of the present application includes the following modules:

[0137] An acquisition module 901 is configured to acquire N frames of target images from a first video, where N is an integer greater than 1;

[0138] The first display module 902 is configured to display thumbnails corresponding to the N frames of target images on an album interface.

[0139] Optionally, the acquisition module 901 is configured to perform at least one of the following:

[0140] Extracting N frames of target images from the first video according to a preset period;

[0141] N frames of target images are extracted from the first video based on a preset value, where N is the preset value.

[0142] Optionally, the acquisition module 901 is used to:

[0143] When the difference between the feature information of the first image and the feature information of the second image is greater than or equal to a first threshold, the second image is determined as the target image, wherein the first image and the second image are two adjacent frames of images in the first video, and the first image is arranged before the second image.

[0144] Optionally, the acquisition module 901 is used to:

[0145] In a case where a first object is acquired from the third image and a second object acquired from the fourth image is different from the first object, determining the third image as the target image;

[0146] The fourth image is each frame of image arranged before the third image in the first video.

[0147] Optionally, the video preview device 900 further includes:

[0148] A first input module is configured to receive a first input of a first thumbnail, where the first thumbnail is a thumbnail of a first target image in the N frames of target images;

[0149] The first response module is configured to play the first video starting from the first target image in response to the first input.

[0150] Optionally, the video preview device 900 further includes:

[0151] A second input module is configured to receive a second input of a second thumbnail, wherein the thumbnails of the N frames of target images include the second thumbnail;

[0152] The second response module is configured to delete the second thumbnail from the album interface in response to the second input.

[0153] Optionally, the video preview device 900 further includes:

[0154] A third input module is configured to receive a third input of a third thumbnail, wherein the third thumbnail is a thumbnail of the second target image in the N frames of target images;

[0155] a second display module, configured to display, in a first area, the third thumbnail and a thumbnail of each frame of an image arranged after the second target image in the first video frame by frame during execution of the third input;

[0156] The modification module is configured to modify the third thumbnail into a thumbnail of a third target image when detecting that the third input is finished, wherein the thumbnail of the third target image is the thumbnail displayed in the first area at the end of the third input.

[0157] Optionally, the video preview device 900 further includes:

[0158] A determination module, configured to determine a target sub-album based on image features contained in each photo or each frame of a target image in the target album;

[0159] Among them, the target album includes the album corresponding to the album interface, the target sub-album includes at least one photo or a fourth target image, the N frames of target images include the fourth target image, and the photos or fourth target images in the target sub-album have the same image features.

[0160] Optionally, the video preview device 900 further includes:

[0161] A third display module is configured to display at least one of the following on the thumbnail:

[0162] A first identifier, wherein the first identifier indicates that the thumbnail is a thumbnail of a video;

[0163] The second identifier is used to uniquely identify the first video in the target album corresponding to the album interface.

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

[0165] The video preview device in the embodiment of the present application can be a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0166] The video preview device provided in the embodiment of the present application can implement each process implemented by the method embodiment shown in Figure 1 or Figure 7 or Figure 8, and can obtain the same beneficial effects as the embodiment shown in Figure 1 or Figure 7 or Figure 8. To avoid repetition, it will not be repeated here.

[0167] Optionally, as shown in Figure 10, an embodiment of the present application also provides an electronic device 1000, including a processor 1001 and a memory 1002, and the memory 1002 stores a program or instruction that can be run on the processor 1001. When the program or instruction is executed by the processor 1001, the various steps of the above-mentioned video preview method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

[0169] FIG11 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

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

[0171] Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (such as a battery) to power various components. The power source may be logically connected to the processor 1110 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG11 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.

[0172] The input unit 1104 is used to obtain a first video;

[0173] Processor 1110 is configured to obtain N frames of target images in a first video, where N is an integer greater than 1;

[0174] The display unit 1106 is configured to display thumbnails corresponding to the N frames of target images on an album interface.

[0175] Optionally, the acquiring of N frames of target images in the first video performed by the processor 1110 includes at least one of the following:

[0176] Extracting N frames of target images from the first video according to a preset period;

[0177] N frames of target images are extracted from the first video based on a preset value, where N is the preset value.

[0178] Optionally, the acquiring of N frames of target images in the first video performed by the processor 1110 includes:

[0179] When the difference between the feature information of the first image and the feature information of the second image is greater than or equal to a first threshold, the second image is determined as the target image, wherein the first image and the second image are two adjacent frames of images in the first video, and the first image is arranged before the second image.

[0180] Optionally, the acquiring of N frames of target images in the first video performed by the processor 1110 includes:

[0181] In a case where a first object is acquired from the third image and a second object acquired from the fourth image is different from the first object, determining the third image as the target image;

[0182] The fourth image is each frame of image arranged before the third image in the first video.

[0183] Optionally, the user input unit 1107 is configured to receive a first input for a first thumbnail, where the first thumbnail is a thumbnail of a first target image in the N frames of target images;

[0184] The processor 1110 is further configured to, in response to the first input, control the display unit 1106 to play the first video starting from the first target image.

[0185] Optionally, the user input unit 1107 is further configured to receive a second input for a second thumbnail, wherein the thumbnails of the N frames of target images include the second thumbnail;

[0186] The display unit 1106 is further configured to delete the second thumbnail from the album interface in response to the second input.

[0187] Optionally, the user input unit 1107 is further configured to receive a third input for a third thumbnail, where the third thumbnail is a thumbnail of the second target image in the N frames of target images;

[0188] The display unit 1106 is further configured to display, frame by frame in the first area, the third thumbnail and a thumbnail of each frame of the first video that follows the second target image during the execution of the third input;

[0189] The processor 1110 is further configured to, upon detecting that the third input is finished, modify the third thumbnail to a thumbnail of a third target image, where the thumbnail of the third target image is the thumbnail displayed in the first area at the end of the third input.

[0190] Optionally, the processor 1110 is further configured to determine a target sub-album based on image features contained in each photo or each frame of target image in the target album;

[0191] Among them, the target album includes the album corresponding to the album interface, the target sub-album includes at least one photo or a fourth target image, the N frames of target images include the fourth target image, and the photos or fourth target images in the target sub-album have the same image features.

[0192] Optionally, the display unit 1106 is further configured to display at least one of the following items on the thumbnail:

[0193] A first identifier, wherein the first identifier indicates that the thumbnail is a thumbnail of a video;

[0194] The second identifier is used to uniquely identify the first video in the target album corresponding to the album interface.

[0195] The electronic device provided in the embodiment of the present application can implement the various processes executed by the modules shown in Figure 10, and can achieve the same beneficial effects as the video preview device shown in Figure 10. To avoid repetition, it will not be described here.

[0196] It should be understood that in an embodiment of the present application, the input unit 1104 may include a graphics processing unit (GPU) 11041 and a microphone 11042, and the graphics processor 11041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes a touch panel 11071 and at least one of other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include two parts: a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0197] The memory 1109 can be used to store software programs and various data. The memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1109 may include a volatile memory or a non-volatile memory, or the memory 1109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be 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 RAM bus random access memory (DRRAM). The memory 1109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0198] Processor 1110 may include one or more processing units. Optionally, processor 1110 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1110.

[0199] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned video preview method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

[0201] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned video preview method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0202] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0203] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned video preview method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0204] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0205] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0206] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A video preview method, comprising: Obtain N frames of target images in the first video, where N is an integer greater than 1; Thumbnails corresponding to the N frames of target images are displayed on the album interface.

2. The method according to claim 1, wherein: The acquiring of N frames of target images in the first video includes at least one of the following: Extracting N frames of target images from the first video according to a preset period; Based on a preset value, N frames of target images are extracted from the first video, where N is the preset value.

3. The method according to claim 1, wherein: The step of acquiring N frames of target images in the first video includes: When the difference between feature information of a first image and feature information of a second image is greater than or equal to a first threshold, the second image is determined as the target image, wherein the first image and the second image are two adjacent frames of images in the first video, and the first image is arranged before the second image.

4. The method according to claim 1, wherein: The step of acquiring N frames of target images in the first video includes: In a case where a first object is acquired from the third image and a second object acquired from the fourth image is different from the first object, determining the third image as the target image; The fourth image is each frame of image arranged before the third image in the first video.

5. The method according to any one of claims 1 to 4, further comprising: Receiving a first input of a first thumbnail, where the first thumbnail is a thumbnail of a first target image in the N frames of target images; In response to the first input, the first video is played starting from the first target image.

6. The method according to any one of claims 1 to 4, further comprising: receiving a second input of a second thumbnail, wherein the thumbnails of the N frames of target images include the second thumbnail; In response to the second input, the second thumbnail is deleted from the album interface.

7. The method according to any one of claims 1 to 4, further comprising: receiving a third input of a third thumbnail, wherein the third thumbnail is a thumbnail of a second target image in the N frames of target images; During the execution of the third input, displaying the third thumbnail and thumbnails of each frame of the first video arranged after the second target image in the first area frame by frame; When it is detected that the third input is finished, the third thumbnail is modified to a thumbnail of a third target image, where the thumbnail of the third target image is a thumbnail displayed in the first area at the end of the third input.

8. The method according to any one of claims 1 to 4, further comprising: Determine a target sub-album according to the image features contained in each photo or each frame of the target image in the target album; Among them, the target album includes the album corresponding to the album interface, the target sub-album includes at least one photo or a fourth target image, the N frames of target images include the fourth target image, and the photos or fourth target images in the target sub-album have the same image features.

9. The method according to any one of claims 1 to 4, further comprising: At least one of the following is displayed on the thumbnail: A first identifier, wherein the first identifier indicates that the thumbnail is a thumbnail of a video; A second identifier, where the second identifier is used to uniquely identify the first video in a target album corresponding to the album interface.

10. A video preview device, comprising: An acquisition module, used to acquire N frames of target images in the first video, where N is an integer greater than 1; The first display module is used to display thumbnails corresponding to the N frames of target images on the album interface.

11. The apparatus according to claim 10, wherein the acquisition module is configured to perform at least one of the following: Extracting N frames of target images from the first video according to a preset period; Based on a preset value, N frames of target images are extracted from the first video, where N is the preset value.

12. The device according to claim 10, wherein the acquisition module is used for: When the difference between the feature information of the first image and the feature information of the second image is greater than or equal to a first threshold, the second image is determined as the target image, wherein: The first image and the second image are two adjacent frames of images in the first video, and the first image is arranged before the second image.

13. The device according to claim 10, wherein the acquisition module is used for: In a case where a first object is acquired from the third image and a second object acquired from the fourth image is different from the first object, determining the third image as the target image; in, The fourth image is each frame of image arranged before the third image in the first video.

14. The device according to any one of claims 10 to 13, further comprising: A first input module, used for receiving a first input of a first thumbnail, wherein the first thumbnail is a thumbnail of a first target image in the N frames of target images; The first response module is used to respond to the first input and start playing the first video from the first target image.

15. The device according to any one of claims 10 to 13, further comprising: A second input module, used for receiving a second input of a second thumbnail, wherein the thumbnails of the N frames of target images include the second thumbnail; The second response module is used to delete the second thumbnail from the album interface in response to the second input.

16. The device according to any one of claims 10 to 13, further comprising: A third input module, used for receiving a third input of a third thumbnail, wherein the third thumbnail is a thumbnail of the second target image in the N frames of target images; A second display module is used for displaying the third thumbnail and thumbnails of each frame of the first video arranged after the second target image frame by frame in the first area during the execution of the third input; The modification module is used to modify the third thumbnail into a thumbnail of a third target image when it is detected that the third input is finished, and the thumbnail of the third target image is the thumbnail displayed in the first area at the end time of the third input.

17. The device according to any one of claims 10 to 13, further comprising: A determination module, used to determine a target sub-album according to image features contained in each photo or each frame of a target image in the target album; Among them, the target album includes the album corresponding to the album interface, the target sub-album includes at least one photo or a fourth target image, the N frames of target images include the fourth target image, and the photos or fourth target images in the target sub-album have the same image features.

18. The device according to any one of claims 10 to 13, further comprising: The third display module is configured to display at least one of the following items on the thumbnail: A first identifier, wherein the first identifier indicates that the thumbnail is a thumbnail of a video; A second identifier, where the second identifier is used to uniquely identify the first video in a target album corresponding to the album interface.

19. An electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the video preview method according to any one of claims 1 to 9 are implemented.

20. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the video preview method according to any one of claims 1 to 9.

21. A chip, wherein: The chip includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the video preview method according to any one of claims 1 to 9.

22. A computer program product, wherein: The program product is stored in a non-transitory storage medium, and the program product is executed by at least one processor to implement the video preview method according to any one of claims 1 to 9.

23. A video preview device / equipment, characterized in that: The device / equipment is used to execute the video preview method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Interaction method, interaction apparatus and interaction system

    CN105933772A

  • Video image display method and device, electronic equipment and storage medium

    CN112199552A

  • Video preview method, video preview device and electronic equipment

    CN117093746A

  • Method for Generating Video Thumbnail on Electronic Device, and Electronic Device

    US20190318169A1