Apparatus and method for enhancing tracking of objects in scene
By selecting the clipping score threshold, the feature vector difference of the trajectory segment in the video sequence is maximized, which solves the problem in the existing technology that the feature vector of the trajectory segment does not represent the object, and improves the accuracy and clarity of object tracking.
Patent Information
- Application Number
- CN202410196858.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2024-02-22
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-02-22
AI Technical Summary
When the existing technology tracks objects in video sequences, the feature vectors of the trajectory segments may not represent the objects, leading to misjudgments. Even if two trajectory segments involve the same object, they are determined to be different.
By selecting the clipping score threshold, the feature vector difference between different trajectory segments is maximized, and the difference between the same trajectory segments is less than the threshold, so as to more accurately distinguish the trajectory segments and determine whether the trajectory segments belong to the same object.
It improves the accuracy of object tracking in video sequences, reduces misjudgments, and ensures a clearer distinction between different trajectory segments and the same trajectory segment.
Smart Images

Figure CN118628945A
Abstract
Description
Technical Field
[0001] The present invention relates to tracking of objects, and in particular to selecting a cropping score threshold for enhancing tracking of objects in a scene captured in a video sequence. Background Art
[0002] In the prior art, when tracking an object in a scene captured in a video sequence, a track segment comprising a crop of a subset of subsequent image frames from the video sequence is identified. Each crop of the track segment is a portion of an image frame of the video sequence and is associated with a detection in the image frame. For example, each crop can be a portion of a corresponding image frame within a bounding box around an object detected in the image frame. All cropping of the track segment has been determined to involve the same object according to a given criterion. Then, the track segments belonging to the same object should be connected to generate a single track involving the same object. In order to determine whether two different track segments belong to the same tracked object, the feature vectors of the cropping of the corresponding track segments can be used. Such a feature vector can be, for example, a feature vector determined by a convolutional neural network. Specifically, a feature vector of each of the two track segments can be determined, for example, as an average of the feature vectors of the cropping of the corresponding track segments, and if the distance between their feature vectors is less than a threshold, the track segment can be determined to belong to the same tracked object. A problem that may occur in such prior art approaches for connecting trajectory segments is that the feature vectors of the determined trajectory segments may not represent objects and therefore errors may occur such as two trajectory segments being determined not to relate to the same object even though they actually relate to the same object. Summary of the invention
[0003] An object of the present invention is to provide a method and apparatus for selecting a cropping score threshold for enhancing tracking of an object in a scene captured in a video sequence, which overcomes or alleviates the problems in the prior art.
[0004] The present disclosure exploits the recognition that the crop score for each crop can be used to determine which crops of a trajectory segment should be used to determine the difference between that trajectory segment and other trajectory segments.
[0005] According to a first aspect, a method for selecting a cropping score threshold for enhancing tracking of an object in a scene captured in a video sequence is provided. A corresponding track of each of two different objects is obtained, wherein each track includes a cropping of an object instance of the corresponding object in a scene captured in a calibration video sequence, and wherein each cropping has a cropping score and a feature vector. Each track is then segmented into two or more corresponding track segments, thereby forming four or more track segments. For each candidate cropping score threshold in a set of candidate cropping score thresholds: based on the difference between the feature vector of the cropping having a cropping score higher than the candidate cropping score threshold of each of the four or more track segments and the feature vector of the cropping having a cropping score higher than the candidate cropping score threshold of each of the four or more track segments, the corresponding difference between each of the four or more track segments and each of the other track segments in the four or more track segments is determined. Then, from a set of candidate cropping score thresholds, a cropping score threshold is selected that results in the maximum difference between the metric of the determined difference between the track segments of different tracks and the metric of the determined difference between the track segments of the same track.
[0006] By selecting a clipping score threshold that maximizes the difference between the determined difference measure between trajectory segments of different trajectories and the determined difference measure between trajectory segments of the same trajectory, a more accurate distinction between trajectory segments of different trajectories and trajectory segments from the same trajectory can be achieved. Specifically, a difference threshold with respect to the determined difference between trajectory segments can be set, for which it is likely that the determined difference between trajectory segments of different trajectories is greater than the difference threshold, and the determined difference between trajectory segments of the same trajectory is less than the difference threshold.
[0007] By "crop" is meant a region of an image frame of a video sequence. Typically, the crop is in such a way that the crop mainly contains pixels depicting an object. The crop may correspond, for example, to a region enclosed by a bounding box. Alternatively, the crop may correspond to a rectangular image region, wherein a segmentation mask obscures the detected object, and wherein pixels within the rectangular image region and not belonging to the detected object are equal to zero.
[0008] By "track segment" is meant a portion of a trajectory relating to an object associated with a subset of sequential image frames of a video sequence. The combination of all trajectory segments relating to the same object associated with a video sequence constitutes a trajectory relating to the object associated with the video sequence.
[0009] By "feature vector" is generally meant an n-dimensional vector representing numerical features of an object. This is a common representation of objects used, for example, in machine learning algorithms, which often require numerical representations of objects to facilitate, for example, data processing and statistical analysis. The feature vector may be received, for example, from a machine learning module that is trained to extract similar feature vectors for the same object in different image frames and less similar feature vectors for different objects.
[0010] The act of determining corresponding differences may include determining corresponding feature vectors for each of the four or more trajectory segments based on cropped feature vectors of the trajectory segments having a cropping score that is higher than a candidate cropping score threshold, and determining corresponding differences between each of the four or more trajectory segments and each other of the four or more trajectory segments as corresponding differences between each determined corresponding feature vector and each other determined corresponding feature vector. In the act of selecting a cropping score threshold from a set of candidate cropping score thresholds, a cropping score threshold is then selected that results in a maximum difference between a measure of the determined differences between feature vectors of trajectory segments from different trajectories and a measure of the determined differences between feature vectors of trajectory segments from the same trajectory.
[0011] In the act of determining the corresponding feature vector, the corresponding feature vector for each of the four or more trajectory segments may be determined as an average or median of the cropped feature vectors of the trajectory segments having a cropping score above the candidate cropping score threshold.
[0012] In the act of selecting a clipping score threshold, the metric may be a mean or a median.
[0013] The method according to the first aspect may further comprise identifying a subset of candidate crop score thresholds consisting of each of the candidate crop score thresholds, for which the number of crops having a crop score above the candidate crop score threshold is greater than or equal to a first desired number for each of the four or more trajectory segments. In the act of selecting the crop score threshold, the crop score threshold is then selected from the subset of candidate crop score thresholds.
[0014] By selecting a crop score threshold from a subset of candidate crop score thresholds, a crop score will be selected that has a greater likelihood that each trajectory segment resulting in an identification associated with an object in the scene will include at least one crop having a crop score higher than the selected crop score.
[0015] The method according to the first aspect may further include obtaining two further trajectory segments involving one or more objects, wherein each trajectory segment includes a crop of an object instance of one of the one or more objects in the scene captured in the video sequence, and wherein each crop has a crop score and a feature vector. Then, based on the feature vector of the crop of the corresponding trajectory segment having a crop score higher than the selected crop score threshold, the corresponding feature vector of each of the two further trajectory segments is determined, and then the difference between the determined corresponding feature vectors of the two further trajectory segments is determined. Then, based on the determined difference, it is determined whether the two further trajectory segments involve the same object or different objects. For example, under the condition that the determined difference is lower than the difference threshold, the two further trajectory segments can be determined to involve the same object, and under the condition that the determined difference is higher than the difference threshold, the two further trajectory segments can be determined to involve different objects. In the act of determining a corresponding feature vector for each of the two further trajectory segments, if the number of crops of the trajectory segment having a cropping score higher than a selected cropping score threshold is less than a second required number, the corresponding feature vector may be further determined based on an additional cropping with a maximum cropping score among the crops of the trajectory segment having a cropping score equal to or lower than the selected cropping score threshold, such that the number of crops on which the feature vector is based is equal to the second required number.
[0016] According to a second aspect, there is provided a non-transitory computer readable storage medium having stored thereon instructions for implementing the method according to the first aspect or the method according to the first aspect when executed by a device having processing capabilities.
[0017] When applicable, the above mentioned optional features of the method according to the first aspect also apply to the non-transitory computer readable storage medium of the second aspect. In order to avoid unnecessary repetitions, reference is made to the above.
[0018] According to a third aspect, a device for enhancing tracking of an object in a scene captured in a video sequence is provided. The device includes a circuit configured to perform a first acquisition function, a segmentation function, a first determination function, and a selection function. The first acquisition function is configured to acquire a corresponding trajectory of each of two different objects, wherein each trajectory includes a crop of an object instance of the corresponding object in the scene captured in the calibration video sequence, and wherein each crop has a crop score and a feature vector determined by a classifier. The segmentation function is configured to segment each trajectory into two or more corresponding trajectory segments, thereby forming four or more trajectory segments. The first determination function is configured to: for each candidate crop score threshold in a set of candidate crop score thresholds, based on the difference between the feature vector of the crop having a crop score higher than the candidate crop score threshold of each of the four or more trajectory segments and the feature vector of the crop having a crop score higher than the candidate crop score threshold of each of the four or more trajectory segments, determine the corresponding difference between each of the four or more trajectory segments and each of the other trajectory segments in the four or more trajectory segments. The selection function is configured to select, from a set of candidate clipping score thresholds, a clipping score threshold that results in a maximum difference between the determined measures of differences between trajectory segments of different trajectories and the determined measures of differences between trajectory segments of the same trajectory.
[0019] The above mentioned optional features of the method according to the first aspect also apply to the device of the third aspect, where applicable. In order to avoid unnecessary repetitions, reference is made to the above.
[0020] According to a fourth aspect, a method for enhancing tracking of an object in a scene captured in a video sequence is provided. A trajectory involving an object in one or more objects in the scene captured in the video sequence is obtained, wherein the trajectory includes a crop of an object instance of the object in the one or more objects, and wherein each crop has a crop score and a feature re-identification vector. A feature vector of the trajectory is determined based on a feature vector of a crop of the trajectory having a crop score higher than a crop score threshold selected for the scene. A further crop of an object instance of one of the one or more objects in the scene captured in the video sequence is obtained, wherein the crop has a crop score and a feature vector selected for the scene. Under the condition that the crop score of the further crop is greater than the crop score threshold selected for the scene, then a difference between the determined feature vector of the trajectory and the feature vector of the further crop is determined. Based on the determined difference, it is determined whether the further crop and the trajectory involve the same object or different objects. The selected crop score threshold can be selected, for example, according to the method according to the first aspect.
[0021] If the further crop has a crop score greater than the crop score threshold selected for the scene, by only determining the difference and determining whether the further crop involves the same object as the track, misidentification of further crops involving the same object can be avoided. In addition, processing related to other crops with crop scores equal to or less than the crop score threshold can be avoided.
[0022] According to a fifth aspect, a device for enhancing tracking of an object in a scene captured in a video sequence is provided. The device includes a circuit configured to perform a first acquisition function, a first determination function, a second acquisition function, and a second determination function. The first acquisition function is configured to acquire a trajectory involving an object in one or more objects in the scene captured in the video sequence, wherein the trajectory includes a crop of an object instance of the object in the one or more objects, and wherein each crop has a crop score and a feature re-identification vector. The first determination function is configured to determine a feature vector of the trajectory based on a feature vector of a crop of a trajectory segment having a crop score higher than a selected crop score threshold. The second acquisition function is configured to acquire a further crop of an object instance of one of the one or more objects in the scene captured in the video sequence, wherein the crop has a crop score and a feature vector selected for the scene. Under the condition that the crop score of the further crop is greater than the crop score threshold selected for the scene, the second determination function is configured to determine the difference between the determined corresponding feature vectors of the two trajectory segments, and determine whether the further crop and the trajectory involve the same object or different objects based on the determined difference. The cropping score threshold selected for a scene may for example be selected according to the method according to the first aspect.
[0023] From the detailed description given below, further scope of applicability of the present invention will become apparent. However, it should be understood that while indicating the preferred embodiments of the present invention, the detailed description and specific examples are given only by way of illustration, because various changes and modifications within the scope of the present invention will become apparent to those skilled in the art from the detailed description.
[0024] Therefore, it should be understood that the present invention is not limited to the particular components of the described equipment or the actions of the described methods, because such equipment and methods can vary. It should also be understood that the terms used herein are only used for the purpose of describing particular embodiments and are not intended to be restrictive. It must be noted that, unless the context clearly indicates otherwise, the terms "one", "said", and "said" used in the specification and the appended claims are intended to indicate the presence of one or more elements. In addition, the words "comprise", "contain", "include" and similar words do not exclude other elements or steps. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and other aspects of the present invention will now be described in more detail with reference to the accompanying drawings.The drawings should not be considered limiting but are for explanation and understanding.
[0026] Figure 1a and Figure 1b A flow chart related to an embodiment of the method of the present disclosure is shown.
[0027] Figure 2 Schematic diagrams related to embodiments of the apparatus of the present disclosure are shown.
[0028] Figure 3 A flow chart related to another method embodiment of the present disclosure is shown.
[0029] Figure 4 A schematic diagram related to an embodiment of another device of the present disclosure is shown. DETAILED DESCRIPTION
[0030] The invention will now be described hereinafter with reference to the accompanying drawings which illustrate currently preferred embodiments of the invention. However, the invention may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein.
[0031] The present invention is applicable to scenarios where objects are tracked in a scene captured over time in a video sequence. This may occur, for example, when a scene is captured in a sequence of image frames by a surveillance camera. Objects have been detected using an object detection module using any type of object detection. A cropped feature vector relating to the tracked object in each image frame may be extracted in the object detection, or the feature vector may be extracted in a separate process using the object detection as input.
[0032] In the following, reference will be made to Figure 1a and Figure 1b An embodiment of a method 100 for selecting a cropping score threshold for enhancing tracking of an object in a scene captured in a video sequence is discussed.
[0033] Obtain S110 a corresponding trajectory for each of the two different objects. Each trajectory includes a crop of an object instance of the corresponding object in a scene captured in a calibration video sequence. Each crop has a crop score and a feature vector. In addition to the crops included in each trajectory, each trajectory may further include estimates associated with some frames for which no crops are available, for example because the object is not detected in these frames. Such crop scores may be determined by annotating the crops based on whether the crop contributes positively or negatively to solving the problem, and then training a classifier on the data.
[0034] The objects may involve vehicles, people, faces, bags, pets, or any other objects that may be of interest in different situations.
[0035] The clipping score of a clip can be, for example, a value indicating how effective the clipping is for re-identification, or in other words, how effective the clipping is as input to extract a feature vector from it for object re-identification. Alternatively, the clipping score of a clip can be a value indicating how good the clipping is for object classification, or in other words, how good the clipping is as input to extract a feature vector from it for object classification. Such a clipping score can be determined by a classifier trained to calculate a value for the clip (i.e., the clipping score) that specifies how similar the clipping is to what is considered a "good" clipping. For example, the clipping score can be a value between 0 and 1.
[0036] The feature vector of cropping is a vector describing the features of an object. The feature vector may be received, for example, from a machine learning module such as a neural network trained to extract similar feature vectors of the same object in different image frames and less similar feature vectors of different objects. Alternatively, the feature vector may be received from other types of modules such as modules based on support vector machines or color histograms. The manner in which the cropping score is determined will depend on the type of module from which the feature vector is received.
[0037] Each trajectory is then segmented S120 into corresponding two or more trajectory segments, thereby forming four or more trajectory segments. It should be noted that it is known that the two trajectories received in relation to the calibration video sequence relate to corresponding ones of two different objects. Therefore, it is known which of the four or more trajectory segments belongs to which trajectory. For example, this can be achieved by selecting a calibration video sequence with well-separated trajectories from two different and simultaneously tracked objects in the scene.
[0038] For each candidate cropping score threshold in a set of candidate cropping score thresholds, a corresponding difference between each of the four or more track segments and each other of the four or more track segments is determined S130. Each corresponding difference is based on a difference between a feature vector of a crop having a cropping score higher than the candidate cropping score threshold for the track segment in the four or more track segments and a feature vector of a crop having a cropping score higher than the candidate cropping score threshold for another track segment in the four or more track segments. Thus, a first difference is determined based on a difference between a feature vector of a crop having a cropping score higher than the candidate cropping score threshold for the first track segment and a feature vector of a crop having a cropping score higher than the candidate cropping score threshold for the second track segment, a second difference is determined based on a difference between a feature vector of a crop having a cropping score higher than the candidate cropping score threshold for the first track segment and a feature vector of a crop having a cropping score higher than the candidate cropping score threshold for the third track segment, and so on, until a difference is determined for each combination of track segments of the four or more track segments. Thus, for n trajectory segments, n*(n-1) / 2 differences will be determined for each candidate clipping score. The difference between two feature vectors can be determined, for example, by determining the distance between the two feature vectors. The larger the distance between the two feature vectors, the larger the difference. The distance can be, for example, expressed as L 2 norm (also called the Euclidean norm).
[0039] The difference between the two track segments should preferably be determined so that the greater the difference between the feature vector of the clipping with a clipping score higher than the candidate clipping score threshold of one of the two track segments and the feature vector of the clipping with a clipping score higher than the candidate clipping score threshold of the other track segment of the two track segments, the greater the difference between the two track segments. For example, the action of determining the corresponding difference at S130 may include determining the corresponding feature vector of each of the four or more track segments based on the feature vector of the clipping with a clipping score higher than the candidate clipping score threshold of the track segment. The feature vector of the track segment is preferably determined so that it is a feature vector of the clipping with a clipping score higher than the candidate clipping score threshold of the track segment, such as the average or median of the feature vectors of the clipping with a clipping score higher than the candidate clipping score threshold of the track segment. The corresponding difference between each of the four or more track segments and each other of the four or more track segments can then be determined as the corresponding difference between each determined corresponding feature vector and each other determined corresponding feature vector. In addition to determining the corresponding feature vector of each track segment, the variance of the feature vector can also be determined. In this case, the corresponding difference between each of the four or more trajectory segments and each other of the four or more trajectory segments can then be determined as the corresponding difference between each determined corresponding feature vector and corresponding variance with or without weighting and each other determined corresponding feature vector and corresponding variance with or without weighting.
[0040] Furthermore, when the tracked object of a trajectory segment has more than one appearance in the trajectory segment, more than one feature vector per trajectory segment may be determined. For example, if the tracked object is a person, two feature vectors may be determined, a first feature vector relating to a crop of the person visible from the front and a second feature vector relating to a crop of the person visible from the rear. The first feature vector and the second feature vector may then be determined using the average or median feature vector of the feature vector of the crop of the person visible from the front and the second feature vector of the crop of the person visible from the rear, respectively. When it is determined that the difference between the first trajectory segment and the second trajectory segment each has more than one feature vector, the difference may be determined as a measure of the corresponding difference between the corresponding feature vectors of the first trajectory segment and the second trajectory segment. The measure may be, for example, a median or average.
[0041] The candidate clipping scores of a set of candidate clipping score thresholds will differ depending on the type of clipping score used. For example, if a clipping score that can have values in the range of 0 to 1 is used, the candidate clipping scores can be 0.1, 0.2, ..., 0.9. Of course, other ranges and other values within these ranges are also possible.
[0042] A clipping score threshold that results in a maximum difference between the metric of the determined differences between the trajectory segments of different trajectories and the metric of the determined differences between the trajectory segments of the same trajectory is then selected S140 from a set of candidate clipping score thresholds. The metric is preferably such that it reflects the determined differences between the trajectory segments of different trajectories and the determined differences between the trajectory segments of the same trajectory, respectively, such as a mean or median.
[0043] Furthermore, the clipping score threshold is preferably selected such that a measure of the determined differences between trajectory segments of the same trajectory is smaller than a measure of the determined differences between trajectory segments of different trajectories.
[0044] In an embodiment where the action of determining S130 the corresponding difference includes determining the corresponding feature vector of each of four or more trajectory segments and the corresponding difference between each trajectory segment and each other trajectory segment is determined as the corresponding difference between each determined corresponding feature vector and each other determined corresponding feature vector, a clipping score threshold is selected that results in a maximum difference between a measure of the determined differences between feature vectors of trajectory segments of different trajectories and a measure of the determined differences between feature vectors of trajectory segments of the same trajectory. The measure is preferably such that it reflects the determined differences between feature vectors of trajectory segments of different trajectories and the determined differences between feature vectors of trajectory segments of the same trajectory, respectively, such as an average or median. The clipping score threshold is then further preferably selected such that the measure of the determined differences between feature vectors of trajectory segments of the same trajectory is less than the measure of the determined differences between feature vectors of trajectory segments of different trajectories.
[0045] The selected cropping score threshold may then be used to determine which crops of a trajectory to use when determining a feature vector for a trajectory for comparison with further crops or a feature vector of another trajectory when determining whether the compared trajectories relate to the same object or different objects.
[0046] The selected clipping score threshold is usually used for the scene associated with it that has been selected by the method 100. For a different scene, a new clipping score threshold is usually determined by executing the method 100 associated with the different scene.
[0047] The cropping score threshold should be high enough so that the cropping used for re-identification is sufficiently "good". However, if the cropping score threshold is too high, there may not be any cropping above the threshold for short tracks. The method 100 may therefore further include identifying S135 a subset of candidate cropping score thresholds consisting of each of the candidate cropping score thresholds, for which the number of crops having a cropping score above the candidate cropping score threshold is greater than or equal to a first desired number of each of the four or more trajectory segments. In the act of selecting a cropping score threshold, a cropping score threshold is then selected from the subset of candidate cropping score thresholds. By selecting a cropping score threshold from the subset of candidate cropping score thresholds, a cropping score threshold will be selected that has a greater likelihood that each trajectory resulting in an identification associated with an object in the scene will include at least one cropping having a cropping score above the selected cropping score threshold.
[0048] Once a cropping score threshold is selected, the selected cropping threshold may be used to determine whether two further trajectories relate to the same object or to different objects. Method 100 may therefore further include obtaining S150 two further trajectories involving one or more objects. Each of the two further trajectories comprises a cropping of an object instance of one of the one or more objects in the scene captured in the video sequence, and each cropping has a cropping score and a feature vector. A corresponding feature vector of each of the two further trajectories is then determined S160 based on the feature vectors of the cropping of the corresponding trajectories having a cropping score higher than the selected cropping score threshold from the action of selecting S140. A difference between the determined corresponding feature vectors of the further two trajectories is then determined S170. The difference between the two feature vectors may be determined, for example, by determining a distance between the two feature vectors. The greater the distance between the two feature vectors, the greater the difference. The distance may be, for example, expressed in terms of L. 2 norm (also called the Euclidean norm).
[0049] Then determine S180 whether the two further trajectories involve the same object or different objects based on the determined difference. For example, under the condition that the determined difference is lower than the difference threshold, the two further trajectories can be determined to involve the same object, and under the condition that the determined difference is higher than the difference threshold, the two further trajectories can be determined to involve different objects. For the selected clipping score threshold of the action of selecting S140, the difference threshold can be set based on the metric of the determined difference between the trajectories of different trajectories and the metric of the determined difference between the trajectories of the same trajectory. Specifically, for the selected clipping score threshold of the action of selecting S140, the difference threshold can be set to the average value of the metric of the determined difference between the trajectories of different trajectories and the metric of the determined difference between the trajectories of the same trajectory. For example, the metric can be an average or a median. If, for example, the metric of the determined difference between the trajectories of different trajectories is 1.2, and the metric of the determined difference between the trajectories of the same trajectory is 0.2, the difference threshold can be set to 0.7.
[0050] In order to ensure that at least a second required number of crops are used for each further trajectory to determine a corresponding feature vector for each of the two further trajectories, if the number of crops of a trajectory having a cropping score above a selected cropping score threshold is less than the second required number, the corresponding feature vector may be further determined based on a further cropping with a maximum cropping score among the crops of the trajectory having a cropping score equal to or below the selected cropping score threshold, such that the number of crops on which the feature vector is based is equal to the second required number. Thus, if a trajectory of the two further trajectories has fewer than the second required number of crops and has a cropping score above the selected cropping score threshold, the further crops are used to determine the feature vector of the trajectory. In addition, a further cropping score threshold may be set, which is a lower cropping score, wherein no crops are used to determine the feature vector even if this results in less than the second required number of crops being used to determine the feature vector.
[0051] In the following, reference will be made to Figure 2 An embodiment of an apparatus 200 for selecting a cropping score threshold for enhancing tracking of an object in a scene captured in a video sequence is discussed.
[0052] The device 200 includes a circuit 210. The circuit 210 is configured to perform the functions of the device 200. The circuit 210 may include a processor 212 such as a central processing unit (CPU), a microcontroller or a microprocessor. The processor 212 is configured to execute program code. The program code may, for example, be configured to perform the functions of the device 200.
[0053] The device 200 may further include a memory 230. The memory 230 may be one or more of a buffer, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile storage, a random access memory (RAM), or another suitable device. In a typical arrangement, the memory 230 may include a non-volatile memory for long-term data storage and a volatile memory used as a device memory for the circuit 210. The memory 230 may exchange data with the circuit 210 via a data bus. There may also be accompanying control lines and an address bus between the memory 230 and the circuit 210.
[0054] The functionality of the device 200 may be embodied in the form of executable logic routines (e.g., lines of code, software programs, etc.) stored on a non-transitory computer-readable medium (e.g., memory 230) of the device 200 and executed by the circuit 210 (e.g., using the processor 212). In addition, the functionality of the device 200 may be a stand-alone software application or form part of a software application that performs additional tasks associated with the device 200. The described functionality may be considered as a method that a processing unit (e.g., processor 212 of the circuit 210) is configured to perform. Likewise, while the described functionality may be implemented in software, such functionality may also be implemented via dedicated hardware or firmware, or some combination of hardware, firmware, and / or software.
[0055] The circuit 210 is configured to perform a first acquisition function 231 , a segmentation function 232 , a first determination function 233 , and a selection function 234 .
[0056] The first acquisition function 231 is configured to acquire a corresponding trajectory for each of the two different objects, wherein each trajectory comprises a crop of an object instance of the corresponding object in a scene captured in a calibration video sequence, and wherein each crop has a crop score and a feature vector determined by a classifier.
[0057] The segmentation function 232 is configured to segment each trajectory into respective two or more trajectory segments, thereby forming four or more trajectory segments.
[0058] For each candidate cropping score threshold in a set of candidate cropping score thresholds, the first determination function 233 is configured to determine a corresponding difference between each of the four or more trajectory segments and each other of the four or more trajectory segments based on a difference between a feature vector of a crop having a cropping score higher than the candidate cropping score threshold for each of the four or more trajectory segments and a feature vector of a crop having a cropping score higher than the candidate cropping score threshold for each other of the four or more trajectory segments.
[0059] The selection function 234 is configured to select, from a set of candidate clipping score thresholds, a clipping score threshold that results in a maximum difference between the determined measures of differences between trajectory segments of different trajectories and the determined measures of differences between trajectory segments of the same trajectory.
[0060] The circuit 210 may be further configured to perform an identification function 235 , a second acquisition function 236 , a second determination function 237 , a third determination function 238 , and a fourth determination function 239 .
[0061] The identification function 235 is configured to identify a subset of candidate crop score thresholds for which the number of crops having a crop score above the candidate crop score threshold is greater than or equal to a first desired number for each of the four or more trajectory segments. In the selection function 234, a crop score threshold is then selected from the subset of candidate crop score thresholds.
[0062] In a first determination function 231 , a corresponding feature vector of each of the four or more trajectory segments may be determined as an average or median of the cropped feature vectors of the trajectory segment having a cropping score above a candidate cropping score threshold.
[0063] In the selection function 234, the metric may be a mean or a median.
[0064] The second acquisition function 236 is configured to acquire two further trajectories involving the one or more objects, wherein each trajectory comprises a crop of an object instance of one of the one or more objects in the scene captured in the video sequence, and wherein each crop has a crop score and a feature vector determined by the classifier.
[0065] The second determination function 237 is configured to determine a respective feature vector for each of the two further trajectories based on the cropped feature vector of the trajectory having a cropping score above a selected cropping score threshold.
[0066] The third determination function 238 is configured to determine the difference between the determined respective feature vectors of two further trajectories.
[0067] The fourth determination function 239 is configured to determine, based on the determined difference, whether two further trajectories relate to the same object or to different objects.
[0068] The fourth determination function 239 may be configured to determine that the two further trajectories relate to the same object conditional on the determined difference being below a difference threshold, and to determine that the two further trajectories relate to different objects conditional on the determined difference being above the difference threshold.
[0069] In the second determination function 237, if the number of crops of the trajectory having a cropping score higher than the selected cropping score threshold is less than the second required number, a corresponding re-identification vector is further determined based on an additional cropping with a maximum cropping score among the crops of the trajectory having a cropping score equal to or lower than the selected cropping score threshold, so that the number of crops on which the re-identification vector is based is equal to the second required number.
[0070] Further details regarding the functions that the circuit 210 is configured to perform are provided in relation to the corresponding actions of the method 100 for selecting a crop score threshold for enhancing tracking of an object in a scene captured in a video sequence.
[0071] In the following, we will combine Figure 3 An embodiment of a method 300 for enhancing tracking of objects in a scene captured in a video sequence is discussed.
[0072] In the following, reference will be made to Figure 3 An embodiment of a method 300 for enhancing tracking of objects in a scene captured in a video sequence is discussed.
[0073] Acquiring S350 involves trajectories of objects in one or more objects in a scene captured in a video sequence. The trajectory includes clips of object instances of the one or more objects. Each clip has a clip score and a feature vector. Figure 1a The description of is used to determine the clipping fraction.
[0074] Based on the cropped feature vectors of the corresponding trajectory having a cropping score above a cropping score threshold selected for the scene, a feature vector is determined S360 for the trajectory. Figure 1a The description is used to determine the eigenvector.
[0075] Obtain S365 a further crop of an object instance of one of the one or more objects in the scene captured in the video sequence. The further crop has a crop score and feature vector selected for the scene. Figure 1a The description of is used to determine the clipping fraction.
[0076] Under the condition C368 that the crop score of the further crop is greater than the crop score threshold selected for the scene, a difference between the feature vector of the trajectory determined at S370 and the feature vector of the further crop is determined. It is then determined S380 based on the determined difference whether the further crop and the trajectory relate to the same object or to different objects. Figure 1a description to determine the difference.
[0077] Under condition C368 that the crop score of a further crop is not greater than the crop score threshold, the further crop is not considered for comparison to the trajectory, as this indicates that the crop is not sufficiently representative of the object, making it unlikely that feature vector comparison will lead to relevant results.
[0078] It should be noted that in other embodiments, the comparison is made between two trajectories. Here, the comparison is made between a single clipping and a trajectory. For this reason, a single clipping may be a special case where the trajectory consists of only one clipping (i.e. a further clipping).
[0079] According to about Figure 1a Method 100 is described for selecting a crop score threshold for a scene.
[0080] In the following, reference will be made to Figure 4 An embodiment of an apparatus 400 for enhancing tracking of objects in a scene captured in a video sequence is discussed.
[0081] Device 400 includes circuitry 410. Circuitry 410 is configured to perform the functions of device 400. Circuitry 410 may include a processor 412, such as a central processing unit (CPU), a microcontroller, or a microprocessor. Processor 412 is configured to execute program code. The program code may, for example, be configured to perform the functions of device 400.
[0082] The device 400 may further include a memory 430. The memory 430 may be one or more of a buffer, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile storage, a random access memory (RAM), or another suitable device. In a typical arrangement, the memory 430 may include a non-volatile memory for long-term data storage and a volatile memory used as device memory for the circuit 410. The memory 430 may exchange data with the circuit 410 via a data bus. There may also be accompanying control lines and an address bus between the memory 430 and the circuit 410.
[0083] The functionality of the device 400 may be embodied in the form of executable logic routines (e.g., lines of code, software programs, etc.) stored on a non-transitory computer-readable medium (e.g., memory 430) of the device 400 and executed by the circuit 410 (e.g., using the processor 412). In addition, the functionality of the device 400 may be a stand-alone software application or form part of a software application that performs additional tasks associated with the device 400. The described functionality may be considered as a method that a processing unit (e.g., processor 412 of the circuit 410) is configured to perform. Likewise, while the described functionality may be implemented in software, such functionality may also be implemented via dedicated hardware or firmware, or some combination of hardware, firmware, and / or software.
[0084] The circuit 410 is configured to perform a first acquisition function 436 , a first determination function 437 , a second acquisition function 438 , and a second determination function 439 .
[0085] The first acquisition function 436 is configured to acquire a trajectory relating to an object in one or more objects in a scene captured in a video sequence, wherein the trajectory includes crops of object instances of the object in the one or more objects, and wherein each crop has a crop score and a feature re-identification vector.
[0086] The first determination function 437 is configured to determine a feature vector of the trajectory based on cropped feature vectors of the trajectory having a cropping score above a selected cropping score threshold.
[0087] The second acquisition function 438 is configured to acquire a further crop of an object instance of one of the one or more objects in the scene captured in the video sequence, wherein the crop has a crop score and feature vector selected for the scene.
[0088] On the condition that the crop score of the further crop is greater than the crop score threshold selected for the scene, the second determination function 439 is configured to determine the difference between the determined corresponding feature vectors of the two trajectories, and determine whether the further crop and the trajectory relate to the same object or to different objects based on the determined difference. The crop score threshold selected for the scene can be selected, for example, according to the method according to the first aspect.
[0089] Further details regarding the functions that the circuit 410 is configured to perform are provided in relation to the corresponding actions of the method 300 for enhancing tracking of an object in a scene captured in a video sequence.
[0090] Those skilled in the art will appreciate that the present invention is not limited to the above-described embodiments. On the contrary, many modifications and variations are possible within the scope of the appended claims. Such modifications and variations may be understood and implemented by a skilled person in practicing the claimed invention by studying the drawings, the disclosure, and the appended claims.
Claims
1. A method for selecting a cropping score threshold for enhancing tracking of an object in a scene captured in a video sequence, the method comprising: obtaining a respective track for each of two different objects, wherein each track comprises a crop of an object instance of the respective object in the scene captured in a calibration video sequence, and wherein each crop has a crop score and a feature vector; splitting each trajectory into corresponding two or more trajectory segments, thereby forming four or more trajectory segments; for each candidate crop score threshold in a set of candidate crop score thresholds: determining a respective difference between each of the four or more trajectory segments and each other of the four or more trajectory segments based on a difference between a cropped feature vector having a crop score above the candidate crop score threshold for each of the four or more trajectory segments and a cropped feature vector having a crop score above the candidate crop score threshold for each other of the four or more trajectory segments; and A clipping score threshold is selected from the set of candidate clipping score thresholds that results in a maximum difference between the determined measures of differences between trajectory segments of different trajectories and the determined measures of differences between trajectory segments of the same trajectory.
2. The method according to claim 1, wherein: The actions to determine the corresponding difference include: determining a respective feature vector for each of the four or more trajectory segments based on cropped feature vectors of the trajectory segments having a crop score above the candidate crop score threshold; and determining the respective differences between each of the four or more trajectory segments and each other of the four or more trajectory segments as respective differences between each determined respective feature vector and each other determined respective feature vector, Wherein, in the action of selecting a cropping score threshold from the set of candidate cropping score thresholds, the cropping score threshold is selected such that it results in a maximum difference between the measures of the determined differences between feature vectors of trajectory segments from different trajectories and the measures of the determined differences between feature vectors of trajectory segments from the same trajectory.
3. The method according to claim 2, wherein: In the act of determining a corresponding feature vector, the corresponding feature vector for each of the four or more trajectory segments is determined as an average or median of the feature vectors of the crops of the trajectory segment having a cropping score above the candidate cropping score threshold.
4. The method according to claim 1, wherein: In the act of selecting a clipping score threshold, the metric is a mean or a median.
5. The method according to claim 1, further comprising: identifying a subset of candidate crop score thresholds consisting of each of the candidate crop score thresholds, for which a number of crops having a crop score above the candidate crop score threshold is greater than or equal to a first desired number for each of the four or more trajectory segments, Wherein, in the action of selecting the clipping score threshold, the clipping score threshold is selected from a subset of the candidate clipping score thresholds.
6. The method according to claim 1, further comprising: obtaining two further trajectory segments involving one or more objects, wherein each trajectory segment comprises a crop of an object instance of one of the one or more objects in the scene captured in the video sequence, and wherein each crop has a crop score and a feature vector; determining a respective feature vector for each of the two further trajectory segments based on the cropped feature vectors of the respective trajectory segments having a cropping score above a selected cropping score threshold; determining a difference between the determined corresponding feature vectors of the further two trajectory segments; and Based on the determined difference it is determined whether the two further trajectory segments relate to the same object or to different objects.
7. The method according to claim 6, wherein: The action of determining whether the two trajectory segments involve the same object or different objects includes: On condition that the determined difference is below a difference threshold, determining that the two further trajectory segments relate to the same object; and On condition that the determined difference is above the difference threshold, it is determined that the two further trajectory segments relate to different objects.
8. The method according to claim 6, wherein: In the act of determining a corresponding feature vector for each of the two further trajectory segments, if the number of crops of the trajectory segment having a cropping score higher than the selected cropping score threshold is less than a second required number, the corresponding feature vector is further determined based on an additional cropping with a maximum cropping score among the crops of the trajectory segment having a cropping score equal to or lower than the selected cropping score threshold, such that the number of crops on which the feature vector is based is equal to the second required number.
9. A non-transitory computer-readable storage medium having stored thereon instructions for implementing the method of claim 1 when executed by a device having processing capabilities.
10. An apparatus for enhancing tracking of an object in a scene captured in a video sequence, the apparatus comprising circuitry configured to: A first acquisition function is configured to acquire a corresponding trajectory of each of two different objects, wherein Each track comprises a crop of an object instance of a corresponding object in the scene captured in the calibration video sequence, and wherein each crop has a crop score and a feature vector determined by a classifier; a splitting function configured to split each trajectory into corresponding two or more trajectory segments, thereby forming four or more trajectory segments; a first determination function, for each candidate crop score threshold in a set of candidate crop score thresholds, configured to: determine a respective difference between each of the four or more trajectory segments and each other of the four or more trajectory segments based on a difference between a cropped feature vector having a crop score above the candidate crop score threshold for each of the four or more trajectory segments and a cropped feature vector having a crop score above the candidate crop score threshold for each other of the four or more trajectory segments; and A selection function is configured to select, from the set of candidate clipping score thresholds, a clipping score threshold that results in a maximum difference between the determined measures of differences between trajectory segments of different trajectories and the determined measures of differences between trajectory segments of the same trajectory.
11. The device according to claim 10, wherein: For each candidate crop score threshold in the set of candidate crop score thresholds, the first determination function is configured to: determining a respective feature vector for each of the four or more trajectory segments based on cropped feature vectors of the trajectory segments having a crop score above the candidate crop score threshold, and The respective differences between each of the four or more trajectory segments are determined as respective differences between each determined respective feature vector and each other determined respective feature vector.
12. The apparatus according to claim 10, further comprising: an identification function configured to identify a subset of candidate crop score thresholds for which a number of crops having a crop score above the candidate crop score threshold is greater than or equal to a first desired number for each of the four or more trajectory segments, Wherein, in the selection function, the clipping score threshold is selected from a subset of the candidate clipping score thresholds.
13. The apparatus according to claim 10, further comprising: a second acquisition function configured to acquire two further trajectory segments involving the one or more objects, wherein each trajectory segment comprises a crop of an object instance of one of the one or more objects in the scene captured in the video sequence, and wherein each crop has a crop score and a feature vector determined by a classifier; a second determination function configured to determine a respective feature vector for each of said two further trajectory segments based on the cropped feature vectors of said trajectory segments having a cropping score above a selected cropping score threshold; and a third determination function configured to determine a difference between the determined respective feature vectors of said two further trajectory segments; and A fourth determination function is configured to determine, based on the determined difference, whether the two further trajectory segments relate to the same object or to different objects.
14. A method for enhancing tracking of an object in a scene captured in a video sequence, the method comprising: obtaining a trajectory related to an object of one or more objects in the scene captured in the video sequence, wherein the trajectory comprises crops of object instances of the object of the one or more objects, and wherein each crop has a crop score and a feature vector; determining a feature vector for the trajectory based on cropped feature vectors of the corresponding trajectory having a crop score above a crop score threshold selected for the scene; obtaining a further crop of an object instance of one of the one or more objects in the scene captured in the video sequence, wherein the crop has a crop score and feature vector selected for the scene; and On the condition that the cropping score of the further cropping is greater than the cropping score threshold selected for the scene: determining a difference between the determined feature vector of the trajectory and the feature vector of the further cropping; and determining whether the further cropping and the trajectory relate to the same object or to different objects based on the determined difference.
15. The method according to claim 14, wherein: The cropping score threshold selected for the scene is selected according to the method of claim 1.
Citation Information
Patent Citations
Method and equipment for tracking an object
CN111325089A
Method and system for determining similarity of tracking target
CN112037245A
Obtaining method and device of target tracking track and computer equipment
CN112614154A
Data processing method, electronic equipment and storage medium
CN114494358A
Track matching method and device, equipment and medium
CN114879695A
