Data request method, data processing method and data management system

By including the client version number and identification code in the data identification request, the server quickly searches for and returns the identification results, solving the problems of low transmission efficiency and slow identification speed during data identification, and achieving fast identification and efficient transmission.

CN113609165BActive Publication Date: 2024-10-01GLODON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110930704.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-13
Publication Date
2024-10-01
Estimated Expiration
2041-08-13

AI Technical Summary

Technical Problem

Data recognition in the existing technology has problems of low transmission efficiency and slow recognition speed, mainly because the client needs to upload a large amount of data to the cloud for recognition.

Method used

By generating a data identification request, including the client's version number and the identification code of the data to be identified, the server can quickly find whether the identification results have been pre-stored based on this information to avoid repeated identification and big data transmission.

Benefits of technology

It achieves rapid identification and improves transmission efficiency, avoids the problems of low transmission efficiency and slow identification speed, and saves transmission and calculation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113609165B_ABST
    Figure CN113609165B_ABST
Patent Text Reader

Abstract

The present invention discloses a data request method, which includes: generating a data identification request and sending it to a server; wherein the data identification request includes first data and an identification code generated based on second data; and receiving a data identification request result returned by the server. The present invention also discloses a data processing method, which includes: receiving a data identification request sent by a client; wherein the data identification request includes first data and an identification code generated based on second data; determining a data identification request result according to the first data and the identification code, and returning the determined data identification request result to the client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data identification, and in particular to a data request method, a data processing method, a client, a server and a data management system. Background Art

[0002] Based on the advantage of cloud computing flexibility, the client's computing business is usually handed over to the cloud to improve computing capabilities. At the same time, manufacturers will continue to use the latest technology and hardware to upgrade the cloud, so more and more functions are deployed in the cloud, and the client is just a simple presentation of the processing results. For example, when data needs to be identified, the client only needs to send the data to be identified to the cloud. The cloud will identify the data to be identified based on the arranged identification function and return the identification result to the client. The client only needs to present the identification result after receiving it.

[0003] However, during the research process, the inventors found that in the prior art, each time the data to be identified is identified, the client needs to upload a large amount of data to the cloud, which has technical problems of low transmission efficiency and slow recognition speed. Summary of the invention

[0004] The purpose of the present invention is to provide a data request method, a data processing method, a client, a server and a data management system to solve the technical problems of low transmission efficiency and slow recognition speed when identifying data in the prior art.

[0005] One aspect of the present invention provides a data request method, which includes: generating a data identification request and sending it to a server; wherein the data identification request includes first data and an identification code generated based on second data; and receiving the data identification request result returned by the server.

[0006] Optionally, the first data includes a version number of a client that generates the data identification request, and the second data includes data to be identified.

[0007] Optionally, receiving the data identification request result returned by the server includes: receiving a first data identification request result returned by the server; wherein the first data identification request result is used to characterize the identification result of the second data stored; parsing out the first address carried in the first data identification request result; and obtaining the data under the first address as the identification result of the second data.

[0008] Optionally, receiving the data identification request result returned by the server includes: receiving a second data identification request result returned by the server; wherein the second data identification request result is used to characterize an identification result in which the second data is not stored; sending the first data, the second data and the identification code to the server, so that the server calculates the identification result of the second data based on the first data, the second data and the identification code and stores it to a second address; receiving the second address returned by the server, and obtaining the data under the second address as the identification result of the second data.

[0009] Optionally, the method further includes: calculating a HASH value of the second data using a first algorithm; calculating a HASH value of the second data using a second algorithm; and determining an identification code of the second data based on the two calculated HASH values.

[0010] Another aspect of the present invention provides a data processing method, which includes: receiving a data identification request sent by a client; wherein the data identification request includes first data and an identification code generated based on second data; determining a data identification request result based on the first data and the identification code, and returning the determined data identification request result to the client.

[0011] Optionally, determining a data identification request result based on the first data and the identification code, and returning the determined data identification request result to the client, includes: determining third data associated with the first data; querying whether there is entry information containing the third data and the identification code; if found, obtaining a first address for storing the identification result of the second data from the entry information; generating a first data identification request result for representing that the identification result has been stored based on the first address; and returning the first data identification request result to the client.

[0012] Optionally, determining a data identification request result based on the first data and the identification code, and returning the determined data identification request result to the client, also includes: if no entry information containing the third data and the identification code is queried, generating a second data identification request result for characterizing that the identification result is not stored; and returning the second data identification request result to the client.

[0013] Optionally, after returning the second data identification request result to the client, the method also includes: receiving the first data, the second data and the identification code sent by the client; determining third data associated with the first data; obtaining an identification algorithm corresponding to the third data; identifying the second data according to the identification algorithm to obtain an identification result of the second data; storing the identification result and obtaining a second address for storing the identification result; returning the second address to the client; and associating the second address, the identification code and the third data to obtain entry information, and storing the entry information.

[0014] Optionally, the first data includes a version number of the client, the second data includes data to be identified, and the third data includes a version number of the identification algorithm.

[0015] Another aspect of the present invention provides a client, which includes: a generation module for generating a data identification request and sending it to a server; wherein the data identification request includes first data and an identification code generated based on second data; and a receiving module for receiving the data identification request result returned by the server.

[0016] Another aspect of the present invention provides a server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement any of the above-mentioned data processing methods when executing the computer program.

[0017] Another aspect of the present invention provides a data management system, which includes a client and a server, wherein: the client is used to execute any of the data request methods described above; and the server is used to execute any of the data processing methods described above.

[0018] According to the data request method and data processing method provided by the present invention, when the client wants to identify the second data, it will not send the second data directly to the server, but will send the first data and the identification code generated based on the second data to the server. The server can quickly search whether the identification result of the second data is pre-stored based on the first data and the identification code. Since the data volume of the first data is much smaller than the data volume of the second data and the data volume of the identification code of the second data is also very small, this embodiment can achieve the purpose of fast sending and fast identification, avoiding the problem in the prior art that the data to be identified is sent to the server, resulting in low transmission efficiency and thus affecting the identification speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0020] Figure 1 A block diagram of a data management system provided by Embodiment 1 of the present invention is shown;

[0021] Figure 2 A schematic diagram of obtaining a version number of a client provided in the first embodiment of the present invention is shown;

[0022] Figure 3 A schematic diagram showing the association relationship between the version number of the client and the version number of the identification algorithm provided in the first embodiment of the present invention;

[0023] Figure 4 A schematic diagram showing multiple records provided by Embodiment 1 of the present invention is shown;

[0024] Figure 5 A schematic diagram showing data to be identified sent by a client provided in the first embodiment of the present invention is shown;

[0025] Figure 6 A schematic diagram showing a data table structure provided by Embodiment 1 of the present invention is shown;

[0026] Figure 7 A flow chart showing data management implemented by a data management system provided by Embodiment 1 of the present invention is shown;

[0027] Figure 8 A timing diagram showing data management implemented by a data management system provided by Embodiment 1 of the present invention;

[0028] Fig. 9 A flow chart of a data request method provided by Embodiment 2 of the present invention is shown;

[0029] Fig.10 A flow chart of a data processing method provided by Embodiment 3 of the present invention is shown;

[0030] Fig.11 A flowchart of a client provided by Embodiment 4 of the present invention is shown;

[0031] Fig.12 A block diagram of a computer device suitable for implementing a data request method or a data processing method provided in a fifth embodiment of the present invention is shown. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0033] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0034] Embodiment 1

[0035] The present embodiment provides a data management system, which includes a client and a server. The server stores a plurality of recognition algorithms, and each recognition algorithm may include multiple versions. In the present embodiment, an association relationship between the client version number and the recognition algorithm version number may be established in advance, so that each client is uniquely associated with a recognition algorithm (each recognition algorithm may be associated with multiple clients). When the recognition algorithm in the server recognizes a certain data to be recognized for the first time, the server will store the recognition result in the database, and then associate the storage address of the recognition result, the version number of the corresponding recognition algorithm, and the unique identification code of the data to be recognized; when the client needs the server to recognize the data to be recognized again, the client only needs to send the identification code and the version number of the client, and the server can find the version number of the associated recognition algorithm according to the version number of the client, and then determine the associated storage address according to the identification code and the version number of the recognition algorithm, and then the client can directly obtain the recognition result according to the storage address. The present embodiment is mainly used in application scenarios where the recognition result can be obtained based on the client version number and the identification code with a very small amount of data when it is not the first recognition, avoiding the defects that the client needs to send the data to be recognized every time and the server needs to re-recognize the data to be recognized every time, and solves the problems of low transmission efficiency and slow recognition speed in the prior art. Specifically, Figure 1 FIG. 1 shows a block diagram of a data management system provided by Embodiment 1 of the present invention, such as Figure 1 As shown, the data identification system 100 may include a client 110 and a server 120, wherein:

[0036] The client 110 is used to: generate a data identification request and send it to the server 120; wherein the data identification request includes the first data and an identification code generated based on the second data;

[0037] The server 120 is used to: receive a data identification request sent by the client 110; wherein the data identification request includes first data and an identification code generated based on second data; determine a data identification request result according to the first data and the identification code, and return the determined data identification request result to the client 110;

[0038] The client 110 is further used to receive the data identification request result returned by the server 120 .

[0039] The first data may be a version number of the client. In this embodiment, a document of the client pre-stores the current version number of the client. The client may obtain the version number of the client by reading the document. Figure 2 As shown, transfer_version represents the version number of the client. Figure 2 The document can obtain the client version number as 0.0.0.2, that is, the first data obtained is 0.0.0.2.

[0040] The second data may be data to be identified, and the data to be identified may be drawings (including but not limited to two-dimensional drawings, three-dimensional drawings, etc.), documents, tables, etc.; wherein the amount of the second data is much larger than the sum of the first data and the identification code.

[0041] The identification code can be a unique identification code of the second data. For example: the identification code can be the ID number of the second data, or it can be a HASH value of the second data calculated using a preset algorithm, and then the HASH value is used as the identification code of the second data, wherein the preset algorithm is, for example, the MD5 (Message Digest Algorithm 5) algorithm and / or the SHA-1 (Secure Hash Algorithm 1) algorithm. However, the inventors have found that when only one algorithm is used to calculate the HASH values ​​of different second data, even if the algorithms used to calculate the HASH values ​​of different second data are different, the same HASH value may occasionally be obtained for different second data. At this time, if the HASH value of the second data calculated using one algorithm is directly used as the identification code, there may be a problem that different second data have the same identification code. In order to solve this problem, when calculating the identification code of the second data, the client is also used to:

[0042] Calculate the HASH value of the second data using the first algorithm;

[0043] Calculate the HASH value of the second data using a second algorithm;

[0044] An identification code of the second data is determined according to the two calculated HASH values.

[0045] The first algorithm and the second algorithm are different algorithms, for example, MD5 algorithm and SHA-1 algorithm respectively. Determining the identification code of the second data according to the two calculated HASH values ​​can specifically be: calculating the sum of the two HASH values, calculating the HASH value of the sum using the first algorithm or the second algorithm, and using the HASH value of the sum as the identification code of the second data.

[0046] For example, the MD5 algorithm is used to calculate a HASH value of the second data, recorded as A; the SHA-1 algorithm is used to calculate a HASH value of the second data, recorded as B; A and B are added and the MD5 algorithm is used again to calculate a HASH value for the added value, recorded as C. At this time, C can be used as the identification code of the second data.

[0047] This embodiment uses two different algorithms to calculate the identification code of the second data, thereby avoiding the problem that different second data may have the same identification code when the HASH value of the second data calculated by one algorithm is directly used as the identification code.

[0048] In addition, in the prior art, even if the client provides the same data to be identified, the cloud will re-identify the data to be identified once, and for each identification, the data to be identified is sent to multiple servers for parallel calculation, and then the processing results of multiple servers are collected and summarized by data collection to obtain the final identification result. Not only is the identification efficiency low, but the resource overhead is large. There is no effective solution to the technical problem that the client repeatedly identifies the same data each time in the prior art, and the identification efficiency is low and the resource overhead is large. In order to solve this problem, the present embodiment associates the identification result of the previously identified data to be identified with a unique identification code and stores it. In this way, the next time the data to be identified is identified, the server does not need to perform the identification process again, but only needs to obtain the first address for storing the identification result according to the identification code of the data to be identified. Then the client obtains the identification result according to the first address. The data identification method provided in this embodiment solves the technical problem that the repeated identification of the same data in the prior art has low identification efficiency and high resource overhead. At the same time, the client can obtain the identification result of the data to be identified without transmitting the data to be identified to the server, which greatly saves the transmission and calculation time. Specifically:

[0049] When the server determines a data identification request result based on the first data and the identification code, and returns the determined data identification request result to the client, it is specifically used to: determine third data associated with the first data; query whether there is entry information containing the third data and the identification code; if found, obtain a first address for storing the identification result of the second data from the entry information; generate a first data identification request result for representing that the identification result has been stored based on the first address; and return the first data identification request result to the client.

[0050] When receiving the data identification request result returned by the server, the client is specifically used to: receive the first data identification request result returned by the server; wherein the first data identification request result is used to represent the identification result of the second data stored; parse out the first address carried in the first data identification request result; and obtain the data under the first address as the identification result of the second data.

[0051] The server is equipped with an identification algorithm. Based on the principle that each client can only use one identification algorithm, an association is established in advance between each client version number and each identification algorithm version number. Each client version number can only be associated with one identification algorithm version number. Each identification algorithm version number can be associated with several client version numbers, where several means one, two or more. Figure 3 As shown, the first database pre-stores the association relationship between the client version number and the recognition algorithm version number, wherein transfer_version represents the client version number, wokerVersion represents the recognition algorithm version number, and the server reads the association relationship from the first database to determine the recognition algorithm version number associated with the client version number.

[0052] like Figure 4 As shown, the first database also pre-stores multiple entry information, each entry information includes an identification algorithm version number, a unique identification code ( Figure 4 data in), identifying the algorithm type ( Figure 4 identifyType) and the storage address of the recognition result ( Figure 4 The server searches the first database for corresponding entry information by using the version number of the recognition algorithm and the unique identification code. If so, it obtains the first address in the entry information, then generates a first query result based on the first address and returns it to the client. The client parses the first query result and obtains the recognition result of the data to be recognized based on the first address obtained by the parsing.

[0053] Optionally, when the server fails to query the corresponding entry information, it indicates that the data to be identified has not been identified before. At this time, the client needs to send the data to be identified to the server so that the server can identify the data to be identified based on the normal identification process. At the same time, in order to avoid the technical problems of low identification efficiency and high resource overhead caused by repeated identification of the same data, the server can store the identification result of this time, so that the next time the client wants to identify the data to be identified again, the client does not need to upload the data to be identified but can directly obtain the identification result based on the unique identification code of the data to be identified. Specifically:

[0054] When the server determines a data identification request result according to the first data and the identification code, and returns the determined data identification request result to the client, the server is specifically configured to: if no entry information including the third data and the identification code is found, generate a second data identification request result for indicating that the identification result is not stored; and return the second data identification request result to the client;

[0055] When the client receives the data identification request result returned by the server, it is specifically used to: receive the second data identification request result returned by the server; wherein the second data identification request result is used to represent that the identification result of the second data is not stored; send the first data, the second data and the identification code to the server, so that the server calculates the identification result of the second data based on the first data, the second data and the identification code and stores it to a second address.

[0056] After returning the second data identification request result to the client, the server is also used to: receive the first data, the second data and the identification code sent by the client; determine the third data associated with the first data; obtain the identification algorithm corresponding to the third data; identify the second data according to the identification algorithm to obtain the identification result of the second data; store the identification result and obtain a second address for storing the identification result; return the second address to the client; and associate the second address, the identification code and the third data to obtain entry information, and store the entry information.

[0057] The client is further used to: receive the second address returned by the server, and obtain the data under the second address as the identification result of the second data.

[0058] The client can use the data to be identified as Figure 5 Send to the server in the form of, Figure 5 The client sends the data to be identified to the server in the form of a compressed package, and the server decompresses the compressed package to obtain the data to be identified.

[0059] After the server calculates the recognition result, it stores the recognition result in the second database, obtains the second address for storing the recognition result, and then associates the recognition algorithm version number, the unique identifier, and the second address and stores them in the first database in the form of an entry information. In addition, the recognition algorithm type can also be stored in the entry information. For details, please refer to Figure 4 Optionally, the data table structure of the first database is as follows: Figure 6 As shown, when the entry information is stored in the first database, it can be stored in the first database according to Figure 6 The data table format is defined for storage, specifically, Figure 6 The type, length, decimal point, whether it is null, key, and meaning of each element in each entry information are limited (that is, Figure 5 ).

[0060] In this embodiment, when identifying the data to be identified, the client first calculates the unique identification code of the data to be identified locally, and then only sends the unique identification code to the server without sending the data to be identified, so that the identification result can be directly obtained when the identification result is pre-stored, thereby achieving the technical effect of accelerating the verification speed and avoiding the time consumption of sending a large amount of data. Furthermore, if the identification result is not pre-stored, it means that the data to be identified is identified for the first time, and the identification result is calculated according to the operation rules and stored according to the storage rules, so that when the data to be identified is identified again later, the identification result can be directly obtained according to the pre-stored content, which speeds up the display of the results of the second operation, and compared with increasing the server overhead, only one data storage server needs to be added, which greatly reduces the identification cost.

[0061] Below Figure 7 and Figure 8 The data recognition process of the present invention is described in detail with reference to an example.

[0062] The server described in this embodiment may include a backend and a cloud, wherein the backend and the cloud may be arranged on a single server or on multiple different servers. Specifically, the user identifies the layer (also called the data to be identified) through the client, the client calculates the unique identification code of the data to be identified locally, generates an identification request based on the unique identification code and the client version number, and sends the identification request to the backend, which in turn sends the identification request to the backend in the first database (also known as the client version number). Figure 8 In the database in the database, the backend queries whether there is corresponding entry information. If there is corresponding entry information, the backend obtains the first address for storing the recognition result in the corresponding entry information and returns the first address to the client. If the corresponding entry information is not found, the client sends the unique identification code, the client version number and the data to be recognized to the backend, and the backend uses the cloud to recognize the data to be recognized to obtain the recognition result (that is, Figure 8 The background then stores the recognition results in the second database (i.e. Figure 8 The OSS (Open Storage Service) in the system obtains a second address for storing the recognition result, and further returns the second address to the client. The client obtains and displays the recognition result according to the second address. In addition, the unique identification code, the second address and the recognition algorithm version number can be associated to obtain the entry information, and then the entry information is stored in the second database.

[0063] Embodiment 2

[0064] Embodiment 2 of the present invention provides a data request method, which is applied to a client. The data request method corresponds to the data management system provided in the above embodiment 1. The corresponding technical features and technical effects are not described in detail in this embodiment. For relevant parts, please refer to the above embodiment 1. Specifically, Fig. 9 A flow chart of a data request method provided in Embodiment 2 of the present invention is shown. Fig. 9 The data identification method may include steps S11 to S12, wherein:

[0065] Step S11, generating a data identification request and sending it to a server; wherein the data identification request includes the first data and an identification code generated based on the second data;

[0066] Step S12, receiving the data identification request result returned by the server.

[0067] Optionally, the first data includes a version number of a client that generates the data identification request, and the second data includes data to be identified.

[0068] Optionally, receiving the data identification request result returned by the server includes: receiving a first data identification request result returned by the server; wherein the first data identification request result is used to characterize the identification result of the second data stored; parsing out the first address carried in the first data identification request result; and obtaining the data under the first address as the identification result of the second data.

[0069] Optionally, receiving the data identification request result returned by the server includes: receiving a second data identification request result returned by the server; wherein the second data identification request result is used to characterize an identification result in which the second data is not stored; sending the first data, the second data and the identification code to the server, so that the server calculates the identification result of the second data based on the first data, the second data and the identification code and stores it to a second address; receiving the second address returned by the server, and obtaining the data under the second address as the identification result of the second data.

[0070] Optionally, the method further includes: calculating a HASH value of the second data using a first algorithm; calculating a HASH value of the second data using a second algorithm; and determining an identification code of the second data based on the two calculated HASH values.

[0071] Embodiment 3

[0072] Embodiment 3 of the present invention provides a data processing method, which is applied to a server. The data identification method corresponds to the data management system provided in the above embodiment 1. The corresponding technical features and technical effects are not described in detail in this embodiment. For relevant parts, please refer to the above embodiment 1. Specifically, Fig.10 FIG. 1 is a flow chart showing a data processing method provided by Embodiment 3 of the present invention. Fig.10 The data identification method may include step S21 and step S22, wherein:

[0073] Step S21, receiving a data identification request sent by a client; wherein the data identification request includes first data and an identification code generated based on second data;

[0074] Step S22: determining a data identification request result according to the first data and the identification code, and returning the determined data identification request result to the client.

[0075] Optionally, determining a data identification request result based on the first data and the identification code, and returning the determined data identification request result to the client, includes: determining third data associated with the first data; querying whether there is entry information containing the third data and the identification code; if found, obtaining a first address for storing the identification result of the second data from the entry information; generating a first data identification request result for representing that the identification result has been stored based on the first address; and returning the first data identification request result to the client.

[0076] Optionally, determining a data identification request result based on the first data and the identification code, and returning the determined data identification request result to the client, also includes: if no entry information containing the third data and the identification code is queried, generating a second data identification request result for characterizing that the identification result is not stored; and returning the second data identification request result to the client.

[0077] Optionally, after returning the second data identification request result to the client, the method also includes: receiving the first data, the second data and the identification code sent by the client; determining third data associated with the first data; obtaining an identification algorithm corresponding to the third data; identifying the second data according to the identification algorithm to obtain an identification result of the second data; storing the identification result and obtaining a second address for storing the identification result; returning the second address to the client; and associating the second address, the identification code and the third data to obtain entry information, and storing the entry information.

[0078] Optionally, the first data includes a version number of the client, the second data includes data to be identified, and the third data includes a version number of the identification algorithm.

[0079] Embodiment 4

[0080] Embodiment 4 of the present invention provides a client, which corresponds to the data management system provided in the above embodiment 1. The corresponding technical features and technical effects are not described in detail in this embodiment, and the relevant parts can refer to the above embodiment 1. Specifically, Fig.11 A block diagram of a client provided by Embodiment 4 of the present invention is shown, Fig.11 The client 110 includes a generating module 111 and a receiving module 112, wherein:

[0081] A generating module 111 is used to generate a data identification request and send it to a server; wherein the data identification request includes the first data and an identification code generated based on the second data;

[0082] The receiving module 112 is used to receive the data identification request result returned by the server.

[0083] Optionally, the first data includes a version number of a client that generates the data identification request, and the second data includes data to be identified.

[0084] Optionally, the receiving module is specifically used to: receive a first data identification request result returned by the server; wherein the first data identification request result is used to characterize the identification result of the second data stored; parse out the first address carried in the first data identification request result; and obtain the data under the first address as the identification result of the second data.

[0085] Optionally, the receiving module is specifically used to: receive a second data identification request result returned by the server; wherein the second data identification request result is used to characterize an identification result in which the second data is not stored; send the first data, the second data and the identification code to the server, so that the server calculates the identification result of the second data based on the first data, the second data and the identification code and stores it to a second address; receive the second address returned by the server, and obtain the data under the second address as the identification result of the second data.

[0086] Optionally, the client also includes: a first calculation module, used to calculate the HASH value of the second data using a first algorithm; a second calculation module, used to calculate the HASH value of the second data using a second algorithm; and a third calculation module, used to determine the identification code of the second data based on the two calculated HASH values.

[0087] Embodiment 5

[0088] Fig.12 A block diagram of a computer device suitable for implementing a data request method or a data processing method provided in Embodiment 5 of the present invention is shown. Wherein, when the computer device implements the data request method, the computer device may specifically be a client, specifically: a client, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor is used to implement the data request method described in Embodiment 2 when executing the computer program; when the computer device implements the data processing method, the computer device may specifically be a server, specifically: a server, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor is used to implement the data processing method described in Embodiment 3 when executing the computer program. In this embodiment, the computer device 1200 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. that executes the program. As Fig.12As shown, the computer device 1200 of this embodiment includes at least but is not limited to: a memory 1201, a processor 1202, and a network interface 1203 that can be interconnected through a system bus. It should be noted that Fig.12 Only computer device 1200 having components 1201 - 1203 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0089] In this embodiment, the memory 1203 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 1201 can be an internal storage unit of the computer device 1200, such as a hard disk or memory of the computer device 1200. In other embodiments, the memory 1201 can also be an external storage device of the computer device 1200, such as a plug-in hard disk equipped on the computer device 1200, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 1201 can also include both the internal storage unit of the computer device 1200 and its external storage device. In this embodiment, the memory 1201 is generally used to store an operating system and various application software installed in the computer device 1200, such as program codes of a data request method or a data processing method.

[0090] In some embodiments, the processor 1202 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 1202 is generally used to control the overall operation of the computer device 1200. For example, the processor 1202 performs control and processing related to data interaction or communication with the computer device 1200. In this embodiment, the processor 1202 is used to run the program code of the data request method or the data processing method stored in the memory 1201.

[0091] In this embodiment, the data request method or data processing method stored in the memory 1201 can also be divided into one or more program modules and executed by one or more processors (processor 1202 in this embodiment) to complete the present invention.

[0092] The network interface 1203 may include a wireless network interface or a wired network interface, and the network interface 1203 is generally used to establish a communication link between the computer device 1200 and other computer devices. For example, the network interface 1203 is used to connect the computer device 1200 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 1200 and the external terminal. The network can be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0093] Embodiment 6

[0094] This embodiment also provides a computer-readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc., on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data request method or the data processing method are implemented.

[0095] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.

[0096] It should be noted that the serial numbers of the embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0098] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A data request method, It is characterized in that The method comprises: Generate a data identification request and send it to the server; wherein the data identification request includes first data and an identification code generated based on second data; the first data includes a version number of the client, and the second data includes data to be identified; Receiving the data identification request result returned by the server; The receiving the data identification request result returned by the server includes: Receiving a first data identification request result returned by the server; wherein the first data identification request result is used to represent the identification result of the second data that has been stored; Parsing the first address carried in the first data identification request result; The data at the first address is obtained as the recognition result of the second data.

2. The method according to claim 1, It is characterized in that The receiving the data identification request result returned by the server includes: receiving a second data identification request result returned by the server; wherein the second data identification request result is used to indicate that an identification result of the second data is not stored; Sending the first data, the second data and the identification code to the server, so that the server calculates the identification result of the second data according to the first data, the second data and the identification code and stores it to a second address; The second address returned by the server is received, and data under the second address is acquired as an identification result of the second data.

3. The method according to claim 1, It is characterized in that The method further comprises: Calculate the HASH value of the second data using the first algorithm; Calculate the HASH value of the second data using a second algorithm; An identification code of the second data is determined according to the two calculated HASH values.

4. A data processing method, It is characterized in that The method comprises: Receiving a data identification request sent by a client; wherein the data identification request includes first data and an identification code generated based on second data; the first data includes a version number of the client, and the second data includes data to be identified; Determine a data identification request result according to the first data and the identification code, and return the determined data identification request result to the client; The determining a data identification request result according to the first data and the identification code, and returning the determined data identification request result to the client, comprises: Determining third data associated with the first data; the third data comprising a version number of the recognition algorithm; querying whether there is entry information including the third data and the identification code; If found, obtaining a first address for storing the identification result of the second data from the entry information; generating, according to the first address, a first data identification request result for indicating that the identification result has been stored; The first data identification request result is returned to the client.

5. The method according to claim 4, It is characterized in that The step of determining a data identification request result according to the first data and the identification code, and returning the determined data identification request result to the client, further includes: If the entry information including the third data and the identification code is not found, generating a second data identification request result indicating that the identification result is not stored; The second data identification request result is returned to the client.

6. The method according to claim 5, It is characterized in that After returning the second data identification request result to the client, the method further includes: receiving the first data, the second data and the identification code sent by the client; determining third data associated with the first data; Acquire a recognition algorithm corresponding to the third data; Identify the second data according to the identification algorithm to obtain an identification result of the second data; storing the recognition result and obtaining a second address for storing the recognition result; returning the second address to the client; and associating the second address, the identification code and the third data to obtain entry information, and storing the entry information.

7. A client, It is characterized in that The client comprises: A generating module, used to generate a data identification request and send it to a server; wherein the data identification request includes first data and an identification code generated based on second data; the first data includes a version number of the client, and the second data includes data to be identified; A receiving module, used for receiving the data identification request result returned by the server; The receiving module is specifically used to: receive a first data identification request result returned by the server; wherein the first data identification request result is used to represent the identification result of the second data stored; parse out the first address carried in the first data identification request result; and obtain the data under the first address as the identification result of the second data.

8. A server, It is characterized in that The server includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor is used to implement the method according to any one of claims 4 to 6 when executing the computer program.

9. A data management system, It is characterized in that The system comprises a client and a server, wherein: The client is used to execute the method according to any one of claims 1 to 3; The server is used to execute the method according to any one of claims 4 to 6.