Target tracking method, electronic device and storage medium

By using the kernel correlation filter model to predict and adjust the current frame image in target tracking, and perform online learning, the problem of inaccurate target tracking in the existing technology is solved, and the tracking accuracy of the target position and the robustness of the model are improved. sex.

CN111815668BActive Publication Date: 2024-08-30ZHEJIANG DAHUA TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The results of target tracking using the kernel correlation filter model (KCF) in the existing technology are not accurate enough, which affects the target tracking effect in video surveillance.

Method used

By obtaining the current frame image and the previous frame image from the image sequence, the kernel correlation filter model is used to predict and adjust the target position, the model parameters are updated to improve robustness, and online learning is performed after each frame of tracking to adjust the predicted position. to improve accuracy.

Benefits of technology

It achieves more accurate target position tracking and enhances the robustness of the kernel correlation filter model, making the tracking effect of subsequent frames more effective.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111815668B
    Figure CN111815668B
Patent Text Reader

Abstract

The present application discloses a target tracking method, electronic device and storage medium. The method includes: obtaining a frame of image to be tracked from an image sequence as the current frame image; using a kernel correlation filter model to process the final position of the target to be tracked in the current frame image and the previous frame image, and obtaining the predicted position of the target to be tracked in the current frame image; adjusting the predicted position of the target to be tracked in the current frame image to obtain the final position of the target to be tracked in the current frame image; obtaining and updating the parameters of the kernel correlation filter model based on the predicted position and final position of the target to be tracked; obtaining the next frame image of the current frame image from the image sequence as the new current frame image, and re-executing the processing of the final position of the target to be tracked in the current frame image and the previous frame image using the kernel correlation filter model and subsequent steps. In the above manner, the present application can improve the accuracy of target tracking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of target tracking, and in particular to a target tracking method, electronic device and storage medium. Background Art

[0002] Object tracking is a basic problem in computer vision and is widely used in video surveillance. There are many algorithms that can perform object tracking. For example, the kernel correlation filter model (KCF) can predict the position of the target in the current frame based on the target detection box in the previous frame, thereby achieving object tracking. However, the results of object tracking using KCF in the prior art are not accurate enough. Summary of the invention

[0003] The present application provides a target tracking method, an electronic device and a storage medium, which can solve the problem that the existing target tracking results using KCF are not accurate enough.

[0004] To solve the above technical problems, a technical solution adopted in the present application is: to provide a target tracking method, the method comprising: obtaining a frame of image to be tracked from an image sequence as a current frame image; using a kernel correlation filter model to process the final position of the target to be tracked in the current frame image and the previous frame image to obtain the predicted position of the target to be tracked in the current frame image; adjusting the predicted position of the target to be tracked in the current frame image to obtain the final position of the target to be tracked in the current frame image; obtaining and updating the parameters of the kernel correlation filter model based on the predicted position and the final position of the target to be tracked; obtaining the next frame image of the current frame image from the image sequence as a new current frame image, and re-executing the processing of the final position of the target to be tracked in the current frame image and the previous frame image using the kernel correlation filter model and subsequent steps.

[0005] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, which includes a processor and a memory connected to the processor, wherein the memory stores program instructions; the processor is used to execute the program instructions stored in the memory to implement the above method.

[0006] In order to solve the above technical problem, another technical solution adopted by the present application is: providing a storage medium storing program instructions, which can implement the above method when executed.

[0007] Through the above method, the present application can use the kernel correlation model to track the target to be tracked in the current frame image, obtain the predicted position, adjust the obtained predicted position, and obtain a more accurate final position as the position of the target to be tracked, so that the predicted position of the target to be tracked can be adjusted frame by frame, thereby increasing the robustness of the kernel correlation filter model; and, after each completion of the tracking of the target to be tracked in the current frame image, the kernel correlation filter model will be online learned based on the predicted position and final position of the target to be tracked in the current frame image to update the parameters of the kernel correlation model, so that the kernel correlation filter model is more effective in tracking subsequent frames. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 It is a flowchart of the first embodiment of the target tracking method of the present application;

[0009] Figure 2 It is a schematic diagram of the detection frame in the image to be tracked in this application;

[0010] Figure 3 It is a flowchart of the second embodiment of the target tracking method of the present application;

[0011] Figure 4 yes Figure 3 The specific process diagram of S210;

[0012] Figure 5 yes Figure 4 The specific process diagram of S211;

[0013] Figure 6 is a schematic diagram of the target image of this application;

[0014] Figure 7 is a schematic diagram of a red binary image corresponding to the target image of this application;

[0015] Figure 8 is a schematic diagram of a yellow binary image corresponding to the target image of this application;

[0016] Fig. 9 is a schematic diagram of a green binary image corresponding to the target image of this application;

[0017] Fig.10 yes Figure 3 The specific process diagram of S220;

[0018] Fig.11 It is a schematic diagram of the predicted detection frame before the target to be tracked in the current frame image of the present application is adjusted;

[0019] Fig.12 It is a schematic diagram of a yellow binary image corresponding to the current frame image of this application;

[0020] Fig.13 is a schematic diagram of the final detection frame after the target to be tracked in the current frame image of this application is adjusted;

[0021] Fig.14 It is a flowchart of the third embodiment of the target tracking method of the present application;

[0022] Fig.15 This is a flowchart of the fourth embodiment of the target tracking method of the present application.

[0023] Fig.16 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0024] Fig.17 It is a structural diagram of an embodiment of a storage medium of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] The terms "first", "second", and "third" in this application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first", "second", and "third" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments without conflict.

[0028] Figure 1 is a flowchart of the first embodiment of the target tracking method of the present application. It should be noted that if there are substantially the same results, this embodiment does not use Figure 1 The process sequence shown is limited. Figure 1 As shown, this embodiment may include:

[0029] S110: Acquire a frame of image to be tracked from the image sequence as the current frame image.

[0030] The image sequence may be a complete video stream sequence captured by a camera device, or may be a portion of a video stream sequence intercepted from the complete video stream sequence.

[0031] Optionally, the image sequence includes a first frame image and several frames of images to be tracked that are located after the first frame image. Specifically, each frame image in the image sequence has a corresponding frame number, so the images in the image sequence can be divided into a first frame image (with the smallest frame number) and several frames of images to be tracked that are located after the first frame image based on the frame number. Among them, the position of the target in the first frame image of the image sequence is known (can be given artificially or calculated according to a related algorithm), and the position of the target in other frames except the first frame image is unknown. In other words, the position of the target in the first frame image is known, while the position in other frames is unknown. Therefore, the images to be tracked referred to in this application are several frames of images located after the first frame image in the image sequence.

[0032] S120: Processing the final positions of the target to be tracked in the current frame image and the previous frame image using a kernel correlation filter model to obtain a predicted position of the target to be tracked in the current frame image.

[0033] The target to be tracked can be referred to as the target mentioned above, which can be various types of signs, such as safety signs, warning signs, prohibition signs, etc. The target to be tracked is the target in the first frame image, so the target tracking method provided in the present application is essentially used to track the position of the target appearing in the first frame image in each image to be tracked. Among them, the number of targets in the first frame image may be one or more.

[0034] In this application, the position of the target to be tracked is also referred to as a detection frame, which can be represented by the upper left coordinate and lower right coordinate of the detection frame. Of course, in other implementations, it can also be represented by the upper left coordinate, length and width of the detection frame, or it can be represented by the lower right coordinate, length and width of the detection frame, etc. For an example of a detection frame 1 in the image to be tracked, please refer to Figure 2 During the tracking process, each target has a corresponding detection box.

[0035] The so-called previous frame image is the previous frame image of the current frame image in the image sequence. The current frame image and the position of the target to be tracked in the previous frame image of the current frame image can be input into the kernel correlation filter model (KCF) to use KCF to predict the position of the target to be tracked in the current frame image, that is, the predicted position.

[0036] Among them, the previous frame image of the current frame image may be the first frame image of the image sequence, or it may not be the first frame image of the image sequence. Since in the target tracking process, the position of the target in the image to be tracked in the image sequence is tracked in sequence according to the frame number. Therefore, when the current frame image is the second frame image, its previous frame image is the first frame image; when the current frame image is another frame image to be tracked, its previous frame image is not the first frame image.

[0037] Since the position of the target in the first frame image is known, when the previous frame image is the first frame image in the image sequence, the final position of the target in the previous frame image refers to the known position of the target in the first frame image.

[0038] When the previous frame image is not the first frame image in the image sequence, the final position of the target in the previous frame image is obtained by adjusting the predicted position of the target to be tracked in the previous frame image, wherein the method for acquiring the predicted position of the target in the previous frame image is the same as the method for acquiring the current frame image. For specific acquisition and adjustment methods, please refer to the following embodiments.

[0039] S130: adjusting the predicted position of the target to be tracked in the current frame image to obtain the final position of the target to be tracked in the current frame image.

[0040] Some external factors may affect the accuracy of the target position in the current frame image obtained by using KCF. For example, different shooting distances will cause a certain difference between the size of the target in the current frame image and the size in the previous frame image, but the actual predicted detection frame size of the target to be tracked in the current frame image is the same as that in the previous frame image, which affects the accuracy of the target position in the current frame. Therefore, the predicted position can be adjusted. The specific adjustment method can be referred to in the following embodiments.

[0041] S140: Obtain and update the parameters of the kernel correlation filter model based on the predicted position and final position of the target to be tracked.

[0042] The predicted position and final position of the target can be used to perform online learning of the kernel correlation filter model to update the parameters of the KCF, making it more effective for predicting the next frame of the image.

[0043] After this step is completed, you can jump to the above S110 to obtain the next frame image of the current frame image from the image sequence as the new current frame image, and re-execute the kernel correlation filter model to process the final position of the target in the new current frame image and the previous frame image and subsequent steps to complete the prediction of the target position in each image to be tracked.

[0044] Through the implementation of the above-mentioned embodiments, the present application can utilize the kernel correlation model to track the target to be tracked in the current frame image, obtain the predicted position, adjust the obtained predicted position, and obtain a more accurate final position as the position of the target to be tracked, thereby being able to adjust the predicted position of the target to be tracked frame by frame, thereby increasing the robustness of the kernel correlation filter model; and, after each completion of the tracking of the target to be tracked in the current frame image, the kernel correlation filter model will be online learned based on the predicted position and final position of the target to be tracked in the current frame image to update the parameters of the kernel correlation model, so that the kernel correlation filter model is more effective in tracking the next current frame.

[0045] Figure 3 is a flow chart of the second embodiment of the target tracking method of the present application. It should be noted that if there are substantially the same results, this embodiment does not use Figure 3 The process sequence shown is limited. Among them, the above S130 may also include S210 before it. On this basis, S130 in the first embodiment can be expanded to S240, such as Figure 3 As shown, this embodiment may include:

[0046] S210: Determine a first image region corresponding to the final position of the target to be tracked in an image before the current frame image, and obtain reference target information of the target to be tracked using the content of the first image region.

[0047] Optionally, the image before the current frame image is the previous frame image of the current frame image, or the first frame image in the image sequence. The first image area is the final detection frame area of ​​the target to be tracked in the image before the current frame image, and the reference target information is the proportion of a preset color area in the first image area and the center position of the preset color area.

[0048] The reference target information can be used as a basis for adjusting the predicted position of the target to be tracked in the current frame image.

[0049] Therefore, if the image before the current frame is the first frame in the image sequence, the reference target information corresponding to the first frame can be directly used as the basis for adjusting the predicted position of the target to be tracked in the current frame. This means that only the reference target information of the first frame needs to be calculated as the basis for adjusting the predicted position of each subsequent frame to be tracked.

[0050] If the image before the current frame image is the previous frame image of the current frame image, it means that after obtaining the final position of the target in the previous frame image, it is necessary to update the reference target information based on the final position of the target in the previous frame image, so as to serve as the basis for adjusting the predicted position of the target to be tracked in the current frame image.

[0051] In order to improve the accuracy of the target tracking process, the previous frame image of the current frame image is used as the image before the current frame image only when the tracking result of the image to be tracked is ideal.

[0052] See also Figure 4 In S210, obtaining reference target information of the target to be tracked by using the content of the first image area may include:

[0053] S211: Obtaining the area of ​​each preset color region in the first image region.

[0054] The preset color may also be referred to as a priori color, which may be set based on the color of the sign contained in the image sequence / first frame image. For example, the preset colors based on the settings include green (safety), yellow (warning), and red (prohibition).

[0055] Among them, the area of ​​each preset color area in the first image area can be calculated directly based on the current color space (RGB), or the first image area can be converted into a color space first, and then the area of ​​each preset color area in the first image area can be calculated based on the converted color space. The latter method calculates the area of ​​each preset color area more accurately.

[0056] The following is an explanation of the steps for calculating the area of ​​each preset color region. Figure 5 , calculating the area of ​​each preset color region may include:

[0057] S2111: Capture the corresponding image area as the target image.

[0058] The first image area may be cut out from the corresponding frame image to serve as the target image.

[0059] S2112: Perform color space conversion on the target image.

[0060] The target image is currently in a color space of RGB, which can be converted to a color space of HSV. Of course, it can also be converted to other color spaces, and this embodiment is described by taking the conversion to the color space of HSV as an example.

[0061] S2113: Calculate the area of ​​each preset color region based on the converted color space.

[0062] The target image can be processed based on the range of each preset color in the corresponding HSV channel to obtain a binary image (mask image) corresponding to each preset color, and the area of ​​each preset color region can be calculated based on the connected domain of each preset color in the corresponding mask image.

[0063] For example, the preset colors include green, yellow, and red. Figure 6 is a target image example, Figure 7-9 They are the red mask image, yellow mask image and green mask image corresponding to the target image respectively. The connected domain of the preset color in the mask image can be determined first, and then the area of ​​the connected domain is calculated as the area of ​​the corresponding preset color region, so that it can be determined that the area of ​​the yellow region is the largest, and the yellow region is used as the reference color region.

[0064] S212: taking a preset color region whose area meets a preset selection condition as a reference color region, and obtaining a proportion of the reference color region in the first image region and a center position of the reference color region as reference target information.

[0065] Optionally, the preset selection condition is the largest area. Therefore, the proportion of the preset color area with the largest area (reference color area) in the first image area and the center position of the preset color area with the largest area (reference color area center position) can be used as reference target information. For example, if the yellow area has the largest area, yellow is used as the reference color, the yellow area is used as the reference color area, and the center of the yellow area is used as the center position of the reference color area.

[0066] S220: Using the reference target information of the target to be tracked, adjusting the predicted position of the target to be tracked in the current frame image, and obtaining the final position of the target to be tracked in the current frame image.

[0067] The target information in the current frame image may be compared with the reference target information to obtain the final position of the target in the current frame image. In other implementations, the final position of the target may also be obtained by other methods, which are not specifically limited here.

[0068] Combined with reference Fig.10 , a method of obtaining the final position of the target in the current frame image by comparing the target information in the current frame image with the reference target information is described as an example. S220 may specifically include:

[0069] S221: Determine a second image region corresponding to the predicted position of the target to be tracked in the current frame image, and obtain current target information of the target to be tracked using the content of the second image region.

[0070] Optionally, the second image area is an area of ​​the predicted detection box corresponding to the target to be tracked in the current frame image, and the current target information is a proportion of a preset color area in the second image area and a center position of the preset color area.

[0071] The current target information of the same target corresponds to the reference target information. Specifically, the proportion of a preset color area in the second image area is the proportion of the reference target area in the second image area, and the center position of the preset color area is the center position of the reference target area.

[0072] For example, the reference target information of the signboard is the proportion and center position of the yellow area in the first image area, and the current target information of the signboard is the proportion and center position of the yellow target area in the second image area. Fig.11 is an example of the current frame image. Fig.11 The predicted detection box 2 area of ​​the target to be tracked is the second image area, Fig.12 It is the yellow mask image corresponding to the second image area.

[0073] The difference between the method of obtaining the current target information and the method of obtaining the reference target information is that it is only necessary to obtain the mask image corresponding to the reference color based on the converted color space, and calculate the area of ​​the reference color region based on the connected domain of the reference color in the mask image.

[0074] S222: Compare the current target information of the target to be tracked with the reference target information.

[0075] S223: Adjust the predicted position of the target to be tracked in the current frame image according to the comparison result.

[0076] Optionally, based on the difference in center positions of a preset color area between the first image area and the second image area, the center position of the predicted detection box corresponding to the target to be tracked in the current frame image is adjusted, and based on the difference in proportions between the first image area and the second image area, the predicted detection box corresponding to the target to be tracked in the current frame image is scaled. Fig.13 In order to Fig.11 An example of the final detection box 3 area obtained after adjusting the predicted detection box 2 area of ​​the target to be tracked.

[0077] Through the implementation of the above embodiments, the present application can adjust the scale and position of the predicted position of the target to be tracked in the current frame image based on the current target information and the reference target information in the current frame image, and can improve the accuracy of the kernel correlation filter model in tracking the next image to be tracked; and, the predicted position is adjusted based on the reference target information of the current frame image obtained in the color space, and the calculation process is simple and does not require too many computing resources.

[0078] Fig.14 is a flow chart of the third embodiment of the target tracking method of the present application. It should be noted that if there are substantially the same results, this embodiment does not use Fig.14 The process sequence shown is limited. This embodiment is a further extension of the above S140. Fig.14 As shown, S140 may include:

[0079] S610: Determine a first parameter of a kernel correlation filter model based on the predicted position of the target to be tracked, and determine a second parameter of the kernel correlation filter model based on the final position of the target to be tracked.

[0080] For the method of obtaining the first parameter and the second parameter, please refer to the fourth embodiment below.

[0081] S620: Perform weighted processing on the first parameter and the second parameter of the kernel correlation filter model to obtain and update the parameters of the kernel correlation filter model.

[0082] The formula for weighting the first parameter and the second parameter may be as follows:

[0083]

[0084] in, is the first parameter, is the second parameter and β is the weight.

[0085] Before the above S110, this embodiment may further include: obtaining initial parameters of the kernel correlation filter model based on the final position of the image to be tracked in the first frame of image. Fig.15 , Fig.15 This is a flow chart of the fourth embodiment of the present application, as shown in FIG. Fig.15 As shown, the determination of the initial parameter, the first parameter, and the second parameter of the kernel correlation filter model may include:

[0086] S710: Enlarge the area where the corresponding target position is located by a preset multiple to obtain a search area.

[0087] The corresponding target position is the predicted position of the target or the final position of the target (if it is the first frame image, it is the known position in the first frame image). The area where the corresponding target position is located can be magnified by a preset multiple, where the preset multiple can be 1.6, 1.8, etc. Considering the calculation time of KCF and the accuracy of the calculation result, the preset multiple can be taken within [1.2, 1.8].

[0088] The area where the corresponding target position is located is magnified by a preset multiple, that is, the detection frame of the target is magnified by a preset multiple, and the magnified detection frame in the current frame image is intercepted as the search area.

[0089] S720: grayscale the search area to obtain a grayscale image.

[0090] S730: Divide the grayscale image into a plurality of image units, and form a block with a preset number of image units in the plurality of image units, and concatenate the HOG features of the image units in each block to obtain features of the corresponding block.

[0091] Among them, the HOG features include the size and direction of the gradient.

[0092] For example, an image cell includes 6*6 pixels, and four adjacent cells form a block. Therefore, the HOG features of four adjacent cells are concatenated to obtain the features of the corresponding block.

[0093] S740: construct a feature matrix using the block features, and construct a Gaussian label for each block feature in the feature matrix.

[0094] Each target corresponds to a search area, and the block features of each search area constitute a row of vectors in the feature matrix. For example, if there are 3 targets and each search area is divided into 6 blocks, a feature matrix with 3 rows and 6 columns can be formed. The Gaussian label is the weight of the corresponding block feature, and a weight can be assigned to each block feature in the feature matrix, where the closer the block is to the center of the image, the greater the weight assigned to the feature.

[0095] S750: Obtain corresponding parameters of the kernel correlation filter model using the feature matrix and the corresponding Gaussian labels.

[0096] The calculation formula of KCF parameter is as follows:

[0097]

[0098] in, The feature matrix, is the Gaussian label matrix, For about The kernel correlation matrix of , λδ is a preset value, which can be set according to environmental factors (such as occlusion).

[0099] Among them, the parameters obtained using the feature matrix corresponding to the predicted position of the target and the Gaussian label are the first parameters, and the parameters obtained using the feature matrix corresponding to the final position of the target and the Gaussian label are the second parameters.

[0100] When the current frame image is the first frame image, the process of obtaining parameters using the feature matrix corresponding to the known position of the target in the first frame image and the Gaussian label is the initialization process of the kernel correlation filter model parameters.

[0101] Fig.16 Schematic diagram of the structure of an embodiment of the electronic device of the present application. Fig.16 As shown, the electronic device includes a processor 810 and a memory 820 coupled to the processor.

[0102] The memory 820 stores program instructions for implementing the method of any of the above embodiments; the processor 810 is used to execute the program instructions stored in the memory 820 to implement the steps of the above method embodiments. The processor 810 may also be referred to as a CPU (Central Processing Unit). The processor 810 may be an integrated circuit chip with signal processing capabilities. The processor 810 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0103] Fig.17 Schematic diagram of the structure of an embodiment of the storage medium of the present application. Fig.17 As shown, the storage medium 900 of the embodiment of the present application stores program instructions 910, and the program instructions 910 implement the method provided in the above embodiment of the present application when executed. Among them, the program instructions 910 can form a program file and be stored in the above storage medium 900 in the form of a software product, so that a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) executes all or part of the steps of each implementation method of the present application. The aforementioned storage medium 900 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, RandomAccess Memory), a disk or an optical disk, or a terminal device such as a computer, a server, a mobile phone, and a tablet.

[0104] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0105] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the description and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.

Claims

1. A target tracking method, characterized in that: Obtain a frame of image to be tracked from the image sequence as the current frame image; Using a kernel correlation filter model to process the final positions of the target to be tracked in the current frame image and the previous frame image, to obtain a predicted position of the target to be tracked in the current frame image; Adjusting the predicted position of the target to be tracked in the current frame image to obtain the final position of the target to be tracked in the current frame image; Obtaining and updating the parameters of the kernel correlation filter model based on the predicted position and final position of the target to be tracked; Acquire the next frame image of the current frame image from the image sequence as a new current frame image, and re-execute the processing of the final position of the target to be tracked in the current frame image and the previous frame image by using the kernel correlation filter model and subsequent steps; Wherein, before adjusting the predicted position of the target to be tracked in the current frame image to obtain the final position of the target to be tracked in the current frame image, the method further includes: Determine a first image region corresponding to the final position of the target to be tracked in an image before the current frame image, and obtain reference target information of the target to be tracked using content of the first image region; The step of adjusting the predicted position of the target to be tracked in the current frame image to obtain the final position of the target to be tracked in the current frame image comprises: The reference target information of the target to be tracked is used to adjust the predicted position of the target to be tracked in the current frame image to obtain the final position of the target to be tracked in the current frame image.

2. The method according to claim 1, characterized in that The adjusting the predicted position of the target to be tracked in the current frame image by using the reference target information of the target to be tracked includes: Determine a second image area corresponding to the predicted position of the target to be tracked in the current frame image, and obtain current target information of the target to be tracked by using the content of the second image area; Comparing the current target information of the target to be tracked with the reference target information; The predicted position of the target to be tracked in the current frame image is adjusted according to the comparison result.

3. The method according to claim 1, characterized in that The first image area is a final detection frame area of ​​the target to be tracked in an image before the current frame image, and the reference target information is a proportion of a preset color area in the first image area and a center position of the preset color area; The second image area is a predicted detection frame area corresponding to the target to be tracked in the current frame image, and the current target information is a proportion of a preset color area in the second image area and a center position of the preset color area; The step of adjusting the predicted position of the target to be tracked in the current frame image according to the comparison result includes: Based on the difference in center positions of the preset color area between the first image area and the second image area, the center position of the predicted detection box corresponding to the target to be tracked in the current frame image is adjusted, and based on the difference in proportions between the first image area and the second image area, the predicted detection box corresponding to the target to be tracked in the current frame image is scaled.

4. The method according to claim 1, characterized in that: The obtaining the reference target information of the target to be tracked by using the content of the first image area includes: Obtaining the area of ​​each preset color region in the first image region; The preset color region whose area meets the preset selection condition is used as a reference color region, and the proportion of the reference color region in the first image region and the center position of the reference color region are obtained as the reference target information.

5. The method according to claim 4, characterized in that The preset selection condition is the largest area; and / or, Obtaining the area of ​​each preset color region in the corresponding image region includes: Cut out the corresponding image area as the target image; Performing color space conversion on the target image; The areas of the preset color regions are calculated based on the converted color space.

6. The method according to claim 1, characterized in that The image before the current frame image is the previous frame image of the current frame image, or is the first frame image in the image sequence.

7. The method according to claim 1, characterized in that The method of obtaining and updating the parameters of the kernel correlation filter model based on the predicted position and the final position of the target to be tracked includes: Determining a first parameter of the kernel correlation filter model based on the predicted position of the target to be tracked, and determining a second parameter of the kernel correlation filter model based on the final position of the target to be tracked; The first parameter and the second parameter of the kernel correlation filter model are weighted to obtain and update the parameters of the kernel correlation filter model.

8. The method according to claim 1, characterized in that: The image sequence includes a first frame image and a plurality of frames of images to be tracked that are located after the first frame image; Before acquiring a frame of the image to be tracked from the image sequence as the current frame of the image, the method further includes: The initial parameters of the kernel correlation filter model are determined based on the final position of the image to be tracked in the first frame of image.

9. An electronic device, characterized in that: The method comprises a processor and a memory connected to the processor, wherein: The memory stores program instructions; The processor is configured to execute the program instructions stored in the memory to implement the method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium stores program instructions, and when the program instructions are executed, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Multi-moving-target tracking method

    CN106651908A

  • User terminal and object tracking method and device thereof

    CN106683110A

  • Multi-scale target tracking method based on background suppression and foreground anti-jamming

    CN108053419A

  • Target tracking method, and apparatus and readable storage medium

    CN109544598A

  • Scale adaptive target tracking system based on mean shift and kernel correlation filtering

    CN109977971A