Target tracking method, product, device, equipment and medium

By extracting and matching features of high-confidence targets in images, it solves the problems of discontinuous target tracking and high computing resources in the existing technology, and achieves high-accuracy and lightweight target tracking on embedded devices.

CN118587251APending Publication Date: 2024-09-03YANTAI RAYTRON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410821261.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing target tracking methods have a long time interval between the same target in the image, resulting in the inability to track normally, and the deep learning algorithm has high demands on the computing resources of embedded devices and cannot be deployed in real time.

Method used

By performing target detection on the current scene image, dividing high-confidence and low-confidence targets, and using the feature vector of the high-confidence target to match the retained tracking target in the previous scene image to determine the current tracking target, reduce the difficulty of model training and improve Tracking accuracy.

Benefits of technology

It achieves lightweight target tracking on embedded terminal devices, improves tracking accuracy, avoids target loss, and reduces platform computing power requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587251A
    Figure CN118587251A
Patent Text Reader

Abstract

The invention provides a target tracking method, a product, a device, equipment and a medium. The target tracking method comprises the following steps: acquiring a current scene image; performing target detection on the current scene image to obtain a target detection result; the target detection result comprises a target position and a target confidence coefficient; performing feature extraction on the high-confidence target of which the target confidence is greater than a set value to obtain a target feature vector of the high-confidence target; and matching the target feature vector of the high-confidence target and a low-confidence target of which the target confidence is smaller than a set value with a reserved tracking target in a previous scene image, and determining a current tracking target in the target detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image technology, and in particular to a target tracking method, a computer program product, a target tracking apparatus, a target tracking device, and a computer-readable storage medium. Background Art

[0002] Object tracking is a research hotspot in the field of images. Combined with deep learning algorithms, it can accurately express and locate objects in input images, and has important applications in many fields.

[0003] In actual scenarios, it usually takes a long time to capture the same target in an image. The long time interval will lead to non-overlapping areas between the same targets. The traditional target tracking method based on target detection and category recognition in the previous and next images to determine whether it is the same target can easily lead to continuous jumping between multiple tracking targets, resulting in the inability to track the same fixed target normally and the easy loss of the target.

[0004] Secondly, known end-to-end deep learning algorithms for target detection and recognition require a large amount of labeled sample-balanced image data in order to solve the detection and recognition of a large number of targets. They require large computing resources and high computing power, and cannot be deployed in real time on embedded devices such as sighting devices. Summary of the invention

[0005] In order to solve the existing technical problems, the present application provides a target tracking method, computer program product, target tracking device, target tracking equipment and computer-readable storage medium that are lighter and easier to deploy to various terminals and have higher target tracking accuracy.

[0006] In a first aspect, a target tracking method is provided, comprising:

[0007] Get the current scene image;

[0008] Performing target detection on the current scene image to obtain a target detection result; the target detection result includes a target position and a target confidence;

[0009] Performing feature extraction on a high-confidence target whose target confidence is greater than a set value to obtain a target feature vector of the high-confidence target;

[0010] The target feature vector of the high-confidence target and the low-confidence target whose target confidence is less than a set value are matched with the retained tracking target in the previous scene image to determine the current tracking target in the target detection result.

[0011] In a second aspect, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the target tracking method described in any embodiment of the present application.

[0012] In a third aspect, a target recognition device is provided, comprising: an image acquisition module for acquiring scene images in real time; a memory for storing computer programs; and a processor for executing the computer programs to implement the target tracking method described in any embodiment of the present application.

[0013] In a fourth aspect, a target tracking device is provided, comprising a rotating device for carrying the image acquisition module, wherein the image acquisition module comprises an infrared movement mounted on the rotating device, and is used to execute the target tracking method described in any embodiment of the present application to determine the currently tracked target.

[0014] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the target tracking method described in any embodiment of the present application is implemented.

[0015] In the target tracking method provided in the above embodiment, target detection is performed on the current scene image to obtain a target detection result, and the targets in the current scene image are divided into high-confidence targets and low-confidence targets according to the target confidence of each target in the target detection result. According to the target position in the target detection result, the high-confidence target in the current scene image is subjected to feature extraction to obtain a target feature vector. In this way, the high-confidence target can be matched with the retained tracking target in the previous scene image using the feature vector to screen and determine the current tracking target. In the method of first performing target detection and then performing feature extraction, the training of the deep learning model can focus more on the position of the target and the feature extraction capability of the target position, respectively, which is conducive to reducing the difficulty of model training, reducing the platform computing power requirements, and can be more easily deployed in various embedded terminal devices; first all targets are detected to distinguish between high-confidence targets and low-confidence targets, and different strategies are used to match high-confidence targets and low-confidence targets to screen and determine the current tracking target, which can ensure the comprehensiveness of target tracking, avoid target loss, and improve the accuracy of target tracking.

[0016] In the above embodiments, the computer program product, the target tracking apparatus, the target tracking device and the computer-readable storage medium belong to the same concept as the corresponding target tracking method embodiments, and thus have the same technical effects as the target tracking method embodiments, and will not be described in detail herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 4 is a flow chart of a target tracking method in one embodiment.

[0018] Figure 2 A schematic diagram of the architecture of a target extraction network in an example.

[0019] Figure 3 The figure is a flowchart of a target tracking method in an optional specific example.

[0020] Figure 4 Schematic diagram of the structure of a target tracking device in one embodiment.

[0021] Figure 5 The figure is a flowchart of a target tracking method in an optional specific example.

[0022] Figure 6 Schematic diagram of the structure of a target tracking device in one embodiment. DETAILED DESCRIPTION

[0023] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0024] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0025] In the following description, the expression "some embodiments" is involved, which describes a subset of all possible embodiments. It should be noted that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.

[0026] In the following description, the terms "first, second, third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first, second, third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0027] See also Figure 1 , a target tracking method provided in an embodiment of the present application, comprising the following steps:

[0028] S101, obtaining the current scene image.

[0029] The current scene image may refer to an image acquired in real time by the target tracking device for the current field of view during use, or may refer to an image acquired previously, or may refer to an image obtained from other terminals.

[0030] S103, performing target detection on the current scene image to obtain a target detection result; the target detection result includes a target position and a target confidence.

[0031] The target refers to the object of interest in the image detection in the current scene image. In the embodiment of the present application, the scene can be various life scenes, hunting scenes, etc., and the current scene image can be various life scenes, hunting scene images, and the target includes various objects of interest in the corresponding scene, such as animals, human bodies, etc.

[0032] Target detection on the current scene image may be performed by using various target detection models obtained after training based on deep learning models to detect whether there is a target in the current scene image, and outputting the detection result of whether there is a target, and if the target is detected in the current scene image, outputting the position of the target, and the corresponding confidence level of the target. As an optional example, when the target detection model detects that there is a target in the current scene image, it outputs the position coordinate information of the corresponding target in the current scene image, and the corresponding confidence level information of the target. However, it should be noted that performing target detection on the current scene image to obtain a target detection result is not limited to being completed by designing a traditional target detection algorithm model, and the present application does not impose any restrictions on this. When a target detection model obtained after training based on a deep learning model is used, since the target detection model can focus on determining whether it is a target and determining the target position, the target confidence corresponds to the confidence of determining whether each detection position in the image is a target. In this way, the target detection model is equivalent to a general target detection model. Compared with the known end-to-end deep learning algorithm for target detection and target type recognition, in order to solve the detection and target type recognition of a large number of targets, a large amount of labeled sample balanced image data is required for training, which requires large computing resources and high computing power, and thus cannot be deployed in real time to embedded devices such as aiming devices. The general target detection model can focus on the detection of whether there is a target and the location of the target, which can reduce the difficulty of training, realize the lightweight design of the model, and make it easier to deploy to various embedded terminal devices.

[0033] S105, performing feature extraction on a high-confidence target whose target confidence is greater than a set value to obtain a target feature vector of the high-confidence target.

[0034] The set value can be a value preset before the product leaves the factory, or a value that can be set or adjusted by the user through a human-computer interaction interface after the product leaves the factory. For example, the set value can be 0.5, and according to the target detection result of the current scene image, the target with a target confidence higher than 0.5 among the detected targets is determined as a high-confidence target.

[0035] The feature extraction of the high confidence target can be performed by extracting features of the position of the high confidence target in the current scene image according to the output result of the target detection model through the feature extraction model to obtain a target feature vector corresponding to the high confidence target. It can be understood that the target feature vector refers to feature extraction information of the imaging part of the high confidence target in the current scene image.

[0036] S107, matching the target feature vector of the high-confidence target and the low-confidence target whose target confidence is less than a set value with the retained tracking target in the previous scene image to determine the current tracking target in the target detection result.

[0037] Tracking target refers to the target to be tracked based on the detection and recognition of the target in the scene image. The same tracking target often appears in multiple scene images and needs to be tracked based on its position in the multiple scene images. In this way, the detection target appearing in each scene image may be a target to be abandoned based on the target detection result of the previous scene image, and there may also be some targets to be tracked next. For each current scene image, the target to be tracked next contained in the previous scene image is the retained tracking target, and the target to be tracked next contained in the current scene image itself is the current tracking target.

[0038] It should be noted that, for any two scene images, the subsequent scene image can be compared with the retained tracking target in the previous scene image to screen and determine the current tracking target, that is, the target feature vector of the high-confidence target and the low-confidence target in the detection target result are matched with the retained tracking target to screen and determine the current tracking target. The current tracking target in the current scene image is the retained tracking target in the previous scene image for the next scene image, and for the first scene image, all the detection targets contained therein are regarded as retained tracking targets. Taking the target tracking device in the process of executing the target tracking method provided in the embodiment of the present application, sequentially collecting multiple scene images: A0, A1, A2, A3 as an example, all the detection targets in A0 are regarded as retained tracking targets, and the current tracking target in A1 is screened and determined by comparing with the retained tracking target in A0. For A2, the current tracking target in A1 is the retained tracking target in the previous scene image; similarly, the current tracking target in A3 is screened and determined by comparing with the retained tracking target in A2, and so on.

[0039] In the target tracking method provided in the above embodiment, target detection is performed on the current scene image to obtain a target detection result, and the targets in the current scene image are divided into high-confidence targets and low-confidence targets according to the target confidence of each target in the target detection result. According to the target position in the target detection result, the high-confidence target in the current scene image is subjected to feature extraction to obtain a target feature vector. In this way, the high-confidence target can be matched with the retained tracking target in the previous scene image using the feature vector to screen and determine the current tracking target. In the manner of first performing target detection and then performing feature extraction, the training of the deep learning model for target detection and feature extraction can focus more on the position of the target and the feature extraction capability of the target position, respectively, which is conducive to reducing the difficulty of model training, reducing the platform computing power requirements, and can be more easily deployed in various embedded terminal devices; firstly, all targets are detected to distinguish between high-confidence targets and low-confidence targets, and different matching strategies are used to match high-confidence targets and low-confidence targets to screen and determine the current tracking target, which can ensure the accuracy of target locking and the comprehensiveness of target tracking, avoid target loss, and improve the accuracy of target tracking.

[0040] In some embodiments, step S105 includes:

[0041] Determine a target whose target confidence is greater than a set value as a high-confidence target, extract features of the high-confidence target through a target extraction network trained based on a deep learning model, and obtain a target feature vector of the high-confidence target;

[0042] Among them, the target extraction network includes multiple convolution branch networks connected in sequence to respectively extract features of the high-confidence target, and the multiple convolution branch networks respectively output corresponding target feature vectors.

[0043] The target extraction network includes multiple convolutional branch networks connected in sequence, which can form feature extractions of different depths. Each convolutional branch network includes at least one depthwise separable convolution module (depthwise separableconvolution), and each convolutional branch network can stack different numbers of convolutional layers, so that the target extraction network can capture receptive fields of different levels on different convolutional branch networks, and ensure the feature extraction and characterization capabilities of the target extraction network on the basis of a lightweight network. Optionally, the deep convolutional module can use a channel attention mechanism to limit the number of channels of the corresponding convolutional branch network. By performing attention mechanism operations on different channels, important features between different channels of different convolutional branch networks can be learned, and the purpose of lightweight network structure can also be achieved.

[0044] See also Figure 2, which is an optional architecture diagram of a target extraction network. The target extraction network includes three convolutional branch networks connected in sequence, each convolutional branch network includes a common convolutional layer, a pooling layer, and a depth-separable convolution module combined with two channel attention mechanisms. For the first convolutional branch network, the position image corresponding to the high-confidence target is scaled proportionally as input, and the first convolutional branch network performs feature extraction to obtain a feature vector of the first depth of the high-confidence target; the input of the first convolutional branch network is connected to the second convolutional branch network, and the second convolutional branch network further performs feature extraction to obtain a feature vector of the second depth of the high-confidence target; the input of the second convolutional branch network is connected to the third convolutional branch network, and the third convolutional branch network further performs feature extraction to obtain a feature vector of the third depth of the high-confidence target, and the combination of feature vectors of different depths obtains the target feature vector of the high-confidence target.

[0045] In the above embodiment, through the design of a target extraction network with convolution branch networks of different depths, the attention mechanism is combined with the depth-separable convolution module to extract features of the target at different depths, which has better feature extraction and differentiation capabilities for infrared targets, and is more lightweight and easier to deploy to embedded terminal devices.

[0046] In some embodiments, in step S105, extracting features of the high-confidence target by using a target extraction network trained based on a deep learning model to obtain a target feature vector of the high-confidence target includes:

[0047] After scaling the high-confidence target in proportion, the target extraction network trained based on the deep learning model is input to perform feature extraction on the high-confidence target to obtain a ReID target feature vector of the high-confidence target.

[0048] ReID (Re-identification) refers to the technology of using computer vision technology to determine whether a specific target exists in an image or video. The position image corresponding to the high-confidence target can be determined based on the position information of the target in the target detection result of the current scene image, such as the coordinates of the upper left point and the width and height information of the target. Scaling the position image corresponding to the high-confidence target means using the position information of the target in the target detection result to determine the imaging area of ​​the target in the current scene image, and scaling the imaging area of ​​the target to obtain a target position image with the same image size as the input of the target extraction network.

[0049] In the above embodiment, the targets detected in the current scene image are distinguished into high-confidence targets and low-confidence targets, and features are further extracted for the high-confidence targets through the target extraction network to obtain a ReID target feature vector corresponding to the high-confidence target, so that the ReID target feature vector corresponding to the high-confidence target can be used to match the retained tracking target in the previous scene image to screen and determine the current tracking target, thereby obtaining a more accurate target tracking result.

[0050] In some embodiments, step S107 includes:

[0051] Matching the target feature vector of the high-confidence target with the retained tracking target in the previous scene image, and performing intersection-and-union matching on the low-confidence target and the unmatched tracking target determined after matching the high-confidence target;

[0052] According to the matching results, the current tracking target based on the high confidence target and the current tracking target based on the low confidence target are obtained respectively, and the tracking target is deleted and the detection target is deleted.

[0053] For high-confidence targets, the matching tracking targets can be screened and determined by matching with the retained tracking targets in the previous scene image through the ReID feature vector. For low-confidence targets, the matching tracking targets can be screened and determined by performing intersection and union matching with the unsuccessful matching tracking targets determined after matching based on the high-confidence targets in the retained tracking targets in the previous scene image. Different matching strategies are used for high-confidence targets and low-confidence targets to determine the tracking status of the target. In this embodiment, the tracking status of the target includes at least: whether the target should be retained (current tracking target), deleted (delete detection target), and whether the retained tracking target in the previous scene image gives up continuing to track (delete tracking target).

[0054] In the above embodiment, all targets are first detected to distinguish between high-confidence targets and low-confidence targets, and different strategies are used to match high-confidence targets and low-confidence targets to screen and determine the current tracking target, which can ensure the comprehensiveness of target tracking, avoid target loss, and improve the accuracy of target tracking.

[0055] Optionally, the design of the target tracking process for matching high-confidence targets and low-confidence targets with different strategies includes dividing the entire target tracking process into four matching steps. Step S107 includes:

[0056] Performing feature vector matching of the target feature vector of the high-confidence target with the retained tracking target in the previous scene image to determine a first current tracking target, a first unmatched detection target, and a first unmatched tracking target;

[0057] Performing an intersection-and-combination match on the first unsuccessfully matched detection target and the first unsuccessfully matched tracking target to determine a second current tracking target, a second unsuccessfully matched detection target, and a second unsuccessfully matched tracking target;

[0058] Performing an intersection-and-union match on the low confidence target and the second unmatched tracking target to determine a third current tracking target, a third unmatched detection target, and a third unmatched tracking target;

[0059] The second unsuccessfully matched detection target and the third unsuccessfully matched tracking target are matched with feature vectors to determine a fourth current tracking target, and the detection target and the tracking target are deleted.

[0060] See also Figure 3 , taking the current scene image as an infrared image as an example, the target tracking process includes: S31, infrared image target detection; S32, judging whether the target is a high-confidence target or a low-confidence target according to the target confidence. The four matches in the target tracking process include:

[0061] First match: If it is a high-confidence target, execute S33, extract features of the high-confidence target to obtain the corresponding ReID feature vector; S34, perform ReID feature matching on the high-confidence target and the retained tracking target (undeleted tracking result) in the previous scene image; determine the different tracking states of each high-confidence target after the first match based on the matching results, including: S341, the successfully matched detection target is used as the first current tracking target, S342, the unmatched detection target is used as the first unmatched detection target, S343, the unmatched retained tracking target is used as the first unmatched tracking target.

[0062] Second matching: S35, performing intersection-and-combination matching on the first unmatched detection target and the first unmatched tracking target; determining different tracking states of each high-confidence target after the second matching according to the matching results, including: S351, the successfully matched detection target is used as the second current tracking target, S352, the unmatched detection target is used as the second unmatched detection target, S353, the unmatched retained tracking target is used as the second unmatched tracking target.

[0063] The third matching: S36, performing intersection-and-combination matching on the low-confidence target and the second unsuccessfully matched tracking target; determining different tracking states of each low-confidence target after the third matching according to the matching results, including: S361, using the successfully matched detection target as the third current tracking target, S362, using the unsuccessfully matched detection target as the third unsuccessfully matched detection target, and S363, using the unsuccessfully matched retained tracking target as the third unsuccessfully matched tracking target.

[0064] The fourth match: S37, perform ReID feature matching on the second unmatched detection target and the third unmatched tracking target; determine the different tracking states of each low-confidence target after the fourth match based on the matching results, including: S371, the successfully matched detection target is used as the fourth current tracking target, S372, the unmatched detection target is used as the fourth unmatched detection target, S373, the unmatched retained tracking target is used as the fourth unmatched tracking target.

[0065] According to the matching results after four matches, including: for the fourth unmatched tracking target, execute S38, delete, S39, for the fourth unmatched detection target, judge the size of the corresponding target confidence and the preset threshold C1; if it is less than the preset threshold C1, execute S38; if it is greater than the preset threshold C1, retain it as a newly added tracking target, that is, a part of the fourth current tracking target.

[0066] It can be understood that, for the current scene image, the target feature vector of the high-confidence target and the low-confidence target are matched with the retained tracking target in the previous scene image, and the current tracking target in the target detection result is finally determined to include the detection targets that have been successfully matched after each matching. The parameters of all successfully matched detection targets are updated as the retained tracking target for the next scene image.

[0067] Optionally, the target tracking method further includes: updating the trajectory of the currently tracked target.

[0068] In the above embodiment, based on four matching tracking, the same target can be effectively recognized regardless of whether there is an overlapping area between consecutive time interval images, and the parameters of the successful matching results are updated, such as dynamically updating the position of the tracked target, to achieve the update of the target trajectory for target tracking.

[0069] In some embodiments, step S101 includes:

[0070] Based on obtaining a panoramic real-time scene image during the rotation process; wherein two adjacent real-time scene images include a partial overlapping area; or, there is no overlapping area between two adjacent real-time scene images.

[0071] Among them, the target tracking method is particularly suitable for the infrared image acquisition and intelligent analysis of 360-degree panoramic scanning in the panorama and ball camera linkage products. The current scene image can refer to the real-time scene image of the panorama obtained during the rotation process. The design of the target tracking process using four matchings introduces both the feature vector matching and the intersection-and-union matching strategies for high-confidence targets, and the intersection-and-union matching strategy is mainly used for low-confidence targets. In this way, for the scene image obtained by the panoramic scanning, regardless of whether there is an overlapping area between two adjacent real-time scene images, the locked and tracked target can be determined more reliably.

[0072] On the other hand, the present application also provides a target tracking device, see Figure 4 , is an optional hardware structure diagram of a target tracking device, the target tracking device includes a processor 211, and a memory 212 and an image acquisition module 213 connected to the processor 211, the image acquisition module 213 is used to acquire scene images in real time, and the memory 212 stores a computer program for implementing the target tracking method provided by any embodiment of the present application, so that when the corresponding computer program is executed by the processor, the target tracking method provided by any embodiment of the present application is implemented. The target tracking device loaded with the corresponding computer program has the same technical effect as the corresponding target tracking method embodiment, and in order to avoid repetition, it will not be repeated here.

[0073] Optionally, an application example of the target tracking device may refer to an infrared thermal imaging device. In this case, the target tracking device further includes a display module, and the display module is used to display a scene image, highlight the tracked target, update the tracking trajectory of the target, etc.

[0074] Optionally, the application example of the target tracking device can also refer to a panoramic and ball camera linkage product. On the other hand, the present application also provides a target tracking device, which includes: a rotating device for carrying the image acquisition module, the image acquisition module includes an infrared movement installed on the rotating device, and the rotating device is used to execute the target tracking method described in any embodiment of the present application to determine the current tracking target. In an optional example, the rotating device includes a processor, a memory connected to the processor, and an image acquisition module.

[0075] Optionally, the target tracking device also includes a ball camera for tracking the target based on the current tracking target. In the panoramic and ball camera linkage product, the top infrared movement is matched with a rotating device to perform a 360-degree panoramic scan, as well as infrared image acquisition and intelligent analysis, such as intelligent analysis to determine the current tracking target; the bottom ball camera device is based on the intelligent analysis feedback of the top panoramic view, such as tracking the determined current tracking target.

[0076] In order to have a more comprehensive understanding of the target tracking method provided in the embodiment of the present application, take the target tracking method applied to the panoramic and ball camera linkage product as an example, please refer to Figure 5 , target tracking methods, including:

[0077] S11, at time t1, the panoramic scan completes the acquisition of infrared images and detects targets in the infrared images.

[0078] S12, according to the target confidence of target detection, the target is divided into high-confidence targets and low-confidence targets, and the ReID feature vector of the high-confidence target is extracted based on the target extraction network trained by the deep learning model; the tracker is initialized, and the tracking results that have not been deleted at the previous time t0 are matched four times with the target detection results at the current time t1.

[0079] The four matches can be combined again. Figure 3, where the first match uses all undeleted tracking results to match the ReID feature vectors with high-confidence targets. According to the different detection and tracking categories and the targets whose Euclidean distance exceeds the threshold, the match is considered to have failed. The first match will get three matching results: the successfully matched tracking frame and detection frame, and the target information is updated for the status of the corresponding detected targets; the unsuccessfully matched detection targets are used for the second match; the unsuccessfully matched tracking results, if they are in the tracking state, are used for the next match. The second match is to perform intersection-and-union matching on the unsuccessfully matched detection targets and unsuccessfully matched tracking results in the first match to supplement the first match. The matches whose intersection-and-union ratios meet certain conditions are considered feasible matching results. Similarly, the second match will also get three matching results: the successfully matched tracking frame and detection frame, which are the same as the first matching operation; the unsuccessfully matched detection frame is considered a new detection target; the unsuccessfully matched tracking frame, if it is in the tracking state, is considered as the corresponding tracking result of the low-confidence target. In the third match, the low confidence target is matched with the unsuccessful tracking result in the second match by intersection and union ratio. The match that meets certain conditions is considered a successful match. The third match will also get three matching results: successfully matched detection frame and tracking frame, the same as the previous two matching operations; unsuccessfully matched detection frame, considered as a false detection, directly discarded; unsuccessfully matched tracking frame, if in tracking state, is considered as the first appearance of the tracking target. The fourth match mainly deals with the newly established tracking target. The second unsuccessful matching detection result and the third unsuccessful matching tracking result are matched by ReID feature vector. The fourth match will still get three matching results: successfully matched detection frame and tracking frame, the same as the previous three matching operations; unsuccessfully matched detection frame, retain the target with confidence score greater than C1 and set it to tracking state; unsuccessfully matched tracking frame is considered as the tracking target lost and is directly deleted.

[0080] S13, updating the parameters of the successful matching result, updating the trajectory of the top panorama, and linking the bottom ball camera for tracking.

[0081] The target tracking method provided in the embodiment of the present application has at least the following characteristics:

[0082] First, a lightweight ReID feature extraction network is designed to effectively extract infrared target features. Feature information of targets at different depths is added to multi-target tracking to characterize the feature matching status between targets, which can be applied in real time in embedded terminals.

[0083] Second, the traditional multi-target tracking method is improved, and a new multi-target tracking process is designed according to the product characteristics. Combined with the designed lightweight ReID network, the same target can be effectively matched and tracked between consecutive time interval images regardless of whether there are overlapping areas.

[0084] Third, it can accurately match image targets with long intervals in the top panoramic scan, maintain stable tracking of different targets, and ensure stable linkage effects of the associated bottom ball camera.

[0085] On the other hand, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the target tracking method described in any embodiment of the present application.

[0086] Among them, in the computer program product, an optional implementation form of the program module architecture of the computer program that implements each step of the target identification method can be a target tracking device.

[0087] See also Figure 6 , the target tracking device includes: an acquisition module 61, used to acquire the current scene image. A target detection module 62, used to perform target detection on the current scene image to obtain a target detection result; the target detection result includes a target position and a target confidence. A feature extraction module 63, used to perform feature extraction on a high-confidence target whose target confidence is greater than a set value, to obtain a target feature vector of the high-confidence target. A tracking determination module 64, used to match the target feature vector of the high-confidence target and the low-confidence target whose target confidence is less than a set value with the retained tracking target in the previous scene image, and determine the current tracking target in the target detection result.

[0088] Optionally, the feature extraction module 63 is also used to determine a target whose target confidence is greater than a set value as a high-confidence target, and to perform feature extraction on the high-confidence target through a target extraction network trained based on a deep learning model to obtain a target feature vector of the high-confidence target; wherein the target extraction network includes a plurality of convolution branch networks connected in sequence to perform feature extraction on the high-confidence target respectively, and the plurality of convolution branch networks respectively output corresponding target feature vectors.

[0089] Optionally, the feature extraction module 63 is also used to scale the high-confidence target proportionally, input the target extraction network trained based on the deep learning model to extract features of the high-confidence target, and obtain the ReID target feature vector of the high-confidence target.

[0090] Optionally, the tracking determination module 64 is also used to match the target feature vector of the high-confidence target with the retained tracking target in the previous scene image, and to perform intersection-and-union matching on the low-confidence target with the unsuccessfully matched tracking target determined after matching the high-confidence target; and to obtain the current tracking target based on the high-confidence target and the current tracking target based on the low-confidence target, delete the tracking target, and delete the detection target based on the matching results.

[0091] Optionally, the tracking determination module 64 is also used to perform feature vector matching on the target feature vector of the high-confidence target with the retained tracking target in the previous scene image to determine the first current tracking target, the first unmatched detection target and the first unmatched tracking target; perform intersection-and-union matching on the first unmatched detection target and the first unmatched tracking target to determine the second current tracking target, the second unmatched detection target and the second unmatched tracking target; perform intersection-and-union matching on the low-confidence target and the second unmatched tracking target to determine the third current tracking target, the third unmatched detection target and the third unmatched tracking target; perform feature vector matching on the second unmatched detection target and the third unmatched tracking target to determine the fourth current tracking target, delete the detection target and delete the tracking target.

[0092] Optionally, the acquisition module 61 is specifically used to obtain a panoramic real-time scene image based on the rotation process; wherein two adjacent real-time scene images include a partial overlapping area; or, there is no overlapping area between two adjacent real-time scene images.

[0093] Optionally, the tracking determination module 64 is further configured to update the trajectory of the current tracking target.

[0094] It should be noted that: the target tracking device provided in the above embodiment only uses the division of the above program modules as an example to illustrate the process of executing target tracking. However, in actual applications, the above processing flow can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the target tracking device provided in the above embodiment and the target tracking method embodiment belong to the same concept. The specific implementation process is detailed in the corresponding method embodiment, which will not be repeated here.

[0095] On the other hand, the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the process of implementing the above-mentioned target recognition method embodiments can be achieved, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium, such as a read-only memory (Read-Only Memor, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc.

[0096] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, infrared thermal imager or network equipment, etc.) to execute the methods described in each embodiment of the present invention.

[0098] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A target tracking method, characterized in that: include: Get the current scene image; Performing target detection on the current scene image to obtain a target detection result; The target detection result includes the target position and the target confidence; Performing feature extraction on a high-confidence target whose target confidence is greater than a set value to obtain a target feature vector of the high-confidence target; The target feature vector of the high-confidence target and the low-confidence target whose target confidence is less than a set value are matched with the retained tracking target in the previous scene image to determine the current tracking target in the target detection result.

2. The target tracking method according to claim 1, characterized in that: The step of extracting features of a high-confidence target whose target confidence is greater than a set value to obtain a target feature vector of the high-confidence target includes: Determine a target whose target confidence is greater than a set value as a high-confidence target, extract features of the high-confidence target through a target extraction network trained based on a deep learning model, and obtain a target feature vector of the high-confidence target; Among them, the target extraction network includes multiple convolution branch networks connected in sequence to respectively extract features of the high-confidence target, and the multiple convolution branch networks respectively output corresponding target feature vectors.

3. The target tracking method according to claim 2, characterized in that: The extracting features of the high-confidence target by using the target extraction network trained based on the deep learning model to obtain the target feature vector of the high-confidence target includes: After scaling the high-confidence target in proportion, the target extraction network trained based on the deep learning model is input to perform feature extraction on the high-confidence target to obtain a ReID target feature vector of the high-confidence target.

4. The target tracking method according to claim 1, characterized in that: The step of matching the target feature vector of the high-confidence target and the low-confidence target whose target confidence is less than a set value with the retained tracking target in the previous scene image to determine the current tracking target in the target detection result includes: Matching the target feature vector of the high-confidence target with the retained tracking target in the previous scene image, and performing intersection-and-union matching on the low-confidence target and the unmatched tracking target determined after matching the high-confidence target; According to the matching results, the current tracking target based on the high confidence target and the current tracking target based on the low confidence target are obtained respectively, and the tracking target is deleted and the detection target is deleted.

5. The target tracking method according to claim 4, characterized in that: The target feature vector of the high-confidence target is matched with the retained tracking target in the previous scene image, and the low-confidence target is matched with the unmatched tracking target determined after matching the high-confidence target by intersection and union ratio; According to the matching results, the current tracking target based on the high confidence target and the current tracking target based on the low confidence target are obtained, the tracking target is deleted, and the detection target is deleted, including: Performing feature vector matching of the target feature vector of the high-confidence target with the retained tracking target in the previous scene image to determine a first current tracking target, a first unmatched detection target, and a first unmatched tracking target; Performing an intersection-and-combination match on the first unsuccessfully matched detection target and the first unsuccessfully matched tracking target to determine a second current tracking target, a second unsuccessfully matched detection target, and a second unsuccessfully matched tracking target; Performing an intersection-and-union match on the low confidence target and the second unmatched tracking target to determine a third current tracking target, a third unmatched detection target, and a third unmatched tracking target; The second unsuccessfully matched detection target and the third unsuccessfully matched tracking target are matched with feature vectors to determine a fourth current tracking target, and the detection target and the tracking target are deleted.

6. The target tracking method according to any one of claims 1 to 5, characterized in that: The obtaining of the current scene image comprises: Based on obtaining a panoramic real-time scene image during the rotation process; wherein two adjacent real-time scene images include a partial overlapping area; or, there is no overlapping area between two adjacent real-time scene images.

7. The target tracking method according to any one of claims 1 to 5, characterized in that: Also includes: The trajectory of the currently tracked target is updated.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the target tracking method according to any one of claims 1 to 7 is implemented.

9. A target tracking device, characterized in that: include: An image acquisition module, used for acquiring scene images in real time; Memory, used to store computer programs; A processor, configured to execute the computer program to implement the target tracking method according to any one of claims 1 to 7.

10. A target tracking device, characterized in that: include: A rotating device for carrying the image acquisition module, wherein the image acquisition module comprises an infrared core mounted on the rotating device and is used to execute the target tracking method as described in any one of claims 1 to 7 to determine the currently tracked target.

11. The target tracking device according to claim 10, characterized in that: Also includes: The ball camera is used to track the target based on the current tracking target.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the target tracking method according to any one of claims 1 to 7 is implemented.