CN117009435A - Data synchronization method, equipment and storage medium based on identity recognition - Google Patents
Data synchronization method, equipment and storage medium based on identity recognition Download PDFInfo
- Publication number
- CN117009435A CN117009435A CN202310788824.9A CN202310788824A CN117009435A CN 117009435 A CN117009435 A CN 117009435A CN 202310788824 A CN202310788824 A CN 202310788824A CN 117009435 A CN117009435 A CN 117009435A
- Authority
- CN
- China
- Prior art keywords
- data
- matched
- cluster
- row
- identity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F16/273—Asynchronous replication or reconciliation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域Technical field
本申请涉及数据传输技术领域,特别是涉及一种基于身份识别的数据同步方法、设备以及存储介质。This application relates to the field of data transmission technology, and in particular to a data synchronization method, device and storage medium based on identity recognition.
背景技术Background technique
随着互联网技术的发展,身份识别技术被应用于很多场景中,例如:监控平台服务端分别下发人员信息至若干个身份识别终端(客户端),终端将采集到人脸图像和接收到的人员信息进行匹配,实现身份识别。With the development of Internet technology, identity recognition technology is used in many scenarios. For example, the monitoring platform server sends personnel information to several identity recognition terminals (clients). The terminals will collect face images and received Person information is matched to achieve identity recognition.
但是,若需要识别的身份过多,其涉及到的数据量自然也难以估计,则可能出现监控平台服务端和身份识别终端两者的数据不一致,服务端和客户端的数据同步效率低下,无法对大量数据及时进行确认,导致终端无法有效进行身份识别。However, if there are too many identities to be identified, the amount of data involved is naturally difficult to estimate, and the data on the monitoring platform server and the identity recognition terminal may be inconsistent, and the data synchronization efficiency between the server and the client is low, making it impossible to A large amount of data needs to be confirmed in a timely manner, resulting in the terminal being unable to effectively perform identification.
发明内容Contents of the invention
本申请至少提供一种基于身份识别的数据同步方法、装置、设备以及计算机可读存储介质。This application at least provides a data synchronization method, device, equipment and computer-readable storage medium based on identity recognition.
本申请第一方面提供了一种基于身份识别的数据同步方法,包括:将获取到的人员信息数据进行分层聚合处理,得到多个数据层级的数据摘要,所述数据层级包括数据行、数据簇和数据表,所述数据表包括至少一个数据簇,所述数据簇包括至少一个数据行,所述数据摘要包括所述数据行对应的行摘要、所述数据簇对应的簇摘要和所述数据表对应的表摘要;将所述人员信息数据发送至目标客户端,所述目标客户端基于接收的人员信息数据进行分层聚合处理得到各数据层级的待匹配数据摘要;以所述数据行、数据簇和数据表的层级顺序依次将所述数据行对应的行摘要、所述数据簇对应的簇摘要和所述数据表对应的表摘要与所述目标客户端返回的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要和待匹配表摘要进行匹配处理,得到匹配结果;若所述匹配结果中存在目标数据摘要与所述目标客户端返回的待匹配数据摘要不一致,则将所述目标数据摘要所在数据层级对应的人员信息数据发送至所述目标客户端进行数据同步。The first aspect of this application provides a data synchronization method based on identity recognition, which includes: performing hierarchical aggregation processing on the acquired personnel information data to obtain data summaries of multiple data levels. The data levels include data rows, data Clusters and data tables, the data table includes at least one data cluster, the data cluster includes at least one data row, the data summary includes a row summary corresponding to the data row, a cluster summary corresponding to the data cluster and the Table summary corresponding to the data table; send the personnel information data to the target client, and the target client performs hierarchical aggregation processing based on the received personnel information data to obtain a summary of the data to be matched at each data level; use the data rows , the hierarchical order of data clusters and data tables is to sequentially combine the row summary corresponding to the data row, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table with the data summary to be matched returned by the target client. The corresponding to-be-matched row summary, to-be-matched cluster summary, and to-be-matched table summary are matched to obtain a matching result; if the target data summary in the matching result is inconsistent with the to-be-matched data summary returned by the target client, then The personnel information data corresponding to the data level where the target data summary is located is sent to the target client for data synchronization.
在一实施例中,所述人员信息数据包括身份数据表和与所述身份数据表中的身份数据匹配的人脸图像,所述将获取到的人员信息数据进行分层聚合处理,得到多个数据层级的数据摘要的步骤,包括:将所述身份数据表中的身份数据进行聚合,得到至少一簇数据簇,所述数据簇中包括至少一行所述身份数据;分别对所述数据簇中每一行身份数据和所述每一行身份数据对应的人脸图像进行数据摘要处理,得到至少一行行摘要和所述行摘要对应的图像摘要;基于所述数据簇中的所述行摘要和所述图像摘要确定所述数据簇的簇摘要,以及基于各数据簇的簇摘要确定所述身份数据表的表摘要。In one embodiment, the personnel information data includes an identity data table and a face image that matches the identity data in the identity data table. The obtained personnel information data is hierarchically aggregated to obtain multiple The step of data summary at the data level includes: aggregating the identity data in the identity data table to obtain at least one data cluster, the data cluster including at least one row of the identity data; Each row of identity data and the face image corresponding to each row of identity data are subjected to data summary processing to obtain at least one row summary and an image summary corresponding to the row summary; based on the row summary in the data cluster and the An image digest determines a cluster digest for the data cluster, and a table digest for the identity data table is determined based on the cluster digest for each data cluster.
在一实施例中,所述以所述数据行、数据簇和数据表的层级顺序依次将所述数据行对应的行摘要、所述数据簇对应的簇摘要和所述数据表对应的表摘要与所述目标客户端返回的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要或待匹配表摘要进行匹配处理,得到匹配结果的步骤,包括:若接收到所述目标客户端返回的待匹配行摘要,则判断所述行摘要和所述待匹配行摘要是否匹配,得到所述匹配结果;若接收到所述目标客户端返回的待匹配簇摘要,则判断所述簇摘要和所述待匹配簇摘要是否匹配,得到所述匹配结果;若接收到所述目标客户端返回的待匹配表摘要,则判断所述表摘要和所述待匹配表摘要是否匹配,得到所述匹配结果。In one embodiment, the row summary corresponding to the data row, the cluster summary corresponding to the data cluster and the table summary corresponding to the data table are sequentially arranged in the hierarchical order of the data row, data cluster and data table. The step of performing matching processing with the corresponding to-be-matched row summary, to-be-matched cluster summary or to-be-matched table summary in the to-be-matched data summary returned by the target client to obtain the matching result includes: if the target client returns to-be-matched row summary, then determine whether the row summary and the to-be-matched row summary match, and obtain the matching result; if the to-be-matched cluster summary returned by the target client is received, then determine whether the cluster summary and the to-be-matched row summary are Whether the summary of the cluster to be matched matches, the matching result is obtained; if the summary of the table to be matched returned by the target client is received, it is judged whether the table summary and the summary of the table to be matched match, and the matching result is obtained result.
在一实施例中,所述分别对所述数据簇中每一行身份数据和所述每一行身份数据对应的人脸图像进行数据摘要处理的步骤,包括:获取所述每一行身份数据对应的随机字符串;基于所述随机字符串将对应的身份数据进行数据摘要处理,得到所述每一行身份数据对应的行摘要;基于所述随机字符串将对应的人脸图像进行数据摘要处理,得到所述人脸图像对应的图像摘要。In one embodiment, the step of performing data summary processing on each row of identity data in the data cluster and the face image corresponding to each row of identity data includes: obtaining a random number corresponding to each row of identity data. String; perform data summary processing on the corresponding identity data based on the random string to obtain the row summary corresponding to each row of identity data; perform data summary processing on the corresponding face image based on the random string to obtain the The image summary corresponding to the face image is described.
在一实施例中,所述方法还包括:若检测到当前运行状态和/或所述目标客户端的运行状态为空闲状态,则向所述目标客户端发送随机摘要确认请求,使所述目标客户端响应于接收到的所述随机摘要确认请求,返回所述目标客户端中和所述随机摘要确认请求对应的待匹配数据摘要;以所述数据行、数据簇和数据表的层级顺序依次将所述数据行对应的行摘要、所述数据簇对应的簇摘要和所述数据表对应的表摘要与接收到的所述目标客户端返回的待匹配数据摘要进行匹配处理,得到随机匹配结果;基于所述随机匹配结果对所述目标客户端进行数据同步。In one embodiment, the method further includes: if it is detected that the current running state and/or the running state of the target client is an idle state, sending a random summary confirmation request to the target client so that the target client In response to the received random summary confirmation request, the client returns the to-be-matched data summary corresponding to the random summary confirmation request in the target client; in order of the hierarchical order of the data rows, data clusters and data tables, The row summary corresponding to the data row, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table are matched with the received data summary to be matched returned by the target client to obtain a random matching result; Data synchronization is performed on the target client based on the random matching result.
在一实施例中,所述方法应用于目标客户端,所述方法包括:基于接收到的服务端发送的人员信息数据,将所述人员信息数据进行分层聚合,得到多个数据层级的待匹配数据摘要,所述数据层级包括数据行、数据簇和数据表,所述数据表包括至少一个数据簇,所述数据簇包括至少一个数据行,所述待匹配数据摘要包括所述数据行对应的待匹配行摘要、所述数据簇对应的待匹配簇摘要和所述数据表对应的待匹配表摘要;将所述待匹配数据摘要中的待匹配行摘要、待匹配簇摘要或待匹配表摘要发送至所述服务端,所述服务端以所述数据行、数据簇和数据表的层级顺序依次将所述服务端中数据行对应的行摘要、所述数据簇对应的簇摘要和所述数据表对应的表摘要与所述服务端接收到的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要和待匹配表摘要进行匹配处理,得到匹配结果;若接收到所述服务端发送的匹配结果中存在目标数据摘要与所述服务端接收到的待匹配数据摘要不一致,则基于接收到的所述服务端发送的所述目标数据摘要所在数据层级对应的人员信息数据进行数据同步。In one embodiment, the method is applied to the target client. The method includes: based on the received personnel information data sent by the server, performing hierarchical aggregation of the personnel information data to obtain multiple data levels to be processed. Matching data summary, the data level includes data rows, data clusters and data tables, the data table includes at least one data cluster, the data cluster includes at least one data row, the data summary to be matched includes the data row corresponding to The row summary to be matched, the cluster summary to be matched corresponding to the data cluster, and the table summary to be matched corresponding to the data table; the row summary to be matched, the cluster summary to be matched, or the table to be matched in the data summary to be matched The summary is sent to the server, and the server sequentially sends the row summary corresponding to the data row, the cluster summary corresponding to the data cluster, and all the data in the server in the hierarchical order of the data row, data cluster, and data table. The table summary corresponding to the data table is matched with the corresponding row summary to be matched, the cluster summary to be matched, and the table summary to be matched in the data summary to be matched received by the server to obtain a matching result; if the service is received If there is a target data summary in the matching result sent by the server that is inconsistent with the data summary to be matched received by the server, the data will be processed based on the personnel information data corresponding to the data level at which the target data summary sent by the server is received. Synchronize.
在一实施例中,所述人员信息包括身份数据表和与所述身份数据表中的身份数据匹配的人脸图像,所述基于接收到的服务端发送的人员信息数据,将所述人员信息数据进行分层聚合,得到多个数据层级的待匹配数据摘要的步骤,包括:将所述身份数据表中的身份数据进行聚合,得到至少一簇数据簇,所述数据簇中包括至少一行所述身份数据,所述身份数据和所述人脸图像对应;分别对所述数据簇中每一行身份数据和所述每一行身份数据对应的人脸图像进行数据摘要处理,得到至少一行待匹配行摘要和所述待匹配行摘要对应的待匹配图像摘要;基于所述数据簇中的所述待匹配行摘要和所述待匹配图像摘要确定所述数据簇的待匹配簇摘要,以及基于各数据簇的待匹配簇摘要确定所述身份数据表的待匹配表摘要。In one embodiment, the person information includes an identity data table and a face image that matches the identity data in the identity data table. Based on the person information data sent by the received server, the person information is The step of performing hierarchical aggregation of data to obtain multiple data levels of data summaries to be matched includes: aggregating the identity data in the identity data table to obtain at least one data cluster, and the data cluster includes at least one row of The identity data corresponds to the face image; perform data summary processing on each row of identity data in the data cluster and the face image corresponding to each row of identity data to obtain at least one row to be matched. summary and the to-be-matched image summary corresponding to the to-be-matched row summary; determine the to-be-matched cluster summary of the data cluster based on the to-be-matched row summary and the to-be-matched image summary in the data cluster, and based on each data The cluster digest of the cluster to be matched determines the table digest of the identity data table to be matched.
在一实施例中,所述将所述待匹配数据摘要中的待匹配行摘要、待匹配簇摘要和待匹配表摘要发送至所述服务端的步骤,包括:若接收到所述服务端发送的所述身份数据表中的一行身份数据,则将所述一行身份数据的待匹配行摘要发送至所述服务端进行匹配;若接收到一簇数据簇中所有行的身份数据,则将所述一簇数据簇的待匹配簇摘要发送至所述服务端进行匹配;若接收到所述身份数据表中所有簇的身份数据,则将所述身份数据表的待匹配表摘要发送至所述服务端进行匹配。In one embodiment, the step of sending the to-be-matched row summary, the to-be-matched cluster summary, and the to-be-matched table summary in the to-be-matched data summary to the server includes: if a message sent by the server is received. For a row of identity data in the identity data table, the summary of the row to be matched of the row of identity data is sent to the server for matching; if the identity data of all rows in a cluster of data clusters is received, the summary of the row to be matched is sent to the server. The summary of the cluster to be matched of a cluster of data clusters is sent to the server for matching; if the identity data of all clusters in the identity data table is received, the summary of the table to be matched is sent to the service. end to match.
本申请第二方面提供了一种基于身份识别的数据同步装置,所述装置设置于服务端,包括:第一分层聚合模块,用于将获取到的人员信息数据进行分层聚合处理,得到多个数据层级的数据摘要,所述数据层级包括数据行、数据簇和数据表,所述数据表包括至少一个数据簇,所述数据簇包括至少一个数据行,所述数据摘要包括所述数据行对应的行摘要、所述数据簇对应的簇摘要和所述数据表对应的表摘要;第一数据发送模块,用于将所述人员信息数据发送至目标客户端,所述目标客户端基于接收的人员信息数据进行分层聚合处理得到各数据层级的待匹配数据摘要;第一数据匹配模块,用于以所述数据行、数据簇和数据表的层级顺序依次将所述数据行对应的行摘要、所述数据簇对应的簇摘要和所述数据表对应的表摘要与所述目标客户端返回的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要和待匹配表摘要进行匹配处理,得到匹配结果;第一数据同步模块,用于若所述匹配结果中存在目标数据摘要与所述目标客户端返回的待匹配数据摘要不一致,则将所述目标数据摘要所在数据层级对应的人员信息数据发送至所述目标客户端进行数据同步。The second aspect of this application provides a data synchronization device based on identity recognition. The device is provided on the server and includes: a first hierarchical aggregation module for hierarchically aggregating the acquired personnel information data to obtain Data summary of multiple data levels, the data level includes data rows, data clusters and data tables, the data table includes at least one data cluster, the data cluster includes at least one data row, the data summary includes the data The row summary corresponding to the row, the cluster summary corresponding to the data cluster and the table summary corresponding to the data table; the first data sending module is used to send the personnel information data to the target client, and the target client is based on The received personnel information data is subjected to hierarchical aggregation processing to obtain the data summary to be matched at each data level; the first data matching module is used to sequentially match the data rows corresponding to the data rows, data clusters and data tables in the hierarchical order. The row summary, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table are compared with the corresponding row summary to be matched, the cluster summary to be matched, and the table summary to be matched in the data summary to be matched returned by the target client. Match processing to obtain a matching result; the first data synchronization module is used to, if there is a target data summary in the matching result that is inconsistent with the data summary to be matched returned by the target client, corresponding to the data level where the target data summary is located The personnel information data is sent to the target client for data synchronization.
本申请还提供了一种基于身份识别的数据同步装置,所述装置设置于客户端,包括:第二分层聚合模块,用于基于接收到的服务端发送的人员信息数据,将所述人员信息数据进行分层聚合,得到多个数据层级的待匹配数据摘要,所述数据层级包括数据行、数据簇和数据表,所述数据表包括至少一个数据簇,所述数据簇包括至少一个数据行,所述待匹配数据摘要包括所述数据行对应的待匹配行摘要、所述数据簇对应的待匹配簇摘要和所述数据表对应的待匹配表摘要;第二数据发送模块,用于将所述待匹配数据摘要中的待匹配行摘要、待匹配簇摘要或待匹配表摘要发送至所述服务端,所述服务端以所述数据行、数据簇和数据表的层级顺序依次将所述服务端中数据行对应的行摘要、所述数据簇对应的簇摘要和所述数据表对应的表摘要与所述服务端接收到的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要和待匹配表摘要进行匹配处理,得到匹配结果;第二数据同步模块,用于若接收到所述服务端发送的匹配结果中存在目标数据摘要与所述服务端接收到的待匹配数据摘要不一致,则基于接收到的所述服务端发送的所述目标数据摘要所在数据层级对应的人员信息数据进行数据同步。This application also provides a data synchronization device based on identity recognition. The device is provided on the client and includes: a second hierarchical aggregation module for synchronizing the personnel based on the received personnel information data sent by the server. The information data is hierarchically aggregated to obtain a summary of the data to be matched at multiple data levels. The data levels include data rows, data clusters and data tables. The data tables include at least one data cluster, and the data clusters include at least one data row, the summary of the data to be matched includes the summary of the row to be matched corresponding to the data row, the summary of the cluster to be matched corresponding to the data cluster, and the summary of the table to be matched corresponding to the data table; the second data sending module is used to The to-be-matched row summary, the to-be-matched cluster summary, or the to-be-matched table summary in the to-be-matched data summary are sent to the server, and the server sequentially sends the to-be-matched row summary, the to-be-matched cluster summary, and the to-be-matched table summary in the hierarchical order of the data rows, data clusters, and data tables. The row summary corresponding to the data row in the server, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table are the same as the corresponding row summary to be matched and the row summary to be matched in the data summary to be matched received by the server. The matching cluster summary and the summary of the table to be matched are matched to obtain the matching result; the second data synchronization module is used to if there is a target data summary in the matching result sent by the server and the summary of the target data received by the server to be matched. If the data summaries are inconsistent, data synchronization is performed based on the received personnel information data corresponding to the data level at which the target data summary is sent by the server.
本申请第三方面提供了一种电子设备,包括存储器和处理器,处理器用于执行存储器中存储的程序指令,以实现上述基于身份识别的数据同步方法。The third aspect of this application provides an electronic device, including a memory and a processor. The processor is used to execute program instructions stored in the memory to implement the above-mentioned data synchronization method based on identity recognition.
本申请第四方面提供了一种计算机可读存储介质,其上存储有程序指令,程序指令被处理器执行时实现上述基于身份识别的数据同步方法。The fourth aspect of this application provides a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, the above-mentioned data synchronization method based on identity recognition is implemented.
上述方案,服务端将获取到的人员信息数据进行分层聚合,得到多个数据层级的数据摘要,实现对人员信息数据的精简;服务端将人员信息数据发送至客户端,得到客户端将人员信息数据分层聚合后返回的待匹配数据摘要;服务端根据数据层级的层级顺序将服务端的各级数据摘要和客户端返回的各级待匹配数据摘要依次进行匹配,实现对服务端、客户端之间数据的一致性校验;服务端发送目标数据摘要至客户端,使客户端基于目标数据摘要将与服务端不匹配的数据摘要进行数据同步处理,由此能够实现服务端和客户端之间的数据同步,确保数据同步的一致性并提高了数据同步的效率。In the above scheme, the server performs hierarchical aggregation of the acquired personnel information data to obtain data summaries at multiple data levels, thereby simplifying the personnel information data; the server sends the personnel information data to the client, and obtains the personnel information from the client. The summary of data to be matched returned after hierarchical aggregation of information data; the server matches the summary of data at all levels on the server and the summary of data at all levels to be matched returned by the client in sequence according to the hierarchical order of the data hierarchy, so as to realize the matching between the server and the client. Consistency verification of data between the two parties; the server sends the target data summary to the client, so that the client can perform data synchronization processing on the data summary that does not match the server based on the target data summary, thus realizing the communication between the server and the client. Data synchronization between devices ensures the consistency of data synchronization and improves the efficiency of data synchronization.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本申请。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present application.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本申请的实施例,并与说明书一起用于说明本申请的技术方案。The accompanying drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application, and together with the description, are used to explain the technical solutions of the present application.
图1是本申请的基于身份识别的数据同步方法应用于服务端的一示例性实施例的流程示意图;Figure 1 is a schematic flowchart of an exemplary embodiment of the application's identity recognition-based data synchronization method applied to the server;
图2是本申请中将人员信息数据进行分层聚合处理的结构示意图;Figure 2 is a schematic structural diagram of hierarchical aggregation processing of personnel information data in this application;
图3是本申请中随机的数据确认的流程示意图;Figure 3 is a schematic flow chart of random data confirmation in this application;
图4是本申请基于身份识别的数据同步方法应用于目标客户端的一示例性实施例的流程示意图;Figure 4 is a schematic flowchart of an exemplary embodiment of applying the identity recognition-based data synchronization method of the present application to a target client;
图5是本申请的一示例性实施例示出的设置于服务端的基于身份识别的数据同步装置的框图;Figure 5 is a block diagram of a data synchronization device based on identity recognition provided on the server side according to an exemplary embodiment of the present application;
图6是本申请的一示例性实施例示出的设置于目标客户端的基于身份识别的数据同步装置的框图;Figure 6 is a block diagram of an identity recognition-based data synchronization device provided on a target client according to an exemplary embodiment of the present application;
图7是本申请电子设备一实施例的结构示意图;Figure 7 is a schematic structural diagram of an embodiment of the electronic device of the present application;
图8是本申请计算机可读存储介质一实施例的结构示意图。Figure 8 is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present application.
具体实施方式Detailed ways
下面结合说明书附图,对本申请实施例的方案进行详细说明。The solutions of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本申请。In the following description, specific details such as specific system structures, interfaces, technologies, etc. are provided for the purpose of explanation and not limitation, so as to provide a thorough understanding of the present application.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。此外,本文中的“多”表示两个或者多于两个。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is just an association relationship that describes related objects, indicating that three relationships can exist. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, and C, which can mean including from A, Any one or more elements selected from the set composed of B and C.
请参阅图1,图1是本申请的基于身份识别的数据同步方法应用于服务端的一示例性实施例的流程示意图。具体而言,可以包括如下步骤:Please refer to FIG. 1 , which is a schematic flowchart of an exemplary embodiment in which the identity recognition-based data synchronization method of the present application is applied to the server. Specifically, it can include the following steps:
步骤S110,将获取到的人员信息数据进行分层聚合处理,得到多个数据层级的数据摘要,数据层级包括数据行、数据簇和数据表,数据表包括至少一个数据簇,数据簇包括至少一个数据行,数据摘要包括数据行对应的行摘要、数据簇对应的簇摘要和数据表对应的表摘要。Step S110: Perform hierarchical aggregation processing on the acquired personnel information data to obtain data summaries of multiple data levels. The data levels include data rows, data clusters and data tables. The data tables include at least one data cluster, and the data clusters include at least one data cluster. Data rows, data summaries include row summaries corresponding to data rows, cluster summaries corresponding to data clusters, and table summaries corresponding to data tables.
人员信息数据指的是用于身份识别的数据,包括人员的身份数据表和人员的人脸图像,其中身份数据表中的身份数据和人脸图像匹配,需要说明的是,在身份识别场景中,身份数据表中的每行身份数据通常具有唯一标识。Personnel information data refers to data used for identity recognition, including the person's identity data table and the person's face image. The identity data in the identity data table matches the face image. It should be noted that in the identity recognition scenario , each row of identity data in the identity data table usually has a unique identifier.
分层聚合指的是将人员信息数据进行分组或分类,将分组或分类后的人员信息数据分别进行聚合处理,以形成多个层级关系的数据,其中,聚合处理包括数据摘要处理,数据摘要处理指的是将任意长度的消息变成固定长度的短消息(摘要),例如Hash函数、MD5、SHA1以及Base64编码等,不仅可以对人员信息数据进行加密,还能使人员信息数据变得精简。Hierarchical aggregation refers to grouping or classifying personnel information data, and aggregating the grouped or classified personnel information data separately to form data with multiple hierarchical relationships. The aggregation processing includes data summary processing. It refers to turning messages of any length into short messages (digests) of fixed length, such as Hash function, MD5, SHA1 and Base64 encoding, etc., which can not only encrypt personnel information data, but also simplify personnel information data.
示例性地,可参考图2,图2是本申请中将人员信息数据进行分层聚合处理的结构示意图,可以基于预设的分组阈值对身份数据表中的各行身份数据进行分组,例如分组阈值为10,则表明身份数据表中每10行身份数据为一组,一组数据则相当于一簇数据,即在身份数据表中每检测到10行身份数据将其分组并聚合为一个数据簇;在将身份数据表中所有行身份数据分组完成后,即形成多个数据层级,包括数据行、数据簇和数据表,数据表包括数据簇,数据簇包括数据行,一个数据行则表征一行身份数据;对每行身份数据进行摘要处理则得到每行身份数据对应的数据行的行摘要,对每行身份数据对应的人脸图像进行摘要处理则得到每行身份数据对应的人脸图像的图像摘要;将一簇数据簇中所有数据行对应的行摘要和图像摘要进行预设的摘要拼接计算,则得到该数据簇的簇摘要;将身份数据表所有身份数据所属的数据簇的簇摘要计算完成后,则根据所有数据簇的簇摘要进行摘要拼接计算,得到该身份数据表的表摘要。For example, reference can be made to Figure 2, which is a schematic structural diagram of hierarchical aggregation processing of personnel information data in this application. Each row of identity data in the identity data table can be grouped based on a preset grouping threshold, such as a grouping threshold. is 10, it means that every 10 rows of identity data in the identity data table is a group, and a group of data is equivalent to a cluster of data. That is, every 10 rows of identity data detected in the identity data table are grouped and aggregated into a data cluster. ; After grouping all the rows of identity data in the identity data table, multiple data levels are formed, including data rows, data clusters and data tables. The data table includes data clusters, the data clusters include data rows, and one data row represents a row. Identity data; performing summary processing on each row of identity data will obtain the row summary of the data row corresponding to each row of identity data; performing summary processing on the face image corresponding to each row of identity data will obtain the summary of the face image corresponding to each row of identity data. Image summary; perform preset summary splicing calculations on the row summaries and image summaries corresponding to all data rows in a data cluster, and then obtain the cluster summary of the data cluster; combine the cluster summaries of the data clusters to which all identity data in the identity data table belong After the calculation is completed, summary splicing calculation is performed based on the cluster summaries of all data clusters to obtain the table summary of the identity data table.
需要说明的是,若将身份数据进行分组直至最后一簇,而当前剩余的身份数据的数量少于预设的第一分组阈值,或是在身份数据分组过程中出现数据丢失等情况,导致得到的数据簇中行数据的数量少于第一分组阈值,为了保证摘要计算过程的完整性,可以在该数据簇中缺失数据的部分填充预设的固定数据用于替代该位置的数据行的行摘要。It should be noted that if the identity data is grouped until the last cluster, and the number of remaining identity data is less than the preset first grouping threshold, or data loss occurs during the identity data grouping process, resulting in The number of row data in the data cluster is less than the first grouping threshold. In order to ensure the integrity of the summary calculation process, the part with missing data in the data cluster can be filled with preset fixed data to replace the row summary of the data row at that position. .
还需说明的是,还可以通过定义多阶簇摘要的方式对数据簇的簇摘要进行进一步地精简;为便于说明,将基于数据行的行摘要和人脸图像的图像摘要进行摘要拼接计算得到的数据簇的簇摘要定义为一阶簇摘要;基于预设的第二分组阈值,将第二分组阈值对应数量的数据簇的一阶簇摘要进行摘要拼接计算,得到二阶簇摘要;同理,可推至三阶簇摘要的定义、四阶簇摘要的定义,在此不做赘述;并且第一分组阈值和第二分组阈值仅为命名上的不同,第一分组阈值和第二分组阈值可以相同或不同,在此不做限定,但若要实现多阶簇摘要的定义,第二分组阈值应当小于一阶簇摘要的数量。It should also be noted that the cluster summary of the data cluster can be further streamlined by defining a multi-level cluster summary; for the convenience of explanation, the row summary based on the data row and the image summary of the face image are summarized and spliced to calculate The cluster summary of data clusters is defined as the first-order cluster summary; based on the preset second grouping threshold, the first-order cluster summaries of the number of data clusters corresponding to the second grouping threshold are summarized and spliced to obtain the second-order cluster summary; similarly , can be extended to the definition of third-order cluster summary and fourth-order cluster summary, which will not be described in detail here; and the first grouping threshold and the second grouping threshold are only different in naming, the first grouping threshold and the second grouping threshold They can be the same or different, and are not limited here. However, to achieve the definition of multi-order cluster summaries, the second grouping threshold should be smaller than the number of first-order cluster summaries.
步骤S120,将人员信息数据发送至目标客户端,目标客户端基于接收的人员信息数据进行分层聚合处理得到各数据层级的待匹配数据摘要。Step S120: Send the personnel information data to the target client. The target client performs hierarchical aggregation processing based on the received personnel information data to obtain a summary of the data to be matched at each data level.
需要说明的是,服务端对人员信息数据进行分层聚合处理的过程和服务端将人员信息数据发送至目标客户端的过程并不冲突,因此,步骤S120和步骤S110的执行顺序并未限定,考虑到服务端需要验证目标客户端返回的待匹配数据摘要,优选地,可以先执行步骤S110。It should be noted that the process of hierarchical aggregation of personnel information data by the server does not conflict with the process of sending personnel information data to the target client by the server. Therefore, the execution order of steps S120 and S110 is not limited. Consider The server needs to verify the summary of data to be matched returned by the target client. Preferably, step S110 can be performed first.
可以理解的是,为了便于服务端和目标客户端间进行数据一致性的确认,服务端和目标客户端对于人员信息数据进行分层聚合处理、数据摘要处理的处理方式应当是相同的,其中,可以是目标客户端预设有和服务端相同的处理方式,也可以是服务端将其处理方式发送至目标客户端,还可以是目标客户端从其它预设的数据库或服务器中获取得到的,在此不做限定。It can be understood that in order to facilitate the confirmation of data consistency between the server and the target client, the hierarchical aggregation processing and data summary processing of personnel information data by the server and the target client should be the same. Among them, The target client can be preset with the same processing method as the server, or the server can send its processing method to the target client, or the target client can obtain it from other preset databases or servers. No limitation is made here.
步骤S130,以数据行、数据簇和数据表的层级顺序依次将数据行对应的行摘要、数据簇对应的簇摘要和数据表对应的表摘要与目标客户端返回的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要和待匹配表摘要进行匹配处理,得到匹配结果。Step S130: In order of the hierarchical order of data rows, data clusters and data tables, the row summary corresponding to the data row, the cluster summary corresponding to the data cluster and the table summary corresponding to the data table are combined with the corresponding data summary to be matched returned by the target client. The summary of the row to be matched, the summary of the cluster to be matched, and the summary of the table to be matched are matched to obtain the matching result.
可以理解的是,因为目标客户端和服务端关于人员信息数据的分层聚合处理方式相同,所以目标客户端返回的待匹配数据摘要自然包括待匹配行摘要、待匹配簇摘要和待匹配表摘要。It is understandable that because the hierarchical aggregation of personnel information data is processed in the same way between the target client and the server, the summary of the data to be matched returned by the target client naturally includes the summary of the row to be matched, the summary of the cluster to be matched, and the summary of the table to be matched. .
示例性地,可继续参阅图2所示的数据层级,按照数据行、数据簇和数据表的层级顺序依次将行摘要、簇摘要和表摘要与目标客户端返回的待匹配行摘要、待匹配簇摘要和待匹配表摘要进行对应地摘要匹配处理,得到匹配结果。For example, you can continue to refer to the data hierarchy shown in Figure 2, and sequentially combine the row summary, cluster summary and table summary with the row summary to be matched and the row summary to be matched returned by the target client according to the hierarchical order of data rows, data clusters and data tables. The cluster summary and the summary of the table to be matched are processed correspondingly to obtain the matching result.
需要说明的是,结合前述实施例可知,若涉及人脸识别场景,则人员信息数据中包括人脸图像数据;对人员信息数据进行分层聚合处理能得到每行身份数据对应的人脸图像的人脸摘要,而人脸摘要和行摘要互相匹配,属于相同数据层级;且客户端对人员信息数据进行分层聚合处理后自然也能相应地得到待匹配人脸摘要;因此,在对行摘要和待匹配行摘要进行匹配时,也能相应地进行人脸摘要和待匹配人脸摘要的匹配;在确定同一身份数据的行摘要和待匹配行摘要一致以及该身份数据对应的同一人脸图像的人脸摘要和待匹配人脸摘要一致后,才表征该数据行的人员信息数据一致。It should be noted that, combined with the foregoing embodiments, it can be seen that if a face recognition scenario is involved, the person information data includes face image data; performing hierarchical aggregation processing on the person information data can obtain the face image corresponding to each row of identity data. Face summary, and the face summary and row summary match each other and belong to the same data level; and the client can naturally obtain the face summary to be matched after hierarchical aggregation of the person information data; therefore, in the row summary When matching with the row summary to be matched, the face summary and the face summary to be matched can also be matched accordingly; when it is determined that the row summary of the same identity data is consistent with the row summary to be matched and the same face image corresponding to the identity data Only after the face summary of the face summary is consistent with the face summary to be matched, the person information data representing the data row will be consistent.
步骤S140,若匹配结果中存在目标数据摘要与目标客户端返回的待匹配数据摘要不一致,则将目标数据摘要所在数据层级对应的人员信息数据发送至目标客户端进行数据同步。Step S140: If the target data summary in the matching result is inconsistent with the data summary to be matched returned by the target client, the personnel information data corresponding to the data level where the target data summary is located is sent to the target client for data synchronization.
具体地,若服务端计算出的某一目标数据摘要和目标客户端对应返回的某一待匹配数据摘要不一致,则表征该数据摘要对应的人员信息数据不一致;因此,将目标数据摘要所在数据层级对应的人员信息数据发送至目标客户端,使目标客户端将接收到的目标数据摘要所在数据层级对应的人员信息数据更新至目标客户端中对应的数据存储位置,实现数据同步。Specifically, if a certain target data summary calculated by the server is inconsistent with a certain to-be-matched data summary returned by the target client, it means that the personnel information data corresponding to the data summary is inconsistent; therefore, the data level where the target data summary is located is The corresponding personnel information data is sent to the target client, so that the target client updates the personnel information data corresponding to the data level where the received target data summary is located to the corresponding data storage location in the target client to achieve data synchronization.
可以看出,本申请方案中服务端将获取到的人员信息数据进行分层聚合,得到多个数据层级的数据摘要,实现对人员信息数据的精简;服务端将人员信息数据发送至客户端,得到客户端将人员信息数据分层聚合后返回的待匹配数据摘要;服务端根据数据层级的层级顺序将服务端的各级数据摘要和客户端返回的各级待匹配数据摘要依次进行匹配,实现对服务端、客户端之间数据的一致性校验;服务端发送目标数据摘要至客户端,使客户端基于目标数据摘要将与服务端不匹配的数据摘要进行数据同步处理,由此能够实现服务端和客户端之间的数据同步,确保数据同步的一致性并提高了数据同步的效率。It can be seen that in this application solution, the server performs hierarchical aggregation of the acquired personnel information data to obtain data summaries at multiple data levels, thereby simplifying the personnel information data; the server sends the personnel information data to the client, Obtain the data summary to be matched returned by the client after hierarchically aggregating the personnel information data; the server matches the data summaries at all levels of the server with the data summaries to be matched at all levels returned by the client in sequence according to the hierarchical order of the data hierarchy to achieve matching. Data consistency verification between the server and the client; the server sends the target data summary to the client, so that the client can synchronize the data summary that does not match the server based on the target data summary, thus enabling the service to be realized Data synchronization between the client and the client ensures the consistency of data synchronization and improves the efficiency of data synchronization.
在上述实施例的基础上,本申请实施例对将获取到的人员信息数据进行分层聚合处理,得到多个数据层级的数据摘要的步骤进行说明,人员信息数据包括身份数据表和与身份数据表中的身份数据匹配的人脸图像。具体而言,本实施例方法包括以下步骤:On the basis of the above embodiments, the embodiments of this application describe the steps of performing hierarchical aggregation processing on the acquired personnel information data to obtain data summaries of multiple data levels. The personnel information data includes identity data tables and identity data. Face images that match the identity data in the table. Specifically, the method of this embodiment includes the following steps:
将身份数据表中的身份数据进行聚合,得到至少一簇数据簇,数据簇中包括至少一行身份数据;分别对数据簇中每一行身份数据和每一行身份数据对应的人脸图像进行数据摘要处理,得到至少一行行摘要和行摘要对应的图像摘要;基于数据簇中的行摘要和图像摘要确定数据簇的簇摘要,以及基于各数据簇的簇摘要确定身份数据表的表摘要。Aggregate the identity data in the identity data table to obtain at least one data cluster, which includes at least one row of identity data; perform data summary processing on each row of identity data in the data cluster and the face image corresponding to each row of identity data. , obtain at least one row summary and an image summary corresponding to the row summary; determine the cluster summary of the data cluster based on the row summary and image summary in the data cluster, and determine the table summary of the identity data table based on the cluster summary of each data cluster.
可以理解的是,在人脸识别的相关场景中(如考勤打卡、人脸解锁等),若要对人员信息数据进行验证,则会涉及到身份数据的匹配和人脸图像的匹配。It is understandable that in face recognition-related scenarios (such as attendance check-in, face unlocking, etc.), verification of personnel information data will involve matching of identity data and face image matching.
结合前述实施例进行说明,以预设的分组阈值将身份数据进行分组,将分组后的每组身份数据聚合成一簇数据簇,数据簇中应当至少包括一行身份数据;对每簇数据簇中的每行身份数据和每行身份数据对应的人脸图像分别进行数据摘要处理,得到每行身份数据对应的行摘要和人脸图像对应的图像摘要,其中,行摘要和图像摘要基于身份数据和人脸图像的对应关系而相互匹配;将每簇数据簇中的行摘要和图像摘要进行预设的摘要拼接计算,得到每簇数据簇的簇摘要,其中摘要拼接计算可以是将数据簇中的每个行摘要和图像摘要的字符串进行拼接;也可以是对每个行摘要和行摘要对应的图像摘要先进行拼接,得到初始拼接摘要,对初始拼接摘要进行数据摘要处理,得到中间摘要,再将数据簇中的所有中间摘要进行拼接,得到该数据簇的簇摘要;对于摘要拼接计算的具体方法,此处不做限定,可参考本领域通用的摘要拼接计算方法;同理,将身份数据表对应的所有数据簇的簇摘要进行摘要拼接,得到该数据表的表摘要。Described in conjunction with the foregoing embodiments, the identity data is grouped with a preset grouping threshold, and each grouped identity data is aggregated into a data cluster. The data cluster should include at least one row of identity data; for each data cluster, Each row of identity data and the face image corresponding to each row of identity data are processed separately to obtain a row summary corresponding to each row of identity data and an image summary corresponding to the face image. The row summary and image summary are based on the identity data and the face image. Match each other based on the corresponding relationship between the face images; perform a preset summary splicing calculation on the row summary and image summary in each data cluster to obtain the cluster summary of each data cluster, where the summary splicing calculation can be to combine each data cluster in the data cluster. The strings of row summaries and image summaries are spliced; it is also possible to splice the image summaries corresponding to each row summary and row summary first to obtain the initial splicing summary, perform data summarization processing on the initial splicing summary, and obtain the intermediate summary, and then All intermediate summaries in the data cluster are spliced to obtain the cluster summary of the data cluster. There are no limitations here on the specific summary splicing calculation method. You can refer to the general summary splicing calculation method in this field. In the same way, the identity data is The cluster summaries of all data clusters corresponding to the table are summarily spliced to obtain the table summary of the data table.
可以看出,本实施例通过将身份数据表中的身份数据进行聚合,使一定数量的身份数据形成数据簇,而将所有数据簇中的身份数据正好和身份数据表中的身份数据对应,因此形成了行、簇、表多个数据层级以便于对人员信息数据进行管理和调用;通过确定每个层级中的数据的摘要。It can be seen that in this embodiment, a certain amount of identity data forms data clusters by aggregating the identity data in the identity data table, and the identity data in all data clusters exactly correspond to the identity data in the identity data table. Therefore, Multiple data levels of rows, clusters, and tables are formed to facilitate the management and call of personnel information data; by determining the summary of the data in each level.
在上述实施例的基础上,本实施例对以数据行、数据簇和数据表的层级顺序依次将数据行对应的行摘要、数据簇对应的簇摘要和数据表对应的表摘要与目标客户端返回的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要或待匹配表摘要进行匹配处理,得到匹配结果的步骤进行说明。具体而言,本实施例的步骤包括:Based on the above embodiment, this embodiment sequentially compares the row summary corresponding to the data row, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table with the target client in the hierarchical order of data rows, data clusters, and data tables. The corresponding row summary to be matched, cluster summary to be matched, or table summary to be matched in the returned data summary to be matched is matched, and the steps to obtain the matching result are described below. Specifically, the steps of this embodiment include:
若接收到目标客户端返回的待匹配行摘要,则判断行摘要和待匹配行摘要是否匹配,得到匹配结果;若接收到目标客户端返回的待匹配簇摘要,则判断簇摘要和待匹配簇摘要是否匹配,得到匹配结果;若接收到目标客户端返回的待匹配表摘要,则判断表摘要和待匹配表摘要是否匹配,得到匹配结果。If the summary of the row to be matched is received from the target client, it is determined whether the row summary and the summary of the row to be matched match, and the matching result is obtained; if the summary of the cluster to be matched is received from the target client, the cluster summary and the cluster to be matched are determined. Whether the summary matches, the matching result is obtained; if the summary of the table to be matched returned by the target client is received, it is judged whether the table summary and the summary of the table to be matched match, and the matching result is obtained.
需要说明的是,目标客户端返回待匹配数据摘要的过程是基于数据层级依次返回的,因此服务端将数据摘要和待匹配数据摘要进行匹配也是依次进行的,例如,若目标客户端每当接收到服务端发送的一行完整的身份数据和身份数据对应的人脸图像,则目标客户端计算该身份数据的待匹配行摘要和该人脸图像的待匹配图像摘要,再将该身份数据对应的待匹配行摘要和待匹配图像摘要返回至服务端进行摘要匹配;若目标客户端接收到一个数据簇中所有行完整的身份数据和身份数据对应的人脸图像,则基于该数据簇中所有身份数据和对应的人脸图像计算该数据簇的待匹配簇摘要,再将数据簇的待匹配簇摘要返回至服务端进行摘要匹配;若目标客户端接收到身份数据表中的所有身份数据和对应的人脸图像,则在计算出所有身份数据对应的数据簇的待匹配簇摘要后,基于所有数据簇的待匹配簇摘要,确定目标客户端接收到的身份数据表的待匹配表摘要,再将身份数据表的待匹配表摘要返回至服务端进行摘要匹配;即摘要匹配过程是目标客户端根据接收到的数据的数据层级的层级顺序依次递进进行的。It should be noted that the process of the target client returning the summary of the data to be matched is based on the data level. Therefore, the server will also perform the matching of the data summary and the summary of the data to be matched in sequence. For example, if the target client receives When a complete row of identity data and the face image corresponding to the identity data are sent to the server, the target client calculates the row summary of the identity data to be matched and the image summary of the face image to be matched, and then adds the identity data corresponding to the The summary of the row to be matched and the summary of the image to be matched are returned to the server for summary matching; if the target client receives complete identity data of all rows in a data cluster and the face image corresponding to the identity data, based on all identities in the data cluster The data and the corresponding face image calculate the summary of the cluster to be matched for the data cluster, and then return the summary of the cluster to be matched to the server for summary matching; if the target client receives all the identity data in the identity data table and the corresponding face image, after calculating the cluster summaries to be matched of the data clusters corresponding to all identity data, based on the cluster summaries of all data clusters to be matched, determine the table summary to be matched of the identity data table received by the target client, and then Return the table summary of the identity data table to be matched to the server for summary matching; that is, the summary matching process is performed by the target client in sequence according to the hierarchical order of the data level of the received data.
由此可知,根据数据层级顺序依次处理客户端返回的待匹配数据摘要,能够快速确认客户端计算出的待匹配数据摘要和服务端的数据摘要是否一致,且对不同数据层级的数据摘要分别进行匹配,使摘要匹配过程更为严谨,提高了数据一致性校验的准确性。It can be seen from this that by sequentially processing the data summaries to be matched returned by the client according to the order of the data levels, it can quickly confirm whether the data summaries to be matched calculated by the client and the data summaries of the server are consistent, and the data summaries of different data levels can be matched separately. , making the summary matching process more rigorous and improving the accuracy of data consistency verification.
在上述实施例的基础上,本实施例对分别对数据簇中每一行身份数据和每一行身份数据对应的人脸图像进行数据摘要处理的步骤进行说明。具体而言,本实施例的步骤包括:Based on the above embodiment, this embodiment explains the steps of performing data summary processing on each row of identity data in the data cluster and the face image corresponding to each row of identity data. Specifically, the steps of this embodiment include:
获取每一行身份数据对应的随机字符串;基于随机字符串将对应的身份数据进行数据摘要处理,得到每一行身份数据对应的行摘要;基于随机字符串将对应的人脸图像进行数据摘要处理,得到人脸图像对应的图像摘要。Obtain the random string corresponding to each row of identity data; perform data summary processing on the corresponding identity data based on the random string, and obtain the row summary corresponding to each row of identity data; perform data summary processing on the corresponding face image based on the random string, Get the image summary corresponding to the face image.
随机字符串指的是随机生成的字符串,可以用于对身份数据、人脸图像、数据簇、身份数据表进行数据摘要处理,使这些数据变得精简并提升其私密性,其中,随机字符串可以有一个或多个,具体地根据随机字符串对数据进行数据摘要处理的方法可参考本领域中常见的摘要算法,在此不再赘述。Random strings refer to randomly generated strings, which can be used for data summary processing of identity data, face images, data clusters, and identity data tables to streamline these data and improve their privacy. Among them, random characters There may be one or more strings. For specific methods of performing data summary processing on data based on random strings, please refer to common summary algorithms in the field, which will not be described in detail here.
需要说明的是,服务端基于各行身份数据对应生成的随机字符串也会相应地发送至目标客户端,以使目标客户端能使用和服务端相同的随机字符串对目标客户端接收到得人员信息数据进行数据摘要处理,由此保证服务端和目标客户端在数据处理过程中的一致性。It should be noted that the random string generated by the server based on each row of identity data will also be sent to the target client accordingly, so that the target client can use the same random string as the server to identify the person received by the target client. The information data undergoes data summary processing to ensure consistency between the server and the target client in the data processing process.
优选地,为了保证数据的私密性和安全性,对不同的身份数据进行数据摘要处理时可以使用不同的随机字符串;例如,根据身份数据表中每行身份数据生成随机字符串,通过随机字符串将随机字符串对应的身份数据进行数据摘要处理,得到身份数据对应的行摘要;因为身份数据和人脸图像对应,因此通过随机字符串将对应的人脸图像进行摘要处理,得到人脸图像的图像摘要。Preferably, in order to ensure the privacy and security of the data, different random strings can be used when performing data digest processing on different identity data; for example, a random string is generated according to each row of identity data in the identity data table, and the random character string is used. The identity data corresponding to the random string is subjected to data summary processing to obtain the row summary corresponding to the identity data; because the identity data corresponds to the face image, the corresponding face image is summarized through the random string to obtain the face image. Image summary.
在上述实施例的基础上,如图3所示,图3是本申请中随机的数据确认的流程示意图,本申请的基于身份识别的数据同步方法还包括:Based on the above embodiments, as shown in Figure 3, which is a schematic flow chart of random data confirmation in this application, the data synchronization method based on identity recognition in this application also includes:
步骤S310,若检测到当前运行状态和/或目标客户端的运行状态为空闲状态,则向目标客户端发送随机摘要确认请求,使目标客户端响应于接收到的随机摘要确认请求,返回目标客户端中和随机摘要确认请求对应的待匹配数据摘要。Step S310: If it is detected that the current running status and/or the running status of the target client is idle, a random summary confirmation request is sent to the target client, so that the target client responds to the received random summary confirmation request and returns to the target client. Neutralize the data digest to be matched corresponding to the random digest confirmation request.
随机摘要确认请求指的是服务端随机选取一个或多个人员信息数据,并向目标客户端发送用于确认这些人员信息数据的数据摘要是否一致的请求,进而确定服务端中这些人员信息数据和目标客户端中这些人员信息数据是否一致。The random summary confirmation request refers to the server randomly selecting one or more personnel information data, and sending a request to the target client to confirm whether the data digests of these personnel information data are consistent, and then determine whether the data summaries of these personnel information data in the server are consistent. Are the personnel information data in the target client consistent?
需要说明的是,在服务端全面确认服务端的人员信息数据和目标客户端中人员信息数据的一致性后,服务端还能对目标客户端发起随机的数据确认,以保证后续的数据一致性。It should be noted that after the server fully confirms the consistency of the server's personnel information data and the target client's personnel information data, the server can also initiate random data confirmation on the target client to ensure subsequent data consistency.
具体地,随机的数据确认过程可以在服务端空闲时和/或目标客户端空闲时进行,以避免影响到服务端和客户端的正常运行;若服务端检测到当前运行状态和/或目标客户端的运行状态为空闲状态,则向目标客户端发送随机摘要确认请求,使目标客户端从目标客户端存储的人员信息数据中随机选取的一行或多行身份数据,得到随机确认身份数据,返回这些随机确认身份数据对应的待匹配行摘要、待匹配图像摘要、待匹配簇摘要以及待匹配表摘要中的一种或多种数据摘要至服务端进行摘要匹配,实现数据一致性的确认。Specifically, the random data confirmation process can be performed when the server is idle and/or when the target client is idle, so as to avoid affecting the normal operation of the server and the client; if the server detects the current operating status and/or the target client's If the running status is idle, a random summary confirmation request is sent to the target client, so that the target client randomly selects one or more rows of identity data from the personnel information data stored in the target client, obtains random confirmation identity data, and returns these random identity data. Confirm that one or more data summaries in the row summary to be matched, the image summary to be matched, the cluster summary to be matched, and the table summary to be matched corresponding to the identity data are sent to the server for summary matching to confirm data consistency.
步骤S320,以数据行、数据簇和数据表的层级顺序依次将数据行对应的行摘要、数据簇对应的簇摘要和数据表对应的表摘要与接收到的目标客户端返回的待匹配数据摘要进行匹配处理,得到随机匹配结果。Step S320, sequentially combine the row summary corresponding to the data row, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table with the to-be-matched data summary returned by the target client received in the hierarchical order of data rows, data clusters, and data tables. Perform matching processing to obtain random matching results.
可以理解的是,在随机的数据确认过程中仍可参考和前述实施例相同的数据摘要处理方法和数据摘要匹配方法,在此不再赘述。It can be understood that during the random data confirmation process, the same data summary processing method and data summary matching method as in the previous embodiment can still be referred to, and details will not be described again here.
可选地,服务端向目标客户端发送随机摘要确认请求的过程还可以是:在服务端的人员信息数据中进行随机选取,得到随机人员信息数据,并基于随机人员信息数据生成用于随机摘要确认过程的新的随机字符串,基于新的随机字符串重新计算随机人员信息数据对应的数据行摘要、图像摘要、随机人员信息数据所在数据簇的簇摘要以及随机人员信息数据所在数据表的表摘要;将新的随机字符串和随机人员信息数据的人员序号下发值目标客户端,以使目标客户端根据接收到的人员序号查找目标客户端中的人员信息数据,同理基于接收到的新的随机字符串重新对查找到的人员信息数据进行计算,得到查找到的人员信息数据对应的待匹配数据行摘要、待匹配图像摘要、查找到的人员信息数据所在数据簇的待匹配簇摘要以及查找到的人员信息数据所在数据表的待匹配表摘要,将其依次返回至服务端,服务端再将随机人员信息数据对应的数据行摘要和待匹配数据行摘要匹配,将随机人员信息数据对应的图像摘要和待匹配图像摘要匹配,将随机人员信息数据所在数据簇的簇摘要和待匹配簇摘要匹配以及随机人员信息数据所在数据表的表摘要和待匹配表摘要匹配,实现服务端对目标客户端的随机摘要确认,进一步确保了服务端和目标客户端之间的数据一致性。Optionally, the process of the server sending a random summary confirmation request to the target client can also be: randomly selecting from the personnel information data on the server, obtaining random personnel information data, and generating random summary confirmation based on the random personnel information data. The new random string of the process, based on the new random string, recalculates the data row summary, image summary, cluster summary of the data cluster where the random personnel information data is located, and the table summary of the data table where the random personnel information data is located based on the new random string. ; Send the new random string and the personnel serial number of the random personnel information data to the target client, so that the target client can search for the personnel information data in the target client based on the received personnel serial number, and similarly based on the received new personnel serial number The random string of the found personnel information data is recalculated to obtain the summary of the data row to be matched corresponding to the found personnel information data, the summary of the image to be matched, the summary of the cluster to be matched in the data cluster where the found personnel information data is located, and The summary of the to-be-matched table of the data table where the found personnel information data is located is returned to the server in turn. The server then matches the summary of the data rows corresponding to the random personnel information data and the summary of the data rows to be matched, and matches the summary of the random personnel information data to the corresponding rows of the data to be matched. Match the image summary with the image summary to be matched, match the cluster summary of the data cluster where the random person information data is located with the cluster summary to be matched, and match the table summary of the data table where the random person information data is with the table summary to be matched, to achieve the server-side target Random digest acknowledgment by the client further ensures data consistency between the server and the target client.
步骤S330,基于随机匹配结果对目标客户端进行数据同步。Step S330: Perform data synchronization on the target client based on the random matching results.
具体地,若随机匹配结果中存在目标数据摘要与目标客户端返回的待匹配数据摘要不一致,则将目标数据摘要所在数据层级对应的人员信息数据发送至目标客户端进行数据同步。Specifically, if the target data summary in the random matching result is inconsistent with the data summary to be matched returned by the target client, the personnel information data corresponding to the data level where the target data summary is located is sent to the target client for data synchronization.
由此可见,通过本实施例中随机数据确认的方式,在不影响服务端和客户端正常运行的情况下,确保了对服务端和客户端之间数据一致性。It can be seen that through the method of random data confirmation in this embodiment, data consistency between the server and the client is ensured without affecting the normal operation of the server and the client.
在上述实施例的基础上,本申请的实施例还包括:Based on the above embodiments, embodiments of the present application also include:
若服务端接收到了人员信息数据的更新指令,其中,更新指令包括但不限于数据增加、数据删除以及数据修改等操作指令;则服务端会将更新指令对应的人员信息数据以及该人员信息数据对应的随机字符串共同发送至目标客户端;同理,目标客户端也会对更新指令对应的人员信息数据进行数据摘要处理,并向服务端返回相应的待匹配摘要;服务端再基于这些待匹配摘要和更新指令对应的人员信息数据的数据摘要进行匹配,完成数据的一致性确认。If the server receives an update instruction for personnel information data, where the update instruction includes but is not limited to data addition, data deletion, data modification and other operation instructions; the server will update the personnel information data corresponding to the instruction and the corresponding personnel information data. random strings are jointly sent to the target client; similarly, the target client will also perform data summary processing on the personnel information data corresponding to the update instruction, and return the corresponding summary to be matched to the server; the server will then based on these to be matched The summary is matched with the data summary of the personnel information data corresponding to the update instruction to complete the data consistency confirmation.
在一个实施例中,如图4所示,图4是本申请基于身份识别的数据同步方法应用于目标客户端的一示例性实施例的流程示意图,本申请的基于身份识别的数据同步方法应用于目标客户端时,具体步骤包括:In one embodiment, as shown in Figure 4, Figure 4 is a schematic flow chart of an exemplary embodiment in which the data synchronization method based on identity recognition of the present application is applied to a target client. The data synchronization method based on identity recognition of the present application is applied to When targeting clients, specific steps include:
步骤S410,基于接收到的服务端发送的人员信息数据,将人员信息数据进行分层聚合,得到多个数据层级的待匹配数据摘要,数据层级包括数据行、数据簇和数据表,数据表包括至少一个数据簇,数据簇包括至少一个数据行,待匹配数据摘要包括数据行对应的待匹配行摘要、数据簇对应的待匹配簇摘要和数据表对应的待匹配表摘要。Step S410: Based on the received personnel information data sent by the server, perform hierarchical aggregation of the personnel information data to obtain multiple data levels of to-be-matched data summaries. The data levels include data rows, data clusters and data tables. The data tables include At least one data cluster, the data cluster includes at least one data row, and the data summary to be matched includes a row summary to be matched corresponding to the data row, a cluster summary to be matched corresponding to the data cluster, and a table summary to be matched corresponding to the data table.
人员信息数据指的是用于身份识别的数据,包括人员的身份数据表和人员的人脸图像,其中身份数据表中的身份数据和人脸图像匹配,需要说明的是,在身份识别场景中,身份数据表中的每行身份数据通常具有唯一标识。Personnel information data refers to data used for identity recognition, including the person's identity data table and the person's face image. The identity data in the identity data table matches the face image. It should be noted that in the identity recognition scenario , each row of identity data in the identity data table usually has a unique identifier.
分层聚合指的是将人员信息数据进行分组或分类,将分组或分类后的人员信息数据分别进行聚合处理,以形成多个层级关系的数据,其中,聚合处理包括数据摘要处理,数据摘要处理指的是将任意长度的消息变成固定长度的短消息(摘要),例如Hash函数、MD5、SHA1以及Base64编码等,不仅可以对人员信息数据进行加密,还能使人员信息数据变得精简。Hierarchical aggregation refers to grouping or classifying personnel information data, and aggregating the grouped or classified personnel information data separately to form data with multiple hierarchical relationships. The aggregation processing includes data summary processing. It refers to turning messages of any length into short messages (digests) of fixed length, such as Hash function, MD5, SHA1 and Base64 encoding, etc., which can not only encrypt personnel information data, but also simplify personnel information data.
具体地,可参考对步骤S110的说明和图2所示的分层聚合处理的效果示意图,目标客户端同理基于接收到的人员信息数据进行分层聚合处理,得到多个数据层级的待匹配数据摘要;此外,目标客户端还会接收到服务端发送的随机字符串用于对人员信息数据进行数据摘要处理。Specifically, reference can be made to the description of step S110 and the schematic diagram of the effect of hierarchical aggregation processing shown in Figure 2. Similarly, the target client performs hierarchical aggregation processing based on the received personnel information data to obtain multiple data levels to be matched. Data summary; in addition, the target client will also receive a random string sent by the server to perform data summary processing on the personnel information data.
需要说明的是,目标客户端对人员信息数据进行分层聚合处理的方式以及数据摘要处理的方式和服务端对人员信息数据进行分层聚合处理的方式以及数据摘要处理的方式相同,其中,目标客户端的处理方式可以是在目标客户端预先设置好的、可以是服务端发送给目标客户端的,还可以是目标客户端从其它预设的数据库或服务器中获取得到的,在此不做限定。It should be noted that the target client performs hierarchical aggregation processing of personnel information data and the data summary processing method is the same as the server side performs hierarchical aggregation processing and data summary processing of personnel information data. Among them, the target client The client's processing method may be preset on the target client, may be sent by the server to the target client, or may be obtained by the target client from other preset databases or servers, which is not limited here.
步骤S420,将待匹配数据摘要中的待匹配行摘要、待匹配簇摘要或待匹配表摘要发送至服务端,服务端以数据行、数据簇和数据表的层级顺序依次将服务端中数据行对应的行摘要、数据簇对应的簇摘要和数据表对应的表摘要与服务端接收到的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要和待匹配表摘要进行匹配处理,得到匹配结果。Step S420: Send the to-be-matched row summary, the to-be-matched cluster summary, or the to-be-matched table summary in the to-be-matched data summary to the server. The server will sequentially send the data rows in the server in the hierarchical order of data rows, data clusters, and data tables. The corresponding row summary, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table are matched with the corresponding row summary to be matched, the cluster summary to be matched, and the table summary to be matched in the data summary to be matched received by the server, and we get Matching results.
可以理解的是,因为目标客户端和服务端关于人员信息数据的分层聚合处理方式相同,所以目标客户端返回的待匹配数据摘要自然包括待匹配行摘要、待匹配簇摘要和待匹配表摘要。It is understandable that because the hierarchical aggregation of personnel information data is processed in the same way between the target client and the server, the summary of the data to be matched returned by the target client naturally includes the summary of the row to be matched, the summary of the cluster to be matched, and the summary of the table to be matched. .
示例性地,可继续参阅图2所示的数据层级,按照数据行、数据簇和数据表的层级顺序依次将待匹配行摘要、待匹配簇摘要和待匹配表摘返回至服务端,使服务端对待匹配行摘要、待匹配簇摘要和待匹配表摘要进行对应地摘要匹配处理,得到匹配结果。For example, you can continue to refer to the data hierarchy shown in Figure 2, and return the summary of the row to be matched, the summary of the cluster to be matched, and the summary of the table to be matched to the server in sequence according to the hierarchical order of data rows, data clusters, and data tables, so that the service The client performs corresponding summary matching processing on the row summary to be matched, the cluster summary to be matched, and the table summary to be matched, to obtain a matching result.
需要说明的是,结合前述实施例可知,若涉及人脸识别场景,则人员信息数据中包括人脸图像数据;对人员信息数据进行分层聚合处理能得到每行身份数据对应的人脸图像的待匹配人脸摘要,而待匹配人脸摘要和待匹配行摘要互相匹配,属于相同数据层级;因此,在客户端返回待匹配数据摘要过程中,还可以将待匹配行摘要以及待匹配行摘要对应的待匹配人脸摘要同步进行返回,使服务端对行摘要和待匹配行摘要进行匹配时,也能相应地进行人脸摘要和待匹配人脸摘要的匹配;在服务端确定同一身份数据的行摘要和待匹配行摘要一致以及该身份数据对应的同一人脸图像的人脸摘要和待匹配人脸摘要一致后,才表征该数据行的人员信息数据一致。It should be noted that, combined with the foregoing embodiments, it can be seen that if a face recognition scenario is involved, the person information data includes face image data; performing hierarchical aggregation processing on the person information data can obtain the face image corresponding to each row of identity data. The face summary to be matched, and the face summary to be matched and the row summary to be matched match each other and belong to the same data level; therefore, when the client returns the data summary to be matched, the row summary to be matched and the row summary to be matched can also be The corresponding face summary to be matched is returned synchronously, so that when the server matches the row summary and the row summary to be matched, it can also match the face summary and the face summary to be matched accordingly; the same identity data is determined on the server Only when the row summary and the row summary to be matched are consistent and the face summary of the same face image corresponding to the identity data is consistent with the face summary to be matched can the person information data representing the data row be consistent.
步骤S430,若接收到服务端发送的匹配结果中存在目标数据摘要与服务端接收到的待匹配数据摘要不一致,则基于接收到的服务端发送的目标数据摘要所在数据层级对应的人员信息数据进行数据同步。Step S430, if there is a target data summary in the matching result received from the server that is inconsistent with the data summary to be matched received by the server, then the process is performed based on the personnel information data corresponding to the data level at which the target data summary sent by the server is located. data synchronization.
具体地,若服务端计算出的某一目标数据摘要和目标客户端对应返回的某一待匹配数据摘要不一致,则表征该数据摘要对应的人员信息数据不一致;因此,目标客户端会接收到服务端发送的目标数据摘要所在数据层级对应的人员信息数据;进一步地,目标客户端则可将接收到的目标数据摘要所在数据层级对应的人员信息数据更新至对应的数据存储位置,实现数据同步。Specifically, if a certain target data summary calculated by the server is inconsistent with a certain to-be-matched data summary returned by the target client, it means that the personnel information data corresponding to the data summary is inconsistent; therefore, the target client will receive the service The target client can update the personnel information data corresponding to the data level of the target data summary sent by the client to the corresponding data storage location to achieve data synchronization.
需要说明的是,服务端和目标客户端对人员信息数据的分层聚合处理过程、数据摘要处理过程、摘要匹配过程以及数据同步过程存在较多的相同实施办法,因此,将基于身份识别的数据同步方法应用于目标客户端的实施过程的具体说明,可相应地参考前述将基于身份识别的数据同步方法应用于服务端的具体说明。It should be noted that there are many identical implementation methods for the hierarchical aggregation processing process, data summary processing process, summary matching process and data synchronization process of personnel information data on the server side and the target client. Therefore, the data based on identity recognition will be For specific descriptions of the implementation process of applying the synchronization method to the target client, please refer to the aforementioned specific descriptions of applying the identity recognition-based data synchronization method to the server.
由上可知,本申请中目标客户端将获取到的人员信息数据进行分层聚合,得到多个数据层级的数据摘要,实现对人员信息数据的精简;目标客户端将人员信息数据分层聚合后的待匹配数据摘要返回至服务端,使服务端根据数据层级的层级顺序将服务端的各级数据摘要和目标客户端返回的各级待匹配数据摘要依次进行匹配,实现对服务端、目标客户端之间数据的一致性校验;目标客户端基于接收到的服务端发送的目标数据摘要将与服务端不匹配的数据摘要进行数据同步处理,由此能够实现服务端和客户端之间的数据同步,提高了数据同步的效率。It can be seen from the above that in this application, the target client performs hierarchical aggregation of the acquired personnel information data to obtain data summaries at multiple data levels, thereby simplifying the personnel information data; after the target client hierarchically aggregates the personnel information data The summary of the data to be matched is returned to the server, so that the server can sequentially match the data summaries of all levels on the server with the data summaries of all levels to be matched returned by the target client according to the hierarchical order of the data hierarchy, so as to realize the matching between the server and the target client. Consistency check of data between them; the target client synchronizes the data summary that does not match the server based on the received target data summary sent by the server, thus enabling data between the server and the client Synchronization improves the efficiency of data synchronization.
在上述实施例的基础上,本实施例对基于接收到的服务端发送的人员信息数据,将人员信息数据进行分层聚合,得到多个数据层级的待匹配数据摘要的步骤进行说明,人员信息包括身份数据表和与身份数据表中的身份数据匹配的人脸图像。具体而言,本实施例的步骤包括:On the basis of the above embodiment, this embodiment explains the steps of hierarchically aggregating the personnel information data based on the received personnel information data sent by the server to obtain multiple data levels of to-be-matched data summaries. The personnel information Includes an identity data table and a face image that matches the identity data in the identity data table. Specifically, the steps of this embodiment include:
将身份数据表中的身份数据进行聚合,得到至少一簇数据簇,数据簇中包括至少一行身份数据,身份数据和人脸图像对应;分别对数据簇中每一行身份数据和每一行身份数据对应的人脸图像进行数据摘要处理,得到至少一行待匹配行摘要和待匹配行摘要对应的待匹配图像摘要;基于数据簇中的待匹配行摘要和待匹配图像摘要确定数据簇的待匹配簇摘要,以及基于各数据簇的待匹配簇摘要确定身份数据表的待匹配表摘要。Aggregate the identity data in the identity data table to obtain at least one data cluster. The data cluster includes at least one row of identity data, and the identity data corresponds to the face image; each row of identity data and each row of identity data in the data cluster correspond to Perform data summary processing on the face image to obtain at least one row summary to be matched and an image summary to be matched corresponding to the row summary to be matched; determine the cluster summary to be matched in the data cluster based on the row summary to be matched and the image summary to be matched in the data cluster , and determine the to-be-matched table summary of the identity data table based on the to-be-matched cluster summary of each data cluster.
结合前述实施例进行说明,以预设的分组阈值将身份数据进行分组,将分组后的每组身份数据聚合成一簇数据簇,数据簇中应当至少包括一行身份数据;对每簇数据簇中的每行身份数据和每行身份数据对应的人脸图像分别进行数据摘要处理,得到每行身份数据对应的待匹配行摘要和人脸图像对应的待匹配图像摘要,其中,待匹配行摘要和待匹配图像摘要基于身份数据和人脸图像的对应关系而相互匹配;将每簇数据簇中的待匹配行摘要和待匹配图像摘要进行预设的摘要拼接计算,得到每簇数据簇的待匹配簇摘要,其中摘要拼接计算可以是将数据簇中的每个待匹配行摘要和待匹配图像摘要的字符串进行拼接;也可以是对每个待匹配行摘要和待匹配行摘要对应的待匹配图像摘要先进行拼接,得到待匹配初始拼接摘要,对待匹配初始拼接摘要进行数据摘要处理,得到待匹配中间摘要,再将数据簇中的所有待匹配中间摘要进行拼接,得到该数据簇的待匹配簇摘要;对于摘要拼接计算的具体方法,此处不做限定,可参考本领域通用的摘要拼接计算方法;同理,将身份数据表对应的所有数据簇的待匹配簇摘要进行摘要拼接,得到该数据表的待匹配表摘要。Described in conjunction with the foregoing embodiments, the identity data is grouped with a preset grouping threshold, and each grouped identity data is aggregated into a data cluster. The data cluster should include at least one row of identity data; for each data cluster, Each row of identity data and the face image corresponding to each row of identity data are processed separately, and the summary of the row to be matched corresponding to each row of identity data and the summary of the image to be matched corresponding to the face image are obtained, where the summary of the row to be matched and the summary of the row to be matched are obtained. The matching image summaries match each other based on the correspondence between the identity data and the face image; the row summaries to be matched and the image summaries to be matched in each data cluster are subjected to preset summary splicing calculations to obtain the clusters to be matched for each data cluster. Summary, where the summary splicing calculation can be to splice the strings of each row summary to be matched and the image summary to be matched in the data cluster; it can also be to match the summary of each row to be matched and the image to be matched corresponding to the row summary to be matched. The abstracts are first spliced to obtain the initial splicing summary to be matched. The initial splicing summary to be matched is subjected to data summary processing to obtain the intermediate summary to be matched. Then all the intermediate summaries to be matched in the data cluster are spliced to obtain the cluster to be matched for the data cluster. Abstract; For the specific method of summary splicing calculation, there is no limitation here. You can refer to the summary splicing calculation method commonly used in this field. In the same way, the summary of the clusters to be matched of all data clusters corresponding to the identity data table is summarized and spliced to obtain the Summary of the data table to be matched.
在上述实施例的基础上,本实施例对将待匹配数据摘要中的待匹配行摘要、待匹配簇摘要和待匹配表摘要发送至服务端的步骤进行说明。具体而言,本实施例的步骤包括:Based on the above embodiment, this embodiment describes the steps of sending the summary of the row to be matched, the summary of the cluster to be matched, and the summary of the table to be matched in the summary of the data to be matched to the server. Specifically, the steps of this embodiment include:
若接收到服务端发送的身份数据表中的一行身份数据,则将一行身份数据的待匹配行摘要发送至服务端进行匹配;若接收到一簇数据簇中所有行的身份数据,则将一簇数据簇的待匹配簇摘要发送至服务端进行匹配;若接收到身份数据表中所有簇的身份数据,则将身份数据表的待匹配表摘要发送至服务端进行匹配。If a row of identity data in the identity data table sent by the server is received, the summary of the row to be matched for the row of identity data is sent to the server for matching; if the identity data of all rows in a data cluster is received, a row summary of the identity data is sent to the server for matching. The summary of the cluster to be matched is sent to the server for matching; if the identity data of all clusters in the identity data table is received, the summary of the table to be matched is sent to the server for matching.
为了提升数据处理效率,避免服务端接收到的待匹配数据摘要积累过多,目标客户端在向服务端返回待匹配数据摘要的过程是基于数据层级依次返回的;示例性地,对于目标客户端而言,若每接收到服务端发送的一行完整的身份数据和身份数据对应的人脸图像,则计算该身份数据的待匹配行摘要和该人脸图像的待匹配图像摘要,将该身份数据对应的待匹配行摘要和待匹配图像摘要返回至服务端进行摘要匹配;若接收到一个数据簇中所有行完整的身份数据和身份数据对应的人脸图像,则基于该数据簇中所有身份数据和对应的人脸图像计算该数据簇的待匹配簇摘要,再将数据簇的待匹配簇摘要返回至服务端进行摘要匹配;若接收到身份数据表中的所有身份数据和对应的人脸图像,则在计算出所有身份数据对应的数据簇的待匹配簇摘要后,基于所有数据簇的待匹配簇摘要,确定目标客户端接收到的身份数据表的待匹配表摘要,再将身份数据表的待匹配表摘要返回至服务端进行摘要匹配。In order to improve data processing efficiency and avoid excessive accumulation of data summaries to be matched received by the server, the target client returns the data summaries to be matched to the server in sequence based on the data hierarchy; for example, for the target client In terms of The corresponding summary of rows to be matched and summary of images to be matched are returned to the server for summary matching; if complete identity data of all rows in a data cluster and face images corresponding to the identity data are received, based on all identity data in the data cluster Calculate the summary of the cluster to be matched with the corresponding face image, and then return the summary of the cluster to be matched to the server for summary matching; if all the identity data in the identity data table and the corresponding face image are received , then after calculating the cluster summaries to be matched for the data clusters corresponding to all identity data, based on the cluster summaries to be matched of all data clusters, determine the table summary to be matched for the identity data table received by the target client, and then add the identity data table to the The summary of the table to be matched is returned to the server for summary matching.
由此可知,根据数据层级顺序依次向服务端返回的待匹配数据摘要,能够通过服务端快速确认待匹配数据摘要和服务端的数据摘要是否一致,且对不同数据层级的数据摘要分别进行匹配,使摘要匹配过程更为严谨,确保数据同步的一致性并提高了数据一致性校验的准确性。It can be seen from this that the summary of the data to be matched is returned to the server in sequence according to the order of the data level. The server can quickly confirm whether the summary of the data to be matched is consistent with the data summary of the server, and match the data summaries of different data levels respectively, so that The summary matching process is more rigorous, ensuring the consistency of data synchronization and improving the accuracy of data consistency verification.
进一步需要说明的是,基于身份识别的数据同步方法的执行主体可以是设置于服务端的基于身份识别的数据同步装置和/或设置于客户端的基于身份识别的数据同步装置,例如,基于身份识别的数据同步方法可以由终端设备或服务器或其它处理设备执行,其中,终端设备可以为用户设备(User Equipment,UE)、电脑、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等;服务器可以是通用型服务器、专用型服务器等。在一些可能的实现方式中,该基于身份识别的数据同步方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。It should be further noted that the execution subject of the identity recognition-based data synchronization method may be an identity recognition-based data synchronization device provided on the server and/or an identity recognition-based data synchronization device provided on the client, for example, an identity recognition-based data synchronization device. The data synchronization method can be executed by a terminal device or a server or other processing device, where the terminal device can be a user equipment (User Equipment, UE), a computer, a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital processing device ( Personal Digital Assistant (PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc.; the server can be a general-purpose server, a dedicated server, etc. In some possible implementations, the identity recognition-based data synchronization method can be implemented by the processor calling computer-readable instructions stored in the memory.
图5是本申请的一示例性实施例示出的设置于服务端的基于身份识别的数据同步装置的框图。如图5所示,该示例性的基于身份识别的数据同步装置500包括:第一分层聚合模块510、第一数据发送模块520、第一数据匹配模块530和第一数据同步模块540。具体地:Figure 5 is a block diagram of a data synchronization device based on identity recognition provided on the server side according to an exemplary embodiment of the present application. As shown in FIG. 5 , the exemplary identity recognition-based data synchronization device 500 includes: a first hierarchical aggregation module 510 , a first data sending module 520 , a first data matching module 530 and a first data synchronization module 540 . specifically:
第一分层聚合模块510,用于将获取到的人员信息数据进行分层聚合处理,得到多个数据层级的数据摘要,数据层级包括数据行、数据簇和数据表,数据表包括至少一个数据簇,数据簇包括至少一个数据行,数据摘要包括数据行对应的行摘要、数据簇对应的簇摘要和数据表对应的表摘要。The first hierarchical aggregation module 510 is used to perform hierarchical aggregation processing on the acquired personnel information data to obtain data summaries of multiple data levels. The data levels include data rows, data clusters and data tables. The data tables include at least one data Cluster, the data cluster includes at least one data row, and the data summary includes the row summary corresponding to the data row, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table.
第一数据发送模块520,用于将人员信息数据发送至目标客户端,目标客户端基于接收的人员信息数据进行分层聚合处理得到各数据层级的待匹配数据摘要。The first data sending module 520 is used to send personnel information data to the target client. The target client performs hierarchical aggregation processing based on the received personnel information data to obtain a summary of data to be matched at each data level.
第一数据匹配模块530,用于以数据行、数据簇和数据表的层级顺序依次将数据行对应的行摘要、数据簇对应的簇摘要和数据表对应的表摘要与目标客户端返回的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要和待匹配表摘要进行匹配处理,得到匹配结果。The first data matching module 530 is used to sequentially match the row summary corresponding to the data row, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table with the data to be returned by the target client in the hierarchical order of data rows, data clusters, and data tables. The corresponding row summary to be matched, the cluster summary to be matched, and the table summary to be matched in the matching data summary are matched to obtain a matching result.
第一数据同步模块540,用于若匹配结果中存在目标数据摘要与目标客户端返回的待匹配数据摘要不一致,则将目标数据摘要所在数据层级对应的人员信息数据发送至目标客户端进行数据同步。The first data synchronization module 540 is used to send the personnel information data corresponding to the data level where the target data summary is located to the target client for data synchronization if the target data summary in the matching result is inconsistent with the data summary to be matched returned by the target client. .
在该示例性的基于身份识别的数据同步装置中,服务端将获取到的人员信息数据进行分层聚合,得到多个数据层级的数据摘要,实现对人员信息数据的精简;服务端将人员信息数据发送至客户端,得到客户端将人员信息数据分层聚合后返回的待匹配数据摘要;服务端根据数据层级的层级顺序将服务端的各级数据摘要和客户端返回的各级待匹配数据摘要依次进行匹配,实现对服务端、客户端之间数据的一致性校验;服务端发送目标数据摘要至客户端,使客户端基于目标数据摘要将与服务端不匹配的数据摘要进行数据同步处理,由此能够实现服务端和客户端之间的数据同步,确保数据同步的一致性并提高了数据同步的效率。In this exemplary data synchronization device based on identity recognition, the server performs hierarchical aggregation of the acquired personnel information data to obtain data summaries of multiple data levels, thereby simplifying the personnel information data; the server performs hierarchical aggregation of the personnel information data. The data is sent to the client, and the summary of the data to be matched returned by the client after hierarchical aggregation of the personnel information data is obtained; the server combines the summaries of the data at all levels on the server and the summaries of the data to be matched at all levels returned by the client according to the hierarchical order of the data hierarchy. Matching is performed in turn to achieve consistency verification of data between the server and the client; the server sends a target data summary to the client, so that the client can synchronize data that does not match the data summary with the server based on the target data summary. , thus enabling data synchronization between the server and the client, ensuring the consistency of data synchronization and improving the efficiency of data synchronization.
其中,各个模块的功能可参见基于身份识别的数据同步方法实施例,此处不再赘述。For the functions of each module, please refer to the embodiment of the data synchronization method based on identity recognition, which will not be described again here.
图6是本申请的一示例性实施例示出的设置于客户端的基于身份识别的数据同步装置的框图。如图6所示,该示例性的基于身份识别的数据同步装置600包括:第二分层聚合模块610、第二数据发送模块620和第二数据同步模块630。具体地:FIG. 6 is a block diagram of a data synchronization device based on identity recognition provided on a client according to an exemplary embodiment of the present application. As shown in FIG. 6 , the exemplary identity recognition-based data synchronization device 600 includes: a second hierarchical aggregation module 610 , a second data sending module 620 and a second data synchronization module 630 . specifically:
第二分层聚合模块610,用于基于接收到的服务端发送的人员信息数据,将人员信息数据进行分层聚合,得到多个数据层级的待匹配数据摘要,数据层级包括数据行、数据簇和数据表,数据表包括至少一个数据簇,数据簇包括至少一个数据行,待匹配数据摘要包括数据行对应的待匹配行摘要、数据簇对应的待匹配簇摘要和数据表对应的待匹配表摘要。The second hierarchical aggregation module 610 is used to hierarchically aggregate the personnel information data based on the received personnel information data sent by the server to obtain multiple data levels of to-be-matched data summaries. The data levels include data rows and data clusters. and a data table. The data table includes at least one data cluster. The data cluster includes at least one data row. The data summary to be matched includes a row summary to be matched corresponding to the data row, a cluster summary to be matched corresponding to the data cluster and a table to be matched corresponding to the data table. Summary.
第二数据发送模块620,用于将待匹配数据摘要中的待匹配行摘要、待匹配簇摘要或待匹配表摘要发送至服务端,服务端以数据行、数据簇和数据表的层级顺序依次将服务端中数据行对应的行摘要、数据簇对应的簇摘要和数据表对应的表摘要与服务端接收到的待匹配数据摘要中对应的待匹配行摘要、待匹配簇摘要和待匹配表摘要进行匹配处理,得到匹配结果。The second data sending module 620 is used to send the to-be-matched row summary, the to-be-matched cluster summary, or the to-be-matched table summary in the to-be-matched data summary to the server. The server is sequentially arranged in the hierarchical order of data rows, data clusters, and data tables. Compare the row summary corresponding to the data row, the cluster summary corresponding to the data cluster, and the table summary corresponding to the data table in the server with the corresponding row summary to be matched, the cluster summary to be matched, and the table to be matched in the data summary to be matched received by the server. The abstracts are matched and the matching results are obtained.
第二数据同步模块630,用于若接收到服务端发送的匹配结果中存在目标数据摘要与服务端接收到的待匹配数据摘要不一致,则基于接收到的服务端发送的目标数据摘要所在数据层级对应的人员信息数据进行数据同步。The second data synchronization module 630 is used to, if the target data summary in the matching result received from the server is inconsistent with the data summary to be matched received by the server, based on the data level of the target data summary sent by the server. Corresponding personnel information data is synchronized.
在该示例性的基于身份识别的数据同步装置中,目标客户端将获取到的人员信息数据进行分层聚合,得到多个数据层级的数据摘要,实现对人员信息数据的精简;目标客户端将人员信息数据分层聚合后的待匹配数据摘要返回至服务端,使服务端根据数据层级的层级顺序将服务端的各级数据摘要和目标客户端返回的各级待匹配数据摘要依次进行匹配,实现对服务端、目标客户端之间数据的一致性校验;目标客户端基于接收到的服务端发送的目标数据摘要将与服务端不匹配的数据摘要进行数据同步处理,由此能够实现服务端和客户端之间的数据同步,确保数据同步的一致性并提高了数据同步的效率。In this exemplary data synchronization device based on identity recognition, the target client performs hierarchical aggregation of the acquired personnel information data to obtain data summaries of multiple data levels, thereby simplifying the personnel information data; the target client will The summary of the data to be matched after the hierarchical aggregation of the personnel information data is returned to the server, so that the server can match the summary of data at all levels on the server with the summaries of the data to be matched at all levels returned by the target client in sequence according to the hierarchical order of the data hierarchy. Verify the consistency of data between the server and the target client; the target client synchronizes the data summary that does not match the server based on the received target data summary sent by the server, thus enabling the server to Data synchronization with the client ensures the consistency of data synchronization and improves the efficiency of data synchronization.
其中,各个模块的功能可参见基于身份识别的数据同步方法实施例,此处不再赘述。For the functions of each module, please refer to the embodiment of the data synchronization method based on identity recognition, which will not be described again here.
请参阅图7,图7是本申请电子设备一实施例的结构示意图。电子设备700包括存储器701和处理器702,处理器702用于执行存储器701中存储的程序指令,以实现上述任一基于身份识别的数据同步方法实施例中的步骤。在一个具体的实施场景中,电子设备700可以包括但不限于:微型计算机、服务器,此外,电子设备700还可以包括笔记本电脑、平板电脑等移动设备,在此不做限定。Please refer to FIG. 7 , which is a schematic structural diagram of an embodiment of the electronic device of the present application. The electronic device 700 includes a memory 701 and a processor 702. The processor 702 is configured to execute program instructions stored in the memory 701 to implement the steps in any of the above identity recognition-based data synchronization method embodiments. In a specific implementation scenario, the electronic device 700 may include but is not limited to: a microcomputer and a server. In addition, the electronic device 700 may also include mobile devices such as notebook computers and tablet computers, which are not limited here.
具体而言,处理器702用于控制其自身以及存储器701以实现上述任一基于身份识别的数据同步方法实施例中的步骤。处理器702还可以称为CPU(Central ProcessingUnit,中央处理单元)。处理器702可能是一种集成电路芯片,具有信号的处理能力。处理器702还可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。另外,处理器702可以由集成电路芯片共同实现。Specifically, the processor 702 is used to control itself and the memory 701 to implement the steps in any of the above identity recognition-based data synchronization method embodiments. The processor 702 may also be called a CPU (Central Processing Unit). The processor 702 may be an integrated circuit chip with signal processing capabilities. The processor 702 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field-Programmable Gate Array, FPGA), or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. In addition, the processor 702 may be implemented by an integrated circuit chip.
上述方案,服务端将获取到的人员信息数据进行分层聚合,得到多个数据层级的数据摘要,实现对人员信息数据的精简;服务端将人员信息数据发送至客户端,得到客户端将人员信息数据分层聚合后返回的待匹配数据摘要;服务端根据数据层级的层级顺序将服务端的各级数据摘要和客户端返回的各级待匹配数据摘要依次进行匹配,实现对服务端、客户端之间数据的一致性校验;服务端发送目标数据摘要至客户端,使客户端基于目标数据摘要将与服务端不匹配的数据摘要进行数据同步处理,由此能够实现服务端和客户端之间的数据同步,确保数据同步的一致性并提高了数据同步的效率。In the above scheme, the server performs hierarchical aggregation of the acquired personnel information data to obtain data summaries at multiple data levels, thereby simplifying the personnel information data; the server sends the personnel information data to the client, and obtains the personnel information from the client. The summary of data to be matched returned after hierarchical aggregation of information data; the server matches the summary of data at all levels on the server and the summary of data at all levels to be matched returned by the client in sequence according to the hierarchical order of the data hierarchy, so as to realize the matching between the server and the client. Consistency verification of data between the two parties; the server sends the target data summary to the client, so that the client can perform data synchronization processing on the data summary that does not match the server based on the target data summary, thus realizing the communication between the server and the client. Data synchronization between devices ensures the consistency of data synchronization and improves the efficiency of data synchronization.
请参阅图8,图8是本申请计算机可读存储介质一实施例的结构示意图。计算机可读存储介质810存储有能够被处理器运行的程序指令811,程序指令811用于实现上述任一基于身份识别的数据同步方法实施例中的步骤。Please refer to FIG. 8 , which is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present application. The computer-readable storage medium 810 stores program instructions 811 that can be executed by the processor. The program instructions 811 are used to implement the steps in any of the above-mentioned identity recognition-based data synchronization method embodiments.
上述方案,服务端将获取到的人员信息数据进行分层聚合,得到多个数据层级的数据摘要,实现对人员信息数据的精简;服务端将人员信息数据发送至客户端,得到客户端将人员信息数据分层聚合后返回的待匹配数据摘要;服务端根据数据层级的层级顺序将服务端的各级数据摘要和客户端返回的各级待匹配数据摘要依次进行匹配,实现对服务端、客户端之间数据的一致性校验;服务端发送目标数据摘要至客户端,使客户端基于目标数据摘要将与服务端不匹配的数据摘要进行数据同步处理,由此能够实现服务端和客户端之间的数据同步,确保数据同步的一致性并提高了数据同步的效率。In the above scheme, the server performs hierarchical aggregation of the acquired personnel information data to obtain data summaries at multiple data levels, thereby simplifying the personnel information data; the server sends the personnel information data to the client, and obtains the personnel information from the client. The summary of data to be matched returned after hierarchical aggregation of information data; the server matches the summary of data at all levels on the server and the summary of data at all levels to be matched returned by the client in sequence according to the hierarchical order of the data hierarchy, so as to realize the matching between the server and the client. Consistency verification of data between the two parties; the server sends the target data summary to the client, so that the client can perform data synchronization processing on the data summary that does not match the server based on the target data summary, thus realizing the communication between the server and the client. Data synchronization between devices ensures the consistency of data synchronization and improves the efficiency of data synchronization.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules provided by the device provided by the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. For specific implementation, refer to the description of the above method embodiments. For the sake of brevity, here No longer.
上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述。The above description of various embodiments tends to emphasize the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性、机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other divisions, for example, units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units. Integrated units may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as independent products. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including a number of instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the various implementation methods of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310788824.9A CN117009435B (en) | 2023-06-29 | 2023-06-29 | Data synchronization method, equipment and storage medium based on identity recognition |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310788824.9A CN117009435B (en) | 2023-06-29 | 2023-06-29 | Data synchronization method, equipment and storage medium based on identity recognition |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117009435A true CN117009435A (en) | 2023-11-07 |
| CN117009435B CN117009435B (en) | 2025-06-27 |
Family
ID=88561010
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310788824.9A Active CN117009435B (en) | 2023-06-29 | 2023-06-29 | Data synchronization method, equipment and storage medium based on identity recognition |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117009435B (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050165947A1 (en) * | 2003-12-29 | 2005-07-28 | Auriemma Stephen T. | System and method for optimizing synchronization |
| CN1852160A (en) * | 2005-12-30 | 2006-10-25 | 华为技术有限公司 | Method for realizing data slow synchronization and system thereof |
| US8301994B1 (en) * | 2008-09-12 | 2012-10-30 | Adobe Systems Incorporated | Synchronizing multiple hierarchal data structures |
| US20180341691A1 (en) * | 2015-11-24 | 2018-11-29 | T2 Data Ab | Data synchronization in a distributed data storage system |
| CN113282599A (en) * | 2021-05-31 | 2021-08-20 | 平安国际智慧城市科技股份有限公司 | Data synchronization method and system |
| CN114443673A (en) * | 2021-12-15 | 2022-05-06 | 厦门市美亚柏科信息股份有限公司 | Data synchronization method based on tree structure, terminal equipment and storage medium |
| CN114547182A (en) * | 2020-11-25 | 2022-05-27 | 深圳云天励飞技术股份有限公司 | Personnel information synchronization method, terminal device and storage medium |
| CN115577040A (en) * | 2021-07-06 | 2023-01-06 | 腾讯科技(深圳)有限公司 | Hierarchical data synchronization method and device, electronic equipment and readable medium |
-
2023
- 2023-06-29 CN CN202310788824.9A patent/CN117009435B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050165947A1 (en) * | 2003-12-29 | 2005-07-28 | Auriemma Stephen T. | System and method for optimizing synchronization |
| CN1852160A (en) * | 2005-12-30 | 2006-10-25 | 华为技术有限公司 | Method for realizing data slow synchronization and system thereof |
| US8301994B1 (en) * | 2008-09-12 | 2012-10-30 | Adobe Systems Incorporated | Synchronizing multiple hierarchal data structures |
| US20180341691A1 (en) * | 2015-11-24 | 2018-11-29 | T2 Data Ab | Data synchronization in a distributed data storage system |
| CN114547182A (en) * | 2020-11-25 | 2022-05-27 | 深圳云天励飞技术股份有限公司 | Personnel information synchronization method, terminal device and storage medium |
| CN113282599A (en) * | 2021-05-31 | 2021-08-20 | 平安国际智慧城市科技股份有限公司 | Data synchronization method and system |
| CN115577040A (en) * | 2021-07-06 | 2023-01-06 | 腾讯科技(深圳)有限公司 | Hierarchical data synchronization method and device, electronic equipment and readable medium |
| CN114443673A (en) * | 2021-12-15 | 2022-05-06 | 厦门市美亚柏科信息股份有限公司 | Data synchronization method based on tree structure, terminal equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117009435B (en) | 2025-06-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111625593B (en) | Block chain-based data processing method and device and computer equipment | |
| US20160057201A1 (en) | File Uploading Method, Client, and Application Server in Cloud Storage, and Cloud Storage System | |
| CN110300151A (en) | Method for uploading data file and system | |
| CN108683668B (en) | Resource checking method, device, storage medium and equipment in content distribution network | |
| US11728976B1 (en) | Systems and methods for efficiently serving blockchain requests using an optimized cache | |
| CN110989922B (en) | Distributed data storage method and system | |
| US20210158353A1 (en) | Methods, systems, apparatuses, and devices for processing request in consortium blockchain | |
| CN113888164B (en) | Blockchain transaction pool implementation method, device, computer equipment and storage medium | |
| CN112069169B (en) | Block data storage method and device, electronic equipment and readable storage medium | |
| WO2019061629A1 (en) | Data verification method, and server | |
| WO2022237497A1 (en) | Data storage method and apparatus based on blockchain network | |
| WO2024183280A1 (en) | Blockchain consensus method and apparatus, and computer device, medium and product | |
| CN118677950A (en) | Migration method, device and equipment of data transmission task and storage medium | |
| CN112188247A (en) | Data transmission method, device, equipment and computer readable storage medium | |
| TWI716822B (en) | Method and device for correcting transaction causality, and electronic equipment | |
| CN112200680B (en) | Blockchain node management method, device, computer and readable storage medium | |
| CN113760519B (en) | Distributed transaction processing method, device, system and electronic equipment | |
| CN116668456A (en) | A block generation method, device and system based on DAG multi-node consensus | |
| CN113487041B (en) | Transverse federal learning method, device and storage medium | |
| CN117009435A (en) | Data synchronization method, equipment and storage medium based on identity recognition | |
| CN114547182A (en) | Personnel information synchronization method, terminal device and storage medium | |
| CN113824755A (en) | Method, system and related device for processing block chain data | |
| CN114428661A (en) | Mirror image management method and device | |
| CN110930253A (en) | Intelligent contract internal main key generation method and device, computer equipment and storage medium | |
| CN113542439B (en) | Distributed data storage access method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |