Cover determination method, device, computer equipment and storage medium

By combining image quality and content reference information, and using Laplacian edge detection and image quality models to determine the video cover, the problem of single cover content in the existing technology is solved, and the accuracy of the cover and user experience are improved.

CN113407774BActive Publication Date: 2024-10-11GUANGZHOU KUGOU COMP TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202110733011.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-30
Publication Date
2024-10-11
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

Existing video cover determination methods usually only consider image quality, resulting in a single cover content that cannot accurately express the video content, reducing the accuracy of the cover.

Method used

By obtaining the quality reference information and content reference information of multi-frame images in the video, combined with Laplacian edge detection and image quality model, the video cover is determined to ensure that the cover is not only of high image quality but also rich in content.

Benefits of technology

The accuracy of the video cover is improved, allowing the cover to express the video content more accurately and enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113407774B_ABST
    Figure CN113407774B_ABST
Patent Text Reader

Abstract

The present application discloses a cover determination method, device, computer equipment and storage medium, which belongs to the field of Internet technology. The method includes: in response to a request for determining the cover of a video, respectively obtaining quality reference information of multiple frames of images in the video, respectively obtaining content reference information of the multiple frames of images, and determining the cover of the video from the multiple frames of images based on the quality reference information and content reference information of the multiple frames of images. In an embodiment of the present application, when determining the cover of a video, not only the quality reference information of the image is considered, but also the content reference information of the image is considered. Since the content reference information can indicate the content richness of the corresponding image, the determined cover not only has a high image quality, but also has richer image content, so that the determined cover can accurately express the video content, thereby improving the accuracy of determining the cover.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a cover determination method, device, computer equipment and storage medium. Background Art

[0002] With the continuous development of Internet technology, the emergence of various videos has greatly enriched people's lives. In order to enable users to know the video content faster and more accurately or to increase the click-through rate of the video, it is usually necessary to set a corresponding video cover for each video.

[0003] At present, the cover determination method is usually: obtain multiple frames of images in the video, obtain quality reference information of each frame of image, the quality reference information is used to indicate the image quality of the corresponding image, select the image with the highest quality reference information from the multiple frames of image, and determine the image with the highest quality reference information as the cover of the video.

[0004] However, the cover determined by the above process may have a single content, such as a solid color image, which cannot accurately express the video content, thereby reducing the accuracy of determining the cover. Summary of the invention

[0005] The embodiments of the present application provide a cover determination method, apparatus, computer equipment and storage medium, which can improve the accuracy of the determined cover. The technical solution is as follows:

[0006] In one aspect, a cover determination method is provided, the method comprising:

[0007] In response to a request for determining a cover of a video, respectively obtaining quality reference information of multiple frames of images in the video, the quality reference information being used to indicate image quality of corresponding images;

[0008] Respectively obtaining content reference information of the multiple frames of images, where the content reference information is used to indicate the richness of the image content of the corresponding images;

[0009] Based on the quality reference information and content reference information of the multiple frames of images, a cover of the video is determined from the multiple frames of images.

[0010] In some embodiments, respectively acquiring the content reference information of the multiple frames of images includes:

[0011] For any frame image in the multiple frame images, Laplace edge detection is performed on the image to obtain an edge detection image;

[0012] Based on the pixel values ​​of the edge detection image, a variance value of the edge detection image is determined, and the variance value is determined as the content reference information.

[0013] In some embodiments, respectively obtaining quality reference information of multiple frames of images in the video includes:

[0014] For any frame image in the multiple frames of images, the image is input into an image quality model, and the image quality of the image is predicted by the image quality model to obtain quality reference information of the image. The image quality model is used to predict the image quality of the image.

[0015] In some embodiments, based on the quality reference information and the content reference information of the multiple frames of images, determining the cover of the video from the multiple frames of images includes:

[0016] A first image is selected from the multiple frames of images. If the content reference information of the first image is greater than the content score threshold, the first image is determined as the cover of the video. The first image is the image with the highest quality reference information among the multiple frames of images.

[0017] In some embodiments, after selecting the first image from the multiple frames of images, the method further includes:

[0018] If the content reference information of the first image is less than or equal to the content score threshold, selecting a second image from the multiple frames of images, the second image being an image with the highest quality reference information among the multiple frames of images except the first image;

[0019] If the content reference information of the second image is greater than the content score threshold, the second image is determined as the cover of the video.

[0020] In some embodiments, based on the quality reference information and the content reference information of the multiple frames of images, determining the cover of the video from the multiple frames of images includes:

[0021] If there is no image in the multiple frames of images whose content reference information is greater than the content score threshold, the first image is determined as the cover of the video.

[0022] In one aspect, a cover determination device is provided, the device comprising:

[0023] A first acquisition module, configured to respectively acquire quality reference information of multiple frames of images in the video in response to a request for determining a cover of the video, wherein the quality reference information is used to indicate image quality of corresponding images;

[0024] A second acquisition module is used to respectively acquire content reference information of the multiple frames of images, where the content reference information is used to indicate the richness of the image content of the corresponding image;

[0025] The determination module is used to determine the cover of the video from the multiple frames of images based on the quality reference information and content reference information of the multiple frames of images.

[0026] In some embodiments, the second acquisition module is used to:

[0027] For any frame image in the multiple frame images, Laplace edge detection is performed on the image to obtain an edge detection image;

[0028] Based on the pixel values ​​of the edge detection image, a variance value of the edge detection image is determined, and the variance value is determined as the content reference information.

[0029] In some embodiments, the first acquisition module is used to:

[0030] For any frame image in the multiple frames of images, the image is input into an image quality model, and the image quality of the image is predicted by the image quality model to obtain quality reference information of the image. The image quality model is used to predict the image quality of the image.

[0031] In some embodiments, the determining module is used to:

[0032] A first image is selected from the multiple frames of images. If the content reference information of the first image is greater than the content score threshold, the first image is determined as the cover of the video. The first image is the image with the highest quality reference information among the multiple frames of images.

[0033] In some embodiments, the determining module is further configured to:

[0034] If the content reference information of the first image is less than or equal to the content score threshold, selecting a second image from the multiple frames of images, the second image being an image with the highest quality reference information among the multiple frames of images except the first image;

[0035] If the content reference information of the second image is greater than the content score threshold, the second image is determined as the cover of the video.

[0036] In some embodiments, the determining module is used to:

[0037] If there is no image in the multiple frames of images whose content reference information is greater than the content score threshold, the first image is determined as the cover of the video.

[0038] On the one hand, a computer device is provided, which includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the above-mentioned cover determination method.

[0039] On the one hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the above-mentioned cover determination method.

[0040] On the one hand, a computer program product is provided, which includes a computer program code, which is stored in a computer-readable storage medium. A processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device executes the above-mentioned cover determination method.

[0041] The technical solution provided in the embodiment of the present application not only considers the quality reference information of the image, but also considers the content reference information of the image when determining the cover of the video. Since the content reference information can indicate the content richness of the corresponding image, the determined cover not only has high image quality, but also has richer image content, so that the determined cover can accurately express the video content, thereby improving the accuracy of determining the cover. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 It is a schematic diagram of an implementation environment of a cover determination method provided in an embodiment of the present application;

[0044] Figure 2 is a flow chart of a cover determination method provided by an embodiment of the present application;

[0045] Figure 3 is a flow chart of a cover determination method provided by an embodiment of the present application;

[0046] Figure 4 is a structural schematic diagram of a cover determination device provided in an embodiment of the present application;

[0047] Figure 5 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0048] Figure 6 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0050] Figure 1Schematic diagram of an implementation environment of a cover determination method provided in an embodiment of the present application. Figure 1 , the implementation environment includes: a terminal 101 and a server 102.

[0051] The terminal 101 may be at least one of a smart phone, a smart watch, a desktop computer, a laptop, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer. The terminal 101 may run various types of applications, such as video applications, social applications, and live broadcast applications. The terminal 101 has a communication function and can access the Internet. The terminal 101 may generally refer to one of a plurality of terminals. This embodiment is only illustrated by taking the terminal 101 as an example. Those skilled in the art may know that the number of the above terminals may be more or less.

[0052] The server 102 can be an independent physical server, or a server cluster or distributed file system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server 102 and the terminal 101 can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application. Optionally, the number of the above-mentioned servers 102 can be more or less, which is not limited in the embodiments of the present application. Of course, the server 102 can also include other functional servers to provide more comprehensive and diversified services.

[0053] In some embodiments, the cover determination method provided by the present application is jointly executed by the terminal 101 and the server 102, and the corresponding process is: the user can log in to video applications, social applications, live broadcast applications and other applications by operating on the terminal 101, and publish videos in the above applications. Accordingly, the terminal 101 responds to the video publishing operation and triggers the sending of a cover determination request for the video to the server 102. After receiving the cover determination request for the video, the server 102 uses the cover determination method provided by the present application to determine the cover of the video.

[0054] Figure 2 This is a flow chart of a cover determination method provided in an embodiment of the present application. This embodiment is described with the server as the execution subject. Figure 2 , the embodiment comprises:

[0055] 201. In response to a request to determine a cover for a video, the server obtains quality reference information of multiple frames of images in the video, where the quality reference information is used to indicate image quality of corresponding images.

[0056] In an embodiment of the present application, the cover determination request is used to request to determine the cover of the video. In some embodiments, the cover determination request is triggered by the terminal. For example, when a user wants to publish a video in any application, a publishing operation is performed on the video. Then, in response to the publishing operation on the video, the terminal triggers a process of sending a cover determination request to the server.

[0057] In an embodiment of the present application, the quality reference information is a quality score of the image, and the quality score is used to indicate the image quality of the corresponding image. Among them, the image quality includes image fidelity and image intelligibility. Image fidelity is used to indicate the degree of deviation between the current image and the standard image, and image intelligibility is used to indicate the degree to which a person or a machine can extract relevant feature information from the current image. Optionally, the image quality is reflected in aspects such as the image composition ratio, color contrast, color saturation, and light-dark contrast. For example, the larger the quality reference information of an image, the better the image quality of the image, that is, the better the effect corresponding to the image composition ratio, color contrast, color saturation, and light-dark contrast.

[0058] 202. The server obtains content reference information of the multiple frames of images respectively, where the content reference information is used to indicate the richness of the image content of the corresponding image.

[0059] In the embodiment of the present application, the content reference information is a content score of the image, and the content score is used to indicate the richness of the image content of the corresponding image. For example, the larger the content reference information, the richer the image content of the image.

[0060] 203. The server determines the cover of the video from the multiple frames of images based on the quality reference information and content reference information of the multiple frames of images.

[0061] In some embodiments, the server selects an image with high quality reference information and content reference information from the multiple frames of images based on the quality reference information and content reference information of the multiple frames of images, and determines the selected image as the cover of the video.

[0062] The technical solution provided in the embodiment of the present application not only considers the quality reference information of the image, but also considers the content reference information of the image when determining the cover of the video. Since the content reference information can indicate the content richness of the corresponding image, the determined cover not only has high image quality, but also has richer image content, so that the determined cover can accurately express the video content, thereby improving the accuracy of determining the cover.

[0063] In some embodiments, respectively acquiring the content reference information of the multiple frames of images includes:

[0064] For any frame image in the multiple frame images, Laplace edge detection is performed on the image to obtain an edge detection image;

[0065] Based on the pixel values ​​of the edge detection image, a variance value of the edge detection image is determined, and the variance value is determined as the content reference information.

[0066] In some embodiments, respectively obtaining quality reference information of multiple frames of images in the video includes:

[0067] For any frame image in the multiple frames of images, the image is input into an image quality model, and the image quality of the image is predicted by the image quality model to obtain quality reference information of the image. The image quality model is used to predict the image quality of the image.

[0068] In some embodiments, based on the quality reference information and the content reference information of the multiple frames of images, determining the cover of the video from the multiple frames of images includes:

[0069] A first image is selected from the multiple frames of images. If the content reference information of the first image is greater than the content score threshold, the first image is determined as the cover of the video. The first image is the image with the highest quality reference information among the multiple frames of images.

[0070] In some embodiments, after selecting the first image from the multiple frames of images, the method further includes:

[0071] If the content reference information of the first image is less than or equal to the content score threshold, selecting a second image from the multiple frames of images, the second image being an image with the highest quality reference information among the multiple frames of images except the first image;

[0072] If the content reference information of the second image is greater than the content score threshold, the second image is determined as the cover of the video.

[0073] In some embodiments, based on the quality reference information and the content reference information of the multiple frames of images, determining the cover of the video from the multiple frames of images includes:

[0074] If there is no image in the multiple frames of images whose content reference information is greater than the content score threshold, the first image is determined as the cover of the video.

[0075] Above Figure 2 The basic process of this application is shown below. The solution provided by this application is further described based on a specific implementation method. Figure 3This is a flow chart of a cover determination method provided in an embodiment of the present application. This embodiment is described with the server as the execution subject. Figure 3 , the embodiment comprises:

[0076] 301. In response to the request to determine the cover of the video, the server extracts frames of the video to obtain multiple frames of images of the video.

[0077] In some embodiments, in response to a request to determine a cover for a video, the server extracts a second number of frame images at intervals of a first number of frame images in the video, and multiple frame images of the video can be extracted.

[0078] The first number and the second number are both pre-set fixed numbers. For example, if the first number is 10 and the second number is 2, assuming that the video includes 100 frames of images, then 2 frames of images are extracted every 10 frames of images, and 20 frames of images can be extracted. In this way, by extracting frames from the video and performing the subsequent process of determining the cover based on the partial images obtained by the extraction, the processing content of the server is reduced, the processing speed of the server is improved, and the efficiency of determining the cover is improved.

[0079] It should be noted that the frame extraction process in step 301 is an optional step. In some embodiments, the server responds to a request for determining a cover for a video without executing the frame extraction process for the video. It only needs to execute step 302 based on multiple frames of the video, that is, all the frames of the video. For example, assuming that 10 frames of images can be extracted in 1 second, a 10-second video can extract 100 frames of images, and then perform a subsequent process of determining the cover based on the 100 frames of images obtained by extracting frames.

[0080] 302. The server obtains quality reference information of the multiple frames of images respectively, where the quality reference information is used to indicate image quality of corresponding images.

[0081] In an embodiment of the present application, the quality reference information is a quality score of the image, which is used to indicate the image quality of the corresponding image. In some embodiments, the quality reference information is obtained based on an image quality assessment (Image Quality Assessment, IQA), and image quality assessment is a method for evaluating the quality of an image. Optionally, the image quality assessment includes a full reference image quality assessment, a semi-reference image quality assessment, and a non-reference image quality assessment. Full reference image quality assessment refers to predicting the quality of an image with reference to the complete information of the image; semi-reference image quality assessment refers to predicting the quality of an image with reference to partial information of the image; and non-reference image quality assessment refers to predicting the quality of an image without reference to image information.

[0082] In some embodiments, for any frame image in the multiple frames of images, the server inputs the image into an image quality model, predicts the image quality of the image through the image quality model, and obtains quality reference information of the image. The image quality model is used to predict the image quality of the image.

[0083] The image quality model is used to predict the image quality of the image. In some embodiments, the image quality model is a deep learning model, which is an algorithm that gradually extracts higher-level features from the original input based on multiple processing layers containing complex structures or composed of multiple nonlinear transformations. For example, the image quality model can be a deep learning Basic Convolutional Neural Network (DBCNN), which is a reference-free image quality evaluation method based on deep learning.

[0084] Taking the image quality model as a deep convolutional neural network as an example, the image quality model includes an input layer, a convolution layer, a pooling layer, a fully connected layer and an output layer. Among them, the input layer is used to input the current image obtained by the server into the image quality model, and convert the input image into a digital matrix so that the image quality model can perform subsequent calculations; the convolution layer is used to perform convolution operations on the matrix generated by the input layer, and extract local features of the image based on the results of the convolution operation. The image quality model may include one or more convolution layers; the pooling layer is used to quantize the feature extraction values ​​obtained by the convolution layer to obtain a matrix with a smaller dimension, so as to further extract image features. The image quality model may include one or more pooling layers; the fully connected layer is used to integrate the extracted local features into complete image features through a weight matrix, and calculate the quality score of the image based on the complete image features; the output layer is used to obtain the quality score output by the fully connected layer, and output the quality score of the image as the quality reference information of the image.

[0085] The image quality model used in the embodiment of the present application is a trained model. In some embodiments, the server obtains multiple sample images and the average subjective scores (MOS) of the multiple sample images, and performs model training based on the multiple sample images and the average subjective scores of the multiple sample images to obtain an image quality model. Among them, the average subjective score refers to the score obtained by directly evaluating the image manually. Specifically, the training process of the image quality model includes: in the first iteration process, the multiple sample images are respectively input into the initial model to obtain the score training results of the first iteration process; based on the score training results of the first iteration process and the average subjective scores corresponding to the sample images, the loss function is determined, and based on the loss function, the model parameters in the initial model are adjusted; the model parameters adjusted in the first iteration are used as the model parameters of the second iteration, and the second iteration is performed; the above iteration process is repeated multiple times, and in the Nth process, the model parameters adjusted in the N-1th iteration are used as new model parameters to perform model training until the training meets the target conditions, and the model corresponding to the iteration process that meets the target conditions is obtained as the image quality model. Among them, N is a positive integer, and N is greater than 1. Optionally, the target condition satisfied by the training may be that the number of training iterations of the initial model reaches a target number, which may be a preset number of training iterations; or, the target condition satisfied by the training may be that the loss value meets a target threshold condition, such as a loss value less than 0.00001. This embodiment of the present application is not limited to this.

[0086] In some embodiments, the image quality model used in the embodiments of the present application is a deep bilinear model, which is composed of two convolutional neural networks, that is, it includes two feature extractors. In an optional embodiment, the two convolutional neural networks are used to process images under different distortion conditions, for example, the two convolutional neural networks are used to process synthetic distortion and real distortion, respectively, and the deep bilinear model can process synthetic distortion and real distortion at the same time. Optionally, the synthetic distortion and the real distortion are processed respectively by two convolutional neural networks in the deep bilinear model to obtain the features corresponding to the synthetic distortion and the features corresponding to the real distortion, and the two output features are bilinearly combined to obtain the combined features, and then the image quality of the image is predicted based on the combined features. Optionally, the process of bilinear combination is to weight the sum of the two features, or to weight the sum and average of the two features, or to take the product of the two features.

[0087] 303. The server obtains content reference information of the multiple frames of images respectively, where the content reference information is used to indicate the richness of the image content of the corresponding image.

[0088] In the embodiment of the present application, the content reference information is a content score of the image, and the content score is used to indicate the richness of the image content of the corresponding image.

[0089] In some embodiments, for any frame image in the multiple frames, the server performs Laplacian edge detection on the image to obtain an edge detection image, determines the variance value of the edge detection image based on the pixel value of the edge detection image, and determines the variance value as the content reference information.

[0090] In the embodiment of the present application, Laplace edge detection is a method for edge detection based on the Laplace operator, specifically, edge detection is performed using the second-order derivative of the image. The Laplace operator is used to measure the high-frequency components in the image, and the high-frequency components refer to the areas in the image where the brightness or grayscale changes dramatically. Among them, the number of high-frequency components is positively correlated with the richness of the image content, that is, the more high-frequency components the image includes, the richer the image content of the image. The detection of high-frequency components is mainly to detect the edge of the image, and the image edge refers to the detail edge included in the image. It should be noted that the number of detail edges included in the image is positively correlated with the number of high-frequency components, that is, the more detail edges included in the image, the more high-frequency components included in the image. Correspondingly, the number of detail edges included in the image is positively correlated with the richness of the image content, that is, the more detail edges included in the image, the richer the image content of the image.

[0091] In some embodiments, for any frame of the multiple frames, the server uses the following formula (1) to perform Laplace edge detection on the image.

[0092]

[0093] In the formula, x represents the horizontal direction; y represents the vertical direction; represents the second-order derivative; f is the pixel value of the pixel.

[0094] In the above embodiment, through Laplace edge detection, based on the pixel value changes of the image in the horizontal direction and the pixel value changes of the image in the vertical direction, the rapid changes of the pixel values ​​of the image can be detected. In this way, the distribution of the detailed edges included in the image can be detected, thereby determining the richness of the image content.

[0095] In some embodiments, the process by which the server determines the variance value of the edge detection image based on the pixel value of the edge detection image is as follows: the server obtains pixel values ​​of multiple pixels in the edge detection image, averages the pixel values ​​of the multiple pixels to obtain an average pixel value, determines the difference between the pixel value of each pixel and the average pixel value to obtain multiple differences, and determines the variance value of the image based on the sum of the squares of the multiple differences and the number of the multiple pixels.

[0096] Optionally, the server determines the variance value of the edge detection image based on the number of multiple pixel points included in the edge detection image, the pixel values ​​of the multiple pixel points, the average pixel value of the multiple pixel points and the following formula (2).

[0097]

[0098] Where D is the variance value of the edge detection image; E is the average pixel value of multiple pixels; n is the number of multiple pixels included in the edge detection image; x1, x2, ..., x n is the pixel value of the corresponding pixel.

[0099] The above process takes the example of first obtaining the quality score of the image and then obtaining the content score of the image. In other embodiments, the server may first obtain the content score of the image and then obtain the quality score of the image. The embodiment of the present application does not limit the execution order of step 302 and step 303.

[0100] In the embodiment of the present application, the Laplace operator is used to measure the high-frequency components in the image. In addition to referring to the quality score, the content score is also referred to, so that an image with both high quality score and high content score can be determined as the cover, so that the determined cover not only has good image quality but also rich image content, thereby improving the accuracy of determining the cover.

[0101] 304. The server determines the cover of the video from the multiple frames of images based on the quality reference information and content reference information of the multiple frames of images.

[0102] In some embodiments, after the server obtains the quality reference information and content reference information of multiple frames of images, it determines in order from high to low the content reference information of the corresponding images in the multiple frames of images whether the content reference information is greater than the content score threshold, until the image whose content reference information is greater than the content score threshold first is determined, and the determined image is determined as the cover of the video.

[0103] The content score threshold is a preset fixed threshold, such as 1300. The content score threshold is used to filter images based on content reference information. Images with content reference information greater than the content score threshold are images with richer content, while images with content reference information less than the content score threshold are images with lesser content. By setting the content score threshold, images can be filtered, thereby filtering out images with richer content.

[0104] In some embodiments, the server selects a first image from the multiple frames of images, and if the content reference information of the first image is greater than the content score threshold, the first image is determined as the cover of the video, and the first image is the image with the highest quality reference information among the multiple frames of images; if the content reference information of the first image is less than or equal to the content score threshold, a second image is selected from the multiple frames of images, and the second image is the image with the highest quality reference information among the multiple frames of images except the first image, and if the content reference information of the second image is greater than the content score threshold, the second image is determined as the cover of the video; if the content reference information of the second image is less than or equal to the content score threshold, the image with the highest quality reference information among the remaining images is determined, until the image whose content reference information is first greater than the content score threshold is determined, and the determined image is determined as the cover of the video.

[0105] In some embodiments, if there is no image in the multiple frames of images whose content reference information is greater than the content score threshold, the server determines the first image as the cover of the video.

[0106] In a specific example, suppose that 100 frames of images are obtained by extracting frames from a video, and the quality reference information (quality score) of the 100 frames of images is calculated using a deep convolutional neural network, which is recorded as Score1; the variance value is calculated using the Laplace operator, which is recorded as Score2; a threshold T (such as 1300) is set for Score2, and Score1 is screened using Score2 to determine the cover of the video. The specific screening process is: the image with the highest Score1 among the 100 frames of images is recorded as A, the image with the second highest Score1 is recorded as B, and the image with the third highest Score1 is recorded as C. First, it is determined whether the Score2 of image A is greater than the threshold T. If the Score2 of image A is greater than the threshold T, image A is determined as the cover; if the Score2 of image A is not greater than the threshold T, then based on the order of Score1 from high to low, it is determined whether the Score2 of the corresponding images is greater than the threshold T, until the image that is greater than the threshold T first is determined. If the Score2 of all images is not greater than the threshold T, the image with the highest Score1 (A) is selected and determined as the cover of the video.

[0107] The technical solution provided in the embodiment of the present application not only considers the quality reference information of the image, but also considers the content reference information of the image when determining the cover of the video. Since the content reference information can indicate the content richness of the corresponding image, the determined cover not only has high image quality, but also has richer image content, so that the determined cover can accurately express the video content, thereby improving the accuracy of determining the cover.

[0108] Figure 4 is a schematic diagram of a cover determination device provided in an embodiment of the present application, see Figure 4 , the device comprises:

[0109] A first acquisition module 401 is used to respectively acquire quality reference information of multiple frames of images in the video in response to a request for determining a cover of the video, where the quality reference information is used to indicate image quality of corresponding images;

[0110] A second acquisition module 402 is used to respectively acquire content reference information of the multiple frames of images, where the content reference information is used to indicate the richness of the image content of the corresponding image;

[0111] The determination module 403 is used to determine the cover of the video from the multiple frames of images based on the quality reference information and content reference information of the multiple frames of images.

[0112] The technical solution provided in the embodiment of the present application not only considers the quality reference information of the image, but also considers the content reference information of the image when determining the cover of the video. Since the content reference information can indicate the content richness of the corresponding image, the determined cover not only has high image quality, but also has richer image content, so that the determined cover can accurately express the video content, thereby improving the accuracy of determining the cover.

[0113] In some embodiments, the second acquisition module 402 is used to:

[0114] For any frame image in the multiple frame images, Laplace edge detection is performed on the image to obtain an edge detection image;

[0115] Based on the pixel values ​​of the edge detection image, a variance value of the edge detection image is determined, and the variance value is determined as the content reference information.

[0116] In some embodiments, the first acquisition module 401 is used to:

[0117] For any frame image in the multiple frames of images, the image is input into an image quality model, and the image quality of the image is predicted by the image quality model to obtain quality reference information of the image. The image quality model is used to predict the image quality of the image.

[0118] In some embodiments, the determination module 403 is used to:

[0119] A first image is selected from the multiple frames of images. If the content reference information of the first image is greater than the content score threshold, the first image is determined as the cover of the video. The first image is the image with the highest quality reference information among the multiple frames of images.

[0120] In some embodiments, the determination module 403 is further configured to:

[0121] If the content reference information of the first image is less than or equal to the content score threshold, selecting a second image from the multiple frames of images, the second image being an image with the highest quality reference information among the multiple frames of images except the first image;

[0122] If the content reference information of the second image is greater than the content score threshold, the second image is determined as the cover of the video.

[0123] In some embodiments, the determination module 403 is used to:

[0124] If there is no image in the multiple frames of images whose content reference information is greater than the content score threshold, the first image is determined as the cover of the video.

[0125] It should be noted that: the cover determination device provided in the above embodiment only uses the division of the above functional modules as an example when determining the cover. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the cover determination device provided in the above embodiment and the cover determination method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0126] The computer device mentioned in this application may be provided as a terminal. Figure 5 The structure block diagram of a terminal 500 provided by an exemplary embodiment of the present application is shown. The terminal 500 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 500 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0127] Typically, the terminal 500 includes a processor 501 and a memory 502 .

[0128] The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0129] The memory 502 may include one or more computer-readable storage media, which may be non-transitory. The memory 502 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 502 is used to store at least one program code, which is used to be executed by the processor 501 to implement the cover determination method provided in the method embodiment of the present application.

[0130] In some embodiments, the terminal 500 may also optionally include: a peripheral device interface 503 and at least one peripheral device. The processor 501, the memory 502 and the peripheral device interface 503 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 503 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 504, a display screen 505, a camera assembly 506, an audio circuit 507, a positioning assembly 508 and a power supply 509.

[0131] The peripheral device interface 503 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, the memory 502, and the peripheral device interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral device interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0132] The radio frequency circuit 504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 504 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 504 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 504 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0133] The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to collect touch signals on the surface or above the surface of the display screen 505. The touch signal can be input to the processor 501 as a control signal for processing. At this time, the display screen 505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 505 can be one, set on the front panel of the terminal 500; in other embodiments, the display screen 505 can be at least two, respectively set on different surfaces of the terminal 500 or in a folding design; in other embodiments, the display screen 505 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 500. Even, the display screen 505 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 505 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0134] The camera assembly 506 is used to capture images or videos. Optionally, the camera assembly 506 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 506 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0135] The audio circuit 507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 501 for processing, or input them into the radio frequency circuit 504 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 500. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 501 or the radio frequency circuit 504 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 507 may also include a headphone jack.

[0136] The positioning component 508 is used to locate the current geographical location of the terminal 500 to implement navigation or LBS (Location Based Service). The positioning component 508 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.

[0137] The power supply 509 is used to power various components in the terminal 500. The power supply 509 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 509 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0138] In some embodiments, the terminal 500 further includes one or more sensors 510 , including but not limited to: an acceleration sensor 511 , a gyroscope sensor 512 , a pressure sensor 513 , a fingerprint sensor 514 , an optical sensor 515 , and a proximity sensor 516 .

[0139] The acceleration sensor 511 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 500. For example, the acceleration sensor 511 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 501 can control the display screen 505 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 can also be used to collect game or user motion data.

[0140] The gyro sensor 512 can detect the body direction and rotation angle of the terminal 500, and the gyro sensor 512 can cooperate with the acceleration sensor 511 to collect the user's 3D actions on the terminal 500. The processor 501 can implement the following functions based on the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0141] The pressure sensor 513 can be set on the side frame of the terminal 500 and / or the lower layer of the display screen 505. When the pressure sensor 513 is set on the side frame of the terminal 500, it can detect the user's holding signal of the terminal 500, and the processor 501 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is set on the lower layer of the display screen 505, the processor 501 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0142] The fingerprint sensor 514 is used to collect the user's fingerprint, and the processor 501 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 514 can be set on the front, back, or side of the terminal 500. When a physical button or a manufacturer logo is set on the terminal 500, the fingerprint sensor 514 can be integrated with the physical button or the manufacturer logo.

[0143] The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 can control the display brightness of the display screen 505 according to the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the display screen 505 is increased; when the ambient light intensity is low, the display brightness of the display screen 505 is reduced. In another embodiment, the processor 501 can also dynamically adjust the shooting parameters of the camera component 506 according to the ambient light intensity collected by the optical sensor 515.

[0144] The proximity sensor 516, also called a distance sensor, is usually disposed on the front panel of the terminal 500. The proximity sensor 516 is used to collect the distance between the user and the front of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually decreasing, the processor 501 controls the display screen 505 to switch from the screen-on state to the screen-off state; when the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually increasing, the processor 501 controls the display screen 505 to switch from the screen-off state to the screen-on state.

[0145] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the terminal 500, and the terminal 500 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0146] The computer device provided in the embodiment of the present application may be provided as a server. Figure 6 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 601 and one or more memories 602, wherein the memory 602 stores at least one program code, and the at least one program code is loaded and executed by the processor 601 to implement the cover determination method provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.

[0147] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a program code, and the program code can be executed by a processor in a terminal or a server to complete the cover determination method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (Compact-Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0148] A person skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be accomplished by hardware or by hardware related to a program code, and the program may be stored in a computer-readable storage medium, and the storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc.

[0149] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A cover determination method, characterized in that: The method comprises: In response to a request for determining a cover of a video, for any frame of images in the multiple frames of images of the video, input the image into an image quality model, predict the image quality of the image by using the image quality model, and obtain quality reference information of the image; The image quality model is a deep bilinear model, which is composed of two convolutional neural networks. The two convolutional neural networks are used to process images under synthetic distortion and real distortion, respectively, to obtain features corresponding to the synthetic distortion and features corresponding to the real distortion, and to perform bilinear combination on the two output features to obtain combined features, and then predict the image quality of the image based on the combined features; the quality reference information is a quality score of the image, and the quality score is used to indicate the image quality of the corresponding image; the image quality includes image fidelity and image intelligibility, the image fidelity is used to indicate the degree of deviation between the current image and the standard image, and the image intelligibility is used to indicate the degree to which a person or a machine can extract relevant feature information from the current image; For any frame image among the multiple frames of images, performing Laplace edge detection on the image to obtain an edge detection image; Determine a variance value of the edge detection image based on pixel values ​​of the edge detection image, and determine the variance value as content reference information, wherein the content reference information is used to indicate the richness of image content of the corresponding image; Based on the quality reference information and content reference information of the multiple frames of images, a cover of the video is determined from the multiple frames of images.

2. The method according to claim 1, characterized in that The determining the cover of the video from the multiple frames of images based on the quality reference information and the content reference information of the multiple frames of images comprises: A first image is selected from the multiple frames of images. If content reference information of the first image is greater than a content score threshold, the first image is determined as the cover of the video. The first image is the image with the highest quality reference information among the multiple frames of images.

3. The method according to claim 2, characterized in that After selecting the first image from the multiple frames of images, the method further includes: If the content reference information of the first image is less than or equal to the content score threshold, selecting a second image from the multiple frames of images, the second image being an image with the highest quality reference information among the multiple frames of images except the first image; If the content reference information of the second image is greater than the content score threshold, the second image is determined as the cover of the video.

4. The method according to claim 2, characterized in that: The determining the cover of the video from the multiple frames of images based on the quality reference information and the content reference information of the multiple frames of images comprises: If there is no image whose content reference information is greater than the content score threshold in the multiple frames of images, the first image is determined as the cover of the video.

5. A cover determination device, characterized in that: The device comprises: A first acquisition module is used for, in response to a request for determining a cover of a video, inputting any frame of the multiple frames of the video into an image quality model, predicting the image quality of the image by using the image quality model, and obtaining quality reference information of the image; The image quality model is a deep bilinear model, which is composed of two convolutional neural networks. The two convolutional neural networks are used to process images under synthetic distortion and real distortion, respectively, to obtain features corresponding to the synthetic distortion and features corresponding to the real distortion, and to perform bilinear combination on the two output features to obtain combined features, and then predict the image quality of the image based on the combined features; the quality reference information is a quality score of the image, and the quality score is used to indicate the image quality of the corresponding image; the image quality includes image fidelity and image intelligibility, the image fidelity is used to indicate the degree of deviation between the current image and the standard image, and the image intelligibility is used to indicate the degree to which a person or a machine can extract relevant feature information from the current image; A second acquisition module is used to perform Laplace edge detection on any frame of the multiple images to obtain an edge detection image; determine a variance value of the edge detection image based on pixel values ​​of the edge detection image, and determine the variance value as content reference information, wherein the content reference information is used to indicate the richness of the image content of the corresponding image; A determination module is used to determine the cover of the video from the multiple frames of images based on the quality reference information and content reference information of the multiple frames of images.

6. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the cover determination method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: At least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by the processor to implement the cover determination method according to any one of claims 1 to claim 4.

Citation Information

Patent Citations

  • PVR-set-top-box-based method and system for displaying recorded file cover

    CN106559697A

  • Picture detection method and device, electronic equipment and readable storage medium

    CN107886518A

  • Method for generating video cover, and server

    CN108600781A

  • Video cover determination method and device, electronic equipment and storage medium

    CN111918130A

  • Image processing method and device, and storage medium

    CN112396050A