Multi-device cooperative target object track detection method and device and storage medium

Through the method of multi-device collaboration, the attribute characteristics of the target object are used to collaboratively collect trajectory information from other image acquisition devices, which solves the problem of incomplete trajectories caused by occlusion of a single image acquisition device, and improves the completeness of detection and equipment utilization.

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

Patent Information

Application Number
CN202410639318.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In complex urban environments, it is difficult for a single image acquisition device to obtain the complete trajectory chain of the target object due to occlusion and other reasons, resulting in incomplete detection.

Method used

Using a multi-device collaboration method, by obtaining the historical and current video frames in the video stream of the first image collection device, using the attribute characteristics of the target object to determine the second image collection device from other image collection devices, and collaboratively collecting the trajectory of the target object information to improve the integrity of trajectory detection.

Benefits of technology

It improves the completeness of target object trajectory detection and the utilization of image acquisition equipment, ensuring that complete trajectory information can be obtained even under occlusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608564A
    Figure CN118608564A
Patent Text Reader

Abstract

The invention discloses a multi-device cooperative target object track detection method and device and a storage medium, and the method comprises the steps: obtaining a video stream collected by a first image collection device, the video stream comprising a historical video frame and a current video frame, and the frame sequence of the historical video frame being smaller than the frame sequence of the current video frame; in response to the existence of the target object information in the historical video frame and the absence of the target object information in the current video frame, determining a second image acquisition device from other image acquisition devices in a signal area where the first image acquisition device is located according to the attribute characteristics of a target object in the target object information, target object information exists in a video stream acquired by the second image acquisition equipment; and track information of the target object is determined according to the video frame about the target object information acquired by the first image acquisition device and the video frame about the target object information acquired by the second image acquisition device. Therefore, the integrity of the trajectory information of the target object is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video processing technology, and in particular to a target object trajectory detection method coordinated by multiple devices, an electronic device, and a computer-readable storage medium. Background Art

[0002] In recent years, with the rapid development of artificial intelligence technology, target object detection has become one of the hot topics in the field of computer vision research and has been widely used. In the target object detection task, it is required to continuously detect the same target object to obtain the complete trajectory chain of the target object, so as to make action judgment.

[0003] Most traditional target detection algorithms use single image acquisition devices to detect target objects. However, in complex urban environments, objects such as tree branches and billboards may block the target object, causing the single image acquisition device to fail to detect the target object and unable to obtain the complete trajectory chain of the target object. Summary of the invention

[0004] The main technical problem solved by the present application is to provide a multi-device collaborative target object trajectory detection method, electronic device and computer-readable storage medium, which can improve the integrity of target object trajectory detection.

[0005] To solve the above technical problems, a technical solution adopted in the present application is: a target object trajectory detection method for multi-device collaboration is provided, the method is applied to a first image acquisition device, the method comprising: obtaining a video stream captured by the first image acquisition device, the video stream comprising historical video frames and current video frames, the frame sequence of the historical video frames being less than the frame sequence of the current video frames; in response to the presence of target object information in the historical video frames and the absence of the target object information in the current video frames, determining a second image acquisition device from other image acquisition devices located in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information, the target object information existing in the video stream captured by the second image acquisition device; determining the trajectory information of the target object according to the video frames about the target object information captured by the first image acquisition device and the video frames about the target object information captured by the second image acquisition device.

[0006] In some embodiments, in response to the presence of target object information in the historical video frame and the absence of the target object information in the current video frame, the step of determining a second image acquisition device from other image acquisition devices located in the signal area where the first image acquisition device is located based on the attribute characteristics of the target object in the target object information includes: obtaining the attribute characteristics of the object in the video stream acquired by each other image acquisition device within a target time period, wherein the target time period is determined based on the acquisition time point corresponding to the current video frame; performing feature matching processing on the attribute characteristics of the target object information and the attribute characteristics of the object in the video stream acquired by each other image acquisition device to obtain a feature matching value; and determining the second image acquisition device based on the size of the feature matching value.

[0007] In some embodiments, the attribute features include key area features, and the step of determining the second image acquisition device based on the size of the feature matching value includes: taking the image acquisition device among the other image acquisition devices whose feature matching value is greater than or equal to a first preset matching threshold as the target image acquisition device; in response to the number of the target image acquisition devices being greater than the preset number threshold, performing feature matching on the key area features of the object in the video stream acquired by the target image acquisition device and the key area features of the target object information to obtain a feature matching result; in response to the feature matching result indicating a successful match, determining the target image acquisition device with a successful match as the second image acquisition device.

[0008] In some embodiments, the attribute features include key area features, and the step of determining the second image acquisition device based on the size of the feature matching value includes: taking the image acquisition device among the other image acquisition devices whose feature matching value is greater than or equal to a second preset matching threshold and less than a first preset matching threshold as the target image acquisition device; performing feature matching on the key area features of the object in the video stream acquired by the target image acquisition device and the key area features of the target object information to obtain a feature matching result; in response to the feature matching result indicating a successful match, determining the target image acquisition device with a successful match as the second image acquisition device.

[0009] In some embodiments, the step of determining the second image acquisition device according to the size of the feature matching value includes: in response to the feature matching value being greater than or equal to a first preset matching threshold, determining the corresponding image acquisition device as the second image acquisition device.

[0010] In some embodiments, the step of determining the second image acquisition device based on the size of the feature matching value includes: in response to the fact that there is no corresponding feature matching value greater than or equal to a second preset matching threshold in the other image acquisition devices, determining that the second image acquisition device does not exist in the other image acquisition devices.

[0011] In some embodiments, the step of performing feature matching processing on the attribute features of the target object information and the attribute features of the objects in the video streams collected by each other image acquisition device to obtain the feature matching value includes: calculating the cosine similarity between the attribute features of the objects in the video streams collected by each other image acquisition device and the attribute features of the target object information; calculating the Hamming distance between the attribute features of the objects in the video streams collected by each other image acquisition device and the attribute features of the target object information; calculating the Euclidean distance between the attribute features of the objects in the video streams collected by each other image acquisition device and the attribute features of the target object information; and performing weighted averaging processing on the cosine similarity, the Hamming distance and the Euclidean distance to obtain the feature matching value between the attribute features of the objects in the video streams collected by each other image acquisition device and the attribute features of the target object information.

[0012] In some embodiments, the video stream captured by the first image acquisition device also includes continuous first video frames, second video frames and third video frames, and the method also includes: in response to the presence of the target object information in the first video frame and the absence of the target object information in the second video frame, judging whether the target object information exists in the third video frame according to the target object information; if so, determining the trajectory information of the target object according to the target object information in the first video frame and the target object information in the third video frame; if not, determining the second image acquisition device from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information.

[0013] To solve the above technical problems, another technical solution adopted in the present application is: an electronic device is provided, including a memory and a processor, the processor is used to execute program instructions stored in the memory to implement the above multi-device collaborative target object trajectory detection method.

[0014] In order to solve the above technical problems, another technical solution adopted in the present application is: providing a computer-readable storage medium on which program instructions are stored, and when the program instructions are executed by a processor, the above-mentioned multi-device collaborative target object trajectory detection method is implemented.

[0015] Compared with the problem that the complete trajectory information of the target object cannot be obtained due to reasons such as large objects blocking the target object when detecting the target object through a single image acquisition device in the traditional method, the present application provides a target object trajectory detection method in which multiple devices are coordinated, the method comprising: obtaining a video stream acquired by a first image acquisition device, the video stream comprising a historical video frame and a current video frame, the frame sequence of the historical video frame being less than the frame sequence of the current video frame; in response to the existence of target object information in the historical video frame and the absence of target object information in the current video frame, determining a second image acquisition device from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information, the target object information exists in the video stream acquired by the second image acquisition device; determining the trajectory information of the target object according to the video frame about the target object information acquired by the first image acquisition device and the video frame about the target object information acquired by the second image acquisition device. Therefore, when the first image acquisition device cannot acquire the target object information, collaborative acquisition is performed through other image acquisition devices, which not only improves the utilization rate of the image acquisition device, but also improves the trajectory integrity of the target object. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 is a flowchart of an exemplary embodiment of a target object trajectory detection method shown in the present application;

[0018] Figure 2 yes Figure 1 FIG. 1 is a flow chart of an exemplary embodiment of step S120 in the target object trajectory detection method;

[0019] Figure 3 is a schematic diagram of an exemplary embodiment of feature matching value calculation shown in the present application;

[0020] Figure 4 yes Figure 1 A schematic flow chart of an exemplary embodiment of the target object trajectory detection method after step S110 is shown;

[0021] Figure 5 is a schematic diagram of an exemplary embodiment of information carried by a first image acquisition device when initiating device collaboration;

[0022] Figure 6is a schematic diagram of an exemplary embodiment of object information fed back to the first image acquisition device by other image acquisition devices;

[0023] Figure 7 It is a specific flow chart of an exemplary embodiment of a target object trajectory detection method shown in the present application;

[0024] Figure 8 is a structural schematic diagram of an exemplary embodiment of a target object trajectory detection device shown in the present application;

[0025] Fig. 9 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application;

[0026] Fig.10 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be appreciated that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the art without making creative work are within the scope of protection of the present application.

[0028] First of all, it should be explained that the present application proposes a target object trajectory detection method in which multiple devices collaborate, which can be applied to the target object motion determination. Specifically, when there is target object information in the historical video frame in the video stream captured by the first image acquisition device but there is no target object information in the current video frame, the second image acquisition device is determined from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information, and the trajectory information of the target object is determined based on the video frame about the target object information captured by the first image acquisition device and the video frame about the target object information captured by the second image acquisition device. Thus, through the collaborative acquisition between the first image acquisition device and the second image acquisition device, more complete target object trajectory information can be obtained. Please refer to Figure 1 , Figure 1 The target object trajectory detection method of the present application is a flowchart of an exemplary embodiment of the target object trajectory detection method of the present application. The target object trajectory detection method of the present embodiment of the multi-device collaboration can be applied to a video processing device, such as an image acquisition device, and can also be applied to a server with data processing capabilities.

[0029] Specifically, the multi-device collaborative target object trajectory detection method of this embodiment includes the following steps:

[0030] S110: Acquire a video stream acquired by a first image acquisition device, where the video stream includes historical video frames and current video frames, and a frame sequence of the historical video frames is smaller than a frame sequence of the current video frames.

[0031] Image acquisition device refers to a device for collecting images or videos, such as a camera, an image sensor, etc. Exemplarily, the image acquisition device in this embodiment is commonly installed in places such as roads, stations and warehouses, and is used to ensure safety and prevent accidents. The first image acquisition device refers to a device that actively initiates collaborative acquisition when collecting the trajectory information of the target object. When obtaining the trajectory information of the target object in practical applications, each image acquisition device can be used as a first image acquisition device to initiate collaborative acquisition to other image acquisition devices, and the disappearance timestamp of the target object and the attribute characteristics of the target object will be carried when initiating collaborative acquisition. As an example, when car A appears in camera A, camera A cannot detect car A due to occlusion and other reasons, camera A can carry the disappearance timestamp of car A and the attribute characteristics of car A to initiate a search request to other cameras in its signal area; camera B finds car A in the video stream it collects and performs trajectory information detection. If camera B cannot detect car A due to occlusion and other reasons, camera B can also carry the disappearance timestamp of car A and the attribute characteristics of car A to initiate a search request to other cameras in its signal area, and so on.

[0032] The historical video frames refer to the video frames from the appearance to the disappearance of the target object in the video stream acquired by the first image acquisition device. It is understandable that the historical video frames may only include the video frames in which the target object exists, or may include the video frames before the target object appears.

[0033] The current video frame refers to a video frame in which the target object is determined to have disappeared from the video stream captured by the first image acquisition device. It is understandable that in practical applications, any video frame within a short period of time after the target object disappears can be used as the current video frame as long as it does not affect the acquisition of the trajectory information of the target object from other image acquisition devices.

[0034] The frame sequence refers to the ordering of the video frames in the video stream captured by the first image capture device from small to large in time. For example, the capture time of the historical video frame is earlier than the current video frame, so the frame sequence of the historical video frame is less than the frame sequence of the current video frame.

[0035] When the target object trajectory detection device performs trajectory detection on the target object in the video stream captured by the first image acquisition device, it obtains the video stream captured by the first image acquisition device, the video stream includes historical video frames with target object information and current video frames without target object information, and the frame sequence of the historical video frames is less than the frame sequence of the current video frames.

[0036] S120: In response to the existence of target object information in the historical video frame and the absence of target object information in the current video frame, a second image acquisition device is determined from other image acquisition devices in the signal area where the first image acquisition device is located according to attribute characteristics of the target object in the target object information, and the target object information exists in the video stream acquired by the second image acquisition device.

[0037] The target object refers to the object for which trajectory detection is required. Exemplarily, object detection is performed on the video stream captured by the first image acquisition device, and each detected object can be used as a target object separately, or it can be used as a target object for trajectory detection only when the object triggers a corresponding condition, for example, the corresponding condition can be running a red light, etc. The target object can be a living object or a non-living object, a living object can be an animal, etc., and a non-living object can be a moving object such as a vehicle.

[0038] The target object information includes attribute features of the target object, location information of the target object, surrounding environment information, etc. Exemplarily, feature extraction may be performed on the video stream captured by the first image acquisition device to obtain the target object information of the target object.

[0039] Attribute features describe various properties, characteristics and attributes of the target object. Exemplarily, feature extraction can be performed on the video stream captured by the first image acquisition device, and the extracted features can be analyzed to obtain the attribute features of the target object. Among them, feature extraction and analysis can use traditional machine learning algorithms or deep learning algorithms, such as principal component analysis, convolutional neural networks, and linear discriminant analysis. As an example, attribute features can include color features and shape features.

[0040] The signal area refers to an area that can receive the collaborative acquisition initiated by the first image acquisition device. For example, the local area network area connected to the first image acquisition device can be used as the signal area of ​​the first image acquisition device. The signal area of ​​the first image acquisition device can also be determined according to the distance.

[0041] Other image acquisition devices refer to image acquisition devices in the signal area of ​​the first image acquisition device. For example, image acquisition devices in the same local area network can be used as other image acquisition devices of the first image acquisition device; or the corresponding distance can be determined according to the moving speed of the target object, and image acquisition devices with corresponding distances from the first image acquisition device as the center can be used as other image acquisition devices.

[0042] The second image acquisition device refers to an image acquisition device that has target object information. Exemplarily, feature matching can be used to determine whether each object in other image acquisition devices matches the target object, and if so, it is determined to be the second image acquisition device. Since the target object can appear in video streams acquired by different image acquisition devices at the same time, there can be one or more second image acquisition devices.

[0043] After the target object trajectory detection device obtains the video stream captured by the first image acquisition device, it extracts the target object information of the target object from the video stream; if the target object information exists in the historical video frames of the video stream but does not exist in the current video frame, the image acquisition device in the same local area network as the first image acquisition device is used as other image acquisition devices, and the second image acquisition device containing the target object information is determined from the other image acquisition devices according to the attribute characteristics of the target object in the target object information.

[0044] S130: Determine trajectory information of the target object according to the video frame about the target object information acquired by the first image acquisition device and the video frame about the target object information acquired by the second image acquisition device.

[0045] The trajectory information includes the motion trajectory of the target object. Exemplarily, the trajectory information of the target object can be obtained from the video stream captured by the image acquisition device. Specifically, video frames captured by multiple image acquisition devices containing the target object information are obtained, and the time points at which the multiple image acquisition devices capture the video frames of the target object information are determined, and the video frames about the target object information are merged according to the order of the time points to obtain the trajectory information of the target object.

[0046] The target object trajectory detection device combines the video frames about the target object information collected by the first image acquisition device and the video frames about the target object information collected by the second image acquisition device in time sequence to obtain the trajectory information of the target object.

[0047] It can be seen that the target object trajectory detection method of the embodiment of the present application obtains a video stream captured by a first image acquisition device, the video stream includes a historical video frame and a current video frame, and the frame sequence of the historical video frame is less than the frame sequence of the current video frame; in response to the existence of target object information in the historical video frame and the absence of target object information in the current video frame, a second image acquisition device is determined from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information, and the target object information exists in the video stream captured by the second image acquisition device; the trajectory information of the target object is determined according to the video frame about the target object information captured by the first image acquisition device and the video frame about the target object information captured by the second image acquisition device. Therefore, when the first image acquisition device cannot obtain the target object information, collaborative acquisition is performed through other image acquisition devices, which not only improves the utilization rate of the image acquisition device, but also improves the trajectory integrity of the target object.

[0048] Based on the above embodiments, the embodiments of the present application adopt Figure 2 The flowchart details how to determine the second image acquisition device according to the attribute characteristics of the target object in the target object information. Figure 2 , Figure 2 yes Figure 1 The flowchart of an exemplary embodiment of step S120 in the target object trajectory detection method is shown. Specifically, in response to the existence of target object information in the historical video frame and the absence of target object information in the current video frame, the process of determining the second image acquisition device from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information in step S120 specifically includes the following steps:

[0049] S210: Acquire attribute features of objects in the video streams acquired by other image acquisition devices within a target time period, where the target time period is determined based on an acquisition time point corresponding to a current video frame.

[0050] The target time period is determined based on the acquisition time point corresponding to the current video frame. For example, since the target object may appear in the video stream acquired by other image acquisition devices before the acquisition time point corresponding to the current video frame, or may appear in the video stream acquired by other image acquisition devices after the acquisition time point corresponding to the current video frame, the target time period can be set as the preset time with the current video frame as the center interval. As an example, if the acquisition time point corresponding to the current video frame is 2 o'clock, 1:55-2:05 can be used as the target time period.

[0051] The acquisition time point refers to the timestamp when the first image acquisition device acquires the video frame. Exemplarily, the corresponding time is recorded while the video frame is acquired to obtain the acquisition time point of the video frame. Recording the acquisition time point is helpful to determine the timing relationship of the video frame and the order of events.

[0052] The target object trajectory detection device uses the acquisition time point corresponding to the current video frame as the center and the preset time interval as the target time period, obtains the video streams collected by other image acquisition devices within the target time period, and performs object detection and feature extraction on the video streams collected by each other image acquisition device within the target time period to obtain the attribute features of each object in the video stream collected by each other image acquisition device within the target time period. It should be noted that the video stream collected by other image acquisition devices within the target time period may contain multiple objects, and the object refers to a living or non-living object that needs to be paid attention to.

[0053] S220: Perform feature matching processing on the attribute features of the target object information and the attribute features of the objects in the video streams collected by other image collection devices to obtain feature matching values.

[0054] The feature matching value can represent the similarity between the target object and the objects in the video streams collected by other image acquisition devices. Exemplarily, the feature matching value between the attribute features of the target object information and the attribute features of the objects in the video streams collected by other image acquisition devices can be calculated by a feature matching algorithm, wherein the feature matching algorithm can be cosine similarity, Hamming distance and Euclidean distance.

[0055] For details, please refer to Figure 3 , Figure 3It is a schematic diagram of an exemplary embodiment of feature matching value calculation shown in the present application. When multiple objects are included in other image acquisition devices, the attribute features of the multiple objects need to be respectively calculated with the attribute features of the target object to obtain the feature matching value between the attribute features of each object under each other image acquisition device and the attribute features of the target object. The specific calculation method of the feature matching value can be: calculating the cosine similarity between the attribute features of the object in the video stream collected by each other image acquisition device and the attribute features of the target object information; calculating the Hamming distance between the attribute features of the object in the video stream collected by each other image acquisition device and the attribute features of the target object information; calculating the Euclidean distance between the attribute features of the object in the video stream collected by each other image acquisition device and the attribute features of the target object information; performing weighted average processing on the cosine similarity, the Hamming distance and the Euclidean distance to obtain the feature matching value between the attribute features of the object in the video stream collected by each other image acquisition device and the attribute features of the target object information. Since cosine similarity, Hamming distance and Euclidean distance each have advantages and disadvantages, in practical applications, the weights of the three feature matching algorithms can be determined according to the actual situation, and the final feature matching value can be determined by calculating the weighted average. This can make the calculation of feature matching values ​​more accurate and more efficient.

[0056] As an example, the calculation of the feature matching value satisfies the following formula:

[0057] Feature matching value = 0.4*cosine similarity + 0.35*Hamming distance + 0.25*Euclidean distance

[0058] Among them, 0.4, 0.35 and 0.25 represent the weight ratio of each feature matching algorithm respectively. They are parameter values ​​that allow debugging and can be appropriately adjusted according to different application scenarios.

[0059] In other embodiments, the feature matching value between the attribute characteristics of the target object information and the attribute characteristics of the objects in the video streams captured by other image acquisition devices can also be calculated by calculating the cosine similarity between the attribute characteristics of the objects in the video streams captured by other image acquisition devices and the attribute characteristics of the target object information to obtain the feature matching value.

[0060] In other embodiments, the feature matching value between the attribute characteristics of the target object information and the attribute characteristics of the objects in the video streams captured by other image acquisition devices can also be calculated by calculating the Hamming distance between the attribute characteristics of the objects in the video streams captured by other image acquisition devices and the attribute characteristics of the target object information to obtain the feature matching value.

[0061] In other embodiments, the feature matching value between the attribute characteristics of the target object information and the attribute characteristics of the objects in the video streams captured by other image acquisition devices can also be calculated by calculating the Euclidean distance between the attribute characteristics of the objects in the video streams captured by other image acquisition devices and the attribute characteristics of the target object information to obtain the feature matching value.

[0062] The target object trajectory detection device obtains the attribute features of the objects in the video streams collected by other image acquisition devices within the target time period, and respectively calculates the cosine similarity, Hamming distance and Euclidean distance between the attribute features of the objects in the video streams collected by other image acquisition devices within the target time period and the attribute features of the target object, and performs weighted average processing on the cosine similarity, Hamming distance and Euclidean distance to obtain the corresponding feature matching value.

[0063] S230: Determine the second image acquisition device according to the size of the feature matching value.

[0064] The target object trajectory detection device sorts according to the size of the feature matching value, and determines the second image acquisition device according to the size of the feature matching value.

[0065] In some embodiments, the attribute features include key area features, and the step of determining the second image acquisition device according to the size of the feature matching value includes: taking the image acquisition device whose feature matching value among other image acquisition devices is greater than or equal to the first preset matching threshold as the target image acquisition device; in response to the number of target image acquisition devices being greater than the preset number threshold, performing feature matching on the key area features of the object in the video stream acquired by the target image acquisition device and the key area features of the target object information to obtain a feature matching result; in response to the feature matching result indicating a successful match, determining the target image acquisition device with a successful match as the second image acquisition device. Thus, when the number of target image acquisition devices is greater than the preset number threshold, secondary confirmation is performed through the key area features, thereby improving the accuracy of determining the second image acquisition device.

[0066] Among them, the key area feature can be a feature with special distinction in the target object. For example, for a vehicle, if the color of a vehicle is pink, the color feature of the vehicle can be used as a key area feature. The first preset matching threshold can be set according to experience, and can be set to 0.7, 0.8, 0.9, etc. The preset quantity threshold can also be set according to experience, and can be set to 2, 3, 4, etc. When there are multiple image acquisition devices The feature matching value between the attribute features of the object and the attribute features of the target object is greater than the first preset matching threshold, in order to ensure the matching accuracy, it can be secondary confirmed by the key area feature. Before the secondary confirmation, the target object information in the video frame sequence within the first preset time period before the current video frame in the video stream captured by the first image acquisition device can be obtained, and the scene information in the received object information can be judged and screened according to the scene information in the acquired target object information. If the scene information differs too much, the corresponding object is screened out. Exemplarily, if the scene information in the target object information is outdoor, and the scene information in the received object information is indoor, it is characterized that the scene information differs too much. As an example, if image acquisition device A finds that vehicle A is blocked when detecting its trajectory information, it initiates a request to search for vehicle A to other image acquisition devices, and image acquisition devices B, C and D all find objects whose feature matching values ​​with the attribute features of vehicle A are greater than a first preset matching threshold in the video streams collected within the target time period; at this time, image acquisition device A has received object information sent by multiple image acquisition devices, and image acquisition device A can screen according to scene information to confirm that the object in image acquisition device D is not the target object; then image acquisition device B and image acquisition device C are reconfirmed according to the color features of vehicle A, and feature matching is performed on the color features in the object information fed back by image acquisition device B and the color features of vehicle A. If the matching value is greater than a third preset matching threshold, image acquisition device B is determined to be the second image acquisition device, otherwise it is not determined to be the second image acquisition device; feature matching is performed on the color features in the object information fed back by image acquisition device C and the color features of vehicle A. If the matching value is greater than the third preset matching threshold, image acquisition device C is determined to be the second image acquisition device, otherwise it is not determined to be the second image acquisition device.

[0067] In some other embodiments, the attribute features include key area features, and the step of determining the second image acquisition device according to the size of the feature matching value includes: taking the image acquisition device whose feature matching value among other image acquisition devices is greater than or equal to the second preset matching threshold and less than the first preset matching threshold as the target image acquisition device; performing feature matching on the key area features of the object in the video stream acquired by the target image acquisition device and the key area features of the target object information to obtain a feature matching result; in response to the feature matching result indicating a successful match, determining the target image acquisition device with a successful match as the second image acquisition device. Thus, a second confirmation is performed on other image acquisition devices whose feature matching values ​​are between the second preset matching threshold and the first preset matching threshold, thereby improving the accuracy of determining the second image acquisition device.

[0068] Among them, the first preset matching threshold is greater than the second preset matching threshold, and the first preset matching threshold and the second preset matching threshold can be set according to experience, for example, the first preset matching threshold is 0.7, 0.8, 0.9, etc., and the second preset matching threshold is 0.5, 0.6, etc. The feature matching value is greater than or equal to the second preset matching threshold and less than the first preset matching threshold, indicating that the possibility of the corresponding object in the corresponding image acquisition device being the target object is low, and it is necessary to confirm again to determine whether the image acquisition device is the second image acquisition device. When the feature matching value of the object in the other image acquisition devices is greater than the second preset matching threshold, the corresponding other image acquisition devices will send the corresponding object information to the first image acquisition device. After the first image acquisition device receives all the object information greater than the second preset matching threshold, it can first obtain the target object information in the video frame sequence within the first preset time period before the current video frame in the video stream collected by the first image acquisition device, and judge and filter the scene information in the received object information according to the scene information in the obtained target object information. If the scene information is too different, the corresponding object will be screened out. After screening, the objects less than the first preset matching threshold will be confirmed again. The secondary confirmation method can be to perform feature matching processing through key area features.

[0069] In other embodiments, the step of determining the second image acquisition device according to the size of the feature matching value includes: in response to the feature matching value being greater than or equal to the first preset matching threshold, the corresponding image acquisition device is determined as the second image acquisition device. In this way, whether the other image acquisition device is the second image acquisition device is determined according to the size relationship between the feature matching value and the first preset matching threshold, thereby improving the efficiency of determining the second image acquisition device.

[0070] It can be understood that in this embodiment, the number of other image acquisition devices whose feature matching values ​​are greater than or equal to the first preset matching threshold may be greater than the preset number threshold, or may be less than or equal to the preset number threshold. As long as the feature matching value is greater than or equal to the first preset matching threshold, the corresponding image acquisition device is determined as the second image acquisition device, thereby reducing the screening process and improving efficiency.

[0071] In other embodiments, the step of determining the second image acquisition device according to the size of the feature matching value includes: in response to the absence of a corresponding feature matching value greater than or equal to a second preset matching threshold in the other image acquisition devices, determining that the second image acquisition device does not exist in the other image acquisition devices. Determining that the second image acquisition device does not exist in the other image acquisition devices can ensure a quick response backup plan and achieve trajectory detection of the target object.

[0072] Among them, after the first image acquisition device carries the target object information and the current video frame information to initiate a search request for the target object to other image acquisition devices in the signal area, if the object information sent by other image acquisition devices is still not received after the waiting period, it indicates that there is no corresponding feature matching value greater than or equal to the second preset matching threshold in other image acquisition devices, that is, there is no second image acquisition device in other image acquisition devices. The waiting period can be preset, and can be set to 7 minutes-10 minutes, etc.

[0073] It can be seen that the target object trajectory detection method of the embodiment of the present application obtains the attribute characteristics of the object in the video stream collected by each other image acquisition device within the target time period, and the target time period is determined based on the acquisition time point corresponding to the current video frame; the attribute characteristics of the target object information are respectively matched with the attribute characteristics of the object in the video stream collected by each other image acquisition device to obtain the feature matching value; the second image acquisition device is determined according to the size of the feature matching value. Thus, the second image acquisition device is determined by feature matching processing, which improves the efficiency and accuracy of determining the second image acquisition device.

[0074] Based on the above embodiments, the embodiments of the present application adopt Figure 4 The flowchart details how to determine that the target object information does not exist in the first image acquisition device. Figure 4 , Figure 4 yes Figure 1 The flowchart of an exemplary embodiment after step S110 in the target object trajectory detection method is shown. Specifically, after the process of acquiring the video stream captured by the first image acquisition device in step S110, the following steps are also specifically included:

[0075] S410: In response to the existence of target object information in the first video frame and the absence of target object information in the second video frame, determining whether target object information exists in the third video frame according to the target object information.

[0076] The first video frame, the second video frame and the third video frame are video frames with increasing frame order in the video stream captured by the first image capture device, wherein all video frames within a second preset time period after the second video frame can be used as the third video frame.

[0077] After the target object trajectory detection device obtains the video stream captured by the first image acquisition device, if there is target object information in the first video frame and no target object information in the second video frame, it continuously detects whether there is target object information in the third video frame within a second preset time period, wherein the detection method can be to match according to the target object information or use algorithms such as Kalman filtering to confirm the target object.

[0078] S420: If yes, determine the trajectory information of the target object according to the target object information in the first video frame and the target object information in the third video frame.

[0079] When the target object trajectory detection device determines that there is target object information in the first video frame and there is no target object information in the second video frame, and detects that there is target object information in the third video frame within a second preset time period, it represents that the trajectory information of the target object can continue to be collected through the first image acquisition device, and the trajectory information of the target object can be determined based on the first video frame and the third video frame where the target object information exists.

[0080] S430: If not, determine the second image acquisition device from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information.

[0081] When the target object trajectory detection device determines that there is target object information in the first video frame and there is no target object information in the second video frame, and does not detect the target object information in the third video frame within the second preset time period, it indicates that the trajectory information of the target object cannot be further detected by the first image acquisition device; the first image acquisition device carries the target object information and the second video frame information to initiate a search request to other image acquisition devices in the signal area, wherein the information carried is mainly divided into two parts: header information and feature message body. For details, please refer to Figure 5, the header information includes: timestamp information and identification: the acquisition time point of the second video frame and the device identification of the first image acquisition device, source request port: the device port of the first image acquisition device, source request IP address: the device IP address of the first image acquisition device, request type flag: including search, answer and reset flags, here is the search flag, when the first image device needs to perform secondary confirmation based on the key area features, the request type flag is reset, destination port: the device port of other image acquisition devices, destination request IP: the device IP address of other image acquisition devices, for example, the target request IP can be 255.255.255.0; the feature message body includes the attribute feature encoding in the target object information, which is a fixed-dimensional feature length. In addition, after receiving the information sent by the first image acquisition device, other image acquisition devices will match the target object in the video stream collected within the target time period. If a matching target object is found, the matching target object will be fed back to the first image acquisition device, where the feedback information includes header information and feature message body. For details, please refer to Figure 6 The content in the header information is consistent with the content in the header information when the first image acquisition device initiates the search request. The request type flag in the header information is a response here, and the feature message body includes the attribute feature coding of the matched target object within the target time period.

[0082] It can be seen that the target object trajectory detection method of the embodiment of the present application responds to the existence of target object information in the first video frame and the absence of target object information in the second video frame, and then determines whether the target object information exists in the third video frame according to the target object information; if so, the trajectory information of the target object is determined according to the target object information in the first video frame and the target object information in the third video frame; if not, the second image acquisition device is determined from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information. Therefore, after the target object disappears from the second video frame in the video stream of the first image acquisition device, it is detected whether the target object information appears again in the third video frame, which can reduce the resource utilization of other image acquisition devices to a certain extent and realize the determination of the trajectory information of the target object.

[0083] In order to elaborate on the target object trajectory detection method of the present application, Figure 7 The flowchart shown further illustrates it, and the details are as follows:

[0084] S10 is a target object information acquisition module, which specifically includes S11 device target detection, that is, performing target object detection on the video stream captured by the first image acquisition device; S12 target attribute structured extraction and analysis, that is, performing feature extraction on the detected target object through a machine learning algorithm or a deep learning algorithm to obtain target object information, and the target object information includes attribute features and location information of the target object.

[0085] S20 is a target object loss judgment module, which specifically includes S21 continuous detection of the target, that is, continuous detection of the target object through the first image acquisition device; S22 target disappearance or sudden occlusion judgment, that is, there are large trees, billboards or other objects blocking the target object, resulting in the first image acquisition device real-time video stream can not detect the target object; S23 confirm whether the target is still there within the unit time T1? Due to the short-term occlusion phenomenon, it is necessary to determine whether the target object in the third video frame appears again in the video stream collected by the first image acquisition device within the second preset time period. If it appears, continue to repeat the process of S20 target object loss judgment. If it is confirmed that the target object disappears, enter the collaborative module.

[0086] S30 is a collaborative module, specifically S31 carries target attribute information and domain frame information to initiate a search broadcast, that is, the first image acquisition device carries target object information and current video frame information, and the target object information can be all information about the target object contained in the historical video frame in the video stream; S32 waits for the domain device to respond to the waiting time, that is, after the first image acquisition device initiates the search broadcast, it receives object information fed back by other image acquisition devices in the signal area within the waiting time period, and other image acquisition devices perform feature matching calculations on the attribute features of the objects in the video stream collected within the target time period and the attribute features in the target object information, and determine whether there is matching object information based on the size of the feature matching value obtained by the feature matching calculation; if no response is received from other image acquisition devices within the waiting time period, enter S60 to confirm that the target object is lost, and arrive at S70 to end the trajectory detection of the target object; if a response is received from other image acquisition devices within the waiting time period, enter S33 to receive the feedback object information, including the header message and the feature message body.

[0087] S40 continuously updates the attribute data of the same target ID, conducts analysis, integration and unified storage, specifically including the first image acquisition device performing preliminary screening of the received object information, and can screen according to the scene information in the received object information and the scene information in the target object information; if the number of other image acquisition devices corresponding to the object information screened by the first image acquisition device is greater than a preset number threshold, then the screened object information is reconfirmed according to the key area features, and the object information that has successfully been reconfirmed is used as the target object information, and the corresponding other image acquisition devices are determined as the second image acquisition devices, and the target object information about the target object in multiple image acquisition devices is marked and continuously updated, and stored in a unified manner, and the marked and stored content includes the device information of the other responding image acquisition devices and the corresponding feedback time and feedback object information encoding.

[0088] S50 extracts complete trajectory information for the same target according to time / device ID, specifically, the video frame about the target object information in the first image acquisition device and the video frame about the target object information in the second image acquisition device are merged and superimposed to obtain the trajectory information of the target object. The trajectory information of the target object can also display the image acquisition device corresponding to the video frame, showing that the trajectory information of the target object comes from the first image acquisition device and other image acquisition devices in the signal area of ​​the first image acquisition device.

[0089] It should be noted that in actual applications, there is no distinction between master devices and slave devices. Any image acquisition device can act as a first image acquisition device to send a header message and a feature message body to other image acquisition devices in its signal area for search requests; any image acquisition device can also act as another image acquisition device to feedback matching object information to the first image acquisition device. Among them, other image acquisition devices can simultaneously feedback matching object information and video frames containing matching object information when providing feedback. After confirming that the object information feedback from other image acquisition devices is the target object information, the video stream captured by the first image acquisition device and the corresponding video frames feedback from other image acquisition devices can be directly integrated to obtain the trajectory information of the target object.

[0090] See also Figure 8 , Figure 8It is a structural schematic diagram of an exemplary embodiment of the target object trajectory detection device shown in the present application. The target object trajectory detection device 8 includes an acquisition module 810, a device determination module 820 and a trajectory determination module 830. The acquisition module 810 is used to acquire a video stream acquired by a first image acquisition device, the video stream includes a historical video frame and a current video frame, and the frame sequence of the historical video frame is less than the frame sequence of the current video frame; the device determination module 820 is used to respond to the existence of target object information in the historical video frame and the absence of target object information in the current video frame, and then determine the second image acquisition device from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information, and the target object information exists in the video stream acquired by the second image acquisition device; the trajectory determination module 830 is used to determine the trajectory information of the target object according to the video frame about the target object information acquired by the first image acquisition device and the video frame about the target object information acquired by the second image acquisition device.

[0091] In the above method, the target object trajectory detection device of the embodiment of the present application obtains a video stream captured by a first image acquisition device, the video stream includes a historical video frame and a current video frame, and the frame sequence of the historical video frame is less than the frame sequence of the current video frame; in response to the existence of target object information in the historical video frame and the absence of target object information in the current video frame, a second image acquisition device is determined from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information, and the target object information exists in the video stream captured by the second image acquisition device; the trajectory information of the target object is determined according to the video frame about the target object information captured by the first image acquisition device and the video frame about the target object information captured by the second image acquisition device. Therefore, when the first image acquisition device cannot obtain the target object information, collaborative acquisition is performed through other image acquisition devices, which not only improves the utilization rate of the image acquisition device, realizes decentralized collaborative interaction, ensures the minimization of resource use, reduces the dependence on the dispatch center, but also improves the trajectory integrity of the target object.

[0092] Among them, the functions of each module can be found in the embodiment of the target object trajectory detection method for multi-device collaboration, and will not be repeated here.

[0093] In order to implement the target object trajectory detection method of the multi-device collaboration in the above embodiment, the present application proposes another electronic device, which is specifically referred to as Fig. 9 , Fig. 9 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application.

[0094] The electronic device 9 includes a memory 910 and a processor 920 , wherein the memory 910 and the processor 920 are coupled.

[0095] The memory 910 is used to store program data, and the processor 920 is used to execute the program data to implement the target object trajectory detection method of multi-device collaboration in the above embodiment.

[0096] In this embodiment, the processor 920 may also be referred to as a CPU (Central Processing Unit). The processor 920 may be an integrated circuit chip having signal processing capabilities. The processor 920 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor 920 may also be any conventional processor, etc.

[0097] The present application also provides a computer readable storage medium 10, such as Fig.10 As shown, the computer-readable storage medium 10 is used to store program data 1001. When the program data 1001 is executed by the processor, it is used to implement the target object trajectory detection method for multi-device collaboration in the method embodiment of the present application.

[0098] The method involved in the embodiment of the target object trajectory detection method for multi-device collaboration of the present application, when implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a device, such as a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0099] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

[0100] If the technical solution of this application involves personal information, the product using the technical solution of this application has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using the technical solution of this application has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the "explicit consent" requirement. For example, on personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to the collection of his or her personal information; or on the device that processes personal information, the personal information processing rules are notified by obvious signs / information, and the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; among them, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.

Claims

1. A multi-device collaborative target object trajectory detection method, characterized in that: The method is applied to a first image acquisition device, and the method comprises: Acquire a video stream acquired by the first image acquisition device, the video stream comprising historical video frames and current video frames, the frame sequence of the historical video frames being smaller than the frame sequence of the current video frames; In response to the existence of target object information in the historical video frame and the absence of the target object information in the current video frame, determining a second image acquisition device from other image acquisition devices in the signal area where the first image acquisition device is located according to attribute characteristics of the target object in the target object information, wherein the target object information exists in the video stream acquired by the second image acquisition device; The trajectory information of the target object is determined according to the video frame about the target object information acquired by the first image acquisition device and the video frame about the target object information acquired by the second image acquisition device.

2. The target object trajectory detection method according to claim 1, characterized in that: In response to the existence of target object information in the historical video frame and the absence of the target object information in the current video frame, the step of determining a second image acquisition device from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information comprises: Acquire attribute features of objects in the video streams acquired by each other image acquisition device within a target time period, wherein the target time period is determined based on an acquisition time point corresponding to the current video frame; Perform feature matching processing on the attribute features of the target object information and the attribute features of objects in the video streams collected by other image collection devices to obtain feature matching values; The second image acquisition device is determined according to the size of the feature matching value.

3. The target object trajectory detection method according to claim 2, characterized in that: The attribute feature includes a key area feature, and the step of determining the second image acquisition device according to the size of the feature matching value includes: The image acquisition device whose feature matching value is greater than or equal to the first preset matching threshold value among the other image acquisition devices is used as the target image acquisition device; In response to the number of the target image acquisition devices being greater than a preset number threshold, feature matching is performed between key area features of objects in the video stream acquired by the target image acquisition devices and key area features of the target object information to obtain a feature matching result; In response to the feature matching result indicating a successful match, the target image acquisition device with a successful match is determined as the second image acquisition device.

4. The target object trajectory detection method according to claim 2, characterized in that: The attribute feature includes a key area feature, and the step of determining the second image acquisition device according to the size of the feature matching value includes: An image acquisition device whose feature matching value is greater than or equal to the second preset matching threshold and less than the first preset matching threshold among the other image acquisition devices is used as a target image acquisition device; Perform feature matching on the key area features of the object in the video stream captured by the target image acquisition device and the key area features of the target object information to obtain a feature matching result; In response to the feature matching result indicating a successful match, the target image acquisition device with a successful match is determined as the second image acquisition device.

5. The target object trajectory detection method according to claim 2, characterized in that: The step of determining the second image acquisition device according to the size of the feature matching value comprises: In response to the feature matching value being greater than or equal to a first preset matching threshold, the corresponding image acquisition device is determined as the second image acquisition device.

6. The target object trajectory detection method according to claim 2, characterized in that: The step of determining the second image acquisition device according to the size of the feature matching value comprises: In response to the fact that there is no corresponding feature matching value greater than or equal to the second preset matching threshold in the other image acquisition devices, it is determined that the second image acquisition device does not exist in the other image acquisition devices.

7. The target object trajectory detection method according to claim 2, characterized in that: The step of performing feature matching processing on the attribute features of the target object information and the attribute features of objects in the video streams collected by other image acquisition devices to obtain feature matching values ​​includes: Calculating the cosine similarity between the attribute features of the objects in the video streams collected by each other image collection device and the attribute features of the target object information; Calculating the Hamming distance between the attribute features of the object in the video stream collected by each other image collection device and the attribute features of the target object information; Calculating the Euclidean distance between the attribute features of the objects in the video streams collected by other image collection devices and the attribute features of the target object information; The cosine similarity, the Hamming distance and the Euclidean distance are weighted averaged to obtain feature matching values ​​between the attribute features of the objects in the video streams collected by other image collection devices and the attribute features of the target object information.

8. The target object trajectory detection method according to claim 1, characterized in that: The video stream acquired by the first image acquisition device further includes a continuous first video frame, a second video frame, and a third video frame, and the method further includes: In response to the target object information existing in the first video frame and not existing in the second video frame, determining whether the target object information exists in the third video frame according to the target object information; If yes, determining the trajectory information of the target object according to the target object information in the first video frame and the target object information in the third video frame; If not, a second image acquisition device is determined from other image acquisition devices in the signal area where the first image acquisition device is located according to the attribute characteristics of the target object in the target object information.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to execute the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: include: Program data is stored, and when the program data is executed by a processor, it is used to implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Pedestrian target movement track acquisition method and system based on multiple cameras

    CN110378931A

  • Target tracking method, device, system, equipment and storage medium

    CN111754551A

  • Motion track confirmation method and device, storage medium and electronic device

    CN112836089A

  • Target tracking method and device based on roadside cameras and electronic equipment

    CN113450390A

  • Cross-border head trajectory tracking method and device and storage medium

    CN113689475A