A pedestrian retrieval method, device, medium and equipment based on video data

By obtaining the predicted trajectory and video acquisition equipment of the target pedestrian, performing pedestrian segmentation and clustering, calculating the correlation degree, and filtering out the target pedestrian segmentation map collection and target acquisition video, the problem of low tracking efficiency and accuracy of target objects in the existing technology is solved, and more efficient pedestrian retrieval is achieved.

CN119516619BActive Publication Date: 2025-04-11ZHEJIANG MEIRI HUDONG NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510090875.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-04-11
Estimated Expiration
2045-01-21

AI Technical Summary

Technical Problem

The prior art is difficult to effectively identify and track target objects in video image retrieval, especially when the target objects deliberately avoid appearing in surveillance cameras, resulting in a decrease in retrieval efficiency and accuracy.

Method used

By obtaining the predicted trajectory set of target pedestrians, obtaining the corresponding video acquisition equipment and initial video acquisition, performing pedestrian segmentation and clustering, calculating the correlation between the pedestrian segmentation map and the target pedestrian, and filtering out the target pedestrian segmentation map set and corresponding target video acquisition.

Benefits of technology

The retrieval accuracy and tracking efficiency of the target pedestrian are improved, the influence of interference factors is reduced through image segmentation and clustering, and the calculation accuracy of pedestrian association degree is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516619B_ABST
    Figure CN119516619B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing, and in particular to a pedestrian retrieval method, device, medium and equipment based on video data, comprising: obtaining a first initial acquisition video according to a first predicted trajectory set, clustering the first initial pedestrian segmentation map to obtain a first initial pedestrian segmentation map set, combining a first similarity between the first initial pedestrian segmentation map and a preset image, and the number of first video acquisition devices corresponding to the first initial pedestrian segmentation map set, obtaining a first correlation degree between the first initial pedestrian segmentation map and a target pedestrian, and screening out a first target acquisition video, eliminating the influence of interference factors on the retrieval results through image segmentation, and characterizing the correlation between the same pedestrian in different first initial acquisition videos and the differences between different pedestrians through clustering, so as to obtain a first correlation degree in combination with the first similarity and the number of first video acquisition devices, thereby improving the retrieval accuracy and tracking accuracy of the target pedestrian.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a pedestrian retrieval method, device, medium and equipment based on video data. Background Art

[0002] Video image retrieval is an important means of public security work. It is of great significance to search for the target object's movement trajectory, behavioral activities, peer contact and other behaviors within a certain period of time from time to time. Due to the large number of cameras in the living environment and their wide distribution, how to find relevant videos of the target object's travel in the massive camera data has become an important and challenging task.

[0003] At present, it is unrealistic to rely solely on human resources to view videos to complete the task of tracking the target object. Therefore, the existing technology relies on face recognition technology to identify and retrieve the target object. However, when the target object deliberately avoids the face appearing in the surveillance camera, the probability of the target object's face being detected will be greatly reduced, which will directly affect the efficiency and accuracy of tracking and make it difficult to meet the tracking requirements.

[0004] Therefore, how to improve tracking accuracy becomes an urgent problem to be solved. Summary of the invention

[0005] In view of the above technical problems, the technical solution adopted by the present invention is a pedestrian retrieval method based on video data, which comprises the following steps:

[0006] A first predicted trajectory set corresponding to the target pedestrian is obtained, wherein the first predicted trajectory set includes M1 first predicted trajectory points and a first predicted passing time period corresponding to each first predicted trajectory point, and M1 refers to an integer greater than 0.

[0007] According to the first predicted trajectory set, the first video acquisition device corresponding to each first predicted trajectory point and the first initial acquisition video of each first video acquisition device within the corresponding first predicted elapsed time period are acquired.

[0008] A plurality of first initial pedestrian segmentation maps corresponding to each first initial collected video are obtained, and all first initial pedestrian segmentation maps corresponding to all first initial collected videos are clustered to obtain K1 first initial pedestrian segmentation map sets, where K1 refers to an integer greater than 0.

[0009] According to each first initial pedestrian segmentation map and the preset image corresponding to the target pedestrian, a first similarity between each first initial pedestrian segmentation map set and the preset image is obtained.

[0010] According to the first similarity and the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set, a first correlation degree between each first initial pedestrian segmentation map and the target pedestrian is obtained.

[0011] According to the first correlation degree, a first target pedestrian segmentation map set is screened out from the K1 first initial pedestrian segmentation map sets.

[0012] The first initial collected video corresponding to the first target pedestrian segmentation map set is determined as the first target collected video for retrieving the target pedestrian.

[0013] The present invention also provides a pedestrian retrieval device based on video data, the pedestrian retrieval device comprising:

[0014] The first trajectory prediction module is used to obtain a first predicted trajectory set corresponding to the target pedestrian, wherein the first predicted trajectory set includes M1 first predicted trajectory points and a first predicted passing time period corresponding to each first predicted trajectory point, and M1 refers to an integer greater than 0.

[0015] The first video acquisition module is used to obtain the first video acquisition device corresponding to each first predicted trajectory point and the first initial acquisition video of each first video acquisition device within the corresponding first predicted elapsed time period according to the first predicted trajectory set.

[0016] The first video processing module is used to obtain several first initial pedestrian segmentation maps corresponding to each first initial collected video, and cluster all the first initial pedestrian segmentation maps corresponding to all the first initial collected videos to obtain K1 first initial pedestrian segmentation map sets, where K1 refers to an integer greater than 0.

[0017] The first similarity calculation module is used to obtain a first similarity between each first initial pedestrian segmentation map set and the preset image according to each first initial pedestrian segmentation map and the preset image corresponding to the target pedestrian.

[0018] The first correlation degree acquisition module is used to obtain the first correlation degree between each first initial pedestrian segmentation map and the target pedestrian according to the first similarity and the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set.

[0019] The first set screening module is used to screen out a first target pedestrian segmentation map set from K1 first initial pedestrian segmentation map sets according to a first correlation degree.

[0020] The first video screening module is used to determine the first initial collected video corresponding to the first target pedestrian segmentation map set as the first target collected video for retrieving the target pedestrian.

[0021] The present invention also provides a non-transitory computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned pedestrian retrieval method based on video data.

[0022] The present invention also provides an electronic device, comprising a processor and the above-mentioned non-transitory computer-readable storage medium.

[0023] The present invention has at least the following beneficial effects: based on the first predicted trajectory set, the first initial collected video is obtained, and the influence of interference factors on the retrieval results is eliminated through image segmentation, and the correlation between the same pedestrian in different first initial collected videos and the difference between different pedestrians are characterized according to the first initial pedestrian segmentation map set, so as to calculate the first correlation degree between each first initial pedestrian segmentation map and the target pedestrian in combination with the first similarity corresponding to each first initial pedestrian segmentation map set and the corresponding number of first video acquisition devices, thereby improving the calculation accuracy of the first correlation degree, thereby improving the retrieval accuracy and tracking accuracy of the target pedestrian. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0025] Figure 1 A flowchart of a pedestrian retrieval method based on video data provided in Embodiment 1 of the present invention;

[0026] Figure 2 A flowchart of a pedestrian retrieval method based on trajectory data provided in Embodiment 2 of the present invention;

[0027] Figure 3 A flowchart of a data processing method for pedestrian retrieval provided in Embodiment 3 of the present invention;

[0028] Figure 4 A schematic structural diagram of a pedestrian retrieval device based on video data provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

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

[0031] Embodiment 1

[0032] The first embodiment provides a pedestrian retrieval method based on video data. The pedestrian retrieval method based on video data includes the following steps: Figure 1 As shown:

[0033] S101, obtaining a first predicted trajectory set corresponding to a target pedestrian, wherein the first predicted trajectory set includes M1 first predicted trajectory points and a first predicted passing time period corresponding to each first predicted trajectory point, where M1 refers to an integer greater than 0.

[0034] Among them, the target pedestrian refers to the pedestrian whose movement trajectory, behavioral activities, peer contacts, etc. within a certain period of time need to be retrieved.

[0035] In order to retrieve the target pedestrian's movement trajectory, behavioral activities, peer contacts and other behaviors within a certain period of time, this embodiment first obtains a first predicted trajectory set corresponding to the target pedestrian within a preset period of time, which is used to predict the trajectory route of the target pedestrian, and then collects the video corresponding to the first predicted trajectory set as the basis for retrieving the target pedestrian.

[0036] In a specific implementation, obtaining a first predicted trajectory set corresponding to the target pedestrian further includes the following steps:

[0037] Obtain the preset trajectory point collection device and the trained trajectory prediction model.

[0038] According to the trajectory point collection device, a first trajectory set corresponding to the target pedestrian is obtained, wherein the first trajectory set includes N first actual trajectory points of the target pedestrian collected by the trajectory point collection device, and a first actual passing time period corresponding to each first actual trajectory point, where N refers to an integer greater than 0.

[0039] The first trajectory set is input into the trained trajectory prediction model to obtain M1 first predicted trajectory points corresponding to the target pedestrian and a first predicted elapsed time period corresponding to each first predicted trajectory point.

[0040] A first predicted trajectory set is acquired according to the M1 first predicted trajectory points and the first predicted elapsed time period corresponding to each first predicted trajectory point.

[0041] Among them, the track point acquisition device can refer to a device such as a wifi device, a public mobile communication base station and a GPS device that can obtain the location area of ​​the target pedestrian. Specifically, the connection range and scanning range of the fixed wifi device are fixed, and the connection range of the public mobile communication base station is also determined, and the GPS device carried or used by the target pedestrian can report the location data of the target pedestrian. Therefore, the location area of ​​the target pedestrian can be obtained based on the wifi device connected or scanned by the target pedestrian, the public mobile communication base station connected to the target pedestrian, and the GPS device carried or used by the target pedestrian, as the basis for obtaining the first target acquisition video for retrieving the target pedestrian.

[0042] The specific trajectory point collection device can be selected by the implementer according to the actual situation.

[0043] The trained trajectory prediction model is used to extract and analyze the features of the first actual trajectory point and the first actual elapsed time period in the input first trajectory set, and output M1 first predicted trajectory points corresponding to the target pedestrian and the first predicted elapsed time period corresponding to each first predicted trajectory point, thereby obtaining the first predicted trajectory set as the basis for obtaining the first target acquisition video for retrieving the target pedestrian.

[0044] In the above, the trajectory of the target pedestrian is predicted based on the preset trajectory point acquisition device and the trained trajectory prediction model, and the first predicted trajectory set is obtained, which clarifies the video source when retrieving the target pedestrian, provides a data basis for obtaining the first target acquisition video for retrieving the target pedestrian, and improves the retrieval accuracy of the target pedestrian.

[0045] In a specific implementation, the track point collection device includes a wifi device, a public mobile communication base station and a GPS device. According to the track point collection device, obtaining the first track set corresponding to the target pedestrian also includes the following steps:

[0046] The wifi devices connected to the target pedestrian, the first connection range and the first connection time period corresponding to each connected wifi device, as well as the wifi devices scanned by the target pedestrian, the scanning range and the scanning time period corresponding to each scanned wifi device are obtained.

[0047] The public mobile communication base station to which the target pedestrian is connected, and the second connection range and second connection time period corresponding to each public mobile communication base station are acquired.

[0048] The GPS device corresponding to the target pedestrian and the GPS data set collected by each GPS device are obtained, wherein the GPS data set includes the GPS positioning data of the target pedestrian and the positioning time corresponding to each GPS positioning data.

[0049] According to all the first connection ranges, all the scanning ranges, all the second connection ranges and all the GPS positioning data, a first actual trajectory point corresponding to the target pedestrian is obtained.

[0050] According to all the first connection time periods, all the scanning time periods, all the second connection time periods and all the positioning times, the first actual passing time period corresponding to each first actual track point is acquired.

[0051] Among them, the connection range and scanning range of the fixed wifi device are fixed, so the first actual trajectory point and the corresponding first actual passing time period corresponding to the target pedestrian can be determined according to the wifi device connected to the target pedestrian and the scanned wifi device; the connection range of the public mobile communication base station is determined, so the second connection range and the second connection time period corresponding to each connected public mobile communication base station can be obtained according to the public mobile communication base station connected to the target pedestrian; the GPS device carried or used by the target pedestrian can report the location data of the target pedestrian, so the GPS positioning data of the target pedestrian and the positioning time corresponding to each GPS positioning data can be obtained according to the GPS device, which serves as the basis for predicting the trajectory of the target pedestrian.

[0052] In a specific implementation, according to all the first connection ranges, all the scanning ranges, all the second connection ranges and all the GPS positioning data, obtaining the first actual track point corresponding to the target pedestrian further includes the following steps:

[0053] According to all the first connection ranges and all the scanning ranges, n1 first candidate trajectory points corresponding to the target pedestrian are obtained, where n1 refers to an integer greater than 0.

[0054] According to all the second connection ranges, n2 second candidate trajectory points corresponding to the target pedestrian are obtained, where n2 is an integer greater than 0.

[0055] According to n1 first candidate trajectory points, n2 second candidate trajectory points and all GPS positioning data, a first actual trajectory point corresponding to the target pedestrian is obtained.

[0056] Among them, the first candidate trajectory point is a location range determined based on the actual location information of the target pedestrian represented by the wifi device, the second candidate trajectory point is a location range determined based on the actual location information of the target pedestrian represented by the public mobile communication base station, and the GPS positioning data may refer to the longitude and latitude of the actual location of the target pedestrian. By combining all the first candidate trajectory points, all the second candidate trajectory points and all the GPS positioning data, the first actual trajectory point representing the actual location information of the target pedestrian is obtained.

[0057] In the above, the first candidate trajectory point is determined based on the actual location information of the target pedestrian represented by the wifi device, the second candidate trajectory point is determined based on the actual location information of the target pedestrian represented by the public mobile communication base station, and the first actual trajectory point is obtained in combination with the longitude and latitude of the actual location of the target pedestrian, thereby improving the accuracy of obtaining the first actual trajectory point.

[0058] In a specific implementation, obtaining n1 first candidate trajectory points corresponding to the target pedestrian according to all the first connection ranges and all the scanning ranges further includes the following steps:

[0059] If any first connection range has no intersection with other first connection ranges and the scanning range, any first connection range is taken as a first candidate trajectory point.

[0060] If any scanning range has no intersection with other scanning ranges and the first connection range, any scanning range is taken as a first candidate trajectory point.

[0061] If any first connection range intersects with other first connection ranges or scanning ranges, any first connection range and other first connection ranges or scanning ranges intersecting with any first connection range are taken together as a first candidate trajectory point.

[0062] If any scanning range has an intersection with other scanning ranges or the first connection range, any scanning range and other scanning ranges or the first connection range intersecting with any first scanning range are taken together as a first candidate trajectory point.

[0063] Traverse all first connection ranges and all scanning ranges to obtain n1 first candidate trajectory points corresponding to the target pedestrian.

[0064] As described above, based on the positional relationship between all the first connection ranges and all the scanning ranges, several non-intersecting first candidate trajectory points are obtained, thereby clarifying part of the actual trajectory information of the target pedestrian, providing a data basis for predicting the complete trajectory of the target pedestrian, and improving the accuracy of the first predicted trajectory set and the retrieval accuracy of the target pedestrian.

[0065] In a specific implementation, obtaining n2 second candidate trajectory points corresponding to the target pedestrian according to all the second connection ranges further includes the following steps:

[0066] If any second connection range has no intersection with any other second connection range, any second connection range is taken as a second candidate trajectory point.

[0067] If any second connection range intersects with other second connection ranges, any second connection range and other second connection ranges intersecting with any second connection range are taken together as a second candidate trajectory point.

[0068] Traverse all the second connection ranges to obtain n2 second candidate trajectory points corresponding to the target pedestrian.

[0069] As described above, based on the positional relationship between all the second connection ranges, several non-intersecting second candidate trajectory points are obtained, thereby clarifying part of the actual trajectory information of the target pedestrian, providing a data basis for predicting the complete trajectory of the target pedestrian, and improving the accuracy of the first predicted trajectory set and the retrieval accuracy of the target pedestrian.

[0070] In a specific implementation, obtaining the first actual trajectory point corresponding to the target pedestrian according to n1 first candidate trajectory points, n2 second candidate trajectory points and all GPS positioning data further includes the following steps:

[0071] If any first candidate trajectory point has no intersection with other first candidate trajectory points and second candidate trajectory points, any first candidate trajectory point is taken as a first actual trajectory point.

[0072] If any second candidate trajectory point has no intersection with other second candidate trajectory points and the first candidate trajectory point, any second candidate trajectory point is taken as a first actual trajectory point.

[0073] If any first candidate trajectory point intersects with other first candidate trajectory points or second candidate trajectory points, any first candidate trajectory point and other first candidate trajectory points or second candidate trajectory points intersecting with any first candidate trajectory point are taken together as a first actual trajectory point.

[0074] If any second candidate trajectory point intersects with other second candidate trajectory points or first candidate trajectory points, any second candidate trajectory point and other second candidate trajectory points or first candidate trajectory points intersecting with any second candidate trajectory point are taken together as a first actual trajectory point.

[0075] If any GPS positioning data is not within the range of the first candidate trajectory point and the second candidate trajectory point, a third candidate trajectory point corresponding to any GPS positioning data is obtained according to the preset radius and the GPS positioning data.

[0076] Each third candidate trajectory point is taken as a first actual trajectory point.

[0077] Traverse n1 first candidate trajectory points, n2 second candidate trajectory points and all GPS positioning data to obtain the first actual trajectory point corresponding to the target pedestrian.

[0078] As described above, based on the positional relationship between all the first candidate trajectory points and all the second candidate trajectory points, combined with the GPS positioning data and the positional relationship between the first candidate trajectory points and the second candidate trajectory points, the first actual trajectory point is obtained, thereby clarifying all the actual trajectory information of the target pedestrian, providing a data basis for predicting the complete trajectory of the target pedestrian, and improving the accuracy of the first predicted trajectory set and the retrieval accuracy of the target pedestrian.

[0079] In a specific implementation, according to all the first connection time periods, all the scanning time periods, all the second connection time periods and all the positioning times, obtaining the actual passing time period corresponding to each first actual trajectory point further includes the following steps:

[0080] According to the first connection range, scanning range, second connection range and GPS positioning data corresponding to each first actual track point, the first connection time period, scanning time period, second connection time period and positioning time corresponding to each first actual track point are obtained.

[0081] The union of the first connection time period, all scanning time periods, all second connection time periods and all positioning times corresponding to each first actual trajectory point is determined as the actual passing time period corresponding to each first actual trajectory point.

[0082] As described above, based on the positional relationship between all the first connection ranges, scanning ranges, second connection ranges and GPS positioning data, the actual time period corresponding to each first actual trajectory point is obtained, thereby clarifying the actual trajectory information of the target pedestrian, providing a data basis for predicting the complete trajectory of the target pedestrian, and improving the accuracy of the first predicted trajectory set and the retrieval accuracy of the target pedestrian.

[0083] In a specific implementation, the pedestrian retrieval method based on video data further includes the following steps:

[0084] An initial trajectory prediction model and several real trajectory set samples are obtained, wherein each real trajectory set sample includes A real trajectory point samples of a preset pedestrian and a real passing time period sample corresponding to each real trajectory point sample.

[0085] For any real trajectory set sample, B real trajectory point samples and corresponding real time period samples in any real trajectory set sample are randomly selected to form the model input sample.

[0086] The model input sample is input into the initial trajectory prediction model to obtain the corresponding A predicted trajectory point samples and the predicted time period sample corresponding to each predicted trajectory point sample.

[0087] According to the A predicted trajectory point samples and the predicted time period sample corresponding to each predicted trajectory point sample, a predicted trajectory set sample is obtained.

[0088] According to any real trajectory set sample and the corresponding predicted trajectory set sample, the model sub-loss corresponding to any real trajectory set sample is obtained.

[0089] All true trajectory set samples are traversed, and the sum of the model sub-losses corresponding to all true trajectory set samples is determined as the total model loss of the initial trajectory prediction model.

[0090] The parameters of the initial trajectory prediction model are adjusted according to the total model loss until the model sub-loss converges and the trained trajectory prediction model is obtained.

[0091] As described above, the initial trajectory prediction model is trained based on the real trajectory set samples, the accuracy of the model is characterized according to the similarity between the real trajectory set samples and the corresponding predicted trajectory set samples, and the parameters of the initial trajectory prediction model are adjusted according to the gradient descent method based on the total loss of the model, thereby improving the accuracy of the trained trajectory prediction model, thereby improving the accuracy of the first predicted trajectory set and the retrieval accuracy of the target pedestrian.

[0092] S102: Acquire, according to the first predicted trajectory set, a first video acquisition device corresponding to each first predicted trajectory point and a first initial acquisition video of each first video acquisition device within a corresponding first predicted elapsed time period.

[0093] Among them, the first video acquisition device may refer to a surveillance camera, which is used to collect behavior data of pedestrians, vehicles and other objects within a certain range.

[0094] In the above, the first initial collected video is obtained based on the first predicted trajectory set and used as the video basis for retrieving the target pedestrian, thereby improving the retrieval accuracy of the target pedestrian.

[0095] S103, obtaining a plurality of first initial pedestrian segmentation maps corresponding to each first initial collected video, and clustering all first initial pedestrian segmentation maps corresponding to all first initial collected videos to obtain K1 first initial pedestrian segmentation map sets, where K1 refers to an integer greater than 0.

[0096] Among them, the first initial collected video includes not only the behavior video of pedestrians, but also the video information of other interference factors such as vehicles, buildings, animals, etc. Therefore, each frame of the first initial collected video is firstly segmented, and the first initial pedestrian segmentation map is obtained as the processing target to eliminate the influence of other interference factors on the retrieval results.

[0097] The same pedestrian may appear successively within the acquisition range of multiple first video acquisition devices, and thus appear successively in multiple first initial acquisition videos. Therefore, all first initial pedestrian segmentation maps corresponding to all first initial acquisition videos are clustered to obtain a set of K1 first initial pedestrian segmentation maps, which are used to characterize the correlation between the same pedestrian in different first initial acquisition videos and the differences between different pedestrians.

[0098] In a specific implementation, obtaining a plurality of first initial pedestrian segmentation maps corresponding to each first initial acquisition video, and clustering all first initial pedestrian segmentation maps corresponding to all first initial acquisition videos, and obtaining a set of K1 first initial pedestrian segmentation maps further includes the following steps:

[0099] According to the preset first frame rate, a plurality of first captured image frames corresponding to each first initial captured video are acquired.

[0100] Image segmentation is performed on each first acquired image frame according to a preset image segmentation algorithm, and a plurality of first initial pedestrian segmentation maps corresponding to each first acquired image frame are obtained.

[0101] All first initial pedestrian segmentation maps corresponding to all first initial collected videos are clustered according to a preset clustering algorithm to obtain K1 first initial pedestrian segmentation map sets.

[0102] The preset first frame rate is determined by the corresponding first video acquisition device.

[0103] Among them, those skilled in the art know that any image segmentation algorithm and any clustering algorithm in the prior art fall within the protection scope of the present invention, and will not be described in detail here.

[0104] In the above, image segmentation is performed on the first initial collected video to obtain a first initial pedestrian segmentation map, and all the first initial pedestrian segmentation maps are clustered to obtain K1 first initial pedestrian segmentation map sets, so as to characterize the correlation between the same pedestrian in different first initial collected videos and the differences between different pedestrians according to the first initial pedestrian segmentation map sets, which serves as the basis for retrieving the target pedestrian, thereby improving the retrieval accuracy of the target pedestrian.

[0105] S104: Obtain a first similarity between each set of first initial pedestrian segmentation maps and the preset image according to each first initial pedestrian segmentation map and the preset image corresponding to the target pedestrian.

[0106] Among them, the preset image may refer to an image taken while the target pedestrian is walking, which may reflect information such as the body characteristics and walking posture characteristics of the target pedestrian, and serve as a reference basis for retrieving the target pedestrian from the video.

[0107] Among them, those skilled in the art know that any image similarity algorithm in the prior art falls within the protection scope of the present invention, and will not be described in detail here.

[0108] In a specific implementation, according to each first initial pedestrian segmentation map and the preset image corresponding to the target pedestrian, obtaining the first similarity between each first initial pedestrian segmentation map set and the preset image further includes the following steps:

[0109] The first image similarity between each first initial pedestrian segmentation image and the preset image is calculated.

[0110] For any first initial pedestrian segmentation map set, an average value of first image similarities between all first initial pedestrian segmentation maps corresponding to any first initial pedestrian segmentation map set and the preset image is used as the first similarity between any first initial pedestrian segmentation map set and the preset image.

[0111] All first initial pedestrian segmentation map sets are traversed to obtain a first similarity between each first initial pedestrian segmentation map set and a preset image.

[0112] In the above, the average value of the first image similarities between all the first initial pedestrian segmentation maps corresponding to the first initial pedestrian segmentation map set and the preset image is used as the first similarity between the corresponding first initial pedestrian segmentation map set and the preset image, which provides a basis for retrieving the first initial collected video with the highest degree of association with the target pedestrian.

[0113] S105: Obtain a first correlation degree between each first initial pedestrian segmentation map and the target pedestrian according to the first similarity and the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set.

[0114] The greater the first similarity corresponding to each first initial pedestrian segmentation map set, the higher the correlation between the first initial pedestrian segmentation map set and the target pedestrian. The greater the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set, the higher the data richness and reliability of the first initial pedestrian segmentation map set.

[0115] Therefore, the first similarity corresponding to each first initial pedestrian segmentation map set and the number of corresponding first video acquisition devices are both positively correlated with the corresponding first association degree.

[0116] In a specific implementation, according to the first similarity and the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set, obtaining the first correlation degree between each first initial pedestrian segmentation map and the target pedestrian further includes the following steps:

[0117] For the i-th first initial pedestrian segmentation map set, according to the first video acquisition device corresponding to the first initial pedestrian segmentation map corresponding to the i-th first initial pedestrian segmentation map set, the first device number of the first video acquisition device corresponding to the i-th first initial pedestrian segmentation map set is obtained, where i=1, 2..., K1.

[0118] According to the first similarity and the first number of devices corresponding to the i-th first initial pedestrian segmentation map set, the first correlation degree corresponding to the i-th first initial pedestrian segmentation map set is obtained:

[0119] Y 1i =(2 / (1+e^(-S i ))-1)×X 1i .

[0120] Where Y 1i It refers to the first correlation degree corresponding to the i-th first initial pedestrian segmentation map set, S i refers to the number of first devices corresponding to the i-th first initial pedestrian segmentation map set, X 1i It refers to the first similarity corresponding to the i-th first initial pedestrian segmentation map set, and e is an exponential function.

[0121] In the above, combined with the first similarity corresponding to each first initial pedestrian segmentation map set and the corresponding number of first video acquisition devices, the first degree of association between each first initial pedestrian segmentation map and the target pedestrian is calculated, which improves the calculation accuracy of the first degree of association and thereby improves the retrieval accuracy of the target pedestrian.

[0122] S106 , selecting a first target pedestrian segmentation map set from the K1 first initial pedestrian segmentation map sets according to the first correlation degree.

[0123] In a specific implementation, according to the first correlation degree, selecting a first target pedestrian segmentation map set from K1 first initial pedestrian segmentation map sets further includes the following steps:

[0124] The first correlation degrees corresponding to the K1 first initial pedestrian segmentation map sets are compared, and the first initial pedestrian segmentation map set corresponding to the largest first correlation degree is determined as the first target pedestrian segmentation map set.

[0125] S107: Determine the first initial collected video corresponding to the first target pedestrian segmentation map set as the first target collected video for retrieving the target pedestrian.

[0126] Among them, the first initial collected video corresponding to the first target pedestrian segmentation map set is determined as the first target collected video for retrieving the target pedestrian. The movement trajectory, behavioral activities, peer contact and other behaviors of the target pedestrian can be analyzed through the first target collected video to provide data support for finding the target object, thereby improving the accuracy of tracking the person.

[0127] In the above, the first initial collected video is obtained based on the first predicted trajectory set, and the influence of interference factors on the retrieval results is eliminated through image segmentation. The correlation between the same pedestrian in different first initial collected videos and the difference between different pedestrians are characterized according to the first initial pedestrian segmentation map set. Therefore, the first similarity corresponding to each first initial pedestrian segmentation map set and the corresponding number of first video acquisition devices are combined to calculate the first correlation degree between each first initial pedestrian segmentation map and the target pedestrian, thereby improving the calculation accuracy of the first correlation degree, thereby improving the retrieval accuracy and tracking accuracy of the target pedestrian.

[0128] Embodiment 2

[0129] The second embodiment provides a pedestrian retrieval method based on trajectory data. The pedestrian retrieval method based on trajectory data includes: Figure 2 As shown:

[0130] S201, obtaining a preset track point collection device, wherein the track point collection device includes a wifi device, a public mobile communication base station and a GPS device.

[0131] Among them, the connection range and scanning range of the fixed wifi device are fixed, and the connection range of the public mobile communication base station is also determined, and the GPS device carried or used by the target pedestrian can report the location data of the target pedestrian. Therefore, the location area of ​​the target pedestrian can be obtained based on the wifi device connected or scanned by the target pedestrian, the public mobile communication base station connected to the target pedestrian, and the GPS device carried or used by the target pedestrian, as the basis for obtaining the second target acquisition video for retrieving the target pedestrian.

[0132] S202, according to the Wi-Fi device connected to the target pedestrian and the scanned Wi-Fi devices, obtain a first connection range and a first connection time period corresponding to each connected Wi-Fi device, and a scanning range and a scanning time period corresponding to each scanned Wi-Fi device.

[0133] S203: According to the public mobile communication base station to which the target pedestrian is connected, a second connection range and a second connection time period corresponding to each connected public mobile communication base station are acquired.

[0134] S204: Obtain a GPS data set corresponding to the target pedestrian according to the GPS device, wherein the GPS data set includes GPS positioning data of the target pedestrian and the positioning time corresponding to each GPS positioning data.

[0135] S205: Acquire a second actual trajectory point corresponding to the target pedestrian according to all first connection ranges, all scanning ranges, all second connection ranges and all GPS positioning data.

[0136] Among them, the first connection range, scanning range, second connection range and GPS positioning data can all represent the location information of the target pedestrian. Then, by combining all the first connection ranges, all the scanning ranges, all the second connection ranges and all the GPS positioning data, several second actual trajectory points corresponding to the target pedestrian can be obtained as the basis for obtaining the second target acquisition video for retrieving the target pedestrian.

[0137] In the above, by combining all the first connection ranges, all the scanning ranges, all the second connection ranges and all the GPS positioning data, the second actual trajectory point corresponding to the target pedestrian is obtained, thereby improving the accuracy of obtaining the second actual trajectory point.

[0138] S206: Acquire a second actual passing time period corresponding to each second actual trajectory point according to all first connection time periods, all scanning time periods, all second connection time periods, and all positioning times.

[0139] As described above, on the basis of the second actual trajectory point, combined with the first connection time period, scanning time period, second connection time period and positioning time, the second actual passing time period corresponding to each second actual trajectory point is obtained, which further supplements the actual trajectory information of the target pedestrian, provides a data basis for predicting the complete trajectory of the target pedestrian, and improves the accuracy of the second predicted trajectory set and the retrieval accuracy of the target pedestrian.

[0140] S207, according to all the second actual trajectory points and the second actual elapsed time period corresponding to each second actual trajectory point, obtain the second video acquisition device corresponding to each second actual trajectory point and the second initial acquisition video of each second video acquisition device in the corresponding second actual elapsed time period.

[0141] Among them, the second video acquisition device can refer to a surveillance camera, which is used to collect behavior data of pedestrians, vehicles and other objects within a certain range.

[0142] In the above, the second initial captured video is obtained based on the second actual trajectory point and the second actual passing time period, and is used as the video basis for retrieving the target pedestrian, thereby improving the retrieval accuracy of the target pedestrian.

[0143] S208: According to the preset image corresponding to the target pedestrian, a second similarity between each second initially collected video and the preset image is obtained.

[0144] In a specific implementation, according to the preset image corresponding to the target pedestrian, obtaining the second similarity between each second initial collected video and the preset image further includes the following steps:

[0145] A plurality of second initial pedestrian segmentation maps corresponding to each second initial collected video are obtained.

[0146] According to each second initial pedestrian segmentation map and the preset image, a second image similarity between each second initial pedestrian segmentation map and the preset image is calculated.

[0147] For any second initial collected video, an average value of the second image similarities between all second initial pedestrian segmentation images corresponding to the second initial collected video and the preset image is taken as the second similarity between any second initial collected video and the preset image.

[0148] All the second initially collected videos are traversed to obtain a second similarity between each second initially collected video and the preset image.

[0149] In the above, image segmentation is performed on the second initial collected video to obtain a second initial pedestrian segmentation map, and the second image similarity between each second initial pedestrian segmentation map and the preset image is calculated respectively to characterize the similarity between the pedestrian in each second initial pedestrian segmentation map and the target pedestrian, and the second similarity between each second initial collected video and the preset image is further obtained to characterize the correlation between each second initial collected video and the target pedestrian, which serves as the basis for retrieving the target pedestrian, thereby improving the retrieval accuracy of the target pedestrian.

[0150] S209: Filter out a second target collected video from all the second initial collected videos according to a comparison result between the second similarity corresponding to the second initial collected video and a preset similarity threshold.

[0151] Among them, when the second similarity corresponding to the second initial collected video is greater than the preset similarity threshold, the corresponding second initial collected video will be determined as the second target collected video, so as to analyze the movement trajectory, behavioral activities, peer contacts and other behaviors of the target pedestrian in a certain time period from the second target collected video, provide data support for finding the target object, and thus improve the accuracy of tracking personnel.

[0152] The specific value of the preset similarity threshold can be set by the implementer according to actual conditions.

[0153] In the above, combined with the location information of the target pedestrian provided by the wifi device, the public mobile communication base station and the GPS device, the second actual trajectory point and the second actual time period corresponding to the target pedestrian are obtained, the actual trajectory information of the target pedestrian is clarified, and then combined with the preset image of the target pedestrian, the second target captured video is screened out from the second initial captured video corresponding to the actual trajectory, thereby improving the accuracy of the second target captured video and thus improving the retrieval accuracy of the target pedestrian.

[0154] Embodiment 3

[0155] The third embodiment provides a data processing method for pedestrian retrieval. The data processing method for pedestrian retrieval includes: Figure 3 As shown:

[0156] S301, obtaining a second initial captured video corresponding to a target pedestrian, and a predicted trajectory point and a second video capturing device corresponding to each second initial captured video.

[0157] In a specific implementation, obtaining the second initial collected video corresponding to the target pedestrian further includes the following steps:

[0158] A second predicted trajectory set corresponding to the target pedestrian is obtained, wherein the second predicted trajectory set includes M2 second predicted trajectory points and a second predicted passing time period corresponding to each second predicted trajectory point, and M2 refers to an integer greater than 0.

[0159] According to the second predicted trajectory set, T second video acquisition devices corresponding to each second predicted trajectory point and the second initial acquisition video of each second video acquisition device within the corresponding second predicted elapsed time period are obtained, where T refers to the total number of second video acquisition devices.

[0160] In the above, the complete predicted trajectory of the target pedestrian is characterized based on the second predicted trajectory set, and the corresponding second initial collected video is obtained according to the second predicted trajectory set as the video basis for retrieving the target pedestrian, thereby improving the retrieval accuracy of the target pedestrian.

[0161] In a specific implementation, obtaining the second predicted trajectory set corresponding to the target pedestrian further includes the following steps:

[0162] The preset trajectory point collection device and the trained trajectory prediction model are obtained, wherein the trajectory point collection device includes a wifi device, a public mobile communication base station and a GPS device.

[0163] According to the wifi device connected to the target pedestrian and the scanned wifi devices, a first connection range and a first connection time period corresponding to each connected wifi device, and a scanning range and a scanning time period corresponding to each scanned wifi device are obtained.

[0164] According to the public mobile communication base station connected to the target pedestrian, a second connection range and a second connection time period corresponding to each connected public mobile communication base station are acquired.

[0165] According to the GPS device, a GPS data set corresponding to the target pedestrian is acquired, wherein the GPS data set includes the GPS positioning data of the target pedestrian and the positioning time corresponding to each GPS positioning data.

[0166] According to all the first connection ranges, all the scanning ranges, all the second connection ranges and all the GPS positioning data, a second actual trajectory point corresponding to the target pedestrian is obtained.

[0167] According to all the first connection time periods, all the scanning time periods, all the second connection time periods and all the positioning times, the second actual passing time period corresponding to each second actual trajectory point is acquired.

[0168] All the second actual trajectory points and the second actual elapsed time period corresponding to each second actual trajectory point are input into the trained trajectory prediction model to obtain a second predicted trajectory set.

[0169] In the above, the location information of the target pedestrian is characterized according to the first connection range, the scanning range, the second connection range and the GPS positioning data, and a number of second actual trajectory points corresponding to the target pedestrian are obtained in combination with all the first connection ranges, all the scanning ranges, all the second connection ranges and all the GPS positioning data. The second actual passing time period corresponding to each second actual trajectory point is obtained in combination with the first connection time period, the scanning time period, the second connection time period and the positioning time, and the actual trajectory information of the target pedestrian is clarified. The complete predicted trajectory of the target pedestrian is obtained in combination with the trained trajectory prediction model, thereby improving the accuracy of the second predicted trajectory set and the retrieval accuracy of the target pedestrian.

[0170] S302: Perform image segmentation on each second initial collected video to obtain a plurality of second initial pedestrian segmentation maps corresponding to each second initial collected video and a collection time corresponding to each second initial pedestrian segmentation map.

[0171] Among them, the second initial collected video includes not only the behavior video of pedestrians, but also the video information of other interference factors such as vehicles, buildings, animals, etc. Therefore, each frame of the second initial collected video is firstly segmented, and the second initial pedestrian segmentation map is obtained as the processing target to eliminate the influence of other interference factors on the retrieval results.

[0172] In a specific implementation, performing image segmentation on each second initial collected video, and obtaining a plurality of second initial pedestrian segmentation maps corresponding to each second initial collected video and a collection time corresponding to each second initial pedestrian segmentation map further includes the following steps:

[0173] According to the preset second frame rate, a plurality of second acquired image frames corresponding to each second initial acquired video and the acquisition time corresponding to each second acquired image frame are acquired.

[0174] Image segmentation is performed on each second acquired image frame according to a preset image segmentation algorithm, and a plurality of second initial pedestrian segmentation maps corresponding to each second acquired image frame are obtained.

[0175] For any second initial pedestrian segmentation map, the acquisition time corresponding to the second acquisition image frame corresponding to any second initial pedestrian segmentation map is determined as the acquisition time corresponding to the any second initial pedestrian segmentation map.

[0176] The preset second frame rate is determined by the corresponding second video acquisition device.

[0177] In the above, image segmentation is performed on each frame of the second initial captured video, and the second initial pedestrian segmentation map is obtained as the processing target, thereby eliminating the influence of other interference factors on the retrieval results, thereby improving the retrieval accuracy of the target pedestrian.

[0178] S303: Cluster all second initial pedestrian segmentation maps corresponding to all second initial collected videos to obtain K2 sets of second initial pedestrian segmentation maps, where K2 is an integer greater than 0.

[0179] Among them, all the second initial pedestrian segmentation maps are clustered to obtain K2 second initial pedestrian segmentation map sets, so as to characterize the correlation between the same pedestrian in different second initial collected videos and the difference between different pedestrians according to the second initial pedestrian segmentation map sets.

[0180] S304, for any second initial pedestrian segmentation map set, calculate the third image similarity between any two second initial pedestrian segmentation maps in the current second initial pedestrian segmentation map set, and determine the average value of all third image similarities corresponding to the current second initial pedestrian segmentation map set as the first clustering reliability corresponding to the current second initial pedestrian segmentation map set.

[0181] Among them, in the same second initial pedestrian segmentation map set, the higher the similarity between the second initial pedestrian segmentation maps, the higher the clustering effect of the corresponding second initial pedestrian segmentation map set, that is, the higher the reliability of the first clustering.

[0182] S305: According to the predicted trajectory points and the second video acquisition devices corresponding to each second initial acquired video, the number of trajectory points and the number of devices corresponding to the current second initial pedestrian segmentation map set are acquired.

[0183] Among them, according to the predicted trajectory points and second video acquisition devices corresponding to each second initial pedestrian segmentation map in the current second initial pedestrian segmentation map set, the number of trajectory points and the number of devices corresponding to the current second initial pedestrian segmentation map set are obtained as the basis for characterizing the richness of the data source of the current second initial pedestrian segmentation map.

[0184] S306: Obtain a third correlation degree between the current second initial pedestrian segmentation map and the target pedestrian according to the first cluster reliability, the number of trajectory points and the number of devices corresponding to the current second initial pedestrian segmentation map set.

[0185] Among them, the larger the number of trajectory points and the number of devices corresponding to each second initial pedestrian segmentation map set are, the higher the data richness and reliability of the second initial pedestrian segmentation map set is.

[0186] Therefore, the first clustering reliability, the number of trajectory points and the number of devices corresponding to each second initial pedestrian segmentation map set are positively correlated with the corresponding third association degree.

[0187] In a specific implementation, according to the first cluster reliability, the number of trajectory points and the number of devices corresponding to the current second initial pedestrian segmentation map set, obtaining the third correlation degree between the current second initial pedestrian segmentation map and the target pedestrian further includes the following steps:

[0188] For the j-th second initial pedestrian segmentation map set, according to the first clustering reliability Z corresponding to the j-th second initial pedestrian segmentation map set j , the number of trajectory points GJ j and the number of devices P j , get the third correlation degree between the jth second initial pedestrian segmentation map set and the target pedestrian:

[0189] Y 3j =(2 / (1+e^(-(α1×P j +α2×GJ j )))-1)×Z j .

[0190] Where Y 3j It refers to the third correlation degree corresponding to the jth second initial pedestrian segmentation map set, P j GJ refers to the number of devices corresponding to the jth second initial pedestrian segmentation map set. j refers to the number of trajectory points corresponding to the jth second initial pedestrian segmentation map set, Z j It refers to the first clustering reliability corresponding to the j-th second initial pedestrian segmentation map set, α1 refers to the first preset weight, α2 refers to the second preset weight, and e is an exponential function.

[0191] As described above, combined with the first clustering reliability, the number of trajectory points and the number of devices corresponding to each second initial pedestrian segmentation map set, the third degree of association between each second initial pedestrian segmentation map and the target pedestrian is calculated, which improves the calculation accuracy of the third degree of association and thereby improves the retrieval accuracy of the target pedestrian.

[0192] S307 : Filter out a third target pedestrian segmentation map set from the K2 second initial pedestrian segmentation map sets according to the third association degrees corresponding to all the second initial pedestrian segmentation map sets.

[0193] In a specific implementation, according to the third correlation degrees corresponding to all the second initial pedestrian segmentation map sets, selecting the third target pedestrian segmentation map set from the K2 second initial pedestrian segmentation map sets further includes the following steps:

[0194] The third association degrees corresponding to the K2 second initial pedestrian segmentation map sets are compared, and the second initial pedestrian segmentation map set corresponding to the largest third association degree is determined as the third target pedestrian segmentation map set.

[0195] S308: Determine the second initial collected video corresponding to the third target pedestrian segmentation map set as the third target collected video for retrieving the target pedestrian.

[0196] Among them, the second initial collected video corresponding to the third target pedestrian segmentation map set is determined as the third target collected video for retrieving the target pedestrian. The movement trajectory, behavioral activities, peer contact and other behaviors of the target pedestrian can be analyzed through the third target collected video to provide data support for finding the target object, thereby improving the accuracy of tracking the person.

[0197] In the above, the third image similarity between the second initial pedestrian segmentation maps in the second initial pedestrian segmentation map set is used to characterize the first clustering reliability corresponding to the second initial pedestrian segmentation map set, and then combined with the first clustering reliability corresponding to the second initial pedestrian segmentation map set, according to the first clustering reliability corresponding to the current second initial pedestrian segmentation map set, the number of trajectory points and the number of devices, to characterize the third correlation degree between the current second initial pedestrian segmentation map and the target pedestrian, thereby improving the accuracy of the third correlation degree, and then improving the accuracy of the third target acquisition video, thereby improving the retrieval accuracy and tracking accuracy of the target pedestrian.

[0198] Embodiment 4

[0199] The fourth embodiment provides a pedestrian retrieval device based on video data. The pedestrian retrieval device based on video data includes: Figure 4 As shown:

[0200] The first trajectory prediction module 41 is used to obtain a first predicted trajectory set corresponding to the target pedestrian, wherein the first predicted trajectory set includes M1 first predicted trajectory points and a first predicted passing time period corresponding to each first predicted trajectory point, and M1 refers to an integer greater than 0.

[0201] The first video acquisition module 42 is used to obtain the first video acquisition device corresponding to each first predicted trajectory point and the first initial acquisition video of each first video acquisition device within the corresponding first predicted elapsed time period according to the first predicted trajectory set.

[0202] The first video processing module 43 is used to obtain several first initial pedestrian segmentation maps corresponding to each first initial collected video, and cluster all the first initial pedestrian segmentation maps corresponding to all the first initial collected videos to obtain K1 first initial pedestrian segmentation map sets, where K1 refers to an integer greater than 0.

[0203] The first similarity calculation module 44 is used to obtain a first similarity between each set of first initial pedestrian segmentation images and the preset image according to each first initial pedestrian segmentation image and the preset image corresponding to the target pedestrian.

[0204] The first association degree acquisition module 45 is used to acquire the first association degree between each first initial pedestrian segmentation map and the target pedestrian according to the first similarity and the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set.

[0205] The first set screening module 46 is configured to screen out a first target pedestrian segmentation map set from the K1 first initial pedestrian segmentation map sets according to a first correlation degree.

[0206] The first video screening module 47 is used to determine the first initial collected video corresponding to the first target pedestrian segmentation map set as the first target collected video for retrieving the target pedestrian.

[0207] In a specific implementation, the first trajectory prediction module 41 further includes:

[0208] The first data acquisition submodule is used to acquire a preset trajectory point acquisition device and a trained trajectory prediction model.

[0209] The first trajectory acquisition submodule is used to acquire a first trajectory set corresponding to the target pedestrian according to the trajectory point acquisition device, wherein the first trajectory set includes N first actual trajectory points of the target pedestrian collected by the trajectory point acquisition device, and a first actual passing time period corresponding to each first actual trajectory point, where N refers to an integer greater than 0.

[0210] The first trajectory prediction submodule is used to input the first trajectory set into the trained trajectory prediction model to obtain M1 first predicted trajectory points corresponding to the target pedestrian and the first predicted elapsed time period corresponding to each first predicted trajectory point.

[0211] The first trajectory prediction set acquisition submodule is used to acquire the first prediction trajectory set according to M1 first prediction trajectory points and the first prediction elapsed time period corresponding to each first prediction trajectory point.

[0212] In a specific implementation, the trajectory point collection device includes a wifi device, and the first trajectory acquisition submodule further includes:

[0213] The Wifi device data acquisition unit is used to acquire the Wifi devices connected to the target pedestrian, the first connection range and the first connection time period corresponding to each connected Wifi device, as well as the Wifi devices scanned by the target pedestrian, the scanning range and the scanning time period corresponding to each scanned Wifi device.

[0214] The first actual trajectory point acquisition unit is used to acquire the first actual trajectory point corresponding to the target pedestrian according to all the first connection ranges and all the scanning ranges.

[0215] The first actual elapsed time period acquisition unit is used to acquire the first actual elapsed time period corresponding to each first actual trajectory point according to the first connection time period and the scanning time period corresponding to each first actual trajectory point.

[0216] In a specific implementation, the first video processing module 43 further includes:

[0217] The first image frame submodule is used to obtain a plurality of first captured image frames corresponding to each first initial captured video according to a preset first frame rate.

[0218] The first image segmentation submodule is used to perform image segmentation on each first acquired image frame according to a preset image segmentation algorithm, and obtain a plurality of first initial pedestrian segmentation maps corresponding to each first acquired image frame.

[0219] The first image clustering submodule is used to cluster all first initial pedestrian segmentation maps corresponding to all first initial collected videos according to a preset clustering algorithm to obtain K1 first initial pedestrian segmentation map sets.

[0220] In a specific implementation, the first similarity calculation module 44 further includes:

[0221] The first image similarity calculation submodule is used to calculate the first image similarity between each first initial pedestrian segmentation image and a preset image.

[0222] The first similarity calculation submodule is used to calculate, for any first initial pedestrian segmentation map set, an average value of the first image similarities between all first initial pedestrian segmentation maps corresponding to any first initial pedestrian segmentation map set and a preset image as the first similarity between any first initial pedestrian segmentation map set and the preset image.

[0223] The first set traversal submodule is used to traverse all first initial pedestrian segmentation map sets and obtain a first similarity between each first initial pedestrian segmentation map set and a preset image.

[0224] In a specific implementation, the first association degree acquisition module 45 further includes:

[0225] The first device quantity acquisition submodule is used to obtain the first device quantity of the first video acquisition device corresponding to the i-th first initial pedestrian segmentation map set according to the first video acquisition device corresponding to the first initial pedestrian segmentation map corresponding to the i-th first initial pedestrian segmentation map set, where i=1, 2..., K1.

[0226] The first correlation degree calculation submodule is used to obtain the first correlation degree corresponding to the i-th first initial pedestrian segmentation map set according to the first similarity and the first device quantity corresponding to the i-th first initial pedestrian segmentation map set:

[0227] Y 1i =(2 / (1+e^(-S i ))-1)×X 1i .

[0228] Where Y 1i It refers to the first correlation degree corresponding to the i-th first initial pedestrian segmentation map set, S i refers to the number of first devices corresponding to the i-th first initial pedestrian segmentation map set, X 1i It refers to the first similarity corresponding to the i-th first initial pedestrian segmentation map set, and e is an exponential function.

[0229] In a specific implementation, the first set screening module 46 further includes:

[0230] The first set screening submodule is used to compare the first correlation degrees corresponding to K1 first initial pedestrian segmentation map sets, and determine the first initial pedestrian segmentation map set corresponding to the largest first correlation degree as the first target pedestrian segmentation map set.

[0231] It should be noted that the information interaction, execution process and other contents between the above modules are based on the same concept as the embodiment of the method of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0232] Embodiment 5

[0233] Embodiment 5 of the present invention provides a non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the steps:

[0234] A first predicted trajectory set corresponding to the target pedestrian is obtained, wherein the first predicted trajectory set includes M1 first predicted trajectory points and a first predicted passing time period corresponding to each first predicted trajectory point, and M1 refers to an integer greater than 0.

[0235] According to the first predicted trajectory set, the first video acquisition device corresponding to each first predicted trajectory point and the first initial acquisition video of each first video acquisition device within the corresponding first predicted elapsed time period are acquired.

[0236] A plurality of first initial pedestrian segmentation maps corresponding to each first initial collected video are obtained, and all first initial pedestrian segmentation maps corresponding to all first initial collected videos are clustered to obtain K1 first initial pedestrian segmentation map sets, where K1 refers to an integer greater than 0.

[0237] According to each first initial pedestrian segmentation map and the preset image corresponding to the target pedestrian, a first similarity between each first initial pedestrian segmentation map set and the preset image is obtained.

[0238] According to the first similarity and the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set, a first correlation degree between each first initial pedestrian segmentation map and the target pedestrian is obtained.

[0239] According to the first correlation degree, a first target pedestrian segmentation map set is screened out from the K1 first initial pedestrian segmentation map sets.

[0240] The first initial collected video corresponding to the first target pedestrian segmentation map set is determined as the first target collected video for retrieving the target pedestrian.

[0241] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchronization Link) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0242] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0243] Embodiment 6

[0244] A sixth embodiment of the present invention provides an electronic device, which includes a processor and the non-transitory computer-readable storage medium in the fifth embodiment of the present invention.

[0245] The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technician familiar with the profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A pedestrian retrieval method based on video data, characterized in that: The pedestrian retrieval method comprises the following steps: A first predicted trajectory set corresponding to a target pedestrian is obtained, wherein the first predicted trajectory set includes M1 first predicted trajectory points and a first predicted passing time period corresponding to each first predicted trajectory point, where M1 refers to an integer greater than 0, and the obtaining of the first predicted trajectory set corresponding to the target pedestrian further includes the following steps: Obtain the preset trajectory point collection device and the trained trajectory prediction model; According to the trajectory point collection device, a first trajectory set corresponding to the target pedestrian is obtained, wherein the first trajectory set includes N first actual trajectory points of the target pedestrian collected by the trajectory point collection device, and a first actual passing time period corresponding to each first actual trajectory point, where N is an integer greater than 0; Inputting the first trajectory set into the trained trajectory prediction model to obtain M1 first predicted trajectory points corresponding to the target pedestrian and a first predicted elapsed time period corresponding to each first predicted trajectory point; Acquire a first predicted trajectory set according to the M1 first predicted trajectory points and a first predicted elapsed time period corresponding to each first predicted trajectory point; According to the first predicted trajectory set, a first video acquisition device corresponding to each first predicted trajectory point and a first initial acquisition video of each first video acquisition device within a corresponding first predicted elapsed time period are acquired; A plurality of first initial pedestrian segmentation maps corresponding to each first initial collected video are obtained, and all first initial pedestrian segmentation maps corresponding to all first initial collected videos are clustered to obtain K1 sets of first initial pedestrian segmentation maps, where K1 is an integer greater than 0; According to each first initial pedestrian segmentation map and the preset image corresponding to the target pedestrian, a first similarity between each first initial pedestrian segmentation map set and the preset image is obtained; Acquire a first correlation degree between each first initial pedestrian segmentation map and the target pedestrian according to the first similarity and the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set; According to the first association degree, a first target pedestrian segmentation map set is selected from K1 first initial pedestrian segmentation map sets; The first initial collected video corresponding to the first target pedestrian segmentation map set is determined as the first target collected video for retrieving the target pedestrian.

2. The pedestrian retrieval method based on video data according to claim 1, characterized in that: The track point collection device includes a wifi device, a public mobile communication base station and a GPS device. The step of obtaining the first track set corresponding to the target pedestrian according to the track point collection device also includes the following steps: Obtain the wifi device connected to the target pedestrian, the first connection range and the first connection time period corresponding to each connected wifi device, and the wifi device scanned by the target pedestrian, the scanning range and the scanning time period corresponding to each scanned wifi device; Acquire the public mobile communication base station to which the target pedestrian is connected, and the second connection range and second connection time period corresponding to each public mobile communication base station; Obtaining a GPS device corresponding to a target pedestrian and a GPS data set collected by each GPS device, wherein the GPS data set includes GPS positioning data of the target pedestrian and a positioning time corresponding to each GPS positioning data; Acquire a first actual trajectory point corresponding to the target pedestrian according to all first connection ranges, all scanning ranges, all second connection ranges and all GPS positioning data; According to all the first connection time periods, all the scanning time periods, all the second connection time periods and all the positioning times, the first actual passing time period corresponding to each first actual track point is acquired.

3. The pedestrian retrieval method based on video data according to claim 1, characterized in that: The step of obtaining a plurality of first initial pedestrian segmentation maps corresponding to each first initial collected video, clustering all first initial pedestrian segmentation maps corresponding to all first initial collected videos, and obtaining a set of K1 first initial pedestrian segmentation maps further includes the following steps: According to a preset first frame rate, a plurality of first captured image frames corresponding to each first initial captured video are acquired; Performing image segmentation on each first acquired image frame according to a preset image segmentation algorithm to obtain a plurality of first initial pedestrian segmentation images corresponding to each first acquired image frame; All first initial pedestrian segmentation maps corresponding to all first initial collected videos are clustered according to a preset clustering algorithm to obtain K1 first initial pedestrian segmentation map sets.

4. The pedestrian retrieval method based on video data according to claim 1, characterized in that: The step of obtaining the first similarity between each first initial pedestrian segmentation map set and the preset image corresponding to the target pedestrian according to each first initial pedestrian segmentation map and the preset image further comprises the following steps: Calculating a first image similarity between each first initial pedestrian segmentation image and the preset image; For any first initial pedestrian segmentation map set, taking an average of first image similarities between all first initial pedestrian segmentation maps corresponding to the current first initial pedestrian segmentation map set and the preset image as the first similarity between the current first initial pedestrian segmentation map set and the preset image; All first initial pedestrian segmentation map sets are traversed to obtain a first similarity between each first initial pedestrian segmentation map set and the preset image.

5. The pedestrian retrieval method based on video data according to claim 1, characterized in that: The step of obtaining the first correlation degree between each first initial pedestrian segmentation map and the target pedestrian according to the first similarity and the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set further comprises the following steps: For the i-th first initial pedestrian segmentation map set, according to the first video acquisition device corresponding to the first initial pedestrian segmentation map corresponding to the i-th first initial pedestrian segmentation map set, obtain the first device number of the first video acquisition device corresponding to the i-th first initial pedestrian segmentation map set, where i=1, 2..., K1; According to the first similarity and the first number of devices corresponding to the i-th first initial pedestrian segmentation map set, a first correlation degree corresponding to the i-th first initial pedestrian segmentation map set is obtained: AND 1i =(2 / (1+e^(-S i ))-1)×X 1i ; Where Y 1i It refers to the first correlation degree corresponding to the i-th first initial pedestrian segmentation map set, S i refers to the first number of devices corresponding to the i-th first initial pedestrian segmentation map set, X 1i It refers to the first similarity corresponding to the i-th first initial pedestrian segmentation map set, and e is an exponential function.

6. The pedestrian retrieval method based on video data according to claim 5, characterized in that: The step of selecting a first target pedestrian segmentation map set from K1 first initial pedestrian segmentation map sets according to the first association degree further comprises the following steps: The first correlation degrees corresponding to the K1 first initial pedestrian segmentation map sets are compared, and the first initial pedestrian segmentation map set corresponding to the largest first correlation degree is determined as the first target pedestrian segmentation map set.

7. A pedestrian retrieval device based on video data, characterized in that: The pedestrian retrieval device comprises: The first trajectory prediction module is used to obtain a first predicted trajectory set corresponding to the target pedestrian, wherein the first predicted trajectory set includes M1 first predicted trajectory points and a first predicted time period corresponding to each first predicted trajectory point, where M1 refers to an integer greater than 0. The first trajectory prediction module also includes: A first data acquisition submodule is used to acquire a preset trajectory point acquisition device and a trained trajectory prediction model; A first trajectory acquisition submodule, configured to acquire a first trajectory set corresponding to the target pedestrian according to the trajectory point acquisition device, wherein the first trajectory set includes N first actual trajectory points of the target pedestrian acquired by the trajectory point acquisition device, and a first actual passing time period corresponding to each first actual trajectory point, where N refers to an integer greater than 0; A first trajectory prediction submodule is used to input the first trajectory set into the trained trajectory prediction model to obtain M1 first predicted trajectory points corresponding to the target pedestrian and a first predicted elapsed time period corresponding to each first predicted trajectory point; A first trajectory prediction set acquisition submodule, configured to acquire a first prediction trajectory set according to the M1 first prediction trajectory points and a first predicted elapsed time period corresponding to each first prediction trajectory point; A first video acquisition module, configured to acquire, according to the first predicted trajectory set, a first video acquisition device corresponding to each first predicted trajectory point, and a first initial acquisition video of each first video acquisition device within a corresponding first predicted elapsed time period; A first video processing module is used to obtain a plurality of first initial pedestrian segmentation maps corresponding to each first initial acquisition video, and cluster all first initial pedestrian segmentation maps corresponding to all first initial acquisition videos to obtain K1 sets of first initial pedestrian segmentation maps, where K1 is an integer greater than 0; A first similarity calculation module, configured to obtain a first similarity between each first initial pedestrian segmentation map set and the preset image corresponding to the target pedestrian according to each first initial pedestrian segmentation map and the preset image; A first correlation degree acquisition module, configured to acquire a first correlation degree between each first initial pedestrian segmentation map and the target pedestrian according to the first similarity and the number of first video acquisition devices corresponding to each first initial pedestrian segmentation map set; A first set screening module, configured to screen out a first target pedestrian segmentation map set from K1 first initial pedestrian segmentation map sets according to the first association degree; The first video screening module is used to determine the first initial collected video corresponding to the first target pedestrian segmentation map set as the first target collected video for retrieving the target pedestrian.

8. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the pedestrian retrieval method based on video data as described in any one of claims 1-6.

9. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 8.

Citation Information

Patent Citations

  • A cross-lens pedestrian retrieval method and system based on pedestrian re-identification

    CN109934104A

  • Target detection tracking method, device and apparatus

    CN110717414A