Method and system for tracking basketball in sports event video

By combining YOLOv3 target detection and DCF tracking components to optimize bounding boxes and feature extraction, efficient and stable tracking of basketballs in sports event videos is achieved, solving the tracking incoherence, insufficient robustness and hardware resource utilization efficiency in existing technologies. reduces problems and improves tracking accuracy and real-time processing capabilities.

CN118570256APending Publication Date: 2024-08-30SHENZHEN QIANHAI DONGJING SPORTS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410752773.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing technology has problems such as incoherence, insufficient robustness, cumbersome bounding box optimization, low hardware resource utilization efficiency, and time-consuming model training and update for basketball tracking in sports event videos.

Method used

The YOLOv3 target detection component is combined with the DCF tracking component to achieve real-time detection and continuous tracking of basketball through the bounding box optimization module and feature extraction fusion module. It adopts a two-way tracking strategy and a related filter processor to enhance tracking stability and accuracy, and through Model training and update mechanisms improve system scalability.

Benefits of technology

It significantly improves the accuracy and continuity of basketball tracking, enhances tracking robustness and real-time processing capabilities, reduces background interference, improves viewer experience and analysis efficiency, and has good scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570256A
    Figure CN118570256A
Patent Text Reader

Abstract

The invention provides a method and system for tracking a basketball in a sports event video, and the system comprises a video input module which is used for receiving and inputting the sports event video; the target detection component analyzes the video frame by frame, realizes preliminary recognition and positioning of the basketball, and outputs a preliminary bounding box; the bounding box optimization module is used for adjusting the size according to the initial bounding box so as to optimize the tracking performance; the DCF tracking component is integrated with a discriminant correlation filtering tracker, predicts the position of the basketball in a subsequent frame by using the position of the basketball in the previous frame, and processes a continuous tracking task of the basketball; and the output rendering module is used for superposing the tracking result on the original video and outputting the video with the tracking identifier. By combining the high precision of the YOLOv3 target detection component and the dynamic prediction capability of the DCF tracking component, the accuracy and continuity of tracking the basketball in the sports event video are remarkably improved, and stable tracking can be kept even under the complex conditions of high-speed movement, shielding or illumination condition change of the basketball.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sports equipment, and in particular to a method and system for tracking a basketball in a sports event video. Background Art

[0002] In the field of sports video analysis, real-time tracking of balls such as basketballs is one of the key technologies to enhance the audience experience and assist professional analysis. Current solutions generally adopt a two-stage strategy: first, the target detection component is used to identify the basketball, and then the tracking algorithm is used to continuously track its trajectory. The target detection component represented by YOLOv3 has become the preferred tool for basketball recognition because it balances detection speed and accuracy. However, although YOLOv3 can provide relatively accurate initial positioning, it still faces several challenges when directly applied to dynamic tracking scenarios.

[0003] Problems with existing technologies include: 1. Transition problem from detection to tracking: Current technologies may have inconsistencies when transitioning from target detection to tracking. Especially when the target leaves the screen for a short time or reappears after being blocked, how to seamlessly connect detection and tracking becomes a problem, affecting the continuity and stability of tracking.

[0004] 2. Robustness of tracking algorithms: Although the DCF tracking component can effectively predict target motion, its tracking performance may degrade in complex scenarios, such as fast motion, light changes, or target shape changes (such as a basketball in a player's hand). In particular, when dealing with shape changes and occlusions caused by dribbling, existing tracking algorithms often require more sophisticated adjustments and optimizations.

[0005] 3. Bounding box optimization and adjustment: Although tracking stability can be improved by increasing the size of the predicted bounding box, this may cause the tracking box to cover too much irrelevant background and reduce tracking accuracy. Manually adjusting hyperparameters and bounding box optimization is cumbersome and relies on experience, lacking an adaptive mechanism.

[0006] 4. Hardware and system integration efficiency: In the entire chain from camera capture to final video output, the effective use of hardware resources and system integration efficiency are unresolved issues. Especially for real-time tracking applications, efficient data processing and transmission, as well as the collaborative work between software and hardware are particularly important.

[0007] 5. Model training and updating: Although the YOLOv3 model is powerful, the construction of customized training data sets, model fine-tuning and continuous updating for specific application scenarios (such as basketball in a specific game environment) is a time-consuming and resource-intensive process. Existing technologies often lack the ability of efficient iteration and online learning in this regard.

[0008] Therefore, the prior art has deficiencies and needs further improvement. Summary of the invention

[0009] In view of the problems existing in the prior art, the present invention provides a method and system for tracking basketball in sports event videos.

[0010] To achieve the above object, the specific scheme of the present invention is as follows: The present invention provides a system for tracking basketball in a sports event video, the system comprising: A video input module for receiving and inputting sports event videos; The object detection component is used to analyze sports event videos frame by frame, achieve preliminary recognition and location of basketballs, and output preliminary bounding boxes; The bounding box optimization module adjusts the size to optimize the tracking performance based on the preliminary bounding box; The DCF tracking component integrates a discriminative correlation filter tracker, uses the basketball position in the previous frame to predict the basketball position in the subsequent frame, and handles the continuous tracking task of the basketball; The output rendering module overlays the tracking results onto the original sports event video and outputs the sports event video with the tracking mark.

[0011] Furthermore, the target detection component is specifically designed to call the YOLOv3 model frame by frame to achieve real-time detection of the basketball in the video and output a preliminary bounding box of the basketball.

[0012] Furthermore, the bounding box optimization module is used to adjust the size of the basketball bounding box predicted by YOLOv3 by increasing the length and width by 15% based on the initial size to improve tracking stability and accuracy.

[0013] Furthermore, the DCF tracking component includes an image block extraction module, a feature extraction and fusion module, a correlation filter processor and a boundary smoothing module, which are used to accurately locate the basketball in consecutive frames and output an updated tracking boundary box.

[0014] Furthermore, the feature extraction and fusion module is designed to extract manual features and deep features from selected image blocks and effectively fuse them to enhance the target representation capability.

[0015] The present invention also provides a method for tracking basketball in a sports event video. Based on the above system, the method comprises the following steps: S1, initialization and preprocessing: receiving sports event videos and preprocessing the videos for subsequent analysis; S2, basketball detection: Use the object detection component (including YOLOv3) to scan each frame of the video to identify whether there is a basketball; S3, bounding box confirmation and optimization: Confirm the bounding box of the detected basketball and further adjust the bounding box size to ensure the accuracy of tracking; S4, start tracking: once the basketball is successfully identified, activate the DCF tracking component and start continuous tracking using the initial position of the basketball; S5, bidirectional tracking implementation: starting from the video frame where the basketball is recognized, bidirectional tracking is performed in the forward and backward directions; S6, tracking continuation and update: During the tracking process, the predicted position of the basketball is continuously updated according to the output of the DCF tracking component until the tracking end condition is met (such as the basketball is out of bounds, blocked, or the video playback is completed); S7, output processing: Integrate the tracking results into the original video and output the final video product with the tracking trajectory.

[0016] Furthermore, in the basketball tracking step of step S3, a basketball detection confirmation step is also included, that is, judging the validity of the basketball bounding box output by the target detection component to ensure accurate tracking of the basketball rather than misidentification of the object.

[0017] Furthermore, in step S4, the DCF tracking component implements a tracking method, specifically including: In the initial frame, the basketball is located through YOLOv3. In the consecutive frames, based on the bounding box information of the previous frame, the new position of the basketball is determined through feature extraction, cosine window convolution, Fourier transform correlation filtering and inverse transformation. The process is iterated continuously until the tracking is completed.

[0018] Furthermore, in step S4, the optimization of the basketball tracking method is also involved: training the YOLOv3 model to accurately identify the basketball; optimizing the bounding box size to adapt to dynamic tracking requirements; and achieving efficient and continuous tracking through the DCF tracking component, and dynamically updating the tracking strategy during the tracking process.

[0019] Furthermore, in step S5, the bidirectional tracking method starts from the frame where the basketball is first detected and tracks forward until the end of the video, while simultaneously tracking the frame before the basketball first appears in reverse by playing the video in reverse.

[0020] The technical solution of the present invention has the following beneficial effects: 1. Enhanced tracking accuracy and stability: By combining the high precision of the YOLOv3 target detection component and the dynamic prediction capability of the DCF tracking component, this method significantly improves the accuracy and continuity of tracking basketballs in sports event videos, and can maintain stable tracking even in complex situations such as high-speed movement, occlusion, or changing lighting conditions.

[0021] 2. Optimize bounding box strategy: By moderately expanding the bounding box predicted by YOLOv3 (increasing length and width by 15% each), this invention effectively reduces tracking loss caused by changes in the shape of the basketball or slight occlusion, ensures the robustness of tracking, avoids unnecessary background interference, and improves the purity of tracking.

[0022] 3. Improve real-time processing capabilities: YOLOv3, based on its fast detection speed and combined with the efficient DCF tracking algorithm, realizes real-time tracking and processing of sports event videos, meets the needs of instant playback analysis and live broadcast, and enhances the audience's viewing experience and the work efficiency of analysts.

[0023] 4. Flexible two-way tracking mechanism: The proposed two-way tracking strategy (including forward and reverse tracking) enables the system to start tracking at any time when the basketball first appears. It not only solves the problem of tracking starting point caused by the basketball appearing on camera or not being detected initially, but also provides greater flexibility and completeness for video analysis.

[0024] 5. Fusion of deep and manual features: Deep features and manual features are fused in the DCF tracking component, and the boundary processing is smoothed using a cosine window, which further enhances the robustness of the target representation and the adaptability of tracking, ensuring high tracking performance under various visual conditions.

[0025] 6. Model and system scalability: Through meticulous model training and bounding box optimization processes, as well as a continuous update mechanism for tracking algorithms, the system has good scalability and can quickly adapt and optimize performance according to different application scenarios and basketball types, leaving room for future technology upgrades. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a logic block diagram of the present invention; Figure 2 This is the step of optimizing and fine-tuning the bounding box hyperparameters of the present invention; Figure 3 is a schematic diagram of the algorithm structure of the DCF tracking component of the present invention; Figure 4 It is the overall flow chart of the present invention. DETAILED DESCRIPTION

[0027] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments; it can be understood that the specific embodiments described herein are only used to explain the present invention rather than to limit the present invention; it should also be noted that, for ease of description, only the parts related to the present invention rather than all are shown in the accompanying drawings.

[0028] Combination Figure 1-Figure 4As shown, the present invention provides a system for tracking basketball in a sports event video, the system comprising: A video input module for receiving and inputting sports event videos; The object detection component is used to analyze sports event videos frame by frame, achieve preliminary recognition and location of basketballs, and output preliminary bounding boxes; The bounding box optimization module adjusts the size to optimize the tracking performance based on the preliminary bounding box; The DCF tracking component integrates a discriminative correlation filter tracker, uses the basketball position in the previous frame to predict the basketball position in the subsequent frame, and handles the continuous tracking task of the basketball; The output rendering module overlays the tracking results onto the original sports event video and outputs the sports event video with the tracking mark.

[0029] The object detection component is specifically designed to call the YOLOv3 model frame by frame to achieve real-time detection of the basketball in the video and output a preliminary bounding box of the basketball.

[0030] The bounding box optimization module is used to adjust the size of the basketball bounding box predicted by YOLOv3 by increasing the length and width by 15% based on the initial size to improve tracking stability and accuracy.

[0031] The DCF tracking component includes an image block extraction module, a feature extraction and fusion module, a correlation filter processor and a boundary smoothing module, which are used to accurately locate the basketball in consecutive frames and output an updated tracking boundary box.

[0032] The feature extraction and fusion module is designed to extract manual features and deep features from selected image blocks and effectively fuse them to enhance the target representation capability.

[0033] The present invention also provides a method for tracking basketball in a sports event video. Based on the above system, the method comprises the following steps: S1, initialization and preprocessing: receiving sports event videos and preprocessing the videos for subsequent analysis; S2, basketball detection: Use the object detection component (including YOLOv3) to scan each frame of the video to identify whether there is a basketball; S3, bounding box confirmation and optimization: Confirm the bounding box of the detected basketball and further adjust the bounding box size to ensure the accuracy of tracking; S4, start tracking: once the basketball is successfully identified, activate the DCF tracking component and start continuous tracking using the initial position of the basketball; S5, bidirectional tracking implementation: starting from the video frame where the basketball is recognized, bidirectional tracking is performed in the forward and backward directions; S6, tracking continuation and update: During the tracking process, the predicted position of the basketball is continuously updated according to the output of the DCF tracking component until the tracking end condition is met (such as the basketball is out of bounds, blocked, or the video playback is completed); S7, output processing: Integrate the tracking results into the original video and output the final video product with the tracking trajectory.

[0034] The basketball tracking step in step S3 also includes a basketball detection confirmation step, which is to determine the validity of the basketball bounding box output by the target detection component to ensure accurate tracking of the basketball rather than misidentification of the object.

[0035] In step S4, the DCF tracking component implements a tracking method, specifically including: In the initial frame, the basketball is located through YOLOv3. In the consecutive frames, based on the bounding box information of the previous frame, the new position of the basketball is determined through feature extraction, cosine window convolution, Fourier transform correlation filtering and inverse transformation. The process is iterated continuously until the tracking is completed.

[0036] In step S4, the optimization of the basketball tracking method is also involved: training the YOLOv3 model to accurately identify the basketball; optimizing the bounding box size to adapt to dynamic tracking requirements; and achieving efficient and continuous tracking through the DCF tracking component, and dynamically updating the tracking strategy during the tracking process.

[0037] The bidirectional tracking method in step S5 starts from the frame where the basketball is first detected and tracks forward until the end of the video, while tracking backwards by playing the video in reverse for the frame before the basketball first appears. Specific embodiment: The invention divides basketball tracking into two main steps: The first step is to identify the basketball in the video through the Object Detection Model.

[0039] The second step is to track the basketball throughout the video using the Discriminative Correlation FilterTracker (DCF tracking component).

[0040] 1. Basketball detection: The system calls the object detector to analyze the input video frame by frame to determine whether a basketball is detected.

[0041] 2. Basketball Tracking: Starting from the current frame, call the tracker to track the basketball in both directions. (Basketball tracking before the current frame requires reverse video tracking); 3. Determine whether the processing is completed; 4. Video output: Render the detection results to the original video and output the results.

[0042] Training of object detector: The target detector used in this invention is YOLOv3, which strikes a good compromise between detection speed and detection accuracy. YOLOv3 uses a separate neural network to act on the image, divides the image into multiple regions and predicts the bounding box and the probability of each region.

[0043] In order for the object detection algorithm to accurately identify the basketball, the detector model needs to be trained. After the training is completed, the bounding box hyperparameters need to be optimized and fine-tuned. Figure 2 As shown: Dataset preparation → Data annotation → Training model → Bounding box optimization.

[0044] After training, the model predicts a bounding box that wraps the basketball more tightly. By increasing the size of this bounding box (15% increase in length and width on the basis of the original predicted bounding box), the basketball can be better tracked in dribbling situations, and the subsequent tracker will not be captured by other objects, thereby improving the overall tracking effect of the ball.

[0045] We repeatedly run YOLOv3 on each frame of the input video until we find the basketball. Once the basketball is located, we begin tracking it. On each subsequent frame, we pass the previous bounding box of the basketball to the tracking algorithm, which provides a new estimated bounding box, and this continues until the bounding box is lost (the basketball is out of frame, or completely blocked by a person) or the video ends.

[0046] DCF Tracking Components: The tracker first determines the position of the basketball on the initial frame through YOLOv3, and extracts the image block based on it. During the tracking process, it predicts the target image block contained in the next frame. In order to effectively represent the target, manual features, deep features and fusion features are extracted from the selected image blocks, and the boundaries are smoothed using a cosine window. Correlation filtering operations are performed through discrete Fourier transform. Finally, the response map is obtained through inverse Fourier transform. The position where the maximum response score is located is the new position of the target in the current frame. The algorithm structure is as follows: Figure 3 As shown: Initial frame → next frame → feature extraction → cosine window convolution → Fourier transform → correlation filter → inverse Fourier transform → confidence score → detection result → feature extraction → Fourier transform → training update → expected output → Working principle: The present invention proposes an efficient method and system for tracking basketballs in sports event videos, and its core workflow is divided into two stages: basketball detection and basketball tracking.

[0047] 1. Basketball testing stage: Technology used: Adopts YOLOv3 target detection component, which is a deep learning model that balances detection speed and accuracy and can quickly identify basketballs in video frames.

[0048] Operation process: The input sports event video is analyzed frame by frame. YOLOv3 divides each frame image into multiple regions and predicts whether there is a basketball and its bounding box for each region.

[0049] Model optimization: By specifically annotating and training data for basketball, we optimized the YOLOv3 model’s recognition capabilities and adjusted the bounding box size (increased by 15%) to improve tracking in dynamic motion and occlusion.

[0050] 2. Basketball tracking stage: Tracking start: Once YOLOv3 detects a basketball in a certain frame, the DCF tracking component is started for continuous tracking.

[0051] DCF tracking mechanism: Initialization: Get the position of the basketball in the initial frame through YOLOv3, and extract the basketball image block as the tracking starting point.

[0052] Feature extraction: Extract manual features, deep features, and their fusion features from image blocks to enhance target representation capabilities.

[0053] Filter tracking: After applying a cosine window to smooth the boundaries, a correlation filtering operation is performed using discrete Fourier transform, aiming to efficiently match basketball image features from the frequency domain.

[0054] Position update: Get the response map through inverse Fourier transform, find the position with the highest confidence as the new position of the basketball, and iterate this process until the tracking is completed.

[0055] Overall system operation: After the video is input, the system repeatedly runs YOLOv3 to detect the basketball. Once the basketball is found, it switches to DCF tracking mode and continues tracking until the basketball is no longer visible or the video ends.

[0056] During the tracking process, each frame is updated based on the bounding box information of the previous frame to ensure the consistency of tracking.

[0057] Finally, the tracking results are rendered onto the original video, outputting a video with basketball trajectory markers, providing intuitive visual support for sports entertainment and analysis.

[0058] Hardware architecture: It involves high-definition cameras to capture video signals, high-performance computing units (such as GPUs) to run intensive computing tasks of YOLOv3 and DCF tracking algorithms, and sufficient storage devices to save training data, model parameters, and video files in processing.

[0059] The above description is only a preferred embodiment of the present invention, and does not limit the scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the protection scope of the present invention.

Claims

1. A system for tracking basketball in a sports event video, characterized in that: The system includes: A video input module for receiving and inputting sports event videos; The object detection component is used to analyze sports event videos frame by frame, achieve preliminary recognition and location of basketballs, and output preliminary bounding boxes; The bounding box optimization module adjusts the size to optimize the tracking performance based on the preliminary bounding box; The DCF tracking component integrates a discriminative correlation filter tracker, uses the basketball position in the previous frame to predict the basketball position in the subsequent frame, and handles the continuous tracking task of the basketball; The output rendering module overlays the tracking results onto the original sports event video and outputs the sports event video with the tracking mark.

2. The system for tracking basketball in sports event video according to claim 1, characterized in that: The object detection component is specifically designed to call the YOLOv3 model frame by frame to achieve real-time detection of the basketball in the video and output a preliminary bounding box of the basketball.

3. The system for tracking basketball in sports event video according to claim 1, characterized in that: The bounding box optimization module is used to adjust the size of the basketball bounding box predicted by YOLOv3 by increasing the length and width by 15% based on the initial size to improve tracking stability and accuracy.

4. The system for tracking basketball in sports event video according to claim 1, characterized in that: The DCF tracking component includes an image block extraction module, a feature extraction and fusion module, a correlation filter processor and a boundary smoothing module, which are used to accurately locate the basketball in consecutive frames and output an updated tracking boundary box.

5. The system for tracking basketball in sports event video according to claim 4, characterized in that: The feature extraction and fusion module is designed to extract manual features and deep features from selected image blocks and effectively fuse them to enhance the target representation capability.

6. A method for tracking a basketball in a sports event video, characterized in that: The method comprises the following steps: S1, initialization and preprocessing: receiving sports event videos and preprocessing the videos for subsequent analysis; S2, basketball detection: Use the object detection component to scan each frame of the video to identify whether there is a basketball; S3, bounding box confirmation and optimization: Confirm the bounding box of the detected basketball and further adjust the bounding box size to ensure the accuracy of tracking; S4, start tracking: once the basketball is successfully identified, activate the DCF tracking component and start continuous tracking using the initial position of the basketball; S5, bidirectional tracking implementation: starting from the video frame where the basketball is recognized, bidirectional tracking is performed in the forward and backward directions; S6, tracking continuation and update: During the tracking process, the predicted position of the basketball is continuously updated according to the output of the DCF tracking component until the tracking end condition is met; S7, output processing: Integrate the tracking results into the original video and output the final video product with the tracking trajectory.

7. The method for tracking basketball in sports event video according to claim 6, characterized in that: The basketball tracking step in step S3 also includes a basketball detection confirmation step, which is to determine the validity of the basketball bounding box output by the target detection component to ensure accurate tracking of the basketball rather than misidentification of the object.

8. The method for tracking basketball in sports event video according to claim 6, characterized in that: In step S4, the DCF tracking component implements a tracking method, specifically including: In the initial frame, the basketball is located through YOLOv3. In the consecutive frames, based on the bounding box information of the previous frame, the new position of the basketball is determined through feature extraction, cosine window convolution, Fourier transform correlation filtering and inverse transformation. The process is iterated continuously until the tracking is completed.

9. The method for tracking basketball in sports event video according to claim 8, characterized in that: In step S4, the optimization of the basketball tracking method is also involved: training the YOLOv3 model to accurately identify the basketball; optimizing the bounding box size to adapt to dynamic tracking requirements; and achieving efficient and continuous tracking through the DCF tracking component, and dynamically updating the tracking strategy during the tracking process.

10. The method for tracking basketball in sports event video according to claim 6, characterized in that: The bidirectional tracking method in step S5 starts from the frame where the basketball is first detected and tracks forward until the end of the video, while tracking backwards by playing the video in reverse for the frame before the basketball first appears.