A method of event video processing, a computing device, and a computer-readable storage medium
By using a fusion mechanism of contextual baseline values and contribution values, the problem of being unable to quantify the significance of events within a continuous adversarial interval and the high requirements for detection accuracy in existing technologies is solved. This achieves the preservation of significance and the accuracy of segmentation within intervals without discrete events, and is suitable for devices with limited computing power.
Patent Information
- Application Number
- CN202611644142.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies cannot effectively quantify the salience of events within a sustained adversarial interval. They rely on precise event detection and cannot correct segment boundaries, resulting in inaccurate segmentation and difficulties in resource allocation.
A fusion mechanism between contextual baseline values and contribution values is introduced. By accumulating contribution values over a sustained period and maintaining significance in the absence of events, combined with segmentation based on preset thresholds, the accuracy requirements of the detector are reduced.
It achieves significant values within intervals without discrete events, reduces the requirements for detection accuracy, is suitable for devices with limited computing power, and ensures the accuracy of segmentation and the rational allocation of resources.
Smart Images

Figure CN123145453A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of video processing technology, specifically to a method, computing device, and computer-readable storage medium for automatically evaluating, segmenting, and sorting videos of continuous-time events. Background Technology
[0002] A recorded match often has most of its time unwatchable. For example, in a 90-minute amateur match, viewers might only be willing to watch about eight minutes, with the rest being irrelevant offense, defense, timeouts, substitutions, and dead balls. This leads to three practical problems: First, the discovery problem: when a live streaming platform simultaneously hosts hundreds of matches, it cannot tell viewers which match is worth watching at any given moment. Team names, thumbnails, and scores fail to convey whether the match is exciting or under intense pressure. This problem is particularly pronounced in youth and amateur matches, as viewers have no prior knowledge of the participating teams and no other basis for choosing which matches to watch. Second, the retrieval problem: users who have recorded the entire match must manually drag the timeline segment by segment to find the parts worth keeping, which is why most amateur match recordings are never watched again, shared, or used for their own filming purposes. Third, the sorting problem: when operators need to allocate limited resources such as featured spots, notifications, and sponsorship inventory, there is a lack of machine-readable criteria to determine which matches are worth investing those resources in.
[0003] Existing automated systems primarily employ an event detection plus fixed-length window approach. This involves detecting discrete events occurring during a match, such as goals, shots, and dunks, using computer vision, audio, or data interfaces. Then, a fixed-length or slightly adjusted window is extracted from each detected event and output as a highlight segment. However, the segment length in this approach is a system-preset parameter rather than an attribute of the match itself. Therefore, it cannot generate a segment whose length accurately reflects the duration of a high-intensity match, and it cannot generate any segments within a range devoid of detectable events.
[0004] A similar prior art to this application involves constructing a continuous excitement curve and segmenting it according to a threshold: discrete events occurring during the event are detected, and each type of event is assigned an impact value. The impact values of each event are then adjusted according to the event's state. The adjusted impact values are smoothly superimposed to form a continuous excitement curve over time. A preset threshold is then used to detect the curve's crossing, and the intervals where the curve exceeds the threshold are segmented into exciting segments. The duration of each segment is determined by the duration the curve remains above the threshold. This approach has advanced the fixed window to a variable-length segment determined by the curve's sustained exceedance of the threshold, placing it at a leading level in the prior art.
[0005] However, the aforementioned technical approach still has significant drawbacks. First, its excitement curve is entirely based on discrete events, with each event contributing only a decaying impulse over time. In event-free intervals, the curve decays to zero, making it impossible to measure sustained tension. The salience of a match is often continuous rather than event-driven; for example, the final two minutes of a game with a one-point difference are thrilling, but there may be no detectable events during that time; a series of close calls in overtime constitutes a complete viewing experience rather than several independent events. In the aforementioned approach, the event impact value in such intervals has already decayed to zero, and the system cannot segment any fragments or divide a complete experience into multiple pieces. Second, the situation exists only as a multiplicative adjustment factor for events; the situation itself does not generate independent values. The match state is not modeled as an independent component that persists as the situation continues. Without events, even the most tense situation will not generate any value on the curve. Furthermore, this technical approach places stringent demands on event detection accuracy. A false detection generates a false impact pulse and an erroneous segment, while a missed detection results in the direct loss of the corresponding content. The detector must be an accurate event classifier, which is difficult to meet in portable shooting equipment with limited computing power and in amateur competitions and niche sports lacking training models. Finally, this technical approach does not specify the time base for curve calculation, nor does it provide a mechanism for removing only the impact of an event after it is revoked and deterministically recalculating the curve and segment boundaries. For example, if a goal is reviewed and overturned by the referee, the already generated segments cannot be consistently corrected. Summary of the Invention
[0006] To address the aforementioned shortcomings of existing technologies, particularly the inability to continuously quantify the salience of events within a sustained adversarial period lacking detectable discrete events, and the stringent requirements for event detection accuracy, this application provides a sports video processing method, a video processing method, a computing device, and a computer-readable storage medium. By fusing a contextual baseline value that does not decay with the continuation of the situation with a contribution value accumulated over duration, the salience function value maintains a value commensurate with the situation even in event-free intervals, and reverses the requirement for detector reliability from precision to stability. Based on the comparison result of this salience function value and a preset threshold, this application can not only segment recorded sports videos into highlight video segments, but also mark highlight segments in real time during live broadcasts and determine whether a segment belongs to a highlight segment at any given moment, providing a unified salience measure for sports discovery, retrieval, and ranking.
[0007] In a first aspect of this application, a method for processing sports event videos is provided, comprising: acquiring sports event status data that evolves continuously over time, the sports event status data representing the current situation of the sports event; acquiring a perception signal obtained by analyzing the sports event video, the perception signal representing a state condition that is continuous over time and related to the sports event; determining a contextual baseline value based on the sports event status data, wherein the contextual baseline value does not decay during the duration of the situation represented by the sports event status data; accumulating a contribution value for the state condition according to its duration, and causing the accumulated contribution value to decay over time when the state condition ceases to persist; fusing the contextual baseline value and the contribution value to obtain a saliency function value; and determining highlights or highlights in the sports event video based on a comparison result between the saliency function value and a preset threshold.
[0008] In one possible implementation, the event status data includes at least one of the following: score relationship, event stage, remaining time, and event-specific situation conditions.
[0009] In one possible implementation, in response to the event status data representing the stop of timing, a phase break, or the end of the event, the status conditions do not accumulate contribution values during the corresponding period, preventing warm-up activities during pauses or cool-down activities during breaks from being treated as accumulated match intensity.
[0010] In one possible implementation, the state conditions include at least one of the following: the overall motion intensity state of the participant group, the convergence or dispersion state of the participants' spatial distribution, the state of the competition area being continuously occupied, the motion state of the object being contested continuously tending towards the scoring area, and the time derivative of any of the above. Among them, the spatial distribution and area occupation state conditions can capture static but tense scenes, such as a dense siege in front of the goal line that contains almost no movement, thus compensating for the blind spots of the motion energy method.
[0011] In one possible implementation, the sensing signal is calculated after compensating for changes in camera translation, zoom, and perspective, in order to separate the movement of the contestant from the movement of the lens itself, thus preventing the sensing signal from measuring the cameraman's operation rather than the event itself.
[0012] In one possible implementation, the perceived signal is evaluated for validity based on time intervals; invalid, missing, repeated, out-of-order, or late intervals are not included in the accumulation of contribution values, and the time not covered by a valid interval does not continue the state conditions of the previous interval, thereby achieving sensor-level fault tolerance and preventing abnormal data from contaminating the saliency function value.
[0013] In one possible implementation, the method further includes: acquiring discrete events occurring in the event; assigning a bounded event contribution value to each discrete event, the event contribution value being maintained for a predetermined duration and then decaying according to a preset rule, with the event contribution value of each discrete event being timed independently; the saliency function value being obtained by fusing the context baseline value, the contribution value, and the event contribution value that has not yet decayed; and in response to the cancellation of a discrete event, only the event contribution value of the discrete event is removed. Instantaneous events can immediately contribute a peak value, while the cancellation of an event does not affect the contribution value of the state condition or the context baseline value, making the correction semantics clear and predictable. Furthermore, the preset rule is a stepped decay, that is, decay is achieved in integer steps, which has low computational complexity and defined boundaries, making it suitable for real-time execution on embedded devices.
[0014] In one possible implementation, determining the highlights or video segments in the event video based on the comparison result of the saliency function value and a preset threshold includes: determining the starting point of the highlight video segment in response to the saliency function value crossing the preset threshold upwards; and determining the ending point of the highlight video segment in response to the saliency function value crossing the preset threshold downwards, such that the boundary of the highlight video segment is determined by the true continuous shape of the saliency function value. Furthermore, the determination can be performed in real-time during a live broadcast, marking the highlight segment on the live screen or preview card; it can also be performed offline for recorded event videos; or it can be performed retrospectively for any user-specified moment, allowing the user to instantly know whether their current moment belongs to a highlight segment when dragging the timeline.
[0015] In one possible implementation, there are multiple preset thresholds. Based on the saliency function value, each preset threshold is crossed to obtain multiple nested video segment sets. Through a single fusion calculation, multiple selective segment sets are generated simultaneously.
[0016] In one possible implementation, the method further includes: sorting the multiple events in real time according to their respective saliency function values and outputting the sorting results, so as to provide the live streaming platform with a machine-readable basis for cross-event comparison.
[0017] In one possible implementation, the method further includes: generating natural language description information for the highlight video clip based on the amplitude range of the peak value of the saliency function within the highlight video clip and the event stage covering the peak value. The natural language description information does not depend on discrete events occurring within the highlight video clip, enabling the generation of description information for clips supported solely by contextual baseline values and containing no discrete events, which is structurally impossible for event-descriptive naming methods.
[0018] In one possible implementation, the accumulation and decay of the contribution value, as well as the fusion of the context baseline value and the contribution value, are performed based on the timeline of the event recording media, so that the same event status data and perceived signals produce the same saliency function value; in response to the correction of the event status data, based on the retained event status data and perceived signal history, the saliency function value and the start and end points of the highlight video clips are recalculated from the correction time, ensuring that the saliency function value is verifiable and can be recalculated afterward.
[0019] Based on the same inventive concept, a second aspect of this application provides a video processing method, comprising: acquiring a continuous state signal obtained by a computer vision detector continuously detecting a video, the continuous state signal representing the validity and persistence of a predetermined condition; accumulating a contribution value for the predetermined condition according to the duration of its validity, and decaying the accumulated contribution value over time when the predetermined condition stops being valid; retaining the remaining contribution value after decay and continuing to accumulate it when the predetermined condition resumes being valid after it stops being valid; and determining a target moment or target video segment in the video based on the accumulated contribution value. This aspect decouples the mechanism of accumulating continuous conditions according to the duration of validity from the event domain. The detector only needs to report whether the condition is valid continuously without needing to accurately classify instantaneous events. False alarms must be continuous to have an impact, while the flickering of the true condition can still continue to accumulate after recovery.
[0020] In one possible implementation, the contribution value increases by an increment for each unit of time the predetermined condition is met, and the accumulation of the contribution value is capped, so that the contribution value increases with the duration of the condition without being dominated by a single extreme occurrence.
[0021] In one possible implementation, after the predetermined condition stops being met, the accumulated contribution value decreases by one step every preset time interval. The integer step does not involve floating-point operations, and the boundary time value is determined, which is suitable for real-time execution by embedded devices.
[0022] In one possible implementation, if the predetermined condition is restored to hold before the accumulated contribution value decays to zero, the holding period before and after the restoration of the predetermined condition is merged into a single target video segment, so that a complete continuous process is not fragmented by brief interruptions.
[0023] In one possible implementation, the predetermined condition is determined by the detection state output by the computer vision detector being maintained for a duration not less than a preset duration, and momentary false detections are not considered valid because the duration is insufficient.
[0024] In one possible implementation, determining the target moment or target video segment in the video based on the accumulated contribution value includes: determining the time interval where the accumulated contribution value is not lower than a preset threshold as the target video segment, and the segment duration is determined by the actual duration of predetermined conditions.
[0025] In one possible implementation, determining the target moment or target video segment in the video based on the accumulated contribution value includes: determining the starting point of the target video segment in response to the accumulated contribution value crossing an upward preset threshold; and determining the ending point of the target video segment in response to the accumulated contribution value crossing the preset threshold downward, such that the segment boundary is determined by the true continuous shape of the contribution value.
[0026] In one possible implementation, there are multiple preset thresholds. The accumulated contribution value is passed through each preset threshold to obtain a nested set of multiple target video segments. A single cumulative calculation simultaneously produces a set of segments with multiple selectivity levels.
[0027] In one possible implementation, determining the target time or target video segment in the video based on the accumulated contribution value includes: for any time in the video to be determined, determining whether the arbitrary time is the target time based on whether the accumulated contribution value at the arbitrary time is not lower than a preset threshold, and outputting a mark when the determination is yes, so that the preview and playback interface can mark the time points of interest in real time.
[0028] In one possible implementation, the video is a security surveillance video, and the predetermined condition is the continuous gathering of people in the same monitoring area. The interval of long-term gathering is cut out for security review, and single short-term false detections are excluded.
[0029] In one possible implementation, the video is drone aerial video, and the predetermined condition is the continuous movement of the target object in the frame; the method further includes: saving aerial footage corresponding to the intervals where the accumulated contribution value is higher than a preset threshold, and discarding footage corresponding to the intervals where the accumulated contribution value is lower than the preset threshold, so that the limited onboard storage is concentrated on valuable footage.
[0030] In one possible implementation, the video is a meeting recording, and the predetermined condition is a heated discussion in which multiple participants speak simultaneously. The highlights of the meeting recording are determined by the intensity of the discussion without the need for manual marking.
[0031] In one possible implementation, the video is a competition video, and the predetermined conditions include at least one of the following: the overall movement intensity state of the participant group, the spatial distribution of participants (convergence or dispersion), the state of the competition area being continuously occupied, the movement state of the object being contested continuously tending towards the scoring area, and the time derivative of any of the above. This implementation can determine the target moment or target video segment in the competition video based solely on the contribution value without introducing a contextual baseline value, providing a low-configuration implementation method for shooting devices that lack the ability to identify the competition state.
[0032] In one possible implementation, the validity of the continuous state signal is determined by time interval; invalid, missing, repeated, out-of-order, or late intervals do not participate in the accumulation of the contribution value, and the time not covered by the valid interval does not continue the state of the predetermined condition of the previous interval, thereby achieving sensor-level fault tolerance and preventing abnormal data from contaminating the contribution value.
[0033] In one possible implementation, the accumulation and attenuation of the contribution value are performed based on the media timeline of the video so that the same persistent state signal produces the same contribution value; in response to the correction of the media timeline, the contribution value and the start and end points of the target video segment are recalculated from the correction time based on the history of the retained persistent state signal, ensuring that the contribution value is verifiable and can be recalculated afterward.
[0034] Based on the same inventive concept, in a third aspect of this application, a computing device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in the first or second aspect of this application.
[0035] Based on the same inventive concept, in a fourth aspect of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the method described in the first or second aspect of this application.
[0036] The technical solution of this application introduces a contextual baseline value that does not decay with the continuation of the situation, enabling the event to maintain a salience value commensurate with the situation even in a continuous confrontation interval without any detectable events. This allows video clips to span intervals where there is nothing in the observation area, an output that event-driven systems cannot structurally produce. By having the perceived signals participate in the fusion as state conditions rather than discrete events and accumulating contribution values according to duration, the clip duration becomes a true measure of the duration of the high-intensity event. At the same time, instantaneous false alarms contribute almost nothing, and the flickering of real conditions can continue to accumulate after recovery, significantly reducing the dependence on detector accuracy. This allows the solution to be deployed on portable shooting devices with limited computing power and ported to sports lacking training models. The contextual baseline layer and the perception layer are independent of each other and each degrades. If either layer is missing or fails, the other layer can still generate functions, segment segments, and support sorting, eliminating single-point failure modes. Attached Figure Description
[0037] Figure 1 A schematic diagram of the architecture of the sports video processing system provided in this application embodiment is shown.
[0038] Figure 2 This diagram illustrates a comparison between the scenario baseline value provided in this application embodiment and the event impact curve of the prior art under the same circumstances.
[0039] Figure 3 This diagram illustrates the cumulative contribution value of state conditions provided in an embodiment of this application based on duration, and its decay after the duration ceases.
[0040] Figure 4 This illustration shows a saliency function value crossing a preset threshold to determine the start and end points of a video segment, as provided in an embodiment of this application.
[0041] Figure 5 The illustration shows the actual effect of calculating the saliency function value and segmenting video clips in the third period of an ice hockey game, as provided in the embodiments of this application.
[0042] Figure 6 This illustration shows a timing diagram of the velocity contribution value provided by an embodiment of this application accumulating over duration, decaying after stopping, and retaining the remaining value upon recovery.
[0043] Figure 7 This illustration shows a decomposition diagram of the superposition and fusion of the components of the saliency function value provided in the embodiments of this application.
[0044] Figure 8 This illustration shows a schematic diagram of the display interface for overlaying intensity index and segment markers on a live broadcast screen, as provided in an embodiment of this application.
[0045] Figure 9This illustration shows a schematic diagram of the interface where preview cards of a live streaming platform provided in this application are displayed in sorted order according to saliency function values.
[0046] Figure 10 A schematic diagram of the display interface for the list of highlights provided in an embodiment of this application is shown.
[0047] Figure 11 This illustration shows a flowchart of a process for recalculating the saliency function value in response to the cancellation of a discrete event, as provided in an embodiment of this application.
[0048] Figure 12 A flowchart illustrating the video processing method provided in an embodiment of this application is shown.
[0049] Figure 13 A schematic diagram of a computing device suitable for implementing embodiments of this application is shown. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0051] The sports video processing method provided in this application can run on portable sports shooting devices, such as cameras that automatically track and shoot sports matches. This device executes the method in real time while recording the sports video and outputs video clips and saliency function values. It can also run on a cloud server, executing the method in parallel on multiple sports streams accessed by a live streaming platform to support real-time sorting across sports events. Furthermore, it can run on a post-processing application on a personal computer or mobile terminal, executing the method offline on recorded sports videos. In one possible implementation, the executing entity is a portable shooting device equipped with a camera and an embedded processor, with all calculations performed locally on the device without a network connection. In another possible implementation, the video analysis is performed locally on the device, while the acquisition and fusion calculation of sports status data is performed in the cloud. In yet another possible implementation, all processing is performed offline after the event. It should be noted that the executing entity and deployment location of each step in this application do not constitute a limitation on the scope of protection of this application.
[0052] The sports video described in this application refers to video recorded from a continuously running sports event. A continuously running sports event is one where the game progresses continuously over time and the situation is meaningful at any given moment, such as sports like ice hockey, football, basketball, rugby, and hockey, as well as esports events that evolve continuously over time. In contrast, round-robin sports like volleyball, tennis, and badminton have clear dead ball boundaries between rounds, and the situation is zeroed out between rounds. These are not typical applications of the continuously running sports event described in this application. However, in one possible implementation, the method of this application can still calculate the significance function value for intervals within rounds of a round-robin event. The sports object described in this application refers to the object whose movement and position are observed in the sports event, including participants and objects contested or manipulated by participants. In one possible implementation, the sports object is all skaters and the hoop in an ice hockey game; in another possible implementation, the sports object is the ball carrier and the football in a football game; and in yet another possible implementation, the sports object is the target area or key game unit contested in an esports game. The situation described in this application refers to the tension and importance of a match at a given moment, which is characterized by the score, the stage of the match, the remaining time, and the specific situational conditions of the sport. For example, in ice hockey, the trailing team takes off their goalie in the last two minutes of the third period, creating a six-on-five situation. In football, the last two minutes when the score is tied are also a high-situation state.
[0053] refer to Figure 1 The sports video processing system provided in this application includes four layers. The state data layer acquires sports state data that evolves continuously over time. This data represents the current situation of the sports event and can originate from scoreboard data, official sports data interfaces, or manual input, as detailed below. The perception layer analyzes the sports video to obtain perception signals, which represent temporally continuous state conditions related to the sports event. The temporal fusion layer determines a contextual baseline value based on the sports state data, accumulates contribution values for state conditions according to their duration, and fuses the contextual baseline value and contribution values to obtain a saliency function value. The output layer outputs tagging information for highlight segments based on the comparison result of the saliency function value and a preset threshold. This includes the determination result of highlight moments or highlight video segments, the start and end points of the video segments, natural language description information of the segments, and the ranking results across sports events.
[0054] The context baseline layer and the perception layer are independent of each other and can each operate in a degraded manner. In this implementation, the sources of the event status data and the perception signals are independent of each other: when the scoreboard recognition fails, for example, in amateur events without electronic scoreboards, the context baseline value can be set to a fixed minimum safe level, and the saliency function value is driven solely by the contribution value of the status conditions. In this case, the segment boundaries are entirely determined by the continuous confrontation, and the peak value at the moment of a goal is provided by the event contribution value. When the perception layer fails, for example, when the visual detector outputs an invalid interval for a long time due to drastic changes in lighting, the context baseline value still remains consistent with the situation, and the saliency function value can still reflect the tension of the situation. The segment boundaries are determined by the switching of the baseline level, but the continuous confrontation is lacking. In an extreme case, the perception layer and the event layer fail simultaneously. In this case, the saliency function value degenerates into the context baseline value itself, and the system can still extract segments of high-situation periods based on the situation and participate in cross-event sorting. When either layer is missing or fails, the other layer can still generate functions, segment segments, and support sorting; there is no single-point failure mode. This is one of the reasons why table lookup solutions are superior to training models in engineering: table lookup rows can be executed in any environment, while training models have failure scenarios.
[0055] In one overall implementation, the sports video processing method provided in this application is fully implemented as follows: The executing entity processes the sports video segment by segment along the timeline of the sports recording media: After each sampling period, sports status data is obtained through scoreboard image recognition, scorer input, or official data interface. The sports status data at least reflects the score relationship, sports stage, and remaining time, representing the current situation of the sports event. The computer vision detector simultaneously analyzes the video frames of the current time segment and outputs a perception signal. The perception signal represents whether one or more state conditions are met within the segment. The state conditions are time-dependent and related to the sports event, such as the overall intensity of the participants' movement being high. For the current situation, a situational baseline value is obtained by looking up a table using the sports status data as an index. During the duration of the situation, the situational baseline value remains at its current value and does not decay over time. When the situation changes, the situational baseline value switches to the value corresponding to the changed situation. During the duration of a given condition, an increment is accumulated for each unit of time, with an upper limit set (e.g., one increment every three seconds, with a maximum of five). After the condition ceases to exist, the accumulated contribution value decays over time according to a preset rule (e.g., decreasing every five seconds until it reaches zero). When the condition is met again, accumulation resumes from the remaining contribution value. At each moment, the baseline value of the scenario is added to the current contribution value of each condition, and the sum is truncated to a preset upper limit to obtain the saliency function value for that moment. When the saliency function value crosses a preset threshold upwards, that moment is identified as a highlight moment. To identify a highlight video segment, the upward-crossing moment is moved backwards by a predetermined time to obtain the segment's starting point, and the downward-crossing moment is extended backwards by a predetermined time to obtain the segment's ending point. The video between the starting and ending points constitutes a highlight video segment, and the segment length varies significantly depending on the actual duration of the event. By calculating moment by moment in the above manner, highlight moments and variable-length highlight video segments can be obtained from continuous-time event videos without relying on any discrete event detection.
[0056] The following provides a detailed description of each step in the event video processing method provided in the embodiments of this application.
[0057] First, acquire the continuously evolving match status data over time. Match status data characterizes the current situation of the match. In one possible implementation, the match status data includes at least one of the following: score, match stage, remaining time, and sport-specific situation conditions. Specifically, the score can be a tie, a one-point lead, a two-point deficit, etc.; the match stage can be the first, second, or third period of an ice hockey game, overtime, or the first, second, or stoppage time phase of a football game; the remaining time is the remaining time of the current stage; and sport-specific situation conditions include, for example, a numerical advantage in ice hockey or a stoppage time phase in football. In one possible implementation, the event status data is derived from the identification of the event scoreboard. The scoreboard is the official scoring and timing device for the event, and its data is confirmed by the event organizers, possessing authority and reproducibility. For example, when a referee reviews and changes a decision, the scoreboard is corrected accordingly. This application, based on authoritative source event status data such as the scoreboard, can support the deterministic recalculation described later. In another possible implementation, the event status data comes from an official data interface provided by the event league or event operator, and is pushed in real time via the network. In yet another possible implementation, the event status data is entered by sideline personnel through a simple manual input interface. This method has the lowest cost and is suitable for amateur events without electronic scoreboards. Of the three sources mentioned above, scoreboard identification is the actual solution used, while official data interfaces and manual input are suboptimal but equally feasible solutions.
[0058] In one optional implementation, the event status data includes at least one of the following: score relationship, event stage, remaining time, and sport-specific situation conditions. In this implementation, the score relationship is used to determine the situational baseline value by dividing the score difference into different levels. A tie, a one-point difference, a two-point difference, a three-point difference, or more points correspond to different baseline levels, with smaller differences resulting in higher levels, because any point scored when the score is close can change the outcome. The event stage is used to distinguish the early, middle, and late stages of the game, such as the first, second, and third periods and overtime in ice hockey, and the first half, second half, and stoppage time in football. The same score relationship corresponds to different levels in different stages, with higher levels in later stages. Remaining time is further subdivided into levels within each stage. The less time remaining, the fewer opportunities the trailing team has to tie the game, and the more intense the competition on the ice. Sport-specific situation conditions are used to depict situations that cannot be expressed by the score and time, such as a numerical advantage in ice hockey, a leading team being fouled out in football, or the foul limit being reached in the last two minutes of the fourth quarter in basketball.
[0059] In one implementation, all four factors are used simultaneously to determine the baseline value: the baseline level is obtained by looking up a table using the absolute difference in score, the current period, and the remaining time as indices, and the numerical advantage is added to the baseline level as a correction value. In another implementation, only the score relationship and the remaining time are used, which is suitable for amateur events where data on the numerical advantage is unavailable. In yet another implementation, the four data points are mapped to scores and then summed using weighted averages. Similarly, for two periods where no event has occurred, the baseline values will differ significantly depending on the situation, and the significance function value will be consistent with the audience's intuitive perception of the level of tension.
[0060] In one alternative implementation, in response to the game status data representing timeout, intermission, or game end, the status conditions do not accumulate contribution values during the corresponding periods. In this implementation, timeout includes periods when the game clock stops running, such as when the referee blows the whistle to pause the game, when video replays are reviewed, or when athletes are injured; intermission includes the time between periods in ice hockey games and the halftime break in football games; and game end includes the period after regular time and overtime. These periods share the common characteristic of the game clock no longer running and on-field activities no longer constituting formal competition. While warm-up skating by substitute players during pauses and rink preparation by staff during intermissions may be captured as movement by sensing signals, they should not be accumulated as contribution values.
[0061] In one implementation, the running status of the match timer serves as the eligibility signal: accumulation is allowed during the timer's operation, and accumulation is paused during stops, with accumulated contribution values decaying normally according to the recording media's timeline. In another implementation, neither accumulation nor decay occurs during timeouts, and accumulated contribution values are frozen until the match resumes, suitable for product formats where pauses do not disrupt the continuity of segments. In yet another implementation, all contribution values are reset to zero immediately after the match ends, and the salience function value drops back to its lowest level. Thus, the salience function value only measures the intensity of competition during the official match time, and pauses, breaks, and post-match periods are not mistakenly cut into highlight segments.
[0062] Secondly, the sensory signals obtained from analyzing the event videos are acquired. These sensory signals represent temporally continuous state conditions related to the event; the state conditions described in this application refer to conditions that remain true or false within a continuous period of time during the event. For example, the condition "the entire group of participants is in a state of high-speed movement" is either true or false at any given moment, and its continued validity for several consecutive seconds constitutes the continuity of this state condition. State conditions differ from discrete events: discrete events occur and end immediately at a single point in time, such as a shot or a goal; state conditions, however, extend over time, such as sustained high-speed gliding or sustained area occupation. In one possible implementation, the state conditions include at least one of the following: the overall motion intensity state of the participant group, such as the average skating speed of all skaters in an ice hockey game exceeding a preset speed threshold; the spatial distribution state of the participants, such as most participants clustering in a very small area near the goal area; the state of the playing area being continuously occupied, such as the attacking team maintaining a numerical advantage in the attack zone; the motion state of the object being contested continuously moving towards the scoring area, such as the puck continuously moving towards the opponent's goal area; and the time derivative of any of the above, such as the continuous increase in overall motion intensity. Among these, the spatial distribution and area occupation state conditions can capture static but tense scenes, such as a dense siege in front of the goal line that contains almost no movement, thus compensating for the blind spots of motion energy methods. In one possible implementation, the sensing signal is obtained by tracking participants and statistically analyzing their collective kinematic characteristics using a computer vision detector, such as tracking all skaters and calculating their average speed; this is the practical approach. In another possible implementation, the sensing signal is obtained through optical flow field statistics, i.e., calculating dense optical flow for video frames and statistically analyzing the spatial distribution of energy in the motion field, eliminating the need to detect and track each participant individually, making it simpler but less semantically clear than tracking schemes. In yet another possible implementation, the sensing signal is obtained through inter-frame difference statistics, i.e., statistically analyzing the area and position of changing regions between adjacent frames; this is the simplest implementation and suitable for devices with extremely limited computing power, but is easily affected by camera movement and changes in lighting. Further, in one possible implementation, the sensing signal is calculated after compensating for camera translation, zoom, and perspective changes; i.e., first estimating global motion parameters between adjacent frames and subtracting them from the participant's movement, separating the participant's movement from the camera's own movement, avoiding the sensing signal measuring the cameraman's actions rather than the event itself. In yet another possible implementation, shooting is done from a fixed position directly above the field without requiring camera motion compensation.In one possible implementation, the validity of the sensed signal is determined by time interval, that is, the sensed signal is judged for each interval to determine whether it is reliable and can be used for the accumulation of contribution value. For example, each interval is three seconds. Invalid, missing, repeated, out-of-order or late intervals do not participate in the accumulation of contribution value, and the time not covered by the valid interval does not continue the state conditions of the previous interval. That is, when data is missing, the state conditions are considered invalid instead of using the last value, so as to achieve sensor-level fault tolerance and prevent abnormal data from polluting the significance function value.
[0063] In one optional implementation, the state conditions include at least one of the following: the overall motion intensity state of the participant group, the clustering or dispersion state of the participants' spatial distribution, the state of the continuously occupied area of the competition zone, the motion state of the object being contested continuously moving towards the scoring zone, and the time derivative of any of the above. In this implementation, the overall motion intensity state, such as the average speed of all participants exceeding a preset speed threshold, can be obtained by tracking all participants and calculating their average speed; the clustering or dispersion state of the spatial distribution, such as most participants clustering in a very small area near the goal area, can be determined by the spatial entropy or distribution radius of the participants' positions being lower than a preset threshold; the state of the continuously occupied area of the competition zone, such as the attacking side maintaining a numerical advantage in the attack zone, can be obtained by dividing and counting the number of both sides; the motion state of the object being contested continuously moving towards the scoring zone, such as an ice hockey or soccer ball continuously moving towards the opponent's goal area, can be determined by the displacement direction of the object being contested continuously pointing towards the scoring zone.
[0064] Time derivative-based state conditions, such as the continuous increase in overall motion intensity, capture the escalating tension of the situation rather than its static level. Multiple of the above five types of state conditions can be activated simultaneously, with their individual contributions accumulating independently and then superimposed; alternatively, only one or two conditions can be activated for each sport, such as activating the overall motion intensity state only for ice hockey and the area occupation state only for soccer. Spatial distribution and area occupation state conditions can capture static but tense situations; the dense siege in front of the goal line contains almost no motion, effectively compensating for the blind spots when using only motion energy. Continuous confrontation across the three dimensions of motion, space, and process can all be converted into contribution values, and the significance function value will not be missed due to changes in the form of confrontation.
[0065] In one alternative implementation, the perceived signal is calculated after compensating for camera translation, scaling, and perspective changes. In this implementation, the portable automatic tracking shooting device continuously rotates and zooms during the tracking shot. The video frames contain both the actual movement of the contestants and the overall image displacement caused by the camera movement. If these two are not distinguished, a single rapid panning shot could be misinterpreted as the high-speed movement of all contestants. One method of compensation is to extract feature points between adjacent frames, estimate global motion parameters including translation, scaling factors, and perspective transformation matrices, and perform an inverse transformation on the image according to the global motion parameters to obtain a motion field after eliminating camera movement, in which the movement of the contestants is separated from the movement of the camera itself.
[0066] Another approach utilizes the angular velocity sensor and zoom encoder readings of the device's pan-tilt unit to directly calculate lens motion, subtracting it entirely from the optical flow field without the need for frame-by-frame estimation, thus reducing computational load. Yet another approach involves fixing the camera directly above the field, eliminating lens motion and the need for compensation steps, making it suitable for deployments in fixed venues. After compensation, the perceived signal measures the event itself, not the cameraman's actions, and the automatic tracking device will not create false peaks in the saliency function value even when rapidly rotating the lens to track possession.
[0067] In one optional implementation, the validity of the sensed signal is determined by time interval. Invalid, missing, duplicate, out-of-order, or late intervals do not participate in the accumulation of contribution values, and the time not covered by a valid interval does not continue the state conditions of the previous interval. In this implementation, the detector outputs the sensed signal interval by interval, with each interval carrying the coverage area and a validity flag, for example, one interval is output per second. Invalid intervals are, for example, intervals with a detection confidence level below a threshold; missing intervals are, for example, intervals that are not output due to frame drops; duplicate intervals are, for example, intervals that are repeatedly reported within the same time period; out-of-order intervals are, for example, intervals that arrive later than subsequent intervals; and late intervals are, for example, intervals whose recorded time has exceeded the tolerance window when they arrive. These five types of intervals do not participate in the accumulation of contribution values.
[0068] Time periods not covered by the valid interval do not use the state conditions of previous intervals. When data is missing, the state conditions are considered invalid, rather than using the last value. The rationale for this is that using old values would treat a period without observational support as a continuous accumulation of adversarial data, and the contribution value during the missing period would lose its factual basis. Treating it as invalid means that the missing data only manifests as an interruption in accumulation, and the already accumulated contribution value decays according to rules, and is accumulated again after the valid signal is restored. Abnormal data is thus isolated from the accumulation process, and sensor-level failures such as detector restarts and network packet loss will not pollute the significance function value.
[0069] Secondly, the situational baseline value is determined based on the event status data. The situational baseline value is the component in the saliency function value that represents the degree of sustained tension in the situation. During the duration of the situation represented by the event status data, the situational baseline value does not decay. The non-decay mentioned in this application means that as long as the event status data does not change, the situational baseline value maintains its value, rather than tending towards zero over time. In one possible implementation, the situational baseline value is determined by looking up a table based on the event status data. That is, the situation space is discretized in advance and a baseline value is assigned to each situation combination. During execution, the table is directly looked up. This is the actual solution used, with minimal computation and completely predictable behavior, making it suitable for embedded devices. In another possible implementation, the event status data is input into a pre-trained win rate model, and the output win rate is converted into a situational baseline value through monotonic mapping. This solution has finer granularity but depends on the training data and introduces model uninterpretability. In yet another possible implementation, each event status component is mapped to a score and then weighted and summed, i.e., a piecewise linear mapping scheme. This is simple to implement, but the weights need to be manually tuned.
[0070] Then, the contribution value of the state condition is accumulated according to its duration, and the accumulated contribution value decays over time when the state condition ceases to exist. The accumulation according to duration, as described in this application, means that for every unit of time the state condition remains true, the contribution value increases by an increment corresponding to that unit of time; the longer the state condition remains true, the larger the contribution value. The decay over time, as described in this application, means that after the state condition ceases to exist, the accumulated contribution value gradually decreases over time according to a preset rule. In one possible implementation, the contribution value accumulates linearly at a fixed rate, that is, it increases by a fixed value for every second it remains true; this is the scheme actually used. In another possible implementation, the accumulation rate increases with the duration to reward rare long durations; for example, the longer the duration, the larger the increment per second. In yet another possible implementation, the accumulation has an upper limit, and no further increases are made after the upper limit is reached to prevent the extreme duration of a single state from dominating the significance function value. Regarding decay, in one possible implementation, the state condition decays by a fixed value every predetermined time interval after it ceases to persist, i.e., linear decay. In another possible implementation, it decays by a fixed proportion of the current value, i.e., exponential decay, with its tail never returning to zero; in practice, it can be truncated to zero when the value is below the minimum representable value. In yet another possible implementation, the contribution value is maintained for a predetermined time before decay begins, to tolerate brief flickering of the state condition. In this way, the reliability requirement for the detector is reversed from precise to stable: instantaneous false alarms contribute almost nothing because their duration approaches zero; brief flickering of the true condition only pauses or slightly regresses accumulation, and accumulation can continue after recovery; the detector no longer needs to precisely classify instantaneous events, but only needs to determine whether the condition continues to be true.
[0071] Subsequently, the situational baseline value and the contribution value are fused to obtain the significance function value. The significance function value is a scalar that changes continuously over time, comprehensively representing the significance of the event at each moment. In one possible implementation, the fusion is additive with an upper limit, meaning the significance function value is the sum of the situational baseline value and the contribution value, but does not exceed a preset maximum value, and is not lower than the situational baseline value. This is the actual scheme used, and its semantics are: the situation itself determines the lower limit, and the continuous high-intensity confrontation that actually occurs in the event adds a contribution on top of the situation. In another possible implementation, the fusion is to take the maximum value between the situational baseline value and the contribution value. This scheme is simpler to implement, but it cannot reflect the higher significance after the situation and the actual confrontation are superimposed. In yet another possible implementation, the fusion is a weighted summation, and the weights can be adjusted according to the sport. In one possible implementation, the method further includes acquiring discrete events occurring in the event, assigning a bounded event contribution value to each discrete event, and allowing the event contribution value to decay according to a preset rule after a predetermined duration. The event contribution value of each discrete event is timed independently, and the saliency function value is obtained by fusing the context baseline value, the contribution value of the state condition, and the event contribution value that has not yet decayed. Instantaneous events can immediately contribute a peak value, and the event contribution value is independent of the contribution value of the state condition. In response to the cancellation of a discrete event, only the event contribution value of the discrete event is removed, without affecting the contribution value of the state condition or the context baseline value, making the correction semantics clear and predictable. Further, in one possible implementation, the decay of the event contribution value is step decay, that is, decay is achieved in integer steps, which has low computational complexity and defined boundaries, making it suitable for real-time execution on embedded devices; in another possible implementation, the event contribution value decays linearly; and in yet another possible implementation, the event contribution value decays exponentially.
[0072] In an optional implementation, the method further includes: acquiring discrete events occurring during the event; assigning a bounded event contribution value to each discrete event, the event contribution value being maintained for a predetermined duration and then decaying according to a preset rule, with the event contribution value of each discrete event being timed independently; the saliency function value being obtained by fusing the context baseline value, the contribution value of the state condition, and the event contribution value that has not yet decayed; and in response to the cancellation of a discrete event, only the event contribution value of the discrete event being removed. In this implementation, discrete events, such as goals, shots, and game-winning goals, have an upper bound on their event contribution values, ensuring that no single event can dominate the saliency function value; maintaining the event for a predetermined duration allows its impact to cover the subsequent instant replay and celebration periods; each event is timed independently, and multiple events occurring consecutively within a short period retain their own decay progress without resetting to zero.
[0073] In one implementation, discrete events are derived from scoreboard data, with goal events automatically generated as the score changes, requiring no additional visual detection. In another implementation, discrete events are derived from visual detectors, such as detecting the ball crossing the goal line. Both sources can be enabled simultaneously and deduplicated by timestamp. In response to the revocation of a discrete event, such as a goal being cancelled after referee review, the system only removes the event contribution value; the contribution value of the state conditions and the baseline value remain unaffected. The salience function value is recalculated based on retained historical data from the time of correction. Instantaneous events can immediately contribute peak values, while revoked events do not inadvertently affect the accumulated contribution from ongoing confrontations. The entire correction process is deterministic and verifiable.
[0074] In one optional implementation, the preset rule is stepped decay. In this implementation, the event contribution value decays in integer steps: after a predetermined duration, it decreases by one step value every fixed decay cycle until it reaches zero. Taking an event contribution value of six, a ten-second hold, and a decrease of one every five seconds as an example, the event contribution values at the fifteenth, twentieth, twenty-fifth, thirtieth, thirty-fifth, and fortieth seconds after the event occur are five, four, three, two, one, and zero, respectively, with each value being a definite integer. Integer steps do not involve floating-point or exponential operations, allowing for real-time execution with very low overhead on embedded devices with limited computing power; the boundary times of the steps are also definite, and in conjunction with recalculation based on the recorded media timeline, the same historical data will yield the same significance function value at any time during recalculation, unaffected by floating-point rounding errors. In another implementation, the preset rule is linear or exponential decay, suitable for deployment environments with ample computing power where a smoother curve is desired.
[0075] Finally, based on the comparison between the saliency function value and a preset threshold, the highlights or highlight video segments in the event video are determined. The highlights mentioned in this application refer to moments when the saliency function value meets the preset threshold condition, such as moments when the saliency function value is not lower than the preset threshold; the highlight video segments refer to video intervals composed of moments that continuously meet the preset threshold condition. The method of this application is executed uniformly with the same saliency function value in three scenarios: First, determining whether the current moment is a highlight moment in real time during live streaming, for example, displaying a highlight segment marker in real time on the live stream screen or the preview card of the live streaming platform; second, determining highlight video segments offline for recorded event videos; third, determining whether any moment specified by the user belongs to a highlight segment, for example, instantly knowing the level of highlight level of the current moment when the user drags the timeline. In one possible implementation, determining a highlight video segment includes: determining the segment's starting point in response to the saliency function value crossing an upward preset threshold, and determining the segment's ending point in response to the saliency function value crossing a downward preset threshold; further, using the moment of upward crossing as the segment's starting point by moving backward by a predetermined duration, and using the moment of downward crossing as the segment's ending point by moving backward by a predetermined duration, the backward and extended durations are used to provide context for the segment, which is the actual approach used; in another possible implementation, the upward and downward crossing points are directly used as the segment's starting and ending points, and the segment is entirely determined by the shape of the saliency function value; in yet another possible implementation, the segment's ending point is dynamically expanded, that is, when the saliency function value crosses upward again within a predetermined duration after downward crossing, the two intervals are merged into one segment, ensuring that a complete climax is not interrupted. Regarding the selection of the preset threshold, in one possible implementation, the preset threshold is a fixed value manually adjusted according to the sport; in another possible implementation, the preset threshold is configured separately for each sport, with different thresholds used for different sports; in yet another possible implementation, the preset threshold is adaptively determined based on the distribution of historical saliency function values, for example, taking the 95th percentile of historical values, suitable for new sports lacking historical data. In one possible implementation, there are multiple preset thresholds, and multiple nested sets of video segments are obtained by passing through each preset threshold according to the saliency function value. For example, a set of relaxed segments is obtained with a first threshold, and a set of essential segments is obtained with a higher second threshold. Multiple sets of selective segments are generated simultaneously through a single fusion calculation.
[0076] In one optional implementation, determining the highlight video segment in the event video based on the comparison result of the saliency function value and a preset threshold includes: determining the starting point of the highlight video segment in response to the saliency function value crossing upward across the preset threshold; and determining the ending point of the highlight video segment in response to the saliency function value crossing downward across the preset threshold. In this implementation, crossing upward means that the saliency function value changes from below the preset threshold to not below the preset threshold, and crossing downward means that the value changes from not below the preset threshold to below the preset threshold. One implementation uses the moment of upward crossing forward by a predetermined time as the segment starting point and the moment of downward crossing backward by a predetermined time as the segment ending point, for example, moving forward eight seconds and backward five seconds. The backward movement and the forward movement provide the context for the cause and effect of the segment.
[0077] Another implementation uses the upward and downward crossing points as the start and end points of the segment, with the segment entirely determined by the shape of the salience function value. Yet another implementation starts a closing timer after a downward crossing: if the salience function value crosses upward again within a predetermined time, the closing is canceled and the same segment continues, preventing a climax from being briefly cut into two segments; if two adjacent segments are less than a preset merging interval, such as ten seconds, they are merged into one segment. In this way, the segment boundaries are determined by the true, continuous shape of the salience function value, the segment length has no upper limit, and there is no longer a fixed-length window truncated around a particular event.
[0078] In one optional implementation, multiple preset thresholds are used. Based on the saliency function value, each preset threshold is crossed to obtain nested sets of video segments. In this implementation, the preset thresholds are all different; the set of segments corresponding to a higher threshold is necessarily nested within the set of segments corresponding to a lower threshold, because the interval where the saliency function value is not lower than the higher threshold is necessarily not lower than the lower threshold. Taking two thresholds as an example, the first threshold seven corresponds to a loose set of segments, forming a long-duration extended compilation; the second threshold nine corresponds to a set of essential segments, nested within the loose set, forming a short-duration core compilation. Both sets are generated simultaneously by the same fusion calculation, eliminating the need for a second processing of the video.
[0079] In one implementation, the two sets of clips serve two different product formats: a relaxed set for viewers to rewatch the entire match, and a highlight set for sharing on social media platforms. In another implementation, three or more thresholds are set, corresponding to highlights, best-of, and key moments. The number and values of the thresholds are configured according to the sport; for example, in football matches where goals are scarce, the overall threshold can be lowered. A single calculation can generate multiple sets of selectable clips, directly usable by viewers with varying patience and different distribution channels with different time constraints.
[0080] In an optional implementation, the method further includes: sorting the multiple events in real time based on their respective saliency function values and outputting the sorting results. In this implementation, the live streaming platform simultaneously accesses multiple ongoing events, performs the above method on each event to obtain its respective saliency function value, and sorts them in real time according to their current saliency function values. One way to consume the sorting results is through the arrangement of preview cards on the live streaming platform, allowing viewers to discover the most worthwhile events to watch; another way is through director scheduling, where the director system switches the main screen to the event with the highest saliency function value; yet another way is through bandwidth and computing power scheduling, where events with persistently low saliency function values automatically have their encoding bitrate reduced.
[0081] The saliency function values for each event are generated using the same method, ensuring homogeneity in metrics across events—something that incompatible, self-designed excitement metrics for each event cannot achieve. In one implementation, the ranking results include the saliency function values for each event, serving as a machine-readable basis for cross-event comparisons for downstream systems. In another, the ranking is refreshed at a preset interval, such as every ten seconds, to prevent ranking fluctuations. Yet another implementation uses the order of events with the same saliency function value as the determining factor. This allows the platform to answer at any given time which event is currently the most worth watching.
[0082] In an optional implementation, the method further includes: generating natural language description information for the highlight video clip based on the amplitude range of the peak value of the saliency function within the clip and the event stage covering the peak value. The natural language description information is independent of discrete events occurring within the highlight video clip. In this implementation, the amplitude range of the peak value is divided into four levels: 10, 9, 8, and 7, corresponding to four levels of titles. The event stage covering the peak value is, for example, a period in an ice hockey game. The title includes the period in which the peak value was first reached. For example, a clip where the peak value of 10 is reached in the third period generates a first-level title plus a description of the third period.
[0083] The descriptive information is generated entirely from the peak value of the saliency function and the event stage. Even segments supported solely by the context baseline and devoid of any discrete events can obtain descriptive information, whereas event-based descriptive naming methods are structurally incapable of naming segments without events. In one implementation, the descriptive information also includes the segment's duration, such as the actual number of seconds. In another, the number of amplitude ranges and their respective title texts are configured separately for each sport. In yet another implementation, the descriptive information serves as a subtitle for the preview card, allowing viewers to understand the segment's quality before entering the event. Each highlight segment receives descriptive information commensurate with its saliency, which can be generated in batches by machine.
[0084] In one alternative implementation, accumulation, decay, and fusion are performed based on the timeline of the recorded event media to ensure that the same event status data and perceived signals produce the same saliency function value. In response to corrections to the event status data, the saliency function value, as well as the start and end points of highlight video clips, are recalculated from the correction time based on the retained event status data and perceived signal history. In this implementation, all calculations are based on the timestamps on the recorded media timeline, not the wall clock time when the processor receives the data. Execution during live streaming and post-event offline recalculation yield completely consistent results; pausing, fast-forwarding, and speeding up playback do not alter the calculation results.
[0085] When event data is authoritatively revised, such as when a referee's review changes the score or time, the system recalculates based on retained historical data from the time of the revision. The segment boundaries, peak values, and descriptive information from before the revision are updated accordingly. In one implementation, the recalculation only covers the interval after the revision, directly reusing the results before the revision to reduce recalculation overhead. In another implementation, a full recalculation is triggered with each revision, which is the simplest logic. The significance function value is thus verifiable and can be recalculated retrospectively; the value at any given time can be uniquely reproduced from the same set of historical data, which is particularly important for products that need to explain the segmentation criteria to event organizers.
[0086] In one optional implementation, the aforementioned numerical parameters are managed uniformly in the form of versioned configurations. The values of the lookup table rows, the accumulation rate and upper limit of contribution values, the decay rate, the initial value and duration of event contribution values, the number and values of preset thresholds, the duration of rollback and extension, and the merging interval constitute a unified versioned configuration. The configuration version for each recording session is frozen at the start of each session, and parameters are not modified during the session. In one implementation, the configuration version number is written into the recording metadata along with the saliency function value curve and segment markers. During subsequent recalculation, the configuration is retrieved based on the written version number, ensuring that real-time calculations on the device side, subsequent recalculations on the application side, and quality reviews produce completely consistent results for the same session at any given time. In another implementation, different sports maintain independent configuration versions, and configuration upgrades for the same sports only apply to new sessions.
[0087] refer to Figure 2The figures show a comparison between the situational baseline value and the event impact curve of prior art under the same situation. The upper figure shows the curve of the event-driven prior art: a discrete event contributes a pulse that decays over time, and the curve decays to zero in the event-free interval, even when the situation itself is highly tense. The lower figure shows the saliency function value of the embodiment of this application: the situational baseline value remains unchanged as the situation continues, the contribution value of the state conditions accumulates and decays on it, and the function value maintains a value commensurate with the situation throughout the entire period of sustained tension. Comparing the two curves, the saliency function value of this application can remain non-zero in the event-free interval, and the video clip can cross the interval where there is nothing in the view, which is an output that the event-driven system cannot structurally produce.
[0088] refer to Figure 3 The diagram illustrates the process of a state condition accumulating a contribution value over its duration and then decaying after the condition stops persisting. From the moment the state condition is established, it accumulates an increment for each unit of time, as shown by the broken line in the diagram, where the contribution value increases stepwise with duration. After the state condition stops persisting, the contribution value gradually decays to zero according to a preset rule, as shown by the decay step in the diagram. Figure 3 It is evident that transient false alarms contribute almost nothing because their duration is close to zero. The brief flicker of the true condition only pauses or slightly reverses the accumulation, and the accumulation continues after recovery. The reliability requirement of the detector changes from accurate to stable.
[0089] refer to Figure 4 This illustrates the process of determining the start and end points of a video segment by the saliency function value crossing a preset threshold. When the saliency function value crosses the preset threshold upwards, the crossing time is reversed by a predetermined duration to obtain the segment's start point. When the saliency function value crosses the preset threshold downwards, timing begins and remains for a predetermined duration. If the function value does not cross upwards again within the predetermined duration, the predetermined duration is extended backwards to obtain the segment's end point. If the function value crosses upwards again within the predetermined duration, the current closure is canceled, and the same segment continues. In one possible implementation, the predetermined backward reversal duration is eight seconds, and the predetermined backward extension duration is five seconds; in another possible implementation, the reversal and extension are zero seconds; in yet another possible implementation, two adjacent segments are merged into a single continuous segment if the interval is less than ten seconds. The segment duration has no upper limit; it is determined by the actual duration for which the saliency function value remains above the threshold, rather than by a system-preset window parameter.
[0090] refer to Figure 5The following is a specific example of the event video processing method described in this application, using an actual engineering deployment. This example is applied to ice hockey events, and the executing entity is a portable automatic tracking and shooting device. This device records event video and calculates the intensity index in real time. The intensity index is the saliency function value in this example, taking an integer value from zero to ten. The calculation model for the intensity index is as follows: using the situational baseline value determined by the event status data as the base, superimposing the player advantage correction value, speed contribution value, and goal contribution value, and capping it at ten; wherein the situational baseline value and the player advantage correction value constitute the non-attenuating part, and the speed contribution value and goal contribution value constitute the part that accumulates according to the duration and attenuates after stopping. The calculation of the intensity index is performed based on the timeline of the event recording media, and the same event status data, events, and perceived signals will yield the same intensity index when recalculated at any time.
[0091] In this embodiment, the baseline value is determined by looking up the match status data in a table. The table is indexed by the absolute difference in scores, the current quarter, and the remaining time: In the first or second quarter with more than one minute remaining, the baseline value is three for a tie or a score difference of one point, two for a score difference of two points, and one for a score difference of three points or more; in the last minute of the first or second quarter, the baseline value is six for a tie or a score difference of one point, four for a score difference of two points, and two for a score difference of three points or more; in the third quarter with more than five minutes remaining, the baseline value is five for a tie or a score difference of one point, three for a score difference of two points, and so on. A difference of 3 points or more is 2; between 5 and 2 minutes remaining in the third quarter, a tie or a 1-point difference is 7, a 2-point difference is 5, and a 3-point or more difference is 2; between 2 and 1 minute remaining in the third quarter, a tie or a 1-point difference is 8, a 2-point difference is 6, and a 3-point or more difference is 3; in the last minute of the third quarter, a tie or a 1-point difference is 9, a 2-point difference is 7, and a 3-point or more difference is 4; during overtime, the baseline value is 9 regardless of the geometric difference; the baseline value is 1 before the game, during inter-quarter breaks, and after the game. Lookup rows are mutually exclusive, taking the most specific row that meets the conditions, without aggregation. The numerical advantage correction value comes from the numerical advantage scale provided by the scoreboard system: zero for both sides having equal numbers, 1 for a one-man advantage, and 2 for a two-man advantage. This correction value takes effect immediately and remains as long as the numerical advantage persists, increasing or decreasing accordingly when the numerical advantage changes. The sum of the baseline value and the numerical advantage correction value constitutes the lower limit of the intensity index. As long as the match status data remains unchanged, this lower limit does not decay. When the score changes due to a goal, the lookup row switches accordingly, and the lower limit changes instantly.
[0092] In this embodiment, the perceived signal is a continuous high-speed skating signal, obtained by a computer vision detector through collective motion estimation of all skaters. Whether it is in a high-speed range is determined relative to recent normal competition reference speeds. The detector outputs the coverage area, high-speed flag, and valid flag every second. The speed contribution value is accumulated according to the following state machine: S represents the acquired speed contribution value, ranging from zero to nine; every three seconds of a high-speed and valid signal, S is incremented by one and the timing restarts, with S increasing the longer the signal lasts, capped at nine; when the signal is interrupted, the acquired S is not immediately cleared, but decremented by one every five seconds after the signal stops, until it reaches zero; if the high-speed signal recovers before the decay is complete, the current S is retained and the timing restarts. Qualification of the speed signal requires that the competition is in progress, the competition clock is running, and the signal effectively covers the area; speed contribution values are not accumulated during periods when the competition clock is paused, and acquired contribution values decay according to the recording time; invalid, missing, repeated, out-of-order, or late areas are not included in the accumulation, and time not covered by a valid area is immediately considered ineligible and does not continue the previous high-speed state.
[0093] In this embodiment, the discrete event is the goal event. Each valid goal immediately contributes a value of six, which remains constant for ten seconds before decaying. Thereafter, it decreases by one every five seconds, meaning the contribution values at 15, 20, 25, 30, 35, and 40 seconds after the goal are five, four, three, two, one, and zero, respectively. Each goal is timed independently. Even when the baseline value is at the lowest level (level one), the goal contribution value of six, added to level one, results in an intensity index of seven at the moment of the goal, inevitably placing it into the segment set described later.
[0094] refer to Figure 5The scenario depicted is the final 300 seconds of the third period of an ice hockey game, starting with five minutes remaining, with the score tied. The interval begins in the table lookup row with five to two minutes remaining in the third period, with a baseline value of seven. At this point, although there are no events or high-speed skating, the intensity index remains seven, just above the first preset threshold. From the 30th second, all skaters begin sustained high-speed skating, with the speed contribution value increasing by one every three seconds, reaching five at the 45th second, pushing the intensity index to its maximum of ten. At the 45th second, high-speed skating ceases, and the speed contribution value decreases by one every five seconds, decaying to zero at the 70th second, causing the intensity index to drop back to seven. From the 60th second, one team gains a numerical advantage, with a numerical advantage correction value of one, raising the lower limit to eight. Once the remaining time is less than two minutes, the table lookup row switches, and the baseline value itself rises to eight. At the 150th second, one team scores, immediately increasing the goal contribution value to six and maintaining it for ten seconds, with the intensity index again capped at ten. Subsequently, the goal contribution value decreases by one every five seconds until it reaches zero. As time entered its final minute, the lookup table switched again, raising the baseline value to nine. At this point, with neither a goal nor a high-level slide, the intensity index remained at nine solely based on the baseline value. From the 200th second, a second 12-second high-level slide occurred, with a speed contribution value reaching four, and the intensity index once again capped at ten before decaying. Throughout the entire 300-second interval, the intensity index consistently remained above the first preset threshold of seven. This interval, along with the eight seconds preceding the starting point, constituted a continuous extended highlight reel. Simultaneously, multiple sub-intervals with an intensity index above the second preset threshold of nine formed a nested collection of highlight segments. The total duration of this segment was determined by the complete duration supported by the baseline and continuous competition, rather than a fixed window segmented around a specific goal. Within the final 60 seconds, no detectable events occurred; existing event-driven systems could not extract any segments within this interval, while the segments in this embodiment completely covered this interval.
[0095] refer to Figure 6This example uses a numerical timeline to illustrate the accumulation, decay, and recovery of the speed contribution value. Assume a baseline value of five, with no numerical advantage or goal scored. The intensity index equals the sum of the baseline value and the speed contribution value S. The high-level gliding signal continues from second zero. S increases by one at the third, sixth, and ninth seconds, reaching three, with the intensity index corresponding to six, seven, and eight. At the ninth second, the signal returns to normal, but S is not immediately cleared. It decreases by one at the fourteenth and nineteenth seconds, becoming two and one respectively. At the twenty-second second, the high-level signal recovers, and S retains its current value of one and restarts the timing. It increases by one again at the twenty-fifth and twenty-eighth seconds, reaching three, and the intensity index recovers accordingly. If the high-level signal is interrupted before three seconds, for example, after two seconds of interruption followed by one second of continuation, the already completed timing is not continued. Since both durations are less than three seconds, S remains zero. In this example, the intensity index crosses the first preset threshold of seven at the sixth second, and the segment's starting point is truncated eight seconds backward at the recording start point. If the high intensity continues until the end of recording, the segment ends at the last recorded frame. This numerical example also shows that the velocity contribution value is not sensitive to instantaneous false alarms, and has a definite value for the reward of continuous adversarial action and the retention semantics after interruption at each boundary time.
[0096] refer to Figure 7 The figure illustrates the superposition and fusion of the components of the significance function value. On the same time axis, the situational baseline value is presented as a stepped ladder that switches according to the lookup table row. The numerical advantage correction value is superimposed on it with a flat integer increment. The speed contribution value and the goal event contribution value are each presented as a stepped ladder that accumulates over time and decays after stopping. The significance function value is obtained by adding all components and truncating to the upper limit. The figure also shows the preset threshold line and the interval of highlights obtained by backtracking and extending from the crossing time. Each change in the significance function value can thus be decomposed to the specific boundary time of the specific component. Each component is independent and does not contaminate each other. Removing any event only removes the contribution of that event itself.
[0097] In this embodiment, the preset thresholds include a first threshold of seven and a second threshold of nine. Continuous intervals with an intensity index of not less than seven constitute a loose fragment set, i.e., an extended compilation; continuous intervals with an intensity index of not less than nine constitute a set of essential fragments nested within the loose set. Both sets are generated simultaneously by the same fusion calculation, eliminating the need for repeated calculations.
[0098] In one optional implementation, the method is applied to a live real-time tagging scenario: the live stream is accessed by the fusion module with low latency, and the saliency function value is updated second by second; when the saliency function value crosses a first preset threshold upwards, a tag indicating that the segment is in progress is superimposed on the lower right corner of the live screen, and the platform simultaneously generates a preview card. The card cover is composed of video frames within one second before and after the upward crossing time, and the card title is generated from descriptive information; after the segment is closed, the card is stored as a segment entry that can be replayed. In one implementation, the live latency is controlled within five seconds, and the tagging and segment push are achieved in near real-time; in another implementation, the live stream and the recording stream are processed separately, the live stream link only performs tagging, and the recording link performs complete segment segmentation and export, with the two links sharing the same set of saliency function value calculation logic.
[0099] In one optional implementation, the display of the intensity meter is decoupled from the calculation of the saliency function value. The intensity meter is displayed by default on the live stream screen and preview card, and can be switched to hidden at any time. Hiding only affects the presentation layer; the calculation of the saliency function value, the saving of historical records, and the segmentation and export of highlight video clips remain unchanged. The same input produces the exact same saliency function value curve and clip set in both the displayed and hidden states, and the already broadcast frames are not altered by subsequent switching. In one implementation, the switching state itself is saved as an event record for statistical purposes regarding display preferences; in another implementation, the switching only affects the local display and does not affect metadata pushed to other terminals or platforms.
[0100] In one optional implementation, the displayed values in the live streaming scenario are aligned with the video timestamp and have degradation capabilities. The intensity meter displayed on the live stream screen and preview card uses the saliency function value corresponding to the current video frame timestamp, rather than the latest value calculated by the end, to avoid predicting future peaks before the video is delayed. When the update of live streaming metadata is interrupted for more than a predetermined time, such as five seconds, the interface reverts to display the most recently known contextual baseline value. The velocity contribution value and event contribution value are no longer displayed, and no abnormal or unavailable status text is presented to the audience. After the update is restored, the reverted value is replaced with the latest snapshot. The segment segmentation and export during the revert and after the restoration are not affected. In one implementation, the reverted status is only marked internally for post-event verification and is not output to any interface visible to the audience.
[0101] In one extension of this embodiment, the live streaming platform simultaneously accesses multiple ongoing ice hockey games. The aforementioned method is applied to each game to obtain its respective saliency function value. The platform then sorts the multiple games in real time based on their current saliency function values and outputs the sorting results. These results are used to arrange preview cards on the live streaming platform, allowing viewers to identify the most worthwhile games to watch. In one possible implementation, the sorting results include the saliency function values of each game themselves, serving as a machine-readable basis for cross-game comparisons for downstream systems. Since the saliency function values for each game are generated using the same method, cross-game comparisons are homogeneous in metric; incompatible independent excitement metrics cannot provide such homogeneous comparisons.
[0102] refer to Figure 8 and Figure 9 This illustration shows a schematic diagram of the display interface in a live streaming scenario provided by an embodiment of this application. For example... Figure 8 As shown, the live broadcast screen 901 displays a match information display area 902 and an intensity meter 903 overlaid on it. The match information display area 902 shows the score, quarter, and remaining time, while the intensity meter 903 displays the intensity index at the current moment in the form of a progress bar, such as seven out of ten. When the significance function value crosses the first preset threshold upwards, a segment in progress marker 904 is overlaid in the lower right corner of the live broadcast screen 901. Figure 9 As shown, the live streaming platform arranges the preview cards 1001 of multiple events from high to low according to their respective significance function values, with the sorting direction as shown by arrow 1006; each preview card presents a live stream logo, card cover, card title, and intensity meter. The card cover is based on video frames within one second before and after the upward crossing time, and the card title is generated from the descriptive information.
[0103] In this embodiment, the method further includes generating natural language description information for the segment based on the amplitude range of the peak value of the intensity index within the segment and the segment in which the peak value was first reached: a first-level title is generated when the peak value is 10, a second-level title is generated when the peak value is 9, a third-level title is generated when the peak value is 8, and a fourth-level title is generated when the peak value is 7. The segment in which the peak value was first reached is appended after the title. For example, the content generated for a segment in which the peak value of 10 is reached in the third segment is a first-level title plus the third segment. This description information is generated entirely from the peak value and segment of the intensity index, without relying on discrete events occurring within the segment. It can also generate description information for segments that are purely supported by the context baseline value and do not contain any goals.
[0104] refer to Figure 10The diagram illustrates the display interface of the highlight clip list. After clip segmentation, the application interface presents each highlight video clip in a list format: each clip card displays the clip title generated from descriptive information, the clip's start and end times, duration, and the peak value of the saliency function within the clip; the card cover is a video frame near the clip's start point; the relaxed clip set corresponding to a first preset threshold and the essential clip set corresponding to a second preset threshold are listed respectively, allowing users to directly select any clip to play or export. In one implementation, the clip titles, durations, and peak values in the list are updated in response to corrections to the event status data; in another implementation, the list allows users to manually fine-tune clip boundaries, with the adjustments saved as an overwrite of the rollback and extension durations.
[0105] refer to Figure 11 This illustrates the process of recalculating saliency function values in response to the revocation of discrete events. In this embodiment, accumulation, decay, and fusion are performed based on the timeline of the recorded media. When a referee's review overturns a decision leading to the revocation of a goal, the scoreboard system issues an authoritative revision. The revocation instruction only removes the event contribution value of that goal; the velocity contribution value and the context baseline value remain unaffected. Based on the retained match status data, event, and sensing signal history, the system recalculates the intensity index and the start and end points of the segment from the time of the correction. The segment boundaries, peak values, and descriptive information before the correction are updated accordingly. When the authoritative revision changes the eligibility range of the velocity signal, such as correcting the match clock or period status, the velocity history of the affected range is also recalculated. Because all calculations are based on the recorded media timeline and the history of each component is retained, the recalculation is deterministic; the same revision yields the same result at any time.
[0106] In the method provided in the second aspect of this application, the mechanism of accumulating continuous conditions based on their duration is decoupled from the event domain. In one possible embodiment, the method can be used in the field of security monitoring: for the continuous detection of a predetermined condition of personnel gathering in a surveillance video, the contribution value is accumulated based on the duration of the condition. After the condition stops being established, the contribution value decays. When the condition resumes after being stopped, the remaining contribution value after decay is retained and continues to accumulate. Based on the accumulated contribution value, a target moment or target video segment is determined, for example, the interval where continuous gathering exceeds a predetermined contribution value is cut out for review. In one possible embodiment, the method can be used in the field of drone aerial photography: the drone continuously detects whether there is a continuously moving target in the aerial video. The longer the continuous movement lasts, the greater the contribution value. Based on this, the aerial video segment corresponding to the high contribution value interval is automatically saved while the long-term unchanged cruise footage is discarded. In the above applications, the detectors only need to report whether the condition continues to be established without accurately classifying instantaneous events. Instantaneous false alarms contribute almost nothing. Based on the accumulated contribution value, it is also possible to determine whether any moment is a target moment. For example, the monitoring preview interface can mark the time points of interest in real time based on the current accumulated contribution value.
[0107] refer to Figure 12 The figure illustrates a flowchart of the video processing method provided in this application embodiment. As shown, a computer vision detector continuously detects the video, obtains a continuous state signal, and accumulates contribution values according to the duration of the condition. The predetermined condition refers to video content conditions that are continuously detected by the detector and can be maintained over time, such as the continuous gathering of people in a surveillance video or the continuous movement of a target object in an aerial photograph. For each unit of time the predetermined condition is maintained, the contribution value increases by an increment; after the predetermined condition stops being maintained, the accumulated contribution value decays over time; if the predetermined condition resumes being maintained after it stops being maintained, the remaining contribution value after decay is retained and accumulation continues from the remaining value; based on the accumulated contribution value, a target moment or target video segment in the video is determined. The target moment mentioned in this application refers to the moment when the accumulated contribution value is not lower than a preset threshold; the target video segment refers to a video interval determined from the video based on the accumulated contribution value.
[0108] In one possible embodiment, this method can be used in the field of conference recording processing: It continuously detects intense discussions involving multiple speakers simultaneously in a conference recording. During the duration of this state, a contribution value is accumulated. After the discussion subsides, the contribution value decays over time. When the discussion resumes after a brief lull, the remaining contribution value is retained and continues to accumulate. Based on the accumulated contribution value, a target moment or video segment worth reviewing in the conference recording is determined. For example, the interval with a contribution value higher than a preset threshold is cut out as the essence of the meeting. In the various application areas described above, the sources of the continuous state signal differ; the detector can be a people gathering detector, a moving target detector, or a voice activity detector. However, the mechanism of accumulating contribution values according to the duration of the state, decaying after the state stops, and retaining the remaining contribution value and continuing to accumulate when the state resumes is exactly the same. The determination of the target moment or video segment is also based solely on the accumulated contribution value.
[0109] In a complete configuration for security monitoring, the continuous status signal is the aggregation status output by the personnel gathering detector. The aggregation determination condition is that the number of people in the same monitoring area is not less than five and the aggregation lasts for not less than two seconds. During the period when the predetermined conditions are met, an increment is accumulated every three seconds, capped at eight. After the aggregation is released, the increment decays by one step every thirty seconds. If the aggregation recurs before the decay is complete, the remaining contribution value is retained and continues to accumulate, meaning that the interval between two aggregations in the evening will not cause the contribution value to return to zero. The preset threshold is six, and the interval with a contribution value not less than six is cut off for security review. With this configuration, a two-minute continuous aggregation will cause the contribution value to reach the cap of eight. Aggregation that occurs again within the next minute will continue to accumulate above the remaining contribution value, and the two aggregations will be merged into a single target video segment. A single three-second false detection will hardly contribute and will be excluded from the review segment.
[0110] In one possible implementation, determining a target video segment in a video based on accumulated contribution values includes: determining the starting point of the target video segment in response to the accumulated contribution value crossing an upward preset threshold; and determining the ending point of the target video segment in response to the accumulated contribution value crossing a downward preset threshold.
[0111] In one possible implementation, there are multiple preset thresholds. Based on the accumulated contribution value, each preset threshold is crossed to obtain a nested set of multiple target video segments, such as simultaneously outputting a set of relaxed segments and a set of essential segments.
[0112] In one possible implementation, the video is a competition video, and the predetermined conditions include the overall movement intensity state of the participant group, the spatial distribution of participants (clustering or dispersing), the state of the competition area being continuously occupied, the movement state of the object being contested continuously tending towards the scoring area, and at least one of the time derivatives of any of the above. In this implementation, a contextual baseline value may not be introduced, and the target moment or target video segment in the competition video may be determined solely based on the contribution value, providing a low-configuration implementation method for shooting equipment that lacks scoreboard recognition or competition status recognition capabilities.
[0113] In one possible implementation, the validity of the continuous state signal is determined by time interval. Invalid, missing, repeated, out-of-order, or late intervals do not participate in the accumulation of contribution values, and the time not covered by the valid interval does not continue the predetermined condition of the previous interval.
[0114] In one possible implementation, the continuous state signal can also be output by a detector that analyzes the audio track of a video, such as a voice activity detector that detects multiple people speaking simultaneously on the audio track of a conference recording; in this implementation, the mechanism of accumulating contribution values according to the duration of establishment, attenuating after the establishment stops, and retaining the remaining contribution values and continuing to accumulate when the establishment resumes is the same as in the aforementioned embodiments.
[0115] In one possible implementation, determining the target moment in the video based on the accumulated contribution value includes: for any moment in the video to be determined, determining whether the arbitrary moment is a target moment based on whether the accumulated contribution value at that arbitrary moment is not lower than a preset threshold, and outputting a marker when the determination is yes. In one implementation, the security monitoring preview interface reads the accumulated contribution value in real time for the current playback moment. When it is not lower than the preset threshold, a noteworthy time point marker is superimposed on the screen. When security personnel drag the playback progress bar, the marker is immediately shown or hidden. In another implementation, each target moment is written into the recording index along with the segment metadata, and the playback application presents all target moments in a scale form on the progress bar. Instantaneous false detections will not be marked because the contribution value is almost zero, and the density of the markers accurately reflects the distribution of the continuous state over time.
[0116] In one possible implementation, accumulation and attenuation are performed based on the video's media timeline, ensuring that the same persistent state signal yields the same contribution value upon recalculation at any time. In response to corrections to the media timeline, such as timestamp shifts due to re-recording of surveillance footage or clock synchronization corrections of multiple cameras, the contribution value, as well as the start and end points of the target video segment, are recalculated from the correction time based on the preserved history of the persistent state signal. In one implementation, recalculation only covers the interval after the correction time, directly reusing the results before correction to reduce recalculation overhead. In another implementation, a full recalculation is triggered with each correction, resulting in the simplest logic. Since the history of each time interval is preserved, the recalculation is deterministic; the boundaries of the segments cut out before correction are updated consistently with the recalculation, ensuring that the same recording yields the same target video segment on any device.
[0117] The sports video processing method provided in this application can also be applied to other continuous-time sports events. In football, specific situational conditions can be injury time or a situation where the team is outnumbered, and the condition can be the continuous pressure exerted by the team with the ball in the opponent's penalty area. In esports, the stage of the competition can be a crucial round in the knockout stage, and the condition can be the continuous standoff between the two sides near key resource points. The lookup rows, sensing signal types, and threshold values are configured differently for different sports, while the structure of the method itself remains unchanged.
[0118] Taking basketball as an example, the game stages are the first to fourth quarters and overtime. A specific situational condition for the sport can be the state where both teams have reached their foul limit in the last two minutes of the fourth quarter. The baseline value is determined by looking up a table using the point difference, quarter number, and remaining time as indexes. The highest baseline level corresponds to combinations where the score is tied or within three points in the last two minutes of the fourth quarter. The status condition can be the offensive team's sustained dominance in the opponent's half, meaning the offensive team maintains possession of the ball in the frontcourt for more than a preset duration. For rugby, a specific situational condition can be the strong offensive state of one team in the final stages of the fourth quarter, and the status condition can be the offensive team continuously advancing into the opponent's red zone. For esports, a game stage can be a crucial round in a knockout tournament, and the status condition can be the continuous standoff between the two teams near key resource points, with the contested resource being a key resource on the map. Different sports only require different configurations for the lookup table rows, perceived signal types, and threshold values; the method's structure itself remains unchanged.
[0119] In a complete configuration of a football match, the baseline value is determined by looking up a table using the absolute difference in score, the current half, and the remaining time as indices: a baseline level of three for a tie or a one-point difference in the first half, four for a tie in the second half, five for a tie within the remaining ten minutes of the second half, and six for a tie during stoppage time; the level is lowered by two levels for a difference of two points or more. A specific situation condition in the sport is a red card situation. When one team is reduced to ten men, the baseline level of the team with fewer men is raised by one level, as a team with one less man is more vulnerable to attack, and the transitions between offense and defense are more frequent. A state condition is the attacking team maintaining possession and pressure in the opponent's penalty area, accumulating an increment every five seconds, capped at six, and decreasing by one increment every ten seconds after stopping. A discrete event is a goal, with an event contribution of six, decreasing by one every five seconds after maintaining possession for ten seconds. Preset thresholds include a first threshold of seven and a second threshold of nine, corresponding to the relaxed and essential segment sets, respectively. With this setup, a dull match without goals will not produce any highlights, while a match with a close score in stoppage time and continuous attacks on the penalty area will produce long highlights, which aligns with the audience's intuition.
[0120] This application also provides a computing device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the method described in any of the above embodiments. In one possible implementation, the computing device is a portable automatic tracking and shooting device, where all calculations are performed locally on the device. In another possible implementation, the computing device is a cloud server that processes multiple event streams in parallel. In yet another possible implementation, the computing device is a post-processing application running on a terminal device.
[0121] In one alternative implementation, when the computer program stored in the memory of the computing device is executed by the processor, it implements the method described in any of the above embodiments. In this embodiment, one form of the computing device is a portable automatic tracking and shooting device, whose processor is an embedded chip. The lookup of the context baseline value, the integer accumulation and step decay of the contribution value, and the capping operation of the saliency function value are all completed in real time using fixed-point arithmetic. The device outputs segment tags and descriptive information while recording the event. Another form is a cloud server that executes the above method in parallel on multiple event streams accessed by the live streaming platform, providing the saliency function values of each event for real-time ranking across events. Yet another form is a post-processing application running on a personal computer or mobile terminal that executes the above method offline on the recorded event video and outputs a clip list. The three forms share the same set of computing logic, differing only in deployment location and input source.
[0122] In one optional implementation, the complete workflow of the portable automatic tracking shooting device from power-on to outputting highlights is as follows: After the device is set up and recording starts, the scoreboard recognition module identifies the score and timing information in the frame. Before successful recognition, the context baseline value is set to the lowest safe level, and the timers for the speed contribution value are reset to zero. The visual detector outputs the perceived signal interval to the video stream second by second. The fusion module calculates the saliency function value second by second based on the recorded media timeline. When the saliency function value crosses the first preset threshold, the device overlays a mark of the highlight segment on the live screen and pushes a pre-scrolling image of the segment's starting point to the preview card. After the segment is closed, the device writes back the segment's starting point, ending point, peak value, and description information. After recording ends, the device exports extended highlights and essential highlights according to the first and second thresholds, respectively, without requiring manual editing. In one implementation, segments can be exported before recording ends, for example, by writing an index file once each segment is closed. In another implementation, all segments are exported uniformly after recording ends to ensure the integrity of the index file.
[0123] It should be noted that the values in the above embodiments, including the specific baseline value of the lookup table row, the cumulative rate and upper limit of the speed contribution value, the initial value of the goal contribution value, the duration of holding and the decay rate, the number and values of preset thresholds, the duration of regression and extension, and the duration of the merging interval, are all illustrative examples. Those skilled in the art can adjust them according to the sport, the computing power of the equipment, and the product requirements, and such adjustments do not depart from the protection scope of this application. Each step in the above embodiments can be executed by one device or by multiple devices working together; the execution order between the steps can be adjusted when they are not interdependent.
[0124] The above-mentioned optional implementation methods can be combined arbitrarily without conflict. For example, the ice hockey implementation can simultaneously employ validity determination and camera motion compensation to maintain the accuracy of speed contribution values in environments with intense tracking by portable devices and occasional frame drops by detectors; the soccer implementation can simultaneously employ multi-threshold nesting and natural language description information to generate multiple segments with titles for different dissemination channels; the security implementation of the second aspect can be combined with deterministic recalculation based on the recorded media timeline to recalculate target video segments during surveillance video re-recording or timestamp correction. The technical effects of the combination of the optional implementation methods are the sum of their individual effects, and those skilled in the art can select and combine them as needed according to the deployment environment; all such combinations fall within the protection scope of this application.
[0125] Figure 13 A schematic diagram of a computing device suitable for implementing embodiments of this application is shown. The computing device can be implemented as a terminal device or a server.
[0126] like Figure 13As shown, the terminal device or server includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage section 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the terminal device or server. The CPU 501, ROM 502, and RAM 503 are interconnected via bus 504. An input / output (I / O) interface 505 is also connected to bus 504.
[0127] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 510 as needed so that computer programs read from it can be installed into storage section 508 as needed.
[0128] Specifically, according to embodiments of this application, the above method flow steps can be implemented as a computer software program. For example, embodiments of this application include a computer program product comprising a computer program carried on a machine-readable medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs the functions defined in the system of this application.
[0129] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, or any suitable combination thereof.
[0130] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation that may be implemented in systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0131] The units or modules described in the embodiments of this application can be implemented in software or hardware. The described units or modules can also be located in a processor. The names of these units or modules do not, in certain circumstances, constitute a limitation on the unit or module itself.
[0132] In another aspect, this application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable storage medium stores one or more programs that are used by one or more processors to execute the methods described in this application.
[0133] In another aspect, embodiments of this application also provide a computer program product that, when executed by a processor, implements the methods of any of the above embodiments.
[0134] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the foregoing application concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions claimed in this application.
Claims
1. A method for processing sports event videos, characterized in that, include: Acquire event status data that evolves continuously over time, and the event status data represents the current situation of the event; Acquire perceptual signals obtained from analyzing event videos, wherein the perceptual signals represent temporally continuous state conditions related to the event object; A scenario baseline value is determined based on the event status data, wherein the scenario baseline value does not decay during the duration of the situation represented by the event status data; The contribution value of the state condition is accumulated according to its duration, and the accumulated contribution value is decayed over time when the state condition stops lasting. The baseline value of the scenario is fused with the contribution value to obtain the significance function value; Based on the comparison result between the significance function value and the preset threshold, the highlights or highlights of the event video are determined.
2. The method according to claim 1, characterized in that, The event status data includes at least one of the following: score relationship, event stage, remaining time, and event-specific situation conditions.
3. The method according to claim 1, characterized in that, In response to the event status data indicating that the timing has stopped, there is a phase break, or the event has ended, the status conditions do not accumulate contribution values during the corresponding period.
4. The method according to claim 1, characterized in that, The state conditions include at least one of the following: the overall motion intensity state of the participant group, the gathering or dispersal state of the participants' spatial distribution, the state of the competition area being continuously occupied, the motion state of the object being contested continuously tending towards the scoring area, and the time derivative of any of the above.
5. The method according to claim 1, characterized in that, The sensing signal is calculated after compensating for the camera's translation, scaling, and perspective changes.
6. The method according to claim 1, characterized in that, The validity of the sensed signal is determined according to time intervals; invalid, missing, repeated, out-of-order, or late intervals do not participate in the accumulation of contribution values, and the time not covered by the valid interval does not continue the state conditions of the previous interval.
7. The method according to claim 1, characterized in that, Also includes: Obtain discrete events occurring in the event; assign a bounded event contribution value to each discrete event, the event contribution value is maintained for a predetermined time and then decays according to a preset rule, and the event contribution value of each discrete event is timed independently; The significance function value is obtained by fusing the context baseline value, the contribution value, and the contribution value of events that have not yet decayed. In response to a discrete event being revoked, only the event contribution value of that discrete event is removed.
8. The method according to claim 1, characterized in that, The preset thresholds are multiple, and the video segments are nested into multiple sets by passing through each preset threshold according to the significance function value.
9. The method according to claim 1, characterized in that, Also includes: Based on the saliency function values of each of the multiple events, the events are sorted in real time and the sorting results are output.
10. The method according to claim 1 or 2, characterized in that, Also includes: Based on the amplitude range of the peak value of the saliency function within the highlight video clip and the stage of the competition covering the peak value, natural language description information is generated for the highlight video clip. The natural language description information does not depend on discrete events occurring within the highlight video clip.
11. The method according to claim 1, characterized in that, The accumulation and decay of the contribution value, as well as the fusion of the context baseline value and the contribution value, are performed based on the timeline of the event recording media, so that the same event status data and perceived signals produce the same saliency function value; In response to the correction of the event status data, based on the retained event status data and the history of the sensing signals, the saliency function value and the start and end points of the highlight video clips are recalculated from the correction time.
12. The method according to claim 7, characterized in that, The preset rule is a stepped decay.
13. The method according to any one of claims 1 to 6, characterized in that, The step of determining the highlights or highlights video segments in the event video based on the comparison result of the saliency function value and the preset threshold includes: determining the starting point of the highlights video segment in response to the saliency function value crossing the preset threshold upwards; and determining the ending point of the highlights video segment in response to the saliency function value crossing the preset threshold downwards.
14. A computing device, characterized in that, The method includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method according to any one of claims 1 to 13.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 13.
