CN114915831A - Preview determination method, device, terminal equipment and storage medium - Google Patents
Preview determination method, device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN114915831A CN114915831A CN202210410425.4A CN202210410425A CN114915831A CN 114915831 A CN114915831 A CN 114915831A CN 202210410425 A CN202210410425 A CN 202210410425A CN 114915831 A CN114915831 A CN 114915831A
- Authority
- CN
- China
- Prior art keywords
- video file
- determining
- value
- candidate
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004590 computer program Methods 0.000 claims description 18
- 230000000694 effects Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 6
- 239000003086 colorant Substances 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000008451 emotion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8146—Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics
- H04N21/8153—Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics comprising still images, e.g. texture, background image
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Graphics (AREA)
- Television Signal Processing For Recording (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the application is applicable to the technical field of image processing, and provides a preview determination method, a preview determination device, terminal equipment and a storage medium, wherein the method comprises the following steps: selecting a preset number of frame candidate pictures from a video file; determining a color value template of the video file according to the video category of the video file; and determining a preview image of the video file from the candidate pictures according to the color value template and the pixel values of the candidate pictures. By adopting the method, the appropriate preview image with good effect can be selected from the video file.
Description
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to a preview determination method, an apparatus, a terminal device, and a storage medium.
Background
The preview is a picture for browsing video contents quickly, and is generally composed of a plurality of video pictures in a video. When a user watches a video, the user usually knows about the video based on a preview of the video to decide whether to continue watching the video.
Currently, a preview image is mostly selected manually, or a first frame video picture of a video is used as a preview image of the video. However, when a large amount of videos are encountered and each video contains a large number of video pictures, a manual selection method consumes a large amount of labor cost and time cost. However, the first picture of the video may be blurred due to the lighting problem of the shooting, and is not favorable for being used as a preview of the video.
Accordingly, the conventional technique has a problem that a preview image with a good preview effect cannot be selected from a video.
Disclosure of Invention
The embodiment of the application provides a preview determination method, a preview determination device, terminal equipment and a storage medium, and can solve the problem that a preview with good preview effect cannot be selected from a video in the prior art.
In a first aspect, an embodiment of the present application provides a preview map determining method, where the method includes:
selecting a preset number of frame candidate pictures from a video file;
determining a color value template of the video file according to the video category of the video file;
and determining a preview image of the video file from the candidate pictures according to the color value template and the pixel values of the candidate pictures.
In a second aspect, an embodiment of the present application provides a preview image determining apparatus, including:
the selection module is used for selecting a preset number of frame candidate pictures from the video file;
the color value template determining module is used for determining a color value template of the video file according to the video category of the video file;
and the preview image determining module is used for determining a preview image of the video file from the candidate pictures according to the color value template and the pixel values of the candidate pictures.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method according to the first aspect is implemented.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on a terminal device, causes the terminal device to execute the method of the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: the terminal equipment can firstly acquire candidate pictures with preset number of frames from the video file; and then, determining a color value template of the video file according to the video category of the video file. Finally, the terminal device may select a suitable and effective preview image from the candidate pictures according to the pixel values of each frame of candidate pictures by using the color value template as a reference.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating an implementation of a preview determination method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating an implementation manner of determining pixel values of candidate pictures in a preview determination method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a preview determination apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
The preview determination method provided by the embodiment of the present application may be applied to terminal devices such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and the like, and the embodiment of the present application does not limit the specific type of the terminal device.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a preview determination method according to an embodiment of the present application, where the method includes the following steps:
s101, selecting a preset number of frame candidate pictures from a video file by the terminal equipment.
In an application, the video file generally includes a plurality of frames of video pictures, and each frame of video picture can be used as one of the candidate pictures. The preset number of frames may be set according to actual conditions, and is not limited. Illustratively, the preset number of frames may be five to eight frames.
In an embodiment, the preset number of frames may also be changed according to the number of frames of the video pictures in the video file. Illustratively, the terminal device may perform random downsampling on the video file every preset number of frames, where the number of the obtained candidate pictures is the preset number of frames. It is understood that the larger the number of frames in the video picture, the corresponding increase in the preset number of frames will occur.
Specifically, if the number of frames of the video picture is a, and random downsampling is performed on the video file to randomly select a candidate frame of picture every other B frames, the preset number of frames will be changed due to the values of a and B. Therefore, the terminal equipment can flexibly and reasonably determine the number of the candidate pictures from the video file.
In another embodiment, the predetermined number of frames may be a predetermined fixed value. That is, the terminal device directly selects the candidate pictures with the preset number of frames randomly from the video pictures.
The video file may be stored in a designated storage path of the terminal device in advance, or may be acquired from a network or other devices through data connection, which is not limited herein.
However, when the terminal device acquires a video file from a network or other device through a data connection, a preset number of frames of video pictures received in advance may be determined as candidate pictures.
It should be noted that, when data transmission is performed on a video file, video pictures are generally transmitted frame by frame according to the playing time sequence. However, during the transmission process, data loss or confusion may occur, so that the video picture that the terminal device just started to receive is not the multi-frame video picture that the video file just started to play. Therefore, for the video file acquired by the data connection mode, the video pictures of the preset number of frames received in advance can be directly determined as the candidate pictures. Furthermore, the terminal equipment does not need to randomly select after downloading the whole video file, and the processing efficiency of the terminal equipment is improved.
S102, the terminal equipment determines a color value template of the video file according to the video category of the video file.
In application, the video category includes, but is not limited to, a horror category, an emotion category, a suspicion category, and the like. In this embodiment, the type of video category is not limited. Among them, in different video categories, the video pictures they contain are usually inclined to different theme colors.
For example, when a movie or television work is shot, in order to better respond to a theme, a theme color of a background is generally set in a climax part of the movie or television work. For example, horror videos usually use a cold color system as a background subject color, so that a shot picture can better make a user feel nearby when the user watches the picture. Based on this, different video categories can be considered, typically with different theme colors. That is, the video picture corresponding to the pixel value which is the same as or close to the theme color can be considered, and is usually the picture containing the key information in the video file.
Generally, horror videos generally have a theme color with a cold color system as a background, and love videos generally have a theme color with a warm color system as a background. Based on the method, the terminal device can store the theme colors respectively corresponding to different video categories and the color value templates respectively corresponding to each theme color in advance. Based on the method, after the terminal equipment determines the video category, the corresponding color value template can be determined directly based on the video category and the stored corresponding relation. The color value template corresponding to the theme color can be determined according to a color value comparison table disclosed on the network.
When each theme color corresponds to a color value range instead of a specific numerical value, the terminal device can also process the color value range to obtain a color value template corresponding to the theme color. For example, the terminal device may determine, as the color value template, a color value average value of a color value range corresponding to the theme color, so that the determined color value template is more suitable as a reference. For example, the color value template may correspond to a numerical value of 122.
S103, the terminal equipment determines a preview of the video file from the candidate pictures according to the color value template and the pixel values of the candidate pictures.
In application, for any candidate picture, when the pixel value of the candidate picture is close to or equal to the color value template, the terminal device may determine the candidate picture as a preview.
Specifically, the terminal device may calculate an absolute value of a difference between a pixel value of the candidate picture and the color value template. And then, for the candidate pictures, determining a target candidate picture with the minimum absolute value of the difference value between the candidate picture and the color value template as a preview of the video file.
It is to be added that, when the number of required preview images is 1, the target candidate picture with the smallest absolute value of the difference value may be determined as the preview image. When the number of the required preview images is N, N target candidate pictures with small absolute values may be determined as the preview images from small to large in sequence.
The color value template is determined based on the video category corresponding to the video file, and therefore, when the pixel value of the candidate picture is equal to or close to the color value template, it can be considered that the background of the candidate picture is more likely to belong to the background corresponding to the climax part in the video file. That is, the candidate picture belongs to one of the multiple frames of video pictures corresponding to the climax part in the video file. Therefore, when the target candidate picture with the smallest absolute value is determined as the preview picture, the preview picture can better show key information in the video file, and the preview effect of the preview picture is further improved.
The method comprises the steps of selecting a preset number of frames of candidate pictures from a video file and determining a preview picture from the candidate pictures, wherein the step of selecting a preset number of frames of candidate pictures from the video file and determining the preview picture from the candidate pictures is performed again if the absolute value of the difference value between a target candidate picture and a color value template is greater than a preset value.
In application, the preset value may be preset, which is not limited in this respect. It can be understood that, when the color value template is 122, it may be determined that the content included in the target candidate picture is richer as the pixel value of the target candidate picture is closer to 122 (that is, the absolute value of the difference is lower). If the pixel value of the target candidate picture is far from 122 (i.e., the absolute value of the difference is larger), it can be determined that the target candidate picture contains less content. For example, the closer the pixel value of the target candidate picture is to 255, the target candidate picture is over-exposed; the closer the pixel value of the target candidate picture is to 0, the target candidate picture is too dark.
Based on this, for the target candidate picture that is overexposed or too dark, although the absolute value of the difference value of the target candidate picture is minimum, it still does not satisfy the requirement. Therefore, the terminal device may repeatedly execute the above steps S101-S103 until a target candidate picture satisfying the requirement is obtained.
In this embodiment, the terminal device may first obtain candidate pictures of a preset number of frames from the video file; and then, determining a color value template of the video file according to the video category of the video file. Finally, the terminal device may select a suitable and effective preview image from the candidate pictures according to the pixel values of each frame of candidate pictures by using the color value template as a reference.
In an embodiment, since the candidate picture includes a plurality of pixels, each pixel has a pixel value. Therefore, before determining the preview image, the terminal device needs to process each pixel point of the candidate image to obtain a pixel value that can be used for representing the whole pixel point information of the candidate image. Specifically, referring to fig. 2, the terminal device further needs to process the candidate picture in the manners of S201 to S203 to obtain the pixel value of the candidate picture. The details are as follows:
s201, aiming at any frame of candidate picture, the terminal equipment determines the pixel value of each pixel point in the candidate picture.
In application, the pixel values of the pixel points generally include a red pixel value, a green pixel value, and a blue pixel value. I.e., RGB pixel values. For a plurality of pixel values included in the pixel point, the terminal device may calculate an average value of the plurality of pixel values as the pixel value of the pixel point.
For example, for a pixel point a in the candidate picture, the RGB pixel values of the pixel point a may be converted into hexadecimal values respectively. For example, the hexadecimal color code of the RGB pixel value of the pixel a may be (255, 180, 0), and the pixel value of the pixel a is (255+180+0)/3 ═ 145.
Or, in another embodiment, the terminal device may further determine weights corresponding to the red pixel value, the green pixel value, and the blue pixel value according to the video category; and then, aiming at any pixel point in the candidate picture, determining the weighted sum of the red pixel value, the green pixel value and the blue pixel value corresponding to the pixel point as the pixel value of the pixel point.
It should be noted that, for different video categories, the weights corresponding to the red pixel value, the green pixel value, and the blue pixel value may be preset and stored in the terminal device, which is not limited to this.
It should be added that the weights corresponding to the red pixel value, the green pixel value and the blue pixel value may also be randomly set, and each randomly set weight should conform to normal distribution, so as to avoid interference caused by human subjective factors.
S202, the terminal device calculates average pixel values of all pixel points in the candidate picture.
S203, the terminal device determines the average pixel value of all pixel points in the candidate picture as the pixel value of the candidate picture.
In application, for a frame of video picture, the average pixel value in the video picture can generally reflect the pixel information of the whole video picture. Therefore, after the pixel value of each pixel point under the candidate picture is obtained, the terminal device may calculate an average pixel value of all pixel points as the pixel value of the candidate picture.
In another embodiment, when obtaining the candidate picture, the terminal device may further crop the candidate picture to obtain a cropped candidate picture. Thereafter, the above S201 to S203 are performed on the clipping candidate pictures. The purpose of clipping the candidate picture is as follows: and reducing the noise information in the candidate picture to obtain a more accurate average pixel value.
It is understood that for a frame of candidate picture, its main recorded video picture information is generally distributed in the center area of the candidate picture. That is, in the candidate picture, more pixel points closer to the boundary of the candidate picture may carry only noise information. Therefore, in order to reduce noise information of the candidate picture, when calculating the pixel values of the candidate picture, the candidate picture may be cropped first.
The cropping mode may be to crop a target area close to the boundary in the candidate picture. The target area may be an area enclosed by a boundary and a boundary line spaced from the boundary by a target distance. The target distance may be set according to actual conditions, which is not limited.
Referring to fig. 3, fig. 3 is a block diagram of a preview determination apparatus according to an embodiment of the present application. The preview determination apparatus in this embodiment includes modules for executing the steps in the embodiments corresponding to fig. 1 to fig. 2. Please refer to fig. 1 to 2 and fig. 1 to 2 for the corresponding embodiments. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 3, the preview determination apparatus 300 may include: a selecting module 310, a color value template determining module 320, and a preview determination module 330, wherein:
the selecting module 310 is configured to select a preset number of candidate pictures from the video file.
And the color value template determining module 320 is configured to determine a color value template of the video file according to the video category of the video file.
And the preview image determining module 330 is configured to determine a preview image of the video file from the candidate pictures according to the color value template and the pixel values of the candidate pictures.
In one embodiment, the selecting module 310 is further configured to:
and carrying out random downsampling processing on the video file to obtain the candidate pictures with the preset number of frames.
In an embodiment, the color value template determination module 320 is further configured to:
determining a theme color corresponding to the video file according to the video category of the video file; and determining the color value template as the average value of the color values of the color value range corresponding to the theme color.
In one embodiment, the overview map determining apparatus 300 further includes:
and the pixel value determining module is used for determining the pixel value of each pixel point in the candidate picture aiming at any frame of candidate picture.
The calculation module is used for calculating the average pixel value of all pixel points in the candidate picture;
and the candidate picture pixel value determining module is used for determining the average pixel value of all the pixel points in the candidate picture as the pixel value of the candidate picture.
In one embodiment, the pixel values include a red pixel value, a green pixel value, and a blue pixel value; the pixel value determining module of the pixel point is further configured to:
determining weights corresponding to the red pixel value, the green pixel value and the blue pixel value according to the video category; and determining the weighted sum of the red pixel value, the green pixel value and the blue pixel value corresponding to the pixel point as the pixel value of the pixel point aiming at any pixel point in the candidate picture.
In an embodiment, the preview determination module 330 is further configured to:
determining the absolute value of the difference value between the pixel value of the candidate picture and the color value template; and determining the target candidate picture with the minimum absolute value of the difference value between the candidate picture and the color value template as a preview of the video file.
In an embodiment, the preview determination module 330 is further configured to:
and if the absolute value of the difference value between the target candidate picture and the color value template is greater than the preset value, selecting the candidate pictures with the preset number of frames from the video file again, and determining the preview picture from the candidate pictures.
It should be understood that, in the structural block diagram of the preview determination apparatus shown in fig. 3, each module is used to execute each step in the embodiment corresponding to fig. 1 to fig. 2, and each step in the embodiment corresponding to fig. 1 to fig. 2 has been explained in detail in the above embodiment, specifically please refer to the relevant description in the embodiments corresponding to fig. 1 to fig. 2 and fig. 1 to fig. 2, and details thereof are not repeated here.
Fig. 4 is a block diagram of a terminal device according to an embodiment of the present application. As shown in fig. 4, the terminal device 400 of this embodiment includes: a processor 410, a memory 420, and a computer program 430, such as a program for a preview determination method, stored in the memory 420 and executable on the processor 410. The processor 410, when executing the computer program 430, implements the steps in the various embodiments of the preview determination methods described above, such as S101 to S103 shown in fig. 1. Alternatively, the processor 410 executes the computer program 430 to implement the functions of the modules in the embodiment corresponding to fig. 3, for example, the functions of the modules 310 to 330 shown in fig. 3, and refer to the related description in the embodiment corresponding to fig. 3.
Illustratively, the computer program 430 may be divided into one or more modules, and the one or more modules are stored in the memory 420 and executed by the processor 410 to implement the preview image determination method provided by the embodiments of the present application. One or more of the modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 430 in the terminal device 400. For example, the computer program 430 may implement the preview determination method provided by the embodiment of the present application.
The processor 410 may be a central processing unit, but may also be other general purpose processors, digital signal processors, application specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 420 may be an internal storage unit of the terminal device 400, such as a hard disk or a memory of the terminal device 400. The memory 420 may also be an external storage device of the terminal device 400, such as a plug-in hard disk, a smart memory card, a flash memory card, etc. provided on the terminal device 400. Further, the memory 420 may also include both an internal storage unit of the terminal device 400 and an external storage device.
The embodiment of the present application provides a computer-readable storage medium, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the preview image determining method in the above embodiments.
The embodiment of the present application provides a computer program product, which when running on a terminal device, enables the terminal device to execute the preview image determining method in the foregoing embodiments.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A preview determination method, the method comprising:
selecting a preset number of frame candidate pictures from a video file;
determining a color value template of the video file according to the video category of the video file;
and determining a preview of the video file from the candidate pictures according to the color value template and the pixel values of the candidate pictures.
2. The method of claim 1, wherein the selecting a preset number of frame candidate pictures from a video file comprises:
and carrying out random downsampling processing on the video file to obtain the candidate pictures of the preset number of frames.
3. The method of claim 1, wherein determining the color value template for the video file based on the video category of the video file comprises:
determining a theme color corresponding to the video file according to the video category of the video file;
and determining the color value average value of the color value range corresponding to the theme color as the color value template.
4. The method of claim 1, further comprising, prior to said determining a preview image of the video file from the candidate pictures based on the color value template and pixel values of the candidate pictures:
determining the pixel value of each pixel point in the candidate picture aiming at any frame of the candidate picture;
calculating the average pixel value of all pixel points in the candidate picture;
and determining the average pixel value of all pixel points in the candidate picture as the pixel value of the candidate picture.
5. The method of claim 4, wherein the pixel values comprise red, green, and blue pixel values; the determining the pixel value of each pixel point in the candidate picture includes:
determining weights corresponding to the red pixel value, the green pixel value and the blue pixel value according to the video category;
and aiming at any pixel point in the candidate picture, determining the weighted sum of the red pixel value, the green pixel value and the blue pixel value corresponding to the pixel point as the pixel value of the pixel point.
6. The method of any of claims 1-5, wherein determining the preview of the video file from the candidate pictures according to the color value template and the pixel values of the candidate pictures comprises:
determining an absolute value of a difference value between a pixel value of the candidate picture and the color value template;
and determining a target candidate picture with the minimum absolute value of the difference value between the candidate picture and the color value template as a preview of the video file.
7. The method of claim 6, wherein determining the preview of the video file from the candidate pictures based on the color value template and pixel values of the candidate pictures further comprises:
and if the absolute value of the difference value between the target candidate picture and the color value template is greater than a preset value, selecting a preset number of frames of candidate pictures from the video file again, and determining the preview picture from the candidate pictures.
8. A preview determination apparatus, the apparatus comprising:
the selection module is used for selecting a preset number of frame candidate pictures from the video file;
the color value template determining module is used for determining a color value template of the video file according to the video category of the video file;
and the preview image determining module is used for determining the preview image of the video file from the candidate pictures according to the color value template and the pixel values of the candidate pictures.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210410425.4A CN114915831B (en) | 2022-04-19 | 2022-04-19 | Preview determination method, device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210410425.4A CN114915831B (en) | 2022-04-19 | 2022-04-19 | Preview determination method, device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114915831A true CN114915831A (en) | 2022-08-16 |
CN114915831B CN114915831B (en) | 2024-08-09 |
Family
ID=82765472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210410425.4A Active CN114915831B (en) | 2022-04-19 | 2022-04-19 | Preview determination method, device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114915831B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030061612A1 (en) * | 2001-09-26 | 2003-03-27 | Lg Electronics Inc. | Key frame-based video summary system |
US20040197071A1 (en) * | 2003-04-01 | 2004-10-07 | Microsoft Corporation | Generating visually representative video thumbnails |
CN103338408A (en) * | 2013-05-31 | 2013-10-02 | 东莞宇龙通信科技有限公司 | Method, system and mobile terminal for selecting video preview frames |
CN108875619A (en) * | 2018-06-08 | 2018-11-23 | Oppo广东移动通信有限公司 | Method for processing video frequency and device, electronic equipment, computer readable storage medium |
CN109388721A (en) * | 2018-10-18 | 2019-02-26 | 百度在线网络技术(北京)有限公司 | The determination method and apparatus of cover video frame |
CN111711771A (en) * | 2020-05-20 | 2020-09-25 | 北京奇艺世纪科技有限公司 | Image selection method and device, electronic equipment and storage medium |
CN112784110A (en) * | 2021-01-26 | 2021-05-11 | 北京嘀嘀无限科技发展有限公司 | Key frame determination method and device, electronic equipment and readable storage medium |
CN113343033A (en) * | 2021-06-29 | 2021-09-03 | 平安普惠企业管理有限公司 | Video searching method and device, computer equipment and storage medium |
CN113627363A (en) * | 2021-08-13 | 2021-11-09 | 百度在线网络技术(北京)有限公司 | Video file processing method, device, equipment and storage medium |
-
2022
- 2022-04-19 CN CN202210410425.4A patent/CN114915831B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030061612A1 (en) * | 2001-09-26 | 2003-03-27 | Lg Electronics Inc. | Key frame-based video summary system |
US20040197071A1 (en) * | 2003-04-01 | 2004-10-07 | Microsoft Corporation | Generating visually representative video thumbnails |
CN103338408A (en) * | 2013-05-31 | 2013-10-02 | 东莞宇龙通信科技有限公司 | Method, system and mobile terminal for selecting video preview frames |
CN108875619A (en) * | 2018-06-08 | 2018-11-23 | Oppo广东移动通信有限公司 | Method for processing video frequency and device, electronic equipment, computer readable storage medium |
CN109388721A (en) * | 2018-10-18 | 2019-02-26 | 百度在线网络技术(北京)有限公司 | The determination method and apparatus of cover video frame |
CN111711771A (en) * | 2020-05-20 | 2020-09-25 | 北京奇艺世纪科技有限公司 | Image selection method and device, electronic equipment and storage medium |
CN112784110A (en) * | 2021-01-26 | 2021-05-11 | 北京嘀嘀无限科技发展有限公司 | Key frame determination method and device, electronic equipment and readable storage medium |
CN113343033A (en) * | 2021-06-29 | 2021-09-03 | 平安普惠企业管理有限公司 | Video searching method and device, computer equipment and storage medium |
CN113627363A (en) * | 2021-08-13 | 2021-11-09 | 百度在线网络技术(北京)有限公司 | Video file processing method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114915831B (en) | 2024-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111698553B (en) | Video processing method and device, electronic equipment and readable storage medium | |
CN110378846B (en) | Method, device, medium and electronic equipment for processing image buffing | |
WO2019011195A1 (en) | Regulation method, terminal equipment and non-transitory computer-readable storage medium for automatic exposure control of region of interest | |
US20220417417A1 (en) | Content Operation Method and Device, Terminal, and Storage Medium | |
CN110930467A (en) | Image processing method, electronic device and readable storage medium | |
CN113099132B (en) | Video processing method, video processing apparatus, electronic device, storage medium, and program product | |
CN109120856B (en) | Camera shooting method and device | |
CN110858388B (en) | Method and device for enhancing video image quality | |
US10079981B2 (en) | Image dynamic range adjustment method, terminal, and storage medium | |
CN112437237B (en) | Shooting method and device | |
CN113781319A (en) | HDR video conversion method, device, equipment and computer storage medium | |
CN112911366B (en) | Saturation adjustment method and device and display equipment | |
CN112887639A (en) | Image processing method, device, system, electronic device and storage medium | |
CN111179158A (en) | Image processing method, image processing apparatus, electronic device, and medium | |
CN114915831B (en) | Preview determination method, device, terminal equipment and storage medium | |
CN109308690B (en) | Image brightness balancing method and terminal | |
CN114092359B (en) | Method and device for processing screen pattern and electronic equipment | |
CN112446848A (en) | Image processing method and device and electronic equipment | |
CN108683842B (en) | Panoramic camera and method and device for outputting panoramic video | |
CN110941413B (en) | Display screen generation method and related device | |
CN109951634B (en) | Image synthesis method, device, terminal and storage medium | |
US20190007666A1 (en) | Image details processing method, apparatus, terminal, and storage medium | |
CN113194267B (en) | Image processing method and device and photographing method and device | |
CN114640883A (en) | Action processing method, client, server, electronic device and storage medium | |
CN114187455A (en) | Picture comparison method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |