Video data processing method and apparatus, device, and readable storage medium
Through the extraction and sorting of video attributes and episode number attributes, an ordered collection of album videos is generated, which solves the problem of inaccurate information and incomplete display of film and television commentary videos, and improves the user experience and the presentation of search results.
Patent Information
- Application Number
- PCT/CN2024/082438
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2024-03-19
- Publication Date
- 2024-09-26
AI Technical Summary
In the existing technology, when users search for film and television commentary videos, the editing blogger is not a professional, resulting in inaccurate or missing video information, incomplete video information display in the query result display box, and difficulty in presenting the viewing order of film and television commentary videos, which affects the user experience. .
By obtaining the characteristic information of the video to be processed, the video attributes and episode number attributes are extracted, classified and sorted, and an ordered album video collection is generated to ensure that the videos in the query results are displayed in the order of episode number, improving the user experience.
The structured output of film and television commentary videos is realized, which improves the display effect of search results. Users do not need to click one by one to determine the viewing order, which improves the presentation effect of film and television commentary videos.
Smart Images

Figure CN2024082438_26092024_PF_FP
Abstract
Description
Video data processing method, device, equipment and readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 20, 2023, with application number 202310272580.9 and application name “Video data processing method, device, equipment and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a video data processing method, apparatus, device, and readable storage medium. Background Art
[0003] Currently, movie or TV series editing bloggers will edit based on the original movie or TV series IP (Intellectual Property) and add real-life commentary. The content is mainly based on the complete plot explanation of the TV or TV series, helping users quickly understand the content outline of the movie / TV series IP.
[0004] Therefore, when a user searches for a movie or TV series IP through a search engine, the query result display box will also recommend film and television commentary videos related to the movie or TV series IP. However, due to the simplicity of video editing, most editing bloggers are not professionals and do not have a fixed editing direction and arrangement when editing videos. As a result, the edited film and television commentary videos may not be added with video information (such as title or episode number) or the added video information may be inaccurate. The current query mechanism, after searching for film and television commentary videos associated with the search keyword entered by the user, will shuffle all of these film and television commentary videos in the query result display box. This may result in the query result display box containing film and television commentary videos with incomplete video information, making it difficult to present the viewing order of film and television commentary videos under the same movie or TV series IP. This requires users to click on the film and television commentary videos in the query result display box one by one to view them in order to determine the film and television commentary videos they are interested in and the viewing order of these films and television commentary videos, resulting in poor presentation of the searched film and television commentary videos.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a video data processing method, apparatus, device, and readable storage medium, which can improve the presentation effect of searched film and television commentary videos.
[0007] An embodiment of the present application provides a method for processing video data, including:
[0008] Get M videos to be processed; M is a positive integer;
[0009] Perform feature extraction on each of the M videos to be processed to obtain video attribute information corresponding to each video to be processed, and obtain source label information corresponding to each video to be processed; the video attribute information includes work attribute information and episode attribute information;
[0010] Classify M videos to be processed according to the source label information to obtain an initial video set, and determine the videos to be processed in the initial video set that have the target work attribute information as the videos to be sorted; each video to be processed in the initial video set has the same source label information; the work attribute information involved in the M videos to be processed includes the target work attribute information;
[0011] According to the episode attribute information corresponding to the video to be sorted, the video to be sorted is sorted to obtain the sorted video. If the episode attribute information corresponding to the sorted video meets the legal episode condition, the sorted video is determined to be an ordered album video, and a video album set containing the ordered album video is generated; the video album set is used to be displayed in the query result display box when the query data matches the work attribute information or source tag information corresponding to the ordered album video.
[0012] An embodiment of the present application provides a method for processing video data, including:
[0013] Display the input target query data in the query box of the application page;
[0014] In response to a trigger operation for target query data, if the intent type of the target query data is a video intent type, a recommendation result display area is displayed in the query result display box of the application page;
[0015] In the recommendation result display area, the ordered album videos contained in the target video album set are displayed sequentially; the target video album set is a video album set whose work attribute information or source tag information matches the target query data, and the target video album set includes one or more ordered album videos corresponding to the work attribute information; the display order of the ordered album videos with the same work attribute information is sorted according to the episode number order between the corresponding episode attribute information; the ordered album videos in the target video album set belong to the commentary video type.
[0016] An embodiment of the present application provides a video data processing device, including:
[0017] The acquisition module is used to obtain M videos to be processed; M is a positive integer;
[0018] A feature extraction module is used to extract features from each of the M videos to be processed, obtain video attribute information corresponding to each video to be processed, and obtain source tag information corresponding to each video to be processed; the video attribute information includes work attribute information and episode attribute information;
[0019] A video determination module is configured to classify M videos to be processed based on the source tag information to obtain an initial video set, and determine the videos to be processed in the initial video set that have the target work attribute information as the videos to be sorted; each video to be processed in the initial video set has the same source tag information; and the work attribute information involved in the M videos to be processed includes the target work attribute information;
[0020] A generation module is used to sort the videos to be sorted according to the episode attribute information corresponding to the videos to be sorted to obtain sorted videos. If the episode attribute information corresponding to the sorted videos meets the legal episode conditions, the sorted videos are determined to be ordered album videos, and a video album set containing the ordered album videos is generated; the video album set is used to be displayed in the query result display box when the query data matches the work attribute information or source tag information corresponding to the ordered album videos.
[0021] M videos to be processed include video M to be processed i , i is a positive integer less than or equal to M;
[0022] Feature extraction module, including:
[0023] The first extraction unit is used to process the video M i Perform work attribute extraction and processing to obtain the video to be processed M i Corresponding work attribute information;
[0024] The second extraction unit is used to process the video M i Perform episode attribute extraction and obtain the video to be processed M i The corresponding set attribute information.
[0025] Wherein, the first extraction unit includes:
[0026] Frame retrieval subunit, used to process the video M i Perform sampling processing to obtain a video frame image;
[0027] The frame retrieval subunit is further used to perform picture matching processing on the video frame image and the video works in the video work library, and obtain the picture similarity between the video works in the video work library and the video frame image;
[0028] The frame retrieval subunit is further configured to determine the video work having the highest screen similarity to the video frame image as the target video work;
[0029] The frame retrieval subunit is further configured to determine the video work attribute information corresponding to the target video work as the video work to be processed if the picture similarity between the video frame image and the target video work is greater than or equal to the picture similarity threshold. i The corresponding work attribute information.
[0030] The first extraction unit is specifically used to process the video M i Performing equal-interval sampling to obtain a plurality of video frame images, traversing the plurality of video frame images, and performing screen matching processing on the i-th video frame image among the plurality of video frame images with video works in the video work library, respectively, to obtain screen similarities between the video works in the video work library and the i-th video frame image; i is a positive integer less than or equal to the number of the plurality of video frame images;
[0031] The first extraction unit is specifically configured to obtain the video work with the highest image similarity to the i-th video frame image as the pending video work corresponding to the i-th video frame image, mark the pending video work corresponding to the i-th video frame image, and after marking the pending video work corresponding to each of the multiple video frame images, determine the video work attribute information corresponding to the pending video work with the most marking times as the video work to be processed M. i The corresponding work attribute information.
[0032] Wherein, the first extraction unit includes:
[0033] Template matching subunit, used to obtain the video to be processed M i Corresponding video title information;
[0034] The template matching subunit is further used to perform structural matching processing on the video title information and the title templates in the title template library, and obtain the structural similarity between the title templates in the title template library and the video title information;
[0035] The template matching subunit is further configured to determine the title template having the highest structural similarity with the video title information as the target title template;
[0036] The template matching subunit is further configured to extract information from the video title information according to the target title template if the structural similarity between the video title information and the target title template is greater than or equal to the structural similarity threshold, and obtain the video M to be processed. i The corresponding work attribute information.
[0037] Wherein, the first extraction unit includes:
[0038] The propagation matching subunit is used to traverse and obtain the k-th sample video in the sample video library; k is a positive integer;
[0039] The propagation matching subunit is also used to process the video M i Perform screen matching with the kth sample video to obtain the video screen similarity;
[0040] The propagation matching subunit is also used to process the video M i The video title information of the kth sample video is similarly calculated with the video title information corresponding to the kth sample video to obtain the video title similarity;
[0041] The propagation matching subunit is also used to obtain the video M to be processed. i The video click log associated with the k-th sample video is analyzed and processed to obtain the video click similarity;
[0042] The propagation matching subunit is also used to determine the video to be processed M based on the video screen similarity, video title similarity and video click similarity. i The video similarity between the kth sample video;
[0043] The propagation matching subunit is further configured to perform weighted processing on the video work confidence of the kth sample video for the associated work according to the video similarity if the video similarity is greater than the video similarity threshold, and obtain the video to be processed M i The work confidence level for the related works; the video work confidence level of the k-th sample video for the related works is used to represent the degree of confidence that the k-th sample video belongs to the related works;
[0044] The propagation matching subunit is further configured to determine the video work attribute information corresponding to the associated work as the video to be processed M if the work confidence is greater than or equal to the work confidence threshold. i The corresponding work attribute information.
[0045] Wherein, the second extraction unit includes:
[0046] The frame matching subunit is used to obtain the video M to be processed from the video library. i The video work corresponding to the work attribute information is used as the video work to be matched;
[0047] The frame matching subunit is also used to process the video M i Perform sampling processing to obtain a video frame image;
[0048] The frame matching subunit is further used to perform picture matching processing on the video frame image and the video work picture in the video work to be matched, so as to obtain the video work picture that matches the video frame image;
[0049] The frame matching subunit is further configured to determine the episode number information corresponding to the video work picture that matches the video frame image as the video to be processed M i The corresponding set attribute information.
[0050] Wherein, the second extraction unit includes:
[0051] Title matching subunit, used to process video M i The cover image of the video layout character recognition process is performed to obtain the video to be processed M i Corresponding cover title information;
[0052] The title matching subunit is further used to perform structural matching processing on the cover title information and the episode templates in the episode template library, and obtain the structural similarity between the episode templates in the episode template library and the cover title information;
[0053] The title matching subunit is further used to determine the episode template with the highest structural similarity to the cover title information as the target episode template;
[0054] The title matching subunit is further configured to extract information from the cover title information according to the target episode template if the structural similarity between the cover title information and the target episode template is greater than or equal to the structural similarity threshold, and obtain the video M to be processed. i The corresponding set attribute information.
[0055] Among them, the generation module includes:
[0056] A sorting unit, configured to sort the videos to be sorted according to the attribute information of the number of episodes corresponding to the videos to be sorted, to obtain sorted videos;
[0057] A detection unit, configured to perform continuity detection on the episode attribute information corresponding to the sorted videos to obtain a continuity detection result;
[0058] A version identification unit is configured to, if the continuity detection result is a continuous result for the number of episodes, perform video version identification processing on the sorted video according to the target work knowledge graph to obtain a target video version corresponding to the sorted video; the target work knowledge graph is a work knowledge graph associated with the work attribute information corresponding to the sorted video;
[0059] An episode number determination unit, configured to determine the total number of episodes corresponding to the sorted videos according to the target video version in the target work knowledge graph;
[0060] a video determination unit, configured to determine that the episode attribute information corresponding to the sorted videos satisfies an episode legality condition if the largest episode attribute information among the episode attribute information corresponding to the sorted videos is the same as the total episode information;
[0061] The video determination unit is further configured to determine the sorted video as an ordered album video if the episode attribute information corresponding to the sorted video meets the episode legality condition;
[0062] The album generation unit generates a video album set containing ordered album videos.
[0063] The target work knowledge graph includes one or more video versions and a list of video objects corresponding to each video version;
[0064] Version identification unit, including:
[0065] The overlap determination subunit is used to perform object recognition processing on the sorted video to obtain multiple video objects contained in the sorted video and the corresponding appearance duration of each video object;
[0066] The overlap determination subunit is further configured to obtain R target video objects from the plurality of video objects according to the duration sequence of the appearance durations corresponding to each video object; R is a positive integer;
[0067] The overlap determination subunit is further configured to determine the object overlap between the R target video objects and each video object list in the target work knowledge graph; the object overlap refers to the overlap between the video objects included in a video object list and the R target video objects;
[0068] The version determination subunit is used to determine the video version corresponding to the video object list with the largest object overlap as the target video version corresponding to the sorted video.
[0069] The number of ordered album videos is at least two;
[0070] Album generation unit, including:
[0071] The cover determination subunit is used to traverse at least two ordered album videos and sequentially obtain the j-th ordered album video, where j is a positive integer;
[0072] The cover determination subunit is further used to perform relevance matching on the video cover corresponding to the j-th ordered album video and the video title corresponding to the j-th ordered album video to obtain a relevance matching result;
[0073] The cover determination subunit is further configured to determine the video cover corresponding to the j-th ordered album video as the album video cover corresponding to the j-th ordered album video if the correlation matching result is a successful correlation matching result;
[0074] The cover determination subunit is further configured to, if the relevance matching result is a relevance matching failure result, perform video frame screening processing on the j-th ordered album video to obtain a video frame image that matches the video title corresponding to the j-th ordered album video, and determine the video frame image as the album video cover corresponding to the j-th ordered album video;
[0075] The generating subunit is used to generate a video album set containing the album video cover corresponding to each ordered album video when the album video cover corresponding to each ordered album video is obtained.
[0076] The video data processing device further includes:
[0077] A filtering module, configured to obtain a first initial video set;
[0078] The filtering module is further configured to perform black edge detection on the first initial video set to obtain a black edge ratio corresponding to each initial video in the first initial video set;
[0079] The filtering module is further configured to filter out the initial videos having a black edge ratio greater than a black edge ratio threshold from the first initial video set, to obtain a second initial video set;
[0080] The filtering module is further configured to perform watermark detection on the second initial video set to obtain a watermark area ratio corresponding to each initial video in the second initial video set;
[0081] The filtering module is further configured to filter the initial videos having a watermark area ratio greater than a watermark area ratio threshold from the second initial video set to obtain a third initial video set;
[0082] The filtering module is further configured to perform definition recognition on the third initial video set to obtain the definition corresponding to each initial video in the third initial video set;
[0083] The filtering module is further configured to filter the initial videos whose clarity is lower than a clarity threshold from the third initial video set to obtain M videos to be processed.
[0084] An embodiment of the present application provides a video data processing device, including:
[0085] A first display module is used to display the input target query data in the query box of the application page;
[0086] A response module is used to respond to the trigger operation for the target query data. If the intent type of the target query data is a video intent type, a recommendation result display area is displayed in the query result display box of the application page;
[0087] The second display module is used to sequentially display the ordered album videos contained in the target video album set in the recommendation result display area; the target video album set is a video album set whose work attribute information or source tag information matches the target query data, and the target video album set includes one or more ordered album videos corresponding to the work attribute information; the display order of the ordered album videos with the same work attribute information is sorted according to the episode order between the corresponding episode attribute information; the ordered album videos in the target video album set belong to the commentary video type.
[0088] On one hand, an embodiment of the present application provides a computer device, including: a processor, a memory, and a network interface;
[0089] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface, wherein the above-mentioned network interface is used to provide a data communication network element, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program to execute the method in the embodiment of the present application.
[0090] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded by a processor and executing the method in the embodiment of the present application.
[0091] On the one hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in the embodiment of the present application.
[0092] In an embodiment of the present application, after obtaining M videos to be processed, feature extraction can be performed on each of the M videos to be processed to obtain video attribute information and source label information corresponding to each video to be processed, and the video attribute information includes work attribute information and episode attribute information; then, the videos to be processed with the same source label information can be added to the same video set to obtain an initial video set, and the videos to be processed with the target work attribute information in the initial video set are determined as videos to be sorted; finally, according to the episode attribute information corresponding to the videos to be sorted, the videos to be sorted are sorted to obtain sorted videos. If the episode attribute information corresponding to the sorted videos meets the legal condition of the episode, the sorted videos are determined as ordered album videos, and a video album set containing ordered album videos is generated. It can be understood that the ordered album videos contained in the video album set obtained by the method provided in the embodiment of the present application correspond to the same work attribute information and source label information. When the query data matches the same work attribute information and source label information corresponding to the ordered album videos, the video album set can be displayed in the query result display box, realizing structured video output and improving the display effect of the video corresponding to the query data. The ordered album videos are sorted according to the episode attribute information in the video album set, and there is no need to click one by one to determine the viewing order of the ordered album videos, thereby improving the presentation effect of the searched film and television commentary videos. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 any creative work.
[0094] FIG1 is a schematic diagram of a network architecture provided by an embodiment of the present application;
[0095] FIG2a is a schematic diagram of a scenario for generating a video album set according to an embodiment of the present application;
[0096] FIG2b is a schematic diagram of a video query scenario provided by an embodiment of the present application;
[0097] FIG3 is a flow chart of a video data processing method provided in an embodiment of the present application;
[0098] FIG4 is a schematic diagram of the overall process of a video clustering mining method provided in an embodiment of the present application;
[0099] FIG5 is a flow chart of a video data processing method provided in an embodiment of the present application;
[0100] FIG6 is a schematic structural diagram of a video data processing device provided in an embodiment of the present application;
[0101] FIG7 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application;
[0102] FIG8 is a schematic structural diagram of another video data processing device provided in an embodiment of the present application;
[0103] FIG9 is a schematic structural diagram of another computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0104] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0105] Artificial Intelligence (AI) refers to the theories, methods, techniques, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, to perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that seeks to understand the essence of intelligence and produce new intelligent machines that can respond in a manner similar to human intelligence. AI also involves studying the design principles and implementation methods of various intelligent machines, enabling them to possess the capabilities of perception, reasoning, and decision-making.
[0106] Artificial intelligence (AI) technology is a comprehensive discipline encompassing a wide range of fields, encompassing both hardware and software technologies. Foundational AI technologies generally include sensors, specialized AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, speech processing, natural language processing, as well as machine learning / deep learning, autonomous driving, and smart transportation.
[0107] Computer vision (CV) is the science of making machines "see." Specifically, it refers to machine vision, where cameras and computers replace the human eye in identifying and measuring objects, performing further image processing to create images more suitable for human observation or transmission to instrumentation. As a scientific discipline, computer vision studies related theories and technologies, attempting to build artificial intelligence systems capable of extracting information from images or multidimensional data. Computer vision technologies typically include image processing, image recognition, image semantic understanding, image retrieval, optical character recognition (OCR), video processing, video semantic understanding, video content / behavior recognition, 3D object reconstruction, virtual reality, augmented reality, simultaneous localization and mapping, autonomous driving, and smart transportation.
[0108] Key technologies in speech technology include automatic speech recognition, speech synthesis, and voiceprint recognition. Enabling computers to hear, see, speak, and feel is the future direction of human-computer interaction, with speech becoming one of the most promising methods of human-computer interaction.
[0109] Natural language processing (NLP) is a key area of research in computer science and artificial intelligence. It studies the theories and methods that enable effective communication between humans and computers using natural language. Natural language processing (NLP) integrates linguistics, computer science, and mathematics. Therefore, research in this field involves natural language—the language we use in everyday life—and is closely linked to the study of linguistics. Natural language processing technologies typically include text processing, semantic understanding, machine translation, robotic question answering, and knowledge graphs.
[0110] The solutions provided in the embodiments of the present application involve artificial intelligence computer vision technology, language technology, and natural language processing technology, which are specifically illustrated by the following embodiments:
[0111] Please refer to Figure 1, which is a schematic diagram of a network architecture provided by an embodiment of the present application. The network architecture may include a server 100 and a terminal device cluster, and the terminal device cluster may include: terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n, wherein any terminal device in the terminal device cluster may have a communication connection with the server 100, for example, there is a communication connection between the terminal device 200a and the server 100, wherein the above-mentioned communication connection does not limit the connection method, and may be directly or indirectly connected by wired communication, or directly or indirectly connected by wireless communication, or by other methods, and the present application does not make any restrictions here.
[0112] It should be understood that each terminal device in the terminal cluster shown in Figure 1 can be installed with an application client. When the application client runs in each terminal device, data can be exchanged with the server 100 shown in Figure 1 above. Among them, the application client can be an instant messaging application, a live broadcast application, a short video application, a video application, a music application, a social application, a shopping application, a game application, a novel application, a payment application, a browsing application, and other application clients with query functions. Among them, the application client can be an independent client or an embedded sub-client integrated in a client (such as an instant messaging client, a social client, a video client, etc.), which is not limited here. Taking the short video application as an example, the server 100 can be used to respond to the query request sent by the terminal device through the short video application to perform query processing for the query data belonging to the video intent type contained in the query request. Therefore, each terminal device can transmit data with the server 100 through the short video application, such as each terminal device can obtain the data stream corresponding to the video album set matching the query data through the short video application.
[0113] Taking terminal device 200a as an example, terminal device 200a can display an application page through a short video application. This application page may include a query box. After terminal device 200a responds to an input operation, the input target query data may be displayed in the query box. The target query data has a video intent type, meaning that the target query data may refer to data related to a film or television work, such as a movie or TV series, such as the film's IP name, cast members, or a desired editing blogger. Terminal device 200a can then respond to a trigger operation targeting the target query data by sending a query request containing the target query data to server 100. Server 100 can retrieve a video album set from the video album collection library whose work attribute information or source tag information matches the target query data, as the target video album set, and then return the data stream corresponding to the target video album set to terminal device 200a. The work attribute information refers to the film or television IP information. The source tag information refers to the source information of the video, such as the editing blogger or website from which it originated. After the terminal device 200a receives the corresponding data stream, it can display the recommendation result display area in the query result display box of the application page; in the recommendation result display area, the ordered album videos of the commentary type contained in the target video album set are displayed in sequence. For example, the ordered album videos can be commentary videos corresponding to each episode of a TV series, that is, if the TV series has a total of 30 episodes, then the ordered album videos corresponding to the TV series may be 30 commentary videos (such as a commentary video is a video edited for one episode of the TV series), and these 30 commentary videos are presented in the recommendation result display area in the order of the number of episodes. Among them, the video album set in the video album set library can be generated by the server 100 according to the video data processing method provided by the embodiment of the present application.
[0114] Specifically, in an embodiment of the present application, the server 100 can obtain M videos to be processed, where M is a positive integer, and then perform feature extraction on each of the M videos to be processed to obtain video attribute information and source tag information corresponding to each video to be processed, wherein the video attribute information includes work attribute information and episode attribute information; then, the server 100 can add the videos to be processed with the same source tag information to the same video set to obtain an initial video set; optionally, if there is only one video to be processed associated with a certain source tag information, an initial video set containing only this one video to be processed can also be generated. Taking the target work attribute information (the work attribute information involved in the M videos to be processed includes the target work attribute information) as an example, the server 100 can determine the videos to be processed with the target work attribute information in the initial video set as the videos to be sorted; finally, according to the episode attribute information corresponding to the videos to be sorted, the videos to be sorted are sorted and filtered to obtain ordered album videos, and a video album set containing ordered album videos is generated. Among them, the process of sorting and filtering processing can be: sorting the videos to be sorted according to the episode attribute information corresponding to the videos to be sorted, obtaining sorted videos (i.e., sorting these videos to be sorted in the order of the episodes), and then further detecting whether the episodes corresponding to these sorted videos (derived from the episode attribute information) are continuous, and whether the largest episode in these sorted videos is the same as the total number of episodes of the work to which they belong (such as the TV series to which these sorted videos belong). If the above judgment conditions are all met, it can be determined that the episode attribute information corresponding to the sorted video meets the episode legality condition, and then the sorted video can be determined as an ordered album video; if the above judgment conditions are not all met, these sorted videos can be filtered, that is, they will not be recommended as ordered album videos, which can effectively ensure the quality of the ordered album videos finally displayed. Similarly, the server 100 can also perform sorting and filtering processing on the videos to be sorted with other work attribute information in the initial video set according to the above process. If the episode legality condition is also met, the corresponding ordered album video will also be generated. Therefore, the video album set can contain ordered album videos corresponding to multiple work attribute information. Optionally, if there is only one sorted video corresponding to a certain work attribute information, it can be assumed that the sorted video meets the legal number of episodes condition, that is, the sorted video can be directly used as an ordered album video. It is understood that the server 100 can associate the generated video album set with its corresponding work attribute information and source tag information and write it into the video album set library for storage, so that after receiving the query data sent by the terminal device, after determining the work attribute information or source tag information corresponding to the query data, the server 100 can quickly obtain the video album set that matches the query data and return the corresponding data stream to the terminal device.It can be understood that the episode attribute information corresponding to the ordered album videos contained in the video album set obtained through the embodiment of the present application is continuous, which facilitates the quick determination of the viewing order, thereby improving viewing efficiency.
[0115] It is understandable that the method provided in the embodiment of the present application can be performed by a computer device, and the computer device includes but is not limited to a terminal device or a server. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDNs, and big data and artificial intelligence platforms. The terminal device can be a smart phone, tablet computer, laptop computer, desktop computer, PDA, mobile internet device (mobile internet device, MID), wearable device (such as smart watch, smart bracelet, etc.), smart TV, smart car, etc., which can run instant messaging applications or social applications. The terminal device and the server can be directly or indirectly connected by wired or wireless means, and the embodiment of the present application is not limited here.
[0116] It is understandable that the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, blockchain and other scenarios.
[0117] It is understandable that in the specific implementation of this application, the query data and other related data involved, when the above embodiments of this application are applied to specific products or technologies, need to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0118] To facilitate understanding of the above-mentioned video album set generation and the display process of the target video album set when querying the target query data, please refer to Figures 2a-2b. The implementation process of Figures 2a-2b can be performed in the server 100 as shown in Figure 1, or in the terminal device (terminal device 200a, terminal device 200b, terminal device 200c or terminal device 200n as shown in Figure 1), and can also be performed jointly by the terminal device and the server. There is no limitation here. The embodiment of the present application is illustrated by taking the joint execution of the terminal device 200b and the server 100 as an example.
[0119] First, please refer to Figure 2a, which is a schematic diagram of a scenario for generating a video album collection provided by an embodiment of the present application. As shown in Figure 2a, the server 100 can obtain M videos to be processed: video 1 to be processed, video 2 to be processed, ..., video M to be processed. Among them, the videos to be processed can be film and television commentary videos, that is, videos edited based on part of the content of a movie or TV series and accompanied by commentary. It can be understood that the M videos to be processed can be videos obtained by the server 100 after quality screening of all videos that can be obtained. Therefore, the source of each video to be processed may be different, the content of the film and television works involved may be different, and the corresponding video content presentation method and video release method may also be different. Therefore, the server 100 can classify and organize the M videos to be processed to obtain an ordered video album collection. Specifically, after obtaining the M videos to be processed, the server 100 can first perform feature extraction on each of the M videos to be processed to obtain video attribute information and source tag information corresponding to each video to be processed. The video attribute information may include work attribute information and episode attribute information. The work attribute information is used to describe the film and television work to be processed, and the episode attribute information is used to describe which part of the corresponding film and television work (such as which episode) the video to be processed relates to. The source tag information refers to the source information of the video, for example, which editing blogger it comes from, or which website it comes from, etc. As shown in Figure 2a, the video attribute information 201 corresponding to the video to be processed 1 can be "TV series A, episode 2", indicating that the video to be processed 1 is a film and television commentary video for the film and television content of the second episode of TV series A; the video attribute information 202 corresponding to the video to be processed 2 can be "TV series B, episode 1", indicating that the video to be processed 2 is a film and television commentary video for the film and television content of the first episode of TV series B; the video attribute information 203 corresponding to the video to be processed M can be "Movie C, part 1", indicating that the video to be processed M is a film and television commentary video for the film and television content of the first half of Movie C.
[0120] After obtaining the video attribute information and source tag information of each video to be processed, the server 100 can first classify the sources of the M videos to be processed, that is, the videos to be processed can be classified according to the source tag information, such as first adding the videos to be processed with the same source tag information to the same initial video set, so that each video to be processed in an initial video set has the same source tag information. As shown in Figure 2a, the server 100 can obtain multiple initial video sets, for example, an initial video set 204. Among them, the initial video set 204 can include videos to be processed 2, ..., and videos to be processed a, that is, videos to be processed 2, ..., and videos to be processed a have the same source tag information, and the same applies to other initial video sets. Then, the server 100 will determine the videos to be processed with the same work attribute information in each initial video set as videos to be sorted. Taking the initial video set 204 as an example, as shown in FIG2a , assuming that the work attribute information corresponding to the to-be-processed videos 2, ..., and to-be-processed videos c is TV series B, and the work attribute information corresponding to the to-be-processed videos 3 and to-be-processed videos a is movie D, the server 100 can determine the to-be-processed videos 2, ..., and to-be-processed videos c as to-be-sorted videos 205, and determine the to-be-processed videos 3 and to-be-processed videos a as to-be-sorted videos 206, and so on. The server 100 can then perform sorting and filtering processing on each group of to-be-sorted videos (a group of to-be-sorted videos corresponds to one work attribute information, i.e., all to-be-processed videos in a group of to-be-sorted videos have the same work attribute information), i.e., sort the group of to-be-sorted videos according to the episode attribute information corresponding to a certain group of to-be-sorted videos to obtain sorted videos. If the episode attribute information corresponding to these sorted videos is continuous and complete, these sorted videos can be determined as ordered album videos, and then a video album set containing the ordered album videos is generated. The video album set can contain ordered album videos corresponding to one or more work attribute information. That is, it can be understood that to-be-sorted videos corresponding to other work attribute information can also generate corresponding ordered album videos in the same manner. As shown in Figure 2a, it is assumed that after the server 100 sorts the video to be sorted 205, the video to be processed after the video to be processed 2 is the video to be processed c, but the episode attribute information corresponding to the video to be processed 2 is episode 1, and the episode attribute information corresponding to the video to be processed c is episode 3. That is to say, in the video to be sorted 205, there is no video to be processed related to the content of the second episode of the TV series B. The server 100 can consider that the video to be sorted 205 is disordered, and the server 100 can give up subsequent processing of the video to be sorted 205, that is, it will not generate its corresponding ordered album video.As shown in Figure 2a, it is assumed that after the server 100 sorts the video to be sorted 206, it obtains the video to be processed a and the video to be processed 3, where the episode attribute information corresponding to the video to be processed a is up, and the episode attribute information corresponding to the video to be processed 3 is down, then the server 100 can determine that the episode attribute information corresponding to the videos to be processed in the video to be sorted 206 is continuous and complete, so the video to be processed a and the video to be processed 3 can be determined as ordered album videos, and then a video album set 207 containing the ordered album videos (i.e., video to be processed a and video to be processed 3) is generated.
[0121] It can be understood that when the number M is sufficient, after classifying and organizing the M videos to be processed, the server 100 can eventually obtain multiple ordered video album sets, that is, one video album set corresponds to one source tag information, and a video album set can also contain ordered album videos corresponding to one or more work attribute information. There can be multiple ordered album videos corresponding to one work attribute information, and the display order of these multiple ordered album videos is displayed in the order of the number of episodes. When the server 100 receives query data for the video intent type, it can first determine the work attribute information or source tag information that matches the query data, and then return the ordered album videos corresponding to the work attribute information or source tag information that matches the query data to the terminal device.
[0122] Furthermore, the terminal device can display the input target query data in the query box of the application page, and then can respond to the trigger operation for the target query data. If the intent type of the target query data is a video intent type, the recommendation result display area is displayed in the query result display box of the application page; in the recommendation result display area, the ordered album videos contained in the target video album set are displayed in sequence. Among them, the target video album set is a video album set whose work attribute information or source tag information matches the target query data; the display order of the ordered album videos in the target video album set is sorted according to the episode number order between the episode attribute information corresponding to the ordered album videos; the ordered album videos in the target video album set belong to the commentary video type. For ease of understanding, please refer to Figure 2b, which is a scene diagram of a video query provided in an embodiment of the present application. As shown in Figure 2b, the object that has an association relationship with the terminal device 200b is object 1, and a short video application is integrated and installed on the terminal device 200b. Subject 1 can exchange data with server 100 via the short video application on terminal device 200b. For example, after subject 1 opens the short video application on terminal device 200b, as shown in Figure 2b, terminal device 200b may display application page 31, which includes a query box 311 and a query result display box 312. Query box 311 provides a query function, while query result display box 312 displays the query results. Suppose subject 1 wants to watch a movie or TV show, they can enter their query into query box 311. Terminal device 200b may display query content 311a entered by subject 1 in query box 311 of application page 31. For example, query content 311a may be "Movie D." After subject 1 completes their input, they can trigger an operation on query content 311a, for example, by triggering query control 311b. After terminal device 200b responds to the trigger operation on query content 311a, it can send query content 311a to server 100. The server 100 may perform query processing on the query content 311a to obtain query result data, and then return the query result data on the query content 311a to the terminal device 200b. The terminal device 200b may display the query result in a result display box according to the query result data.Among them, a feasible process of query processing is to first determine the intent type of the query content 311a. If it is determined that the intent type of the query content 311a is a video intent type, the server 100 will not only search for video data matching the query content 311a in the large amount of video data that can be obtained as the first video data, but will also search for a video album set matching the query content 311a in the multiple ordered video album sets obtained in the scene shown in Figure 2a, that is, a video album set matching "Movie D", such as the video album set 207 shown in Figure 2a above. The server 100 will use the video data corresponding to the video album set 207 as the second video data, and then the server 100 will determine the first video data and the second video data as the query result data.
[0123] As shown in Figure 2b, after receiving the query result data, the terminal device 200b will display the recommended result display area in the query result display box 312 of the application page 31, for example, the recommended result display area 312a and the recommended result display area 312b. Among them, different recommended result display areas are used to display different video data, and the display level of the second video data takes precedence over the first video data. Therefore, the terminal device 200b will display the second video data in the recommended result display area 312a and the first video data in the recommended result display area 312b. As shown in Figure 2b, the terminal device 200b will display the video cover corresponding to each ordered album video in the recommended result display area 312a according to the position order of the ordered album videos included in the video album set 207 (the position order matches the episode order corresponding to the ordered album videos). Because the video album set 207 sequentially contains the video to be processed a and the video to be processed 3, the video cover 313 is the video cover corresponding to the video to be processed a, and the video cover 314 is the video cover corresponding to the video to be processed 3. Then, the terminal device 200b will display the video cover corresponding to the first video data in the recommendation result display area 312b.
[0124] It can be seen that through the video data processing method provided by the embodiment of the present application, when responding to query data for video intent type, the terminal device will first give priority to displaying an ordered video album collection, realizing structured ordered video output, improving the display effect of the video corresponding to the query data, and the ordered album videos are sorted according to the episode attribute information in the video album collection, and there is no need to click one by one to determine the viewing order of the ordered album videos, thereby improving the presentation effect of the searched film and television commentary videos.
[0125] Further, please refer to Figure 3, which is a flow chart of a video data processing method provided in an embodiment of the present application. The video data processing method can be executed by a computer device, which can include a terminal device or a server as shown in Figure 1. The method can include the following steps S101-S104:
[0126] Step S101, obtain M videos to be processed; M is a positive integer.
[0127] Specifically, the video to be processed refers to the edited video associated with the film and television work (ie the above-mentioned movie or TV series IP).
[0128] In one feasible embodiment, the video to be processed may be a film and television commentary video, i.e., a video generated by a blogger editing a portion of the film and television content and adding corresponding commentary (which may be text, audio, or video). It is understood that film and television commentary videos can help users quickly understand the content of the film and television work.
[0129] Step S102, perform feature extraction on each of the M videos to be processed, obtain video attribute information corresponding to each video to be processed, and obtain source label information corresponding to each video to be processed; the video attribute information includes work attribute information and episode attribute information.
[0130] Specifically, the work attribute information refers to the film and television work information corresponding to the video to be processed. For example, the work attribute information corresponding to the video to be processed A can be the name of a TV series, such as "BBB", indicating that the video content of the video to be processed A belongs to the TV series "BBB". The episode attribute information is used to indicate which time period of the film and television work the video content of the video to be processed corresponds to. For example, the episode attribute information corresponding to the video to be processed A is episode 1-2, indicating that the video content in the video to be processed A involves the first and second episodes of the TV series "BBB". That is, it can be understood that the video to be processed A is generated based on the editing of the first and second episodes of the TV series "BBB". The computer device can also obtain the source tag information corresponding to each video to be processed. The source tag information refers to the source information of the video, for example, which editing blogger it comes from, or which website it comes from, etc.
[0131] Specifically, assuming that the M videos to be processed include the video to be processed M i , i is a positive integer less than or equal to M. For ease of understanding, the video to be processed M i Take the example of feature extraction to illustrate that feature extraction is performed on M videos to be processed respectively, and a feasible implementation process of obtaining the video attribute information corresponding to each video to be processed can be: iPerform work attribute extraction and processing to obtain the video to be processed M i Corresponding work attribute information; video M to be processed i Perform episode attribute extraction and obtain the video to be processed M i The corresponding episode attribute information. The work attribute extraction process can adopt various methods, such as video frame retrieval, title template matching, and label propagation. The episode attribute extraction process can adopt various methods, such as video frame retrieval, title template matching, and so on.
[0132] Specifically, when the work attribute extraction process adopts the video frame retrieval method, the video M to be processed i Perform work attribute extraction and processing to obtain the video to be processed M i A feasible implementation process of the corresponding work attribute information can be as follows: i Sampling is performed to obtain a video frame image; the video frame image is matched with the video works in the video work library to obtain the picture similarity between the video works in the video work library and the video frame image; the video work with the highest picture similarity with the video frame image is determined as the target video work; if the picture similarity between the video frame image and the target video work is greater than or equal to the picture similarity threshold, the video work attribute information corresponding to the target video work is determined as the video work to be processed M i The corresponding work attribute information. Among them, the sampling process can be sampling at equal time intervals, that is, the sampled video frame images can be multiple, and the adjacent video frame images are in the video to be processed M i The time intervals between the corresponding playback times are equal, for example, the video to be processed M i The playback time is 20s (ie 20 seconds), and the sampling time interval is 5s, then the obtained video frame image is the video to be processed M i The frame images corresponding to the 5th second, the 10th second, the 15th second, and the 20th second are respectively. Therefore, it can be understood that the number of video frame images is one or more. Among them, the video work refers to the complete film and television video corresponding to the movie or TV series.
[0133] The video frame image may include video frame image X, and the film and television work in the film and television work library may include film and television work Y. Then, among the frame images included in film and television work Y, the frame image with the highest similarity to video frame image X is obtained and used as the target frame image. The similarity between the target frame image and video frame image X is determined as the image similarity between film and television work Y and video frame image X. The image similarity between the video frame image and the frame image can be calculated using image representation vectors corresponding to the two images, or can be obtained using other similarity comparison models, which are not limited here.
[0134] Optionally, when there are multiple video frame images, a feasible implementation process for determining the video work with the highest screen similarity to the video frame images can be as follows: traverse multiple video frame images, perform screen matching processing on the i-th video frame image among the multiple video frame images with the video works in the video work library, and obtain the screen similarity between the video works in the video work library and the i-th video frame image; i is a positive integer less than or equal to the number of multiple video frame images; obtain the video work with the highest screen similarity to the i-th video frame image as the pending video work corresponding to the i-th video frame image, and mark the pending video work corresponding to the i-th video frame image. When the pending video work corresponding to each of the multiple video frame images is marked, the pending video work with the most marking times is determined as the video work with the highest screen similarity to the video frame images, and then the video work attribute information corresponding to the pending video work with the most marking times can be determined as the video work to be processed M i The corresponding work attribute information. The highest similarity of the pending video work determined by a larger number of video frame images can have a higher accuracy, that is, it can ensure that the determined video work to be processed M i The corresponding work attribute information is accurate enough.
[0135] Optionally, when the work attribute extraction process adopts the title template matching method, the video M to be processed i Perform work attribute extraction and processing to obtain the video to be processed M i A feasible implementation process of the corresponding work attribute information can be: obtaining the video to be processed M i The video title information is matched with the title templates in the title template library to obtain the structural similarity between the title templates in the title template library and the video title information; the title template with the highest structural similarity with the video title information is determined as the target title template; if the structural similarity between the video title information and the target title template is greater than or equal to the structural similarity threshold, the video title information is extracted according to the target title template to obtain the video M to be processed. i The corresponding work attribute information. Among them, the title template in the title template library refers to a predefined text template used to extract the work attribute information in the video title information, that is, IP information. For example, the title template may include: "《IP》", " <ip>”, “[IP]”, “IP+number:”, “IP+number”. Assume that the video to be processed M i The corresponding video title information C is "《XXX》". After the computer device calculates the structural similarity between the video title information C and the title templates in the title template library, it can be determined that the target title template most similar to the video title information C is "《IP》". The computer device can then perform information extraction processing on the video title information C according to the target title template to obtain the video M to be processed. i The corresponding work attribute information is XXX.
[0136] Specifically, label propagation is to predict the unlabeled node label information from the labeled node label information by utilizing the relationship between samples. When the work attribute extraction process adopts the label propagation method, the processed video M i Perform work attribute extraction and processing to obtain the video to be processed M i A feasible implementation process of the corresponding work attribute information can be as follows: traverse and obtain the kth sample video in the sample video library; k is a positive integer; the video to be processed M i Perform image matching with the kth sample video to obtain the video image similarity; i The video title information of the kth sample video is similar to the video title information corresponding to the kth sample video, and the video title similarity is obtained; i The video click log associated with the k-th sample video is analyzed and processed to obtain the video click similarity; based on the video screen similarity, video title similarity and video click similarity, the video to be processed M is determined. i The video similarity between the kth sample video and the kth sample video; if the video similarity is greater than the video similarity threshold, the video work confidence of the kth sample video for the associated work is weighted according to the video similarity to obtain the video to be processed M i The work confidence of the associated work; if the work confidence is greater than or equal to the work confidence threshold, the video work attribute information corresponding to the associated work is determined as the video to be processed M i Corresponding work attribute information. Among them, the video work confidence of the k-th sample video for the associated work is used to characterize the credibility of the k-th sample video belonging to the associated work. Among them, the sample video and the video to be processed belong to the same type of video. For example, when the video to be processed is a film and television commentary video, the sample video is also a film and television commentary video. It can be understood that the sample video in the sample video library can be regarded as a node, and there is a corresponding associated work label (the associated work label can indicate the associated video corresponding to the sample video), and the associated work label will have a video work confidence (generated by the algorithm when calculating the label). Among them, the video work confidence is used to characterize the credibility of the sample video belonging to the associated work indicated by the associated work label. When the video work confidence is greater than the work confidence threshold, the sample video can be considered to belong to the associated work. Among them, a video click log refers to a user's click behavior analysis log on the video within a certain period of time. It can be understood that it is related to the video to be processed M i There can be multiple video click logs associated with the kth sample video. Through these video click logs, we can analyze the number of videos M to be processed that users clicked at the same time. i The probability of the k-th sample video is used as the video click similarity. According to the video picture similarity, video title similarity and video click similarity, the video to be processed M is determined. i The process of video similarity with the kth sample video may refer to: adding and averaging the video screen similarity, video title similarity, and video click similarity, or may refer to: weighting the video screen similarity, video title similarity, and video click similarity and then adding and averaging them. The specific process may be determined based on actual conditions, and this application does not impose any restrictions thereon.
[0137] Specifically, when the episode attribute extraction process adopts the video frame retrieval method, when the episode attribute extraction process adopts the video frame retrieval method, the video M to be processed i Perform episode attribute extraction and obtain the video to be processed M i A feasible implementation process of the corresponding episode attribute information can be as follows: obtain the video to be processed M from the video library i The video work corresponding to the work attribute information is used as the video work to be matched; the video M to be processed i Perform sampling processing to obtain a video frame image; perform picture matching processing on the video frame image and the video work picture in the video work to be matched to obtain the video work picture that matches the video frame image; determine the episode number information corresponding to the video work picture that matches the video frame image as the video work to be processed i It can be understood that by performing picture matching processing on the video frame image and the video work to be matched, the video frame image can be located at the video work picture of the episode, minute and second in the video work to be matched, thereby determining the video work to be processed M i Which part of the video work to be matched is involved, so as to determine the episode attribute information.
[0138] Optionally, when the episode attribute extraction process adopts the title template matching method, the video M to be processed i Perform episode attribute extraction and obtain the video to be processed M i A feasible implementation process of the corresponding episode attribute information can be as follows: i The cover image of the video layout character recognition process is performed to obtain the video to be processed M i The cover title information is matched with the episode templates in the episode template library to obtain the structural similarity between the episode templates in the episode template library and the cover title information; the episode template with the highest structural similarity with the cover title information is determined as the target episode template; if the structural similarity between the cover title information and the target episode template is greater than or equal to the structural similarity threshold, the cover title information is extracted according to the target episode template to obtain the video M to be processed. i The video layout character recognition processing refers to the use of VideoLayout_OCR (video layout character recognition) technology to obtain the text information on the cover image while also identifying the layout attributes of the regional text, such as title, subtitle, background text, etc., so as to determine the video M to be processed based on the layout attributes and text information. i The corresponding cover title information. Among them, VideoLayout_OCR refers to a technology that uses a three-branch multi-task neural network to combine text detection and attribute classification tasks into one.
[0139] It can be understood that when the episode attribute extraction process adopts the title template matching method, the specific implementation process can refer to the implementation process when the work attribute extraction process adopts the title template matching method. In the episode attribute extraction process, the template adopted is the episode template for the episode attribute information. Because the episode attribute information can include two parts, episode (episode) and part (part), where Episode represents the episode number and part represents the part number, such as upper / middle / lower, 1 / 2 / 3. Therefore, the episode template can be divided into a pattern type template for extracting pattern information and a part type template for extracting part information. Among them, the pattern type template may include: "+Arabic numerals / Chinese numerals+"issue" or "episode" or "case", such as the 1st issue or the 2nd episode; ""+Arabic numerals+"-" or "~"+Arabic numerals+"issue" or "episode" or "case", such as the 1st to 2nd episode; "EP" or "Part"+Arabic numerals, such as EP1 or Part1; or if the video title contains the string "Grand Finale", then the episode is considered to be the last episode. Among them, the part type template may include: "(upper / middle / lower / number)", "《upper / middle / lower / number》", "[upper / middle / lower / number]", number Word + " / " + number, such as 1 / 3, number + "|" + number, such as 1|3; number + "-" + number, such as 3-1. If the title text can match the part type template, the part information of the video is obtained, such as the upper, middle and lower episodes, or 1 / 3, 2 / 3, 3 / 3. It can be understood that the computer device can match the two types of episode templates with the cover title information respectively, and the matches between the two do not affect each other. If there is a part type template that matches the cover title information, the part information can be extracted; if there is a pattern type template that matches the cover title information, the pattern information can be extracted.
[0140] Specifically, when the episode attribute extraction process adopts the title template matching method, in addition to the video to be processed M i The corresponding cover title information is used to extract the episode attribute, and the video M i The corresponding video title information is used to extract the episode attribute. i The corresponding title information when publishing.
[0141] Specifically, from the above description, we can know that the work attribute extraction process can adopt video frame retrieval, title template matching and label propagation, and the episode attribute extraction process can adopt video frame retrieval, title template matching and other methods. i In the actual extraction process of the corresponding work attribute information and episode attribute information, one or more of the above methods can be used simultaneously to process the video M to be processed. i The work attribute extraction process is performed, and one or more of the above methods are used to process the video M to be processed. i The application does not limit the extraction and processing of the set attribute.
[0142] Optionally, during the above-mentioned work attribute extraction process or episode attribute extraction process, some videos to be processed may not be able to extract usable work attribute information or episode attribute information. The computer device can determine these videos to be processed as invalid videos to be processed and filter them out directly, that is, they will no longer participate in the processing of subsequent steps.
[0143] Step S103: Classify the M videos to be processed according to the source tag information to obtain an initial video set, and determine the videos to be processed in the initial video set that have the target work attribute information as the videos to be sorted; each video to be processed in the initial video set has the same source tag information; the work attribute information involved in the M videos to be processed includes the target work attribute information.
[0144] Specifically, the source tag information refers to the source information of the video to be processed, for example, the ID (identity document, identification or account) of the author who published the video to be processed. It can be understood that the computer device can first classify the valid videos to be processed according to the source tag information, that is, classify the M videos to be processed according to the source tag information. It can also be understood that the videos to be processed with the same source tag information are added to the same initial video set, thereby obtaining multiple initial video sets, that is, one initial video set corresponds to one source tag information. In other words, each video to be processed in an initial video set has the same source tag information. Then, in the initial video set, the videos to be processed with the same work attribute information are classified and determined as the same batch of videos to be sorted. For example, the videos to be processed with the target work attribute information in a certain initial video set can be determined as a batch of videos to be sorted, that is, the videos to be processed belonging to the same film and television work in a certain initial video set (they all have the same source label information and the same work attribute information) will be processed together as subsequent ordered album videos. Similarly, the videos to be processed belonging to another film and television work in the initial video set will also be processed together as another group of ordered album videos.
[0145] Step S104, sorting the videos to be sorted according to the episode attribute information corresponding to the videos to be sorted to obtain sorted videos. If the episode attribute information corresponding to the sorted videos meets the legal episode condition, the sorted videos are determined to be ordered album videos, and a video album set containing the ordered album videos is generated; the video album set is used to be displayed in the query result display box when the query data matches the work attribute information or source tag information corresponding to the ordered album videos.
[0146] Specifically, for the videos to be sorted corresponding to the same work attribute information (such as the target work attribute information), the computer device can sort the videos to be sorted according to the episode attribute information corresponding to the videos to be sorted to obtain the sorted videos, and then perform continuity detection on the episode attribute information corresponding to the sorted videos to obtain the continuity detection result; if the continuity detection result is an episode continuity result, it can be determined that the episode attribute information corresponding to the sorted videos meets the episode legality condition, that is, the episode legality condition can refer to whether the episode attribute information between the sorted videos meets the episode continuity result condition, and then the sorted videos that meet the episode legality condition are determined as ordered album videos, and a video album set containing ordered album videos is generated; if the continuity detection result is an episode discontinuity result, the sorted videos are determined as unordered videos, and there is no need to generate a video album set for the unordered videos. Among them, the sorting process can be in ascending order from small to large, or in descending order from large to small, which is not limited here. The continuity test determines whether the episode number attribute information corresponding to all adjacent sorted videos is continuous. For example, the episode number attribute information corresponding to sorted video 1 is the first episode, and the episode number attribute information corresponding to the adjacent sorted video 2 is the third episode. Obviously, the two are not continuous, and the second episode is missing in between. In this case, the continuity test result is an episode discontinuity result. It can be seen that the episode number continuity result in this case means that the episode number attribute information of each adjacent sorted video is adjacent to each other.
[0147] Optionally, when performing continuity detection, the computer device can also identify the episode attribute information corresponding to the first sorted video in the sorted video, thereby determining whether the first sorted video is the first video of the work, that is, determining whether its corresponding episode attribute information is the first episode; similarly, the computer device can obtain the total episode information corresponding to the work attribute information corresponding to the sorted video, and then the computer device can identify the episode attribute information corresponding to the last sorted video in the sorted video, and determine whether the last sorted video is the last video of the work, that is, determine whether its corresponding episode attribute information is equal to the total episode information of the film and television work to which it belongs. If the first sorted video is not the first video of the work or the last sorted video is not the last video of the work, the continuity detection result can be determined as a discontinuous episode result. It can be seen that the continuous episode result at this time means that the episode attribute information of each two adjacent sorted videos are adjacent episodes, and the first sorted video is the first video of the film and television work (such as the first episode), and the last sorted video is the last video of the film and television work (such as the last episode).
[0148] To facilitate understanding of the above process, let's take the video to be processed as a film and television commentary video and generate a complete video commentary album for a movie or TV series as an example. Please also refer to Figure 4, which is a schematic diagram of the overall process of a video clustering mining method provided by an embodiment of the present application. As shown in Figure 4, the entire video clustering mining method mainly includes the following processes:
[0149] Step T1: input M videos to be processed.
[0150] Specifically, the M videos to be processed are the M videos to be processed in step S101 in the embodiment corresponding to FIG. 3 .
[0151] The computer then extracts the episode attribute information and work attribute information corresponding to each video to be processed, as well as the source tag information corresponding to each video to be processed. The computer then performs steps T2 through T9 for each video to be processed. If no work attribute information or episode attribute information is ultimately extracted for the video to be processed, the video to be processed is determined to be invalid. For ease of understanding, steps T2 through T9 below are described using a single video to be processed as an example.
[0152] Step T2: performing video frame retrieval processing on the video to be processed.
[0153] Specifically, the implementation process of the video frame retrieval processing can refer to the description of the above step S102 when the work attribute extraction processing adopts the video frame retrieval method, which will not be repeated here.
[0154] Step T3, determine whether the work attribute information corresponding to the video to be processed is extracted; if so, execute step T8; if not, execute step T4.
[0155] Step T4: perform template matching processing on the video to be processed.
[0156] Specifically, the implementation process of the template matching process can refer to the description of the above step S102 when the work attribute extraction process adopts the template matching method, which will not be repeated here.
[0157] Step T5, determining whether the work attribute information corresponding to the video to be processed is extracted in step T4; if so, executing step T8; if not, executing step T6.
[0158] Step T6: perform label propagation processing on the video to be processed.
[0159] Specifically, the implementation process of the tag propagation processing can refer to the description of the above step S102 when the work attribute extraction processing adopts the tag propagation method, which will not be repeated here.
[0160] Step T7, determining whether the work attribute information corresponding to the video to be processed is extracted in step T6; if so, executing step T8; if not, determining that the video to be processed is invalid.
[0161] Step T8: extract the episode attribute information of the video to be processed.
[0162] Specifically, the implementation process of the episode attribute information extraction process can refer to the description of the implementation of the episode attribute information extraction process in the above step S102, which will not be repeated here.
[0163] Step T9, determining whether step T8 extracts the episode attribute information corresponding to the video to be processed; if so, executing step T10; if not, determining that the video to be processed is invalid.
[0164] Step T10: aggregate the valid videos to be processed into albums.
[0165] Specifically, valid videos to be processed are first categorized based on their author ID (i.e., the source tag information in FIG3 ). Then, videos with the same author and the same video IP (i.e., the work attribute information) are further categorized. This yields valid videos to be sorted based on a unique video author and video IP. The specific implementation of step T10 can be found in the description of step S103 above.
[0166] Step T11: Generate a video album.
[0167] Specifically, the implementation of step T11 can refer to the description of step S104 in the embodiment corresponding to FIG3 , which will not be described in detail here.
[0168] It can be seen that by adopting the method provided in the embodiment of the present application, the ordered album videos contained in the obtained video album set correspond to the same work attribute information and source tag information. When the query data matches the work attribute information and source tag information corresponding to the ordered album videos, the video album set can be displayed in the query result display box, realizing structured video output and improving the display effect of the video corresponding to the query data. The ordered album videos are sorted according to the episode attribute information in the video album set, and there is no need to click and watch one by one to determine the viewing order of the ordered album videos, thereby improving the presentation effect of the searched film and television commentary videos. Moreover, the present application can more accurately mine the work attribute information and episode attribute information of the video to be processed through video frame retrieval, title template matching and label propagation, thereby better ensuring the accuracy of the generated ordered album videos. Moreover, due to the progressive mining mechanism such as video frame retrieval, title template matching and label propagation, the work attribute information and episode attribute information can be mined in more videos to be processed, thereby ensuring the number of ordered album videos. Moreover, judging and detecting through the legal conditions of the number of episodes can better ensure that the number of episodes between the ordered album videos corresponding to a film or television work is continuous and complete, further ensuring the accuracy of the ordered album videos.
[0169] Further, please refer to Figure 5, which is a flow chart of a video data processing method provided by an embodiment of the present application. The video data processing method can be executed by a computer device, which can include a terminal device or a server as shown in Figure 1. The method can include the following steps S201-S204:
[0170] Step S201: Perform quality screening on a first initial video set to obtain M videos to be processed; the first initial video set includes at least two initial videos.
[0171] Specifically, in order to generate a higher quality video album set, the videos in the first initial video set may be quality screened to filter out videos of substandard quality. The quality screening process may include black edge detection, watermark detection, and clarity recognition.
[0172] Among them, black edge detection requires that the black edge ratio of the initial video cannot exceed a certain range, otherwise the content screen ratio is too small, affecting the user's viewing experience. Black edge detection mainly extracts frames in the initial video at a fixed sampling rate, and then sets the black edge ratio threshold to binarize the image, and detects the ratio of continuous black pixels in the video width / high, medium and low to filter the initial video. Among them, the black edge ratio threshold can be determined according to the length and width of the video. For example, the black edge ratio threshold corresponding to a short video can be 1 / 3, and the black edge ratio threshold corresponding to a small video can be 2 / 3. Among them, a short video refers to a video whose width is greater than its height; a small video refers to a video whose width is less than its height.
[0173] Watermark detection requires that the initial video contain no overly large watermarks, otherwise they would severely obscure the main video image. Watermark detection primarily determines candidate regions by comparing pixels between consecutive video frames. The video frames are then binarized using edge detection, mean filtering, and the Otsu threshold method. A connected domain algorithm and clustering algorithm are then used to identify the region with the largest connected area, which is considered the watermark. The watermark area is then compared to the frame area. If the watermark area exceeds 1 / 25, the watermark is considered excessively large and obscured.
[0174] Among them, clarity recognition refers to calculating the gradient between pixels in the video screen, calculating the global gradient mean, and then normalizing it to obtain clarity. The clarity can take values 0-4, with 4 representing the clearest. At this time, the clarity threshold can be set to 2, that is, the clarity corresponding to the initial video cannot be lower than 2.
[0175] It is understandable that the computer device may select one or more processing processes of black edge detection, watermark detection or clarity recognition to perform quality screening on the videos in the first initial video set, and may also add other quality screening processes according to actual conditions.
[0176] Specifically, if the three processing methods of black edge detection, watermark detection, and clarity recognition are used simultaneously, a feasible implementation process for quality screening of the first initial video set to obtain M videos to be processed can be as follows: obtaining the first initial video set; performing black edge detection on the first initial video set to obtain the black edge ratio corresponding to each initial video in the first initial video set; filtering the initial videos whose black edge ratio is greater than the black edge ratio threshold from the first initial video set to obtain the second initial video set; performing watermark detection on the second initial video set to obtain the watermark area ratio corresponding to each initial video in the second initial video set; filtering the initial videos whose watermark area ratio is greater than the watermark area ratio threshold from the second initial video set to obtain the third initial video set; performing clarity recognition on the third initial video set to obtain the clarity corresponding to each initial video in the third initial video set; filtering the initial videos whose clarity is lower than the clarity threshold from the third initial video set to obtain M videos to be processed. It can be understood that by filtering the initial videos layer by layer through the three filtering methods, the video quality of the remaining M videos to be processed is guaranteed to a certain extent, which can improve the album quality of the final generated video album set.
[0177] Step S202, feature extraction is performed on each of the M videos to be processed to obtain video attribute information corresponding to each video to be processed, and source label information corresponding to each video to be processed is obtained; the video attribute information includes work attribute information and episode attribute information.
[0178] Specifically, the implementation process of step S202 can refer to the implementation process of the above step S102, which will not be repeated here.
[0179] Step S203: Classify the M videos to be processed according to the source tag information to obtain an initial video set, and determine the videos to be processed in the initial video set that have the target work attribute information as the videos to be sorted; each video to be processed in the initial video set has the same source tag information; the work attribute information involved in the M videos to be processed includes the target work attribute information.
[0180] Specifically, the implementation process of step S203 can refer to the implementation process of the above step S103, which will not be repeated here.
[0181] Step S204, sorting the videos to be sorted according to the episode attribute information corresponding to the videos to be sorted to obtain sorted videos. If the episode attribute information corresponding to the sorted videos meets the legal episode condition, the sorted videos are determined to be ordered album videos, and a video album set containing the ordered album videos is generated; the video album set is used to be displayed in the query result display box when the query data matches the work attribute information or source tag information corresponding to the ordered album videos.
[0182] Specifically, the videos to be sorted are sorted according to the episode attribute information corresponding to the videos to be sorted to obtain sorted videos; the episode attribute information corresponding to the sorted videos is subjected to continuity detection to obtain a continuity detection result; if the continuity detection result is a continuous episode result, the sorted videos are subjected to video version identification processing according to the target work knowledge graph to obtain the target video version corresponding to the sorted videos; the target work knowledge graph is the work knowledge graph associated with the work attribute information corresponding to the sorted videos; in the target work knowledge graph, the total episode information corresponding to the sorted videos is determined according to the target video version; if the largest episode attribute information in the episode attribute information corresponding to the sorted videos is the same as the total episode information, then the episode attribute information corresponding to the sorted videos is determined to meet the episode legality condition, and the sorted videos are then determined to be ordered album videos; and a video album set containing ordered album videos is generated. In this case, the episode legality condition not only requires that the episodes between the sorted videos are continuous, but also requires that the last episode in the sorted videos corresponds to the last episode of the film and television work to which they belong, so as to better ensure the accuracy of the ordered album videos. The implementation process of the continuity detection can be referred to the description of step S104 in the embodiment corresponding to FIG. 3 above. Among them, the knowledge graph is a semantic network that describes various entities and concepts that exist in the real world, as well as the relationships between them. The work knowledge graph is a semantic network that describes a film or television work and the relationships between various entities related to the film or television work.
[0183] Optionally, when the episode attribute information corresponding to the sorted videos includes episode information or part information, after determining that the continuity test result is a continuous episode result, the first video ranked first in the sorted videos can be checked to see if it is the first video. That is, if the first video only has episode information, the first video's episode information is determined to be 1. If not, the sorted video is determined to be invalid. Then, it is determined whether the first video has part information. If so, the part information must be 1 or "up." Otherwise, the sorted video is considered invalid. If the first video ranked first in the sorted videos is the first video, the last video ranked last in the sorted videos is checked to see if it has part information. If so, the part information is checked to see if it represents the last part. If the part information contains "up" or "middle" or only the number "1," the last video is determined not to be the last part and the sorted video is determined to be invalid. Furthermore, if the part information corresponding to the sorted videos is of the N / M type, it is also necessary to determine whether the N of the last video in the sorted videos, i.e., the last video, is equal to M, such as 4 / 4. If not, the last video is determined not to be the last part, and the sorted video is determined to be invalid. The computer device can then check whether the title of each video in the sorted video contains "Grand Finale" more than once. If Grand Finale appears multiple times and no part information is present, the sorted video is determined to be invalid. It should be noted that if the computer device determines that a sorted video is invalid, it does not need to generate the corresponding video album set.
[0184] Specifically, the target work knowledge graph may include one or more video versions and a list of video objects corresponding to each video version; performing video version identification processing on the sorted video to obtain a feasible implementation process for the video version corresponding to the sorted video may be: performing object identification processing on the sorted video to obtain multiple video objects contained in the sorted video and the corresponding appearance time of each video object; obtaining R target video objects from multiple video objects according to the time sequence between the appearance times corresponding to each video object; R is a positive integer; determining the object overlap between the R target video objects and each video object list in the target work knowledge graph; object overlap refers to the overlap between the video objects contained in a video object list and the R target video objects; determining the video version corresponding to the video object list with the largest object overlap as the target video version corresponding to the sorted video. It can be understood that the same film and television work may have different actors performing the same work. In this case, the same film and television work has multiple video versions, and the actor lists corresponding to different video versions of the film and television work are very different. Therefore, we can first use object recognition technology to identify the R target video objects that appear the most times or appear for the longest time in the sorted video, and then calculate the object overlap between the R target video objects and the actor lists (i.e., video object lists) corresponding to each video version in the target work knowledge graph corresponding to the film and television work. For example, the R target video objects can be used as the actor list to be matched, and then the object overlap between the actor list to be matched and the actor list corresponding to a certain video version in the target work knowledge graph can be calculated. The video version corresponding to the video object list with the largest object overlap is the target video version corresponding to the sorted video.
[0185] After determining the target video version, the computer device can also obtain the total number of episodes corresponding to the target video version through the target work knowledge graph, and then compare it with the largest episode attribute information among the episode attribute information corresponding to the sorted videos to determine whether the sorted videos are complete. If the largest episode attribute information is not less than the total number of episodes corresponding to the target video version, the sorted videos can be determined as an ordered video album.
[0186] Optionally, if the maximum episode number attribute information is less than the total episode number information corresponding to the target video version, the computer device may further determine whether the time difference between the current system time and the release time of the target video version exceeds 90 days. If the time difference exceeds 90 days, the sorted video is determined to be invalid. If the time difference is less than 90 days, the sorted video may still be included in the ordered video album.
[0187] Specifically, when the number of ordered album videos is at least two, a feasible implementation process for generating a video album set containing ordered album videos can be: traverse at least two ordered album videos, and sequentially obtain the j-th ordered album video, where j is a positive integer; perform correlation matching on the video cover corresponding to the j-th ordered album video and the video title corresponding to the j-th ordered album video to obtain a correlation matching result; if the correlation matching result is a successful correlation matching result, the video cover corresponding to the j-th ordered album video is determined as the album video cover corresponding to the j-th ordered album video; if the correlation matching result is a failed correlation matching result, the j-th ordered album video is subjected to video frame screening processing to obtain a video frame picture that matches the video title corresponding to the j-th ordered album video, and the video frame picture is determined as the album video cover corresponding to the j-th ordered album video; when the album video cover corresponding to each ordered album video is obtained, a video album set containing the album video cover corresponding to each ordered album video is generated. In short, in order to better present the effect, the computer device can also select an album video cover for each ordered album video in the video album set. When the video album set is finally displayed, the original video cover of the ordered album video is no longer displayed, but the album video cover corresponding to the ordered album video is displayed. Among them, the video frame screening process is performed on the j-th ordered album video to obtain a video frame picture that matches the video title corresponding to the j-th ordered album video, and the feasible implementation process of determining the video frame picture as the album video cover corresponding to the j-th ordered album video can be: the top three (or other numbers, without limitation) video frames that are most relevant to the video title corresponding to the j-th ordered album video are screened through a graphic relevance model, and then the video frame picture with the highest quality is selected through an aesthetics model as the album video cover corresponding to the j-th ordered album video.
[0188] The video data processing method provided in the embodiment of the present application can help users understand a movie or TV series in a low-threshold, complete, fast and concise manner. It solves the problem that when users search for their favorite videos, they cannot find subsequent related content or the content is missing. It also solves the problem of misidentification of video titles and content and low video quality, thereby improving the overall user experience.
[0189] Please refer to Figure 6, which is a schematic diagram of the structure of a video data processing device provided in an embodiment of the present application. The video data processing device can be a computer program (including program code) running on a computer device, for example, the video data processing device is an application software; the device can be used to execute the corresponding steps of the data processing method provided in an embodiment of the present application. As shown in Figure 6, the video data processing device 1 may include: an acquisition module 11, a feature extraction module 12, a video determination module 13, and a generation module 14.
[0190] The acquisition module 11 is used to acquire M videos to be processed; M is a positive integer;
[0191] A feature extraction module 12 is configured to extract features from each of the M videos to be processed, obtain video attribute information corresponding to each video to be processed, and obtain source tag information corresponding to each video to be processed; the video attribute information includes work attribute information and episode attribute information;
[0192] The video determination module 13 is configured to classify the M videos to be processed according to the source tag information to obtain an initial video set, and determine the videos to be processed in the initial video set that have the target work attribute information as the videos to be sorted; each video to be processed in the initial video set has the same source tag information; and the work attribute information involved in the M videos to be processed includes the target work attribute information;
[0193] The generation module 14 is used to sort the videos to be sorted according to the episode attribute information corresponding to the videos to be sorted to obtain sorted videos. If the episode attribute information corresponding to the sorted videos meets the legal episode condition, the sorted videos are determined to be ordered album videos, and a video album set containing the ordered album videos is generated; the video album set is used to be displayed in the query result display box when the query data matches the work attribute information or source tag information corresponding to the ordered album videos.
[0194] Among them, the specific functional implementation of the acquisition module 11, the feature extraction module 12, the video determination module 13 and the generation module 14 can be found in the description of steps S101 to S104 in the corresponding embodiment of Figure 3, and will not be repeated here.
[0195] M videos to be processed include video M to be processed i , i is a positive integer less than or equal to M;
[0196] The feature extraction module 12 includes a first extraction unit 121 and a second extraction unit 122 .
[0197] The first extraction unit 121 is used to process the video M i Perform work attribute extraction and processing to obtain the video to be processed M i Corresponding work attribute information;
[0198] The second extraction unit 122 is used to process the video M i Perform episode attribute extraction and obtain the video to be processed M i The corresponding set attribute information.
[0199] The specific functional implementation of the first extraction unit 121 and the second extraction unit 122 can be found in the description of step S102 in the embodiment corresponding to FIG3 , and will not be repeated here.
[0200] The first extraction unit 121 includes a frame retrieval subunit 1211 .
[0201] Frame retrieval subunit 1211, used to process the video M i Perform sampling processing to obtain a video frame image;
[0202] The frame retrieval subunit 1211 is further configured to perform picture matching processing on the video frame image and the video works in the video work library, and obtain picture similarities between the video works in the video work library and the video frame image;
[0203] The frame retrieval subunit 1211 is further configured to determine the video work having the highest screen similarity to the video frame image as the target video work;
[0204] The frame retrieval subunit 1211 is further configured to determine the video work attribute information corresponding to the target video work as the video work to be processed if the picture similarity between the video frame image and the target video work is greater than or equal to the picture similarity threshold. i The corresponding work attribute information.
[0205] The specific functional implementation of the frame retrieval subunit 1211 can be found in the description of step S102 in the embodiment corresponding to FIG3 , and will not be repeated here.
[0206] Alternatively, the first extraction unit 121 can be specifically used to process the video M i Performing equal-interval sampling to obtain a plurality of video frame images, traversing the plurality of video frame images, and performing screen matching processing on the i-th video frame image among the plurality of video frame images with video works in the video work library, respectively, to obtain screen similarities between the video works in the video work library and the i-th video frame image; i is a positive integer less than or equal to the number of the plurality of video frame images;
[0207] The first extraction unit 121 is specifically configured to obtain the video work with the highest image similarity to the i-th video frame image as the pending video work corresponding to the i-th video frame image, mark the pending video work corresponding to the i-th video frame image, and after marking the pending video work corresponding to each of the multiple video frame images, determine the video work attribute information corresponding to the pending video work with the most marking times as the video work to be processed M. i The corresponding work attribute information.
[0208] The first extraction unit 121 includes a template matching subunit 1212 .
[0209] Template matching subunit 1212, used to obtain the video to be processed M i Corresponding video title information;
[0210] The template matching subunit 1212 is further configured to perform structural matching processing on the video title information and the title templates in the title template library to obtain structural similarities between the title templates in the title template library and the video title information.
[0211] The template matching subunit 1212 is further configured to determine the title template having the highest structural similarity with the video title information as the target title template;
[0212] The template matching subunit 1212 is further configured to extract information from the video title information according to the target title template if the structural similarity between the video title information and the target title template is greater than or equal to the structural similarity threshold, and obtain the video M to be processed. i The corresponding work attribute information.
[0213] The specific functional implementation of the template matching subunit 1212 can be found in the description of step S102 in the embodiment corresponding to FIG3 , and will not be repeated here.
[0214] The first extraction unit 121 includes a propagation matching subunit 1213 .
[0215] The propagation matching subunit 1213 is used to traverse and obtain the k-th sample video in the sample video library; k is a positive integer;
[0216] The propagation matching subunit 1213 is also used to process the video M i Perform screen matching with the kth sample video to obtain the video screen similarity;
[0217] The propagation matching subunit 1213 is also used to process the video M i The video title information of the kth sample video is similarly calculated with the video title information corresponding to the kth sample video to obtain the video title similarity;
[0218] The propagation matching subunit 1213 is also used to obtain the video M to be processed. i The video click log associated with the k-th sample video is analyzed and processed to obtain the video click similarity;
[0219] The propagation matching subunit 1213 is further configured to determine the video to be processed M based on the video screen similarity, video title similarity and video click similarity. i The video similarity between the kth sample video;
[0220] The propagation matching subunit 1213 is further configured to perform weighted processing on the video work confidence of the kth sample video for the associated work according to the video similarity if the video similarity is greater than the video similarity threshold, and obtain the video to be processed M i The work confidence level for the related works; the video work confidence level of the k-th sample video for the related works is used to represent the degree of confidence that the k-th sample video belongs to the related works;
[0221] The propagation matching subunit 1213 is further configured to determine the video work attribute information corresponding to the associated work as the video M to be processed if the work confidence is greater than or equal to the work confidence threshold. i The corresponding work attribute information.
[0222] The specific functional implementation of the propagation matching sub-unit 1213 can be found in the description of step S102 in the embodiment corresponding to FIG3 , and will not be repeated here.
[0223] The second extraction unit 122 includes a frame matching subunit 1221 .
[0224] The frame matching subunit 1221 is used to obtain the video to be processed M from the video work library. i The video work corresponding to the work attribute information is used as the video work to be matched;
[0225] The frame matching subunit 1221 is also used to process the video M i Perform equal-interval sampling processing to obtain video frame images;
[0226] The frame matching subunit 1221 is further configured to perform picture matching processing on the video frame image and the video work picture in the video work to be matched, so as to obtain the video work picture that matches the video frame image;
[0227] The frame matching subunit 1221 is further configured to determine the episode number information corresponding to the video work picture that matches the video frame image as the video to be processed. i The corresponding set attribute information.
[0228] The specific functional implementation of the frame matching subunit 1221 can refer to the description of step S102 in the embodiment corresponding to FIG3 , which will not be repeated here.
[0229] The second extraction unit 122 includes a title matching subunit 1222 .
[0230] Title matching subunit 1222 is used to process the video M i The cover image of the video layout character recognition process is performed to obtain the video to be processed M i Corresponding cover title information;
[0231] The title matching subunit 1222 is further configured to perform structural matching processing on the cover title information and the episode templates in the episode template library, respectively, to obtain structural similarities between the episode templates in the episode template library and the cover title information;
[0232] The title matching subunit 1222 is further configured to determine the episode template having the highest structural similarity with the cover title information as the target episode template;
[0233] The title matching subunit 1222 is further configured to extract information from the cover title information according to the target episode template if the structural similarity between the cover title information and the target episode template is greater than or equal to the structural similarity threshold, and obtain the video M to be processed. i The corresponding set attribute information.
[0234] The specific functional implementation of the title matching subunit 1222 can be found in the description of step S102 in the embodiment corresponding to FIG3 , and will not be repeated here.
[0235] The generation module 14 includes: a sorting unit 141 , a detection unit 142 , a version identification unit 143 , an episode determination unit 144 , a video determination unit 145 and an album generation unit 146 .
[0236] The sorting unit 141 is configured to sort the videos to be sorted according to the episode attribute information corresponding to the videos to be sorted, thereby obtaining sorted videos;
[0237] A detection unit 142 is configured to perform a continuity detection on the episode attribute information corresponding to the sorted videos to obtain a continuity detection result;
[0238] The version identification unit 143 is configured to, if the continuity detection result is a continuous episode result, perform video version identification processing on the sorted video according to the target work knowledge graph to obtain a target video version corresponding to the sorted video; the target work knowledge graph is a work knowledge graph associated with the work attribute information corresponding to the sorted video;
[0239] The episode number determination unit 144 is used to determine the total number of episodes corresponding to the sorted videos according to the target video version in the target work knowledge graph;
[0240] The video determining unit 145 is configured to determine that the episode number attribute information corresponding to the sorted videos satisfies the episode number legality condition if the largest episode number attribute information among the episode number attribute information corresponding to the sorted videos is the same as the total episode number information;
[0241] The video determination unit 145 is further configured to determine the sorted video as an ordered album video if the episode number attribute information corresponding to the sorted video meets the episode number legality condition;
[0242] The album generation unit 146 generates a video album set including ordered album videos.
[0243] Among them, the specific functional implementation methods of the sorting unit 141, the detection unit 142, the version identification unit 143, the episode determination unit 144, the video determination unit 145 and the album generation unit 146 can be found in the description of step S204 in the corresponding embodiment of Figure 5, and will not be repeated here.
[0244] The target work knowledge graph includes one or more video versions and a list of video objects corresponding to each video version;
[0245] The version identification unit 143 includes: an overlap determination subunit 1431 and a version determination subunit 1432 .
[0246] The overlap determination subunit 1431 is configured to perform object recognition processing on the sorted video to obtain a plurality of video objects contained in the sorted video and the corresponding appearance duration of each video object;
[0247] The overlap determination subunit 1431 is further configured to obtain R target video objects from the plurality of video objects according to the duration sequence of the appearance durations corresponding to each video object; R is a positive integer;
[0248] The overlap determination subunit 1431 is further configured to determine the object overlap between the R target video objects and each video object list in the target work knowledge graph; the object overlap refers to the overlap between the video objects included in a video object list and the R target video objects;
[0249] The version determination subunit 1432 is configured to determine the video version corresponding to the video object list with the largest object overlap as the target video version corresponding to the sorted videos.
[0250] The specific functional implementation of the overlap determination subunit 1431 and the version determination subunit 1432 can be found in the description of step S204 in the corresponding embodiment of FIG5 , and will not be repeated here.
[0251] The number of ordered album videos is at least two;
[0252] The album generation unit 146 includes a cover determination subunit 1461 and a generation subunit 1462 .
[0253] The cover determination subunit 1461 is used to traverse at least two ordered album videos and sequentially obtain the j-th ordered album video, where j is a positive integer;
[0254] The cover determination subunit 1461 is further configured to perform correlation matching on the video cover corresponding to the j-th ordered album video and the video title corresponding to the j-th ordered album video to obtain a correlation matching result;
[0255] The cover determination subunit 1461 is further configured to determine the video cover corresponding to the j-th ordered album video as the album video cover corresponding to the j-th ordered album video if the correlation matching result is a successful correlation matching result;
[0256] The cover determination subunit 1461 is further configured to, if the correlation matching result is a correlation matching failure result, perform video frame screening processing on the j-th ordered album video to obtain a video frame image that matches the video title corresponding to the j-th ordered album video, and determine the video frame image as the album video cover corresponding to the j-th ordered album video;
[0257] The generating sub-unit 1462 is used to generate a video album set including the album video cover corresponding to each ordered album video when the album video cover corresponding to each ordered album video is obtained.
[0258] Among them, the specific functional implementation of the cover determination subunit 1461 and the generation subunit 1462 can be found in the description of step S204 in the corresponding embodiment of Figure 5, and will not be repeated here.
[0259] The video data processing device 1 further includes a filtering module 15 .
[0260] A filtering module 15 is configured to obtain a first initial video set;
[0261] The filtering module 15 is further configured to perform black edge detection on the first initial video set to obtain a black edge ratio corresponding to each initial video in the first initial video set;
[0262] The filtering module 15 is further configured to filter out the initial videos having a black edge ratio greater than a black edge ratio threshold from the first initial video set, to obtain a second initial video set;
[0263] The filtering module 15 is further configured to perform watermark detection on the second initial video set to obtain a watermark area ratio corresponding to each initial video in the second initial video set;
[0264] The filtering module 15 is further configured to filter the initial videos having a watermark area ratio greater than a watermark area ratio threshold from the second initial video set to obtain a third initial video set;
[0265] The filtering module 15 is further configured to perform definition recognition on the third initial video set to obtain the definition corresponding to each initial video in the third initial video set;
[0266] The filtering module 15 is further configured to filter the initial videos whose definition is lower than the definition threshold from the third initial video set to obtain M videos to be processed.
[0267] The specific functional implementation of the filtering module 15 can be found in the description of step S204 in the embodiment corresponding to FIG5 , which will not be described in detail here.
[0268] Please refer to Figure 7, which is a structural diagram of a computer device provided in an embodiment of the present application. As shown in Figure 7, the video data processing device 1 in the embodiment corresponding to Figure 6 above can be applied to a computer device 1000, which may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. The communication bus 1002 is used to achieve connection and communication between these components. The user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may also be at least one storage device located away from the aforementioned processor 1001. As shown in FIG. 7 , the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0269] In the computer device 1000 shown in FIG7 , the network interface 1004 can provide a network communication element; the user interface 1003 is mainly used to provide an interface for user input; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0270] Get M videos to be processed; M is a positive integer;
[0271] Perform feature extraction on each of the M videos to be processed to obtain video attribute information corresponding to each video to be processed, and obtain source label information corresponding to each video to be processed; the video attribute information includes work attribute information and episode attribute information;
[0272] Classify M videos to be processed according to the source label information to obtain an initial video set, and determine the videos to be processed in the initial video set that have the target work attribute information as the videos to be sorted; each video to be processed in the initial video set has the same source label information; the work attribute information involved in the M videos to be processed includes the target work attribute information;
[0273] According to the episode attribute information corresponding to the video to be sorted, the video to be sorted is sorted to obtain the sorted video. If the episode attribute information corresponding to the sorted video meets the legal episode condition, the sorted video is determined to be an ordered album video, and a video album set containing the ordered album video is generated; the video album set is used to be displayed in the query result display box when the query data matches the work attribute information or source tag information corresponding to the ordered album video.
[0274] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the description of the video data processing method in any of the embodiments corresponding to Figures 3 and 5 above, which will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated here.
[0275] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the above-mentioned computer-readable storage medium stores a computer program executed by the video data processing device 1 mentioned above, and the above-mentioned computer program includes program instructions. When the above-mentioned processor executes the above-mentioned program instructions, it can execute the description of the above-mentioned video data processing method in any of the embodiments corresponding to Figures 3 and 5 above. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the embodiment of the computer-readable storage medium involved in this application, please refer to the description of the method embodiment of this application.
[0276] Further, please refer to Figure 8, which is a schematic diagram of the structure of another video data processing device provided in an embodiment of the present application. The above-mentioned video data processing device can be a computer program (including program code) running on a computer device, for example, the video data processing device is an application software; the device can be used to execute the corresponding steps of the method provided in an embodiment of the present application. As shown in Figure 8, the data processing device 2 can include: a first display module 21, a response module 22, and a second display module 23.
[0277] The first display module 21 is used to display the input target query data in the query box of the application page;
[0278] A response module 22 is configured to respond to a trigger operation on the target query data, and if the intent type of the target query data is a video intent type, display a recommendation result display area in the query result display box of the application page;
[0279] The second display module 23 is used to sequentially display the ordered album videos contained in the target video album set in the recommendation result display area; the target video album set is a video album set whose work attribute information or source tag information matches the target query data, and the target video album set includes one or more ordered album videos corresponding to the work attribute information; the display order of the ordered album videos with the same work attribute information is sorted according to the episode order between the corresponding episode attribute information; the ordered album videos in the target video album set belong to the commentary video type.
[0280] The specific functional implementation of the first display module 21, the response module 22 and the second display module 23 can be found in the scenario description in the corresponding embodiment of FIG2b, which will not be repeated here.
[0281] Further, please refer to Figure 9, which is a schematic diagram of the structure of another computer device provided in an embodiment of the present application. As shown in Figure 9, the video data processing device 2 in the embodiment corresponding to Figure 8 above can be applied to a computer device 2000, which may include: a processor 2001, a network interface 2004 and a memory 2005. In addition, the computer device 2000 also includes: a user interface 2003 and at least one communication bus 2002. The communication bus 2002 is used to achieve connection and communication between these components. The user interface 2003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 2003 may also include a standard wired interface or a wireless interface. The network interface 2004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface). The memory 2005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 2005 may also be at least one storage device located away from the aforementioned processor 2001. As shown in FIG9 , the memory 2005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0282] In the computer device 2000 shown in FIG9 , the network interface 2004 can provide network communication functions; the user interface 2003 is mainly used to provide an interface for user input; and the processor 2001 can be used to call the device control application stored in the memory 2005 to achieve:
[0283] Display the input target query data in the query box of the application page;
[0284] In response to a trigger operation for target query data, if the intent type of the target query data is a video intent type, a recommendation result display area is displayed in the query result display box of the application page;
[0285] In the recommendation result display area, the ordered album videos contained in the target video album set are displayed sequentially; the target video album set is a video album set whose work attribute information or source tag information matches the target query data, and the target video album set includes one or more ordered album videos corresponding to the work attribute information; the display order of the ordered album videos with the same work attribute information is sorted according to the episode number order between the corresponding episode attribute information; the ordered album videos in the target video album set belong to the commentary video type.
[0286] It should be understood that the computer device 2000 described in the embodiments of the present application can execute the description of the video data processing method in the various embodiments described above, and can also execute the description of the video data processing device 2 in the embodiments corresponding to Figures 3 and 5 above, and will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated here.
[0287] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores the computer program executed by the video data processing device 2 mentioned above. When the processor loads and executes the computer program, it can perform the description of the video data processing method in any of the above embodiments. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0288] The computer-readable storage medium may be the video data processing device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Furthermore, the computer-readable storage medium may include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0289] In addition, it should be noted that embodiments of the present application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method provided in any of the embodiments corresponding to FIG. 3 or FIG. 5 .
[0290] The terms "first," "second," and the like in the description, claims, and drawings of the embodiments of this application are used to distinguish between different objects, rather than to describe a specific order. Furthermore, the terms "comprises" and "comprising" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or device comprising a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other steps and units inherent to such process, method, apparatus, product, or device.
[0291] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example in terms of network elements. Whether these network elements are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described network elements for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0292] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.< / ip>
Claims
1. A video data processing method, characterized in that: include: Get M videos to be processed; M is a positive integer; Perform feature extraction on the M videos to be processed respectively, obtain video attribute information corresponding to each video to be processed respectively, and obtain source label information corresponding to each video to be processed respectively; the video attribute information includes work attribute information and episode attribute information; Classifying the M videos to be processed according to the source tag information to obtain an initial video set, and determining the videos to be processed having target work attribute information in the initial video set as videos to be sorted; Each to-be-processed video in the initial video set has the same source tag information; the work attribute information involved in the M to-be-processed videos includes the target work attribute information; According to the episode attribute information corresponding to the video to be sorted, the video to be sorted is sorted to obtain a sorted video; if the episode attribute information corresponding to the sorted video meets the legal condition of the episode, the sorted video is determined to be an ordered album video, and a video album set containing the ordered album video is generated; the video album set is used to be displayed in the query result display box when the query data matches the work attribute information or source tag information corresponding to the ordered album video.
2. The method according to claim 1, characterized in that: The M videos to be processed include the video M to be processed i , i is a positive integer less than or equal to M; The feature extraction is performed on the M videos to be processed respectively to obtain video attribute information corresponding to each video to be processed, including: For the video M to be processed i Perform work attribute extraction and processing to obtain the video M to be processed i The corresponding work attribute information; For the video M to be processed i Perform episode attribute extraction processing to obtain the video to be processed M i The corresponding set attribute information.
3. The method according to claim 1 or 2, characterized in that: The to-be-processed video M i Perform work attribute extraction and processing to obtain the video M to be processed i The corresponding work attribute information includes: For the video M to be processed i Perform sampling processing to obtain a video frame image; Performing picture matching processing on the video frame image and the video works in the video work library respectively, to obtain picture similarities between the video works in the video work library and the video frame image respectively; Determine the video work having the highest screen similarity with the video frame image as the target video work; If the picture similarity between the video frame image and the target video work is greater than or equal to the picture similarity threshold, the video work attribute information corresponding to the target video work is determined as the video to be processed. i The corresponding work attribute information.
4. The method according to any one of claims 1 to 3, characterized in that: The to-be-processed video M i Perform work attribute extraction and processing to obtain the video M to be processed i The corresponding work attribute information includes: For the video M to be processed i Performing equal-interval sampling processing to obtain multiple video frame images; Traversing the multiple video frame images, performing screen matching processing on the i-th video frame image among the multiple video frame images and the video works in the video work library, respectively, to obtain screen similarities between the video works in the video work library and the i-th video frame image, respectively; i is a positive integer less than or equal to the number of the multiple video frame images; Obtaining a video work having the highest screen similarity with the i-th video frame image as the pending video work corresponding to the i-th video frame image, and marking the pending video work corresponding to the i-th video frame image; When the pending video works corresponding to each video frame image in the plurality of video frame images are marked, the video work attribute information corresponding to the pending video work with the largest number of markings is determined as the video work to be processed. i The corresponding work attribute information.
5. The method according to any one of claims 1 to 4, characterized in that: The to-be-processed video M i Perform work attribute extraction and processing to obtain the video M to be processed i The corresponding work attribute information includes: Get the video M to be processed i The corresponding video title information; Performing structural matching processing on the video title information and the title templates in the title template library respectively, to obtain the structural similarity between the title templates in the title template library and the video title information respectively; Determine the title template with the highest structural similarity to the video title information as the target title template; If the structural similarity between the video title information and the target title template is greater than or equal to the structural similarity threshold, the video title information is subjected to information extraction processing according to the target title template to obtain the video M to be processed. i The corresponding work attribute information.
6. The method according to any one of claims 1 to 5, characterized in that: The to-be-processed video M i Perform work attribute extraction and processing to obtain the video M to be processed i The corresponding work attribute information includes: Traverse and obtain the kth sample video in the sample video library; k is a positive integer; For the video M to be processed i Performing picture matching processing with the k-th sample video to obtain video picture similarity; For the video M to be processed i The video title information of the kth sample video is similarly calculated with the video title information corresponding to the kth sample video to obtain the video title similarity; Get the video M to be processed i The video click log associated with the k-th sample video, performing click analysis on the video click log to obtain the video click similarity; Determine the video M to be processed according to the video picture similarity, the video title similarity and the video click similarity i The video similarity between the k-th sample video and the k-th sample video; If the video similarity is greater than the video similarity threshold, weighted processing is performed on the video work confidence of the kth sample video for the associated work according to the video similarity to obtain the to-be-processed video M i The work confidence level for the associated work; the video work confidence level of the k-th sample video for the associated work is used to characterize the credibility of the k-th sample video belonging to the associated work; If the work confidence is greater than or equal to the work confidence threshold, the video work attribute information corresponding to the associated work is determined as the video to be processed M i The corresponding work attribute information.
7. The method according to any one of claims 1 to 6, characterized in that: The to-be-processed video M i Perform episode attribute extraction processing to obtain the video to be processed M i The corresponding set attribute information includes: From the video work library, obtain the video M to be processed i The video work corresponding to the work attribute information is used as the video work to be matched; For the video M to be processed i Perform sampling processing to obtain a video frame image; Performing picture matching processing on the video frame image and the video work picture in the video work to be matched, to obtain the video work picture matching the video frame image; The episode number information corresponding to the video work picture matching the video frame image is determined as the video to be processed M i The corresponding set attribute information.
8. The method according to any one of claims 1 to 7, characterized in that: The to-be-processed video M i Perform episode attribute extraction processing to obtain the video to be processed M i The corresponding set attribute information includes: For the video M to be processed i The cover image of the video layout character recognition process is performed to obtain the video to be processed M i Corresponding cover title information; Performing structural matching processing on the cover title information and the episode templates in the episode template library respectively, to obtain the structural similarity between the episode templates in the episode template library and the cover title information respectively; Determine the episode template with the highest structural similarity to the cover title information as the target episode template; If the structural similarity between the cover title information and the target episode template is greater than or equal to the structural similarity threshold, the cover title information is extracted according to the target episode template to obtain the video M to be processed. i The corresponding set attribute information.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: Performing continuity detection on the episode attribute information corresponding to the sorted videos to obtain a continuity detection result; If the continuity detection result is a continuous result of the number of episodes, the video version identification processing is performed on the sorted video according to the target work knowledge graph to obtain the target video version corresponding to the sorted video; the target work knowledge graph is the work knowledge graph associated with the work attribute information corresponding to the sorted video; In the target work knowledge graph, determining the total number of episodes corresponding to the sorted videos according to the target video version; If the largest episode attribute information among the episode attribute information corresponding to the sorted videos is the same as the total episode information, it is determined that the episode attribute information corresponding to the sorted videos meets the episode legality condition.
10. The method according to any one of claims 1 to 9, characterized in that: The target work knowledge graph includes one or more video versions and a list of video objects corresponding to each video version; The performing video version identification processing on the sorted videos according to the target work knowledge graph to obtain the target video version corresponding to the sorted videos includes: Performing object recognition processing on the sorted video to obtain a plurality of video objects contained in the sorted video and the appearance duration corresponding to each video object; According to the duration sequence between the appearance durations corresponding to each of the video objects, R target video objects are obtained from the multiple video objects; R is a positive integer; Determine the object overlap between the R target video objects and each video object list in the target work knowledge graph; the object overlap refers to the overlap between the video objects included in a video object list and the R target video objects; The video version corresponding to the video object list with the largest object overlap is determined as the target video version corresponding to the sorted video.
11. The method according to any one of claims 1 to 10, characterized in that: The number of the ordered album videos is at least two; generating a video album set containing the ordered album videos comprises: Traverse at least two ordered album videos and sequentially obtain the j-th ordered album video, where j is a positive integer; Perform relevance matching on the video cover corresponding to the j-th ordered album video and the video title corresponding to the j-th ordered album video to obtain a relevance matching result; If the relevance matching result is a relevance matching success result, the video cover corresponding to the j-th ordered album video is determined as the album video cover corresponding to the j-th ordered album video; If the relevance matching result is a relevance matching failure result, a video frame screening process is performed on the j-th ordered album video to obtain a video frame picture that matches the video title corresponding to the j-th ordered album video, and the video frame picture is determined as the album video cover corresponding to the j-th ordered album video; When the album video cover corresponding to each ordered album video is obtained, a video album set containing the album video cover corresponding to each ordered album video is generated.
12. The method according to any one of claims 1 to 11, characterized in that: Also includes: Obtaining a first initial video set; Performing black edge detection on the first initial video set to obtain a black edge ratio corresponding to each initial video in the first initial video set; From the first initial video set, filter the initial videos whose black edge ratio is greater than a black edge ratio threshold to obtain a second initial video set; Performing watermark detection on the second initial video set to obtain a watermark area ratio corresponding to each initial video in the second initial video set; From the second initial video set, filter the initial videos whose watermark area ratio is greater than the watermark area ratio threshold to obtain a third initial video set; Performing definition recognition on the third initial video set to obtain the definition corresponding to each initial video in the third initial video set; From the third initial video set, initial videos whose definition is lower than a definition threshold are filtered to obtain M videos to be processed.
13. A video data processing method, characterized in that: include: Display the input target query data in the query box of the application page; In response to a trigger operation on the target query data, if the intent type of the target query data is a video intent type, displaying a recommendation result display area in a query result display box on the application page; In the recommendation result display area, sequentially display the ordered album videos included in the target video album set; The target video album set is a video album set whose work attribute information or source tag information matches the target query data, and the target video album set includes ordered album videos corresponding to one or more work attribute information; the display order of ordered album videos with the same work attribute information is sorted according to the episode order between the corresponding episode attribute information; the ordered album videos in the target video album set belong to the commentary video type.
14. A video data processing device, characterized in that: include: An acquisition module, used to acquire M videos to be processed; M is a positive integer; A feature extraction module is used to extract features from the M videos to be processed respectively, obtain video attribute information corresponding to each video to be processed respectively, and obtain source tag information corresponding to each video to be processed respectively; the video attribute information includes work attribute information and episode attribute information; A video determination module, configured to classify the M videos to be processed according to the source tag information to obtain an initial video set, and determine the videos to be processed having target work attribute information in the initial video set as videos to be sorted; Each to-be-processed video in the initial video set has the same source tag information; the work attribute information involved in the M to-be-processed videos includes the target work attribute information; A generation module is used to sort the videos to be sorted according to the episode attribute information corresponding to the videos to be sorted, so as to obtain sorted videos; if the episode attribute information corresponding to the sorted videos meets the legal episode condition, the sorted videos are determined to be ordered album videos, and a video album set containing the ordered album videos is generated; the video album set is used to be displayed in a query result display box when the query data matches the work attribute information or source tag information corresponding to the ordered album videos.
15. A computer device, characterized in that: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store program code, and the processor is used to call the program code to execute the method described in any one of claims 1-13.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the method according to any one of claims 1 to 13.
17. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 13 can be performed.
Citation Information
Patent Citations
Retrieve data ordering method and device
CN102929874A
Method and device for creating video index table and method and device for recommending video
CN104008139A
A sorting method and device for video search for series
CN106033417A
Video recommendation method and device, electronic equipment and storage medium
CN112015948A
Video data processing method, device and equipment and readable storage medium
CN116980646A
