Motion track processing method and device, computer equipment and storage medium
By updating and filtering the number of coordinate feedback times, the problem of flickering interface tracks when multiple shooting devices shoot the same object at the same time is solved, achieving accurate display of location information and improving processing efficiency.
Patent Information
- Application Number
- CN202410822530.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-03
AI Technical Summary
When existing multiple shooting devices shoot the same object at the same time, the interface track display may continue to flicker.
By obtaining the trajectory related information at the current time, updating the number of coordinate feedbacks, and based on the matching results of the target shooting device identification and the display shooting device identification, we filter out more accurate location information to avoid multiple shooting devices being displayed on the front-end interface at the same time. Location information of the same object.
It effectively avoids the continuous flickering of the interface trajectory display, improves data processing efficiency, and ensures the accuracy of location information.
Smart Images

Figure CN118587241A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a motion trajectory processing method, device, computer equipment and storage medium. Background Art
[0002] With the development of computer technology, the technology for tracking the trajectory of an object has also been developed accordingly. Trajectory tracking technology refers to the technology for updating and displaying the trajectory position of an object in real time.
[0003] However, in the existing technology of object trajectory tracking using multiple cameras, when multiple cameras capture the same object at the same time, the analyzed position information of the same object will be displayed on the interface at the same time, which may cause the interface trajectory display to continue flickering. Summary of the invention
[0004] Based on this, it is necessary to provide a motion trajectory processing method, device, computer equipment, computer-readable storage medium and computer program product to address the above-mentioned technical problems, which can alleviate the problem of continuous flickering when multiple shooting devices simultaneously shoot and analyze the location information of the same object and display it on the front-end interface.
[0005] In a first aspect, the present application provides a motion trajectory processing method, comprising:
[0006] Acquire the trajectory association information at the current time, where the trajectory association information includes the position information of the target object identifier relative to the target shooting device identifier;
[0007] If there is an object key-value pair of the target object identifier, obtain a shooting device key-value pair of the target shooting device identifier for the target object identifier, wherein the value of the shooting device key-value pair is the number of coordinate feedbacks; update the number of coordinate feedbacks to obtain the updated number of coordinate feedbacks; wherein the value of the object key-value pair is the display shooting device identifier of the target object identifier;
[0008] Based on the matching results of the target shooting device identifier and the display shooting device identifier, and the comparison results of the updated coordinate feedback times and the preset times, the target position information is determined from the position information of the target shooting device identifier carried in the trajectory association information and the historical position information corresponding to the display shooting device identifier; the shooting device identifier corresponding to the target position information is used as the updated display shooting device identifier, and the target position information is used to display the trajectory of the target object identifier.
[0009] In a second aspect, the present application provides a motion trajectory processing device, comprising:
[0010] An acquisition module, used to acquire trajectory association information at a current time, wherein the trajectory association information includes position information of a target object identifier relative to a target shooting device identifier;
[0011] A judgment module is used for obtaining a shooting device key-value pair of a target shooting device identifier for the target object identifier if there is an object key-value pair of the target object identifier, wherein the value of the shooting device key-value pair is the number of coordinate feedbacks; updating the number of coordinate feedbacks to obtain an updated number of coordinate feedbacks; wherein the value of the object key-value pair is the display shooting device identifier of the target object identifier;
[0012] A determination module is used to determine the target position information from the position information of the target shooting device identifier carried in the trajectory association information and the historical position information corresponding to the display shooting device identifier based on the matching results of the target shooting device identifier and the display shooting device identifier, and the comparison results of the updated coordinate feedback times and the preset times; the shooting device identifier corresponding to the target position information is used as the updated display shooting device identifier, and the target position information is used to display the trajectory of the target object identifier.
[0013] In a third aspect, the present application provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps in the above method when executing the computer program.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above method when executed by a processor.
[0015] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and the computer program implements the steps in the above method when executed by a processor.
[0016] The above-mentioned motion trajectory processing method, device, computer equipment, computer-readable storage medium and computer program product obtain trajectory association information including the position information of the target object identifier for the target shooting device identifier at the current time, and when there is an object key-value pair of the target object identifier, obtain the shooting device key-value pair of the target shooting device identifier for the target object identifier, and update the value of the shooting device key-value pair, that is, the number of coordinate feedbacks, to obtain the updated number of coordinate feedbacks, and use the key-value pair to record the trajectory record of the object whose trajectory is monitored, and different shooting devices of the same object have corresponding shooting device key-value pairs, which is conducive to the subsequent screening of more accurate position information according to the number of coordinate feedbacks of each shooting device within the effective time. The use of key-value pairs reduces a lot of algorithm logic and improves data processing efficiency; Based on the matching results of the target shooting device identifier and the display shooting device identifier, and the comparison results of the updated coordinate feedback times and the preset times, the target location information is determined from the location information corresponding to the target shooting device identifier and the historical location information corresponding to the display shooting device identifier, and the shooting device identifier corresponding to the target location information is used as the updated display shooting device identifier. This is beneficial for determining the location information currently displayed on the front-end interface according to the real-time update of the key-value pair, and the object key-value pair only records one shooting device identifier. This is beneficial for displaying only the location information corresponding to the display shooting device identifier of the object key-value pair on the front-end interface when multiple shooting devices shoot and analyze the location information of the same object, thereby avoiding the problem of continuous flickering caused by displaying the location information of the same object shot and analyzed by multiple shooting devices on the front-end interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] FIG1 is an application environment diagram of a motion trajectory processing method provided by an embodiment of the present application;
[0018] FIG2 is a schematic diagram of a flow chart of a motion trajectory processing method provided in an embodiment of the present application;
[0019] Figure 3 A flow chart of motion trajectory processing provided in an embodiment of the present application;
[0020] Figure 4 A system architecture diagram related to motion trajectory processing provided in an embodiment of the present application;
[0021] Figure 5 A structural block diagram of a motion trajectory processing device provided in an embodiment of the present application;
[0022] FIG6 is an internal structure diagram of a computer device provided in an embodiment of the present application;
[0023] FIG7 is an internal structure diagram of another computer device provided in an embodiment of the present application;
[0024] Figure 8 An internal structure diagram of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0026] The motion trajectory processing method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through a communication network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0027] As shown in FIG2 , the embodiment of the present application provides a motion trajectory processing method, which is described by taking the method applied to the terminal 102 or the server 104 in FIG1 as an example. It can be understood that the computer device can include at least one of a terminal and a server. The method includes the following steps:
[0028] S200: Acquire trajectory association information at the current time, where the trajectory association information includes position information of the target object identifier relative to the target shooting device identifier.
[0029] Among them, trajectory association information refers to information related to the trajectory of the target object, including but not limited to the target object identifier, the target shooting device identifier and the location information of the target object obtained by analyzing the target shooting device corresponding to the target shooting device identifier; the trajectory association information may include the location information of the same target object obtained by analyzing the target shooting devices corresponding to multiple target shooting device identifiers, and the location information of the same target object analyzed by different target shooting devices may be the same or may contain errors; the trajectory association information may be the location information of the same target object sent by one or more target shooting devices, that is, when the target shooting device shoots the target object, the location information of the target object will be analyzed. The target object identifier is such as a person ID. The target object refers to the object photographed by the target shooting device, which can be but is not limited to a person. The target shooting device refers to the device that shoots the target object, which can be a camera with the function of analyzing the location information of the target object. The target shooting device identifier is such as the ID of the camera.
[0030] Exemplarily, when the target object appears within the shooting range of the shooting device, the shooting device can analyze the captured image to determine the identification and location information of the object in the captured image. The same object may be captured by one or more shooting devices. For each shooting device, the captured image is analyzed to determine the object identification and location information of the object analyzed by each shooting device. The object identification and location information of the object analyzed by each shooting device can be used as trajectory association information, and the trajectory association information can be sent to the terminal or server.
[0031] S202. If there is an object key-value pair for the target object identifier, obtain the shooting device key-value pair for the target shooting device identifier for the target object identifier, where the value of the shooting device key-value pair is the number of coordinate feedbacks; update the number of coordinate feedbacks to obtain the updated number of coordinate feedbacks; wherein the value of the object key-value pair is the display shooting device identifier of the target object identifier.
[0032] Among them, the object key-value pair refers to the key-value pair of the shooting device used to store the location information currently used by the target object; the keyword of the object key-value pair can be the target object identifier, and the value of the object key-value pair can be the shooting device identifier, for example, the keyword of the object key-value pair can be key:trajectory:$personnel, and the value of the object key-value pair can be the ID of the camera (which can be represented by $deviceId). The shooting device key-value pair refers to the key-value pair used to store the number of times the location information of the target object sent by the shooting device is received; the keywords of the shooting device key-value pair can include the target object identifier and the shooting device identifier, and the semantics of the keywords of the shooting device key-value pair can represent the location trajectory of the target object captured by a certain shooting device, and the value of the shooting device key-value pair can be the number of times the location information of the target object sent by the shooting device is received (i.e., the number of coordinate feedbacks), for example, the keyword of the shooting device key-value pair can be key:trajectory:$personnel:$deviceId, and the value of the shooting device key-value pair can be the number of coordinate feedbacks. The number of coordinate feedbacks refers to the number of times the location information of the target object sent by the target shooting device is received. The display shooting device identifier refers to the identifier of the shooting device corresponding to the location information of the target object being displayed on the interface.
[0033] Exemplarily, in order to achieve logical deduplication of the coordinates of the same object under multiple photographing devices, so as to improve processing efficiency while ensuring the accuracy of the object position information, the trajectory position of the object currently displayed on the front-end interface can be stored in the form of key-value pairs, so as to avoid continuous flickering caused by the front-end interface simultaneously displaying the position information of the same object fed back by multiple photographing devices when multiple photographing devices all photograph the same object. That is, when an object key-value pair of the target object identifier already exists, a photographing device key-value pair of the target photographing device identifier for the target object identifier can be obtained. The photographing device key-value pair can be used to count the number of times the target photographing device corresponding to the photographing device key-value pair feeds back the position information of the target object identifier. When the number of coordinate feedbacks reaches a preset number, it means that the target object has stayed within the shooting range of the photographing device corresponding to the photographing device key-value pair for a relatively long time, and the accuracy of the corresponding photographing device in analyzing the captured picture is also relatively high, which is beneficial for filtering out the coordinate information analyzed by a photographing device with a lower accuracy than other photographing devices when multiple photographing devices all photograph the same object. In detail, the value of the shooting device key-value pair is the number of coordinate feedbacks of the target shooting device for the position information of the target object. When there is an object key-value pair with a target object identifier, the value in the shooting device key-value pair corresponding to the target shooting device identifier for the target object identifier can be incremented, that is, the number of coordinate feedbacks can be incremented by 1 to obtain an updated number of coordinate feedbacks, thereby providing a data basis for subsequent screening of the position information corresponding to the shooting device identifier for the target object identifier.
[0034] S204. Based on the matching result of the target shooting device identifier and the display shooting device identifier, and the comparison result of the updated coordinate feedback times and the preset times, determine the target position information from the position information of the target shooting device identifier carried in the trajectory association information and the historical position information corresponding to the display shooting device identifier; use the shooting device identifier corresponding to the target position information as the updated display shooting device identifier, and the target position information is used to display the trajectory of the target object identifier.
[0035] Among them, the preset number refers to the number of times the location information of the same object sent by the camera device is received to the maximum extent within the preset time; the preset number can be determined according to the frequency of the camera device collecting pictures, such as collecting 6 pictures per second. If the target object exists in the picture, the camera device returns the location information once. If the target object exists in all 6 pictures, the camera device returns the location information of the target object 6 times. The location information of the target object obtained by analyzing each picture may be different. If the preset time is 1 second, the preset number can be 1×6=6 times. Similarly, if the preset time is 2 seconds, the preset number can be 2×6=12 times. Historical location information refers to the location information of the target object displayed on the front-end interface before the current time. Target location information refers to the location information of the target object that will be displayed on the front-end interface at present.
[0036] Exemplarily, the keyword of the object key-value pair is the target object identifier, and the value of the object key-value pair is the display camera identifier. The object key-value pair can be used to store the camera identifier corresponding to the location information of the target object currently displayed on the front-end interface. If there is an object key-value pair of the target object identifier, it is further determined whether the value of the object key-value pair needs to be updated, and whether the target camera identifier is consistent with the display camera identifier. If they are consistent, the location information corresponding to the target camera identifier is used as the target location information, and the target camera identifier is used as the display camera identifier, and the second valid statistical time of the object key-value pair is reset; if they are inconsistent, it is further determined whether the updated value Whether the number of coordinate feedback is equal to the preset number of times, if it is equal to the preset number of times, it means that the accuracy of the location information corresponding to the target shooting device identifier is guaranteed, and the location information corresponding to the target shooting device identifier can be used as the target location information, and the target shooting device identifier can be used as the display shooting device identifier, and the second valid statistical time of the object key-value pair can be reset; if it is not equal to the preset number of times, it means that the accuracy of the location information corresponding to the target shooting device identifier is difficult to guarantee, and the possibility of error is relatively large, and the historical location information corresponding to the display shooting device identifier can be used as the target location information, and the display shooting device identifier will not be updated, and the second valid statistical time of the object key-value pair can be reset.
[0037] The above-mentioned motion trajectory processing method obtains trajectory association information including the position information of the target object identifier for the target shooting device identifier at the current time, and when there is an object key-value pair of the target object identifier, obtains the shooting device key-value pair of the target shooting device identifier for the target object identifier, and updates the value of the shooting device key-value pair, that is, the number of coordinate feedbacks, to obtain the updated number of coordinate feedbacks, and uses the key-value pair method to record the trajectory record of the object whose trajectory is monitored, and different shooting devices of the same object have corresponding shooting device key-value pairs, which is conducive to the subsequent screening of more accurate position information according to the number of coordinate feedbacks of each shooting device within the effective time. The use of key-value pairs reduces a lot of algorithm logic and improves data processing efficiency; based on the target shooting device identifier and the display shooting device The matching result of the camera identification and the comparison result of the updated coordinate feedback times and the preset times are used to determine the target location information from the location information corresponding to the target camera identification and the historical location information corresponding to the display camera identification, and the camera identification corresponding to the target location information is used as the updated display camera identification. This is beneficial for determining the location information currently displayed on the front-end interface according to the real-time update of the key-value pair, and the object key-value pair only records one camera identification. This is beneficial for displaying only the location information corresponding to the display camera identification of the object key-value pair on the front-end interface when multiple cameras capture and analyze the location information of the same object, thereby avoiding the problem of continuous flickering when the location information of the same object captured and analyzed by multiple cameras is displayed on the front-end interface.
[0038] In some embodiments, in S204, based on the matching result of the target shooting device identifier and the display shooting device identifier, and the comparison result of the updated coordinate feedback times and the preset times, the target location information is determined from the location information of the target shooting device identifier carried in the trajectory association information and the historical location information corresponding to the display shooting device identifier, including:
[0039] S300: If the target shooting device identifier and the display shooting device identifier are consistent, the position information of the target shooting device identifier is used as the target position information.
[0040] Alternatively, S302, if the target shooting device identifier and the display shooting device identifier are inconsistent, based on the comparison result of the updated coordinate feedback times and the preset times, the target position information is determined from the position information of the target shooting device identifier carried in the trajectory association information and the historical position information corresponding to the display shooting device identifier.
[0041] Exemplarily, if the currently acquired target shooting device identifier is consistent with the display shooting device identifier of the object key-value pair, it means that the current time and the previous time are both the same shooting device that photographed the target object, and the accuracy of the location information obtained by analyzing the target shooting device corresponding to the target shooting device identifier is guaranteed. The location information corresponding to the target shooting device identifier can be directly used as the target location information, and the second valid statistical time of the object key-value pair is reset. If the currently acquired target shooting device identifier is inconsistent with the display shooting device identifier of the object key-value pair, it means that the current time and the previous time are not the same shooting device that photographed the same target object. To ensure the accuracy of the location information of the target object, it can be further determined based on the comparison result of the coordinate feedback times of the shooting device key-value pair corresponding to the target shooting device identifier and the preset times to determine whether to use the location information corresponding to the target shooting device identifier as the target location information or the historical location information corresponding to the display shooting device identifier as the target location information, thereby improving the accuracy of the location information of the target object that will be displayed on the front-end interface.
[0042] It can be seen that in this embodiment, by judging whether the target shooting device identification and the display shooting device identification are consistent, if they are consistent, the position information corresponding to the target shooting device identification is directly used as the target position information; if they are inconsistent, the updated coordinate feedback times of the shooting device key-value pair are further compared with the preset times, and the target position information is determined based on the comparison result. Through different judgment conditions, the target position information of the target object is judged step by step, which ensures the accuracy of the position information of the target object. At the same time, it is also helpful to screen out the position information of the shooting device feedback that is not accurate and easily causes continuous flashing when the front-end interface displays the target object trajectory, thereby improving the viewing experience of the front-end interface displaying the target object trajectory.
[0043] In some embodiments, in S302, based on the comparison result of the updated coordinate feedback times and the preset times, the target location information is determined from the location information of the target shooting device identifier carried in the trajectory association information and the historical location information corresponding to the display shooting device identifier, including:
[0044] S400: If the updated coordinate feedback times are not equal to the preset times, the historical location information corresponding to the photographing device identifier is displayed as the target location information.
[0045] Alternatively, S402: if the number of updated coordinate feedbacks is equal to the preset number, the position information identified by the target shooting device is used as the target position information.
[0046] Exemplarily, if the number of updated coordinate feedbacks is not equal to the preset number of times, it means that the target object has stayed within the shooting range of the target shooting device corresponding to the target shooting device identifier for an extremely short time, and the position information obtained by the target shooting device analysis is relatively large and may have a large error. The historical position information corresponding to the shooting device identifier can continue to be used, and the historical position information can still be used as the target position information; if the number of updated coordinate feedbacks is equal to the preset number of times, it means that the target object has stayed within the shooting range of the target shooting device corresponding to the target shooting device identifier for an expected length of time. At this time, the accuracy of the position information of the target object obtained by the target shooting device analysis is guaranteed, and the precision is relatively high. The position information corresponding to the target shooting device identifier can be used as the target position information.
[0047] It can be seen that in this embodiment, when the target shooting device identifier and the display shooting device identifier are inconsistent, the updated coordinate feedback times and the preset times in the shooting device key-value pair are further compared, and the target position information is determined from the position information corresponding to the target shooting device identifier and the historical position information of the display shooting device identifier based on the comparison result. This is conducive to screening out position information with low accuracy, avoiding that each position information is displayed as target position information on the front-end interface causing continuous flickering, and improving the viewing experience of the front-end interface displaying the target object trajectory.
[0048] In some embodiments, in S204, using the photographing device identification corresponding to the target location information as the updated display photographing device identification includes:
[0049] S500: If the target shooting device identifier and the display shooting device identifier are consistent, the display shooting device identifier will not be updated.
[0050] Alternatively, S502: if the target shooting device identifier and the display shooting device identifier are inconsistent, and the number of updated coordinate feedback times is not equal to the preset number, the display shooting device identifier is not updated.
[0051] Alternatively, S504: if the target shooting device identifier and the display shooting device identifier are inconsistent, and the number of updated coordinate feedback times is equal to the preset number, the target shooting device identifier is used as the updated display shooting device identifier.
[0052] Exemplarily, the object key-value pair records which shooting device the location information of the target object currently displayed on the front-end interface comes from. The timely recording of the object key-value pair is helpful to avoid the continuous flickering of the location information display on the front-end interface and ensure the accuracy of the displayed location information. If the target shooting device identifier and the display shooting device identifier are consistent, the original display shooting device identifier will still be used as the value of the object key-value pair, and the second valid statistical time of the object key-value pair will be reset to refresh the valid time of the object key-value pair and avoid the object key-value pair being cleared; if the target shooting device identifier and the display shooting device identifier are inconsistent, and the shooting device key value is If the number of feedbacks on the updated coordinates is not equal to the preset number, the original display shooting device identifier will still be used as the value of the object key-value pair, and the second statistical effective time of the object key-value pair will be reset to refresh the effective time of the object key-value pair and avoid the object key-value pair being cleared; if the target shooting device identifier and the display shooting device identifier are inconsistent, and the number of feedbacks on the updated coordinates of the shooting device key-value pair is equal to the preset number, the target shooting device identifier will be used as the updated display shooting device identifier, and the second statistical effective time of the object key-value pair will be reset to ensure the real-time accuracy of the records and avoid the object key-value pair being cleared after the effective time has expired.
[0053] It can be seen that in this embodiment, by matching the target shooting device identifier with the display shooting device identifier, and further comparing the updated coordinate feedback times with the preset times based on the matching results, in order to determine whether to update the display shooting device identifier, it is beneficial to ensure the accuracy of the update of the display device shooting identifier and the accuracy of the location information displayed on the front-end interface, thereby avoiding the problem of continuous flickering caused by the front-end interface displaying the location information of the same object fed back by multiple shooting devices at one time.
[0054] In some embodiments, after using the shooting device identifier corresponding to the target position information as the updated display shooting device identifier in S204, the motion trajectory processing method further includes:
[0055] Resets the second valid statistical time of the object key-value pair.
[0056] The second effective statistical time refers to the effective time of the key-value pair of the statistical object, and resetting refers to the operation of returning the second effective statistical time to zero.
[0057] Exemplarily, to ensure that the object key-value pair is recorded in a timely and accurate manner, after determining the target location information, regardless of whether the display camera identifier in the object key-value pair is updated or replaced, it is necessary to reset the second valid statistical time of the object key-value pair, that is, to reset the second valid statistical time of the object key-value pair to zero, thereby ensuring the accuracy of subsequent judgments and avoiding the situation where multiple camera devices simultaneously feedback the location information of the same object, causing the front-end interface to continue flickering.
[0058] In some embodiments, the target shooting device identifier includes multiple ones; in S504, the target shooting device identifier is used as the updated display shooting device identifier, including:
[0059] S600: Determine a current shooting device identifier from each target shooting device identifier based on a thread execution order.
[0060] S602: Acquire a distributed lock corresponding to the target object identifier, and use the current shooting device identifier as an updated display shooting device identifier.
[0061] Among them, the thread execution order refers to the order in which the threads are executed. The current shooting device identifier refers to the shooting device identifier currently used to replace the value of the object key-value pair. Distributed lock is a technology that implements a synchronization mechanism in a distributed system. It can control the synchronous access to shared resources between distributed systems to ensure consistency and mutual exclusivity; the distributed lock of this application can be implemented through the key-value pair key:trajectory:$personnel:only.
[0062] Exemplarily, the trajectory association information may include position information corresponding to multiple target shooting device identifiers for the same target object identifier. In order to prevent the problem of disordered order when the value of the object key-value pair of the target object identifier is replaced, a distributed lock can be used to control data access during the replacement of the value of the object key-value pair. Specifically, based on the thread execution order, the current shooting device identifier can be determined from each target shooting device identifier and the distributed lock corresponding to the target object identifier can be obtained. When the distributed lock is obtained, the current shooting device identifier is used as the updated display shooting device identifier, and the position information corresponding to the display shooting device identifier is sent to the terminal as the target position information, so that the terminal displays the target position information of the target object on the front-end interface, thereby achieving the goal of displaying the position information of one shooting device feedback on the front-end interface each time, thereby avoiding the situation where the front-end interface displays continuous flickering when multiple shooting devices simultaneously feedback the position information of the same object.
[0063] It can be seen that in this embodiment, the replacement of the display shooting device identification of the object key-value pair is realized by adopting a distributed lock, which is beneficial to preventing the problem of disorder of order that may occur in the case of concurrent replacement, thereby facilitating the front-end interface to display only the location information of one shooting device feedback at a time, avoiding the problem of low viewing quality caused by continuous flickering.
[0064] In some embodiments, the motion trajectory processing method further includes:
[0065] S700: If the second effective statistical time of the object key-value pair is greater than the second preset effective time, clear the object key-value pair.
[0066] S702: If the first valid statistical time of the shooting device key-value pair is greater than the first preset valid time, clear the shooting device key-value pair.
[0067] S704: If the third effective statistical time of the distributed lock is greater than the third preset effective time, clear the distributed lock.
[0068] Among them, the first preset effective time refers to the critical time value of the effective key-value pair of the shooting device. The second preset effective time refers to the critical time value of the effective key-value pair of the object. The first effective statistical time refers to the effective time used to count the key-value pairs of the shooting device. The third statistical effective time refers to the effective time used to count the distributed lock. The third preset effective time refers to the critical time value of the effective distributed lock.
[0069] Exemplarily, in order to clear the target object's track record when the target object is out of the shooting range of the shooting device for more than the second preset effective time, and when the target object reappears in the shooting range of the shooting device, it can be immediately known that there is no track of the target object at present, without further judging the number of coordinate feedbacks in the shooting key-value pair, and immediately display the target object's track on the front-end interface, a second effective statistical time can be set for the object key-value pair, and when the second effective statistical time is greater than the second preset effective time, the object key-value pair can be cleared to achieve the clearing of the target object's track record, thereby improving the judgment efficiency when the target object reappears in the shooting range. In order to reset the number of coordinate feedbacks of the shooting device key-value pair when the target object reenters the shooting range after walking out of the shooting range of the shooting device for a period of time, the first effective statistical time can also be set for the shooting device key-value pair, and when the first effective statistical time is greater than the first preset effective time, the shooting device key-value pair can be cleared, and when the target shooting device identifier for the target object identifier appears again, a new shooting device key-value pair can be created to reset the number of coordinate feedbacks to zero. In order to avoid the situation where the thread that has acquired the distributed lock cannot release the lock in time after being blocked, resulting in the blocking of other threads as a whole, a third effective statistical time can be set for the distributed lock, and when the third effective statistical time is greater than the third preset effective time, the distributed lock is cleared, so that when the distributed lock is not released, the old distributed lock expires and a new lock is regenerated, thereby avoiding the situation where other threads are blocked as a whole.
[0070] It can be seen that in this embodiment, by setting the effective statistical time for the object key-value pair, the shooting device key-value pair and the distributed lock respectively, and clearing the corresponding key-value pair or distributed lock when the corresponding effective statistical time is greater than the corresponding preset effective time, it is beneficial to ensure the smoothness of multi-threaded execution, speed up the efficiency of analyzing the trajectory information of the reappearance of a certain object, and avoid the continuous flickering problem caused by the front-end interface simultaneously receiving the position information of the same object fed back by multiple shooting devices.
[0071] In some embodiments, the motion trajectory processing method further includes:
[0072] If the object key-value pair of the target object identifier does not exist, an object key-value pair of the target object identifier is created, the target shooting device identifier is used as the value of the object key-value pair, and the location information of the target shooting device identifier is used as the target location information.
[0073] Exemplarily, if there is no object key-value pair identifying the target object, it means that at the current time, the front-end interface does not display the trajectory of the target object, and this is the first time that the target object has been photographed or the target object has re-entered the shooting range after leaving the range of each shooting device for a period of time. At this time, the object key-value pair identifying the target object can be re-created, and the target shooting device identifier is used as the value of the object key-value pair, and the location information of the target shooting device identifier is used as the target location information, and the second valid statistical time of the object key-value pair is reset so that the second valid statistical time starts from 0. If the reset is not reached in the subsequent process, the object key-value pair is automatically cleared when the second valid statistical time is greater than the second preset valid time, so that the object key-value pair is re-created when the target object reappears, so that the object key-value pair can be analyzed based on the object key-value pair whether to directly adopt the coordinate information fed back by the shooting device at the current time, thereby reducing a lot of algorithm processing logic and improving the efficiency of data processing and judgment.
[0074] It can be seen that in this embodiment, when an object key-value pair of the target object identifier does not exist, an object key-value pair of the target object identifier is created, and the target shooting device identifier is used as the value of the object key-value pair, and the location information of the target shooting device identifier is used as the target location information. This is beneficial for reducing a lot of algorithm processing logic on the basis of ensuring accurate analysis of the location information, thereby improving the efficiency of data processing and judgment.
[0075] In some embodiments, if the target object is within the shooting range of multiple shooting devices, the shooting device that shoots the target object can be used as the target shooting device, and the target shooting device can be identified by the corresponding target shooting device identifier. Each target shooting device can analyze the location information of the target object based on the captured image, and obtain the location information corresponding to the target object identifier for each target shooting device identifier. Each target shooting device can send the location information of the target object obtained by the corresponding analysis to the server, and the server obtains the location information corresponding to the target object identifier for each target shooting device identifier, and uses the location information corresponding to the target object identifier for each target shooting device identifier as the trajectory association information. The server determines whether there is an object key-value pair of the target object identifier. If there is no object key-value pair of the target object identifier, it creates an object key-value pair of the target object identifier, sets the second valid statistical time of the object key-value pair, and determines the current shooting device identifier from the multiple target shooting device identifiers based on the thread execution order and obtains the distributed lock corresponding to the target object identifier. After obtaining the distributed lock, the current shooting device identifier is used as the display shooting device identifier of the object key-value pair, and the location information corresponding to the display shooting device identifier is sent to the terminal, so that the terminal displays the location information corresponding to the display device identifier on the front-end interface to display the trajectory of the target object.
[0076] Furthermore, if there is an object key-value pair for the target object identifier, the camera key-value pairs corresponding to each target camera identifier of the target object identifier can be obtained, wherein, if there is no camera key-value pair corresponding to a certain target camera identifier of the target object identifier, a camera key-value pair corresponding to the target camera identifier of the target object identifier is created, and the value of the camera key-value pair corresponding to each target camera identifier is the number of coordinate feedbacks, and the number of coordinate feedbacks in each camera key-value pair can be incremented by 1 to obtain the updated number of coordinate feedbacks for each camera key-value pair; in addition, the value of the object key-value pair is the display camera identifier corresponding to the target object identifier, and for each target camera identifier, if the target camera identifier is consistent with the display camera identifier, the display camera identifier of the object key-value pair is not updated, the second valid statistical time of the object key-value pair is reset, and the location information corresponding to the target camera identifier is directly used as the target location information, and the target location information is sent to the terminal, so that the terminal displays the target location information of the target object on the front-end interface; if the target camera identifier is inconsistent with the display camera identifier, then when the camera key-value pair corresponding to the target camera identifier is When the number of updated coordinate feedbacks of the value pair is not equal to the preset number, the display camera identifier of the object key-value pair is not updated, the second valid statistical time of the object key-value pair is reset, and the historical position information corresponding to the display camera identifier continues to be used as the target position information, or, when the number of updated coordinate feedbacks of the camera key-value pair corresponding to the target camera identifier is equal to the preset number, the target camera identifier is used as the camera identifier to be replaced. If there are multiple camera identifiers to be replaced, the current camera identifier can be determined from the camera identifiers to be replaced based on the thread execution order, the distributed lock corresponding to the target object identifier is obtained, and the current camera identifier is used as the updated display camera identifier of the object key-value pair, the second valid statistical time of the object key-value pair is reset, the position information corresponding to the target object identifier for the current camera identifier is used as the target position information, and the target position information is sent to the terminal, so that the terminal displays the target position information on the front-end interface and displays the new trajectory of the target object. When the distributed lock is released, the backward camera identifier of the current camera identifier is used as the current camera identifier, and so on, so as to realize the return of the position information of the target object identifier obtained by analyzing a camera device each time.
[0077] In some embodiments, the trajectory of a person can be used as an example to describe the target object. Figure 3Multiple shooting devices can be installed in the actual application scenario of monitoring the trajectory of personnel, and each shooting device can analyze the captured image, identify whether there is a target object and the location information of the target object, and send a shooting device identifier that can identify the shooting device and a target object identifier that can identify the target object (i.e. Figure 3 The person ID or $personnel in the image capture device) and the location information of the target object are sent to the terminal or server for processing; the following description is based on the server receiving the trajectory association information sent by the camera device for processing. The server can use the camera device identifier of each camera device as the target camera device identifier (i.e. Figure 3 $deviceId in the target shooting device identifier, the target object identifier, and the position information corresponding to the target object identifier for the target shooting device identifier are used as the trajectory association information; determine whether there is an object key-value pair of the target object identifier (i.e., the corresponding Figure 3 'Does the person id have a track', and the object key-value pair corresponds Figure 3 If the object key-value pair of the target object identifier does not exist, create an object key-value pair of the target object identifier, use the target camera identifier as the value of the newly created object key-value pair, and use the location information corresponding to the target camera identifier as the target location information; if the object key-value pair of the target object identifier exists, obtain the camera key-value pair of the target object identifier for the target camera identifier (i.e. Figure 3 key2:trajectory:$personnel:$deviceId in the object key-value pair), and increment the value of the camera key-value pair (i.e., the number of coordinate feedbacks) by 1 to obtain the updated number of coordinate feedbacks; if the target camera device identifier is the same as the display camera device identifier of the object key-value pair, the display camera device identifier of the object key-value pair is not replaced, and the second valid statistical time of the object key-value pair is reset (corresponding to Figure 3 refresh the expiration time of key1:trajectory:$personnel in the target object identifier and the location information corresponding to the target camera identifier as the target location information; 6 can be used as the preset number of times. If the target camera identifier is different from the display camera identifier of the object key-value pair, and the updated coordinate feedback number is equal to the preset number of times, it means that the target object is detected in the new camera (i.e., the corresponding Figure 3 The new camera in the image) analyzes the location information obtained and obtains the distributed lock corresponding to the target object identifier (i.e. Figure 3key3:trajectory:$personnel:only in , and when the distributed lock is obtained, the target shooting device identifier is used as the updated display shooting device identifier of the object key-value pair, and the location information corresponding to the target shooting device identifier is used as the target location information, and the target location information is sent to the terminal, so that the terminal displays the target location information on the front-end interface and displays the new trajectory of the target object, thereby realizing the real-time update of the trajectory records of each object through the key-value pair, reducing a lot of algorithm logic, and only feeding back the location information analyzed by one shooting device each time, avoiding the situation that the location information of the same object analyzed by multiple shooting devices is fed back at the same time, causing the front-end interface to continue to flicker, ensuring that the shooting device identifier is inconsistent with the value of the object key-value pair, and the number of coordinate feedbacks is equal to the preset number, the location information that meets the condition is used as the target location information, effectively filtering out the location information with low accuracy, and setting a distributed lock each time the value of the object key-value pair is replaced, effectively ensuring the smooth execution of each thread, and on the basis of improving the efficiency of data processing and judgment, better solving the problem of continuous flickering of the front-end interface caused by multiple shooting devices simultaneously feeding back the location information of the same object.
[0078] In some embodiments, the Figure 4 The system architecture performs motion trajectory processing operations. Figure 4 The data collection layer takes pictures through a shooting device (i.e., a camera) and analyzes the target object identifier and the location information of the target object in the image based on a preset algorithm. Then, each shooting device sends its own shooting device identifier and the analyzed target object identifier and the corresponding location information to the service layer for analysis. The server determines the target location information of the target object based on the received target object identifier for the location information of each shooting device identifier, and displays the target location information in the display layer to display the trajectory of the target object. The trajectory can be presented in 2D or 3D. In addition, DevOps technology can be used to operate and maintain the system, including using Docker for containerized management and deployment of services; completing CI (Continuous Integration) / CD (Continuous Delivery) based on Jenkins, that is, realizing continuous integration and continuous deployment of services; using Prometheus to monitor the status of the service, and automatically and promptly notifying the operation and maintenance personnel to handle the system abnormalities.
[0079] It should be understood that, although the steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indications of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0080] Based on the same inventive concept, the embodiment of the present application also provides a motion trajectory processing device. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more motion trajectory processing device embodiments provided below can refer to the limitations of the motion trajectory processing method above, and will not be repeated here.
[0081] like Figure 5 As shown, the embodiment of the present application provides a motion trajectory processing device 500, including:
[0082] An acquisition module 502 is used to acquire the track association information at the current time, where the track association information includes the position information of the target object identifier relative to the target shooting device identifier;
[0083] The judgment module 504 is used to obtain a shooting device key-value pair of a target shooting device identifier for the target object identifier if there is an object key-value pair of the target object identifier, wherein the value of the shooting device key-value pair is the number of coordinate feedbacks; the number of coordinate feedbacks is updated to obtain an updated number of coordinate feedbacks; wherein the value of the object key-value pair is the display shooting device identifier of the target object identifier;
[0084] Determination module 506 is used to determine the target position information from the position information of the target shooting device identifier carried in the trajectory association information and the historical position information corresponding to the display shooting device identifier based on the matching result of the target shooting device identifier and the display shooting device identifier, and the comparison result of the updated coordinate feedback number and the preset number; the shooting device identifier corresponding to the target position information is used as the updated display shooting device identifier, and the target position information is used to display the trajectory of the target object identifier.
[0085] In some embodiments, in determining the target location information from the location information of the target camera identifier carried in the trajectory association information and the historical location information corresponding to the display camera identifier based on the matching result of the target camera identifier and the display camera identifier, and the comparison result of the updated coordinate feedback times and the preset times, the determination module 506 is specifically used to:
[0086] If the target shooting device identifier and the display shooting device identifier are consistent, the location information of the target shooting device identifier is used as the target location information; or,
[0087] If the target shooting device identifier and the display shooting device identifier are inconsistent, the target position information is determined from the position information of the target shooting device identifier carried in the trajectory association information and the historical position information corresponding to the display shooting device identifier based on the comparison result of the updated coordinate feedback times and the preset times.
[0088] In some embodiments, in determining the target location information from the location information of the target shooting device identifier carried in the trajectory association information and the historical location information corresponding to the display shooting device identifier based on the comparison result of the updated coordinate feedback number and the preset number, the determination module 506 is specifically used to:
[0089] If the updated coordinate feedback times are not equal to the preset times, the historical location information corresponding to the camera identification is displayed as the target location information; or,
[0090] If the updated coordinate feedback times are equal to the preset times, the location information identified by the target shooting device is used as the target location information.
[0091] In some embodiments, in terms of using the photographing device identification corresponding to the target location information as the updated display photographing device identification, the determination module 506 is specifically configured to:
[0092] If the target camera ID and the display camera ID are the same, the display camera ID will not be updated; or,
[0093] If the target camera identification and the display camera identification are inconsistent, and the updated coordinate feedback times are not equal to the preset times, the display camera identification is not updated; or,
[0094] If the target shooting device identification and the display shooting device identification are inconsistent, and the number of updated coordinate feedbacks is equal to the preset number, the target shooting device identification is used as the updated display shooting device identification;
[0095] After using the shooting device identifier corresponding to the target position information as the updated display shooting device identifier, the motion trajectory processing method further includes:
[0096] Resets the second valid statistical time of the object key-value pair.
[0097] In some embodiments, the target shooting device identifier includes multiple ones; in terms of using the target shooting device identifier as the updated display shooting device identifier, the determination module 506 is specifically used to:
[0098] Based on the thread execution order, determine the current shooting device identifier from each target shooting device identifier;
[0099] Get the distributed lock corresponding to the target object identifier, and use the current camera identifier as the updated display camera identifier.
[0100] In some embodiments, the motion trajectory processing device 500 further includes a clearing module 508, and the clearing module 508 is used to:
[0101] If the second effective statistical time of the object key-value pair is greater than the second preset effective time, clearing the object key-value pair;
[0102] If the first valid statistical time of the camera key-value pair is greater than the first preset valid time, clearing the camera key-value pair;
[0103] If the third effective statistical time of the distributed lock is greater than the third preset effective time, the distributed lock is cleared.
[0104] In some embodiments, the judgment module 504 is also used to: if there is no object key-value pair for the target object identifier, create an object key-value pair for the target object identifier, use the target shooting device identifier as the value of the object key-value pair, and use the location information of the target shooting device identifier as the target location information.
[0105] Each module in the above-mentioned motion trajectory processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0106] In some embodiments, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to motion trajectory processing. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps in the above-mentioned motion trajectory processing method are implemented.
[0107] In some embodiments, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG7. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, the steps in the above-mentioned motion trajectory processing method are implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen; the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0108] Those skilled in the art will understand that the structure shown in FIG. 6 or FIG. 7 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0109] In some embodiments, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps in the above method embodiments are implemented.
[0110] In some embodiments, Figure 8 The figure shows an internal structure diagram of a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0111] In some embodiments, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0112] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0113] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0114] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0115] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A motion trajectory processing method, It is characterized in that include: Acquire trajectory association information at the current time, wherein the trajectory association information includes position information of the target object identifier relative to the target shooting device identifier; If there is an object key-value pair of the target object identifier, obtain a shooting device key-value pair of the target shooting device identifier for the target object identifier, wherein the value of the shooting device key-value pair is the coordinate feedback number; update the coordinate feedback number to obtain the updated coordinate feedback number; wherein the value of the object key-value pair is the display shooting device identifier of the target object identifier; Based on the matching result of the target shooting device identifier and the display shooting device identifier, and the comparison result of the updated coordinate feedback times and the preset times, the target position information is determined from the position information of the target shooting device identifier carried in the trajectory association information and the historical position information corresponding to the display shooting device identifier; the shooting device identifier corresponding to the target position information is used as the updated display shooting device identifier, and the target position information is used to display the trajectory of the target object identifier.
2. The method according to claim 1, It is characterized in that The determining of the target location information from the location information of the target camera identifier carried in the trajectory association information and the historical location information corresponding to the display camera identifier based on the matching result of the target camera identifier and the display camera identifier, and the comparison result of the updated coordinate feedback times and the preset times, includes: If the target shooting device identifier is consistent with the display shooting device identifier, the location information of the target shooting device identifier is used as the target location information; or, If the target shooting device identifier and the display shooting device identifier are inconsistent, the target position information is determined from the position information of the target shooting device identifier carried in the trajectory association information and the historical position information corresponding to the display shooting device identifier based on the comparison result of the updated coordinate feedback number and the preset number.
3. The method according to claim 2, It is characterized in that The step of determining the target position information from the position information of the target shooting device identifier carried in the track association information and the historical position information corresponding to the display shooting device identifier based on the comparison result of the updated coordinate feedback number and the preset number, comprises: If the updated coordinate feedback times are not equal to the preset times, the historical location information corresponding to the display shooting device identifier is used as the target location information; or, If the updated coordinate feedback times are equal to the preset times, the position information identified by the target shooting device is used as the target position information.
4. The method according to claim 1, It is characterized in that The step of using the photographing device identifier corresponding to the target location information as the updated display photographing device identifier includes: If the target shooting device identifier is consistent with the display shooting device identifier, the display shooting device identifier will not be updated; or, If the target shooting device identifier and the display shooting device identifier are inconsistent, and the updated coordinate feedback times are not equal to the preset times, the display shooting device identifier is not updated; or, If the target shooting device identifier and the display shooting device identifier are inconsistent, and the updated coordinate feedback times are equal to the preset times, the target shooting device identifier is used as the updated display shooting device identifier; After using the photographing device identification corresponding to the target position information as the updated display photographing device identification, the method further includes: Reset the second valid statistical time of the object key-value pair.
5. The method according to claim 4, It is characterized in that The target shooting device identifier includes a plurality of identifiers; and using the target shooting device identifier as an updated display shooting device identifier includes: Based on the thread execution order, determining the current shooting device identifier from each of the target shooting device identifiers; The distributed lock corresponding to the target object identifier is obtained, and the current shooting device identifier is used as the updated display shooting device identifier.
6. The method according to claim 5, It is characterized in that The method further comprises: If the second valid statistical time of the object key-value pair is greater than the second preset valid time, clearing the object key-value pair; If the first valid statistical time of the camera key-value pair is greater than the first preset valid time, clearing the camera key-value pair; If the third effective statistical time of the distributed lock is greater than the third preset effective time, the distributed lock is cleared.
7. The method according to claim 1, It is characterized in that The method further comprises: If the object key-value pair of the target object identifier does not exist, an object key-value pair of the target object identifier is created, the target shooting device identifier is used as the value of the object key-value pair, and the location information of the target shooting device identifier is used as the target location information.
8. A motion trajectory processing device, It is characterized in that include: An acquisition module, used to acquire track association information at a current time, wherein the track association information includes position information of a target object identifier relative to a target shooting device identifier; A judgment module, configured to obtain a shooting device key-value pair of a target shooting device identifier for the target object identifier if there is an object key-value pair for the target object identifier, wherein the value of the shooting device key-value pair is the number of coordinate feedbacks; and update the number of coordinate feedbacks to obtain an updated number of coordinate feedbacks; wherein the value of the object key-value pair is the display shooting device identifier of the target object identifier; A determination module is used to determine the target position information from the position information of the target shooting device identifier carried in the trajectory association information and the historical position information corresponding to the display shooting device identifier based on the matching result of the target shooting device identifier and the display shooting device identifier, and the comparison result of the updated coordinate feedback number and the preset number; the shooting device identifier corresponding to the target position information is used as the updated display shooting device identifier, and the target position information is used to display the trajectory of the target object identifier.
9. A computer device, comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
