Target tracking method and related device

By calculating the tracking score and stopping tracking when the score is lower than the preset value, the problem of difficulty in determining the tracking status in real time in the existing technology is solved, and the efficiency and accuracy of target tracking are improved.

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

Patent Information

Application Number
CN202110604881.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2024-09-06
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

Existing target tracking technology is difficult to determine the tracking status in real time during the tracking process, which may lead to confusion of the tracking target and the inability to stop abnormal tracking in time.

Method used

By using the current moment and historical images to obtain the position information related to the target frame of the tracking target, the tracking score is calculated. When the score is lower than the preset value, it is determined to be an abnormal state and tracking is stopped. Specific steps include calculating offset values ​​and total adjustment values, combining coefficients and clarity to calculate a score, and stopping tracking when the score falls below a preset value.

Benefits of technology

It realizes timely truncation of abnormal states during the tracking process, improves the overall tracking efficiency, and avoids meaningless tracking processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113537283B
    Figure CN113537283B
Patent Text Reader

Abstract

The present application provides a target tracking method and related devices, the target tracking method comprising: in response to the first image acquired by the image acquisition device at the current moment containing the tracking target, the image acquisition device continues to track the tracking target; using the first image and the historical image to obtain the position information related to the target frame corresponding to the tracking target; obtaining the tracking score at the current moment according to the position information; in response to the tracking score being lower than a preset value, determining that the current tracking is in an abnormal state, and causing the image acquisition device to stop tracking. Through the above-mentioned design method, the present application can make real-time judgments on the tracking state during the tracking process and stop abnormal tracking in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of target tracking, and specifically relates to a target tracking method and related devices. Background Art

[0002] Automatic moving target tracking is a technology for detecting, extracting, identifying and tracking moving targets. This technology is the core of computer vision systems and is widely used in military, transportation, biology, medicine and other fields.

[0003] At present, in order to improve the accuracy of tracking targets and prevent the tracking targets from being confused, the method of improving the accuracy of the tracking model before tracking is generally adopted. This method cannot make real-time judgments on the tracking status during the tracking process. Summary of the invention

[0004] The present application provides a target tracking method and related devices to perform real-time identification of the tracking status during the tracking process and stop abnormal tracking in time.

[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a target tracking method, including: in response to the first image acquired by the image acquisition device at the current moment containing the tracking target, the image acquisition device continues to track the tracking target; using the first image and the historical image to obtain the position information related to the target box corresponding to the tracking target; obtaining the tracking score at the current moment according to the position information; in response to the tracking score being lower than a preset value, it is determined that the current tracking is in an abnormal state, and the image acquisition device stops tracking.

[0006] Among them, the step of using the first image and the historical images to obtain the position information related to the target frame corresponding to the tracking target includes: obtaining the offset value between the center point of the first image and the center point of the target frame in the first image, and obtaining all historical images in the historical time period before the current moment, and using the first image and all the historical images to obtain the total adjustment value of the target frame position; wherein the position information includes the offset value and the total adjustment value.

[0007] Among them, the step of obtaining the tracking score at the current moment according to the location information includes: obtaining a first ratio between the first coefficient and the offset value, and a second ratio between the second coefficient and the total adjustment value; wherein, the first coefficient and the second coefficient are greater than 0, and the sum is 1; and the sum of the first ratio and the second ratio is used as the tracking score.

[0008] Wherein, before the step of obtaining the tracking score at the current moment according to the position information, it also includes: obtaining a sub-image corresponding to the target box from the first image; obtaining the clarity of the sub-image; the step of obtaining the tracking score at the current moment according to the position information includes: obtaining the tracking score according to the position information and the clarity.

[0009] Among them, the step of obtaining the tracking score according to the position information and the clarity includes: obtaining a first ratio between the first coefficient and the offset value, a second ratio between the second coefficient and the total adjustment value, and a first product between the third coefficient and the clarity; wherein the first coefficient, the second coefficient, and the third coefficient are greater than 0, and the sum is 1; and the sum of the first ratio, the second ratio and the first product is used as the tracking score.

[0010] Among them, the first coefficient is greater than 0 and less than 0.6, the second coefficient is greater than 0 and less than 0.6, and the third coefficient is greater than 0 and less than 0.4.

[0011] Among them, the step of obtaining the offset value between the center point of the first image and the center point of the target frame in the first image includes: obtaining a target frame corresponding to the tracking target from the first image; obtaining a first difference between the center point of the first image and the center point of the target frame in the horizontal direction, and a second difference in the vertical direction; and taking the sum of the absolute value of the first difference and the absolute value of the second difference as the offset value.

[0012] Among them, the step of using the first image and all the historical images to obtain the total adjustment value of the target frame position includes: for any two adjacent moments in the first image and all the historical images, obtaining the sum of a first distance between the upper boundaries, a second distance between the lower boundaries, a third distance between the left boundaries, and a fourth distance between the right boundaries of the target frames in the two images, and obtaining a third difference between the sum and a constant; and taking the sum of the absolute values ​​of all the third differences as the total adjustment value.

[0013] Wherein, the first image includes a thermal imaging image.

[0014] To solve the above technical problems, another technical solution adopted in the present application is: to provide a target tracking device, comprising: a processor and a memory, wherein the processor is coupled to the memory to implement the target tracking method described in any of the above embodiments.

[0015] In order to solve the above technical problems, another technical solution adopted by the present application is: providing a device with a storage function, on which program data is stored, and the program data can be executed by a processor to implement the target tracking method described in any of the above embodiments.

[0016] Different from the prior art, the beneficial effect of the present application is that during the tracking process, the present application will use the first image acquired at the current moment and the historical image to obtain the position information related to the target frame corresponding to the tracking target, and obtain the tracking score at the current moment based on the position information. When the tracking score is less than a preset value, it is determined that the current tracking is in an abnormal tracking state, and the tracking is stopped immediately, so that the meaningless tracking process in the abnormal state can be cut off in time, thereby improving the overall tracking efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0018] Figure 1 This is a flow chart of an implementation method of the target tracking method of the present application;

[0019] Figure 2 This is a schematic diagram of the structure of an implementation scheme of the target tracking framework of this application;

[0020] Figure 3 This is a schematic diagram of the structure of an implementation method of a target tracking device of the present application;

[0021] Figure 4 This is a schematic diagram of the structure of an embodiment of a device with storage function of the present application. DETAILED DESCRIPTION

[0022] 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.

[0023] Thermal imaging tracking technology can penetrate mist, camouflage, etc., has a certain target recognition, and can provide all-weather service. However, in actual use, thermal imaging images cannot make detailed observations of the tracked objects, and only the general outline can be seen, especially at a long distance. When the temperature of the tracked target is close to the ambient temperature, the traditional tracking process easily confuses the blurred object in high-speed motion with the environment, resulting in an abnormal tracking state. The target tracking method provided in the present application can effectively solve the problem of easy confusion in the above-mentioned thermal imaging tracking. Of course, the target tracking method provided in the present application can also be applied to other image tracking technologies.

[0024] See also Figure 1 , Figure 1 This is a flow chart of an implementation method of a target tracking method of the present application, and the target tracking method specifically includes:

[0025] S101: In response to a first image captured by an image acquisition device at a current moment containing a tracking target, the image acquisition device continues to track the tracking target.

[0026] Specifically, in this embodiment, the first image may be a thermal imaging image or a visible light image, etc. The specific implementation process of the above step S101 may be: obtaining the first image acquired by the image acquisition device at the current moment, inputting the first image into the image recognition module to identify at least one target; in response to the at least one target including the tracking target, driving the pan-tilt to move so that the image acquisition device continues to track the identified tracking target. Of course, when the first image is input into the image recognition module, zero targets may be identified, or the at least one identified target does not include the tracking target. In this case, the pan-tilt position may be kept unchanged, and the image acquisition device continues to acquire the first image at this moment, and returns to the step of inputting the first image into the image recognition module.

[0027] S102: Acquire location information related to a target frame corresponding to a tracking target using the first image and the historical image.

[0028] Specifically, the specific implementation process of the above step S102 can be: obtaining the offset value B between the center point of the first image and the center point of the target frame in the first image, and obtaining all historical images in the historical time period before the current moment, and using the first image and all historical images to obtain the total adjustment value T of the target frame position; wherein the position information includes the offset value B and the total adjustment value T. The above historical time period can be 1 second, etc., and the number of all historical images in the above historical time period is related to the frame rate of the image acquisition device. For example, within 1 second, the image acquisition device can collect 10 historical images, 25 historical images, etc. In general, under normal tracking conditions, the target frame is generally located at the center of the image, and the position of the target frame within a period of time should be maintained within a certain degree of stable fluctuation adjustment. The larger the offset value B, the greater the probability that the current tracking target is confused, and the greater the probability that it is currently in an abnormal tracking state; the larger the total adjustment value T, the greater the probability that the current tracking target is confused, and the greater the probability that it is currently in an abnormal tracking state. In addition, the present application does not have much restriction on the order of obtaining the offset value B and the total adjustment value T; the offset value B can be obtained first, and then the total adjustment value T, or the total adjustment value T can be obtained first, and then the offset value B is obtained.

[0029] Further, the specific process of obtaining the offset value B may be: obtaining a target frame corresponding to the tracked target from the first image; obtaining a first difference Δx in the horizontal direction and a second difference Δy in the vertical direction between the center point of the first image and the center point of the target frame; taking the sum of the absolute value of the first difference Δx and the absolute value of the second difference Δy as the offset value B, which is expressed by the following formula:

[0030] B = |x1-x2|+|y1-y2|; where x1 is the horizontal coordinate value of the center point of the first image, x2 is the horizontal coordinate value of the center point of the target frame corresponding to the tracked target on the first image; y1 is the vertical coordinate value of the center point of the first image, y2 is the vertical coordinate value of the center point of the target frame corresponding to the tracked target on the first image. The above process of obtaining the offset value B is relatively simple and has a small amount of calculation.

[0031] Of course, in other embodiments, the calculation method of the offset value B may be other, for example, the distance between the center point of the first image and the center point of the target frame is used as the offset value B, which is expressed by the following formula:

[0032] Among them, x1 is the coordinate value of the center point of the first image in the horizontal direction, x2 is the coordinate value of the center point of the target frame corresponding to the tracked target on the first image in the horizontal direction; y1 is the coordinate value of the center point of the first image in the vertical direction, y2 is the coordinate value of the center point of the target frame corresponding to the tracked target on the first image in the vertical direction.

[0033] In addition, when the target frame is a rectangle, the specific process of obtaining the total adjustment value T can be as follows: for the first image and two images at any two adjacent moments in all historical images, obtain the sum of the first distance between the upper boundaries, the second distance between the lower boundaries, the third distance between the left boundaries, and the fourth distance between the right boundaries of the target frames in the two images, and obtain the third difference between the sum and the constant; take the sum of the absolute values ​​of all the third differences as the total adjustment value; and since the first image and each historical image have the same size, they can be in the same coordinate system, and the specific first distance, second distance, third distance, and fourth distance can be calculated using the coordinate values ​​of the target frame boundaries. The calculation formula of the total adjustment value T is expressed as follows:

[0034]

[0035] Among them, l i is the value of the left boundary of the target box corresponding to the tracked target in the image obtained at the i-th moment (this value can be understood as a coordinate), b i is the value of the lower boundary of the target box corresponding to the tracked target in the image obtained at the i-th moment, r i is the value of the right boundary of the target box corresponding to the tracked target in the image obtained at the i-th moment, u i is the upper boundary value of the target box corresponding to the tracked target in the image obtained at the i-th moment, and ε is the normal fluctuation value of the target box adjustment, that is, the constant mentioned above. The process of obtaining the total adjustment value T is relatively simple.

[0036] Of course, in other embodiments, the total adjustment value T may be calculated in other ways, for example, for the first image and any two images at two adjacent moments in all historical images, the distance between the center points of the target frames in the two images is obtained, and the third difference between the distance and the constant is obtained; the sum of the absolute values ​​of all the third differences is taken as the total adjustment value T. It can be expressed as follows:

[0037] Among them, x i ,y i are the center point coordinate values ​​of the target frame corresponding to the tracked target in the image obtained at the i-th moment, and ε is the normal fluctuation value of the target frame adjustment, that is, the constant mentioned above.

[0038] S103: Obtaining a tracking score at the current moment according to the location information.

[0039] Specifically, in this embodiment, the specific implementation process of the above step S103 can be: obtaining a first ratio between the first coefficient α and the offset value B, and a second ratio between the second coefficient γ and the total adjustment value T; wherein the first coefficient and the second coefficient are greater than 0, and the sum is 1; and the sum of the first ratio and the second ratio is used as the tracking score S. It can be expressed as follows:

[0040] Among them, α and γ represent the proportion of different factors in the tracking score. Generally speaking, α+γ=1 and 0<α<0.6, 0<γ<0.6. In this formula, the specific values ​​of α and γ depend on the impact of the actual environment on the tracking effect. The above calculation formula can be used to more accurately evaluate the current tracking status.

[0041] Of course, in other embodiments, the above tracking score may also be related to other factors. For example, before the above step S103, it also includes: obtaining a sub-image corresponding to the target frame from the first image, and obtaining the clarity of the sub-image. The specific process of obtaining the clarity may be: inputting the sub-image into the quality analysis module to analyze and obtain the clarity D of the picture. Under normal tracking conditions, the picture should try to see the tracked target as clearly as possible, that is, the greater the clarity D, the higher the tracking score this time. Based on this, the above step S103 specifically obtains the tracking score S according to the position information and clarity.

[0042] Furthermore, the specific implementation process of obtaining the tracking score S according to the position information and the clarity can be: obtaining a first ratio between the first coefficient α and the offset value B, a second ratio between the second coefficient γ and the total adjustment value T, and a first product between the third coefficient β and the clarity D; wherein the first coefficient α, the second coefficient γ, and the third coefficient β are greater than 0, and the sum is 1; and the sum of the first ratio, the second ratio, and the first product is used as the tracking score S. It can be expressed as follows:

[0043] Among them, α, β, and γ represent the proportion of different factors in the tracking score. Generally speaking, α+β+γ=1 and 0<α<0.6, 0<β<0.4, and 0<γ<0.6. In this formula, the specific values ​​of α, β, and γ depend on the impact of the actual environment on the tracking effect. Generally speaking, the factor that has a greater impact on the tracking effect is whether the position of the target frame is accurate, so the values ​​of α and γ can be greater than β; for example, when the first image is a thermal imaging image, α=0.4, β=0.2, and γ=0.4.

[0044] S104: In response to the tracking score being lower than a preset value, determining that the current tracking is in an abnormal state, and causing the image acquisition device to stop tracking.

[0045] Specifically, the size of the preset value can be set based on experience; after the image acquisition device stops tracking, the pan / tilt head can be driven to return to the initial position. In addition, synchronously with the above step S104, in response to the tracking score being greater than or equal to the preset value, it is determined that the current tracking is in a normal state, and the image acquisition device continues tracking.

[0046] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of an implementation scheme of the target tracking framework of this application. The target tracking framework includes:

[0047] The first execution module 10 is used to enable the image acquisition device to continuously track the tracking target when the first image acquired by the image acquisition device at the current moment contains the tracking target.

[0048] A first acquisition module 12, connected to the first execution module 10, is used to acquire position information related to the target frame corresponding to the tracking target using the first image and the historical image, and obtain a tracking score at the current moment according to the position information;

[0049] The second execution module 14 is connected to the first acquisition module 12, and is used to determine that the current tracking is in an abnormal state and stop the image acquisition device from tracking when the tracking score is lower than a preset value.

[0050] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of an embodiment of the target tracking device of the present application. The target tracking device includes a processor 20 and a memory 22 coupled to each other, which are used to cooperate with each other to implement the target tracking method described in any of the above embodiments. In this embodiment, the processor 20 can also be called a CPU (Central Processing Unit). The processor 20 may be an integrated circuit chip with signal processing capabilities. The processor 20 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0051] In addition, the target tracking device provided in the present application may also include other structures, such as common display screens, communication circuits, etc., which will not be elaborated in detail in the present application.

[0052] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an embodiment of a device with a storage function of the present application. The device 30 with a storage function stores program data 300, and the program data 300 can be executed by a processor to implement the target tracking method described in any of the above embodiments. Among them, the program data 300 can be stored in the above storage device in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage device includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.

[0053] The above are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A target tracking method, It is characterized in that include: In response to the first image acquired by the image acquisition device at the current moment containing the tracking target, the image acquisition device continues to track the tracking target; Acquire location information related to a target frame corresponding to the tracking target using the first image and the historical image; Obtaining a tracking score at the current moment according to the location information; In response to the tracking score being lower than a preset value, determining that the current tracking is in an abnormal state, and causing the image acquisition device to stop tracking; The step of using the first image and the historical image to obtain the position information related to the target frame corresponding to the tracking target includes: Obtain an offset value between a center point of the first image and a center point of the target frame in the first image, obtain all historical images in a historical time period before the current moment, and use the first image and all the historical images to obtain a total adjustment value of the target frame position; wherein the position information includes the offset value and the total adjustment value.

2. The target tracking method according to claim 1, It is characterized in that The step of obtaining the tracking score at the current moment according to the location information includes: Obtaining a first ratio between a first coefficient and the offset value, and a second ratio between a second coefficient and the total adjustment value; wherein the first coefficient and the second coefficient are greater than 0, and the sum of the first coefficient and the second coefficient is 1; The sum of the first ratio and the second ratio is used as the tracking score.

3. The target tracking method according to claim 1, It is characterized in that Before the step of obtaining the tracking score at the current moment according to the position information, the method further includes: obtaining a sub-image corresponding to the target frame from the first image; obtaining the clarity of the sub-image; The step of obtaining the tracking score at the current moment according to the position information includes: obtaining the tracking score according to the position information and the clarity.

4. The target tracking method according to claim 3, It is characterized in that The step of obtaining the tracking score according to the position information and the clarity includes: Obtaining a first ratio between the first coefficient and the offset value, a second ratio between the second coefficient and the total adjustment value, and a first product between the third coefficient and the definition; wherein the first coefficient, the second coefficient, and the third coefficient are greater than 0, and the sum of the coefficients is 1; The sum of the first ratio, the second ratio and the first product is used as the tracking score.

5. The target tracking method according to claim 4, It is characterized in that The first coefficient is greater than 0 and less than 0.6, the second coefficient is greater than 0 and less than 0.6, and the third coefficient is greater than 0 and less than 0.

4.

6. The target tracking method according to claim 1, It is characterized in that The step of obtaining an offset value between a center point of the first image and a center point of the target frame in the first image comprises: Obtaining a target frame corresponding to the tracking target from the first image; Obtaining a first difference in the horizontal direction and a second difference in the vertical direction between the center point of the first image and the center point of the target frame; The sum of the absolute value of the first difference and the absolute value of the second difference is taken as the offset value.

7. The target tracking method according to claim 1, It is characterized in that The step of obtaining the total adjustment value of the target frame position by using the first image and all the historical images comprises: For any two adjacent moments in the first image and all the historical images, obtain a sum of a first distance between upper boundaries, a second distance between lower boundaries, a third distance between left boundaries, and a fourth distance between right boundaries of the target boxes in the two images, and obtain a third difference between the sum and a constant; The sum of the absolute values ​​of all the third differences is taken as the total adjustment value.

8. The target tracking method according to claim 1, It is characterized in that The first image comprises a thermal imaging image.

9. A target tracking device, It is characterized in that include: A processor and a memory, wherein the processor is coupled to the memory and is used to implement the target tracking method according to any one of claims 1 to 8.

10. A device having a storage function, It is characterized in that Program data is stored thereon, and the program data can be executed by a processor to implement the target tracking method according to any one of claims 1 to 8.