A method for determining the identity of an unknown person and a storage medium
By filtering and comparing face capture data, a peer relationship network of unknown persons is established, which solves the problem that existing technology cannot analyze the trajectory of unknown persons, and enables the identification of unknown persons and the acquisition of trajectory records.
Patent Information
- Application Number
- CN202210167277.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-23
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-02-23
AI Technical Summary
The existing technology cannot perform aggregate analysis on the trajectories of unknown persons, and cannot obtain relevant trajectory records of the peer relationships of unknown persons to determine the identities of unknown persons.
By obtaining the face capture data and comparing it with the Elasticsearch face comparison engine base database, the unknown identity person profile aggregate data is formed, and the similarity is compared with the data in the unknown identity person base database, a peer relationship network is established, and the Neo4j graph is entered Database to determine the identity of unknown persons.
It realizes the aggregation analysis of the trajectories of unknown persons, obtains the relevant trajectory records of their peer relationships, determines the identity of the unknown persons, and improves the quality and effectiveness of the aggregation data of the unknown persons' files.
Smart Images

Figure CN114550255B
Abstract
Description
Technical Field
[0001] The present application relates to the field of face recognition technology, and in particular to a method for determining the identity of an unknown person and a storage medium. Background Art
[0002] Face recognition is a biometric technology that identifies people based on their facial features. It uses a camera or camcorder to collect images or video streams containing faces, automatically detects and tracks faces in images, and then performs facial recognition on the detected faces. This series of related technologies is also commonly called portrait recognition or facial recognition.
[0003] In the prior art, face recognition is performed on the faces captured by the face capture machine, and the captured trajectories of the identified persons are aggregated, and the captured trajectories of the identified persons are aggregated to establish the peer relationship between the identified persons. However, the prior art cannot aggregate and analyze the trajectories of unknown persons, and cannot obtain the relevant trajectory records of the peer relationship of unknown persons to determine the identity of the unknown persons. Summary of the invention
[0004] In view of the problem that the above-mentioned prior art cannot perform cluster analysis on the trajectories of unknown persons and cannot obtain relevant trajectory records of the peer relationships of unknown persons to determine the identities of the unknown persons, the present application provides an identity determination method and storage medium for unknown persons.
[0005] In a first aspect, the present application provides a method for determining the identity of an unknown person, characterized in that it comprises the following steps:
[0006] S1: Acquire face capture data, compare the face capture data with the Elasticsearch face comparison engine base database in the face capture machine, filter the capture records of unknown persons and form the aggregated data of the unknown person files;
[0007] The S1 specifically includes the following steps:
[0008] S11: Acquire captured face data, compare the captured face data with the Elasticsearch face comparison engine database in the face capture machine, and obtain data that meets the comparison results and has a similarity of less than 80% with the identified person, a picture quality score greater than 75, and an age between 10 and 70, to form the data of unknown persons to be aggregated;
[0009] S12: Compare the unknown person data to be aggregated with each unknown person data in the unknown person database, where the unknown person database is established by the Elasticsearch face matching engine database. If the comparison result shows that the similarity between the unknown person data to be aggregated and each unknown person data in the unknown person database is less than 80%, proceed to S13; otherwise, proceed to S14.
[0010] S13: entering the unknown identity personnel feature data in the unknown identity personnel to be aggregated archive data into the unknown identity personnel base database, and entering the feature snapshot information in the unknown identity personnel to be aggregated archive data into the MongoDB unknown identity personnel base database table, and executing S16;
[0011] S14: Obtaining the data of unknown persons to be aggregated, which has a similarity greater than 80% with the data of unknown persons in the unknown persons database, for trajectory archiving;
[0012] S15: Update the number of captured trajectories in the MongoDB unknown person database table, and execute S16;
[0013] S16: End the file aggregation and form the file aggregation data of the unknown identity person;
[0014] S2: Set a time point gatherTime, obtain the unknown identity person's snapshot record within a period of time before and after the time point gatherTime of the unknown identity person's archive aggregation data, if the unknown identity person's snapshot record data is empty, execute S6, otherwise execute S3;
[0015] S3: Obtain the snapshot records of the identified persons within a period of time before and after the time point gatherTime;
[0016] S4: establishing a peer relationship between the acquired snapshot record of the unknown person and the snapshot record of the identified person at adjacent snapshot times of the same device;
[0017] S5: entering or updating the peer relationship into a Neo4j graph database;
[0018] S6: Complete the establishment of a peer relationship network for unknown persons;
[0019] S7: Through the peer relationship network of the unknown person, the identity of the identified person who has a peer relationship with the unknown person is searched to determine the identity of the unknown person.
[0020] By adopting the above technical scheme, the face capture data in the face capture machine is first obtained, and then the capture records of unknown persons are filtered to form the unknown persons to be aggregated archive data, and then the unknown persons to be aggregated archive data are compared with each unknown person data in the unknown persons base database, and the unknown persons data in the unknown persons base database are updated according to the similarity to form the unknown persons archive aggregation data, and then the unknown persons capture records and the identified persons capture records of the unknown persons archive aggregation data within a period of time before and after the time point gatherTime are obtained, and the obtained unknown persons capture records and the identified persons capture records establish a peer relationship of the same device at adjacent capture times, and then the peer relationship is entered or updated to the Neo4j graph database, and finally the identity of the identified persons who have a peer relationship with the unknown persons is found through the unknown persons peer relationship network to determine the identity of the unknown persons, thereby realizing the aggregation analysis of the trajectory of the unknown persons, obtaining the relevant trajectory records of the unknown persons peer relationship and determining the identity of the unknown persons.
[0021] Preferably, the S14 specifically includes the following steps:
[0022] S141: Acquire data with a similarity greater than 80% with the data of unknown persons in the unknown persons database for trajectory archiving, and execute S142;
[0023] S142: If the quality score of the acquired data of unknown persons to be archived is greater than the quality score of the data of unknown persons in the MongoDB unknown persons base database table, execute S143, otherwise execute S15;
[0024] S143: Update the acquired feature capture information of the data to be archived of unknown persons to the MongoDB unknown persons base database table, and then update the acquired facial features of the data to be archived of unknown persons to the unknown persons base database, and execute S15.
[0025] By adopting the above technical solution, by comparing the quality score of the unknown identity person data to be aggregated with the quality score of the unknown identity person data in the MongoDB unknown identity person base table, and then updating the feature capture information and the face features of the unknown identity person base table in MongoDB according to the judgment conditions, it is beneficial to improve the quality of the unknown identity person archive aggregation data.
[0026] Preferably, S2 specifically includes the following steps: setting a time point gatherTime, obtaining the unknown identity person's snapshot record within 20 seconds before and after the unknown identity person's archive aggregation data at the time point gatherTime, if the unknown identity person's snapshot record data is empty, executing S6, otherwise executing S3.
[0027] By adopting the above technical solution, the snapshot records of unknown persons within 20 seconds before and after the time point gatherTime are obtained by acquiring the unknown person archive aggregation data, so as to improve the effectiveness of the snapshot records of unknown persons.
[0028] Preferably, S3 specifically includes the following steps: obtaining the captured records of the identified persons within 20 seconds before and after the time point gatherTime, on the condition that there is an identified person identity and the similarity with the captured records of the unknown person is greater than 80%.
[0029] By adopting the above technical solution, under the condition that there is an identified person identity and the similarity with the snapshot record of the unknown person is greater than 80%, the snapshot record of the identified person within 20 seconds before and after the time point gatherTime is obtained to improve the effectiveness of the snapshot record of the identified person.
[0030] Preferably, the peer relationship in S5 includes the peer relationship between an unknown person and an identified person and the peer relationship between an unknown person and an unknown person.
[0031] By adopting the above technical solution, since the peer relationship includes the peer relationship between the unknown identity person and the identified person and the peer relationship between the unknown identity person and the unknown identity person, it is convenient to perform subsequent cluster analysis on the trajectory of the unknown identity person.
[0032] Preferably, the storage node structure of the peer relationship between the unknown person and the identified person is specifically:
[0033] (n1:UnPerson)-[r:CameraRel]-(n2:Person);
[0034] The specific storage node structure of the peer relationship between unknown persons is:
[0035] (n1:UnPerson)-[r:CameraRel]-(n2:UnPerson);
[0036] Where n1 and n2 are node names, UnPerson represents the unknown person label, and Person represents the identified person label; r represents the relationship name, and CameraRel represents the relationship label.
[0037] By adopting the above technical solution, the subsequent query of the peer relationship of unknown identity persons is facilitated by the storage node structure of the peer relationship between unknown identity persons and identified persons and the storage node structure of the peer relationship between unknown identity persons and unknown identity persons.
[0038] Preferably, the relationship r includes the number of times of traveling together count, the last time of traveling together lastTime and the snapshot record of traveling together.
[0039] By adopting the above technical solution, since the relationship r includes the number of times of traveling together count, the last traveling together time lastTime and the traveling together snapshot record together, the traveling relationship of unknown persons can be effectively queried.
[0040] Preferably, the trajectory archiving in S14 specifically includes: entering the acquired trajectory snapshot information in the data to be archived of the unknown identity person into the MongoDB unknown identity person trajectory table.
[0041] By adopting the above technical solution, trajectory archiving is achieved by entering the acquired trajectory capture information in the data to be archived of the unknown identity person into the MongoDB unknown identity person trajectory table.
[0042] Preferably, the trajectory capture information includes the unknown person's database ID, capture ID, capture device ID, similarity and capture time.
[0043] In a second aspect, the present application proposes a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method as claimed in any one of claims 1 to 9.
[0044] The present application proposes a method for determining the identity of an unknown person, by obtaining the unknown person's archive aggregation data and the unknown person's snapshot records and the identified person's snapshot records within a period of time before and after the time point gatherTime, establishing a peer relationship between the acquired unknown person's snapshot records and the identified person's snapshot records of adjacent snapshot times of the same device, and then entering or updating the peer relationship into a Neo4j graph database, and finally, through the unknown person's peer relationship network, searching for the identity of the identified person who has a peer relationship with the unknown person to determine the identity of the unknown person, thereby achieving aggregation analysis of the unknown person's trajectory, obtaining relevant trajectory records of the unknown person's peer relationship and determining the identity of the unknown person. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and are used together with the description to explain the principles of the present invention. It will be easy to recognize other embodiments and many expected advantages of the embodiments because they become better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale with each other. The same reference numerals refer to corresponding similar parts.
[0046] Figure 1 This is a flow chart of a method for determining the identity of an unknown person according to an embodiment of the present application.
[0047] Figure 2 It is a specific flow chart of step S1 of the method for determining the identity of an unknown person in one embodiment of the present application.
[0048] Figure 3 It is a specific flow chart of step S14 of a method for determining the identity of an unknown person in one embodiment of the present application.
[0049] Figure 4 It is a structural diagram of the peer relationship between an unknown identity person and an identified person, and the peer relationship between an unknown identity person and an unknown identity person in one embodiment of the present application.
[0050] Figure 5 It is a structural diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Reference Figure 1 , a method for determining the identity of an unknown person disclosed in an embodiment of the present application comprises the following steps:
[0053] S1: Acquire facial capture data, compare the facial capture data with the Elasticsearch face comparison engine base database in the face capture machine, filter the capture records of unknown persons and form aggregated data of unknown person files.
[0054] In some optional implementations of this embodiment, such as Figure 2 As shown, the above execution subject can complete the process of step S1 according to the following steps:
[0055] S11: Acquire facial capture data, compare the facial capture data with the Elasticsearch facial comparison engine database in the facial capture machine, and obtain data that meets the comparison results and has a similarity with the identified person of less than 80%, a picture quality score greater than 75, and an age between 10 and 70, to form data to be aggregated for unknown persons.
[0056] Elasticsearch is a search server based on Lucene. It provides a distributed, multi-user, full-text search engine based on a RESTful web interface. Elasticsearch is developed in Java and released as open source under the terms of the Apache license. It is a popular enterprise search engine. Elasticsearch is used in cloud computing and has the advantages of real-time search, stability, reliability, speed, and easy installation and use.
[0057] S12: Compare the data of the unknown persons to be aggregated with each unknown person data in the unknown person base database respectively, where the unknown person base database is established by the Elasticsearch face matching engine base database. If the comparison result shows that the similarity between the data of the unknown persons to be aggregated and each unknown person data in the unknown person base database is less than 80%, proceed to S13, otherwise proceed to S14.
[0058] Among them, the data of the unknown persons to be gathered are compared with each unknown person data in the unknown persons base database respectively, so as to realize a 1:N search of the data of the unknown persons to be gathered and the unknown persons base database.
[0059] S13: Enter the unknown person feature data in the unknown person to be aggregated archive data into the unknown person base database, and enter the feature snapshot information in the unknown person to be aggregated archive data into the MongoDB unknown person base database table, and execute S16. The feature snapshot information includes the unknown person ID, snapshot ID, snapshot device ID, feature, snapshot trajectory times, quality score, etc.
[0060] In this embodiment, the structure of the MongoDB unknown identity personnel base table is as follows:
[0061]
[0062] MongoDB is a product between relational databases and non-relational databases. It is the most feature-rich and relational database-like non-relational database. The data structure it supports is very loose, in a bson format similar to json, so it can store relatively complex data types. The biggest feature of Mongo is that it supports a very powerful query language, whose syntax is somewhat similar to an object-oriented query language. It can achieve almost most of the functions of a single-table query in a relational database, and it also supports indexing of data.
[0063] S14: Obtaining the data of unknown persons to be aggregated, which has a similarity greater than 80% with the data of unknown persons in the unknown persons database, for trajectory archiving;
[0064] In some optional implementations of this embodiment, refer to Figure 3 The above execution entity can complete the process of step S14 according to the following steps:
[0065] S141: Acquire data with a similarity greater than 80% with the data of unknown persons in the unknown persons database for trajectory archiving, and execute S142;
[0066] In a specific embodiment, the trajectory archiving in step S14 is specifically: entering the trajectory capture information in the unknown identity person to be archived data into the MongoDB unknown identity person trajectory table. The trajectory capture information includes the unknown identity person base database ID, capture ID, capture device ID, similarity, and capture time.
[0067] In a specific embodiment, the structure of the MongoDB unknown identity person trajectory table is as follows:
[0068]
[0069] S142: If the quality score of the acquired data of unknown persons to be archived is greater than the quality score of the data of unknown persons in the MongoDB unknown persons base database table, execute S143, otherwise execute S15;
[0070] S143: Update the acquired feature capture information of the data to be archived of unknown persons to the MongoDB unknown persons base database table, and then update the acquired facial features of the data to be archived of unknown persons to the unknown persons base database, and execute S15.
[0071] S15: Update the number of captured trajectories in the MongoDB unknown person database table, and execute S16;
[0072] S16: End the file aggregation and form the file aggregation data of the unknown identity person;
[0073] S2: Set a time point gatherTime, obtain the unknown identity person's snapshot record within a period of time before and after the time point gatherTime of the unknown identity person's archive aggregation data, if the unknown identity person's snapshot record data is empty, execute S6, otherwise execute S3;
[0074] In a specific embodiment, S2 specifically includes the following steps: setting a time point gatherTime, obtaining the unknown identity person's snapshot record within 20 seconds before and after the time point gatherTime for the unknown identity person's archive aggregation data, if the unknown identity person's snapshot record data is empty, execute S6, otherwise execute S3.
[0075] S3: Obtain the snapshot records of the identified persons within a period of time before and after the time point gatherTime;
[0076] In a specific embodiment, S3 specifically includes the following steps: on the condition that there is an identified person identity and the similarity with the snapshot record of an unknown person is greater than 80%, obtaining the snapshot record of the identified person within 20 seconds before and after the time point gatherTime.
[0077] S4: establishing a peer relationship between the acquired snapshot record of the unknown person and the snapshot record of the identified person at adjacent snapshot times of the same device;
[0078] S5: entering or updating the peer relationship into a Neo4j graph database;
[0079] Neo4j graph database is a high-performance NOSQL graph database that stores structured data on the network instead of in tables. It is an embedded, disk-based Java persistence engine with full transactional features, but it stores structured data on the network (called a graph from a mathematical perspective) instead of in tables. Neo4j can also be seen as a high-performance graph engine that has all the features of a mature database.
[0080] In a specific embodiment, the peer relationship in S5 includes the peer relationship between an unknown person and an identified person and the peer relationship between an unknown person and an unknown person.
[0081] Reference Figure 4 , the storage node structure of the peer relationship between the unknown person and the identified person is specifically as follows:
[0082] (n1:UnPerson)-[r:CameraRel]-(n2:Person);
[0083] The specific storage node structure of the peer relationship between unknown persons is:
[0084] (n1:UnPerson)-[r:CameraRel]-(n2:UnPerson);
[0085] Among them, n1 and n2 are node names, UnPerson represents the unknown person label, Person represents the identified person label; r represents the relationship name, and CameraRel represents the relationship label. Relation r includes the number of times of traveling together count, the last time of traveling together lastTime, and the snapshot record of traveling together.
[0086] In this embodiment, the storage style in the Neo4j graph database is as follows:
[0087] [{"id":"personId1"},{"lastTime":1619799117000,"count":1,"together":["personId1:captureId; personId2:captureId2"]},{"id":"personId2"}]
[0088] S6: Complete the establishment of a peer relationship network for unknown persons;
[0089] S7: Through the peer relationship network of the unknown person, the identity of the identified person who has a peer relationship with the unknown person is searched to determine the identity of the unknown person.
[0090] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 100 suitable for implementing an electronic device of an embodiment of the present application. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0091] like Figure 5 As shown, the computer system 100 includes a central processing unit (CPU) 101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 102 or a program loaded from a storage part 108 into a random access memory (RAM) 103. In the RAM 103, various programs and data required for the operation of the system 100 are also stored. The CPU 101, the ROM 102, and the RAM 103 are connected to each other through a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.
[0092] The following components are connected to the I / O interface 105: an input section 106 including a keyboard, a mouse, etc.; an output section 107 including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 108 including a hard disk, etc.; and a communication section 109 including a network interface card such as a LAN card, a modem, etc. The communication section 109 performs communication processing via a network such as the Internet. A drive 110 is also connected to the I / O interface 105 as needed. A removable medium 111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 110 as needed, so that a computer program read therefrom is installed into the storage section 108 as needed.
[0093] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 109, and / or installed from a removable medium 111. When the computer program is executed by a central processing unit (CPU) 101, the above-mentioned functions defined in the method of the present application are executed.
[0094] As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device implements the following when executing. Figure 1 The method shown in .
[0095] It should be noted that the computer-readable storage medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0096] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0098] The modules involved in the embodiments described in the present application may be implemented by software or by hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a first acquisition module, a first training module, a second training module and a first determination module. The names of these modules do not constitute a limitation on the unit itself in some cases, for example, the first acquisition module may also be described as a "module for acquiring a plurality of sample image frame sequences".
[0099] Although the principles of the present invention are described in detail above in conjunction with the preferred embodiments of the present invention, those skilled in the art should understand that the above embodiments are merely explanations of the exemplary implementations of the present invention, and are not intended to limit the scope of the present invention. The details in the embodiments do not constitute limitations on the scope of the present invention, and any obvious changes such as equivalent transformations, simple replacements, etc. based on the technical solution of the present invention, without departing from the spirit and scope of the present invention, fall within the protection scope of the present invention.
Claims
1. A method for determining the identity of an unknown person, characterized in that: The following steps are involved: S1: Acquire face capture data, compare the face capture data with the Elasticsearch face comparison engine base database in the face capture machine, filter the capture records of unknown persons and form the aggregated data of the unknown person files; The S1 specifically includes the following steps: S11: Acquire captured face data, compare the captured face data with the Elasticsearch face comparison engine database in the face capture machine, and obtain data that meets the comparison results and has a similarity of less than 80% with the identified person, a picture quality score greater than 75, and an age between 10 and 70, to form the data of unknown persons to be aggregated; S12: Compare the unknown person data to be aggregated with each unknown person data in the unknown person database, where the unknown person database is established by the Elasticsearch face matching engine database. If the comparison result shows that the similarity between the unknown person data to be aggregated and each unknown person data in the unknown person database is less than 80%, proceed to S13; otherwise, proceed to S14. S13: entering the unknown identity personnel feature data in the unknown identity personnel to be aggregated archive data into the unknown identity personnel base database, and entering the feature snapshot information in the unknown identity personnel to be aggregated archive data into the MongoDB unknown identity personnel base database table, and executing S16; S14: Obtaining the data of unknown persons to be aggregated, which has a similarity greater than 80% with the data of unknown persons in the unknown persons database, and archiving the trajectory; S15: Update the number of unknown person capture trajectories in the MongoDB unknown person base database table, and execute S16; S16: End the file aggregation and form the file aggregation data of the unknown identity person; S2: Set a time point gatherTime, obtain the unknown identity person's snapshot record within a period of time before and after the time point gatherTime of the unknown identity person's archive aggregation data, if the unknown identity person's snapshot record data is empty, execute S6, otherwise execute S3; S3: Obtain the snapshot records of the identified persons within a period of time before and after the time point gatherTime; S4: establishing a peer relationship between the acquired snapshot record of the unknown person and the snapshot record of the identified person at adjacent snapshot times of the same device; S5: entering or updating the peer relationship into a Neo4j graph database; S6: Complete the establishment of a peer relationship network for unknown persons; S7: Through the peer relationship network of the unknown person, the identity of the identified person who has a peer relationship with the unknown person is searched to determine the identity of the unknown person.
2. A method for determining the identity of an unknown person according to claim 1, characterized in that: The S14 specifically includes the following steps: S141: Obtain the data of unknown persons to be archived whose similarity with the data of unknown persons in the unknown persons base database is greater than 80% for trajectory archiving, and execute S142; S142: If the quality score of the acquired data of unknown persons to be archived is greater than the quality score of the data of unknown persons in the MongoDB unknown persons base table, execute S143; otherwise, execute S15; S143: Update the acquired feature capture information of the data to be archived of the unknown person to the MongoDB unknown person base database table, and then update the acquired facial features of the data to be archived of the unknown person to the unknown person base database, and execute S15.
3. A method for determining the identity of an unknown person according to claim 1, characterized in that: The S2 specifically includes the following steps: setting a time point gatherTime, obtaining the unknown identity person's snapshot record within 20 seconds before and after the unknown identity person's archive aggregation data at the time point gatherTime, if the unknown identity person's snapshot record data is empty, executing S6, otherwise executing S3.
4. A method for determining the identity of an unknown person according to claim 3, characterized in that: The S3 specifically includes the following steps: obtaining the snapshot records of the identified persons within 20 seconds before and after the time point gatherTime, under the condition that there is an identified person whose identity is greater than 80% similar to the snapshot records of the unknown persons.
5. A method for determining the identity of an unknown person according to any one of claims 1 to 4, characterized in that: The peer relationship in S5 includes the peer relationship between an unknown person and an identified person and the peer relationship between an unknown person and an unknown person.
6. A method for determining the identity of an unknown person according to claim 5, characterized in that: The storage node structure of the peer relationship between the unknown person and the identified person is specifically as follows: (n1:UnPerson)-[r:CameraRel]-(n2:Person); The specific storage node structure of the peer relationship between unknown persons is: (n1:UnPerson)-[r:CameraRel]-(n2:UnPerson); Where n1 and n2 are node names, UnPerson represents the unknown person label, and Person represents the identified person label; r represents the relationship name, and CameraRel represents the relationship label.
7. A method for determining the identity of an unknown person according to claim 6, characterized in that: The relationship r includes the number of times of traveling together count, the last time of traveling together lastTime and the snapshot record of traveling together.
8. The method for determining the identity of an unknown person according to claim 1, characterized in that: The trajectory archiving in S14 is specifically as follows: the acquired trajectory snapshot information in the data to be archived of the unknown person is entered into the MongoDB unknown person trajectory table.
9. A method for determining the identity of an unknown person according to claim 8, characterized in that: The trajectory capture information includes the unknown person's database ID, capture ID, capture device ID, similarity and capture time.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
