A multi-target tracking method based on UWB and video linkage

By combining UWB positioning and video surveillance, and utilizing the mobility of PTZ cameras and GeoHash position encoding, the problems of incomplete track recording and unstable recognition in multi-target tracking are solved, global monitoring and rapid response are achieved, and the safety production scene is improved. Monitoring effects.

CN117896503BActive Publication Date: 2024-10-18ZHEJIANG UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410091399.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-23
Publication Date
2024-10-18
Estimated Expiration
2044-01-23

AI Technical Summary

Technical Problem

The existing technology has problems in multi-target tracking, such as incomplete trajectory recording, unstable target recognition, limited monitoring coverage and slow search speed due to fixed camera angles. It is especially difficult to achieve full-area tracking and monitoring in safety production scenarios.

Method used

Combining UWB positioning and video surveillance, the mobility of PTZ cameras is used to quickly find and assign the nearest camera for tracking through GeoHash position coding. The camera is dynamically controlled to ensure that the target is always in the center of the video screen, achieving real-time tracking of multiple targets in the entire area.

Benefits of technology

It improves the stability and coverage of multi-target tracking, reduces camera search time, enhances anti-interference capabilities, and ensures full-area monitoring effects in safe production scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117896503B_ABST
    Figure CN117896503B_ABST
Patent Text Reader

Abstract

The present invention discloses a UWB and video linkage multi-target tracking method, which relates to the technical field of video target tracking. It includes: determining the tracking area, establishing a three-dimensional coordinate system of the tracking area; deploying a UWB positioning system and a video monitoring system in the tracking area; obtaining unique coding strings of all unit square areas; calculating the coding strings of the unit square areas where the camera is located; obtaining the real-time three-dimensional coordinates of each mobile target; calculating the position coding string of each mobile target; controlling the camera action to track the mobile target; assigning a separate PTZ camera to each mobile target for tracking, until the mobile target is removed from the multi-target list, then stopping the acquisition of the current mobile target's three-dimensional position and the camera video tracking. The present invention is helpful to realize multi-target dynamic tracking, and is not affected by environmental factors such as light, and has strong anti-interference ability and robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video target tracking, and in particular to a UWB and video linked multi-target tracking method. Background Art

[0002] There are three mainstream existing methods for tracking multiple targets in important production areas such as substations and logistics warehouses. The first is to track only through UWB positioning. This method can only record the trajectory points of the target's movement and cannot obtain the real-time on-site situation of the target; the second is to extract target features and match and track between frame features in multiple consecutive video frames only through video image target detection technology. However, when the target is far away from the camera, making the target smaller in the image or there is an occlusion between the target and the camera, the tracking target is easily lost, the tracking effect is unstable, and the viewing angle of each camera is fixed. When the target appears across the camera's field of view, the effect of identifying and tracking the target again is poor. The third method combines UWB positioning with the camera, which can achieve UWB positioning without loss and real-time video images can be obtained, but the existing method does not fully utilize the mobility of PTZ cameras, fixes the viewing angles of all cameras, and cannot achieve full-domain tracking monitoring due to limited monitoring coverage. There are also problems such as slow camera search speed for close targets and poor tracking effect. Therefore, this paper combines video surveillance and UWB positioning, uses the omnidirectional monitoring mobility of PTZ cameras, and combines the GeoHash location coding method to quickly find and assign the nearest camera for tracking for each moving target in the area. According to the relative position and distance between the target and the camera, the camera is controlled to dynamically track the target so that the target always remains in the center of the video screen, achieving real-time tracking of multiple targets in the entire area without loss, which is helpful for safe production monitoring and subsequent accident cause tracing.

[0003] Therefore, how to provide a UWB and video linkage multi-target tracking method to achieve universal multi-target tracking for various safety production scenarios is a problem that technical personnel in this field urgently need to solve. Summary of the invention

[0004] In view of this, the present invention provides a UWB and video linkage multi-target tracking method, which helps to solve the problems existing in the prior art.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] A UWB and video linkage multi-target tracking method comprises the following steps:

[0007] S1. Determine the tracking area and establish a three-dimensional coordinate system O-xyz of the tracking area;

[0008] S2, deploying a UWB positioning system and a video surveillance system in the tracking area in S1 to obtain three-dimensional positioning data and video surveillance images;

[0009] S3, taking a rectangular area in the three-dimensional coordinate system O-xyz in S1, dividing it into unit square areas, and obtaining unique coding strings for all unit square areas;

[0010] The UWB positioning system in S4 and S2 calculates the coded string of the unit square area where the camera is located;

[0011] S5. Bind the positioning tags to the moving targets in the three-dimensional coordinate system O-xyz one by one, and obtain the real-time three-dimensional coordinates (x tag ,y tag ,z tag );

[0012] S6, calculating the position code string of each moving target;

[0013] S7, searching for an idle camera that is closest to the current moving target, assigning the camera, calculating the camera motion parameters, and controlling the camera motion to track the moving target;

[0014] S8, set the tracking action time interval, repeat S4-S8 for each moving target in the multi-target list, assign a separate PTZ camera to track each moving target, until the moving target is removed from the multi-target list, then stop acquiring the three-dimensional position of the current moving target and camera video tracking.

[0015] In the above method, optionally, the tracking area in S1 is an overlapping area of ​​the target moving area, the UWB positioning system coverage area and the video surveillance coverage area.

[0016] In the above method, optionally, the UWB positioning system in S2 includes several UWB base stations and several positioning tags, and wireless communication between the positioning tags and the base stations is used to obtain the three-dimensional real-time coordinates of the positioning tags in the spatial area covered by the base stations; the video monitoring system includes several PTZ cameras, and the all-round movement of the camera is controlled by the pan-tilt left and right rotation parameters, pan-tilt pitch rotation parameters, and camera zoom parameters.

[0017] In the above method, optionally, in S3, a rectangular area (X, Y) is taken, and the long side is completed to a square area (X, X), and X and X are recursively divided into two equal parts N times to obtain N 2 Unit square areas of the same size are created until the side length of the unit square area is less than 1 meter, and GeoHash position encoding is performed on all unit square areas to obtain unique encoding strings for all unit square areas.

[0018] In the above method, optionally, GeoHash location encoding includes the following steps:

[0019] 1) Divide the unit square area into two intervals, calculate the binary codes bin1 and bin2 of the x-coordinate and y-coordinate, and obtain two binary codes of the same length;

[0020] 2) Cross-combine the x-coordinate and y-coordinate codes to obtain a new binary code bin3, the code length of which is twice that of a single x-coordinate code or a single y-coordinate code;

[0021] 3) For bin3, starting from the 0th bit, divide it into groups of 5 bits, convert each group into a decimal value, and fill the last digit with binary 0 if it is less than 5 bits;

[0022] 4) For each decimal value, find the corresponding Base32 encoded characters and concatenate them together in order to obtain the GeoHash position encoding string.

[0023] In the above method, optionally, in S5, the UWB positioning system pre-collects the three-dimensional coordinates (x cam ,y cam ,z cam ), set the camera's (x cam ,y cam ) coordinates are converted into GeoHash position codes to obtain the code string of the unit square area where the camera is located; in the multi-target list, the relationship between the number of targets to be tracked and the number of PTZ cameras is: if the number of targets to be tracked is ≤ the number of PTZ cameras, a PTZ camera is assigned to each target for tracking; if the number of targets to be tracked is > the number of PTZ cameras, PTZ cameras are assigned to track one by one starting from the first target in the order of target arrangement in the multi-target list, and targets exceeding the number of cameras will not be assigned for tracking.

[0024] In the above method, optionally, in S5, a list of multiple targets to be tracked is generated using the positioning tag ID, the three-dimensional coordinates and PTZ camera parameters of all moving targets are initialized, and the real-time three-dimensional coordinates (x tag ,y tag ,z tag ); Initialize all moving target positions and camera parameters, and set the initial three-dimensional coordinates of all moving targets to (x tag ,y tag ,z tag )=(-1,0,0), the unit is meter, and the PTZ camera parameters are set to (P,T,Z)=(0,0,16).

[0025] In the above method, optionally, in S6, the distance change of the moving target is calculated according to the three-dimensional coordinates of the moving target within a period of time. If the moving distance of the target exceeds the set threshold, the horizontal coordinates at the current moment are GeoHash position encoded to obtain the position encoding string of each moving target; the moving distance change is calculated:

[0026]

[0027] Among them, D change is the moving distance, (x tag1 ,y tag1 ,z tag1 ) is the three-dimensional coordinate of the moving target at the last moment, (x tag2 ,y tag2 ,z tag2 ) is the three-dimensional coordinate of the moving target at the current moment; when D change When it is greater than the set threshold, the moving target is tracked so that the moving target is in the center of the video surveillance screen.

[0028] In the above method, optionally, in S7, the (P, T, Z) motion parameters of the PTZ camera for tracking the moving target are calculated according to the three-dimensional coordinates pre-collected by the allocated PTZ camera and the three-dimensional coordinates of the moving target.

[0029] It can be seen from the above technical scheme that compared with the prior art, the present invention provides a UWB and video linkage multi-target tracking method, which has the following beneficial effects: the method of the present invention has good tracking effect, combines the advantages of UWB positioning and video monitoring, and is universal for multi-target tracking in various safety production scenes; in terms of searching and allocating the camera closest to the target, the method of the present invention uses GeoHash position coding strings for preliminary screening, which reduces the camera traversal process, especially for the search and allocation process of a large number of cameras deployed in a large area, effectively improves the search speed and reduces the tracking response time; the method of the present invention can achieve full coverage of the tracking area, effectively solves the problem that the target is too small to be detected in the image, and the problem that the target is blocked or the target crosses the camera field of view and causes tracking loss, and the tracking effect is stable; the method of the present invention realizes dynamic tracking of multiple targets, allocates a PTZ camera to each mobile target for real-time tracking, and ensures that the mobile target is always in the center of the video screen, and is not affected by environmental factors such as light, and has strong anti-interference ability and robustness. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0031] Figure 1 A flow chart of a UWB and video linkage multi-target tracking method disclosed in the present invention;

[0032] Figure 2 This is a diagram of the effect of UWB and video linkage multi-target tracking disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0035] Reference Figure 1 As shown, the present invention discloses a UWB and video linkage multi-target tracking method, comprising the following steps:

[0036] S1. Determine the tracking area and establish a three-dimensional coordinate system O-xyz of the tracking area;

[0037] S2, deploying a UWB positioning system and a video surveillance system in the tracking area in S1 to obtain three-dimensional positioning data and video surveillance images;

[0038] S3, taking a rectangular area in the three-dimensional coordinate system O-xyz in S1, dividing it into unit square areas, and obtaining unique coding strings for all unit square areas;

[0039] The UWB positioning system in S4 and S2 calculates the coded string of the unit square area where the camera is located;

[0040] S5. Bind the positioning tags to the moving targets in the three-dimensional coordinate system O-xyz one by one, and obtain the real-time three-dimensional coordinates (x tag ,y tag ,z tag );

[0041] S6, calculating the position code string of each moving target;

[0042] S7, searching for an idle camera that is closest to the current moving target, assigning the camera, calculating the camera motion parameters, and controlling the camera motion to track the moving target;

[0043] S8, set the tracking action time interval, repeat S4-S8 for each moving target in the multi-target list, assign a separate PTZ camera to track each moving target, until the moving target is removed from the multi-target list, then stop acquiring the three-dimensional position of the current moving target and camera video tracking.

[0044] Furthermore, the tracking area in S1 is the overlapping area of ​​the target moving area, the UWB positioning system coverage area and the video surveillance coverage area.

[0045] Furthermore, the UWB positioning system in S2 includes several UWB base stations and several positioning tags. Wireless communication between the positioning tags and the base stations is used to obtain the three-dimensional real-time coordinates of the positioning tags in the spatial area covered by the base stations; the video monitoring system includes several PTZ cameras, and the all-round movement of the camera is controlled by the pan-tilt rotation parameters, pan-tilt rotation parameters, and camera zoom parameters.

[0046] Furthermore, in S3, a rectangular area (X, Y) is taken and filled into a square area (X, X) according to the long side. X and X are recursively divided into two equal parts N times to obtain N 2 Unit square areas of the same size are created until the side length of the unit square area is less than 1 meter, and GeoHash position encoding is performed on all unit square areas to obtain unique encoding strings for all unit square areas.

[0047] Furthermore, GeoHash location encoding includes the following steps:

[0048] 1) Divide the unit square area into two intervals, calculate the binary codes bin1 and bin2 of the x-coordinate and y-coordinate, and obtain two binary codes of the same length;

[0049] 2) According to the rule of "starting from the 0th bit, put the x-coordinate code in the even-numbered bits and the y-coordinate code in the odd-numbered bits", the x-coordinate and y-coordinate codes are cross-combined to obtain a new binary code bin3, the code length of which is twice that of a single x-coordinate code or a single y-coordinate code;

[0050] 3) For bin3, starting from the 0th bit, divide it into groups of 5 bits, convert each group into a decimal value, and fill the last digit with binary 0 if it is less than 5 bits;

[0051] 4) For each decimal value, find the corresponding Base32 encoded characters and concatenate them together in order to obtain the GeoHash position encoding string.

[0052] Furthermore, in S5, the UWB positioning system pre-collects the three-dimensional coordinates (x cam ,y cam ,z cam ), set the camera's (x cam ,y cam ) coordinates are converted into GeoHash position codes to obtain the code string of the unit square area where the camera is located; in the multi-target list, the relationship between the number of targets to be tracked and the number of PTZ cameras is: if the number of targets to be tracked is ≤ the number of PTZ cameras, a PTZ camera is assigned to each target for tracking; if the number of targets to be tracked is > the number of PTZ cameras, PTZ cameras are assigned to track one by one starting from the first target in the order of target arrangement in the multi-target list, and targets exceeding the number of cameras will not be assigned for tracking.

[0053] Specifically, the nearest cameras are found according to the matching degree of the position code string, specifically:

[0054] 1) First, based on the GeoHash code string of the target location and the GeoHash code string of the area, match from the first character and gradually determine the smallest unit area where the target is currently located and its unique code string;

[0055] 2) According to the minimum unit square encoding string, match and search for the camera in the current unit square area, which is recorded as the first search;

[0056] 3) According to the side length of the minimum unit square area, the encoding strings of the eight adjacent unit square areas around the unit square area are calculated, and the cameras in the current unit square area are matched and searched, which is recorded as the second search;

[0057] 4) Continuously expand the search range of a unit square area step to the periphery. The number of unit squares that need to be searched each time is calculated according to the following formula, which is recorded as the kth search:

[0058] K = (2k-1) 2 -(2k-3) 2 ,(k∈R,k>1)

[0059] Wherein, K represents the number of unit square areas that need to be searched each time the search range is expanded.

[0060] 5) When the search range is expanded beyond the tracking area, the search of the square unit areas that are beyond the tracking area after expansion is ignored.

[0061] 6) Based on the k-1th and kth search results, determine whether to continue searching:

[0062] ① If the k-1th and kth searches both find cameras in the area, stop searching and return the numbers and locations of all cameras in the area searched twice;

[0063] ② If the camera is found for the k-1th time, but not for the kth time, stop searching and return the numbers and positions of all cameras found for the k-1th time;

[0064] ③ If the camera is not found in the k-1th time, but is found in the kth time, it is necessary to search for the k+1th time. The kth and k+1th times are judged according to the ①-② situations to obtain the numbers and positions of all the found cameras;

[0065] ④ If no camera is found in the area during the k-1th and kth searches, continue to expand the search range until a camera is found in the area, and then make judgments according to ①-③;

[0066] ⑤ If the nearest camera is found to be occupied and other cameras found in the area are idle, the idle camera will be assigned as the target tracking camera; if all cameras found in the area are occupied, continue to expand the search range until an available camera is found.

[0067] Specifically, the horizontal distance between the target and the camera is calculated according to the following formula:

[0068]

[0069] Among them, D tag_to_cam Indicates the horizontal distance from the target to the camera, (x tag ,y tag ) represents the target horizontal coordinate, (xcam ,y cam ) represents the horizontal coordinate of the camera.

[0070] Specifically, camera tracking occupancy means:

[0071] 1) If the camera is not assigned to track any target, it means that the camera is in an idle state;

[0072] 2) If the camera has been assigned a target to track, it means that the camera is in an occupied state;

[0073] 3) If the target tracked by the camera changes due to the movement distance, and the camera closest to the target and in an unoccupied state changes, the camera changes to an idle state;

[0074] 4) If the target tracked by the camera is removed from the multi-target list, the camera changes to an idle state.

[0075] Specifically, to calculate the motion parameters of the PTZ camera, first calculate the angle and distance of the target relative to the camera in the O-xyz coordinate system. The formula is as follows:

[0076]

[0077] Among them, preal represents the horizontal angle of the target relative to the camera, treal represents the pitch angle of the target relative to the camera, and zreal represents the camera magnification. In order to enable the camera to clearly monitor targets at different distances, the camera zoom factor is set at 1 times every 10m.

[0078] Then convert the relative angle and zoom factor into the (P, T, Z) parameters of camera control, the formula is as follows:

[0079]

[0080] In the formula, DEX2HEX is a decimal to hexadecimal conversion function. The actual value needs to be converted into the available parameters inside the camera. Inputting the parameters into the camera control interface can realize the action control of the camera and control the action to reach the calculated (P, T, Z) value.

[0081] Furthermore, in S5, a list of multiple targets to be tracked is generated using the positioning tag ID, the three-dimensional coordinates and PTZ camera parameters of all moving targets are initialized, and the real-time three-dimensional coordinates (x tag ,y tag ,z tag ); Initialize all moving target positions and camera parameters, and set the initial three-dimensional coordinates of all moving targets to (x tag ,ytag ,z tag )=(-1,0,0), the unit is meter, and the PTZ camera parameters are set to (P,T,Z)=(0,0,16).

[0082] Furthermore, in S6, the distance change of the moving target is calculated based on the three-dimensional coordinates of the moving target within a period of time. If the moving distance of the target exceeds the set threshold, the horizontal coordinates at the current moment are GeoHash position encoded to obtain the position encoding string of each moving target; the moving distance change is calculated:

[0083]

[0084] Among them, D change is the moving distance, (x tag1 ,y tag1 ,z tag1 ) is the three-dimensional coordinate of the moving target at the last moment, (x tag2 ,y tag2 ,z tag2 ) is the three-dimensional coordinate of the moving target at the current moment; when D change When it is greater than the set threshold, the moving target is tracked so that the moving target is in the center of the video surveillance screen.

[0085] Furthermore, in S7, the (P, T, Z) motion parameters of the PTZ camera for tracking the moving target are calculated according to the three-dimensional coordinates pre-collected by the allocated PTZ camera and the three-dimensional coordinates of the moving target.

[0086] Specifically, refer to Figure 2 As shown, in a specific embodiment of the present invention, the experiment is carried out in a 500kV substation, and the actual horizontal size of the substation is (400, 300) meters. A three-dimensional coordinate system O-xyz of the tracking area is established with 0→400 as the x-axis, 0→300 as the y-axis, and the vertical O-xy upward as the z-axis. The UWB positioning system and video monitoring system have been deployed in the station, where the three-dimensional coordinate system of the UWB positioning system positioning target is also the O-xyz coordinate system, and the positioning accuracy can reach the centimeter level; the video monitoring system includes 20 PTZ cameras, and the camera parameters are shown in Table 1, where the vertical angle of the pan / tilt is 0° for horizontal shooting, and 90° for vertical downward shooting.

[0087] Table 1 PTZ camera parameters

[0088]

[0089] First, the rectangular area is completed to a square area of ​​(400, 400) size, and then the idea of ​​dividing the longitude and latitude of the earth by the GeoHash algorithm is used to divide and encode the area. In this embodiment, the x-axis corresponds to longitude, and the y-axis corresponds to latitude. The horizontal range of the tracking area is divided and encoded. The x and y are divided into two halves 9 times to meet the minimum unit rectangle of less than 1m. As shown in Table 2, two 9-bit binary codes can be obtained, which are combined into 18-bit binary. At this time, the size of the minimum unit square area is (0.781, 0.781)m.

[0090] Table 2 Regional dichotomy process

[0091]

[0092]

[0093] Divide the binary code into groups of 5 bits each, calculate the decimal value, and fill in the last digits less than 5 with binary 0. Then, find the code corresponding to each decimal value according to the Base32 encoding table in Table 3, and concatenate them to obtain a GeoHash encoding string of length 4 to complete the position encoding of each unit area.

[0094] Table 3 Base32 encoding table

[0095]

[0096] For the camera 3D coordinates (x cam ,y cam ,z cam ), taking the camera coordinates (123.54, 47.67, 4.5) meters as an example, convert its horizontal coordinates into a 4-bit GeoHash encoding string, first perform binary encoding, and get x cam , the binary code is 010011110, y cam The binary code is 000111101, as shown in Table 4.

[0097] Table 4 Camera coordinate encoding process

[0098]

[0099] After cross-merging, we get an 18-bit binary code, 0010000111111111001. Convert each group of 5 into decimal to get 47314. Look up the Base32 encoding table and get a 4-bit encoding string of 47z4, which is the smallest unit square area where the camera is located.

[0100] The horizontal coordinates of all pre-captured cameras are converted into position coding strings and stored together with the camera numbers for easy retrieval and query.

[0101] After the camera position is stored, target tracking begins. The target numbers in the multi-target list are read one by one to obtain the three-dimensional coordinates of the target. The horizontal coordinates are GeoHash encoded. The current unit square area of ​​the target is calculated. The cameras in the current area and the surrounding area are searched according to the matching degree of the encoding string. The encoding string of the surrounding area can be calculated based on the side length of the minimum unit square area.

[0102] Then, according to the found cameras and the camera occupancy status, a tracking camera is assigned to each target in the multi-target list one by one, and the camera action parameters are calculated. In the embodiment, the tracking action time interval is set to 3s, that is, the three-dimensional coordinate data of the moving target is obtained once every 3s through the UWB positioning system; the moving distance threshold of the moving target is set to 1 meter, that is, when the straight-line distance between the three-dimensional coordinates of the moving target at the previous moment and the three-dimensional coordinates at the current moment is greater than 1 meter, the camera moves to track the moving target in real time.

[0103] In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0104] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A multi-target tracking method based on UWB and video linkage. It is characterized in that The following steps are involved: S1. Determine the tracking area and establish a three-dimensional coordinate system O-xyz of the tracking area; S2, deploying a UWB positioning system and a video surveillance system in the tracking area in S1 to obtain three-dimensional positioning data and video surveillance images; S3, taking a rectangular area in the three-dimensional coordinate system O-xyz in S1, dividing it into unit square areas, and obtaining unique coding strings for all unit square areas; The UWB positioning system in S4 and S2 calculates the coded string of the unit square area where the camera is located; S5. Bind the positioning tags to the moving targets in the three-dimensional coordinate system O-xyz one by one, and obtain the real-time three-dimensional coordinates (x tag ,y tag ,z tag ); S6, calculating the position code string of each moving target; S7, searching for an idle camera that is closest to the current moving target, assigning the camera, calculating the camera motion parameters, and controlling the camera motion to track the moving target; S8, setting the tracking action time interval, repeating S4-S8 for each moving target in the multi-target list, assigning a separate PTZ camera to track each moving target, until the moving target is removed from the multi-target list, then stopping the acquisition of the current moving target's three-dimensional position and the camera video tracking; In S3, a rectangular area (X, Y) is taken and filled into a square area (X, X) according to the long side. X and X are recursively divided into two equal parts N times to divide N 2 Unit square areas of the same size are created until the side length of the unit square area is less than 1 meter, and GeoHash position encoding is performed on all unit square areas to obtain unique encoding strings for all unit square areas.

2. A UWB and video linkage multi-target tracking method according to claim 1, It is characterized in that The tracking area in S1 is the overlapping area of ​​the target moving area, the UWB positioning system coverage area and the video surveillance coverage area.

3. A UWB and video linkage multi-target tracking method according to claim 1, It is characterized in that The UWB positioning system in S2 includes several UWB base stations and several positioning tags. Wireless communication between the positioning tags and the base stations is used to obtain the three-dimensional real-time coordinates of the positioning tags in the spatial area covered by the base stations; the video monitoring system includes several PTZ cameras, and the all-round movement of the camera is controlled by the pan-tilt rotation parameters, pan-tilt rotation parameters, and camera zoom parameters.

4. The UWB and video linkage multi-target tracking method according to claim 1, It is characterized in that GeoHash location encoding includes the following steps: 1) Divide the unit square area into two intervals, calculate the binary codes bin1 and bin2 of the x-coordinate and y-coordinate, and obtain two binary codes of the same length; 2) Cross-combine the x-coordinate and y-coordinate codes to obtain a new binary code bin3, the code length of which is twice that of a single x-coordinate code or a single y-coordinate code; 3) For bin3, starting from the 0th bit, divide it into groups of 5 bits, convert each group into a decimal value, and fill in the last digits less than 5 with binary 0; 4) For each decimal value, find the corresponding Base32 encoded characters and concatenate them together in order to obtain the GeoHash position encoding string.

5. The UWB and video linkage multi-target tracking method according to claim 1, It is characterized in that In S5, the UWB positioning system pre-collects the three-dimensional coordinates (x cam ,y cam ,z cam ), set the camera's (x cam ,y cam ) The coordinates are converted into GeoHash position codes to obtain the code string of the unit square area where the camera is located; In the multi-target list, the relationship between the number of targets to be tracked and the number of PTZ cameras is: if the number of targets to be tracked is ≤ the number of PTZ cameras, a PTZ camera is assigned to each target for tracking; If the number of targets to be tracked is greater than the number of PTZ cameras, PTZ cameras will be assigned to track one by one starting from the first target in the target arrangement order in the multi-target list. If there are more targets than the number of cameras, no tracking will be assigned.

6. A UWB and video linked multi-target tracking method according to claim 5, It is characterized in that In S5, a list of multiple targets to be tracked is generated using the positioning tag ID, the three-dimensional coordinates of all moving targets and the PTZ camera parameters are initialized, and the real-time three-dimensional coordinates (x tag ,y tag ,z tag ); Initialize all moving target positions and camera parameters, and set the initial three-dimensional coordinates of all moving targets to (x tag ,y tag ,z tag )=(-1,0,0), the unit is meter, and the PTZ camera parameters are set to (P,T,Z)=(0,0,16).

7. The UWB and video linkage multi-target tracking method according to claim 1, It is characterized in that In S6, the distance change of the moving target is calculated based on the three-dimensional coordinates of the moving target within a period of time. If the moving distance of the target exceeds the set threshold, the horizontal coordinates at the current moment are GeoHash position encoded to obtain the position encoding string of each moving target; the moving distance change is calculated: Among them, D change is the moving distance, (x tag1 ,y tag1 ,z tag1 ) is the three-dimensional coordinate of the moving target at the last moment, (x tag2 ,y tag2 ,z tag2 ) is the three-dimensional coordinate of the moving target at the current moment; when D change When it is greater than the set threshold, the moving target is tracked so that the moving target is in the center of the video surveillance screen.

8. The UWB and video linkage multi-target tracking method according to claim 1, It is characterized in that In S7, the (P, T, Z) motion parameters of the PTZ camera for tracking the moving target are calculated according to the three-dimensional coordinates pre-collected by the allocated PTZ camera and the three-dimensional coordinates of the moving target.

Citation Information

Patent Citations

  • Method and system for displaying real-time moving track of vehicle and storage medium

    CN111988746A

  • Multi-target dynamic monitoring method, device, equipment and medium

    CN114071362A