Competition live broadcast stream processing method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202410805018.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-22
AI Technical Summary
In online event live broadcasts, the update time of game data fluctuates and the operating cost is high. Moreover, the diversity of real-time scoreboards affects the accuracy of the identification results, making it impossible to obtain the scoreboard identification results in a timely and accurate manner.
Through video stream score recognition based on the live event stream, the first score recognition result and confidence level are obtained. If the confidence level does not meet the preset confidence level requirements, audio stream speech recognition is performed to optimize the score recognition results and ensure the timely score recognition results. sex and accuracy.
It achieves timeliness and high accuracy of score recognition results, reduces the amount of calculation, adapts to the needs of different live broadcast scenarios, and avoids recognition errors caused by scoreboard diversity and angle changes.
Smart Images

Figure CN118828104A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to technical fields such as live broadcast technology, graphic recognition, and speech recognition. Background Art
[0002] In the current digital age, online live broadcasts of events not only provide high-definition and smooth live images, but are also equipped with features such as real-time score data display, allowing viewers to fully understand the game situation and gain a more immersive viewing experience. However, in the current live broadcasts of online events, most of the game data is updated by the broadcast station operator based on the scoreboard content at the competition venue. The data update time is volatile and the operating cost is high. Some game data is determined through real-time recognition, but due to the diversity of the real-time scoreboard, the accuracy of the real-time recognition results will also be affected. Ultimately, it is impossible to obtain the scoreboard recognition results in a timely and accurate manner. Summary of the invention
[0003] The present invention provides a method, device, electronic device and storage medium for processing a live event stream.
[0004] According to one aspect of the present disclosure, a method for processing a live event stream is provided, comprising:
[0005] Based on the live stream of the target event, a video stream is obtained;
[0006] Performing score recognition on the video stream, obtaining a first score recognition result and a confidence level of the first score recognition result;
[0007] When the confidence level does not meet the preset confidence level requirement, speech recognition is performed on the audio stream to obtain a speech recognition result; wherein the audio stream is obtained based on the live stream of the event;
[0008] Based on the speech recognition result, the first score recognition result is optimized to obtain a second score recognition result;
[0009] Based on the second score recognition result and the event live stream, a target live stream is obtained.
[0010] According to another aspect of the present disclosure, a device for processing a live event stream is provided, comprising:
[0011] A splitting module is used to obtain a video stream and an audio stream based on the live stream of the target event;
[0012] The target recognition module is used to perform score recognition on the video stream, obtain a first score recognition result and a confidence level of the first score recognition result;
[0013] The speech recognition module performs speech recognition on the audio stream to obtain a speech recognition result when the confidence level does not meet the preset confidence level requirement;
[0014] An optimization module, used to optimize the first score recognition result based on the speech recognition result to obtain a second score recognition result;
[0015] The processing module is used to obtain a target live stream based on the second score recognition result and the event live stream.
[0016] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.
[0020] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any method according to the embodiments of the present disclosure.
[0021] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.
[0022] The present disclosure can be used to obtain a video stream based on the live stream of the target event, and score recognition can be performed on the video stream to obtain a first score recognition result and the confidence of the first score recognition result, so that when the confidence does not meet the preset confidence requirement (for example, the confidence is lower than the preset confidence threshold), speech recognition is performed on the audio stream to obtain a speech recognition result, and based on the speech recognition result, the first score recognition result is optimized to obtain a second score recognition result, and then based on the second score recognition result and the live stream of the event, the target live stream is obtained. That is to say, when the confidence of the first score recognition result does not meet the preset confidence requirement, speech recognition is performed on the audio stream to obtain a speech recognition result, and based on the speech recognition result, the first score recognition result is optimized to obtain a second score recognition result. Since the process is automated, the timeliness of the score recognition result can be ensured, and at the same time, the optimized score recognition result can be ensured to have a high accuracy.
[0023] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0025] Figure 1 is a flowchart of a method for processing a live event stream according to an embodiment of the present disclosure;
[0026] Figure 2 is a flowchart of a speech recognition process according to an embodiment of the present disclosure;
[0027] Figure 3 is a schematic diagram of the training process of a speech recognition deep learning model according to an embodiment of the present disclosure;
[0028] Figure 4 is a flow chart of a device for processing a live event stream according to an embodiment of the present disclosure;
[0029] Figure 5 It is a schematic diagram of the composition structure of a live event stream processing device according to an embodiment of the present disclosure;
[0030] Figure 6 A block diagram of an electronic device used to implement the method for processing a live event stream according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0032] The disclosed embodiment provides a method for processing a live event stream, which can be applied to electronic devices. The electronic device is intended to represent various forms of digital computers. Here, the digital computer can be a conventional computer (desktop computer, laptop computer, etc.), a personal digital processing, a cellular phone, a smart phone, a tablet computer, an Internet of Things device, or other similar computing devices. Figure 1 The flowchart diagram shown is used to illustrate a method for processing a live event stream provided by an embodiment of the present disclosure. It should be noted that although a logical order is shown in the flowchart diagram, in some cases, the steps shown or described may also be performed in other orders.
[0033] Step S110, obtaining a video stream based on the live broadcast stream of the target event.
[0034] In the disclosed embodiment, the video stream is used for score recognition and score rendering and then mixed.
[0035] Step S120: Perform score recognition on the video stream to obtain a first score recognition result and a confidence level of the first score recognition result.
[0036] In the disclosed embodiment, optical character recognition (OCR) technology may be used to perform score recognition on the video stream to obtain a first score recognition result and a confidence level of the first score recognition result.
[0037] Step S130: When the confidence level does not meet the preset confidence level requirement, speech recognition is performed on the audio stream to obtain a speech recognition result.
[0038] Among them, the audio stream is obtained based on the live broadcast stream of the event.
[0039] In the embodiment of the present disclosure, the preset confidence requirement can be determined according to different live broadcast scenarios and requirements, and the confidence of the first score recognition result can be analyzed. When the analysis result shows that the confidence of the first score result does not meet the preset confidence requirement, speech recognition can be performed on the audio stream to obtain a speech recognition result. Among them, the preset confidence requirement can be that the confidence is not lower than the preset confidence threshold. Here, the preset confidence threshold can be set according to actual application requirements, and the embodiment of the present disclosure does not limit this.
[0040] Step S140: Based on the speech recognition result, the first score recognition result is optimized to obtain a second score recognition result.
[0041] In one example, based on the speech recognition result, the first score recognition result is optimized, which may be adjusting the first recognition result to obtain a second score recognition result, wherein the accuracy of the second score recognition result is usually greater than that of the first score recognition result.
[0042] Step S150, obtaining a target live stream based on the second score recognition result and the event live stream.
[0043] The method for processing the live stream of an event provided by the embodiment of the present disclosure can obtain a video stream based on the live stream of the event of the target event, and perform score recognition on the video stream to obtain a first score recognition result and a confidence of the first score recognition result, so that when the confidence does not meet the preset confidence requirement (for example, the confidence is lower than the preset confidence threshold), speech recognition is performed on the audio stream to obtain a speech recognition result, and based on the speech recognition result, the first score recognition result is optimized to obtain a second score recognition result, and then based on the second score recognition result and the live stream of the event, the target live stream is obtained. That is to say, when the confidence of the first score recognition result does not meet the preset confidence requirement, speech recognition is performed on the audio stream to obtain a speech recognition result, and based on the speech recognition result, the first score recognition result is optimized to obtain a second score recognition result. Since the process is performed automatically, the timeliness of the score recognition result can be ensured, and at the same time, the optimized score recognition result can be ensured to have a high accuracy.
[0044] In some optional implementations, step S110, i.e., “obtaining a video stream based on a live event stream of a target event” may also include:
[0045] Based on the live event stream of the target event, audio stream, mixed audio stream and video stream are obtained.
[0046] In the disclosed embodiment, the audio stream is used for voice recognition, the mixed audio stream is used for mixing with the rendered video stream, and the video stream is used for score recognition and score rendering and mixing.
[0047] In the event live stream processing method provided by the embodiment of the present disclosure, by obtaining a video stream from the event live stream, it is convenient to subsequently identify and process the score data in the video stream, and obtain a first score recognition result and the confidence of the first score recognition result. The confidence is used to judge the accuracy of the first score recognition result. For example, by comparing whether the confidence of the first score recognition result meets the preset confidence requirement, it is judged whether it is necessary to combine the voice recognition result to optimize the first score recognition result, thereby reducing the amount of calculation involved in the event live stream processing method when running, and different preset confidence requirements can be set according to different live broadcast scenarios and needs, so that the event live stream processing method can adapt to more scenarios. In addition, by optimizing the first score recognition result based on the speech recognition result when the confidence of the first score recognition result does not meet the preset confidence requirement, the problem of accuracy and robustness of the first score recognition result of the image due to the diversity of the score board (for example, the score board includes incorrect fonts, colors and backgrounds) is avoided. At the same time, the problem of errors in the first score recognition result caused by deformation of the score board image in the live stream of the event due to different angles of the score board or movement of the lens used to collect the live stream of the event is avoided, further ensuring the accuracy of automatic updating of the score board.
[0048] In some optional implementations, step S140, that is, “optimizing the first score recognition result based on the speech recognition result to obtain a second score recognition result” may include:
[0049] Extract the basis for score changes from the speech recognition results;
[0050] Based on the score change basis, the first score recognition result is optimized to obtain a second score recognition result.
[0051] The score change basis includes at least one of the score broadcast result and the score change keyword. Here, the score change keyword can be a keyword related to the score change, such as the red team scored a 3-pointer, the blue team scored another 3 points, etc. The real-time score broadcast can be a specific score broadcast such as the score between the red team and the blue team is now 16:18.
[0052] Through the above manner, in the embodiment of the present disclosure, at least one of the score broadcast result and the score change keyword in the audio stream can be extracted, and based on the score change basis, the first score recognition result can be optimized to obtain the second score recognition result, so as to improve the accuracy of the score recognition result from multiple dimensions and speed up the efficiency of obtaining the score recognition result.
[0053] In some optional implementations, “optimizing the first score recognition result based on the score change basis to obtain the second score recognition result” may include:
[0054] In the case where the score change basis includes the score broadcast result, the score broadcast result is used as a second score recognition result obtained by optimizing the first score recognition result;
[0055] Alternatively, when the score change basis does not include the score broadcast result but includes the score change keyword, the first score recognition result is optimized based on the score change keyword to obtain the second score recognition result.
[0056] In one example, the first score recognition result is that the score of the red team: the blue team is 35:37, and the first score recognition result does not meet the preset reliability requirement. At this time, the key words "the red team gets another 2 points" and "the red team's score against the blue team is 37:37" appear in the speech recognition result at the same time. Then, the first score recognition result can be optimized based only on the score broadcast result "the red team's score against the blue team is 37:37", and the second score recognition result obtained is, that is, "the red team's score against the blue team is 37:37" is used as the second score recognition result obtained by optimizing the first score recognition result.
[0057] In another example, the first score recognition result is that the score of the red team: the blue team is 35:37, and the first score recognition result does not meet the preset reliability requirement. At this time, the speech recognition result only shows "the red team gets another 2 points". Then, based on the score change keyword "the red team gets another 2 points", the first score recognition result can be optimized to obtain the second score recognition result.
[0058] Through the above manner, in the embodiment of the present disclosure, when the score broadcast result and the score change keyword appear in the voice recognition result at the same time, the more accurate score broadcast result can be preferentially selected to optimize the first score recognition result, thereby streamlining the process of optimizing the first score recognition result and effectively improving the accuracy of the score recognition result.
[0059] In some optional implementations, “optimizing the first score recognition result based on the score change keyword to obtain the second score recognition result” may include:
[0060] Obtaining a score update record related to a target event; wherein the score update record includes a plurality of historical score recognition results;
[0061] Determine a most recent score recognition result from a plurality of historical score recognition results; wherein the most recent score recognition result is the historical score recognition result with the latest acquisition time among the plurality of historical score recognition results;
[0062] Based on the score change keyword and the most recent score recognition result, the first score recognition result is optimized to obtain a second score recognition result.
[0063] Exemplarily, the score update record related to the target event may be as shown in Table 1:
[0064] Table 1
[0065]
[0066] Assume that the first score recognition result is that the score of the red team is 35:37 compared with the blue team, and the confidence of the first score result does not meet the preset confidence requirement, and the speech recognition result only appears "the red team scored another 2 points", and the most recent score recognition result determined from multiple historical score recognition results is that the score of the red team is 35:37 compared with the blue team, then, based on the score change keyword "the red team scored another 2 points" and the most recent score recognition result "the score of the red team is 35:37 compared with the blue team", the first score recognition result "the score of the red team is 35:37 compared with the blue team" is optimized to obtain the second score recognition result "the score of the red team is 37:37 compared with the blue team".
[0067] Through the above manner, in the embodiment of the present disclosure, the most recent score recognition result can be determined from multiple historical score recognition results, and based on the score change keyword and the most recent score recognition result, the first score recognition result is optimized to obtain the second score recognition result, thereby improving the reliability and accuracy of score recognition.
[0068] In some optional implementations, step S120, namely, “performing score recognition on the video stream, obtaining a first score recognition result and a confidence level of the first score recognition result” may include:
[0069] Process the video stream to obtain the scoreboard image in the video stream;
[0070] Perform OCR on the score board image to obtain a first score recognition result and a confidence level of the first score recognition result.
[0071] Among them, OCR can include the following processes:
[0072] (1) Image preprocessing
[0073] In one example, image preprocessing may include grayscale, denoising, image enhancement, and other operations to enhance the contrast and clarity of text in a comparison board image.
[0074] (2) Text segmentation.
[0075] For example, the preprocessed scoreboard image may be subjected to text segmentation based on an edge detection method, and the text in the scoreboard image may be segmented into independent characters.
[0076] (3) Character Recognition
[0077] Perform OCR on the independent characters obtained by segmentation.
[0078] In the above manner, in the embodiment of the present disclosure, the video stream can be processed to obtain the score board image in the video stream, and the score board image can be subjected to OCR to obtain the first score recognition result and the confidence of the first score recognition result, thereby reducing the possibility of manual input errors. In addition, the confidence of the first score recognition result obtained can be used as a basis for automatically evaluating the reliability of the first score recognition result to ensure that the score recognition result finally displayed to the audience is accurate.
[0079] In some optional implementations, “processing the video stream to obtain a scoreboard image in the video stream” may include:
[0080] Extract frames from the video stream according to preset conditions to obtain target video frames;
[0081] Using edge detection algorithm, the scoreboard outline is extracted from the target video frame;
[0082] Get the calculation result of the image moment (Hu moment) of the scoreboard contour;
[0083] When the similarity between the image moment calculation result and the preset reference feature meets the preset similarity requirement, a scoreboard image is obtained from the target video frame based on the scoreboard contour.
[0084] In the embodiment of the present disclosure, the preset condition may be a preset time interval or a preset frame number interval. That is, in the embodiment of the present disclosure, the video stream may be framed at the preset time interval or the preset frame number interval to obtain a target video frame, and then the scoreboard contour may be extracted from the target video frame using an edge detection algorithm, and the image moment calculation result of the scoreboard contour may be obtained, and then, when the similarity between the image moment calculation result and the preset reference feature meets the preset similarity requirement, the scoreboard image may be obtained from the target video frame based on the scoreboard contour.
[0085] The preset similarity requirement may be set according to actual application requirements, and the embodiments of the present disclosure do not impose any limitation on this.
[0086] In the above manner, in the disclosed embodiment, the video stream can be framed by setting a preset time interval or a preset frame number interval to obtain a target video frame, so as to effectively reduce the number of video frames that need to be processed, thereby improving the processing speed and efficiency of the live event stream processing method. In addition, in the disclosed embodiment, the setting of preset conditions can also enable the disclosed embodiment to flexibly adjust the frame extraction frequency according to different live broadcast scenarios and requirements to adapt to different game rhythms and important moments.
[0087] In addition, in the embodiments of the present disclosure, the video stream can be extracted at regular intervals to obtain a target video frame, and the format of the target video frame can be set to a specified format, and then subsequent operations can be performed. For example, an edge detection algorithm is used to extract a scoreboard contour from the target video frame, and an image moment calculation result of the scoreboard contour is obtained. Then, when the similarity between the image moment calculation result and a preset reference feature meets the preset similarity requirement, a scoreboard image is obtained from the target video frame based on the scoreboard contour.
[0088] In the above manner, in the embodiment of the present disclosure, the scoreboard image can be obtained from the target video frame based on the image moment, that is, the video stream is framed according to the preset conditions to obtain the target video frame, and the edge detection algorithm is used to extract the scoreboard contour from the target video frame, and the image moment calculation result of the scoreboard contour is obtained, and then the scoreboard image is obtained from the target video frame based on the scoreboard contour when the similarity between the image moment calculation result and the preset reference feature (that is, the feature descriptor of the scoreboard target) meets the preset similarity requirement. In this way, the problem of low recognition accuracy caused by the diversity of the scoreboard or the deformation of the scoreboard can be overcome.
[0089] Please combine Figure 2 In some optional implementations, the "performing speech recognition on the audio stream to obtain a speech recognition result" in step S130 may include:
[0090] Performing noise reduction processing on the audio stream to obtain first intermediate audio data;
[0091] encoding the first intermediate audio data to obtain second intermediate audio data;
[0092] Using the speech recognition model, speech recognition is performed on the second intermediate audio data to obtain a speech recognition result.
[0093] The noise reduction process can be implemented by a noise reduction algorithm based on wavelet transform, which can analyze the characteristics of the signal at different scales; the encoding process aims to pre-process the input of the speech recognition model and process the first intermediate audio data in any format into audio data that meets the relevant parameter requirements of the speech recognition model. Here, the relevant required parameters may include requirements on parameters such as sampling rate, bit depth and channels.
[0094] In the above manner, in the embodiment of the present disclosure, the audio stream can be subjected to noise reduction processing to obtain first intermediate audio data, and the first intermediate audio data can be encoded to obtain second intermediate audio data, and then the speech recognition model can be used to perform speech recognition on the second intermediate audio data to obtain a speech recognition result. Since the first intermediate audio data is subjected to noise reduction processing, the accuracy of the speech recognition result can be effectively improved.
[0095] Furthermore, the process of performing noise reduction processing on the audio stream to obtain the first intermediate audio data may include: performing multi-scale wavelet decomposition on the audio stream to obtain wavelet coefficients at each scale; suppressing noise components in the wavelet coefficients; and synthesizing the processed wavelet coefficients to obtain the first intermediate audio data.
[0096] Please combine Figure 3 In one example, the speech recognition model may be a Transformer model, which is used to implement speech recognition of the second intermediate audio data, and includes two main parts: an Encoder and a Decoder.
[0097] Encoder: It is composed of multiple encoder layers. Each encoder layer contains a multi-head attention mechanism and a feedforward neural network to capture the dependencies between input speech signals and model them.
[0098] Decoder: It is composed of multiple decoder layers, each of which contains a multi-head attention mechanism, an encoding-decoding attention mechanism, and a feedforward neural network. Its function is to capture the dependencies between the input text representations and align the output of the encoder with the input of the decoder.
[0099] The specific training process is to collect game commentary samples as model training sets and convert them into feature vector sequences. The audio feature vectors are input into the Transformer model to obtain predicted score change keywords and predicted score broadcast results. By comparing with the score change keyword labels and score broadcast result labels, the loss calculation results are obtained to further adjust the parameters of the Transformer model.
[0100] In some optional implementations, step S150, namely, "obtaining a target live stream based on the second score recognition result and the event live stream", may include:
[0101] Render the second score recognition result to the live event stream to obtain an intermediate video stream;
[0102] Based on the live event stream, a mixed audio stream is obtained;
[0103] The timestamps of the mixed audio stream and the intermediate video stream are aligned and mixed to obtain the target live stream. In one example, the second score recognition result can be rendered to the live event stream to obtain the intermediate video stream for the audience to watch; of course, after the second score recognition result is rendered to the live event stream to obtain the intermediate video stream, the mixed audio stream can be obtained based on the live event stream, and the timestamps of the mixed audio stream and the intermediate video stream can be aligned and mixed to obtain the target live stream for the audience to watch.
[0104] In the embodiment of the present disclosure, rendering the second score recognition result to the live stream may include the following process:
[0105] (1) Determine the scoreboard template, including the scoreboard background, score number position and font color;
[0106] (2) According to the score board patch template, render the score board patch into the live stream frame by frame.
[0107] Among them, the scoreboard template is an image template used for live or recorded sports games. It usually contains information such as the names of the two teams, scores, and game time. These templates can be superimposed and displayed at a certain position on the video screen so that the audience can keep abreast of the latest progress of the game.
[0108] Through the above method, in the embodiment of the present disclosure, the obtained second score recognition result with guaranteed accuracy can be rendered into the live video stream to obtain an intermediate video stream, so that the audience can pull the stream to watch the accurate score recognition result. At the same time, the intermediate video stream and the mixed audio stream can be timestamp aligned and mixed to obtain the target live stream, so that the audience can pull the stream to watch the audio and video synchronization with good sound layering.
[0109] The following, combined with Figure 4 and Figure 5 The live event stream processing device provided by the embodiment of the present disclosure is described. Figure 4 This is a schematic diagram of the integrity process of a device for processing a live event stream according to an embodiment of the present disclosure; Figure 5 It is a structural diagram of a live event stream processing device provided according to an embodiment of the present disclosure.
[0110] The live event stream processing device 500 includes:
[0111] A splitting module 501 is used to obtain a video stream and an audio stream based on a live event stream of a target event;
[0112] The target recognition module 502 is used to perform score recognition on the video stream, and obtain a first score recognition result and a confidence level of the first score recognition result;
[0113] The speech recognition module 503 performs speech recognition on the audio stream to obtain a speech recognition result when the confidence level does not meet the preset confidence level requirement;
[0114] An optimization module 504, configured to optimize the first score recognition result based on the speech recognition result to obtain a second score recognition result;
[0115] The processing module 505 is used to obtain a target live stream based on the second score recognition result and the event live stream.
[0116] In some optional implementations, the optimization module 504 is used to:
[0117] Extracting a score change basis from the speech recognition result; wherein the score change basis includes at least one of a score broadcast result and a score change keyword;
[0118] Based on the score change basis, the first score recognition result is optimized to obtain a second score recognition result.
[0119] In some optional implementations, the optimization module 504 is used to:
[0120] In a case where the score change basis includes the score broadcast result, using the score broadcast result as a second score recognition result obtained by optimizing the first score recognition result;
[0121] Alternatively, when the score change basis does not include the score broadcast result but includes the score change keyword, the first score recognition result is optimized based on the score change keyword to obtain a second score recognition result.
[0122] In some optional implementations, the optimization module 504 is used to:
[0123] Obtaining a score update record related to the target event; wherein the score update record includes a plurality of historical score recognition results;
[0124] Determine a most recent score recognition result from the multiple historical score recognition results; wherein the most recent score recognition result is the historical score recognition result with the latest acquisition time among the multiple historical score recognition results;
[0125] Based on the score change keyword and the most recent score recognition result, the first score recognition result is optimized to obtain a second score recognition result.
[0126] In some optional implementations, the target identification module 502 is used to:
[0127] Process the video stream to obtain the scoreboard image in the video stream;
[0128] Perform OCR on the score board image to obtain a first score recognition result and a confidence level of the first score recognition result.
[0129] In some optional implementations, the target identification module 502 is used to:
[0130] Extract frames from the video stream according to preset conditions to obtain target video frames;
[0131] Extracting the scoreboard outline from the target video frame using an edge detection algorithm;
[0132] Obtaining the image moment calculation result of the scoreboard contour;
[0133] When the similarity between the image moment calculation result and the preset reference feature meets the preset similarity requirement, a scoreboard image is acquired from the target video frame based on the scoreboard contour.
[0134] In some optional implementations, the speech recognition module 503 is used to:
[0135] Performing noise reduction processing on the audio stream to obtain first intermediate audio data;
[0136] encoding the first intermediate audio data to obtain second intermediate audio data;
[0137] Using a speech recognition model, speech recognition is performed on the second intermediate audio data to obtain the speech recognition result.
[0138] In some optional implementations, the processing module 505 is used to:
[0139] Rendering the second score recognition result to the live event stream to obtain an intermediate video stream;
[0140] Based on the live event stream, a mixed audio stream is obtained;
[0141] The timestamps of the mixed audio stream and the intermediate video stream are aligned and mixed to obtain a target live stream.
[0142] For the description of specific functions and examples of each module and submodule of the event live broadcast stream processing device 500 in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0143] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0144] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0145] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as servers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0146] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 to a random access memory (RAM) 603. In RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0147] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0148] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSP), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, for example, the event live stream processing method. For example, in some embodiments, the event live stream processing method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the event live stream processing method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the event live stream processing method in any other appropriate manner (eg, by means of firmware).
[0149] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0150] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0151] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM) or a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0152] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a cathode ray tube (CRT) display or a liquid crystal display (LCD)) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0153] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN), and the Internet.
[0154] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0155] The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the method for processing a live event stream.
[0156] The embodiments of the present disclosure also provide a computer program product, including a computer program, which implements a method for processing a live event stream when executed by a processor.
[0157] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in the present disclosure can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and this document is not limited here. In addition, in the present disclosure, relational terms such as "first", "second", "third", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. In addition, "multiple" in the present disclosure can be understood as at least two.
[0158] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for processing a live event stream, comprising: Based on the live stream of the target event, a video stream is obtained; Performing score recognition on the video stream to obtain a first score recognition result and a confidence level of the first score recognition result; When the confidence level does not meet the preset confidence level requirement, performing speech recognition on the audio stream to obtain a speech recognition result; wherein the audio stream is obtained based on the live stream of the event; Based on the speech recognition result, optimizing the first score recognition result to obtain a second score recognition result; Based on the second score recognition result and the event live stream, a target live stream is obtained.
2. The method according to claim 1, wherein: The optimizing the first score recognition result based on the speech recognition result to obtain a second score recognition result includes: Extracting a score change basis from the speech recognition result; wherein the score change basis includes at least one of a score broadcast result and a score change keyword; Based on the score change basis, the first score recognition result is optimized to obtain a second score recognition result.
3. The method according to claim 2, wherein: The optimizing the first score recognition result based on the score change basis to obtain the second score recognition result includes: In a case where the score change basis includes the score broadcast result, using the score broadcast result as a second score recognition result obtained by optimizing the first score recognition result; Alternatively, when the score change basis does not include the score broadcast result but includes the score change keyword, the first score recognition result is optimized based on the score change keyword to obtain a second score recognition result.
4. The method according to claim 3, wherein: The optimizing the first score recognition result based on the score change keyword to obtain the second score recognition result includes: Obtaining a score update record related to the target event; wherein the score update record includes a plurality of historical score recognition results; Determine a most recent score recognition result from the multiple historical score recognition results; wherein the most recent score recognition result is the historical score recognition result with the latest acquisition time among the multiple historical score recognition results; Based on the score change keyword and the most recent score recognition result, the first score recognition result is optimized to obtain a second score recognition result.
5. The method according to any one of claims 1 to 4, wherein: The performing score recognition on the video stream to obtain a first score recognition result and a confidence level of the first score recognition result includes: Processing the video stream to obtain a scoreboard image in the video stream; Optical character recognition is performed on the score board image to obtain a first score recognition result and a confidence level of the first score recognition result.
6. The method according to claim 5, wherein: The step of processing the video stream to obtain a scoreboard image in the video stream includes: Extract frames from the video stream according to preset conditions to obtain target video frames; Extracting the scoreboard outline from the target video frame using an edge detection algorithm; Obtaining the image moment calculation result of the scoreboard contour; When the similarity between the image moment calculation result and the preset reference feature meets the preset similarity requirement, a scoreboard image is acquired from the target video frame based on the scoreboard contour.
7. The method according to any one of claims 1 to 4, wherein: The performing speech recognition on the audio stream to obtain a speech recognition result includes: Performing noise reduction processing on the audio stream to obtain first intermediate audio data; encoding the first intermediate audio data to obtain second intermediate audio data; Using a speech recognition model, speech recognition is performed on the second intermediate audio data to obtain the speech recognition result.
8. The method according to any one of claims 1 to 4, wherein: The step of obtaining a target live stream based on the second score recognition result and the event live stream includes: Rendering the second score recognition result to the live event stream to obtain an intermediate video stream; Based on the live event stream, a mixed audio stream is obtained; The timestamps of the mixed audio stream and the intermediate video stream are aligned and mixed to obtain a target live stream.
9. A live event stream processing device, comprising: A splitting module is used to obtain a video stream and an audio stream based on the live stream of the target event; A target recognition module, configured to perform score recognition on the video stream, and obtain a first score recognition result and a confidence level of the first score recognition result; A speech recognition module, when the confidence level does not meet the preset confidence level requirement, performs speech recognition on the audio stream to obtain a speech recognition result; an optimization module, configured to optimize the first score recognition result based on the speech recognition result to obtain a second score recognition result; A processing module is used to obtain a target live stream based on the second score recognition result and the event live stream.
10. The device according to claim 9, wherein: The optimization module is used to: Extracting a score change basis from the speech recognition result; wherein the score change basis includes at least one of a score broadcast result and a score change keyword; Based on the score change basis, the first score recognition result is optimized to obtain a second score recognition result.
11. The device according to claim 10, wherein: The optimization module is used to: In a case where the score change basis includes the score broadcast result, using the score broadcast result as a second score recognition result obtained by optimizing the first score recognition result; Alternatively, when the score change basis does not include the score broadcast result but includes the score change keyword, the first score recognition result is optimized based on the score change keyword to obtain a second score recognition result.
12. The device according to claim 11, wherein The optimization module is used to: Obtaining a score update record related to the target event; wherein the score update record includes a plurality of historical score recognition results; Determine a most recent score recognition result from the multiple historical score recognition results; wherein the most recent score recognition result is the historical score recognition result with the latest acquisition time among the multiple historical score recognition results; Based on the score change keyword and the most recent score recognition result, the first score recognition result is optimized to obtain a second score recognition result.
13. The device according to any one of claims 9 to 12, wherein: The target recognition module is used for: Processing the video stream to obtain a scoreboard image in the video stream; Optical character recognition is performed on the score board image to obtain a first score recognition result and a confidence level of the first score recognition result.
14. The device according to claim 13, wherein: The target recognition module is used for: Extract frames from the video stream according to preset conditions to obtain target video frames; Extracting the scoreboard outline from the target video frame using an edge detection algorithm; Obtaining the image moment calculation result of the scoreboard contour; When the similarity between the image moment calculation result and the preset reference feature meets the preset similarity requirement, a scoreboard image is acquired from the target video frame based on the scoreboard contour.
15. The device according to any one of claims 9 to 12, wherein: The speech recognition module is used for: Performing noise reduction processing on the audio stream to obtain first intermediate audio data; encoding the first intermediate audio data to obtain second intermediate audio data; Using a speech recognition model, speech recognition is performed on the second intermediate audio data to obtain the speech recognition result.
16. The device according to any one of claims 9 to 12, wherein: The processing module is used for: Rendering the second score recognition result to the live event stream to obtain an intermediate video stream; Based on the live event stream, a mixed audio stream is obtained; The timestamps of the mixed audio stream and the intermediate video stream are aligned and mixed to obtain a target live stream.
17. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.
19. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 8.
