Security tracking method and device
By applying blockchain technology in the security tracking system, using the target characteristics of the task target released by the first network node and the monitoring data of the second network node to generate the blockchain, automated security tracking is realized and the efficiency problems in the existing technology are solved. This reduces the problem of low performance and improves tracking efficiency.
Patent Information
- Application Number
- CN202210726469.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-06-24
AI Technical Summary
Existing security tracking methods rely too much on manual operations and are inefficient especially when the amount of data is large, making it difficult to efficiently achieve automated tracking of task targets.
By using blockchain technology in the security tracking system, the first network node issues a security tracking task, including the target characteristics of the task target, and the second network node receives and matches the monitoring data, and generates a blockchain to achieve automated tracking results. Generation and integration.
It realizes automated task target tracking and monitoring discovery, improves the efficiency of security tracking, reduces dependence on manual operations, and can efficiently process large amounts of data.
Smart Images

Figure CN115063744B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of security monitoring technology, and in particular to a security tracking method and device. Background Art
[0002] With the continuous advancement of technology, security tracking technology is also constantly iterating and updating. Among them, the conventional security tracking method is mainly to set up monitoring equipment in multiple areas in advance, and then identify and detect the targets that need to be checked through the monitoring data of multiple monitoring devices, so as to achieve the tracking effect of the mission target.
[0003] At present, common security tracking mainly involves specific identification of the task target after integrating the data streams collected by multiple monitoring devices in advance. In this identification process, the task target can be identified manually or by using algorithms such as machine learning. However, in actual applications, whether it is based on manual identification or identification based on algorithms such as machine learning, after determining that there is video data or image data containing the task target, it is necessary to rely on manual analysis of the task target's whereabouts from the video data or image data containing the task target, so as to achieve security tracking. Therefore, the existing security tracking methods are too dependent on manual operation, especially when the amount of data to be analyzed is large, the efficiency of the existing security tracking methods is low. Summary of the invention
[0004] The embodiments of the present application provide a security tracking method and device, the main purpose of which is to solve the problem of low efficiency of current security tracking methods.
[0005] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, the present application provides a security tracking method, which is applied to a security tracking system, wherein the security tracking system includes a first network node for issuing a security tracking task and at least one second network node for executing a monitoring task, and the method includes:
[0007] Publishing the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking a task target, and the security tracking task is set in a genesis block in the first blockchain;
[0008] receiving the security tracking task through the second network node, and determining whether the monitoring data of the second network node matches the target feature in the security tracking task;
[0009] If there is a match, the monitoring data and the node information of the second network node are combined to generate a first block through the second network node, and the first block is added to the first blockchain to obtain a second blockchain; wherein, when there are multiple monitoring data of the second network nodes that match the target feature, the first block generated by each second network node is sequentially added to the first blockchain in the order of matching discovery among the multiple second network nodes to obtain the second blockchain;
[0010] The second blockchain is obtained through the first network node or the second network node, and a security tracking result is generated according to at least one of the first blocks included in the second blockchain.
[0011] Optionally, the issuing of the security tracking task through the first network node includes:
[0012] Acquire target features of the task target, wherein the target features include biometric features and non-biometric features, the biometric features include at least facial features, body temperature features, and skin color features, and the non-biometric features include license plate features, vehicle model features, and vehicle color features;
[0013] The target feature is used to generate the security tracking task, and the genesis block of the first blockchain is set through a preset blockchain system, and the security tracking task is added to the genesis block.
[0014] Optionally, the acquiring the second blockchain through the first network node or the second network node, and generating a security tracking result according to at least one first block included in the second blockchain includes:
[0015] When receiving a security tracking request, determining a second blockchain corresponding to the target feature according to the target feature in the security tracking request;
[0016] According to the sequence of each of the first blocks in the second blockchain, sequentially parse to obtain the monitoring data and the node information corresponding to each of the first blocks;
[0017] Among the plurality of node information, based on the address information in each of the node information and the sequence of the first blocks, determining the action route of the task target;
[0018] Combining the plurality of monitoring data and the sequence of the first blocks to obtain action data corresponding to the task target;
[0019] The security tracking result is generated according to the behavior route and the action data.
[0020] Optionally, generating a first block by using the second network node to combine the monitoring data and the node information of the second network node, and adding the first block to the first blockchain to obtain a second blockchain includes:
[0021] Matching the monitoring data with the target feature, and determining data in which the target feature appears in the monitoring data as target occurrence data;
[0022] The target occurrence data and the node information of the second network node are used to generate the first block, and the first block is added to the first blockchain to obtain a second blockchain.
[0023] Optionally, the first block includes a second block and a third block, and the second block is added to the first blockchain earlier than the third block;
[0024] The step of generating the first block by combining the target occurrence data with the node information of the second network node, and adding the first block to the first blockchain to obtain the second blockchain includes:
[0025] Acquire the first blockchain simultaneously through a plurality of the second network nodes, and parse the genesis block to obtain the target feature;
[0026] By using a plurality of the second network nodes, the monitoring data of each second network node is compared with the target feature at the same time, and when the second network node determines that the target feature exists in the monitoring data, the second network node that detects the target feature in the monitoring data is determined as the target node;
[0027] Acquire the target occurrence data from the monitoring data through the target node, generate the second block with the target occurrence data of the target node and the node information of the target node, and add the second block to the first blockchain;
[0028] Based on the position of the second network node, determine a network node within a preset range of the target node from the remaining network nodes as a third network node, wherein the remaining network node is a network node other than the target node from the plurality of second network nodes;
[0029] comparing the monitoring data of the third network node with the target feature through the third network node, and acquiring the target occurrence data from the monitoring data of the third network node when the target feature exists in the monitoring data of the third network node;
[0030] The third block is generated according to the target occurrence data of the third network node and the node information of the third network node, and the third block is added to the first blockchain to which the second block is added, so as to obtain the second blockchain.
[0031] Optionally, the method further includes:
[0032] When it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, an alarm message is generated based on the second network node, and the alarm message is distributed to the first network node and / or the remaining second network nodes to indicate that the task target has been discovered.
[0033] In a second aspect, the present application further provides a security tracking device, which is applied to a security tracking system, wherein the security tracking system includes a first network node for issuing a security tracking task and at least one second network node for executing a monitoring task, and the method includes:
[0034] a publishing unit, configured to publish the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking a task target, and the security tracking task is set in a genesis block in the first blockchain;
[0035] a determination unit, configured to receive the security tracking task through the second network node, and determine whether the monitoring data of the second network node matches the target feature in the security tracking task;
[0036] An adding unit, configured to, if it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, generate a first block by using the second network node to combine the monitoring data and the node information of the second network node, and add the first block to the first blockchain to obtain a second blockchain; wherein, when there are multiple monitoring data of the second network nodes that all match the target feature, the first block generated by each second network node is sequentially added to the first blockchain in the order of matching discovery among the multiple second network nodes to obtain the second blockchain;
[0037] A generating unit is used to obtain the second blockchain through the first network node or the second network node, and generate a security tracking result according to at least one of the first blocks included in the second blockchain.
[0038] Optionally, the publishing unit includes:
[0039] An acquisition module, used for acquiring target features of the task target, wherein the target features include biological features and non-biological features, the biological features include at least facial features, body temperature features and skin color features, and the non-biological features include license plate features, vehicle model features and vehicle color features;
[0040] A setting module is used to generate the security tracking task from the target feature, and to set the genesis block of the first blockchain through a preset blockchain system, and to add the security tracking task to the genesis block.
[0041] Optionally, the generating unit includes:
[0042] A first determination module, configured to, when receiving a security tracking request, determine a second blockchain corresponding to the target feature according to the target feature in the security tracking request;
[0043] A parsing module, configured to parse in sequence, according to the sequence of each of the first blocks in the second blockchain, to obtain the monitoring data and the node information corresponding to each of the first blocks;
[0044] A second determination module is used to determine the action route of the task target in the plurality of node information based on the address information in each of the node information and the sequence of the first blocks;
[0045] A combining module, used for combining the plurality of monitoring data and the sequence of the first blocks to obtain action data corresponding to the task target;
[0046] A generation module is used to generate the security tracking result according to the behavior route and the action data.
[0047] Optionally, the adding unit includes:
[0048] A matching module, used for matching the monitoring data with the target feature, and determining data in which the target feature appears in the monitoring data as target appearance data;
[0049] An adding module is used to generate the first block by combining the target occurrence data and the node information of the second network node, and add the first block to the first blockchain to obtain a second blockchain.
[0050] Optionally, the first block includes a second block and a third block, and the second block is added to the first blockchain earlier than the third block;
[0051] The adding module comprises:
[0052] A parsing submodule, configured to simultaneously obtain the first blockchain through a plurality of the second network nodes, and parse the genesis block to obtain the target feature;
[0053] a first determination submodule, configured to compare the monitoring data of each second network node with the target feature simultaneously through a plurality of second network nodes, and when the second network node determines that the target feature exists in the monitoring data, determine the second network node that detects the target feature in the monitoring data as a target node;
[0054] A first adding submodule, configured to obtain the target occurrence data from the monitoring data through the target node, generate the second block with the target occurrence data of the target node and the node information of the target node, and add the second block to the first blockchain;
[0055] A second determining submodule is configured to determine, based on the position of the second network node, a network node within a preset range of the target node from the remaining network nodes as a third network node, wherein the remaining network node is a network node other than the target node from the plurality of second network nodes;
[0056] an acquisition submodule, configured to compare the monitoring data of the third network node with the target feature through the third network node, and when the target feature exists in the monitoring data of the third network node, acquire the target occurrence data from the monitoring data of the third network node;
[0057] The second adding submodule is used to generate the third block according to the target occurrence data of the third network node and the node information of the third network node, and add the third block to the first blockchain to which the second block is added, so as to obtain the second blockchain.
[0058] Optionally, the device further comprises:
[0059] An alarm unit is used to generate alarm information based on the second network node when it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, and distribute the alarm information to the first network node and / or the remaining second network nodes to prompt that the task target has been discovered.
[0060] In a third aspect, an embodiment of the present application provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the security tracking method described in any one of the first aspects.
[0061] In a fourth aspect, an embodiment of the present application provides a security tracking device, comprising a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the security tracking method described in any one of the first aspects is executed.
[0062] By means of the above technical solution, the technical solution provided by this application has at least the following advantages:
[0063] The present application provides a security tracking method and device, which can issue the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking the task target, and the security tracking task is set in the genesis block in the first blockchain; then, the security tracking task is received through the second network node, and it is determined whether the monitoring data of the second network node matches the target feature in the security tracking task; if it is determined that the match is thereafter, the monitoring data and the node information of the second network node are used to generate a first block through the second network node, and the first block is added to the first blockchain to obtain a second blockchain; wherein, when there are multiple monitoring data of the second network nodes that match the target feature, the first block generated by each second network node is sequentially added to the first blockchain according to the matching discovery order in the multiple second network nodes to obtain the second blockchain; finally, the second blockchain is obtained through the first network node or the second network node, and a security tracking result is generated according to at least one of the first blocks contained in the second blockchain, thereby achieving the effect of security tracking. Compared with the prior art, since the above scheme is applied to a security tracking system, the security tracking system includes a first network node for issuing security tracking tasks and at least one second network node for executing monitoring tasks. That is to say, the present application utilizes the characteristics of blockchain, and the first network node issues the security tracking task, that is, the process of establishing a genesis block. In this way, when the remaining network nodes in the security tracking system, that is, the second network node, are informed, they can receive the security tracking task based on the genesis block. Since the security tracking task contains the target features of the task target, the second network node as a monitoring node can match it from its monitoring data based on the target features, and when a match is found between the monitoring data and the second network node currently discovering the task target, the second network node can perform a match on the monitoring data. The node information of the point is saved as the first block after the genesis block. In this way, when the security tracking result query is needed later, each first block in the second blockchain can be directly obtained in sequence by using the characteristics of the blockchain. These first blocks can represent the task nodes and corresponding monitoring data of the task targets that are discovered in sequence, thus achieving the effect of a "chain-like" monitoring data sequence with a sequence of sequence, which realizes the effect of automatically releasing the tracking task release of the task target, monitoring discovery, and chain integration of the results after discovery, thereby realizing a method that can automatically achieve the security tracking effect, avoiding the current conventional security tracking process that relies too much on manual labor, thereby solving the problem of low efficiency when performing security tracking manually, and improving the efficiency of security tracking.
[0064] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0066] Figure 1 A flow chart of a security tracking method provided by an embodiment of the present application is shown;
[0067] Figure 2 Another security tracking method flow chart provided by an embodiment of the present application is shown;
[0068] Figure 3 A block diagram of a security tracking device provided by an embodiment of the present application is shown;
[0069] Figure 4 A block diagram of another security tracking device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0070] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0071] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0072] The embodiment of the present application provides a security tracking method, which is applied to a security tracking system, wherein the security tracking system includes a first network node for issuing a security tracking task and at least one second network node for executing a monitoring task. Figure 1 As shown, the method includes:
[0073] 101. Release a security tracking task through a first network node.
[0074] The security tracking task includes target features for tracking the task target, and the security tracking task is set in the genesis block in the first blockchain.
[0075] In this embodiment, the chain characteristics of the blockchain are utilized in the process of security tracking. Since the blockchain is a data structure composed of multiple blocks with a sequence, in this embodiment, the characteristics of the blockchain can also be utilized in the process of issuing the security tracking task, and the first network node creates the first block of the first blockchain, that is, the genesis block. In this process, the target characteristics of the task target required in the security tracking task can be added to the genesis block, so that the remaining network nodes can determine the task targets to be monitored and the target characteristics of the task targets based on the genesis block during the security tracking process.
[0076] 102. Receive a security tracking task through a second network node, and determine whether monitoring data of the second network node matches a target feature in the security tracking task.
[0077] During the execution of the security tracking method of this embodiment, a plurality of network nodes form a system for constructing a blockchain, namely, a security tracking system. Therefore, in this embodiment, after the first network node generates a genesis block, the remaining network nodes, namely, the second network nodes, will synchronously update the first blockchain and obtain the genesis block. Since the genesis block contains the target features of the task target to be monitored, the second network node can match the target features with its monitoring data to determine whether the second network node has discovered the task target during the monitoring process.
[0078] It should be noted that, in this embodiment, the task target can be a person or any living thing, or a non-living thing such as a vehicle. Therefore, for different task targets, the target features also have corresponding differences. For example, when the task target is a person, the target feature can be a biological feature of the person, such as a facial feature. Of course, it can also be a non-biological feature, such as clothing color. Here, there is no limitation on the type, quantity, and form of the task target. At the same time, there is no limitation on the type, quantity, and form of the target features. It can be selected by the user based on the specific implementation situation.
[0079] 103. If it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, the monitoring data and the node information of the second network node are combined through the second network node to generate a first block, and the first block is added to the first blockchain to obtain a second blockchain.
[0080] Among them, when there are multiple monitoring data of the second network nodes that match the target characteristics, the first block generated by each second network node is added to the first blockchain in sequence according to the matching discovery order among the multiple second network nodes to obtain the second blockchain.
[0081] In this embodiment, the first blockchain and the second blockchain are actually one blockchain, which are manifestations of a blockchain in different states. The first blockchain represents a blockchain that only exists under the genesis block, while the second blockchain is a blockchain formed by adding the first block to the blockchain containing the second network node.
[0082] When it is determined that the monitoring data of the second network node matches the target feature in the security task, it means that the current second network node has discovered the task target during the monitoring process. Therefore, it is necessary to upload the "discovery" of the second network node as the first block to the first blockchain. Specifically, in order to facilitate the subsequent security tracking effect, not only the monitoring data matching the target feature is required, but also the node information of the current second network node is required. In this way, by generating the first block together with the monitoring data and the node information of the second network node, when performing security tracking later, it is possible to know which second network node "discovered" the task target based on each first block in the second blockchain, as well as the situation of the task target being monitored, that is, the monitoring data.
[0083] In actual applications, there are multiple second network nodes, that is, monitoring nodes, and they are generally set in different positions or areas for monitoring purposes. At the same time, since the task target is likely to be constantly moving, it will be monitored successively by second network nodes in different positions or areas during the movement of the task target. Therefore, in this step, there is also a sequence in the process of the second network node generating the first block and adding it to the first blockchain.
[0084] For example: when there are three second network nodes, namely: node A, node B and node C, when based on the method of this step, node C first determines that its local monitoring data 1 matches the target feature, then node C can generate a first block a with its local monitoring data 1 and the node information of node C, and add the first block a to the first blockchain. After that, when node A also determines that the local monitoring data 2 matches the target feature, node A can generate a first block b with the local monitoring data 2 and the node information of node A, and add the first block b as a subsequent block of the first block a to the first blockchain, thereby obtaining a second blockchain. At this time, the order of blocks in the second blockchain is: genesis block-first block a-first block b.
[0085] 104. Obtain a second blockchain through the first network node or the second network node, and generate a security tracking result according to at least one first block included in the second blockchain.
[0086] When the mission target is monitored, the case tracking result can be generated through any network node in the security tracking system. It can be done through the first network node or from the second network node, that is to say, whether it is the network node that initiates the security tracking task or the network node that performs monitoring, it can achieve the generation of security tracking results for the mission target, which is conducive to achieving the effect of security tracking at any node and improves convenience. At the same time, the first block in the second blockchain is added in sequence based on the "discovery" of the mission target, and each first block contains the node information of the network node when the mission target was "discovered", that is to say, the chain-like sequential characteristics of the blockchain are utilized to achieve the tracking effect after multi-node monitoring of the mission target.
[0087] The present application provides a security tracking method, which can issue the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking the task target, and the security tracking task is set in the genesis block in the first blockchain; then, the security tracking task is received through the second network node, and it is determined whether the monitoring data of the second network node matches the target feature in the security tracking task; if it is determined to match, the monitoring data and the node information of the second network node are used to generate a first block through the second network node, and the first block is added to the first blockchain to obtain a second blockchain; wherein, when there are multiple monitoring data of the second network nodes that match the target feature, the first block generated by each second network node is sequentially added to the first blockchain according to the matching discovery order in the multiple second network nodes to obtain the second blockchain; finally, the second blockchain is obtained through the first network node or the second network node, and a security tracking result is generated according to at least one of the first blocks contained in the second blockchain, thereby achieving the effect of security tracking. Compared with the prior art, since the above scheme is applied to a security tracking system, the security tracking system includes a first network node for issuing security tracking tasks and at least one second network node for executing monitoring tasks. That is to say, the present application utilizes the characteristics of blockchain, and the first network node issues the security tracking task, that is, the process of establishing a genesis block. In this way, when the remaining network nodes in the security tracking system, that is, the second network node, are informed, they can receive the security tracking task based on the genesis block. Since the security tracking task contains the target features of the task target, the second network node as a monitoring node can match it from its monitoring data based on the target features, and when a match is found between the monitoring data and the second network node currently discovering the task target, the second network node can perform a match on the monitoring data. The node information of the point is saved as the first block after the genesis block. In this way, when the security tracking result query is needed later, each first block in the second blockchain can be directly obtained in sequence by using the characteristics of the blockchain. These first blocks can represent the task nodes and corresponding monitoring data of the task targets that are discovered in sequence, thus achieving the effect of a "chain-like" monitoring data sequence with a sequence of sequence, which realizes the effect of automatically releasing the tracking task release of the task target, monitoring discovery, and chain integration of the results after discovery, thereby realizing a method that can automatically achieve the security tracking effect, avoiding the current conventional security tracking process that relies too much on manual labor, thereby solving the problem of low efficiency when performing security tracking manually, and improving the efficiency of security tracking.
[0088] To explain in more detail below, the present application embodiment provides another security tracking method, which is applied to a security tracking system, wherein the security tracking system includes a first network node for issuing a security tracking task and at least one second network node for executing a monitoring task, as shown in FIG. Figure 2 As shown, the method includes:
[0089] 201. Release a security tracking task through a first network node.
[0090] The security tracking task includes target features for tracking the task target, and the security tracking task is set in the genesis block in the first blockchain.
[0091] Specifically, this step may include:
[0092] First, the target features of the task target are obtained. The target features include biological features and non-biological features. The biological features include at least facial features, body temperature features, and skin color features. The non-biological features include license plate features, vehicle model features, and vehicle color features.
[0093] Then, the target feature is used to generate the security tracking task, and the genesis block of the first blockchain is set through a preset blockchain system, and the security tracking task is added to the genesis block.
[0094] In this embodiment, since the task objectives of the security tracking task are different, the target features selected for different task objectives are also different. For example, when the task target is a person, the target features generally select one or more of facial features, body temperature features, and skin color features. Of course, when the task target is a vehicle, it is obviously inappropriate to select biometric features such as facial features at this time. At this time, one or more of license plate features, vehicle model features, and vehicle color features can be selected.
[0095] After the target feature is determined by the first network node, the corresponding security tracking task can be generated by the target feature, and then the blockchain is established using the preset blockchain system, that is, the genesis block of the first blockchain is established. In this process, the node information of the first network node and the security tracking task corresponding to the target feature can be used as data content to generate the genesis block.
[0096] It should be noted that the method of creating the genesis block in this embodiment and adding the first block in the subsequent steps is exactly the same as the conventional blockchain construction process, and will not be repeated here.
[0097] 202. Receive a security tracking task through a second network node, and determine whether monitoring data of the second network node matches a target feature in the security tracking task.
[0098] Since the genesis block established by the first network node is used to issue security tracking tasks, when all second network nodes in the entire security tracking system learn that the genesis block has been established, they will synchronously update the genesis block, that is, at this time, the second network node has received the security tracking task based on the genesis block. At this time, since the second network node is a monitoring node, each second network node stores a large amount of local data, that is, monitoring data. In order to determine which second network node "discovered" the task target during the monitoring process, it is necessary to match the monitoring data with the target features to determine whether a second network node has "discovered" the task target.
[0099] It should be noted that, in this embodiment, the process of determining whether the monitoring data matches the target feature can be based on a machine learning algorithm to compare the data content in the monitoring data with the target feature one by one, and determine that the monitoring data is consistent with the target feature when the similarity between the two reaches a certain threshold.
[0100] 203. If it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, the monitoring data and the node information of the second network node are combined through the second network node to generate a first block, and the first block is added to the first blockchain to obtain a second blockchain.
[0101] Among them, when there are multiple monitoring data of the second network nodes that match the target characteristics, the first block generated by each second network node is added to the first blockchain in sequence according to the matching discovery order among the multiple second network nodes to obtain the second blockchain.
[0102] Specifically, this step may include:
[0103] Matching the monitoring data with the target feature, and determining data in which the target feature appears in the monitoring data as target occurrence data;
[0104] The target occurrence data and the node information of the second network node are used to generate the first block, and the first block is added to the first blockchain to obtain a second blockchain.
[0105] Since not all monitoring data acquired by each monitoring node, that is, the second network node, during the monitoring process involves the task objective, in order to reduce the amount of data in the subsequent first block, in this embodiment, the data in which the task objective appears in the entire monitoring data can be determined as the target occurrence data, that is, the part of the data in which the target characteristics appear in the monitoring data is determined as the target occurrence data.
[0106] For example, when the monitoring data is a 20-minute video, the duration of the task target appearing in this process may be only 5 minutes. Then, according to the method of this step, the 5-minute data can be determined as the target appearance data. In addition, when the monitoring data is 10 pictures, only 3 pictures match the target features in this process, that is, only these 3 pictures involve the task target, and these 3 pictures can be determined as the target appearance data.
[0107] Further, as described in the aforementioned embodiment 103, since in actual applications there are often many second network nodes as monitoring nodes and they are set in different areas or locations, and the task target may be constantly moving, it is possible that multiple second network nodes "discover" the task target, and therefore, there is a sequence when multiple second network nodes add the first block. Based on this, the first block includes the second block and the third block, and the second block is added to the first blockchain earlier than the third block;
[0108] In the above steps, the target occurrence data and the node information of the second network node are used to generate the first block, and the first block is added to the first blockchain to obtain the second blockchain. When executed, the following steps may be specifically performed:
[0109] First, the first blockchain is obtained simultaneously through a plurality of the second network nodes, and the genesis block is parsed to obtain the target feature;
[0110] Then, the monitoring data of each second network node is compared with the target feature at the same time through the plurality of second network nodes, and when the second network node determines that the target feature exists in the monitoring data, the second network node that detects the target feature in the monitoring data is determined as the target node;
[0111] Afterwards, the target occurrence data is obtained from the monitoring data through the target node, the target occurrence data of the target node and the node information of the target node are used to generate the second block, and the second block is added to the first blockchain;
[0112] Afterwards, based on the position of the second network node, a network node within a preset range of the target node is determined from the remaining network nodes as a third network node, wherein the remaining network node is a network node other than the target node among the plurality of second network nodes;
[0113] Afterwards, the monitoring data of the third network node is compared with the target feature through the third network node, and when the target feature exists in the monitoring data of the third network node, the target occurrence data is obtained from the monitoring data of the third network node;
[0114] Finally, the third block is generated according to the target occurrence data of the third network node and the node information of the third network node, and the third block is added to the first blockchain to which the second block is added, so as to obtain the second blockchain.
[0115] According to the above method, since there is a sequence in the process of "discovering" the task target in the execution process, the second network node that first "discovers" the task target is determined as the target node in the above steps, that is, when judging whether the monitoring data matches the target feature, the second network node that first finds the match between the two is the target node. Since each network node has a different position or area, that is, when the target node first "discovers" the task target, the position or area of the target node can be used. Among the remaining multiple second network nodes, the second network node close to the target node is obviously more likely to "discover" the task target than the second network node far from the target node. Based on this, in this step, the network node "close to" the target node can be selected from the remaining network nodes outside the target node as the third network node, and the third network node is used to determine whether it has "discovered" the task target, and after determining that the monitoring data of the third network node matches the target feature, the target discovery data in the monitoring data of the third network node and the node information of the third network node are used as data content to generate a corresponding third block, and the third block is added to the first blockchain in the order after the second block added by the target node.
[0116] 204. Obtain a second blockchain through the first network node or the second network node, and generate a security tracking result according to at least one first block included in the second blockchain.
[0117] Since the second blockchain may contain multiple first blocks, for example, there may be a second block and a third block as described in the above steps. The blockchain is a chain data structure composed of sequential blocks. Therefore, the sequence of each first block in the second blockchain represents the sequence of "discovering" the task target. At the same time, since each first block contains the node information that generates the first block, the sequence of the first blocks also represents the sequence of the second network node that "discovers" the task target.
[0118] Based on this, specifically, this step may include:
[0119] When receiving a security tracking request, determining a second blockchain corresponding to the target feature according to the target feature in the security tracking request;
[0120] According to the sequence of each of the first blocks in the second blockchain, sequentially parse to obtain the monitoring data and the node information corresponding to each of the first blocks;
[0121] Among the plurality of node information, based on the address information in each of the node information and the sequence of the first blocks, determining the action route of the task target;
[0122] Combining the plurality of monitoring data and the sequence of the first blocks to obtain action data corresponding to the task target;
[0123] The security tracking result is generated according to the behavior route and the action data.
[0124] In this way, through the sequence of the first blocks and the node information involved in each first block, a "line" of the second network node with a sequence is formed. The "line" is the situation of discovering the task target and the movement of the task target. Therefore, based on the address information in the node information, the track of the task target's action, that is, the action route, is obtained by combining it in the sequence of the first block. At the same time, since each first block also contains the monitoring content of the task target, that is, the monitoring data, in order to facilitate the comprehensiveness of the subsequent monitoring effect of the task target, these monitoring data can also be combined in the sequence of the first block to obtain all the images or video data of the entire process from the discovery to the movement of the task target, that is, the action data.
[0125] Finally, by combining the action route and action data, we can get a complete trajectory with the mission target and a picture of the overall action or behavior based on the trajectory, which is the security tracking result.
[0126] 205. When it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, an alarm message is generated based on the second network node, and the alarm message is distributed to the first network node and / or the remaining second network nodes to prompt that the task target is found.
[0127] In actual applications, since the task targets to be tracked by security may often be dangerous people or objects, when the second network node "discovers" the task target, it is necessary to initiate an alarm to the entire security monitoring system in order to achieve a warning effect. Therefore, in this step, when it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, that is, when the task target is "discovered", an alarm message can be initiated to the entire security monitoring system, that is, the first network node and / or the remaining second network nodes.
[0128] Furthermore, as a response to the above Figure 1 and Figure 2 In order to realize the method shown, another embodiment of the present application further provides a security tracking device, which is applied to a security tracking system, wherein the security tracking system includes a first network node for issuing security tracking tasks and at least one second network node for executing monitoring tasks. This security tracking device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this security tracking device embodiment will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. The main purpose of the security tracking device is to solve the problem of excessive reliance on manual labor in the current security tracking process, resulting in low efficiency. Specifically, Figure 3 As shown, the security tracking device includes:
[0129] The publishing unit 31 may be used to publish the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking a task target, and the security tracking task is set in a genesis block in the first blockchain;
[0130] The judging unit 32 may be configured to receive the security tracking task through the second network node, and judge whether the monitoring data of the second network node matches the target feature in the security tracking task;
[0131] The adding unit 33 may be used to generate a first block by using the second network node to combine the monitoring data and the node information of the second network node to obtain a second blockchain if it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, and add the first block to the first blockchain to obtain a second blockchain; wherein, when there are multiple monitoring data of the second network nodes that match the target feature, the first block generated by each second network node is sequentially added to the first blockchain in the order of matching discovery among the multiple second network nodes to obtain the second blockchain;
[0132] The generating unit 34 may be configured to obtain the second blockchain through the first network node or the second network node, and generate a security tracking result according to at least one of the first blocks included in the second blockchain.
[0133] Further, such as Figure 4 As shown, the publishing unit 31 includes:
[0134] The acquisition module 311 may be used to acquire target features of the task target, wherein the target features include biological features and non-biological features, wherein the biological features include at least facial features, body temperature features, and skin color features, and the non-biological features include license plate features, vehicle model features, and vehicle color features;
[0135] The setting module 312 can be used to generate the security tracking task from the target feature, and set the genesis block of the first blockchain through a preset blockchain system, and add the security tracking task to the genesis block.
[0136] Further, such as Figure 4 As shown, the generating unit 34 includes:
[0137] The first determination module 341 may be configured to determine, when receiving a security tracking request, a second blockchain corresponding to the target feature according to the target feature in the security tracking request;
[0138] The parsing module 342 may be used to parse, in sequence, the monitoring data and the node information corresponding to each of the first blocks in the second blockchain according to the sequence of each of the first blocks;
[0139] The second determination module 343 may be used to determine the action route of the task target in the plurality of node information based on the address information in each of the node information and the sequence of the first blocks;
[0140] A combination module 344 may be used to combine the plurality of monitoring data and the sequence of the first blocks to obtain action data corresponding to the task target;
[0141] The generation module 345 may be used to generate the security tracking result according to the behavior route and the action data.
[0142] Further, such as Figure 4 As shown, the adding unit 33 includes:
[0143] The matching module 331 may be used to match the monitoring data with the target feature, and determine the data in which the target feature appears in the monitoring data as the target appearance data;
[0144] The adding module 332 can be used to generate the first block by combining the target occurrence data and the node information of the second network node, and add the first block to the first blockchain to obtain the second blockchain.
[0145] Further, such as Figure 4 As shown, the first block includes a second block and a third block, and the second block is added to the first blockchain earlier than the third block;
[0146] The adding module 332 includes:
[0147] The parsing submodule 3321 may be used to simultaneously obtain the first blockchain through a plurality of the second network nodes, and parse the genesis block to obtain the target feature;
[0148] The first determination submodule 3322 may be configured to compare the monitoring data of each second network node with the target feature through a plurality of second network nodes at the same time, and when the second network node determines that the target feature exists in the monitoring data, determine the second network node that detects the target feature in the monitoring data as the target node;
[0149] A first adding submodule 3323 may be used to obtain the target occurrence data from the monitoring data through the target node, generate the second block with the target occurrence data of the target node and the node information of the target node, and add the second block to the first blockchain;
[0150] The second determining submodule 3324 may be configured to determine, based on the position of the second network node, a network node within a preset range of the target node from the remaining network nodes as a third network node, wherein the remaining network node is a network node other than the target node from the plurality of second network nodes;
[0151] The acquisition submodule 3325 may be used to compare the monitoring data of the third network node with the target feature through the third network node, and when the target feature exists in the monitoring data of the third network node, acquire the target occurrence data from the monitoring data of the third network node;
[0152] The second adding submodule 3326 can be used to generate the third block according to the target occurrence data of the third network node and the node information of the third network node, and add the third block to the first blockchain to which the second block is added, to obtain the second blockchain.
[0153] Further, such as Figure 4 As shown, the device also includes:
[0154] The alarm unit 35 can be used to generate alarm information based on the second network node when it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, and distribute the alarm information to the first network node and / or the remaining second network nodes to prompt that the task target has been discovered.
[0155] The present application provides a security tracking method and device, which can issue the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking the task target, and the security tracking task is set in the genesis block in the first blockchain; then, the security tracking task is received through the second network node, and it is determined whether the monitoring data of the second network node matches the target feature in the security tracking task; if it is determined that the match is thereafter, the monitoring data and the node information of the second network node are used to generate a first block through the second network node, and the first block is added to the first blockchain to obtain a second blockchain; wherein, when there are multiple monitoring data of the second network nodes that match the target feature, the first block generated by each second network node is sequentially added to the first blockchain according to the matching discovery order in the multiple second network nodes to obtain the second blockchain; finally, the second blockchain is obtained through the first network node or the second network node, and a security tracking result is generated according to at least one of the first blocks contained in the second blockchain, thereby achieving the effect of security tracking. Compared with the prior art, since the above scheme is applied to a security tracking system, the security tracking system includes a first network node for issuing security tracking tasks and at least one second network node for executing monitoring tasks. That is to say, the present application utilizes the characteristics of blockchain, and the first network node issues the security tracking task, that is, the process of establishing a genesis block. In this way, when the remaining network nodes in the security tracking system, that is, the second network node, are informed, they can receive the security tracking task based on the genesis block. Since the security tracking task contains the target features of the task target, the second network node as a monitoring node can match it from its monitoring data based on the target features, and when a match is found between the monitoring data and the second network node currently discovering the task target, the second network node can perform a match on the monitoring data. The node information of the point is saved as the first block after the genesis block. In this way, when the security tracking result query is needed later, each first block in the second blockchain can be directly obtained in sequence by using the characteristics of the blockchain. These first blocks can represent the task nodes and corresponding monitoring data of the task targets that are discovered in sequence, thus achieving the effect of a "chain-like" monitoring data sequence with a sequence of sequence, which realizes the effect of automatically releasing the tracking task release of the task target, monitoring discovery, and chain integration of the results after discovery, thereby realizing a method that can automatically achieve the security tracking effect, avoiding the current conventional security tracking process that relies too much on manual labor, thereby solving the problem of low efficiency when performing security tracking manually, and improving the efficiency of security tracking.
[0156] An embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the security tracking method described above.
[0157] The storage medium may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0158] An embodiment of the present application also provides a security tracking device, which includes a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the security tracking method described above is executed.
[0159] The embodiment of the present application provides a device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: issuing the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking the task target, and the security tracking task is set in a genesis block in the first blockchain; receiving the security tracking task through the second network node, and determining whether the monitoring data of the second network node matches the target feature in the security tracking task; if matched, generating a first block by combining the monitoring data and the node information of the second network node through the second network node, and adding the first block to the first blockchain to obtain a second blockchain; wherein, when there are multiple monitoring data of the second network nodes that all match the target feature, the first block generated by each second network node is sequentially added to the first blockchain in accordance with the matching discovery order among the multiple second network nodes to obtain the second blockchain; obtaining the second blockchain through the first network node or the second network node, and generating a security tracking result according to at least one of the first blocks included in the second blockchain.
[0160] Further, the issuing of the security tracking task through the first network node includes:
[0161] Acquire target features of the task target, wherein the target features include biometric features and non-biometric features, the biometric features include at least facial features, body temperature features, and skin color features, and the non-biometric features include license plate features, vehicle model features, and vehicle color features;
[0162] The target feature is used to generate the security tracking task, and the genesis block of the first blockchain is set through a preset blockchain system, and the security tracking task is added to the genesis block.
[0163] Furthermore, the acquiring the second blockchain through the first network node or the second network node, and generating a security tracking result according to at least one of the first blocks included in the second blockchain includes:
[0164] When receiving a security tracking request, determining a second blockchain corresponding to the target feature according to the target feature in the security tracking request;
[0165] According to the sequence of each of the first blocks in the second blockchain, sequentially parse to obtain the monitoring data and the node information corresponding to each of the first blocks;
[0166] Among the plurality of node information, based on the address information in each of the node information and the sequence of the first blocks, determining the action route of the task target;
[0167] Combining the plurality of monitoring data and the sequence of the first blocks to obtain action data corresponding to the task target;
[0168] The security tracking result is generated according to the behavior route and the action data.
[0169] Further, generating a first block by using the second network node with the monitoring data and the node information of the second network node, and adding the first block to the first blockchain to obtain a second blockchain includes:
[0170] Matching the monitoring data with the target feature, and determining data in which the target feature appears in the monitoring data as target occurrence data;
[0171] The target occurrence data and the node information of the second network node are used to generate the first block, and the first block is added to the first blockchain to obtain a second blockchain.
[0172] Furthermore, the first block includes a second block and a third block, and the second block is added to the first blockchain earlier than the third block;
[0173] The step of generating the first block by combining the target occurrence data with the node information of the second network node, and adding the first block to the first blockchain to obtain the second blockchain includes:
[0174] Acquire the first blockchain simultaneously through a plurality of the second network nodes, and parse the genesis block to obtain the target feature;
[0175] By using a plurality of the second network nodes, the monitoring data of each second network node is compared with the target feature at the same time, and when the second network node determines that the target feature exists in the monitoring data, the second network node that detects the target feature in the monitoring data is determined as the target node;
[0176] Acquire the target occurrence data from the monitoring data through the target node, generate the second block with the target occurrence data of the target node and the node information of the target node, and add the second block to the first blockchain;
[0177] Based on the position of the second network node, determine a network node within a preset range of the target node from the remaining network nodes as a third network node, wherein the remaining network node is a network node other than the target node from the plurality of second network nodes;
[0178] comparing the monitoring data of the third network node with the target feature through the third network node, and acquiring the target occurrence data from the monitoring data of the third network node when the target feature exists in the monitoring data of the third network node;
[0179] The third block is generated according to the target occurrence data of the third network node and the node information of the third network node, and the third block is added to the first blockchain to which the second block is added, so as to obtain the second blockchain.
[0180] Furthermore, the method further comprises:
[0181] When it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, an alarm message is generated based on the second network node, and the alarm message is distributed to the first network node and / or the remaining second network nodes to indicate that the task target has been discovered.
[0182] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program code that initializes the following method steps: issuing the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking the task target, and the security tracking task is set in a genesis block in the first blockchain; receiving the security tracking task through the second network node, and determining whether the monitoring data of the second network node matches the target feature in the security tracking task; if matched, generating a first block by combining the monitoring data and the node information of the second network node through the second network node, and adding the first block to the first blockchain to obtain a second blockchain; wherein, when there are multiple second network nodes whose monitoring data all match the target feature, the first block generated by each second network node is sequentially added to the first blockchain in accordance with the matching discovery order among the multiple second network nodes to obtain the second blockchain; obtaining the second blockchain through the first network node or the second network node, and generating a security tracking result according to at least one of the first blocks contained in the second blockchain.
[0183] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0184] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0185] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0186] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0187] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0188] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0189] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0190] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0191] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0192] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A security tracking method, characterized in that: Applied to a security tracking system, the security tracking system includes a first network node for issuing security tracking tasks and at least one second network node for executing monitoring tasks, the method includes: Publishing the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking a task target, and the security tracking task is set in a genesis block in the first blockchain; receiving the security tracking task through the second network node, and determining whether the monitoring data of the second network node matches the target feature in the security tracking task; If there is a match, the monitoring data and the node information of the second network node are combined to generate a first block through the second network node, and the first block is added to the first blockchain to obtain a second blockchain; wherein, when there are multiple monitoring data of the second network nodes that match the target feature, the first block generated by each second network node is sequentially added to the first blockchain in the order of matching discovery among the multiple second network nodes to obtain the second blockchain; The second blockchain is obtained through the first network node or the second network node, and a security tracking result is generated according to at least one of the first blocks included in the second blockchain.
2. The method according to claim 1, characterized in that The issuing of the security tracking task through the first network node includes: Acquire target features of the task target, wherein the target features include biometric features and non-biometric features, the biometric features include at least facial features, body temperature features, and skin color features, and the non-biometric features include license plate features, vehicle model features, and vehicle color features; The target feature is used to generate the security tracking task, and the genesis block of the first blockchain is set through a preset blockchain system, and the security tracking task is added to the genesis block.
3. The method according to claim 1, characterized in that: The obtaining the second blockchain through the first network node or the second network node, and generating a security tracking result according to at least one of the first blocks included in the second blockchain includes: When receiving a security tracking request, determining a second blockchain corresponding to the target feature according to the target feature in the security tracking request; According to the sequence of each of the first blocks in the second blockchain, sequentially parse to obtain the monitoring data and the node information corresponding to each of the first blocks; Among the plurality of node information, based on the address information in each of the node information and the sequence of the first blocks, determining the action route of the task target; Combining the plurality of monitoring data and the sequence of the first blocks to obtain action data corresponding to the task target; The security tracking result is generated according to the behavior route and the action data.
4. The method according to claim 1, characterized in that: The step of generating a first block by using the second network node to combine the monitoring data and the node information of the second network node, and adding the first block to the first blockchain to obtain a second blockchain includes: Matching the monitoring data with the target feature, and determining data in which the target feature appears in the monitoring data as target occurrence data; The target occurrence data and the node information of the second network node are used to generate the first block, and the first block is added to the first blockchain to obtain a second blockchain.
5. The method according to claim 4, characterized in that The first block includes a second block and a third block, and the second block is added to the first blockchain earlier than the third block; The step of generating the first block by combining the target occurrence data with the node information of the second network node, and adding the first block to the first blockchain to obtain the second blockchain includes: Acquire the first blockchain simultaneously through a plurality of the second network nodes, and parse the genesis block to obtain the target feature; By using a plurality of the second network nodes, the monitoring data of each second network node is compared with the target feature at the same time, and when the second network node determines that the target feature exists in the monitoring data, the second network node that detects the target feature in the monitoring data is determined as the target node; Acquire the target occurrence data from the monitoring data through the target node, generate the second block with the target occurrence data of the target node and the node information of the target node, and add the second block to the first blockchain; Based on the position of the second network node, determine a network node within a preset range of the target node from the remaining network nodes as a third network node, wherein the remaining network node is a network node other than the target node from the plurality of second network nodes; comparing the monitoring data of the third network node with the target feature through the third network node, and acquiring the target occurrence data from the monitoring data of the third network node when the target feature exists in the monitoring data of the third network node; The third block is generated according to the target occurrence data of the third network node and the node information of the third network node, and the third block is added to the first blockchain to which the second block is added, so as to obtain the second blockchain.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, an alarm message is generated based on the second network node, and the alarm message is distributed to the first network node and / or the remaining second network nodes to indicate that the task target has been discovered.
7. A security tracking device, characterized in that: Applied to a security tracking system, the security tracking system includes a first network node for issuing security tracking tasks and at least one second network node for executing monitoring tasks, the device includes: a publishing unit, configured to publish the security tracking task through the first network node, wherein the security tracking task includes a target feature for tracking a task target, and the security tracking task is set in a genesis block in the first blockchain; a determination unit, configured to receive the security tracking task through the second network node, and determine whether the monitoring data of the second network node matches the target feature in the security tracking task; An adding unit, configured to, if it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, generate a first block by using the second network node to combine the monitoring data and the node information of the second network node, and add the first block to the first blockchain to obtain a second blockchain; wherein, when there are multiple monitoring data of the second network nodes that all match the target feature, the first block generated by each second network node is sequentially added to the first blockchain in the order of matching discovery among the multiple second network nodes to obtain the second blockchain; A generating unit is used to obtain the second blockchain through the first network node or the second network node, and generate a security tracking result according to at least one of the first blocks included in the second blockchain.
8. The device according to claim 7, characterized in that The publishing unit comprises: An acquisition module, used for acquiring target features of the task target, wherein the target features include biological features and non-biological features, the biological features include at least facial features, body temperature features and skin color features, and the non-biological features include license plate features, vehicle model features and vehicle color features; A setting module is used to generate the security tracking task from the target feature, and to set the genesis block of the first blockchain through a preset blockchain system, and to add the security tracking task to the genesis block.
9. The device according to claim 7, characterized in that The generating unit comprises: A first determination module, configured to, when receiving a security tracking request, determine a second blockchain corresponding to the target feature according to the target feature in the security tracking request; A parsing module, configured to parse in sequence, according to the sequence of each of the first blocks in the second blockchain, to obtain the monitoring data and the node information corresponding to each of the first blocks; A second determination module is used to determine the action route of the task target in the plurality of node information based on the address information in each of the node information and the sequence of the first blocks; A combining module, used for combining the plurality of monitoring data and the sequence of the first blocks to obtain action data corresponding to the task target; A generation module is used to generate the security tracking result according to the behavior route and the action data.
10. The device according to claim 7, characterized in that The adding unit comprises: A matching module, used for matching the monitoring data with the target feature, and determining data in which the target feature appears in the monitoring data as target appearance data; An adding module is used to generate the first block by combining the target occurrence data and the node information of the second network node, and add the first block to the first blockchain to obtain a second blockchain.
11. The device according to claim 10, characterized in that The first block includes a second block and a third block, and the second block is added to the first blockchain earlier than the third block; The adding module comprises: A parsing submodule, configured to simultaneously obtain the first blockchain through a plurality of the second network nodes, and parse the genesis block to obtain the target feature; a first determination submodule, configured to compare the monitoring data of each second network node with the target feature simultaneously through a plurality of second network nodes, and when the second network node determines that the target feature exists in the monitoring data, determine the second network node that detects the target feature in the monitoring data as a target node; A first adding submodule, configured to obtain the target occurrence data from the monitoring data through the target node, generate the second block with the target occurrence data of the target node and the node information of the target node, and add the second block to the first blockchain; A second determining submodule is configured to determine, based on the position of the second network node, a network node within a preset range of the target node from the remaining network nodes as a third network node, wherein the remaining network node is a network node other than the target node from the plurality of second network nodes; an acquisition submodule, configured to compare the monitoring data of the third network node with the target feature through the third network node, and when the target feature exists in the monitoring data of the third network node, acquire the target occurrence data from the monitoring data of the third network node; The second adding submodule is used to generate the third block according to the target occurrence data of the third network node and the node information of the third network node, and add the third block to the first blockchain to which the second block is added, so as to obtain the second blockchain.
12. The device according to claims 7-11, characterized in that The device also includes: An alarm unit is used to generate alarm information based on the second network node when it is determined that the monitoring data of the second network node matches the target feature in the security tracking task, and distribute the alarm information to the first network node and / or the remaining second network nodes to prompt that the task target has been discovered.
13. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the security tracking method according to any one of claims 1 to 6.
14. A security tracking device, characterized in that: The device includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the security tracking method according to any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
Monitoring method and device based on block chain, equipment and storage medium
CN111414598A
Online behavior monitoring method and device, computer equipment and storage medium
CN111652740A
