Pedestrian target tracking method based on lightweight neural network

Through optical flow matching and clustering technology based on lightweight neural networks, the accuracy problem of pedestrian target tracking in traditional methods under occlusion is solved, and accurate continuous tracking of pedestrian areas and rapid recognition after occlusion are achieved.

CN118692103AInactive Publication Date: 2024-09-24NANYANG INST OF TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410723705.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional neural networks are difficult to accurately identify and track pedestrian targets under occlusion, and can easily lead to tracking failure due to misleading information.

Method used

Using a method based on lightweight neural networks, by obtaining the eight-neighborhood grayscale features, regional position features and grayscale distribution features of pixels in the pedestrian area, the optical flow matching points and optical flow vectors are calculated, and clustered to obtain the movement distance. and direction, predict the position of the next frame, and optimize the similarity threshold based on the degree of optical flow point reduction to improve the accuracy of the prediction results.

Benefits of technology

It achieves more accurate and continuous tracking of pedestrian areas, reduces tracking failures due to occlusion, and improves the efficiency of re-identification of occluded pedestrians.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692103A
    Figure CN118692103A
Patent Text Reader

Abstract

The invention relates to the technical field of image data processing, in particular to a pedestrian target tracking method based on a lightweight neural network, and the method comprises the steps: obtaining a plurality of pedestrian regions in each frame in a monitoring video; obtaining a matching degree between pixel points in adjacent frames of images of each pedestrian area; obtaining an optical flow matching point and an optical flow vector of each pixel point of each pedestrian area in each frame of image; obtaining a prediction position of a next frame of each frame in each pedestrian area; obtaining a plurality of to-be-optimized frames of each pedestrian area; an optimized optical flow point and an optimized clustering cluster are obtained; the prediction result accuracy of the to-be-optimized frame in each pedestrian area is obtained; and based on the accuracy of the prediction result of the to-be-optimized frame in the pedestrian area, combining the prediction position of the next frame of each frame in the pedestrian area, constructing an optical flow field matching model, and tracking the pedestrian area. According to the invention, the accuracy of continuous tracking is improved by enhancing the optical flow matching condition of the marginal region.
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 pedestrian target tracking method based on a lightweight neural network. Background Art

[0002] Pedestrian target tracking in video surveillance is one of the important research directions in the field of computer vision and has broad application prospects in the fields of intelligent monitoring, autonomous driving, and intelligent transportation. Traditional target tracking methods mainly rely on manually designed features and models, which usually require a lot of manual operations and are sensitive to changes in the target's appearance and environment. With the development of deep learning technology, target tracking methods based on deep learning have gradually become a research hotspot and have made many important advances.

[0003] In addition to motion blur, scale transformation, and out-of-plane rotation, pedestrian target tracking may also be affected by static or dynamic obstacles due to the limited range of activity, which may cause the target to be blocked and disappear from the line of sight. For traditional neural networks, when most of the target information is blocked, only edge features are left. At this time, pedestrians cannot be effectively identified and tracked. It is difficult for the neural network to understand the true meaning and location of the target in the image. If the occluder has interference or misleading information, the neural network is likely to mistakenly identify the occluder as a target, resulting in tracking failure. Summary of the invention

[0004] The present invention provides a pedestrian target tracking method based on a lightweight neural network to solve the existing problems.

[0005] The pedestrian target tracking method based on lightweight neural network of the present invention adopts the following technical solutions:

[0006] The present invention proposes a pedestrian target tracking method based on a lightweight neural network, which includes the following steps:

[0007] Obtain several pedestrian areas in each frame of the surveillance video;

[0008] According to the eight-neighborhood grayscale features of the pixels in each frame of each pedestrian area, the regional position features of the pixels and the grayscale distribution features of the pixels, the matching degree between the pixels in the adjacent frame images of each pedestrian area is obtained; according to the matching degree of the pixels in the adjacent frame images of each pedestrian area, the optical flow matching points and optical flow vectors of each pixel in each frame image of each pedestrian area are obtained; the optical flow matching points of the pixels in each frame image of each pedestrian area are clustered to obtain a number of clustering clusters;

[0009] According to the cluster area of ​​each pedestrian region in each frame and the optical flow vector of the optical flow matching point in the cluster, the movement distance and movement direction of each frame in each pedestrian region are obtained; according to the movement distance and direction of each frame in each pedestrian region, the predicted position of the next frame of each frame in each pedestrian region is obtained;

[0010] According to the number of optical flow matching points in each frame in each pedestrian area, the degree of reduction of optical flow points in each frame in each pedestrian area is obtained, and then several frames to be optimized in each pedestrian area are obtained; based on the degree of reduction of optical flow points in the frames to be optimized, the similarity threshold of each frame to be optimized is obtained after reduction, and then the optimized optical flow points and optimized clustering clusters are obtained; according to the optical flow vectors of the optimized optical flow points in the optimized clustering clusters and the movement distance and movement direction of each frame in the pedestrian area, the degree of optimization of the optimized clustering clusters in each frame to be optimized in each pedestrian area is obtained, and then the accuracy of the prediction results of the frames to be optimized in each pedestrian area is obtained;

[0011] Based on the accuracy of the prediction results of the frames to be optimized in the pedestrian area, combined with the predicted position of the next frame of each frame in the pedestrian area, an optical flow field matching model is constructed and the pedestrian area is tracked.

[0012] Furthermore, the matching degree between pixels in adjacent frame images of each pedestrian region is obtained according to the eight-neighborhood grayscale features of the pixels in each frame of each pedestrian region, the regional position features of the pixels, and the grayscale distribution features of the pixels. The corresponding specific calculation formula is:

[0013] The pedestrian area corresponding to each pedestrian area in the next adjacent frame is obtained by the optical flow method;

[0014]

[0015] in, G represents the matching degree between the vth pixel in the tth frame and the mth pixel in the t+1th frame in the i-th pedestrian area; i,t,v G represents the grayscale mean of the eight neighborhoods of the vth pixel in the tth frame in the i-th pedestrian area; i,t+1,m W represents the grayscale mean of the eight neighborhoods of the mth pixel in the t+1th frame in the i-th pedestrian area; i,t,v W represents the Euclidean distance between the vth pixel in the tth frame in the i-th pedestrian area and the pixel in the lower left corner of the image; i,t+1,m S represents the Euclidean distance between the mth pixel in the t+1th frame in the i-th pedestrian area and the pixel in the lower left corner of the image; i,t,v S represents the number of times the gray value of the vth pixel in the tth frame in the i-th pedestrian area appears in the t-th frame image; i,t+1,mIt represents the number of times the gray value of the mth pixel in the t+1th frame in the i-th pedestrian area appears in the t+1th frame image; max() represents the maximum value function; ‖x‖ represents the Euclidean norm of the vector x, and x is the input of the Euclidean norm.

[0016] Furthermore, the optical flow matching point and optical flow vector of each pixel of each pedestrian region in each frame image are obtained according to the matching degree of the pixels in the adjacent frame images of each pedestrian region, and the specific steps include the following:

[0017] The pixel with the highest matching degree corresponding to any pixel in the next frame image is recorded as the preliminary optical flow matching point of the pixel;

[0018] Among all the preliminary optical flow matching points, the preliminary optical flow matching points that are greater than the similarity threshold are recorded as the optical flow matching points of the corresponding pixel points;

[0019] The position change between each pixel with an optical flow matching point and the corresponding optical flow matching point in each frame in each pedestrian area is recorded as the optical flow vector of the optical flow matching point.

[0020] Furthermore, the method of obtaining the movement distance and movement direction of each pedestrian region in each frame according to the cluster area of ​​each pedestrian region in each frame and the optical flow vector of the optical flow matching point in the cluster includes the following specific steps:

[0021] According to the cluster area of ​​each pedestrian region in each frame and the modulus length of the optical flow vector of the optical flow matching point in the cluster, the movement distance of each pedestrian region in each frame is obtained. The corresponding specific calculation formula is:

[0022]

[0023] Among them, L i,t N represents the motion distance of the tth frame in the i-th pedestrian area; i,t represents the number of clusters in the tth frame in the i-th pedestrian area; S i,t,n represents the area of ​​the nth cluster in the tth frame in the i-th pedestrian area, S i,t represents the area of ​​the tth frame in the i-th pedestrian area, s 2 L,i,t,n represents the variance of the modulus of the optical flow vector of the optical flow matching point in the nth cluster in the tth frame in the i-th pedestrian area, μ L,i,t,n Represents the mean value of the modulus of the optical flow vector of the optical flow matching point in the nth cluster in the tth frame in the i-th pedestrian area;

[0024] According to the cluster area of ​​each pedestrian region in each frame and the direction of the optical flow vector of the optical flow matching point in the cluster, the motion direction of each pedestrian region in each frame is obtained. The corresponding specific calculation formula is:

[0025]

[0026] Among them, V i,t represents the motion direction of the tth frame in the i-th pedestrian area; N i,t represents the number of clusters in the tth frame in the i-th pedestrian area; S i,t,n represents the area of ​​the nth cluster in the tth frame in the i-th pedestrian area, S i,t represents the area of ​​the tth frame in the i-th pedestrian area, s 2 V,i,t,n represents the variance of the optical flow vector direction of the optical flow matching point in the nth cluster in the tth frame in the i-th pedestrian area, μ V,i,t,n Represents the mean direction of the optical flow vector of the optical flow matching points in the nth cluster in the tth frame in the i-th pedestrian area.

[0027] Furthermore, the method of obtaining the predicted position of the next frame of each frame in each pedestrian area according to the movement distance and direction of each frame in each pedestrian area includes the following specific steps:

[0028] The movement distance and movement direction of each frame in each pedestrian region are used as the movement distance and movement direction of the next frame of each frame in each pedestrian region, so as to obtain the predicted position of each pedestrian region in the next frame of each frame in each pedestrian region.

[0029] Furthermore, the method of obtaining the degree of reduction of optical flow points in each frame in each pedestrian region according to the number of optical flow matching points in each frame in each pedestrian region, and then obtaining a number of frames to be optimized in each pedestrian region, includes the following specific steps:

[0030] Get the number of optical flow matching points in each frame in each pedestrian area;

[0031] The ratio of the number of optical flow matching points in each frame of any pedestrian area to the number of optical flow matching points in the previous frame is recorded as the reduction degree of optical flow points in each frame of the pedestrian area;

[0032] When the reduction degree of the optical flow points of any frame in any pedestrian area is less than the first threshold, the frame is recorded as the frame to be optimized in the pedestrian area.

[0033] Furthermore, the reduction degree of the optical flow points of the frames to be optimized is used to obtain the reduced similarity threshold of each frame to be optimized, and then to obtain the optimized optical flow points and the optimized clusters, which includes the following specific steps:

[0034] For any frame to be optimized in any pedestrian area, calculate the sum of 0.5 plus the degree of reduction of optical flow points of the frame to be optimized, and multiply the similarity threshold by the sum to be recorded as the reduced similarity threshold of the frame to be optimized;

[0035] According to the reduced similarity threshold of each frame to be optimized, a number of optimized optical flow points of each frame to be optimized are obtained;

[0036] According to the Mean Shift clustering algorithm, the optimized optical flow points of any frame to be optimized are clustered to obtain several clusters, and the area with the largest number of optical flow points within the cluster is obtained and recorded as the optimized clustering cluster of the frame to be optimized.

[0037] Further, the optimization degree of the optimized clustering clusters in each frame to be optimized in each pedestrian area is obtained according to the optical flow vectors of the optimized optical flow points in the optimized clustering clusters and the motion distance and motion direction of each frame in the pedestrian area, and the specific steps include the following:

[0038] Based on the motion distance and motion direction of each frame in the pedestrian area, a prediction vector for each frame in the pedestrian area is obtained;

[0039] According to the number of optimized optical flow points in the optimized clustering clusters in the to-be-optimized frame in each pedestrian region, the optical flow vector and the predicted vector of each optimized optical flow point, the difference degree of motion distance and motion direction between the optical flow vector and the predicted vector of the optimized clustering clusters in each to-be-optimized frame in each pedestrian region is obtained;

[0040] According to the difference degree of motion distance and motion direction between the optical flow vector of the optimized clustered cluster in the frame to be optimized in each pedestrian area and the predicted vector, the Euclidean norm of the difference degree of motion distance and motion direction between the optical flow vector of the optimized clustered cluster in each frame to be optimized in each pedestrian area and the predicted vector is obtained;

[0041] The Euclidean norm of the difference in motion distance and motion direction between the optical flow vector and the predicted vector of the optimized clustering clusters in all frames to be optimized in all pedestrian areas is linearly normalized, and the result is used as the optimization degree of the optimized clustering cluster in each frame to be optimized in each pedestrian area.

[0042] Further, the method of obtaining the difference degree of motion distance and motion direction between the optical flow vector and the prediction vector of the optimized clustering cluster in each frame to be optimized in each pedestrian region according to the number of optimized optical flow points in the optimized clustering cluster in the frame to be optimized in each pedestrian region, the optical flow vector of each optimized optical flow point and the prediction vector includes the following specific steps:

[0043] According to the number of optimized optical flow points in the optimized clusters in the to-be-optimized frame in each pedestrian area, the modulus of the optical flow vector of each optimized optical flow point and the motion distance of the predicted vector, the difference between the motion distance of the optical flow vector of the optimized cluster and the motion distance of the predicted vector is obtained. The corresponding specific calculation formula is:

[0044]

[0045] Among them, ρ L,i,t Indicates the difference between the motion distance of the optical flow vector of the optimized cluster in the tth frame in the i-th pedestrian area and the motion distance of the predicted vector, N ′ i,t represents the number of optimized optical flow points in the optimized cluster in the tth frame in the i-th pedestrian area, L i,t,n represents the modulus of the optical flow vector of the nth optimized optical flow point in the optimized cluster in the tth frame in the i-th pedestrian area, L i,t represents the motion distance of the prediction vector of the tth frame in the i-th pedestrian area;

[0046] According to the number of optimized optical flow points in the optimized clusters in the to-be-optimized frame in each pedestrian area, the direction of the optical flow vector of each optimized optical flow point and the motion direction of the predicted vector, the difference between the motion direction of the optical flow vector of the optimized cluster and the motion direction of the predicted vector is obtained. The corresponding specific calculation formula is:

[0047]

[0048] Among them, ρ V,i,t Indicates the difference between the moving direction of the optical flow vector of the optimized cluster in the tth frame in the i-th pedestrian area and the moving direction of the predicted vector, N ′ i,t represents the number of optimized optical flow points in the optimized cluster in the tth frame in the i-th pedestrian area, V i,t,n represents the direction of the optical flow vector of the nth optimized optical flow point in the optimized cluster in the tth frame in the i-th pedestrian area, V i,t Represents the motion direction of the prediction vector of the tth frame in the i-th pedestrian area.

[0049] Further, the method of obtaining the Euclidean norm of the difference in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in each frame to be optimized and the predicted vector in each pedestrian region according to the difference in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in each frame to be optimized and the predicted vector in each pedestrian region includes the following specific steps:

[0050] The square root of the sum of the squares of the differences in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in any frame to be optimized and the predicted vector is recorded as the Euclidean norm of the differences in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in any frame to be optimized.

[0051] The beneficial effects of the technical solution of the present invention are:

[0052] When the present invention tracks pedestrians in surveillance videos, the pedestrians in the videos may be blocked due to various reasons, resulting in tracking failure. When the pedestrians reappear, they need to be tracked again, which takes a lot of time to re-match them. Therefore, it is necessary to predict the pedestrian area. By analyzing the pixel points in each frame of each pedestrian area, the matching degree between the pixel points in adjacent frame images of each pedestrian area can be obtained, and then the optical flow matching points and optical flow vectors of each pixel point in each frame image of each pedestrian area can be obtained; by clustering the optical flow matching points of the pixel points in each pedestrian area in each frame image, a number of clustering clusters are obtained. In this way, the predicted position of the next frame of each frame in each pedestrian area can be obtained more accurately; then, through the number of optical flow matching points of each frame in each pedestrian area, several frames to be optimized in each pedestrian area are obtained, and according to the degree of reduction of optical flow points in the frames to be optimized, the optimized optical flow points and optimized clustering clusters are further obtained, and the accuracy of the prediction results of the frames to be optimized in each pedestrian area is obtained through the optical flow vectors of the optimized optical flow points in the optimized clustering clusters and the movement distance and movement direction of each frame in the pedestrian area; through the accuracy of the prediction results of the frames to be optimized in the pedestrian area, combined with the predicted position of the next frame of each frame in the pedestrian area, a more accurate continuous tracking effect of the pedestrian area can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 The figure is a flowchart of the steps of the pedestrian target tracking method based on a lightweight neural network of the present invention. DETAILED DESCRIPTION

[0055] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the pedestrian target tracking method based on a lightweight neural network proposed by the present invention, its specific implementation method, structure, features and effects are described in detail as follows in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0056] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0057] The specific scheme of the pedestrian target tracking method based on lightweight neural network provided by the present invention is described in detail below with reference to the accompanying drawings.

[0058] See also Figure 1 , which shows a flowchart of a pedestrian target tracking method based on a lightweight neural network provided by an embodiment of the present invention, the method comprising the following steps:

[0059] Step S001: Acquire several pedestrian areas in each frame of the surveillance video.

[0060] The main purpose of this embodiment is to enhance the recognition of incomplete areas in the video recognition area. Since pedestrians in the video may be blocked due to various reasons, their areas need to be enhanced. Therefore, it is necessary to first obtain the pedestrian area in each frame of the surveillance video.

[0061] Specifically, relevant video data of the surveillance camera is obtained, and pedestrian targets in the image of each frame of the surveillance video are detected and labeled through the YOLO neural network model to obtain several pedestrian areas in each frame.

[0062] It should be noted that this embodiment uses the YOLO neural network to identify all pedestrian targets in each frame of the surveillance video.

[0063] The relevant content of deep neural network is as follows:

[0064] This embodiment uses the YOLO neural network; the data set used is a surveillance video pedestrian image data set.

[0065] The pixels that need to be segmented are divided into two categories, that is, the labeling process of the training set is: single-channel semantic label, the corresponding position pixel belongs to the background class is labeled as 0, and the pedestrian area is labeled as 1; the task of the network is classification, so the loss function used is the cross entropy loss function, and the YOLO neural network output is used to obtain several pedestrian targets in each frame of the surveillance video pedestrian image dataset, and each pedestrian target is regarded as a pedestrian area.

[0066] Step S002: According to the eight-neighborhood grayscale features of the pixels in each frame of each pedestrian area, the regional position features of the pixels and the grayscale distribution features of the pixels, the matching degree between the pixels in adjacent frame images of each pedestrian area is obtained; according to the matching degree of the pixels in adjacent frame images of each pedestrian area, the optical flow matching points and optical flow vectors of each pixel in each frame image of each pedestrian area are obtained; the optical flow matching points of the pixels in each frame image of each pedestrian area are clustered to obtain a plurality of cluster clusters.

[0067] It should be noted that in the actual environment, pedestrians are located and tracked by their characteristic information. However, when the pedestrian target is partially occluded, it is difficult to effectively identify and track pedestrians, and the nervous system is difficult to understand the true meaning of the target. If an optical flow field is constructed for its environment, the optical flow matching point density and the corresponding matching degree interval of the feature are obtained by matching the same pedestrian area target in consecutive frames, and the pedestrian motion trajectory is estimated by the optical flow vector formed by matching the optical flow points. In the new frame, the pedestrian area corresponding to the previous frame is matched with the optical flow, and all the matching successful points that reach the matching degree interval are obtained. When the number of matching successful points is less than half of the original, it is judged that there is occlusion. At this time, the matching requirements are correspondingly reduced according to the degree of reduction of its optical flow points, thereby increasing the matching number of the corresponding optical flow points, and the correlation between the optical flow points after the increase and the predicted results is judged, and finally it is determined whether the corresponding target pedestrian is identified. If the identification is successful, the tracking continues, and if the identification is successful, the tracking stops. When the occluder covers the key information of the target pedestrian, the edge information of the pedestrian is used to make it match successfully, thereby achieving the effect of continuous tracking.

[0068] It should be further explained that, for the optical flow point matching of the same pedestrian area on consecutive frames, since the corresponding pedestrian area has been successfully identified, it is only necessary to match from within the corresponding area, cluster the successfully matched optical flow points, obtain their clusters, and obtain their corresponding density intervals as the conditions for later judging whether their positioning is successful.

[0069] Specifically, for each frame of each pedestrian area in the surveillance video, an optical flow field is constructed, and the pedestrian area corresponding to each pedestrian area in the next adjacent frame is obtained by the optical flow method. The pixel points in each frame of each pedestrian area are matched with the eight-neighborhood grayscale features, regional position features of the pixel points, and group features of the pixel points in the next frame, and the optical flow matching model of the pixel points in each adjacent frame of each pedestrian area is obtained. Then:

[0070]

[0071] in, G represents the matching degree between the vth pixel in the tth frame and the mth pixel in the t+1th frame in the i-th pedestrian area; i,t,v G represents the grayscale mean of the eight neighborhoods of the vth pixel in the tth frame in the i-th pedestrian area; i,t+1,m W represents the grayscale mean of the eight neighborhoods of the mth pixel in the t+1th frame in the i-th pedestrian area; i,t,v W represents the Euclidean distance between the vth pixel in the tth frame in the i-th pedestrian area and the pixel in the lower left corner of the image; i,t+1,m S represents the Euclidean distance between the mth pixel in the t+1th frame in the i-th pedestrian area and the pixel in the lower left corner of the image; i,t,v S represents the number of times the gray value of the vth pixel in the tth frame in the i-th pedestrian area appears in the t-th frame image; i,t+1,m It represents the number of times the gray value of the mth pixel in the t+1th frame in the i-th pedestrian area appears in the t+1th frame image; max() represents the maximum value function; ‖x‖ represents the Euclidean norm of the vector x, and x is the input of the Euclidean norm.

[0072] It should be noted that The cosine similarity model is constructed by three attribute parameters: the eight-neighborhood grayscale mean of the vth pixel in the tth frame in the i-th pedestrian area and the mth pixel in the t+1th frame in the i-th pedestrian area, the position characteristics of the pixel, and the group characteristics of the pixel. The closer the calculated cosine value is to 1, the higher the matching degree between the vth and mth pixels.

[0073] Specifically, the preset similarity threshold of this embodiment is 0.7, which is used as an example for description. Other implementations may be set to other values. The pixel point with the highest matching degree corresponding to any pixel point in the next frame image is recorded as the preliminary optical flow matching point of the pixel point; among all the preliminary optical flow matching points, the preliminary optical flow matching points that are greater than the similarity threshold are recorded as the optical flow matching points of the corresponding pixel points; the position change of each pixel point with an optical flow matching point in each frame in each pedestrian area and the corresponding optical flow matching point is recorded as the optical flow vector of the optical flow matching point, that is, the vector from the coordinates of the pixel point in the image to the coordinates of the corresponding optical flow matching point in the image; the optical flow matching points and optical flow vectors corresponding to each pixel point in each frame of each pedestrian area in the next frame are obtained, and all the optical flow matching points in the next frame of each frame of each pedestrian area are clustered by the Mean Shift clustering algorithm, and the optical flow matching points are divided into several clusters.

[0074] Step S003: According to the area of ​​the cluster of each pedestrian area in each frame and the optical flow vector of the optical flow matching point in the cluster, the movement distance and movement direction of each frame in each pedestrian area are obtained; according to the movement distance and direction of each frame in each pedestrian area, the predicted position of the next frame of each frame in each pedestrian area is obtained.

[0075] It should be noted that by constructing an optical flow field, a cosine similarity model is constructed in the continuous frames to match the optical flow points of the pedestrian area, and the corresponding optical flow matching points and the optical flow point cluster density are obtained. The corresponding pedestrian motion trajectory is inferred based on the optical flow vector formed by the obtained optical flow matching points, and the pedestrian motion is predicted based on its motion trajectory.

[0076] Specifically, the corresponding pedestrian movement distance is inferred based on the size of the acquired optical flow vector, and then the pedestrian movement direction is obtained based on the direction of the optical flow vector, and the pedestrian movement is predicted based on the acquired distance and direction. The corresponding movement distance is obtained based on the area of ​​the corresponding cluster region and the size variance of the optical flow vector of the corresponding cluster cluster. The specific calculation formula for the movement distance of each frame in each pedestrian region is as follows:

[0077]

[0078] Among them, L i,t N represents the motion distance of the tth frame in the i-th pedestrian area; i,t represents the number of clusters in the tth frame in the i-th pedestrian area; S i,t,n represents the area of ​​the nth cluster in the tth frame in the i-th pedestrian area, S i,t represents the area of ​​the tth frame in the i-th pedestrian area, s 2 L,i,t,nrepresents the variance of the modulus of the optical flow vector of the optical flow matching point in the nth cluster in the tth frame in the i-th pedestrian area, μ L,i,t,n Represents the mean value of the modulus of the optical flow vector of the optical flow matching point in the nth cluster in the tth frame in the i-th pedestrian area.

[0079] It should be noted that It indicates the distance of the cluster vectors of the optical flow vectors in the nth cluster in the tth frame in the i-th pedestrian area, which is determined by the area of ​​the cluster and the size of the modulus length variance of the optical flow vectors inside the cluster. The sum of the sizes of all clusters is the motion distance of the tth frame in the i-th pedestrian area. When the area is smaller, the influence of the corresponding cluster is smaller. When the internal variance is larger, it means that the distance of the optical flow vectors inside is more chaotic, not representative, and the influence is smaller.

[0080] Specifically, for the obtained optical flow vector, the inverse tangent function is used to calculate its angle, and the obtained angle is normalized. The corresponding motion direction is obtained according to the area of ​​the corresponding cluster region and the variance of the optical flow vector direction of the corresponding cluster cluster. The specific calculation formula for the motion direction of each frame in each pedestrian region is as follows:

[0081]

[0082] Among them, V i,t represents the motion direction of the tth frame in the i-th pedestrian area; N i,t represents the number of clusters in the tth frame in the i-th pedestrian area; S i,t,n represents the area of ​​the nth cluster in the tth frame in the i-th pedestrian area, S i,t represents the area of ​​the tth frame in the i-th pedestrian area, s 2 V,i,t,n represents the variance of the optical flow vector direction of the optical flow matching point in the nth cluster in the tth frame in the i-th pedestrian area, μ V,i,t,n Represents the mean direction of the optical flow vector of the optical flow matching points in the nth cluster in the tth frame in the i-th pedestrian area.

[0083] It should be noted that Indicates the direction of the optical flow vector in the nth cluster in the tth frame in the i-th pedestrian area, which is determined by the cluster area and the internal directional variance of the cluster. The sum of the directions of all clusters is the motion direction of the tth frame in the i-th pedestrian area. When the area is smaller, the influence of the corresponding cluster is smaller. When the internal variance is larger, it means that the direction of the optical flow vector inside is more chaotic and unrepresentative, and the influence is smaller.

[0084] Specifically, the movement distance and movement direction of each frame in each pedestrian region are used as the movement distance and movement direction of the next frame of each frame in each pedestrian region, so as to obtain the predicted position of each pedestrian region in the next frame of each frame in each pedestrian region.

[0085] Step S004: According to the number of optical flow matching points in each frame in each pedestrian area, the degree of reduction of optical flow points in each frame in each pedestrian area is obtained, and then a number of frames to be optimized in each pedestrian area are obtained; based on the degree of reduction of optical flow points in the frames to be optimized, the reduced similarity threshold of each frame to be optimized is obtained, and then the optimized optical flow points and optimized clustering clusters are obtained; according to the optical flow vectors of the optimized optical flow points in the optimized clustering clusters and the movement distance and movement direction of each frame in the pedestrian area, the degree of optimization of the optimized clustering clusters in each frame to be optimized in each pedestrian area is obtained, and then the accuracy of the prediction results of the frames to be optimized in each pedestrian area is obtained.

[0086] It should be noted that after obtaining the predicted position of the next frame of each pedestrian area, it is necessary to first check whether there is occlusion. This can be achieved by comparing the pedestrian areas of the previous frame and the current frame to construct an optical flow field, and using the cosine similarity model to match the optical flow points. When the number of optical flow matching points is less than half of the number of optical flow matching points in the previous frame, it is determined that occlusion occurs. If the pedestrian is occluded, it is necessary to first determine the occlusion situation. If it is completely occluded, the pedestrian target information will completely disappear and the tracking ends. If it is only partially occluded, in the optical flow field, the optical flow points that match the pedestrian target area in the previous frame may only contain edge information. When constructing the optical flow field of the pedestrian target area of ​​the previous frame and matching it with the optical flow field of all information in the current frame, more matching points are obtained by reducing the degree of reduction of the optical flow matching points. The obtained optical flow matching points are clustered into clusters, and the mean of the optical flow vector length and angle of each cluster is calculated. The mean of each cluster is compared with the prediction result for correlation. If the correlation is greater than the threshold, the area formed by the cluster is judged to be the area of ​​the target pedestrian, and the recognition is successful.

[0087] Specifically, the first threshold value preset in this embodiment is 0.7, which is used as an example for description. Other implementations may be set to other values; the number of optical flow matching points in each frame of each pedestrian area is obtained, and the ratio of the number of optical flow matching points in each frame of any pedestrian area to the number of optical flow matching points in the previous frame is recorded as the degree of reduction of optical flow points in each frame of the pedestrian area; it should be noted that the degree of reduction of the first frame in each pedestrian area is recorded as 1, wherein the first frame of each pedestrian area is determined by the pedestrian area, that is, the first corresponding frame after the pedestrian area is matched by the optical flow method is the first frame of the pedestrian area. When the degree of reduction of optical flow points in any frame in any pedestrian area is less than the first threshold, the frame is recorded as the frame to be optimized in the pedestrian area; the similarity threshold of each frame to be optimized is reduced to obtain more optical flow matching points. Taking the tth frame in the i-th pedestrian area as an example, this frame is the frame to be optimized, and the specific calculation formula of the reduced similarity threshold is:

[0088] cosθ i,t,min =(0.5+γ i,t )×cosθ min

[0089] Among them, cosθ i,t,min is the reduced similarity threshold in the t-th frame in the i-th pedestrian region; γ i,t The degree of reduction of optical flow points in the tth frame in the i-th pedestrian area; cosθ min Represents the similarity threshold.

[0090] It should be noted that when γ i,t The smaller the value, the greater the reduction, and the minimum reduction is set to half of the original similarity threshold. 0.5 in the above formula is the minimum reduction. i,t,min The optimized optical flow points greater than the threshold are obtained for the threshold. After the threshold is lowered, the target pedestrian or the area similar to the target pedestrian may be matched successfully. In this regard, the optimized optical flow points are clustered to obtain the cluster area with the largest number. If the difference between the optical flow vector of the cluster area and the predicted optical flow vector is small, it is judged that the target pedestrian is successfully recognized.

[0091] Specifically, for any frame to be optimized in any pedestrian area, several optimized optical flow points of the frame to be optimized are obtained according to the reduced similarity threshold of the frame, and the optimized optical flow points are clustered using the Mean Shift clustering algorithm to obtain several clusters, and the area with the largest number of optical flow points within the cluster is obtained, which is recorded as the optimized clustering cluster of the frame to be optimized; the optical flow vectors corresponding to all the optimized optical flow points in the optimized clustering cluster are obtained, and the prediction vector of each frame in the pedestrian area is obtained based on the movement distance and movement direction of each frame in the pedestrian area and expressed as (L i,t ,V i,t); the specific calculation formula for the difference between the motion distance of the optical flow vector of the optimized clustered cluster and the motion distance of the predicted vector is:

[0092]

[0093] Among them, ρ L,i,t Indicates the difference between the motion distance of the optical flow vector of the optimized cluster in the tth frame in the i-th pedestrian area and the motion distance of the predicted vector, N ′ i,t represents the number of optimized optical flow points in the optimized cluster in the tth frame in the i-th pedestrian area, L i,t,n represents the modulus of the optical flow vector of the nth optimized optical flow point in the optimized cluster in the tth frame in the i-th pedestrian area, L i,t Represents the motion distance of the prediction vector of the tth frame in the i-th pedestrian region.

[0094] It should be noted that It indicates the degree of difference between the motion distance of the optical flow vector in the optimized clustering cluster and the predicted vector. It is calculated by the square of the difference between the modulus of the optical flow vector of the optimized optical flow point in the optimized clustering cluster and the motion distance of the predicted vector. The larger the value, the greater the degree of difference.

[0095] Specifically, the specific calculation formula for the difference between the moving direction of the optical flow vector of the optimized cluster and the moving direction of the predicted vector is:

[0096]

[0097] Among them, ρ V,i,t Indicates the difference between the moving direction of the optical flow vector of the optimized cluster in the tth frame in the i-th pedestrian area and the moving direction of the predicted vector, N ′ i,t represents the number of optimized optical flow points in the optimized cluster in the tth frame in the i-th pedestrian area, V i,t,n represents the direction of the optical flow vector of the nth optimized optical flow point in the optimized cluster in the tth frame in the i-th pedestrian area, V i,t Represents the motion direction of the prediction vector of the tth frame in the i-th pedestrian area.

[0098] It should be noted that It indicates the degree of difference between the optical flow vector in the optimized clustering cluster and the motion direction of the predicted vector. It is calculated by the square of the difference between the direction of the optical flow vector of the optimized optical flow point in the optimized clustering cluster and the motion direction of the predicted vector. The larger the value, the greater the degree of difference.

[0099] Specifically, according to the difference in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in each frame in each pedestrian area and the predicted vector, the Euclidean norm of the difference in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in each frame in each pedestrian area and the predicted vector is obtained. The specific calculation formula is:

[0100]

[0101] Among them, y i,t , represents the Euclidean norm of the difference in motion distance and motion direction between the optical flow vector of the optimized cluster in the tth frame and the predicted vector in the i-th pedestrian area; ρ L,i,t represents the difference between the motion distance of the optical flow vector of the optimized cluster in the tth frame in the i-th pedestrian area and the motion distance of the predicted vector; ρ V,i,t Indicates the degree of difference between the motion direction of the optical flow vector of the optimized cluster in the tth frame in the i-th pedestrian area and the motion direction of the predicted vector.

[0102] Furthermore, the second threshold preset in this embodiment is 0.8, which is used as an example for description. Other implementations may be set to other values; the Euclidean norm of the difference in motion distance and motion direction between the optical flow vector and the predicted vector of the optimized clustering clusters in all frames to be optimized in all pedestrian regions is linearly normalized, and the result is used as the optimization degree of the optimized clustering cluster in each frame to be optimized in each pedestrian region; if the optimization degree of the optimized clustering cluster in any frame to be optimized in any pedestrian region is greater than the second threshold, the optimized clustering cluster is related to the predicted result and the recognition is successful. If the optimization degree of the optimized clustering cluster in any frame to be optimized in any pedestrian region is less than or equal to the second threshold, the maximum optical flow point clustering cluster of the pedestrian region in the frame to be optimized is less than its threshold, and it is determined that the pedestrian region does not exist in the frame to be optimized, and the tracking is stopped if the recognition fails.

[0103] Step S005: Based on the accuracy of the prediction results of the frames to be optimized in the pedestrian area, combined with the predicted position of the next frame of each frame in the pedestrian area, an optical flow field matching model is constructed and the pedestrian area is tracked.

[0104] It should be noted that in order to ensure the tracking continuity of pedestrian targets in key areas when they are occluded, when it is determined that there is occlusion of pedestrian targets, the frame before the occlusion is used as the detection condition, and the subsequent frames are matched with the optical flow matching model constructed therewith. When the number of matching optical flow points in the corresponding frame reaches half of the number of matching optical flow points in the frame before the occlusion, it indicates that the occlusion is over.

[0105] Specifically, for the predicted position of the next frame in the pedestrian area that is not the frame to be optimized, the next frame in the pedestrian area is matched and identified according to the existing technology of the optical flow method; and for the frame to be optimized, the frame to be optimized is the possible occlusion that causes differences in recognition, based on the accuracy of the prediction result of the frame to be optimized, that is, whether the recognition is successful, if the recognition is successful, the ratio of the number of optimized optical flow points in the pedestrian area in the frame to be optimized to the number of optical flow points in the previous frame is obtained, if it is greater than the third threshold, the occlusion ends, and the third threshold in this embodiment is described as 0.5, if it is less than or equal to the third threshold, it is still in occlusion; if the recognition is unsuccessful, the tracking of the pedestrian area is interrupted.

[0106] So far, for traditional neural network tracking of pedestrian targets, tracking fails when the characteristic information of pedestrian targets is largely obscured. When the pedestrian targets appear again, re-identification will impose a heavy burden on the calculation. Therefore, when the characteristic information of pedestrian targets disappears a lot, the edge information of pedestrian targets can be better identified and detected, so as to achieve the level of continuous tracking.

[0107] At this point, this embodiment is completed.

[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A pedestrian target tracking method based on a lightweight neural network, characterized in that: The method comprises the following steps: Obtain several pedestrian areas in each frame of the surveillance video; According to the eight-neighborhood grayscale features of the pixels in each frame of each pedestrian area, the regional position features of the pixels and the grayscale distribution features of the pixels, the matching degree between the pixels in the adjacent frame images of each pedestrian area is obtained; according to the matching degree of the pixels in the adjacent frame images of each pedestrian area, the optical flow matching points and optical flow vectors of each pixel in each frame image of each pedestrian area are obtained; the optical flow matching points of the pixels in each frame image of each pedestrian area are clustered to obtain a number of clustering clusters; According to the cluster area of ​​each pedestrian region in each frame and the optical flow vector of the optical flow matching point in the cluster, the movement distance and movement direction of each frame in each pedestrian region are obtained; according to the movement distance and direction of each frame in each pedestrian region, the predicted position of the next frame of each frame in each pedestrian region is obtained; According to the number of optical flow matching points in each frame in each pedestrian area, the degree of reduction of optical flow points in each frame in each pedestrian area is obtained, and then several frames to be optimized in each pedestrian area are obtained; based on the degree of reduction of optical flow points in the frames to be optimized, the similarity threshold of each frame to be optimized is obtained after reduction, and then the optimized optical flow points and optimized clustering clusters are obtained; according to the optical flow vectors of the optimized optical flow points in the optimized clustering clusters and the movement distance and movement direction of each frame in the pedestrian area, the degree of optimization of the optimized clustering clusters in each frame to be optimized in each pedestrian area is obtained, and then the accuracy of the prediction results of the frames to be optimized in each pedestrian area is obtained; Based on the accuracy of the prediction results of the frames to be optimized in the pedestrian area, combined with the predicted position of the next frame of each frame in the pedestrian area, an optical flow field matching model is constructed and the pedestrian area is tracked.

2. The pedestrian target tracking method based on lightweight neural network according to claim 1 is characterized in that: According to the eight-neighborhood grayscale features of the pixels in each frame of each pedestrian area, the regional position features of the pixels, and the grayscale distribution features of the pixels, the matching degree between the pixels in adjacent frame images of each pedestrian area is obtained, and the corresponding specific calculation formula is: The pedestrian area corresponding to each pedestrian area in the next adjacent frame is obtained by the optical flow method; in, G represents the matching degree between the vth pixel in the tth frame and the mth pixel in the t+1th frame in the i-th pedestrian area; i,t,v G represents the grayscale mean of the eight neighborhoods of the vth pixel in the tth frame in the i-th pedestrian area; i,t+1,m W represents the grayscale mean of the eight neighborhoods of the mth pixel in the t+1th frame in the i-th pedestrian area; i,t,v W represents the Euclidean distance between the vth pixel in the tth frame in the i-th pedestrian area and the pixel in the lower left corner of the image; i,t+1,m S represents the Euclidean distance between the mth pixel in the t+1th frame in the i-th pedestrian area and the pixel in the lower left corner of the image; i,t,v S represents the number of times the gray value of the vth pixel in the tth frame in the i-th pedestrian area appears in the t-th frame image; i,t+1,m It represents the number of times the gray value of the mth pixel in the t+1th frame in the i-th pedestrian area appears in the t+1th frame image; max() represents the maximum value function; ‖x‖ represents the Euclidean norm of the vector x, and x is the input of the Euclidean norm.

3. The pedestrian target tracking method based on lightweight neural network according to claim 1 is characterized in that: The specific steps of obtaining the optical flow matching point and optical flow vector of each pixel in each frame image of each pedestrian region according to the matching degree of the pixel points in the adjacent frame images of each pedestrian region are as follows: The pixel with the highest matching degree corresponding to any pixel in the next frame image is recorded as the preliminary optical flow matching point of the pixel; Among all the preliminary optical flow matching points, the preliminary optical flow matching points that are greater than the similarity threshold are recorded as the optical flow matching points of the corresponding pixel points; The position change between each pixel with an optical flow matching point and the corresponding optical flow matching point in each frame in each pedestrian area is recorded as the optical flow vector of the optical flow matching point.

4. The pedestrian target tracking method based on lightweight neural network according to claim 1 is characterized in that: The method of obtaining the movement distance and movement direction of each frame in each pedestrian region according to the area of ​​the cluster of each pedestrian region in each frame and the optical flow vector of the optical flow matching point in the cluster, includes the following specific steps: According to the cluster area of ​​each pedestrian region in each frame and the modulus length of the optical flow vector of the optical flow matching point in the cluster, the movement distance of each pedestrian region in each frame is obtained. The corresponding specific calculation formula is: Among them, L i,t N represents the motion distance of the tth frame in the i-th pedestrian area; i,t represents the number of clusters in the tth frame in the i-th pedestrian area; S i,t,n represents the area of ​​the nth cluster in the tth frame in the i-th pedestrian area, S i,t represents the area of ​​the tth frame in the i-th pedestrian area, s 2 L,i,t,n represents the variance of the modulus of the optical flow vector of the optical flow matching point in the nth cluster in the tth frame in the i-th pedestrian area, μ L,i,t,n Represents the mean value of the modulus of the optical flow vector of the optical flow matching point in the nth cluster in the tth frame in the i-th pedestrian area; According to the cluster area of ​​each pedestrian region in each frame and the direction of the optical flow vector of the optical flow matching point in the cluster, the motion direction of each pedestrian region in each frame is obtained. The corresponding specific calculation formula is: Among them, V i,t represents the motion direction of the tth frame in the i-th pedestrian area; N i,t represents the number of clusters in the tth frame in the i-th pedestrian area; S i,t,n represents the area of ​​the nth cluster in the tth frame in the i-th pedestrian area, S i,t represents the area of ​​the tth frame in the i-th pedestrian area, s 2 V,i,t,n represents the variance of the optical flow vector direction of the optical flow matching point in the nth cluster in the tth frame in the i-th pedestrian area, μ V,i,t,n Represents the mean direction of the optical flow vector of the optical flow matching points in the nth cluster in the tth frame in the i-th pedestrian area.

5. The pedestrian target tracking method based on lightweight neural network according to claim 1 is characterized in that: The method of obtaining the predicted position of the next frame of each frame in each pedestrian region according to the movement distance and direction of each frame in each pedestrian region includes the following specific steps: The movement distance and movement direction of each frame in each pedestrian region are used as the movement distance and movement direction of the next frame of each frame in each pedestrian region, so as to obtain the predicted position of each pedestrian region in the next frame of each frame in each pedestrian region.

6. The pedestrian target tracking method based on lightweight neural network according to claim 1 is characterized in that: The specific steps of obtaining the reduction degree of optical flow points in each frame in each pedestrian region according to the number of optical flow matching points in each frame in each pedestrian region, and then obtaining a number of frames to be optimized in each pedestrian region are as follows: Get the number of optical flow matching points in each frame in each pedestrian area; The ratio of the number of optical flow matching points in each frame of any pedestrian area to the number of optical flow matching points in the previous frame is recorded as the reduction degree of optical flow points in each frame of the pedestrian area; When the reduction degree of the optical flow points of any frame in any pedestrian area is less than the first threshold, the frame is recorded as the frame to be optimized in the pedestrian area.

7. The pedestrian target tracking method based on lightweight neural network according to claim 1 is characterized in that: The specific steps of obtaining the reduced similarity threshold of each frame to be optimized based on the degree of reduction of the optical flow points of the frame to be optimized, and then obtaining the optimized optical flow points and the optimized clusters are as follows: For any frame to be optimized in any pedestrian area, calculate the sum of 0.5 plus the degree of reduction of optical flow points of the frame to be optimized, and multiply the similarity threshold by the sum to be recorded as the reduced similarity threshold of the frame to be optimized; According to the reduced similarity threshold of each frame to be optimized, a number of optimized optical flow points of each frame to be optimized are obtained; According to the Mean Shift clustering algorithm, the optimized optical flow points of any frame to be optimized are clustered to obtain several clusters, and the area with the largest number of optical flow points within the cluster is obtained and recorded as the optimized clustering cluster of the frame to be optimized.

8. The pedestrian target tracking method based on lightweight neural network according to claim 1 is characterized in that: The optimization degree of the optimized clustering clusters in each to-be-optimized frame in each pedestrian area is obtained according to the optical flow vectors of the optimized optical flow points in the optimized clustering clusters and the motion distance and motion direction of each frame in the pedestrian area, and the specific steps include the following: Based on the motion distance and motion direction of each frame in the pedestrian area, a prediction vector for each frame in the pedestrian area is obtained; According to the number of optimized optical flow points in the optimized clustering clusters in the to-be-optimized frame in each pedestrian region, the optical flow vector and the predicted vector of each optimized optical flow point, the difference degree of motion distance and motion direction between the optical flow vector and the predicted vector of the optimized clustering clusters in each to-be-optimized frame in each pedestrian region is obtained; According to the difference degree of motion distance and motion direction between the optical flow vector of the optimized clustered cluster in the frame to be optimized in each pedestrian area and the predicted vector, the Euclidean norm of the difference degree of motion distance and motion direction between the optical flow vector of the optimized clustered cluster in each frame to be optimized in each pedestrian area and the predicted vector is obtained; The Euclidean norm of the difference in motion distance and motion direction between the optical flow vector and the predicted vector of the optimized clustering clusters in all frames to be optimized in all pedestrian areas is linearly normalized, and the result is used as the optimization degree of the optimized clustering cluster in each frame to be optimized in each pedestrian area.

9. The pedestrian target tracking method based on lightweight neural network according to claim 8 is characterized in that: The method of obtaining the difference in motion distance and motion direction between the optical flow vector and the prediction vector of the optimized cluster in each frame to be optimized in each pedestrian region according to the number of optimized optical flow points in the optimized cluster in each frame to be optimized, the optical flow vector of each optimized optical flow point, and the prediction vector includes the following specific steps: According to the number of optimized optical flow points in the optimized clusters in the to-be-optimized frame in each pedestrian area, the modulus of the optical flow vector of each optimized optical flow point and the motion distance of the predicted vector, the difference between the motion distance of the optical flow vector of the optimized cluster and the motion distance of the predicted vector is obtained. The corresponding specific calculation formula is: Among them, ρ L,i,t Indicates the difference between the motion distance of the optical flow vector of the optimized cluster in the tth frame in the i-th pedestrian area and the motion distance of the predicted vector, N ′ i,t represents the number of optimized optical flow points in the optimized cluster in the tth frame in the i-th pedestrian area, L i,t,n represents the modulus of the optical flow vector of the nth optimized optical flow point in the optimized cluster in the tth frame in the i-th pedestrian area, L i,t represents the motion distance of the prediction vector of the tth frame in the i-th pedestrian area; According to the number of optimized optical flow points in the optimized clusters in the to-be-optimized frame in each pedestrian area, the direction of the optical flow vector of each optimized optical flow point and the motion direction of the predicted vector, the difference between the motion direction of the optical flow vector of the optimized cluster and the motion direction of the predicted vector is obtained. The corresponding specific calculation formula is: Among them, ρ V,i,t Indicates the difference between the moving direction of the optical flow vector of the optimized cluster in the tth frame in the i-th pedestrian area and the moving direction of the predicted vector, N ′ i,t represents the number of optimized optical flow points in the optimized cluster in the tth frame in the i-th pedestrian area, V i,t,n represents the direction of the optical flow vector of the nth optimized optical flow point in the optimized cluster in the tth frame in the i-th pedestrian area, V i,t Represents the motion direction of the prediction vector of the tth frame in the i-th pedestrian area.

10. The pedestrian target tracking method based on lightweight neural network according to claim 1, characterized in that: The method of obtaining the Euclidean norm of the difference in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in each frame to be optimized and the predicted vector in each pedestrian region according to the difference in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in each frame to be optimized and the predicted vector in each pedestrian region includes the following specific steps: The square root of the sum of the squares of the differences in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in any frame to be optimized and the predicted vector is recorded as the Euclidean norm of the differences in motion distance and motion direction between the optical flow vector of the optimized clustered cluster in any frame to be optimized.

Citation Information

Cited By

  • Unmanned aerial vehicle image transmission method and system for forestry natural enemy delivery

    CN119091334A

  • Cross-camera pedestrian trajectory tracking method, device and system

    CN121617157A

  • A cross-camera pedestrian trajectory tracking method, device and system

    CN121617157B