Method and system for generating activity battle reports based on real-time data

By extracting key sentences from the commentary data and establishing a corresponding relationship with the video frames, combined with natural language processing, event battle reports are generated, which solves the problem that existing technology cannot meet user needs, realizes automated and personalized battle report generation, and improves the user experience. .

CN118626676BActive Publication Date: 2024-10-18CHENGDU MOSHENG TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411095429.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-18
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Existing technology cannot generate activity battle reports that meet user needs, and cannot achieve automated and personalized battle report generation.

Method used

The server module extracts key sentences from the commentary data, establishes corresponding relationships with video frames, generates activity information, and combines natural language processing to generate activity reports to meet the individual needs of users.

Benefits of technology

It has realized the automatic generation of event battle reports without manual participation, and can provide personalized battle report experience for different users, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626676B_ABST
    Figure CN118626676B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of data processing technology, and specifically relates to a method and system for generating an activity report based on real-time data, the method comprising: a server module extracts a number of key sentences from the commentary data in the order of the commentary time, and sequentially establishes a corresponding relationship between the several key sentences and the corresponding video frames in the video data; the server module extracts an activity sentence from a preset area contained in the video frame for each video frame in the video data, generates activity information according to the activity sentence, establishes a corresponding relationship between the activity information and the video frame, and also determines the frame category to which the video frame belongs, and establishes a corresponding relationship between the frame category and the video frame; the server module generates video clip data from the video data according to the search sentence, and generates an activity report by combining the video clip data with the article data obtained by performing natural language processing on the commentary data. The present invention can generate an activity report that meets user needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and in particular relates to a method and system for generating activity reports based on real-time data. Background Art

[0002] With the continuous development of computer application technology, it is becoming more and more common to generate event reports based on various real-time data generated at the event site. Event reports can help people quickly understand event information.

[0003] The prior art includes a Chinese patent application with publication number CN109740123A, which provides a method for generating sports event reports using real-time data. The method includes: using an extraction model to extract key events from real-time data, and then using a generative model to translate each extracted structured key event into a report-style language, and finally splicing these sentences into a report according to the timeline. The patent application extracts key events from structured real-time data. The real-time data structure is standardized and the content is accurate, so the extraction effect is good and can meet the needs of practical applications. In addition, the prior art also has a Chinese patent application with publication number CN117313747A, which proposes a method for generating sports reports from sports event commentary, the method comprising: inputting the sports event commentary sentences into a de-redundant device sentence by sentence to obtain de-redundant sentences, and then inputting the de-redundant sentences into a rewriter to obtain sports reports, the training process comprising temporally pairing the sports event commentary sentences and the sports report sentences; assigning labels to the paired sentences in the time pairing set to obtain a set of paired sentences with labels; inputting the set of sports event commentary sentences with labels into the de-redundant device for training; replacing the named entities in the paired sentences with tokens, and inputting the replaced set of de-redundant sentences into the rewriter for training, and the practicality of this patent application is high.

[0004] However, the above patent applications are unable to generate activity reports that meet user needs. Therefore, the present invention provides a method and system for generating activity reports based on real-time data. Summary of the invention

[0005] In the present invention, the server module extracts key sentences from the commentary data, establishes a corresponding relationship between the key sentences and the video frames, extracts activity sentences from the video frames, generates activity information according to the activity sentences, establishes a corresponding relationship between the activity information and the video frames, and further determines the frame category to which the video frames belong, establishes a corresponding relationship between the frame category and the video frames, thereby generating video clip data from the video data according to the search sentence, and combining the video clip data with the article data obtained by performing natural language processing on the commentary data to generate an activity report. The present invention aims to automatically generate an activity report that can meet the individual needs of users.

[0006] In order to achieve the above-mentioned invention object, the present invention provides the following method for generating an activity report based on real-time data, which mainly includes the following steps:

[0007] The server module obtains real-time commentary data and real-time video data of the activity from the on-site module, and extracts a plurality of key sentences from the commentary data in the order of commentary time, and sequentially establishes correspondence between the plurality of key sentences and corresponding video frames in the video data;

[0008] The server module extracts an activity statement from a preset area contained in each video frame in the video data, generates activity information according to the activity statement, and establishes a corresponding relationship between the activity information and the video frame. The server module also determines a frame category to which the video frame belongs for each video frame in the video data, and establishes a corresponding relationship between the frame category and the video frame.

[0009] The user module sends an activity report acquisition request to the server module, and the activity report acquisition request includes a search statement specified by the user. The server module generates video clip data from the video data based on the search statement, combines the video clip data with the article data obtained by natural language processing of the commentary data to generate an activity report, and sends the activity report to the user module for display.

[0010] As a preferred technical solution of the present invention, the server module pre-sets a number of frame categories, and the number of frame categories include a key frame category and a non-key frame category.

[0011] As a preferred technical solution of the present invention, the server module generates video segment data from video data according to the search statement, including the following steps:

[0012] The server module searches for a key sentence corresponding to the search sentence among a plurality of key sentences extracted from the commentary data, and simultaneously determines a video frame in the video data corresponding to the key sentence;

[0013] The server module, based on the search sentence and the activity information corresponding to each video frame in the video data, combines a plurality of video frames before the video frame corresponding to the key sentence, a plurality of video frames after the video frame corresponding to the key sentence, and the video frame corresponding to the key sentence in the video data into intermediate video segment data;

[0014] The server module checks whether the frame category corresponding to each video frame in the intermediate video segment data is a non-key frame category, and the server module deletes the video frames whose frame category is the non-key frame category from the intermediate video segment data to obtain the video segment data.

[0015] As a preferred technical solution of the present invention, the preset area contained in the video frame refers to a video frame area in the video frame including an explanatory sentence composed of several Chinese characters, wherein the explanatory sentence is used to explain the activity moment corresponding to the video frame.

[0016] As a preferred technical solution of the present invention, the server module extracts the active sentence from the preset area contained in the video frame, comprising the following steps:

[0017] The server module divides the picture of the explanation sentence into a plurality of pictures of Chinese characters in a preset area included in the video frame in order from left to right, and determines the distance values ​​between the left and right ends of the Chinese characters in the pictures of the plurality of Chinese characters, and calculates the average value of all the distance values ​​to obtain an average distance value;

[0018] For each Chinese character image, the server module determines whether the absolute value of the difference between the distance value corresponding to the Chinese character image and the average distance value is less than a preset threshold value. If it is greater than or equal to the threshold value, the server module records the Chinese character image as a marked image. If it is less than the threshold value, the server module automatically identifies the Chinese character image to obtain a Chinese character recognition result.

[0019] The server module calculates the accuracy of each Chinese character recognition result, and determines whether the accuracy of the Chinese character recognition result is greater than or equal to a preset accuracy threshold. If it is less than, the image of the Chinese character corresponding to the Chinese character recognition result is recorded as a marked image, and the Chinese character recognition result is deleted. If it is greater than or equal to, the Chinese character recognition result is retained.

[0020] As a preferred technical solution of the present invention, the server module extracts the active sentence from the preset area included in the video frame, and further includes the following steps:

[0021] The server module adds the Chinese character recognition result corresponding to the picture of the Chinese character at the position where the picture of the Chinese character appears, and adds a placeholder symbol at the position where the mark picture appears, based on the position where each Chinese character picture and each mark picture appear in the picture of the explanation sentence, to generate an intermediate active sentence;

[0022] The server module performs word segmentation processing on the intermediate active sentence in order from left to right, obtains a plurality of words in turn, records each word composed of Chinese characters as a final word, and for each word composed of Chinese characters and placeholders, the server module retrieves a plurality of candidate words matching the word in the database;

[0023] For each of the several candidate words consisting of Chinese characters and placeholder symbols, the server module divides the candidate words into a first word part and a second word part, the first word part corresponds to the Chinese character recognition result, and the second word part corresponds to the placeholder symbol. The server module calculates the similarity between the features of the Chinese characters in the marked image corresponding to the second word part and the features of the Chinese characters in the second word part, and takes the candidate word corresponding to the maximum similarity as the final word, and the server module replaces each word in the intermediate active sentence with the corresponding final word to obtain the active sentence.

[0024] As a preferred technical solution of the present invention, the total number of placeholder symbols added at the position where the marked image appears is determined by the server module according to the distance value between the left and right ends of the Chinese characters in the marked image and the average distance value.

[0025] As a preferred technical solution of the present invention, each word belongs to one of the following two cases: Case A: the word is composed of several Chinese characters; Case B: the word is composed of several Chinese characters and several placeholder symbols.

[0026] As a preferred technical solution of the present invention, when the total number of candidate words corresponding to the maximum similarity is greater than one, the server module combines each candidate word with an adjacent final word to obtain several word combinations, determines the historical number of occurrences of the several word combinations respectively, selects the word combination corresponding to the largest number of historical occurrences, and uses the word part of the word combination corresponding to the candidate word as the final word.

[0027] The present invention also provides a system for generating activity reports based on real-time data, which mainly includes the following modules:

[0028] The on-site module is used to collect real-time commentary data of the event, as well as real-time video data of the event;

[0029] The server module is used to extract a number of key sentences from the commentary data in the order of the commentary time, establish corresponding relationships between the key sentences and the corresponding video frames in the video data in turn, and for each video frame in the video data, extract an activity sentence from a preset area contained in the video frame, generate activity information according to the activity sentence, establish a corresponding relationship between the activity information and the video frame, and for each video frame in the video data, determine the frame category to which the video frame belongs, establish a corresponding relationship between the frame category and the video frame, and further for generating video clip data from the video data according to the search sentence, combining the video clip data with the article data obtained by performing natural language processing on the commentary data to generate an activity report, and sending the activity report to the user module;

[0030] The user module is used to send an activity report acquisition request to the server module and to display the activity report.

[0031] Compared with the prior art, the beneficial effects of the present invention are at least as follows:

[0032] In the present invention, first, the server module extracts several key sentences from the explanation data according to the order of the explanation time, and sequentially establishes corresponding relationships between several key sentences and corresponding video frames in the video data. Secondly, the server module extracts active sentences from the preset area contained in the video frame for each video frame in the video data, generates activity information according to the active sentences, establishes corresponding relationships between the activity information and the video frame, and the server module also determines the frame category to which the video frame belongs for each video frame in the video data, and establishes corresponding relationships between the frame category and the video frame. Finally, the user module sends an activity report acquisition request including a search statement to the server module, and the server module generates video clip data from the video data, combines the video clip data with the article data obtained by performing natural language processing on the explanation data to generate an activity report, and sends the activity report to the user module for display. Through the present invention, not only can the activity report be generated automatically and conveniently without manual participation, but also the activity report that meets the individual needs of different users can be generated, and a better experience can be provided for different users. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flowchart of the steps of the method for generating an activity report based on real-time data of the present invention;

[0034] Figure 2 This is a structural diagram of the system for generating activity reports based on real-time data according to the present invention. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0036] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0037] The present invention provides Figure 1The method for generating an activity report based on real-time data is mainly implemented by executing the following steps:

[0038] Step 1: The server module obtains real-time commentary data and real-time video data of the activity from the on-site module, and the server module extracts a number of key sentences from the commentary data in the order of commentary time, and sequentially establishes a correspondence between the key sentences and corresponding video frames in the video data;

[0039] Step 2: The server module extracts an activity statement from a preset area contained in each video frame in the video data, generates activity information according to the activity statement, establishes a corresponding relationship between the activity information and the video frame, and the server module also determines a frame category to which the video frame belongs for each video frame in the video data, and establishes a corresponding relationship between the frame category and the video frame;

[0040] Step 3: The user module sends an activity report acquisition request to the server module, the activity report acquisition request includes a search statement specified by the user, and the server module generates video clip data from the video data according to the search statement, combines the video clip data with the article data obtained by performing natural language processing on the commentary data to generate an activity report, and sends the activity report to the user module for display;

[0041] Furthermore, the server module pre-sets a number of frame categories, and the number of frame categories include a key frame category and a non-key frame category.

[0042] Specifically, in step 1, the server module obtains real-time commentary data of the activity, and extracts multiple key sentences from the commentary data in order of commentary time from first to last. The key sentences record key events in the activity process. For example, in a basketball game, the commentator explains the activity process, then the multiple key sentences extracted from the commentary data can be "Team A's score lags behind Team B's score", "Team A's score surpasses Team B's score", "Team A wins", etc., and establishes corresponding relationships between the multiple key sentences and the corresponding video frames in the video data. If the event occurring in the video frame is the same as the key event recorded by the key sentence, then it is considered that the video frame and the key sentence are corresponding. When there are multiple video frames corresponding to the key sentence, one of the video frames can be arbitrarily selected to establish a corresponding relationship with the key sentence. In step 2, for each video frame in the video data, the server module extracts the activity sentence from the preset area contained in the video frame. The specific process will be described below. The activity information is generated according to the activity sentence. It can be realized by natural language processing. It will not be repeated here. The activity information is established in a corresponding relationship with the video frame, that is, each video frame has corresponding activity information. The activity information can be understood as a short sentence that can express the core meaning of the activity sentence. For example, in a basketball game, the activity information can be the score between Team A and Team B, as well as the athlete who scored, etc. For the video data For each video frame in the data, the server module also determines the frame category to which the video frame belongs, and establishes a corresponding relationship between the frame category and the video frame, wherein a plurality of frame categories are set in advance, including a key frame category and a non-key frame category. The scenes in the video frames belonging to the key frame category are more important than the scenes in the video frames belonging to the non-key frame category. For example, in a basketball game, the scenes in the video frames belonging to the key frame category may be the game scenes of the athletes, etc., and the scenes in the video frames belonging to the non-key frame category may be the distant view of the game venue, the halftime scene, etc. The classification of the video frames into the frame categories to which they belong can be achieved through the machine learning model in the prior art, which will not be repeated here. In step 3, the user module sends a request to the server module to obtain the frame category. The server module sends an activity report acquisition request, wherein the activity report acquisition request includes a search statement specified by the user, and the search statement can indicate the content of the activity report that the user wants to see. The server module generates video clip data from the video data based on the search statement. The specific process will be described below. The video clip data can meet the user's requirements for the content of the activity report. The activity report is generated by combining the video clip data with the article data obtained by natural language processing of the commentary data, and the activity report is sent to the user module for display. The activity report can be specifically displayed in the form of a web page, so that different user modules can display activity reports with different contents, while meeting the different needs of different users for activity reports.

[0043] Furthermore, the server module generates video segment data from the video data according to the search statement, including the following steps:

[0044] Step 1: The server module searches for a key sentence corresponding to the search sentence from a plurality of key sentences extracted from the commentary data, and simultaneously determines a video frame in the video data corresponding to the key sentence;

[0045] Step 2: Based on the search sentence and the activity information corresponding to each video frame in the video data, the server module combines several video frames before the video frame corresponding to the key sentence, several video frames after the video frame corresponding to the key sentence, and the video frame corresponding to the key sentence in the video data to form the intermediate video segment data;

[0046] Step 3: The server module checks whether the frame category corresponding to each video frame in the intermediate video segment data is a non-key frame category, and the server module deletes the video frames whose frame category is a non-key frame category from the intermediate video segment data to obtain the video segment data.

[0047] Specifically, the process of generating video clip data is introduced here. In step 1, the server module searches for a key sentence corresponding to the search sentence in multiple key sentences, wherein the multiple key sentences are extracted from the commentary data. For example, in a basketball game activity, the search sentence specified by the user is "Team A overtakes Team B". Continuing with the above example, the multiple key sentences extracted include "Team A's score lags behind Team B's score", "Team A's score overtakes Team B's score", and "Team A wins". Then "Team A's score overtakes Team B's score" is the key sentence corresponding to the search sentence specified by the user. Then the server module determines the video frame in the video data corresponding to the found key sentence. In step 2, the server module generates intermediate video clip data based on the search sentence and the activity information corresponding to each video frame in the video data. The intermediate video clip data includes the video frame corresponding to the found key sentence, multiple video frames before the video frame corresponding to the found key sentence, and before the video frame corresponding to the found key sentence. The multiple video frames after the video frame corresponding to the found key sentence, continuing with the above example, the search sentence specified by the user is "Team A overtakes Team B", and the activity information of each video frame records the scores of Team A and Team B. Then the multiple video frames before the video frame corresponding to the found key sentence correspond to the situation that the score of Team A is lower than the score of Team B, and the multiple video frames after the video frame corresponding to the found key sentence correspond to the situation that the score of Team A is higher than the score of Team B. This can not only make the content of the intermediate video segment data meet the user's requirements, but also ensure the story of the intermediate video segment data and enhance the viewing experience. In step 3, the server module checks whether the frame category corresponding to each video frame in the intermediate video segment data is a non-key frame category. Because it is not meaningful to display video frames belonging to the non-key frame category, video frames with a frame category of the non-key frame category can be deleted from the intermediate video segment data, and then the video segment data is obtained, which reduces the data volume of the video segment data and is more convenient for generating activity battle reports.

[0048] Furthermore, the preset area contained in the video frame refers to a video frame area in the video frame including an explanation sentence composed of a plurality of Chinese characters, wherein the explanation sentence is used to explain the activity moment corresponding to the video frame.

[0049] Specifically, the video frame can be understood as a picture. The preset area occupies a part of the video frame, generally the lower area of ​​the video frame. The preset area includes an explanatory sentence composed of multiple Chinese characters. The preset area can correspond to the subtitle area in the video frame. The function of the explanatory sentence is to explain the activity moment corresponding to the video frame. For example, in a basketball game, the explanatory sentence can explain the athletes in the game and the scores of each team.

[0050] Furthermore, the server module extracts the active sentence from the preset area included in the video frame, including the following steps:

[0051] Step 1, the server module divides the picture of the explanation sentence into a plurality of pictures of Chinese characters in a preset area included in the video frame in order from left to right, and determines the distance value between the left and right ends of the Chinese characters in the pictures of the plurality of Chinese characters, and calculates the average value of all the distance values ​​to obtain an average distance value;

[0052] Step 2: For each Chinese character image, the server module determines whether the absolute value of the difference between the distance value corresponding to the Chinese character image and the average distance value is less than a preset threshold value. If it is greater than or equal to the threshold value, the server module records the Chinese character image as a marked image. If it is less than the threshold value, the server module automatically identifies the Chinese character image to obtain a Chinese character recognition result.

[0053] Step 3: The server module calculates the accuracy of each Chinese character recognition result, and determines whether the accuracy of the Chinese character recognition result is greater than or equal to a preset accuracy threshold. If it is less than, the image of the Chinese character corresponding to the Chinese character recognition result is recorded as a marked image, and the Chinese character recognition result is deleted. If it is greater than or equal to, the Chinese character recognition result is retained.

[0054] Specifically, the process of extracting active sentences is introduced here. In step 1, in a preset area included in a video frame, a server module divides the picture of the explanation sentence into multiple pictures of Chinese characters in order from left to right. Specifically, the automatic division can be performed according to the gaps between different Chinese characters. In the pictures of multiple Chinese characters, the distance values ​​between the left and right ends of the Chinese characters are respectively determined, and then the average of all the distance values ​​is calculated to obtain the average distance value. In step 2, for each picture of a Chinese character, the server module determines whether the absolute value of the difference between the distance value corresponding to the picture of the Chinese character and the average distance value is less than a set threshold value. If it is greater than or equal to, it means that there are multiple Chinese characters in the picture of the Chinese character that are difficult to be divided. The reason for the difficulty in division may be that the gaps between different Chinese characters are not obvious, so it is difficult to accurately identify the Chinese characters. There are multiple Chinese characters in the picture, and the picture of the Chinese character is recorded as a marked picture. If it is less than, it means that there is only one Chinese character in the picture of the Chinese character, and it is easy to obtain accurate Chinese character recognition results. Therefore, the picture of the Chinese character is automatically recognized to obtain the Chinese character recognition result. In step 3, for each Chinese character recognition result, the server module calculates the accuracy of the Chinese character recognition result. The accuracy can be obtained by calculating the similarity between the features of the Chinese character as the Chinese character recognition result and the features of the Chinese character in the picture of the Chinese character, and judges whether the accuracy of the Chinese character recognition result is greater than or equal to the set accuracy threshold. If it is less than, it is considered that the Chinese character recognition result is wrong, and the picture of the Chinese character corresponding to the Chinese character recognition result is recorded as a marked picture, and the Chinese character recognition result is deleted at the same time. If it is greater than or equal to, it is considered that the Chinese character recognition result is correct and the Chinese character recognition result is retained.

[0055] Furthermore, the server module extracts the active sentence from the preset area included in the video frame, and further includes the following steps:

[0056] Step 1, based on the appearance positions of each Chinese character image and each marked image in the image of the explanation sentence, the server module adds the Chinese character recognition result corresponding to the Chinese character image at the position where the Chinese character image appears, and adds a placeholder symbol at the position where the marked image appears to generate an intermediate active sentence;

[0057] Step 2: The server module performs word segmentation processing on the intermediate active sentence from left to right, and obtains a number of words in turn, and records each word composed of Chinese characters as a final word. For each word composed of Chinese characters and placeholder symbols, the server module retrieves a number of candidate words matching the word in the database;

[0058] Step 3: for each of the several candidate words consisting of Chinese characters and placeholders, the server module divides the candidate words into a first word part and a second word part, the first word part corresponds to the Chinese character recognition result, and the second word part corresponds to the placeholder, the server module calculates the similarity between the features of the Chinese characters in the marked image corresponding to the second word part and the features of the Chinese characters in the second word part, and takes the candidate word corresponding to the maximum similarity as the final word, and the server module replaces each word in the intermediate active sentence with the corresponding final word to obtain the active sentence;

[0059] Furthermore, each word belongs to one of the following two cases: case A: the word is composed of several Chinese characters, case B: the word is composed of several Chinese characters and several placeholder symbols;

[0060] Specifically, following the above content, the process of extracting activity statements will be further introduced here. In the first step, based on the appearance positions of the pictures of each Chinese character and each marker picture in the picture of the explanatory statement, the server module adds the Chinese character recognition result corresponding to the picture of the Chinese character at the position where the picture of the Chinese character appears, and at the same time adds a placeholder symbol at the position where the marker picture appears, so as to generate an intermediate activity statement. The placeholder symbol can be "#" or the like. Continuing with the above example, for instance, the generated intermediate activity statement is "Athlete Wang## gets a shooting opportunity". In the second step, the server module performs word segmentation on the intermediate activity statement in the order from left to right, and obtains multiple words in sequence. Continuing with the above example, for instance, the multiple words are "Athlete", "Wang##", "gets", and "shooting opportunity" in sequence. For each word composed of Chinese characters, since it has passed the accuracy check, it is directly recorded as the final word. For each word composed of Chinese characters and placeholder symbols, multiple candidate words that match the word are retrieved from the database respectively. Continuing with the above example, for instance, it is necessary to determine the candidate words for "Wang##". In the third step, for the multiple candidate words of each word composed of Chinese characters and placeholder symbols, the server module divides the candidate words into a first word part and a second word part. The first word part corresponds to the Chinese character recognition result, and the second word part corresponds to the placeholder symbol. Continuing with the above example, for instance, one candidate word for "Wang##" is "Wang Sansi", then the first word part is "Wang", and the second word part is "Sansi". Then, the similarity between the features of the Chinese characters in the marker picture corresponding to the second word part and the features of the Chinese characters in the second word part is calculated, and the candidate word corresponding to the maximum similarity is used as the final word. After obtaining the final word for each word composed of Chinese characters and placeholder symbols, each word in the intermediate activity statement is replaced with its corresponding final word to obtain the activity statement. Through the above method, the activity statement can be accurately extracted from the preset area included in the video frame, thus facilitating the generation of activity information based on the activity statement.

[0061] Furthermore, the total number of placeholder symbols added at the positions where the marker pictures appear is determined by the server module according to the distance value between the left and right ends of the Chinese characters in the marker pictures and the above average distance value.

[0062] Specifically, the total number of placeholder symbols added at the position where the marked picture appears should be fixed because the total number of added placeholder symbols will affect the candidate words. Continuing with the above example, for the word "Wang##", two placeholder symbols are added, so the server module can retrieve candidate words such as "Wang Sansi" and "Wang Wuliu". If only one placeholder symbol was added at that time, the server module could only retrieve candidate words such as "Wang Qi" and "Wang Jiu". However, the candidate word "Wang Sansi" is the correct one. The total number of placeholder symbols added at the position where the marked picture appears is the integer result of dividing the distance value between the left and right ends of the Chinese characters in the marked picture by the above average distance value.

[0063] Further, when the total number of candidate words corresponding to the maximum similarity is greater than one, the server module combines each candidate word with the adjacent final word to obtain several word combinations, determines the historical occurrence times of the several word combinations respectively, selects the word combination corresponding to the most historical occurrence times, and regards the word part corresponding to the candidate word in the word combination as the final word.

[0064] Specifically, if the total number of candidate words corresponding to the maximum similarity is greater than one, continuing with the above example, for instance, the similarities corresponding to the candidate words "Wang Sansi" and "Wang Wuliu" are the same. At this time, in order to uniquely determine a candidate word as the final word, the server module combines each candidate word with the adjacent final word to obtain several word combinations. It can be decided whether to combine with the left adjacent final word or the right adjacent final word according to the actual application situation. Continuing with the above example, the two word combinations are "Athlete Wang Sansi" and "Athlete Wang Wuliu" respectively. Select the word combination corresponding to the most historical occurrence times. Specifically, the occurrence times of the word combinations can be found in the database related to sports competitions. Regard the word part corresponding to the candidate word in the word combination as the final word. Continuing with the above example, since the historical occurrence times of "Athlete Wang Sansi" are more than those of "Athlete Wang Wuliu", regard the word part "Wang Sansi" corresponding to the candidate word in "Athlete Wang Sansi" as the final word. The actual situation is that since Wang Wuliu is not an athlete, the corresponding historical occurrence times may be zero. Through the above method, it is always possible to uniquely determine a candidate word as the final word from multiple candidate words of the word.

[0065] Refer to as Figure 2 shown, the present invention also provides a system for generating an activity battle report based on real-time data, including a site module, a server module, and a user module, which is used to implement the system for generating an activity battle report based on real-time data as described above.

[0066] Among them, the functions of each module are as follows:

[0067] The on-site module is used to collect real-time commentary data of the event, as well as real-time video data of the event;

[0068] The server module is used to extract a number of key sentences from the commentary data in the order of the commentary time, establish corresponding relationships between the key sentences and the corresponding video frames in the video data in turn, and for each video frame in the video data, extract an activity sentence from a preset area contained in the video frame, generate activity information according to the activity sentence, establish a corresponding relationship between the activity information and the video frame, and for each video frame in the video data, determine the frame category to which the video frame belongs, establish a corresponding relationship between the frame category and the video frame, and further for generating video clip data from the video data according to the search sentence, combining the video clip data with the article data obtained by performing natural language processing on the commentary data to generate an activity report, and sending the activity report to the user module;

[0069] The user module is used to send an activity report acquisition request to the server module and to display the activity report.

[0070] In summary, in the present invention, first, the server module extracts several key sentences from the explanation data according to the order of the explanation time, and sequentially establishes corresponding relationships between several key sentences and corresponding video frames in the video data, and secondly, the server module extracts active sentences from the preset area contained in the video frame for each video frame in the video data, generates activity information according to the active sentences, and establishes corresponding relationships between the activity information and the video frame, and the server module also determines the frame category to which the video frame belongs for each video frame in the video data, and establishes corresponding relationships between the frame category and the video frame, and finally, the user module sends an activity report acquisition request including a search statement to the server module, and the server module generates video clip data from the video data, combines the video clip data with the article data obtained by carrying out natural language processing on the explanation data to generate an activity report, and sends the activity report to the user module for display. Through the present invention, not only can the activity report be generated automatically and conveniently without manual participation, but also the activity report that meets the individual needs of different users can be generated, and a better experience can be provided for different users.

[0071] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0072] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0073] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0074] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0075] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for generating an activity report based on real-time data, characterized in that: The steps include: The server module obtains real-time commentary data and real-time video data of the activity from the on-site module, and extracts a plurality of key sentences from the commentary data in the order of commentary time, and sequentially establishes correspondence between the plurality of key sentences and corresponding video frames in the video data; The server module extracts an activity statement from a preset area contained in each video frame in the video data, generates activity information according to the activity statement, and establishes a corresponding relationship between the activity information and the video frame. The server module also determines a frame category to which the video frame belongs for each video frame in the video data, and establishes a corresponding relationship between the frame category and the video frame. The user module sends an activity report acquisition request to the server module, the activity report acquisition request includes a search statement specified by the user, and the server module generates video clip data from the video data according to the search statement, combines the video clip data with the article data obtained by performing natural language processing on the commentary data to generate an activity report, and sends the activity report to the user module for display; The preset area included in the video frame refers to a video frame area in the video frame including an explanation sentence composed of a plurality of Chinese characters, wherein the explanation sentence is used to explain the activity moment corresponding to the video frame; The server module extracts the active sentence from the preset area included in the video frame, including the following steps: The server module divides the picture of the explanation sentence into a plurality of pictures of Chinese characters in a preset area included in the video frame in order from left to right, and determines the distance values ​​between the left and right ends of the Chinese characters in the pictures of the plurality of Chinese characters, and calculates the average value of all the distance values ​​to obtain an average distance value; For each Chinese character image, the server module determines whether the absolute value of the difference between the distance value corresponding to the Chinese character image and the average distance value is less than a preset threshold value. If it is greater than or equal to the threshold value, the server module records the Chinese character image as a marked image. If it is less than the threshold value, the server module automatically identifies the Chinese character image to obtain a Chinese character recognition result. The server module calculates the accuracy of each Chinese character recognition result, and determines whether the accuracy of the Chinese character recognition result is greater than or equal to a preset accuracy threshold. If the accuracy is less than the preset accuracy threshold, the image of the Chinese character corresponding to the Chinese character recognition result is recorded as a marked image, and the Chinese character recognition result is deleted. If the accuracy is greater than or equal to the preset accuracy threshold, the Chinese character recognition result is retained. The server module extracts the active sentence from the preset area included in the video frame, and also includes the following steps: The server module adds the Chinese character recognition result corresponding to the picture of the Chinese character at the position where the picture of the Chinese character appears, and adds a placeholder symbol at the position where the mark picture appears, based on the position where each Chinese character picture and each mark picture appear in the picture of the explanation sentence, to generate an intermediate active sentence; The server module performs word segmentation processing on the intermediate active sentence in order from left to right, obtains a plurality of words in turn, records each word composed of Chinese characters as a final word, and for each word composed of Chinese characters and placeholders, the server module retrieves a plurality of candidate words matching the word in the database; For each of the several candidate words consisting of Chinese characters and placeholder symbols, the server module divides the candidate words into a first word part and a second word part, the first word part corresponds to the Chinese character recognition result, and the second word part corresponds to the placeholder symbol. The server module calculates the similarity between the features of the Chinese characters in the marked image corresponding to the second word part and the features of the Chinese characters in the second word part, and takes the candidate word corresponding to the maximum similarity as the final word, and the server module replaces each word in the intermediate active sentence with the corresponding final word to obtain the active sentence.

2. The method according to claim 1, characterized in that The server module pre-sets a number of frame categories, which include a key frame category and a non-key frame category.

3. The method according to claim 2, characterized in that The server module generates video segment data from video data according to the search statement, including the following steps: The server module searches for a key sentence corresponding to the search sentence among a plurality of key sentences extracted from the commentary data, and simultaneously determines a video frame in the video data corresponding to the key sentence; The server module, based on the search sentence and the activity information corresponding to each video frame in the video data, combines a plurality of video frames before the video frame corresponding to the key sentence, a plurality of video frames after the video frame corresponding to the key sentence, and the video frame corresponding to the key sentence in the video data into intermediate video segment data; The server module checks whether the frame category corresponding to each video frame in the intermediate video segment data is a non-key frame category, and the server module deletes the video frames whose frame category is the non-key frame category from the intermediate video segment data to obtain the video segment data.

4. The method according to claim 1, characterized in that: The total number of placeholder symbols added at the position where the marked image appears is determined by the server module according to the distance value between the left and right ends of the Chinese character in the marked image and the average distance value.

5. The method according to claim 1, characterized in that Each word belongs to one of the following two cases: Case A: the word is composed of several Chinese characters, and Case B: the word is composed of several Chinese characters and several placeholder symbols.

6. The method according to claim 1, characterized in that When the total number of candidate words corresponding to the maximum similarity is greater than one, the server module combines each candidate word with an adjacent final word to obtain several word combinations, determines the historical number of occurrences of the several word combinations respectively, selects the word combination corresponding to the largest number of historical occurrences, and uses the word part of the word combination corresponding to the candidate word as the final word.

7. A system for generating activity reports based on real-time data, used to implement the method according to any one of claims 1 to 6, characterized in that: Includes the following modules: The on-site module is used to collect real-time commentary data of the event, as well as real-time video data of the event; The server module is used to extract a number of key sentences from the commentary data in the order of the commentary time, establish corresponding relationships between the key sentences and the corresponding video frames in the video data in turn, and for each video frame in the video data, extract an activity sentence from a preset area contained in the video frame, generate activity information according to the activity sentence, establish a corresponding relationship between the activity information and the video frame, and for each video frame in the video data, determine the frame category to which the video frame belongs, establish a corresponding relationship between the frame category and the video frame, and further for generating video clip data from the video data according to the search sentence, combining the video clip data with the article data obtained by performing natural language processing on the commentary data to generate an activity report, and sending the activity report to the user module; The user module is used to send an activity report acquisition request to the server module and to display the activity report.

Citation Information

Patent Citations

  • A method for generating sports event warnings by using real-time data

    CN109740123A

  • Method for generating sports wars from sports event commentary

    CN117313747A

  • A method for automatically generating an internet image-text manuscript based on manuscripts and news programs

    CN109635154A

  • Video processing method and device, storage medium and electronic equipment

    CN110868632A