Update method and device of target object tracker, storage medium and electronic device

By updating the parameters of the tracker in the target tracking technology and using the threshold adjustment of tracking confidence and interference confidence, the error accumulation and interference effects caused by the tracker not refreshing for a long time are solved, and the tracking quality and trajectory of the target object trajectory are improved. Distinguishing ability.

CN112150505BActive Publication Date: 2024-09-06ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010955180.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-11
Publication Date
2024-09-06
Estimated Expiration
2040-09-11

AI Technical Summary

Technical Problem

In existing target tracking technology, the error accumulation problem caused by the tracker not refreshing for a long time results in low tracking quality of target object tracking trajectories and is easily affected by interference objects, resulting in trajectory ID drift and difficulty in distinguishing targets and similar interference objects.

Method used

By obtaining the tracking confidence of the target tracker in the t-1th frame image in the target video and the interference confidence between the detection frame in the t-th frame image and the previous frame detection frame, the parameters of the target tracker are updated. When the confidence is less than or equal to When predetermining the threshold, adjust the tracking confidence to reduce error accumulation and interference effects.

Benefits of technology

It improves the tracking quality of target object tracking trajectories, reduces trajectory ID drift caused by interference objects, enhances the tracker's ability to distinguish targets and interference objects, and improves trajectory attenuation and interference effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112150505B
    Figure CN112150505B
Patent Text Reader

Abstract

The present invention discloses a method and device for updating a target object tracker, a storage medium and an electronic device. The method comprises: obtaining a first tracking confidence output by a target tracker for tracking a first target object in the t-1 frame image of a target video; determining a second tracking confidence for tracking the first target object in the t-1 frame image according to the first tracking confidence and a third tracking confidence, wherein the third tracking confidence is used to represent the confidence of interference between a second detection frame of the first target object in the t-1 frame image and a first detection frame of the first target object in the t-1 frame image; updating the parameters of the target tracker when the second tracking confidence is less than or equal to a first predetermined threshold value, thereby achieving the goal of updating the target tracker through the tracking confidence score, thereby solving the technical problem of low tracking quality of the target object tracking trajectory caused by the error accumulation problem caused by the tracker not being refreshed for a long time in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method and device for updating a target object tracker, a storage medium and an electronic device. Background Art

[0002] Multi-object tracking (MOT) technology belongs to the field of computer vision. It is widely used in pedestrian behavior analysis, vehicle unmanned driving, and robot navigation and positioning.

[0003] Target tracking mainly realizes the recognition of all relevant category targets in the image frame, and associates their positions in the video sequence, determines their target IDs, and obtains the target trajectory.

[0004] The track quality is mainly reflected in two aspects: track quality attenuation and interference. Track quality attenuation is mainly due to the error accumulation caused by long-term tracking. Interference mainly refers to the tracker being easily affected by similar targets (interference) around it, causing track ID drift, and the tracker cannot distinguish between the target and similar interference. The track quality of the target track reflects the accuracy of the target track. Therefore, obtaining high-quality target tracks is the focus of people's attention.

[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0006] The embodiments of the present invention provide a method and device for updating a target object tracker, a storage medium, and an electronic device, so as to at least solve the technical problem in the related art that error accumulation is caused by the tracker not being refreshed for a long time, resulting in low tracking quality of the target object tracking trajectory.

[0007] According to one aspect of an embodiment of the present invention, a method for updating a target object tracker is provided, comprising: obtaining a first tracking confidence output by a target tracker for tracking a first target object in a t-1th frame image in a target video; determining a second tracking confidence for tracking the first target object in a t-1th frame image based on the first tracking confidence and a third tracking confidence, wherein the third tracking confidence is used to represent the confidence that a second detection box of the first target object in the t-1th frame image interferes with a first detection box of the first target object in the t-1th frame image; and updating parameters of the target tracker when the second tracking confidence is less than or equal to a first predetermined threshold.

[0008] According to another aspect of an embodiment of the present invention, there is also provided an updating device for a target object tracker, comprising: a first acquisition unit, used to acquire a first tracking confidence output by a target tracker for tracking a first target object in a t-1th frame image in a target video; a first determination unit, used to determine a second tracking confidence for tracking the first target object in a t-1th frame image based on the first tracking confidence and a third tracking confidence, wherein the third tracking confidence is used to represent the confidence that a second detection box of the first target object in the t-1th frame image interferes with a first detection box of the first target object in the t-1th frame image; and an updating unit, used to update the parameters of the target tracker when the second tracking confidence is less than or equal to a first predetermined threshold.

[0009] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned target object tracker update method when running.

[0010] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the target object tracker update method through the computer program.

[0011] In an embodiment of the present invention, a first tracking confidence output by a target tracker for tracking a first target object in a t-1th frame image in a target video is obtained; a second tracking confidence for tracking the first target object in a t-1th frame image is determined according to the first tracking confidence and the third tracking confidence, wherein the third tracking confidence is used to represent the confidence of interference between a second detection frame of the first target object in the t-1th frame image and a first detection frame of the first target object in the t-1th frame image; when the second tracking confidence is less than or equal to a first predetermined threshold, the parameters of the target tracker are updated, so that the target tracker is updated by the tracking confidence score taking into account the influence of interference objects, thereby solving the technical problem of low tracking quality of the target object tracking trajectory caused by the error accumulation problem caused by the tracker not being refreshed for a long time in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0013] Figure 1 is a schematic diagram of an application environment of an optional target object tracker update method according to an embodiment of the present invention;

[0014] Figure 2 is a flow chart of an optional method for updating a target object tracker according to an embodiment of the present invention;

[0015] Figure 3 is a schematic structural diagram of an optional target object tracker update device according to an embodiment of the present invention;

[0016] Figure 4 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0018] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0019] According to one aspect of an embodiment of the present invention, a method for updating a target object tracker is provided. Optionally, as an optional implementation, the method for updating the target object tracker can be but is not limited to being applied to: Figure 1 The hardware environment shown may include but is not limited to a terminal device 102, a network 110 and a server 112. The terminal device 102 is used to display a target video.

[0020] The above method can be used in the server 112, and the specific process is as follows: the server 112 obtains the first tracking confidence output by the target tracker in the t-1 frame image of the target video when tracking the first target object; determines the second tracking confidence for tracking the first target object in the t frame image according to the first tracking confidence and the third tracking confidence, wherein the third tracking confidence is used to represent the confidence of interference between the second detection box of the first target object in the t frame image and the first detection box of the first target object in the t-1 frame image; when the second tracking confidence is less than or equal to the first predetermined threshold, the parameters of the target tracker are updated, so as to take into account the influence of the interference object and update the target tracker through the tracking confidence score, thereby solving the technical problem of low tracking quality of the target object tracking trajectory caused by the error accumulation problem caused by the tracker not being refreshed for a long time in the related technology.

[0021] The above method may also include but is not limited to being applied to the terminal device 102 , and the interaction between the terminal device 102 and the server 112 .

[0022] Optionally, in this embodiment, the update method of the target object tracker can be applied to the server 112, but is not limited to, to assist the terminal device 102 in tracking the target object in the target video. The application client can be, but is not limited to, running in the terminal device 102, and the terminal device 102 can be, but is not limited to, a mobile phone, a tablet computer, a laptop computer, a PC, and other terminal devices that support running the application client. The server 112 and the terminal device 102 can, but are not limited to, realize data interaction through a network, and the network can include, but is not limited to, a wireless network or a wired network. The wireless network includes: Bluetooth, WIFI, and other networks that realize wireless communication. The wired network can include, but is not limited to, a wide area network, a metropolitan area network, and a local area network. The above is only an example, and no limitation is made to this in this embodiment.

[0023] Optionally, as an optional implementation, as Figure 2 As shown, the updating method of the target object tracker includes:

[0024] Step S202: Obtain a first tracking confidence output by a target tracker in a t-1th frame image of a target video when tracking a first target object.

[0025] Step S204, determining a second tracking confidence for tracking the first target object in the t-th frame image based on the first tracking confidence and the third tracking confidence, wherein the third tracking confidence is used to represent the confidence of interference between the second detection box of the first target object in the t-th frame image and the first detection box of the first target object in the t-1-th frame image.

[0026] Step S204: when the second tracking confidence is less than or equal to the first predetermined threshold, update the parameters of the target tracker.

[0027] Optionally, in this embodiment, the above scheme may include but is not limited to a single target tracking scheme, a multi-target tracking scheme, and a combination of single target tracking and multi-target tracking.

[0028] Among them, in this embodiment, in order to solve the problem of error accumulation caused by long-term non-refresh of the tracker and the target drift caused by interference, and taking into account the trajectory attenuation and the influence of interference, an overall confidence scoring mechanism is proposed to provide a more rigorous trajectory confidence score.

[0029] Optionally, in this embodiment, determining a second tracking confidence for tracking the first target object in the t-th frame image according to the first tracking confidence and the third tracking confidence includes:

[0030] An average of the first tracking confidence and the second tracking confidence is determined as the second tracking confidence.

[0031] Through the embodiments provided by the present application, a first tracking confidence output by a target tracker for tracking a first target object in the t-1th frame image of a target video is obtained; a second tracking confidence for tracking the first target object in the tth frame image is determined based on the first tracking confidence and the third tracking confidence, wherein the third tracking confidence is used to represent the confidence of interference between a second detection frame of the first target object in the tth frame image and a first detection frame of the first target object in the t-1th frame image; when the second tracking confidence is less than or equal to a first predetermined threshold, the parameters of the target tracker are updated, so that the target tracker is updated by the tracking confidence score taking into account the influence of interference objects, thereby solving the technical problem of low tracking quality of the target object tracking trajectory caused by the error accumulation problem caused by the tracker not being refreshed for a long time in the related art.

[0032] Optionally, in this embodiment, when the second tracking confidence is less than or equal to the first predetermined threshold, after updating the target tracker, the method may further include:

[0033] When the fourth tracking confidence output by the updated target tracker when tracking the first target object in the t+1th frame image in the target video is greater than or equal to the second preset threshold, the position information of the first target object is matched to the target trajectory of the first target object.

[0034] Optionally, in this embodiment, before determining the second tracking confidence for tracking the first target object in the t-th frame image according to the first tracking confidence and the third tracking confidence, the method may further include:

[0035] Determine the target tracking appearance similarity according to the appearance features of the first detection frame and the appearance features of the second detection frame;

[0036] Determine a tracking area overlap ratio according to the area region of the first detection frame and the area region of the second detection frame;

[0037] The third tracking confidence is determined according to the first tracking confidence, the target tracking appearance similarity, and the tracking area overlap ratio.

[0038] Wherein, determining the tracking area overlap ratio according to the area region of the first detection frame and the area region of the second detection frame includes:

[0039] Obtain a first area region where the area region of the first detection frame and the area region of the second detection frame intersect;

[0040] Obtain a second area region that is a combination of the area region of the first detection frame and the area region of the second detection frame;

[0041] The ratio of the first area region to the second area region is determined as the tracking area overlap ratio.

[0042] Wherein, determining the third tracking confidence according to the first tracking confidence, the target tracking appearance similarity, and the tracking area overlap ratio includes:

[0043] The third tracking confidence is determined by the following formula:

[0044] Score3 = β·IOU(T Track ,D Det )·Siam Appearance Score 1

[0045] Among them, Score1 is the first tracking confidence, β is a hyperparameter, Siam Appearance is the target tracking appearance similarity, T Track and D Det represents the first detection box and the second detection box, IOU(T Track ,D Det ) is the tracking area overlap ratio.

[0046] In this embodiment, the original tracking confidence output by the single target tracker is Score SOT (relative to the first tracking confidence), when the overlap ratio of the track (corresponding to the track of the first detection frame of the first target object) and the matching detection frame (relative to the second detection frame), that is, the smaller the IOU, the greater the possibility of drift of the target tracked by the tracker, and the appearance feature similarity is added to limit it. Therefore, the tracking confidence of the perceived interference object (relative to the third tracking confidence) is:

[0047] Scoredistractor =β·IOU(T Track ,D Det )·Siam Appearance Score KALorSOT (3)

[0048] Among them, Score KALorSOT Represents Score SOT , β is a hyperparameter, Siam Appearance is the appearance similarity between the trajectory tracking frame and the detection frame, T Track and D Det Represents the trajectory tracking box and the matched detection box.

[0049] In summary, considering the impact of trajectory attenuation and interference, for target X, the overall tracking quality confidence is:

[0050]

[0051] Among them, Score X,t To track the quality score based on the previous frame X,t-1 The tracking quality of the current frame is obtained, and λ is a hyperparameter.

[0052] When the score is less than a certain threshold (relative to a first predetermined threshold), the tracker is updated to offset the accumulated error.

[0053] Optionally, in this embodiment, the method further includes:

[0054] When there is a third detection frame of the first target object and a fourth detection frame of the second target object in the t-th frame image, and the overlapping area between the third detection frame and the fourth detection frame is greater than or equal to a third preset threshold, acquiring the appearance features of the third detection frame and the appearance features of the fourth detection frame;

[0055] Determine the similarity of the first tracking appearance feature according to the appearance feature of the first detection frame and the appearance feature of the third detection frame;

[0056] Determine the similarity of the second tracking appearance feature according to the appearance feature of the first detection frame and the appearance feature of the fourth detection frame respectively;

[0057] The largest value between the first tracking appearance feature similarity and the second tracking appearance feature similarity is determined as the target tracking appearance similarity.

[0058] In this embodiment, when there is a large overlapping area between two targets (the third detection frame of the first target object and the fourth detection frame of the second target object), ID switching is likely to occur, which can be expressed as:

[0059] Λ=Yt ,whereIOU(X t ,Y t )>γ

[0060] Among them, Xt represents the tracking result, and Yt represents the similar objects around the tracking result.

[0061] In addition to paying attention to the target object during tracking, other objects that overlap with the target object should also be paid attention to. When the tracking confidence is less than a certain threshold, it is considered that the tracking result is biased and target drift may occur. Therefore, objects with an IOU greater than γ with the tracking result are selected as candidate targets, and these candidate targets are stored together with the tracking results in the candidate set. The appearance feature similarity between the candidate set and the tracking result is solved, and the candidate set with the highest feature similarity is selected as the tracking target. This method alleviates the problem of frequent ID switching caused by dense targets in multi-target tracking to a certain extent.

[0062] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0063] According to another aspect of the embodiments of the present invention, a target object tracker updating device for implementing the target object tracker updating method is also provided. Figure 3 As shown, the updating device of the target object tracker includes: a first acquiring unit 31 , a first determining unit 33 and an updating unit 35 .

[0064] The first acquisition unit 31 is used to acquire a first tracking confidence output by a target tracker in a t-1th frame image of a target video when tracking a first target object.

[0065] The first determination unit 33 is used to determine a second tracking confidence for tracking the first target object in the t-th frame image based on the first tracking confidence and the third tracking confidence, wherein the third tracking confidence is used to represent the confidence of interference between the second detection box of the first target object in the t-th frame image and the first detection box of the first target object in the t-1-th frame image.

[0066] The updating unit 35 is configured to update the parameters of the target tracker when the second tracking confidence is less than or equal to the first predetermined threshold.

[0067] Through the embodiment provided by the present application, the first acquisition unit 31 acquires the first tracking confidence output by the target tracker in the t-1 frame image of the target video when tracking the first target object; the first determination unit 33 determines the second tracking confidence of tracking the first target object in the t frame image according to the first tracking confidence and the third tracking confidence, wherein the third tracking confidence is used to represent the confidence of the interference between the second detection frame of the first target object in the t frame image and the first detection frame of the first target object in the t-1 frame image; the updating unit 35 updates the parameters of the target tracker when the second tracking confidence is less than or equal to the first predetermined threshold. The target tracker is updated by the tracking confidence score taking into account the influence of the interference object, thereby solving the technical problem of low tracking quality of the target object tracking trajectory caused by the error accumulation problem caused by the long-term non-refresh of the tracker in the related technology.

[0068] Optionally, the first determining unit 33 may include:

[0069] The first determining module is used to determine an average value of the first tracking confidence and the second tracking confidence as the second tracking confidence.

[0070] Optionally, the above device further comprises:

[0071] A matching unit is used to match the position information of the first target object to the target trajectory of the first target object when the fourth tracking confidence output by the updated target tracker for tracking the first target object in the t+1th frame image in the target video is greater than or equal to the second preset threshold after updating the target tracker when the second tracking confidence is less than or equal to the first preset threshold.

[0072] Optionally, the above device further comprises:

[0073] A second determining unit is used to determine the target tracking appearance similarity according to the appearance features of the first detection frame and the appearance features of the second detection frame before determining the second tracking confidence of tracking the first target object in the t-th frame image according to the first tracking confidence and the third tracking confidence;

[0074] A third determining unit, configured to determine a tracking area overlap ratio according to an area region of the first detection frame and an area region of the second detection frame;

[0075] The fourth determining unit is used to determine the third tracking confidence according to the first tracking confidence, the target tracking appearance similarity and the tracking area overlap ratio.

[0076] The third determining unit may include:

[0077] A first acquisition module, used to acquire a first area region where the area region of the first detection frame and the area region of the second detection frame intersect;

[0078] A second acquisition module is used to acquire a second area region which is a combination of the area region of the first detection frame and the area region of the second detection frame;

[0079] The second determination module is used to determine the ratio of the first area region to the second area region as the tracking area overlap ratio.

[0080] Wherein, the fourth determining unit includes:

[0081] The third determination module is used to determine the third tracking confidence by the following formula:

[0082] Score3 = β·IOU(T Track ,D Det )·Siam Appearance Score 1

[0083] Among them, Score1 is the first tracking confidence, β is a hyperparameter, SiamAppearance is the target tracking appearance similarity, TTrack and DDet represent the first detection box and the second detection box, IOU (T Track ,D Det ) is the tracking area overlap ratio.

[0084] Optionally, the above device may further include:

[0085] a second acquisition unit, configured to acquire the appearance features of the third detection frame and the appearance features of the fourth detection frame when there are a third detection frame of the first target object and a fourth detection frame of the second target object in the t-th frame image, and an overlapping area between the third detection frame and the fourth detection frame is greater than or equal to a third preset threshold;

[0086] A fifth determining unit, configured to determine a first tracking appearance feature similarity according to the appearance features of the first detection frame and the appearance features of the third detection frame;

[0087] A sixth determining unit, configured to determine the similarity of the second tracking appearance feature according to the appearance feature of the first detection frame and the appearance feature of the fourth detection frame;

[0088] The seventh determining unit is used to determine the largest value between the first tracking appearance feature similarity and the second tracking appearance feature similarity as the target tracking appearance similarity.

[0089] According to another aspect of the embodiments of the present invention, an electronic device for implementing the above-mentioned target object tracker update method is also provided. Figure 4As shown, the electronic device includes a memory 402 and a processor 404. The memory 402 stores a computer program, and the processor 404 is configured to execute the steps in any of the above method embodiments through the computer program.

[0090] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0091] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0092] S1, obtaining a first tracking confidence output by a target tracker tracking a first target object in a t-1th frame image in a target video;

[0093] S2, determining a second tracking confidence for tracking the first target object in the t-th frame image according to the first tracking confidence and the third tracking confidence, wherein the third tracking confidence is used to represent the confidence of interference between the second detection frame of the first target object in the t-th frame image and the first detection frame of the first target object in the t-1-th frame image;

[0094] S3: When the second tracking confidence is less than or equal to the first predetermined threshold, update the parameters of the target tracker.

[0095] Alternatively, a person skilled in the art may understand that: Figure 4 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other terminal devices. Figure 4 The structure of the electronic device is not limited. Figure 4 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 4 Different configurations shown.

[0096] Among them, the memory 402 can be used to store software programs and modules, such as the program instructions / modules corresponding to the update method and device of the target object tracker in the embodiment of the present invention. The processor 404 executes various functional applications and data processing by running the software programs and modules stored in the memory 402, that is, realizing the above-mentioned update method of the target object tracker. The memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 402 may further include a memory remotely arranged relative to the processor 404, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. Among them, the memory 402 may be specifically used, but not limited to, to store information such as a first tracking confidence, a second tracking confidence, and a third tracking confidence. As an example, such as Figure 4 As shown, the memory 402 may include, but is not limited to, the first acquisition unit 31, the first determination unit 33, and the update unit 35 in the update device of the target object tracker. In addition, it may also include, but is not limited to, other module units in the update device of the target object tracker, which will not be repeated in this example.

[0097] Optionally, the transmission device 406 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 406 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 406 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0098] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0099] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0100] S1, obtaining a first tracking confidence output by a target tracker tracking a first target object in a t-1th frame image in a target video;

[0101] S2, determining a second tracking confidence for tracking the first target object in the t-th frame image according to the first tracking confidence and the third tracking confidence, wherein the third tracking confidence is used to represent the confidence of interference between the second detection frame of the first target object in the t-th frame image and the first detection frame of the first target object in the t-1-th frame image;

[0102] S3: When the second tracking confidence is less than or equal to the first predetermined threshold, update the parameters of the target tracker.

[0103] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0104] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0105] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.

[0106] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0107] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0109] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0110] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for updating a target object tracker, characterized in that: include: Obtaining a first tracking confidence output by a target tracker tracking a first target object in a t-1th frame image in a target video; Determining a second tracking confidence for tracking the first target object in the t-th frame image according to the first tracking confidence and the third tracking confidence, wherein the third tracking confidence is used to represent the confidence that a second detection frame of the first target object in the t-th frame image interferes with a first detection frame of the first target object in the t-1-th frame image; When the second tracking confidence is less than or equal to a first predetermined threshold, updating parameters of the target tracker; Among them, before determining the second tracking confidence for tracking the first target object in the t-th frame image according to the first tracking confidence and the third tracking confidence, the method also includes: determining the target tracking appearance similarity according to the appearance features of the first detection frame and the appearance features of the second detection frame; determining the tracking area overlap ratio according to the area area of ​​the first detection frame and the area area of ​​the second detection frame; and determining the third tracking confidence according to the first tracking confidence, the target tracking appearance similarity and the tracking area overlap ratio.

2. The method according to claim 1, characterized in that The determining, according to the first tracking confidence and the third tracking confidence, a second tracking confidence for tracking the first target object in the t-th frame image includes: An average of the first tracking confidence and the second tracking confidence is determined as the second tracking confidence.

3. The method according to claim 1, characterized in that In the case where the second tracking confidence is less than or equal to the first predetermined threshold, after updating the target tracker, the method further includes: The updated target tracker matches the position information of the first target object to the target trajectory of the first target object when the fourth tracking confidence output by tracking the first target object in the t+1th frame image in the target video is greater than or equal to a second preset threshold.

4. The method according to claim 1, characterized in that The determining of the tracking area overlap ratio according to the area region of the first detection frame and the area region of the second detection frame comprises: Obtaining a first area region where the area region of the first detection frame intersects the area region of the second detection frame; Acquire a second area region obtained by combining the area region of the first detection frame and the area region of the second detection frame; A ratio of the first area region to the second area region is determined as the tracking area overlap ratio.

5. The method according to claim 1, characterized in that Determining the third tracking confidence according to the first tracking confidence, the target tracking appearance similarity, and the tracking area overlap ratio includes: The third tracking confidence is determined by the following formula: Score3=β·IOU(T Track ,D Det )·Siam Appearance ·Score1 Among them, Score1 is the first tracking confidence, β is a hyperparameter, Siam Appearance is the target tracking appearance similarity, T Track and D Det represents the first detection box and the second detection box, IOU(T Track ,D Det ) is the tracking area overlap ratio.

6. The method according to claim 1, characterized in that The method comprises: When there is a third detection frame of the first target object and a fourth detection frame of the second target object in the t-th frame image, and an overlapping area between the third detection frame and the fourth detection frame is greater than or equal to a third preset threshold, acquiring appearance features of the third detection frame and appearance features of the fourth detection frame; Determine a first tracking appearance feature similarity according to the appearance features of the first detection frame and the appearance features of the third detection frame; Determine the similarity of the second tracking appearance feature respectively according to the appearance feature of the first detection frame and the appearance feature of the fourth detection frame; The largest value between the first tracking appearance feature similarity and the second tracking appearance feature similarity is determined as the target tracking appearance similarity.

7. A target object tracker update device, characterized in that: include: A first acquisition unit is used to acquire a first tracking confidence output by a target tracker tracking a first target object in a t-1th frame image in a target video; a first determining unit, configured to determine a second tracking confidence for tracking the first target object in the t-th frame image according to the first tracking confidence and a third tracking confidence, wherein the third tracking confidence is used to represent a confidence that a second detection frame of the first target object in the t-th frame image interferes with a first detection frame of the first target object in the t-1-th frame image; an updating unit, configured to update the parameters of the target tracker when the second tracking confidence is less than or equal to a first predetermined threshold; The device also includes: a second determination unit, used to determine the target tracking appearance similarity based on the appearance features of the first detection frame and the appearance features of the second detection frame before determining the second tracking confidence for tracking the first target object in the t-th frame image based on the first tracking confidence and the third tracking confidence; a third determination unit, used to determine the tracking area overlap ratio based on the area region of the first detection frame and the area region of the second detection frame; and a fourth determination unit, used to determine the third tracking confidence based on the first tracking confidence, the target tracking appearance similarity and the tracking area overlap ratio.

8. The device according to claim 7, characterized in that The first determining unit includes: The first determining module is configured to determine an average value of the first tracking confidence and the second tracking confidence as the second tracking confidence.

9. The device according to claim 7, characterized in that The device also includes: A matching unit is used for, after updating the target tracker when the second tracking confidence is less than or equal to a first predetermined threshold, matching the position information of the first target object to the target trajectory of the first target object when the fourth tracking confidence output by the updated target tracker for tracking the first target object in the t+1th frame image in the target video is greater than or equal to a second preset threshold.

10. The device according to claim 7, characterized in that The third determining unit includes: A first acquisition module, used for acquiring a first area region where the area region of the first detection frame intersects the area region of the second detection frame; A second acquisition module, used for acquiring a second area region obtained by combining the area region of the first detection frame and the area region of the second detection frame; The second determining module is configured to determine a ratio of the first area region to the second area region as the tracking area overlap ratio.

11. The device according to claim 7, characterized in that The fourth determining unit includes: The third determination module is used to determine the third tracking confidence by the following formula: Score3=β·IOU(T Track ,D Det )·Siam Appearance ·Score1 Among them, Score1 is the first tracking confidence, β is a hyperparameter, Siam Appearance is the target tracking appearance similarity, T Track and D Det represents the first detection box and the second detection box, IOU(T Track ,D Det ) is the tracking area overlap ratio.

12. The device according to claim 7, characterized in that The device comprises: a second acquisition unit, configured to acquire the appearance features of the third detection frame and the appearance features of the fourth detection frame when there are a third detection frame of the first target object and a fourth detection frame of the second target object in the t-th frame image, and an overlapping area between the third detection frame and the fourth detection frame is greater than or equal to a third preset threshold; A fifth determining unit, configured to determine a first tracking appearance feature similarity according to the appearance features of the first detection frame and the appearance features of the third detection frame; A sixth determining unit, configured to determine the similarity of the second tracking appearance feature according to the appearance feature of the first detection frame and the appearance feature of the fourth detection frame; The seventh determining unit is used to determine the largest value between the first tracking appearance feature similarity and the second tracking appearance feature similarity as the target tracking appearance similarity.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 6 when executed.

14. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.