Abstract

Considering the limitation of tracking range on sports video target tracking in basketball games, there are some problems, such as poor tracking effect, low accuracy, low anti-interference ability, and being time-consuming. Therefore, this study proposes a target tracking algorithm of basketball video based on improved grey neural network. According to the pixel grey difference of the target image in basketball video, this study applies the adaptive threshold algorithm in order to segment the target image of basketball video and obtain the target area of basketball video. This algorithm can normalize the grey level of the target area, build the generating sequence of the target area, and collect the target data of the basketball video. It obtains the feature output matrix of basketball video target based on the geometric dispersion of the target image and extracts the key feature points of basketball video target by single frame visual difference analysis. In addition, it makes use of the improved grey neural network to track and locate the feature points of basketball video target and reconstruct the basketball video target image with superresolution to realize basketball video target tracking. The experimental results show that the proposed algorithm has good target tracking effect of basketball video, can effectively improve the target tracking accuracy and anti-interference ability, and can shorten the target tracking time.

1. Introduction

As it is known, the development of computer network technology promotes the update of image processing technology, and the video processing technology is also applied in people's daily lives [1, 2]. At present, the image accuracy of basketball video is high, but due to the variable target trajectory of basketball video, the similar moving target, and complex background, it is more difficult to track the target of basketball video. In addition, in the actual basketball game, it is difficult for the target tracking effect to achieve the ideal state due to the influence of various factors such as illumination, occlusion, and the definition of image acquisition equipment [3]. Therefore, the research on target tracking algorithm of basketball video has become a hot issue.

Yang and Wang [4] proposed a target tracking algorithm of basketball video based on DSP and FPGA. This study constructed a target index of the basketball video on the basis of collecting the basketball video, initialized the video, and determined the basic color map of the target index. Then according to the input basketball image, it used FPGA technology to obtain a new target index image and processed the new target image and the original image to get a new target position, so as to realize the target tracking of basketball video. The algorithm in this study can effectively track moving targets in basketball game video, but the tracking accuracy of moving targets is low. Wang and Hou [5] proposed a target tracking algorithm of sports video based on optimized particle filter. This study firstly detects the sports video, removes the background color histogram, then tracks the color target by using the particle filter technology, combines it with the color distribution, and finally realizes the target tracking of sports video by optimizing the tracked target model. The algorithm has high efficiency, but poor performance in target tracking of moving video. Aiming at solving the above problems, this study proposes a target tracking algorithm of basketball video based on improved grey neural network, which provides a certain reference for accurately tracking basketball video target.

2. Design of Target Tracking Algorithm in Basketball Video

2.1. Obtaining the Target Area of Basketball Video

In order to obtain the target area of basketball video, this study assumes that the pixel point of basketball video image is and sets the grey neural network as , and the time is . At time , is used to represent the grey neural network. The pixel grey difference at time and time is calculated by the following formula, which is expressed as

By iterative processing of formula (1), it can obtain the segmentation threshold of basketball video that is processed by improved grey neural network and play the advantages of visual technology [68] to obtain the possible areas of the moving target in the basketball video:

Particle filter is used to detect the target of the processed basketball video [911]. In order to increase the accuracy, it is assumed that when the basketball video is at time , the pixel point of the image is represented by grey neural network . After simulation of the motion of basketball video, if this pixel point remains unchanged, when , it can obtain the following formula:

In formula (3), , , and the differentiation of the target area images , , and in the basketball video can be represented by , , and .

It can obtain the solution of by using the iterative algorithm:

Here, represents the iterative coefficient.

Referring to formulas (4) and (5), it can segment the basketball video image by using the threshold after iterative processing:

Here, represents the area where the target may appear and represents the area where the target actually appears.

Taking clustering analysis of the segmented image by the image processing technology [1214], it can obtain the target area of the basketball video, which can be shown in the following formula:

In formula (7), the distance between the two areas is , the maximum distance threshold of the two target areas of basketball video is , and the nonzero pixel in the basketball video is .

2.2. Acquisition of Target Data in Basketball Video

The algorithm in this study fuses the feature vectors by matching technology, monitors three-dimensional fusion target in the target area of basketball video, reconstructs the video that is not in the target area [1517], and takes resolution reconstruction and spatial exchange matching of target data in the target area of basketball video. The calculation formula is as follows:

In formula (8), represents the reconstruction coefficient and represents the target data.

Assuming that the tracking targets in the target area of the basketball video are distributed linearly, the linear tracking target model in the public area of the basketball video is as follows:

Here, represents the number of image pixel node, represents the image pixel node, represents the amplitude of image reconstruction in basketball video, represents the sensor node in the collected basketball video, and represents the target image pixel of the basketball video. Assuming that , the basketball video image can be decomposed into multimodule color map. Through the feature classification processing of the target data in the video, it can form the target pixel matrix of basketball video.

Suppose the feature vector of the -th pixel in the basketball video is ; then when , and the initial pixel of the target data distribution in the basketball motion video is , the probability distribution is at this point. Using the grey normalization processing of grey neural network [1820] and combining with the basketball video after template matching, it can obtain the single frame pixel feature set of the basketball video, which is as follows:

In the target area of basketball video, this algorithm matches the target image template of the block area and constructs the generation sequence of the target area in basketball video, which is as follows:

In formula (11), represents the feature collection sample of the target area in basketball video, represents the pixel width of the basketball video, and the feature vector is composed of the eigenvalue of the target image in the target area of basketball video, thus achieving the acquisition of the target data of basketball video.

2.3. Extraction of Key Feature Points of Basketball Video Target

The following research is mainly to collect the target data of basketball video and extract the key feature points of the basketball video target [21]. Firstly, it is necessary to use the image degradation model to detect the feature of the target in the basketball video, combined with the improved grey neural network to optimally match the target image in the basketball video. If the threshold of the main feature sequence of the target image in the basketball video is set as , the acquisition model of the target data in basketball video can be obtained. The formula is as follows:

Secondly, according to the motion curve of basketball video target image in three-dimensional space [22, 23], it can obtain the combined dispersion of target image in basketball video. The formula is as follows:

Here, represents the similarity of pixels, and represents the discrete features of the image.

The characteristic output matrix of basketball video target is as follows:

Thirdly, after obtaining the feature vector of the basketball video, it can detect the moving image in the target area of the basketball video by template matching method [24] and get the fusion image, which is as follows:

In formula (15), represents the matching amplitude, represents the image frame, the coordinate point of the key feature point of the target in the basketball video is . Assuming that the two most boundary target feature points in the target area of basketball video are and , it can obtain the average matching pixel of the feature points.

Finally, it also needs to match each feature point obtained above and geometrically describe the sparse items of the image based on the improved grey neural network and extract the motion feature of the target image in the basketball video by using the single frame visual difference analysis method.

Here, and , respectively, represent the common sparse item set of the image, and represents the image area. Through the above operations, the key feature points of the basketball video target can be extracted.

2.4. Design of Target Tracking Algorithm of Basketball Video

Based on the improved grey neural network, it can reconstruct the target data of the target area in the basketball video, extract the key points of the motion video in the target area, and obtain the feature vectors of the basketball video. According to the improved grey neural network, the image feature points of the basketball video can be tracked and positioned; the tracking and positioning information can also be obtained, which is as follows:

Here, it can obtain after the amplitude segmentation of image in the target area of the basketball video, in which represents the reconstruction coefficient. Then it is necessary to fuse the target image of basketball video through the fusion technology [25] and get the fused n subimage blocks, so as to obtain the permutation matrix of the dynamic feature points of the basketball motion image. The permutation matrix is as follows:

In formula (19), the probability value of dynamic characteristic distribution of basketball video is , and then .

After extracting the implicit features of the target image in the target area of the basketball video and reconstructing the image superresolution of basketball video, it can obtain the output:

Here, represents the weight of basketball video target image, represents the weight of pixel , and represents the matching value of pixel.

The 3D feature reconstruction model of target area in basketball video is as follows:

In formula (21), represents the weight of image pixels and , and represents the sequence of pixel . Assuming that the three-dimensional features of the target image of basketball video achieve uniform distribution [26], it can calculate the features of the target tracking image of basketball video.

Here, represents the scale information of target features, represents the feature quantity of tracking target , and represents the feature quantity of tracking target . According to the result of pixel reconstruction of basketball video, it can realize the reconstruction of dynamic feature in the target area of basketball video and achieve the design effect of target tracking algorithm of basketball video.

3. Experimental Analysis

In order to verify the effectiveness of the target tracking algorithm of basketball video based on the improved grey neural network in target tracking, this experiment tracks two video sequences with different video frame number and tracking area size. In the VS platform under Windows environment, the experiment uses C++ language for programming, sets the experimental error threshold as 0.55, and chooses three algorithms for comparison experiment, namely, the target tracking algorithm designed in this paper and the algorithm in [4] and in [5]. Three groups of basketball video sequences are selected for the test. And the image sequences of frames 23, 38, and 56 of the three groups of basketball video in a group of videos are collected as the sample sequences of the experimental test. This experiment mainly tests the basketball video target tracking effect of different algorithms under different basketball video frames, as shown in Figure 1.

According to Figure 1, when tracking the 23rd frame image of basketball video, the proposed algorithm, the algorithm in [4], and that in [5] can accurately track the basketball video target. When tracking the 38th frame image of basketball video, both the proposed algorithm and the algorithm in [4] can accurately track the basketball video target, while the algorithm in [5] has lost the basketball video target. When tracking the 56th frame image of the basketball video, both the proposed algorithm and the algorithm in [5] can accurately track the basketball video target, while the algorithm in [4] has errors in tracking the basketball motion video target. It can be seen that the proposed algorithm has a good effect on basketball video target tracking.

According to the image sequence of the basketball video, when tracking the image sequence of the 23rd, 38th, and 56th frames, this experiment tests the accuracy of the target tracking algorithm of basketball video based on the improved grey neural network. The results are shown in Figure 2.

As can be seen from the results in Figure 2, in the test of the target tracking algorithm of basketball video based on the improved grey neural network, when tracking the 23rd frame image of basketball video, the tracking accuracy is 80%∼85%. When tracking the 38th frame of the basketball video, the tracking accuracy is between 84% and 91%. When tracking the 56th frame of the basketball video, the tracking accuracy is between 85% and 98%. Therefore, the target tracking algorithm designed in this paper has high accuracy in tracking the basketball video target. The target tracking algorithm designed in this paper can determine the actual position of the basketball video target by obtaining the target area of the basketball video, which can improve the tracking accuracy of the basketball video target.

In order to further verify the performance of the target tracking algorithm designed in this paper in the target tracking, this experiment collects three target images with different tracking areas of 600400, 480320, and 420280 and tests the target tracking effects of different algorithms in different tracking areas. The experimental results are shown in Figure 3.

According to Figure 3, it is known that when the tracking area of the target image is 600400, the proposed algorithm, the algorithm in [4], and that in [5] can accurately track the basketball video target. When the tracking area of the target image is 480320, the proposed algorithm can accurately track the basketball video target, while the algorithm in [4] has lost the basketball video target, and the algorithm in [5] has errors in tracking the basketball video target. When the tracking area of the target image is 420280, the proposed algorithm can still accurately track the basketball video target, while the algorithm in [4] and that in [5] have errors in tracking the basketball video target. Therefore, the target tracking effect of the proposed algorithm is good.

Under the condition of tracking target image sample sequences with different tracking area sizes, this experiment takes three target images with different tracking area sizes collected in basketball video as sample data and tests the tracking accuracy of the target tracking algorithm of basketball video based on improved grey neural network. The results are shown in Figure 4.

As can be seen from the results in Figure 4, with the expansion of the error threshold range, the tracking accuracy of target image in different tracking areas gradually increases. When the tracking area of the target image is 600400, the target tracking accuracy of basketball video is between 86% and 98%; when the tracking area of the target image is 480320, the target tracking accuracy of basketball video is between 83% and 95%; when the tracking area of the target image is 420280, the target tracking accuracy of basketball video is between 80% and 90%. Therefore, the target tracking algorithm designed in this paper has high accuracy in tracking the basketball video target. Among the three tracking areas with different sizes, this algorithm with the tracking area of 600400 has a higher target tracking accuracy of basketball video, which ensures the performance of the basketball video target tracking.

In order to further verify the anti-interference ability of the target tracking algorithm designed in this paper, the basketball video can be simulated by using 5.3dmax 3D simulation software in simulation environment, and the noise size of the image is set to −0.003∼0.003 m, as shown in Figure 5.

In order to further verify the anti-interference ability of the target tracking algorithm designed in this paper, this experiment sets the noise with the size of 0.003∼0.003 m in the simulation environment, compares the target tracking algorithm designed in this paper with the algorithm in [4] and that in [5], and obtains the target recognition rates of basketball video with different algorithms under noise interference, as shown in Table 1.

According to the data in Table 1, in the case of noise interference, when the amount of basketball video data is 500 MB, the average recognition rate of basketball video target of the algorithm in [4] is 74.8%, and that of the algorithm in [5] is 65.2%, while the average target recognition rate of basketball video target of the algorithm designed in this paper is as high as 90.6%. Therefore, in the case of noise interference, the algorithm designed in this paper has a high target recognition rate and strong anti-interference ability. Because the algorithm designed in this paper processes the target area through grey level normalization, establishes the target area generation sequence, and collects the target data of the basketball video, it can effectively remove the image noise and redundant data, thus effectively improving the anti-interference ability of the algorithm designed in this paper.

On this basis, in order to verify the basketball video target tracking time of the target tracking algorithm designed in this paper, this experiment selects 500 MB basketball video data and compares the basketball video target tracking time of the target tracking algorithm designed in this paper with that of the algorithm in [4] and that of the algorithm in [5]. The test results of basketball video target tracking time of different algorithms are shown in Table 2.

According to the data in Table 2, as the amount of basketball video data increases, the target tracking time of basketball video with different algorithms increases. When the amount of basketball video data is 500 MB, the basketball video target tracking time of the algorithm in [4] is 34 s, and the basketball video target tracking time of the algorithm in [5] is 39 s, while the basketball video target tracking time of the algorithm designed in this paper is only 22 s. Therefore, the basketball video target tracking time of the algorithm designed in this paper is relatively short. The algorithm designed in this paper uses single frame visual difference analysis to extract the key feature points of the basketball video target and combines it with the improved grey neural network to track and locate the feature points of the basketball video target, thus effectively shortening the tracking time of the basketball video target.

This paper extracts the key feature points of basketball video target and tracks and locates the feature points of basketball video target combined with the improved grey neural network, thus effectively shortening the tracking time of basketball video target.

4. Conclusion

(1)For the target tracking of video images of basketball, different frames of video images are selected to complete the target tracking test. The results show that the proposed method can achieve high-precision target tracking of different images, and the tracking accuracy can be maintained between 80% and 98%, which has application advantages compared with the literature algorithm.(2)When the tracking region of the target image is different, the target tracking results of different algorithms are quite different. When the target image tracking area is large, the target tracking is not difficult, and both the literature algorithm and the proposed algorithm can complete the experimental task.When the tracking area of the target image keeps shrinking, the recognition of target feature becomes more difficult, and the target tracking error of the literature algorithm appears obviously. But the proposed algorithm can still achieve the target tracking with high precision, and the accuracy can be maintained between 80% and 98%.(3)In the case of noise interference, the target recognition rate of basketball video designed in this paper is high.When the amount of basketball video data is large, the target tracking time of basketball video designed in this paper is only 22 s. It can be seen that the target tracking time of basketball video with the algorithm designed in this paper is short.Based on improved grey neural network proposed in this paper, the target tracking algorithm of basketball video takes advantage of improved grey neural network. It reconstructs the basketball video target image by obtaining the basketball video target area, collecting the basketball video target data, and extracting the key feature points of the basketball video target, and it finally realizes the basketball video target tracking. Therefore, the target tracking algorithm designed in this paper has good tracking effect, which can effectively improve the tracking accuracy and ensure the performance of the algorithm.

Data Availability

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Conflicts of Interest

The authors declare that they have no conflicts of interest regarding this work.

Acknowledgments

This study was supported by the Bidding Project of Jiaozuo Municipal Government Decision-Making Research in 2020—“Promoting the Study on the Spread of Taijiquan Culture along the One Belt and One Road” (JZZ2020061).