A method for object occlusion detection for visual tracking tasks
By calculating the peak-lobe ratio and depth histogram clustering, combined with the region growing image segmentation algorithm, it solves the problem that the existing occlusion detection algorithm is type-specific or has low stability, achieves low-complexity and efficient occlusion detection, and improves the goal Anti-occlusion performance of tracking algorithms.
Patent Information
- Application Number
- CN202210005648.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-05
AI Technical Summary
Existing occlusion detection algorithms are type-specific or have low stability, making it difficult to effectively detect whether the target is in an occluded state, resulting in tracking drift and failure.
By calculating the peak lobe ratio and the number of regional maximum response high values, combined with depth histogram clustering and region growing image segmentation algorithms, it is determined whether there is an occlusion in the target, and occlusion detection is performed based on the depth information, and an appropriate tracking strategy is adopted.
It achieves low-complexity and efficient occlusion detection, can sense the target status in time, and improves the anti-occlusion performance of the target tracking algorithm.
Smart Images

Figure CN114511803B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer vision, and in particular to a target occlusion detection method for visual tracking tasks. Background Art
[0002] The tracking algorithm based on template matching mainly constructs a feature template that can characterize the visual features of the target. Based on the assumption that the offset of the moving target in adjacent frames of the video is not large, the offset is calculated from the position of the previous frame in the new frame of the video and gradually recursively moves to the target position, or the target response of each pixel position nearby is calculated from this position, and the position with the maximum response is taken as the target position. Based on the efficiency and robustness of correlation filtering and the powerful visual feature extraction ability of deep learning algorithms, tracking algorithms based on correlation filtering framework and deep learning framework have become the mainstream algorithm framework in recent years.
[0003] In order to adapt to the changes of the tracked target in the time series, the target tracking algorithm must continuously learn and update the target feature information during the tracking process. If the occlusion phenomenon is not detected in time, the continuous learning of the target features will directly weaken the performance of the tracking operator, which is easy to cause tracking drift or even failure. Therefore, it is crucial to detect whether the target is in an occluded state in time. Existing occlusion detection algorithms perform target detection for specific categories of targets. When target detection fails, it is considered that occlusion occurs. This type of method has great limitations and can only complete occlusion detection for specific types of targets. Other algorithms use simple color space response thresholds for judgment, which are not very stable. Summary of the invention
[0004] The present invention aims to solve the problem that the existing occlusion detection algorithms are of specific type or have low stability.
[0005] The technical solution adopted by the present invention is: a target occlusion detection method for visual tracking tasks, comprising the following steps:
[0006] S1, input video data;
[0007] S2, determine the target of interest, obtain the target response map according to the tracking algorithm, and obtain the position information of the target of interest in the video frame;
[0008] S3, obtain the peak-to-lobe ratio according to the target response graph. If the peak-to-lobe ratio is greater than the preset value A, it is determined that there is no occlusion and returns to S2; otherwise, obtain the regional maximum response high value according to the target response graph. If the regional maximum response high value is greater than the preset value B, execute S4, otherwise, it is determined that there is no occlusion and return to S2;
[0009] S4, obtain a depth histogram according to the position information in S2, perform clustering according to the depth information in the depth histogram, select a target cluster according to the total number of pixels in each cluster, if there is no cluster before the target cluster or the total number of pixels in the cluster before the target cluster is less than the preset value C, determine that there is no possible occluder and there is no occlusion, and return to S2; otherwise, determine that there is a possible occluder, obtain the target depth information and the possible occluder depth information according to the depth information of the target cluster and the cluster before the target cluster, and extract the possible occluder area. If the ratio of the possible occluder area to the target area is greater than the preset value D and the distance between the possible occluder area and the target area is less than τ, determine that occlusion occurs, and execute S5, otherwise determine that there is no occlusion, and return to S2;
[0010] S5: Execute tracking strategy under occlusion.
[0011] Preferably, in S3, the peak-to-lobe ratio is calculated as follows:
[0012]
[0013] where f max is the maximum value in the target response graph, and S is the maximum response f in the target response graph. max The set of all response values outside the small neighborhood of the location, is the mean of the set S, σ S is the standard deviation of the set S.
[0014] Preferably, in S3, the number of regional maximum response high values is the number of regional maximum values having response values higher than a threshold value E in a set of regional maximum response values in the target response graph.
[0015] Preferably, in S4, the clustering method is as follows: extract the regional maxima in the depth histogram, center on each regional maximum, perform K-means clustering based on the depth information and the depth histogram of the target position area, where K is the total number of regional maxima in the depth histogram.
[0016] Preferably, in S4, the method for selecting the target cluster is: taking the first cluster whose total number of pixel points is more than half of the total number of pixel points in the target area as the target cluster.
[0017] Preferably, in S4,
[0018] The target depth information is calculated as follows: the depth mean of the target cluster is used as the target depth information;
[0019] The method for calculating the depth information of the possible occluder is: taking the depth mean of the cluster before the target cluster as the depth information of the possible occluder.
[0020] Preferably, in S4, the method for extracting the possible obstruction area is:
[0021] Assume that the mean depth of any cluster is μ d , with standard deviation σ d , randomly select Q depth values in the target area at μ d -σ d to μ d +σ d The pixel points between are used as the starting seed points for region growth; with various sub-points as starting points, the region growing image segmentation algorithm is executed until the growth is completed, and the regions grown from various sub-points are merged as possible occluder regions.
[0022] Preferably, the video data in S1 includes a depth image, and in S4, the calculation formula for the ratio of the possible occluder area to the target position area is as follows:
[0023]
[0024] The function A is used to count the total number of pixels in the corresponding set, and τ is the distance threshold;
[0025] D(O,Oc)=min(||x o -x oc ||2|x o ∈O,x oc ∈Oc)
[0026] Among them, let the pixel point set in the target area of the depth image be O, O c is a set of pixels in any possible occluder area, then D(O,O c ) is the distance D(O,O) between sets O and Oc c ), ||.||2 is the L2 norm, x o and x oc are image coordinates, x o Belongs to the target area, x oc Belongs to the possible obstruction area.
[0027] Compared with the existing technology, the present invention has the following advantages and effects:
[0028] The present invention has low computational complexity, supports parallel computing, and can effectively complete occlusion detection for visual tracking tasks, so that the algorithm can perceive the target state in a timely manner and adopt strategies such as stopping model updating when encountering occlusion to improve the anti-occlusion performance of the target tracking algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0030] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0032] Embodiment 1:
[0033] like Figure 1 As shown, a target occlusion detection method for visual tracking tasks includes the following steps:
[0034] Step 1: Connect a device that can simultaneously obtain color information and depth information. The device can be Kinect or a multi-eye camera, and transmit the collected data to the computer terminal in real time.
[0035] Step 2: Select a tracking algorithm, determine the target of interest, and initialize the algorithm for the target of interest.
[0036] Step 3: Read the new video frame, calculate the target response map according to the tracking algorithm, and obtain the position information of the target in the current frame.
[0037] Step 4:
[0038] (4.1) Calculate the peak-to-lobe ratio
[0039] (4.1.1) The peak-to-lobe ratio is calculated as follows:
[0040]
[0041] where f max is the maximum value in the target response graph, and S is the maximum response f in the target response graph. max The set of all response values outside the small neighborhood of the location, is the mean of the set S, σ S is the standard deviation of the set S. In this embodiment, the small neighborhood is set to be the pixel point within a distance of 12 pixels from the image coordinate corresponding to the maximum response value, where the distance is the Euclidean distance.
[0042] (4.2) Perform color space occlusion determination.
[0043] If the peak-to-lobe ratio is greater than the preset value A, it is determined that there is no obstruction, and the process returns to step 3. Preferably, the preset value A in this embodiment is 10;
[0044] Otherwise, perform the following steps:
[0045] Calculate the number of high values of regional maximum response, assuming that M fis the set of regional maximum response values in the target response graph, and the number of high values of regional maximum response is the set M f The number of regional maxima where the response value is higher than the preset threshold. In this embodiment, the threshold is 0.1f max If the high value of the regional maximum response is greater than the preset value B, step five is executed. Preferably, the preset value B in this embodiment is 1; otherwise, it is determined that there is no occlusion, and the process returns to step three.
[0046] Step 5:
[0047] (5.1) Based on the target position information of the current frame, the depth histogram in the target position area is calculated. The depth histogram mainly counts the number of pixels falling within each distance interval. In this embodiment, the depth histogram resolution (single bin width) is set to 10 mm.
[0048] (5.2) Extract the regional maxima in the depth histogram, take each regional maximum as the center, perform K-means clustering based on the depth information and the depth histogram of the target location area, where K is the total number of regional maxima in the depth histogram.
[0049] (5.3) Based on the mean depth of all pixels in each cluster, the cluster information is analyzed from near to far, mainly analyzing the total number of pixels in each cluster. The first cluster whose total number of pixels is more than half of the total number of pixels in the target position area estimated by the tracking algorithm is taken as the target cluster.
[0050] (5.4) Determine occlusion
[0051] If there is no cluster before the target cluster or the total number of cluster pixels before the target cluster is less than the preset value C of the total number of pixels in the target area, it is determined that there is no possible occlusion and there is no occlusion, and the process returns to step 3. Preferably, the preset value C in this embodiment is 10%;
[0052] Otherwise, determine that there is a possible obstruction and perform the following steps:
[0053] (5.4.1) Take the depth mean of the target cluster as the target depth information, and take the depth mean before the target cluster as the depth information of the possible occluder. Based on the depth information of the target and possible occluder, follow the following steps to obtain the corresponding area in the depth image:
[0054] (a) Calculate the standard deviation of each cluster depth information, assuming that the mean value of a cluster depth is μ d , with standard deviation σ d , randomly select Q depth values in the target area at μ d -σ d to μ d +σ dThe pixel points between are used as the starting seed points for region growth. Preferably, in this embodiment, Q is set to 6.
[0055] (b) Taking various sub-points as starting points, executing the region growing image segmentation algorithm until the growth is completed, and merging the regions obtained by the growth of various sub-points as possible occluder regions. Preferably, in this embodiment, the region growing is determined by the 9 neighborhoods of all pixels in the region, and one pixel is determined each time. The criterion for the pixel to be included in the region is: the difference between the depth value of the pixel and the mean depth of all pixels in the region is less than a threshold. In this embodiment, the difference threshold is set to 20mm.
[0056] (5.4.2) Assume that the set of pixels in the target area of the depth image is O, O c is a set of pixels in a possible occluder area, then sets O and O c The distance between
[0057] D(O,Oc)=min(||x o -x oc ||2|xo ∈ O,x oc ∈Oc)
[0058] Where ||.||2 is the L2 norm, x o and x oc They are all image coordinates, belonging to the target area and the possible occlusion area respectively.
[0059] (5.4.3) The ratio of the possible obstruction area to the target location area is calculated as follows:
[0060]
[0061] The function A(.) is used to count the total number of pixels in the corresponding set;
[0062] If R is greater than the preset value D and the distance between the possible occlusion area and the target area is less than τ, it is determined that occlusion occurs and step six is executed. Preferably, in this embodiment, the preset value D is 0.2 and τ is 50; otherwise, return to step three.
[0063] Step 6:
[0064] Implement the tracking strategy in the existing algorithm in the case of occlusion.
[0065] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A target occlusion detection method for visual tracking tasks, characterized by: The following steps are involved: S1, input video data; S2, determine the target of interest, obtain the target response map based on the tracking algorithm, and obtain the position information of the target of interest in the video frame; S3, calculate the peak-to-lobe ratio based on the target response graph. If the peak-to-lobe ratio is greater than the preset value A, it is determined that there is no obstruction, and return to S2; Otherwise, the regional maximum response high value is obtained according to the target response graph. If the regional maximum response high value is greater than the preset value B, execute S4. Otherwise, it is determined that there is no occlusion and return to S2. The calculation formula of the peak-to-lobe ratio is: Where fmax is the maximum value in the target response graph, S is the set of all response values in the target response graph except for the small neighborhood of the maximum response fmax. is the mean of the set S, σ S is the standard deviation of the set S; S4, obtain a depth histogram based on the position information in S2, perform clustering based on the depth information in the depth histogram, select a target cluster based on the total number of pixels in each cluster, if there is no cluster before the target cluster or the total number of pixels in the cluster before the target cluster is less than the preset value C, determine that there is no possible occluder and there is no occlusion, and return to S2; otherwise, determine that there is a possible occluder, obtain the target depth information and the possible occluder depth information based on the depth information of the target cluster and the cluster before the target cluster, and extract the possible occluder area. If the ratio of the possible occluder area to the target area is greater than the preset value D and the distance between the possible occluder area and the target area is less than τ, determine that occlusion occurs and execute S5, otherwise determine that there is no occlusion and return to S2; The method for extracting the possible occluder area is: Assume that the mean depth of any cluster is μ d , with a standard deviation of σ d , randomly select Q depth values in the target area in μ d -σ d to μ d +σ d The pixel points between them are used as the starting seed points for region growing; with various sub-points as starting points, the region growing image segmentation algorithm is executed until the growth is completed, and the regions grown from various sub-points are merged as possible occluder regions; S5: Execute tracking strategy under occlusion.
2. The target occlusion detection method for visual tracking tasks according to claim 1 is characterized in that: In S3, the number of regional maximum response high values is the number of regional maximum values whose response values are higher than the threshold E in the set of regional maximum response values in the target response graph.
3. The target occlusion detection method for visual tracking tasks according to claim 1, characterized in that: In said S4, the clustering method is as follows: extracting the regional maximum values in the depth histogram, taking each regional maximum value as the center, performing K-means clustering based on the depth histogram of the target position area and the depth information, wherein K is the total number of regional maxima in the depth histogram.
4. The target occlusion detection method for visual tracking tasks according to claim 1, characterized in that: In the above S4, the method for selecting the target cluster is: the first cluster whose total number of pixels is more than half of the total number of pixels in the target area is selected as the target cluster.
5. The method for detecting target occlusion for visual tracking tasks according to claim 3, characterized in that: In said S4, The target depth information is calculated as follows: the depth mean of the target cluster is used as the target depth information; The method for calculating the depth information of the possible occluder is: taking the depth mean of the cluster before the target cluster as the depth information of the possible occluder.
6. The method for detecting target occlusion for visual tracking tasks according to claim 5, characterized in that: The video data in S1 includes a depth image. In S4, the calculation formula for the ratio of the possible occluder area to the target position area is as follows: The function A is used to count the total number of pixels in the corresponding set, and τ is the distance threshold; D(O,Oc)=min(||x o -x oc ||2|x o ∈O,x oc ∈Oc) Among them, let the pixel set in the target area in the depth image be O, Oc be the pixel set in any possible occluder area, then D(O,Oc) is the distance D(O,Oc) between the sets O and Oc, ||.||2 is the L2 norm, x o and x oc are all image coordinates, x o Belongs to the target area, x oc Belongs to the area of possible obstructions.
