Task processing method, device, computer equipment and storage medium
By dividing the to-be-processed objects of the to-be-processed tasks into multiple information elements and assigning them to multiple computer nodes for processing, the problem of information leakage is solved and high confidentiality and information security of task processing are achieved.
Patent Information
- Application Number
- CN202010441237.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-22
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-05-22
AI Technical Summary
It is difficult to effectively avoid information leakage with existing technology, especially when companies review and process information provided by users, employees may obtain sensitive information through comprehensive observation.
By dividing the to-be-processed object of the to-be-processed task into multiple different information elements, and assigning the corresponding sub-tasks to at least two computer nodes for processing, it is ensured that any two sub-tasks continuously processed by the computer nodes come from different to-be-processed elements. processing tasks thereby destroying the integrity of information and improving confidentiality.
It effectively avoids information leakage and improves the confidentiality of task processing, making it impossible for a single sub-task to obtain the complete information of the task to be processed, and enhancing information security.
Smart Images

Figure CN113703934B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a task processing method, apparatus, computer equipment and storage medium. Background Art
[0002] With the development of Internet technology, enterprises can provide users with a variety of services, such as mobile payment services. In order to improve the security of the business, users are often required to provide information, and the enterprise reviews and processes the information provided by users. The staff will observe the information provided by the user in its entirety. For example, if the information provided by the user is a scanned copy of the ID card, the staff can see the entire scanned copy of the ID card, including the name, ID number, etc., which poses a risk of information leakage.
[0003] In traditional technology, information leakage is generally avoided by measures such as improving employee quality and improving internal control systems. However, this method cannot completely eliminate the possibility of information leakage. Summary of the invention
[0004] Based on this, it is necessary to provide a task processing method, device, computer equipment and storage medium that can avoid information leakage in response to the above technical problems.
[0005] A task processing method, the method comprising:
[0006] Get pending tasks and pending objects corresponding to the pending tasks;
[0007] The object to be processed is segmented to obtain more than one information element; each information element is different;
[0008] Establish corresponding subtasks for each information element;
[0009] Allocate each subtask of the task to be processed to at least two computer nodes for processing; any two subtasks processed consecutively by the computer nodes are from different tasks to be processed;
[0010] The processing result of the task to be processed is determined according to the processing result of each subtask of the task to be processed by the computer node.
[0011] A task processing device, comprising:
[0012] An acquisition module is used to acquire pending tasks and pending objects corresponding to the pending tasks;
[0013] A segmentation module, used for segmenting the object to be processed to obtain more than one information element; each information element is different;
[0014] Establishing a module for establishing corresponding subtasks for each information element;
[0015] An allocation module is used to allocate each subtask of the task to be processed to at least two computer nodes for processing; any two subtasks processed consecutively by the computer nodes are from different tasks to be processed;
[0016] The determination module is used to determine the processing result of the task to be processed according to the processing result of each subtask of the task to be processed by the computer node.
[0017] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0018] Get pending tasks and pending objects corresponding to the pending tasks;
[0019] The object to be processed is segmented to obtain more than one information element; each information element is different;
[0020] A corresponding subtask is established for each information element; each subtask of the task to be processed is assigned to at least two computer nodes for processing; any two subtasks processed consecutively by the computer nodes are from different tasks to be processed;
[0021] The processing result of the task to be processed is determined according to the processing result of each subtask of the task to be processed by the computer node.
[0022] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0023] Get pending tasks and pending objects corresponding to the pending tasks;
[0024] The object to be processed is segmented to obtain more than one information element; each information element is different;
[0025] A corresponding subtask is established for each information element; each subtask of the task to be processed is assigned to at least two computer nodes for processing; any two subtasks processed consecutively by the computer nodes are from different tasks to be processed;
[0026] The processing result of the task to be processed is determined according to the processing result of each subtask of the task to be processed by the computer node.
[0027] The above-mentioned task processing method, device, computer equipment and storage medium, on the one hand, divide the object to be processed of the task to be processed into more than one different information elements, and establish a corresponding subtask for each information element; on the other hand, assign each subtask of the task to be processed to at least two computer nodes for processing, and any two subtasks processed continuously by the computer node come from different tasks to be processed. Then, according to the processing results of each subtask of the task to be processed by the computer node, the processing result of the task to be processed is determined. In this way, the information integrity of the task to be processed is destroyed, so that the computer node cannot obtain the complete information of the task to be processed through a single subtask, thereby improving the confidentiality of task processing and avoiding information leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 An application environment diagram of a task processing method in an embodiment;
[0029] Figure 2 is a flowchart of a task processing method in one embodiment;
[0030] Figure 3 This is a schematic diagram of an interface of a function page in an embodiment;
[0031] Figure 4 This is a schematic diagram of the interface of a function page in another embodiment;
[0032] Figure 5 A schematic diagram of allocating subtasks in one embodiment;
[0033] Figure 6 A schematic diagram of allocating subtasks in another embodiment;
[0034] Figure 7 A schematic diagram of redistributing subtasks in one embodiment;
[0035] Figure 8 A schematic diagram of redistributing subtasks in another embodiment;
[0036] Fig. 9 A schematic diagram of a task identifier and a subtask identifier to be processed in one embodiment;
[0037] Fig.10 is a schematic diagram of a segmentation template in one embodiment;
[0038] Fig.11 is a schematic diagram of a segmentation template in another embodiment;
[0039] Fig.12 is a schematic diagram of a segmentation template in yet another embodiment;
[0040] Fig.13A schematic diagram of summarizing the processing results of subtasks in one embodiment;
[0041] Fig.14 is a schematic diagram of a task processing system in one embodiment;
[0042] Fig.15 is a flowchart of a task processing method in another embodiment;
[0043] Fig.16 is a structural block diagram of a task processing device in one embodiment;
[0044] Fig.17 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0046] The task processing method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The terminal 102 obtains the object to be processed, sends the object to be processed to the server 104, and the server 104 obtains the task to be processed according to the object to be processed; then, the server 104 divides the object to be processed to obtain more than one information element; each information element is different; then, the server 104 establishes corresponding subtasks for each information element; then, the server 104 assigns each subtask of the task to be processed to at least two computer nodes for processing, and any two subtasks processed continuously by the computer nodes come from different tasks to be processed; then, the server 104 determines the processing result of the task to be processed according to the processing results of the computer node on each subtask of the task to be processed, and sends the processing result of the task to be processed to the terminal 102.
[0047] The terminal 102 may be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0048] In one embodiment, Figure 2 As shown, a task processing method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:
[0049] Step 202: Obtain the tasks to be processed and the objects to be processed corresponding to the tasks to be processed.
[0050] Among them, the pending tasks are tasks to be processed.
[0051] In one embodiment, the task to be processed includes an object to be processed, and the object to be processed may be a picture, a document, etc. For example, when the object to be processed is a picture, it may be a scanned copy of an ID card, a scanned copy of a business license, a scanned copy of a passport, a scanned copy of a qualification certificate, a scanned copy of a diploma, etc.; when the object to be processed is a document, it may be an electronic form, an electronic contract, an electronic receipt, etc.
[0052] In one embodiment, the pending tasks can be classified according to the processing methods. For example, the pending tasks can be divided into checking tasks, review tasks, input tasks, etc.
[0053] Among them, the verification task refers to verifying whether the information contained in the object to be processed is consistent with the pre-stored information, or for at least two objects to be processed, verifying whether the information contained in the at least two objects to be processed is consistent. The verification task can be the comparison of image information and digital information, such as the address of the scanned ID card provided by the user, and the address of the electronic form provided by the user.
[0054] Audit tasks refer to auditing whether the information contained in the object to be processed meets the corresponding conditions. For example, if the user enters the age of 19, the corresponding condition is "the user's age must be between 25-30", and the age entered by the user forms a comparison relationship with the corresponding condition.
[0055] An input task refers to inputting the information contained in the object to be processed into electronic data in a specific format. An input task can be a transcription of image information, such as inputting the ID number of a scanned ID card provided by the user into the electronic registration information. After the input task is completed, it needs to be converted into a verification task to verify whether the entered ID number is consistent with the ID number on the scanned ID card.
[0056] In one embodiment, the terminal obtains the object to be processed, generates the task to be processed according to the object to be processed, and sends the task to be processed to the server, so that the server obtains the task to be processed. Alternatively, the terminal obtains the object to be processed, sends the object to be processed to the server, and the server generates the task to be processed according to the object to be processed, so that the server obtains the task to be processed.
[0057] Specifically, the terminal can obtain the object to be processed through the function page of the application installed thereon, generate the task to be processed according to the object to be processed and the task type identifier, and send the task to be processed to the server. Alternatively, the terminal can obtain the object to be processed through the function page of the application installed thereon, send the object to be processed and the task type identifier to the server, and the server generates the task to be processed according to the object to be processed and the task type identifier. Among them, the task type identifier can be used to describe the processing method of the task to be processed.
[0058] In one embodiment, the object to be processed can be generated through the function page of the terminal, such as obtaining the data input by the user and generating an electronic form according to the data input by the user. The object to be processed can be obtained through the function page of the terminal, such as calling the camera of the terminal through the function page and obtaining a scanned copy of the qualification certificate through the camera. The object to be processed can also be existing data, which is stored locally in the terminal and uploaded to the function page of the terminal.
[0059] For example, see Figure 3 , Figure 3 This is a schematic diagram of the interface of a function page in an embodiment. As can be seen, Figure 3 The system includes a to-be-filled area 302 and a submit component 304. When data is detected in the fill-in area 302 and the submit component 304 is triggered, an object to be processed can be generated according to the data in the to-be-filled area 302 and sent to the server. Alternatively, refer to Figure 4 , Figure 4 This is a schematic diagram of the interface of a function page in another embodiment. It can be seen that Figure 4 It includes an upload component 402 and a submission component 404. When it is detected that the upload component 402 is triggered, a local file page can pop up. When it is detected that a file in the local file page is selected, the selected file is uploaded to the function page, that is, the object to be processed is uploaded to the function page; when it is detected that the submission component 404 is triggered, the object to be processed can be sent to the server.
[0060] Step 204, segmenting the object to be processed to obtain more than one information element; each information element is different.
[0061] Optionally, a segmentation template corresponding to the object to be processed can be pre-set, and the object to be processed is segmented according to the segmentation template to obtain more than one information element, and the more than one information elements are isolated from each other. Any information element among the more than one information elements cannot be traced back to other information elements outside of the arbitrary information element.
[0062] In some embodiments, any of the more than one information elements cannot be traced back to the to-be-processed task to which its corresponding subtask belongs.
[0063] Step 206: Create corresponding subtasks for each information element.
[0064] Segmentation refers to splitting the complete information into more than one sub-information, so that the complete information cannot be obtained through a single sub-information. For example, if a complete information includes a name and a mobile phone number, the information is segmented to obtain two sub-information, namely, the name and the mobile phone number. If only the name is provided, the mobile phone number cannot be obtained.
[0065] A subtask is a result of segmenting a task to be processed. Each subtask contains part of the object to be processed of the task to be processed. The information contained in the part of the object to be processed is an information element. An information element can be text, numbers, letters, photos, etc. It can be understood that a single information element can be complete data, such as a complete phone number, or incomplete data, such as the last four digits of a phone number.
[0066] Specifically, the information elements corresponding to each subtask of the pending task are different. For example, the pending task includes subtask A, subtask B and subtask C. The information element corresponding to subtask A is "company name, X", the information element corresponding to subtask B is "mobile phone number, X", and the information element corresponding to subtask C is "contact address, X". The information elements corresponding to subtask A, subtask B and subtask C are different.
[0067] Specifically, a single information element cannot trace the pending task to which the corresponding subtask belongs. For example, the pending object is a scanned copy of a diploma, and the information element corresponding to a subtask is "X University", but other information cannot be known through the information element corresponding to the subtask.
[0068] In one embodiment, the number of divisions of the pending task is proportional to the amount of information contained in the pending object. For example, electronic form A includes name, mobile phone number, ID number, and address, and electronic form B includes name and mobile phone number. Then the amount of information contained in electronic form A is greater than the amount of information contained in electronic form B, and the number of divisions of electronic form A is greater than the number of divisions of electronic form B. In this way, the amount of information contained in a single subtask is limited, and it is impossible to trace the pending task to which it belongs based on the subtask.
[0069] Step 208: assign each subtask of the task to be processed to at least two computer nodes for processing; any two subtasks processed consecutively by the computer nodes are from different tasks to be processed.
[0070] The computer nodes are used to process subtasks of the tasks to be processed.
[0071] Specifically, the computer node is a node of the task processing system. The server can communicate with each computer node in the task processing system. The server can view the task processing status of each computer node, and the task processing status may include: currently processed tasks, processed tasks, and pending tasks. The server obtains the task processing status of each computer node, and according to the task processing status of each computer node, distributes each subtask of the pending task to at least two computer nodes for processing, so that any two subtasks processed continuously by the computer node come from different pending tasks. In this way, the computer node cannot obtain the relevant information of the pending task through the subtask, thereby improving the confidentiality of task processing.
[0072] In one embodiment, any two subtasks that are processed continuously by a computer node are from different tasks to be processed, which can be achieved in the following manner: for a task to be processed, the subtasks of the task to be processed can be respectively assigned to different computer nodes for processing. Figure 5 As shown, Figure 5 Schematic diagram of subtasks of tasks to be processed in one embodiment. The task pool is used to store tasks to be processed by computer nodes. It can be seen that the task A to be processed is divided into subtask A1, subtask A2, and subtask A3, and subtask A1, subtask A2, and subtask A3 are respectively assigned to computer node 01, computer node 02, and computer node 03 for processing. Using different computer nodes to process different information elements of the object to be processed ensures that a single or part of the computer nodes cannot obtain the complete object to be processed, thereby improving security.
[0073] In another embodiment, any two subtasks processed consecutively by a computer node are from different pending tasks and can also be implemented in the following manner: for a pending task, the subtasks of the pending task can also be assigned to repeated computer nodes for processing, but the processing order of the subtasks of the pending task is different from the arrangement order of the subtasks of the pending task, and the subtasks of the pending task will not be processed consecutively by the computer node. For example, Figure 6 As shown, Figure 6It is a schematic diagram of subtasks of tasks to be processed in another embodiment. It can be seen that the order of arrangement of each subtask of task A to be processed is: subtask A1, subtask A2, subtask A3, subtask A2 is assigned to computer node 01 for processing, and subtask A1 and subtask A3 are assigned to computer node 02 for processing, but the order of subtask A1 and subtask A3 is disrupted, and subtask A1 and subtask A3 are cross-processed with subtasks of other tasks to be processed. Processing different information elements of the object to be processed in this way not only ensures that a single or part of the computer nodes cannot obtain the complete object to be processed, but also saves the resources of the computer nodes.
[0074] In one embodiment, after obtaining the processing results of each subtask of the task to be processed by the computer node, each subtask of the task to be processed is again assigned to at least two computer nodes for processing, and any two subtasks processed continuously by the computer nodes are from different tasks to be processed. The second processing of each subtask is mainly to check the results of the first processing of each subtask. In this way, by processing the subtask twice, the accuracy of the task processing results is improved.
[0075] In one embodiment, in the process of redistributing tasks, for a task to be processed, the subtasks of the task to be processed may be respectively allocated to different computer nodes for processing. Figure 7 As shown, Figure 7 It is a schematic diagram of reassigning the subtasks of the task to be processed in one embodiment. It can be seen that after obtaining the processing results of the computer node for subtask A1, subtask A2, and subtask A3, subtask A1, subtask A2, and subtask A3 are respectively assigned to computer node 04, computer node 05, and computer node 06 for reprocessing.
[0076] In one embodiment, in the process of redistributing tasks, for a pending task, the subtasks of the pending task may also be assigned to repeated computer nodes for processing, but the processing order of the subtasks of the pending task is different from the arrangement order of the subtasks of the pending task, and the subtasks of the pending task will not be processed continuously by the computer node. Figure 8 As shown, Figure 8This is a schematic diagram of reassigning the subtasks of the pending task in another embodiment. It can be seen that the order of arrangement of the subtasks of the pending task A is: subtask A1, subtask A2, subtask A3. After obtaining the processing results of the computer node on subtask A1, subtask A2, and subtask A3, subtask A2 is assigned to computer node 04 for processing again, and subtask A1 and subtask A3 are assigned to computer node 05 for processing again, but the order of subtask A1 and subtask A3 is disrupted, and subtask A1 and subtask A3 are cross-processed with the subtasks of other pending tasks.
[0077] Step 210 , determining the processing result of the task to be processed according to the processing result of each subtask of the task to be processed by the computer node.
[0078] In one embodiment, after obtaining the processing results of the computer node on each subtask of the task to be processed, the processing result of the task to be processed is determined directly according to the processing results of the computer node on each subtask of the task to be processed.
[0079] Specifically, for verification tasks, when the processing results of all subtasks of the verification task are matched, the processing result of the verification task is matched; when there is a subtask of the verification task with a mismatched processing result, the processing result of the verification task is mismatched. For audit tasks, when the processing results of all subtasks of the audit task are passed, the processing result of the audit task is passed; when there is a subtask of the audit task with a failed processing result, the processing result of the audit task is failed. For input tasks, the subtasks of the input task are pieced together to obtain the processing result of the input task.
[0080] In one embodiment, as described above, after obtaining the processing results of the computer nodes on each subtask of the task to be processed, the subtasks of the task to be processed are redistributed to at least two computer nodes for processing, and the processing results of the task to be processed are determined based on the re-processing results of the computer nodes on each subtask of the task to be processed.
[0081] Specifically, when the computer node's two processing results for each subtask of the task to be processed are consistent, the processing result of the task to be processed is determined according to the computer node's processing results for each subtask of the task to be processed. When the computer node's two processing results for each subtask of the task to be processed are inconsistent, the processing result of the task to be processed is determined according to the computer node's second processing result for each subtask of the task to be processed.
[0082] In one embodiment, the pending task identifier is associated with the subtask identifier. The pending task identifier is a name for the pending task, and the subtask identifier is a name for the subtask. The pending task identifier and the subtask identifier are unique. In this way, the subtasks of the pending task can be summarized according to the association between the pending task identifier and the subtask identifier.
[0083] Optionally, the subtask identifier can be expanded secondary based on the pending task identifier. For example, Fig. 9 As shown, Fig. 9 Schematic diagram of pending task identification and subtask identification in an embodiment. It can be seen that the pending task identification is S001, and the pending task is divided into three subtasks, and the subtask identifications are: S001-01, S001-02, S001-03.
[0084] In the above-mentioned task processing method, on the one hand, the object to be processed of the task to be processed is divided into more than one different information elements, and a corresponding subtask is established for each information element. On the other hand, each subtask of the task to be processed is assigned to at least two computer nodes for processing. Any two subtasks processed continuously by the computer nodes come from different tasks to be processed. Then, the processing result of the task to be processed is determined based on the processing results of the computer nodes on each subtask of the task to be processed. In this way, the information integrity of the task to be processed is destroyed, so that the computer node cannot obtain the complete information of the task to be processed through a single subtask, thereby improving the confidentiality of task processing and avoiding information leakage.
[0085] In one embodiment, segmenting the object to be processed to obtain more than one information element includes: querying a segmentation template corresponding to the object to be processed; and segmenting the object to be processed according to the segmentation template to obtain more than one different information element.
[0086] In one embodiment, mapping relationships between different objects to be processed and segmentation templates may be preset. Optionally, querying the segmentation template corresponding to the object to be processed includes: searching for the segmentation template corresponding to the object to be processed according to the object to be processed and the mapping relationship.
[0087] In one embodiment, the object to be processed corresponding to the task to be processed is segmented according to the segmentation template to obtain more than one different information elements, including: according to the segmentation template, the area where the independent information elements are located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one different information elements.
[0088] Among them, independent information elements are information elements that appear in pairs, which may include element names and element contents. For example, the independent information element is "name, X", "name" is the element name, and "X" is the element content. The segmentation unit is the smallest unit of the segmentation operation.
[0089] It can be understood that the independent information elements of the object to be processed are selectively segmented rather than segmenting all the independent information elements of the object to be processed.
[0090] In one embodiment, generating a subtask corresponding to each information element according to each information element includes: generating a subtask corresponding to each information element according to each information element and a task type.
[0091] In this embodiment, a segmentation template corresponding to the object to be processed is queried, and the object to be processed corresponding to the task to be processed is segmented according to the segmentation template to obtain more than one different information elements, thereby achieving accurate segmentation of the object to be processed.
[0092] In one embodiment, the object to be processed is a picture; the object to be processed is segmented according to a segmentation template to obtain more than one different information elements, including: according to the segmentation template, the image area where the independent information elements are located is used as a segmentation unit, and the object to be processed is segmented to obtain more than one image block.
[0093] Each image block contains independent information elements, and the information elements contained in each image block are different.
[0094] For example, Fig.10 As shown, Fig.10 It is a schematic diagram of a segmentation template in an embodiment. Among them, the object to be processed is a picture, which can be a scanned copy of an ID card. It can be seen that the object to be processed includes multiple independent information elements: "Name, X", "Gender, X", "Geographic Group, X", "Birth, X Year X Month X Day", "Address, X Province X City X District", "Citizen Identity Number, XXXX", and the image area where the independent information elements are located is used as the segmentation unit to segment the object to be processed to obtain six image blocks, each of which contains independent information elements, namely: "Name, X", "Gender, X", "Geographic Group, X", "Birth, X Year X Month X Day", "Address, X Province X City X District", "Citizen Identity Number, XXXX".
[0095] In this embodiment, according to the segmentation template, the image area where the independent information elements are located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one image block. In this way, when the object to be processed is a picture, accurate segmentation of the picture is achieved.
[0096] In one embodiment, before segmenting the object to be processed to obtain more than one information element, it also includes: obtaining a background area of the object to be processed; replacing the background area of the object to be processed with a preset background image; or removing the background area of the object to be processed.
[0097] The background area is the area of the object to be processed except for the information elements. The preset background image can be a pure color picture, such as a pure white picture.
[0098] Specifically, when the object to be processed is a picture, it may be a scan of some documents, such as a scan of an ID card or a scan of a passport. These pictures may have the background color of the document. When the corresponding staff of the computer node processes these pictures, the source of the information can be known by the background color of the document. In order to reduce the information obtained by the staff and further improve the security of the information, the background area of the picture can be replaced or removed.
[0099] In this embodiment, the background area of the object to be processed is replaced with a preset background image, or the background area of the object to be processed is removed, so that the background area of the object to be processed is prevented from exposing the source of the object to be processed, thereby improving the confidentiality of information.
[0100] In one embodiment, the object to be processed is a document; the object to be processed is segmented according to a segmentation template to obtain more than one different information elements, including: according to the segmentation template, the data area where the independent information element is located is used as a segmentation unit, and the object to be processed is segmented to obtain more than one data unit.
[0101] Each data unit contains independent information elements, and the information elements contained in each data unit are different.
[0102] For example, Fig.11 As shown, Fig.11 It is a schematic diagram of the segmentation template in another embodiment. The object to be processed is a document. It can be seen that the object to be processed includes multiple independent information elements: "Name, User A", "Name, User B", "Age, 27", "Age, 32", "Capital Income, 1 million", "Capital Income, 400,000", "Education, Ph.D.", "Education, Undergraduate". The data area where the independent information elements are located is used as the segmentation unit, and the object to be processed is segmented to obtain eight data units, each of which contains independent information elements, namely: "Name, User A", "Name, User B", "Age, 27", "Age, 32", "Capital Income, 1 million", "Capital Income, 400,000", "Education, Ph.D.", "Education, Undergraduate".
[0103] In this embodiment, according to the segmentation template, the data area where the independent information elements are located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one data unit. In this way, when the object to be processed is a document, accurate segmentation of the document is achieved.
[0104] In one embodiment, the object to be processed is segmented according to the segmentation template to obtain more than one different information elements, including: according to the segmentation template, the independent information elements of the object to be processed are segmented to obtain more than one different information elements, wherein the segmentation fineness corresponding to the independent information element is proportional to the privacy level corresponding to the independent information element; the segmentation fineness is used to represent the number of segments of the independent information elements, and the higher the segmentation fineness, the more the number of segments of the independent information elements.
[0105] The privacy level is used to represent the privacy degree of independent information elements. The higher the privacy degree, the higher the privacy level. For example, the privacy level of the ID card number is higher than that of the name.
[0106] For example, Fig.12 As shown, Fig.12 Schematic diagram of a segmentation template in another embodiment. The object to be processed is a picture, which can be a scanned copy of an ID card. It can be seen that the object to be processed includes multiple independent information elements: "Name, X", "Gender, X", "Citizen ID Number, XXXX", etc. The privacy level of "Citizen ID Number, XXXX" is higher than the privacy level of "Name, X" and "Gender, X", so the segmentation fineness of "Citizen ID Number, XXXX" is higher than the segmentation fineness of "Name, X" and "Gender, X", and "Citizen ID Number, XXXX" is segmented into two information elements, while "Name, X" and "Gender, X" are both segmented into one information element.
[0107] In this embodiment, independent information elements of the object to be processed are segmented according to a segmentation template to obtain more than one different information element, wherein the segmentation fineness corresponding to the independent information element is proportional to the privacy level corresponding to the independent information element. In this way, the confidentiality of important information is improved and the leakage of important information is avoided.
[0108] In one embodiment, before allocating each subtask of the task to be processed to at least two computer nodes for processing, it also includes: obtaining task information of each computer node; the task information includes skill information and at least one of the current task volume; the skill information is used to characterize the type of task that the computer node is good at processing; allocating each subtask of the task to be processed to at least two computer nodes for processing includes: according to the task information of each computer node, allocating each subtask of the task to be processed to at least two computer nodes for processing.
[0109] Among them, the task type may include verification tasks, review tasks, input tasks, etc. The task type that the computer node is good at processing can be analyzed based on the task processing situation of the computer node. For example, the task type that the computer node processes the most can be used as the task type that the computer node is good at processing. The current task volume is the number of tasks that the computer node is processing and to be processed.
[0110] In one embodiment, each subtask of the task to be processed can be assigned to at least two computer nodes for processing according to the skill information. Specifically, the computer nodes can be sorted in each task type according to the skill information of the computer nodes, for example, the higher the skill information, the higher the sorting. Under the premise that any two subtasks processed continuously by the computer nodes come from different tasks to be processed, the subtasks are assigned to at least two computer nodes for processing from high to low according to the task type of the subtask and the sorting results of each computer node in the task type.
[0111] In one embodiment, each subtask of the task to be processed can be assigned to at least two computer nodes for processing according to the current task amount. Specifically, the computer nodes can be sorted according to the current task amount of the computer nodes, for example, the smaller the current task amount, the higher the sorting. Under the premise that any two subtasks to be processed continuously by the computer nodes are from different tasks to be processed, the subtasks are assigned to at least two computer nodes for processing from high to low according to the sorting results.
[0112] In one embodiment, each subtask of the task to be processed can be assigned to at least two computer nodes for processing according to the skill information and the current task amount. Specifically, weights can be set for the skill information and the current task amount, and the subtasks can be assigned to at least two computer nodes for processing according to the skill information, the current task amount, and the corresponding weights. For example, according to the task type of the subtask, the ranking result of each computer node in the task type, the weight corresponding to the skill information, the ranking result of the current workload of each computer node, and the weight corresponding to the current workload, the subtasks can be assigned to at least two computer nodes for processing.
[0113] For example, for a subtask, whose task type is a verification task, the skill information of computer node 01, computer node 02, and computer node 03 in this task type is ranked as 1 (corresponding to 45 points), 2 (corresponding to 35 points), and 3 (corresponding to 20 points); the current task volume is ranked as 2 (corresponding to 35 points), 3 (corresponding to 20 points), and 1 (corresponding to 45 points); the weight corresponding to the skill information is 0.4, and the weight corresponding to the current workload is 0.6; the scores of computer node 01, computer node 02, and computer node 03 are 39 points, 26 points, and 35 points, respectively, and computer node 01 has the highest score. If computer node 01 meets the condition that any two subtasks processed continuously come from different tasks to be processed, the subtask will be assigned to computer node 01 for processing.
[0114] In this embodiment, task information of each computer node is obtained, and each subtask of the task to be processed is assigned to at least two computer nodes for processing according to the task information of each computer node, thereby improving the rationality of task distribution and the efficiency of task processing.
[0115] In one embodiment, before determining the processing result of the task to be processed based on the processing results of the computer node on the subtasks of the task to be processed, it also includes: after obtaining the processing results of the computer node on the subtasks of the task to be processed, allocating the subtasks of the task to be processed to at least two computer nodes for processing again; any two subtasks processed continuously by the computer node come from different tasks to be processed; when it is detected that the computer node outputs the processing results of the subtasks of the task to be processed, executing the step of determining the processing result of the task to be processed based on the processing results of the computer node on the subtasks of the task to be processed.
[0116] The second processing of each subtask is mainly to check the results of the first processing of each subtask.
[0117] In one embodiment, in the process of reallocating tasks, for a task to be processed, the subtasks of the task to be processed may be respectively allocated to different computer nodes for processing. Alternatively, in the process of reallocating tasks, for a task to be processed, the subtasks of the task to be processed may also be allocated to repeated computer nodes for processing, but the processing order of the subtasks of the task to be processed is different from the arrangement order of the subtasks of the task to be processed, and the subtasks of the task to be processed will not be processed continuously by the computer node.
[0118] In one embodiment, during the second processing of each subtask, when the two processing results of the computer node on the subtask are consistent, the computer node outputs the processing results of each subtask of the task to be processed. When the two processing results of the computer node on the subtask are inconsistent, the computer node rejects the subtask, and the subtask will be reprocessed until the two processing results of the subtask are consistent, and the computer node outputs the processing result of the subtask.
[0119] In one embodiment, the status of the pending task can be marked. For example, when each subtask of the pending task is not completed, the status of the pending task can be marked as a waiting state; when each subtask of the pending task is completed, the status of the pending task can be marked as a complete state, and the processing results of each subtask of the pending task can be summarized at this time; when the processing result of the pending task is obtained, the status of the pending task can be marked as a completed state; or according to the processing result of the pending task, the status of the pending task can be marked as a passed state or a failed state. In this way, the status of the pending task can be clearly counted and traced, which is convenient for management and analysis.
[0120] Furthermore, the status of the subtask can be marked. For example, when the subtask is not processed, the status of the subtask can be marked as unprocessed; when the subtask is being processed, the status of the subtask can be marked as being processed; when the subtask is processed, the status of the subtask can be marked as processed; or, according to the processing result of the subtask, the status of the subtask can be marked as passed or failed. In this way, the status of the subtask can be clearly counted and traced, which is convenient for management and analysis.
[0121] In this embodiment, after obtaining the processing results of each subtask of the task to be processed by the computer node, each subtask of the task to be processed is again assigned to at least two computer nodes for processing. When it is detected that the computer node outputs the processing results of each subtask of the task to be processed, the processing result of the task to be processed is determined based on the processing results of each subtask of the task to be processed by the computer node. In this way, by processing the subtask twice, the accuracy of the task processing result is improved.
[0122] In one embodiment, each subtask of the task to be processed is assigned to at least two computer nodes for processing, including: each subtask of the task to be processed is assigned to a computer node for processing; each subtask is assigned to at least three computer nodes; and the processing result of each subtask is determined based on the processing results of the at least three computer nodes that process each subtask.
[0123] Specifically, the blockchain principle can be used to have at least three computer nodes process a single subtask, and the processing result of each subtask can be determined based on the processing results of at least three computer nodes that process each subtask.
[0124] Among them, blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain has a consensus mechanism, which refers to the mathematical algorithm that establishes trust and obtains rights and interests between different nodes in the blockchain system. For example, for a transaction, the nodes in the blockchain system that have no trust in each other need to reach a consensus on the legitimacy of the transaction, that is, a certain proportion of the nodes in the blockchain system need to vote to complete the verification and confirmation of the transaction.
[0125] In this embodiment, each subtask of the task to be processed is assigned to a computer node for processing, and each subtask is assigned to at least three computer nodes. The processing result of each subtask is determined based on the processing results of the at least three computer nodes that process each subtask. In this way, the reliability of the processing result of a single subtask is improved.
[0126] In one embodiment, the processing result of each subtask is determined based on the processing results of at least three computer nodes that process each subtask, including: taking each subtask as the current subtask; obtaining the processing results of at least three computer nodes that process the current subtask; determining the result types covered by all processing results of the current subtask; obtaining the proportion of processing results of each result type in all processing results of the current subtask; and selecting the processing result of the result type with the highest proportion as the processing result of the current subtask.
[0127] For verification tasks, the result type can be match or mismatch; for audit tasks, the result type can be pass or fail.
[0128] For example, Fig.13 As shown, Fig.13 It is a schematic diagram summarizing the processing results of subtasks in one embodiment. It can be seen that for the audit subtask A, it is processed by computer node 01, computer node 02, and computer node 03. The processing result of computer node 01 is passed, the processing result of computer node 02 is passed, and the processing result of computer node 03 is failed. The percentage of passed is 2 / 3, the percentage of failed is 1 / 3, and the percentage of passed is the highest. Therefore, the processing result of subtask A is passed.
[0129] In this embodiment, the processing results of at least three computer nodes that process the current subtask are obtained, the result types covered by all the processing results of the current subtask are determined, the proportion of the processing results of each result type in all the processing results of the current subtask is obtained, and the processing result of the result type with the highest proportion is selected as the processing result of the current subtask. In this way, the reliability and tamper-proofness of the processing results of a single subtask are improved.
[0130] In one embodiment, Fig.14 As shown, Fig.14 The task processing system in one embodiment includes: a parent task management center, a task division center, a subtask management center, a distribution platform, and a processing platform.
[0131] Among them, the parent task management center is used to create pending tasks and mark the status of pending tasks; the task segmentation center is used to manage the segmentation templates corresponding to each pending object identifier and segment the pending task into more than one subtask; the subtask management center is used to create subtasks and mark the status of subtasks; the distribution platform is used to assign each subtask of the pending task to at least two computer nodes for processing; the processing platform is used by computer nodes to conduct preliminary and review of subtasks and give the processing results of subtasks, which is a visual work platform. Specifically, the task processing method includes:
[0132] The parent task management center creates pending tasks;
[0133] Next, the task segmentation center queries the segmentation template corresponding to the object to be processed; according to the segmentation template, the area where the independent information element is located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one different information elements; wherein, when the object to be processed is a picture, according to the segmentation template, the image area where the independent information element is located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one image block; or, when the object to be processed is a document, according to the segmentation template, the data area where the independent information element is located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one data unit.
[0134] Furthermore, the subtask management center generates a subtask corresponding to each information element according to each information element, wherein the information element corresponding to each subtask is different and a single information element cannot trace the pending task to which the corresponding subtask belongs.
[0135] Next, the distribution platform obtains the task information of each computer node; the task information includes skill information and at least one of the current task volume; the skill information is used to characterize the type of task that the computer node is good at processing; and according to the task information of each computer node, each subtask of the task to be processed is assigned to at least two computer nodes for processing; wherein any two subtasks processed consecutively by the computer node come from different tasks to be processed.
[0136] Furthermore, after obtaining the processing results of the computer nodes on each subtask of the task to be processed, the processing platform redistributes each subtask of the task to be processed to at least two computer nodes for processing; wherein any two subtasks processed consecutively by the computer nodes come from different tasks to be processed.
[0137] Next, when it is detected that the computer node outputs the processing results of each subtask of the task to be processed, the subtask management center summarizes the processing results of each subtask of the task to be processed by the computer node.
[0138] Furthermore, the parent task management center determines the processing result of the task to be processed.
[0139] In this embodiment, the information integrity of the task to be processed is destroyed, so that the computer node cannot obtain the complete information of the task to be processed through a single subtask, thereby improving the confidentiality of task processing and avoiding information leakage; at the same time, it avoids the problem of unfair auditing in auditing tasks.
[0140] In a specific embodiment, Fig.15 As shown, the task processing method includes the following steps:
[0141] Step 1502, obtaining the tasks to be processed and the objects to be processed corresponding to the tasks to be processed.
[0142] Step 1504, querying the segmentation template corresponding to the object to be processed, and segmenting the object to be processed corresponding to the task to be processed according to the segmentation template, taking the area where the independent information element is located as the segmentation unit, to obtain more than one different information element.
[0143] Among them, when the object to be processed is a picture, according to the segmentation template, the image area where the independent information elements are located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one image block; or, when the object to be processed is a document, according to the segmentation template, the data area where the independent information elements are located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one data unit.
[0144] Step 1506, corresponding subtasks are established for each information element; the information elements corresponding to each subtask are different, and a single information element cannot trace the pending task to which the corresponding subtask belongs.
[0145] Step 1508, obtaining task information of each computer node; the task information includes at least one of skill information and current task volume; the skill information is used to characterize the type of task that the computer node is good at processing.
[0146] Step 1510, assigning each subtask of the task to be processed to at least two computer nodes for processing according to the task information of each computer node; any two subtasks processed consecutively by the computer nodes are from different tasks to be processed.
[0147] Step 1512, after obtaining the processing results of the computer nodes on each subtask of the task to be processed, each subtask of the task to be processed is again assigned to at least two computer nodes for processing; any two subtasks processed consecutively by the computer nodes are from different tasks to be processed.
[0148] Among them, in the process of processing each subtask for the second time, when the two processing results of the computer node on the subtask are consistent, the computer node outputs the processing results of each subtask of the task to be processed. When the two processing results of the computer node on the subtask are inconsistent, the computer node rejects the subtask, and the subtask will be reprocessed until the two processing results of the subtask are consistent, and the computer node outputs the processing result of the subtask.
[0149] Step 1514, when it is detected that the computer node outputs the processing results of each subtask of the task to be processed, the processing result of the task to be processed is determined according to the processing results of each subtask of the task to be processed by the computer node.
[0150] In this embodiment, the information integrity of the task to be processed is destroyed, so that the computer node cannot obtain the complete information of the task to be processed through a single subtask, thereby improving the confidentiality of task processing and avoiding information leakage.
[0151] It should be understood that although Figure 2 , Fig.15 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Fig.15At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0152] In one embodiment, Fig.16 As shown, a task processing device is provided, which can be a part of a computer device using a software module or a hardware module, or a combination of the two. The device specifically includes: an acquisition module 1602, a segmentation module 1604, a creation module 1606, an allocation module 1608 and a determination module 1610, wherein:
[0153] An acquisition module 1602 is used to acquire tasks to be processed and objects to be processed corresponding to the tasks to be processed;
[0154] A segmentation module 1604 is used to segment the object to be processed to obtain more than one information element; each information element is different;
[0155] Establishing module 1606, for establishing corresponding subtasks for each information element;
[0156] The allocation module 1608 is used to allocate each subtask of the task to be processed to at least two computer nodes for processing; any two subtasks processed consecutively by the computer nodes are from different tasks to be processed;
[0157] The determination module 1610 is used to determine the processing result of the task to be processed according to the processing result of each subtask of the task to be processed by the computer node.
[0158] In the above-mentioned task processing device, on the one hand, the object to be processed of the task to be processed is divided into more than one different information elements, and a corresponding subtask is established for each information element. On the other hand, each subtask of the task to be processed is assigned to at least two computer nodes for processing. Any two subtasks processed continuously by the computer nodes come from different tasks to be processed. Then, the processing result of the task to be processed is determined based on the processing results of the computer nodes on each subtask of the task to be processed. In this way, the information integrity of the task to be processed is destroyed, so that the computer node cannot obtain the complete information of the task to be processed through a single subtask, thereby improving the confidentiality of task processing and avoiding information leakage.
[0159] In one embodiment, the segmentation module 1604 is further used to: query a segmentation template corresponding to the object to be processed; and segment the object to be processed according to the segmentation template to obtain more than one different information element.
[0160] In this embodiment, a segmentation template corresponding to the object to be processed is queried, and the object to be processed corresponding to the task to be processed is segmented according to the segmentation template to obtain more than one different information elements, thereby achieving accurate segmentation of the object to be processed.
[0161] In one embodiment, the object to be processed is a picture; the segmentation module 1604 is further used to: segment the object to be processed according to the segmentation template, using the image area where the independent information elements are located as the segmentation unit, to obtain more than one image block.
[0162] In this embodiment, according to the segmentation template, the image area where the independent information elements are located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one image block. In this way, when the object to be processed is a picture, accurate segmentation of the picture is achieved.
[0163] In one embodiment, the acquisition module 1602 is also used to: acquire the background area of the object to be processed; the task processing device also includes a replacement module, the replacement module is used to: replace the background area of the object to be processed with a preset background image; or, remove the background area of the object to be processed.
[0164] In this embodiment, the background area of the object to be processed is replaced with a preset background image, or the background area of the object to be processed is removed, so that the background area of the object to be processed is prevented from exposing the source of the object to be processed, thereby improving the confidentiality of information.
[0165] In one embodiment, the object to be processed is a document; the segmentation module 1604 is further used to: segment the object to be processed according to the segmentation template, taking the data area where the independent information elements are located as the segmentation unit, to obtain more than one data unit.
[0166] In this embodiment, according to the segmentation template, the data area where the independent information elements are located is used as the segmentation unit, and the object to be processed corresponding to the task to be processed is segmented to obtain more than one data unit. In this way, when the object to be processed is a document, accurate segmentation of the document is achieved.
[0167] In one embodiment, the segmentation module 1604 is further used to: segment the independent information elements of the object to be processed according to the segmentation template to obtain more than one different information elements, wherein the segmentation fineness corresponding to the independent information element is proportional to the privacy level corresponding to the independent information element; the segmentation fineness is used to characterize the number of segments of the independent information element, and the higher the segmentation fineness, the more the number of segments of the independent information element.
[0168] In this embodiment, independent information elements of the object to be processed are segmented according to a segmentation template to obtain more than one different information element, wherein the segmentation fineness corresponding to the independent information element is proportional to the privacy level corresponding to the independent information element. In this way, the confidentiality of important information is improved and the leakage of important information is avoided.
[0169] In one embodiment, the acquisition module 1602 is also used to: obtain task information of each computer node; the task information includes skill information and at least one of the current task volume; the skill information is used to characterize the type of task that the computer node is good at processing; the allocation module 1608 is also used to: according to the task information of each computer node, allocate each subtask of the task to be processed to at least two computer nodes for processing.
[0170] In this embodiment, task information of each computer node is obtained, and each subtask of the task to be processed is assigned to at least two computer nodes for processing according to the task information of each computer node, thereby improving the rationality of task distribution and the efficiency of task processing.
[0171] In one embodiment, the allocation module 1608 is also used to: after obtaining the processing results of the computer node on each subtask of the task to be processed, allocate each subtask of the task to be processed to at least two computer nodes for processing again; any two subtasks processed continuously by the computer node come from different tasks to be processed; the determination module 1610 is also used to: when it is detected that the computer node outputs the processing results of each subtask of the task to be processed, determine the processing result of the task to be processed according to the processing results of the computer node on each subtask of the task to be processed.
[0172] In this embodiment, after obtaining the processing results of each subtask of the task to be processed by the computer node, each subtask of the task to be processed is again assigned to at least two computer nodes for processing. When it is detected that the computer node outputs the processing results of each subtask of the task to be processed, the processing result of the task to be processed is determined based on the processing results of each subtask of the task to be processed by the computer node. In this way, by processing the subtask twice, the accuracy of the task processing result is improved.
[0173] In one embodiment, the allocation module 1608 is further used to: allocate each subtask of the task to be processed to a computer node for processing; each subtask is allocated to at least three computer nodes; and the processing result of each subtask is determined based on the processing results of at least three computer nodes that process each subtask.
[0174] In this embodiment, each subtask of the task to be processed is assigned to a computer node for processing, and each subtask is assigned to at least three computer nodes. The processing result of each subtask is determined based on the processing results of the at least three computer nodes that process each subtask. In this way, the reliability of the processing result of a single subtask is improved.
[0175] In one embodiment, the allocation module 1608 is also used to: take each subtask as the current subtask; obtain the processing results of at least three computer nodes that process the current subtask; determine the result types covered by all processing results of the current subtask; obtain the proportion of processing results of each result type in all processing results of the current subtask; and select the processing result of the result type with the highest proportion as the processing result of the current subtask.
[0176] In this embodiment, the processing results of at least three computer nodes that process the current subtask are obtained, the result types covered by all the processing results of the current subtask are determined, the proportion of the processing results of each result type in all the processing results of the current subtask is obtained, and the processing result of the result type with the highest proportion is selected as the processing result of the current subtask. In this way, the reliability and tamper-proofness of the processing results of a single subtask are improved.
[0177] For the specific definition of the task processing device, please refer to the definition of the task processing method above, which will not be repeated here. Each module in the above-mentioned task processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0178] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.17 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store task processing data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a task processing method is implemented.
[0179] Those skilled in the art will understand that Fig.17The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0180] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0181] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0182] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0183] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0184] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A task processing method, characterized in that: The method comprises: Obtaining pending tasks and pending objects corresponding to the pending tasks; The object to be processed is segmented to obtain more than one information element; each of the information elements is different, the information elements are isolated from each other, and any information element among the more than one information elements cannot be traced back to other information elements outside any information element; Establishing corresponding subtasks for each of the information elements; Allocate each established subtask to at least two computer nodes for processing; any two subtasks processed consecutively by the computer nodes come from different tasks to be processed, and for a task to be processed, the subtasks of the task to be processed are allocated to repeated computer nodes for processing, but the processing order of the subtasks of the task to be processed is different from the arrangement order of the subtasks of the task to be processed, and the subtasks of the task to be processed will not be processed consecutively by the computer node; The processing result of the task to be processed is determined according to the processing result of the computer node on each subtask of the task to be processed.
2. The method according to claim 1, characterized in that The segmenting of the object to be processed to obtain more than one information element includes: Querying a segmentation template corresponding to the object to be processed; The object to be processed is segmented according to the segmentation template to obtain more than one different information element.
3. The method according to claim 2, characterized in that The object to be processed is a picture; The object to be processed is segmented according to the segmentation template to obtain more than one different information element, including: According to the segmentation template, the image region where the independent information element is located is used as a segmentation unit to segment the object to be processed to obtain more than one image block.
4. The method according to claim 3, characterized in that Before segmenting the object to be processed to obtain more than one information element, the method further includes: Acquire the background area of the object to be processed; The background area of the object to be processed is replaced with a preset background image; or, the background area of the object to be processed is removed.
5. The method according to claim 2, characterized in that: The object to be processed is a document; The object to be processed is segmented according to the segmentation template to obtain more than one different information element, including: According to the segmentation template, the object to be processed is segmented with the data area where the independent information element is located as the segmentation unit to obtain more than one data unit.
6. The method according to claim 2, characterized in that The object to be processed is segmented according to the segmentation template to obtain more than one different information element, including: According to the segmentation template, the independent information elements of the object to be processed are segmented to obtain more than one different information elements, wherein the segmentation fineness corresponding to the independent information element is proportional to the privacy level corresponding to the independent information element; the segmentation fineness is used to characterize the number of segments of the independent information element, and the higher the segmentation fineness, the more the independent information element is segmented.
7. The method according to claim 1, characterized in that Before allocating each subtask of the task to be processed to at least two computer nodes for processing, the method further includes: Acquire task information of each of the computer nodes; the task information includes at least one of skill information and current task volume; the skill information is used to characterize the type of task that the computer node is good at processing; The step of allocating each subtask of the task to be processed to at least two computer nodes for processing includes: According to the task information of each of the computer nodes, each subtask of the task to be processed is assigned to at least two computer nodes for processing.
8. The method according to claim 1, characterized in that Before determining the processing result of the task to be processed according to the processing result of each subtask of the task to be processed by the computer node, the method further includes: After obtaining the processing results of each subtask of the task to be processed by the computer node, each subtask of the task to be processed is again assigned to at least two computer nodes for processing; any two subtasks processed continuously by the computer node are from different tasks to be processed; When it is detected that the computer node outputs the processing results of each subtask of the task to be processed, the step of determining the processing result of the task to be processed according to the processing results of each subtask of the task to be processed by the computer node is performed.
9. The method according to claim 1, characterized in that: The step of allocating each subtask of the task to be processed to at least two computer nodes for processing includes: Allocating each subtask of the task to be processed to the computer nodes for processing; each subtask is allocated to at least three computer nodes; The processing result of each subtask is determined according to the processing results of at least three computer nodes that process each subtask.
10. The method according to claim 9, characterized in that Determining the processing result of each subtask according to the processing results of at least three computer nodes that process each subtask includes: Taking each of the subtasks as the current subtask; Obtaining processing results of at least three computer nodes that process the current subtask; Determine the result types covered by all processing results of the current subtask; Obtain the proportion of processing results of each result type in all processing results of the current subtask; The processing result of the result type with the highest proportion is selected as the processing result of the current subtask.
11. A task processing device, characterized in that: The device comprises: An acquisition module, used to acquire tasks to be processed and objects to be processed corresponding to the tasks to be processed; A segmentation module, used for segmenting the object to be processed to obtain more than one information element; each of the information elements is different, and the information elements are isolated from each other, and any information element among the more than one information elements cannot be traced back to other information elements outside any information element; An establishment module, used to establish corresponding subtasks for each of the information elements; an allocation module, for allocating each subtask of the task to be processed to at least two computer nodes for processing; any two subtasks processed continuously by the computer nodes are from different tasks to be processed, and for a task to be processed, the subtasks of the task to be processed are allocated to repeated computer nodes for processing, but the processing order of the subtasks of the task to be processed is different from the arrangement order of the subtasks of the task to be processed, and the subtasks of the task to be processed will not be processed continuously by the computer node; The determination module is used to determine the processing result of the task to be processed according to the processing result of each subtask of the task to be processed by the computer node.
12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Task allocation method and device
CN108228320A
Computing poweralculation capability sharing method, device and equipment and medium
CN109614242A
A data processing method and device
CN109815011A
Data processing method and device, computer equipment and storage medium
CN110457117A
Parallel multi-target tracking device
JP2001099925A
