A method and system for digital processing, storage and reading of personnel file images
Through image processing and secure distributed storage algorithms, combined with balancing and security correlation algorithms, the problem of security risks in archive digital management is solved, and efficient and secure archive digital storage is achieved.
Patent Information
- Application Number
- CN202410969121.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-19
AI Technical Summary
Existing archive digital management solutions lack security planning, resulting in greater security risks in digital storage and prone to large-scale leaks of personal data.
A method based on image processing and secure distributed storage algorithms is used to generate hash codes for distributed storage, combined with balancing and security association algorithms to ensure the security and load balancing of data storage.
It effectively reduces the risk of data loss when data storage nodes are attacked or damaged, and improves the security and management efficiency of archive digital storage.
Smart Images

Figure CN118503463B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital archive management, and in particular to a method and system for digital processing, storage and reading of personnel archive images. Background Art
[0002] At present, most of the archive management methods are still at the most primitive paper archive level, with problems such as low efficiency, repetitive work, easy errors and the need for a large number of management personnel. Therefore, converting paper archives into digital archives for storage and management can effectively improve the efficiency of personnel archive management.
[0003] The existing digital archive management solutions lack comprehensive assessment and management of archives, and the storage of archives lacks reasonable security planning, which leads to major security risks in the digital storage of archives and is prone to large-scale leakage of personal data. Summary of the invention
[0004] In order to solve the above technical problems, a method and system for digital processing, storage and reading of personnel file images are provided. This technical solution solves the problem that the digital storage of the above files has great security risks and is prone to large-scale leakage of personal data.
[0005] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0006] A method for digital processing, storage and reading of personnel file images, comprising:
[0007] Acquire the original file image of the personnel file, and perform image processing on the original file image to obtain the file image;
[0008] Generate a hash code that corresponds to each file based on the file attributes;
[0009] Adopting a secure distributed storage algorithm, the archival images of all personnel files are distributed and stored in the archival data storage center;
[0010] Input the retrieved archive information through the archive retrieval module, and generate a retrieval hash address based on the retrieved archive information;
[0011] Based on the retrieval hash address, a search is performed in the archive data storage center to obtain all archive images corresponding to the hash codes that meet the retrieval hash address as the retrieval archive images;
[0012] Map the FTP site for retrieving archive images to an application or virtual directory under the Web service port, and define user access rights for users to access.
[0013] Preferably, the step of performing image processing on the original archival image to obtain the archival image specifically includes:
[0014] The original archive image is gray-scaled by using the weighted average method to obtain a gray-scale image;
[0015] Calculate the row grayscale average and column grayscale average in the grayscale image respectively;
[0016] Calculate the difference between the row grayscale average values of adjacent pixel rows respectively, and take the pixel rows whose row grayscale average value difference exceeds the mutation threshold as the identified pixel rows;
[0017] Calculate the difference between the column grayscale average values of adjacent pixel columns respectively, and take the pixel columns whose column grayscale average value difference exceeds the mutation threshold as the identification pixel columns;
[0018] Select two identification pixel rows with a spacing equal to the length of the personnel file from the identification pixel rows as boundary rows;
[0019] Select two identification pixel rows whose spacing is equal to the width of the personnel file from the identification pixel columns as boundary columns;
[0020] Output the area image enclosed by the boundary rows and the boundary columns as an archive image;
[0021] Among them, the weighted average formula is:
[0022]
[0023] In the formula, is the grayscale of the pixel at the i-th row and j-th column, , , are the weighted coefficients of human eye sensitivity to red, green and blue, respectively. , , They are the red, green and blue color components of the pixel in the i-th row and j-th column respectively.
[0024] Preferably, the secure distributed storage algorithm specifically includes:
[0025] Based on the size of the archive image corresponding to the personnel file and the storage space size of the archive data storage center, generate several preliminary distributed storage solutions that can meet the storage space constraints;
[0026] Based on the balanced storage algorithm, calculate the balanced storage index of each primary distributed storage solution;
[0027] Based on the security association algorithm, calculate the security storage index of each primary distributed storage solution;
[0028] Based on the balanced storage index and safe storage index of the preliminarily selected distributed storage solutions, the storage rationality index of each preliminarily selected distributed storage solution is calculated through a comprehensive evaluation formula;
[0029] Select the primary distributed storage solution with the smallest storage rationality index as the storage solution for the archival images of personnel files, and distribute and store the archival images of all personnel files in the archival data storage center;
[0030] The comprehensive evaluation formula is specifically:
[0031]
[0032] In the formula, To select reasonable storage indicators for the distributed storage solution, To preliminarily select the balanced storage index of the distributed storage solution, To select the security storage index of the distributed storage solution, is the safety correction factor.
[0033] Preferably, the generating of a plurality of preliminary distributed storage solutions that can meet the storage space limitation based on the file image size corresponding to the personnel file and the storage space size of the file data storage center specifically includes:
[0034] determining the file size of each archival image to be stored;
[0035] Determine the used space size and maximum space size of each data storage node in the archive data storage center;
[0036] Based on the file size of each archival image to be stored and the used space size and maximum space size of each data storage node in the archival data storage center, a distributed storage constraint condition is constructed;
[0037] Determine that all distributed storage solutions that meet the distributed storage restriction conditions are distributed storage solutions;
[0038] The mathematical expression of the distributed storage restriction condition is:
[0039]
[0040] In the formula, is the file size of the i-th archive image to be stored assigned to the j-th data storage node, is the maximum space size of the jth data storage node, is the used space size of the jth data storage node, is the number of archive images to be stored allocated to the jth data storage node, and is the total number of data storage nodes in the archive data storage center.
[0041] Preferably, the balanced storage algorithm is specifically:
[0042] After determining to store according to the primary distributed storage solution, the used space size and maximum space size of each data storage node are recorded as the simulated used space size and simulated maximum space size of the data storage node;
[0043] Calculate the ratio of the simulated used space size of the data storage node to the simulated maximum space size as the simulated storage ratio of the data storage node;
[0044] Calculate the standard deviation of the simulated storage ratio of all storage nodes as the balanced storage indicator for the preliminary distributed storage solution.
[0045] Preferably, the security association algorithm specifically includes:
[0046] After determining to store according to the primary distributed storage solution, the archive storage state of each data storage node is recorded as the simulated archive storage state;
[0047] Under the simulated archive storage state, different categories of files belonging to the same person are aggregated to obtain the archive storage state of each person in the data storage node;
[0048] Based on the archive storage status of each person in the data storage node, determine the archive relevance security index of each person in the data storage node;
[0049] Determine the importance of personnel;
[0050] Based on the personnel importance weight, the data storage node is weighted and summed for each personnel's file relevance security index to obtain the personnel file storage risk index of the data storage node;
[0051] The security storage index of the preliminary distributed storage solution is obtained by summing up the personnel file storage risk indicators of all data storage nodes.
[0052] Preferably, the step of determining the file relevance security index of the data storage node for each person based on the file storage status of the data storage node for each person specifically includes:
[0053] Based on the content of personnel information recorded in different archive combinations, determine the correlation indicators of different archive combinations;
[0054] Determine the combination of personnel file types stored in the data storage node under the simulated file storage state, and based on the set association criteria, determine the association index of the combination of personnel file types stored in the data storage node as the data storage node's security index for personnel file association.
[0055] Furthermore, a system for digital processing, storage and reading of personnel file images is proposed, which is used to implement the digital processing, storage and reading method of personnel file images as described above, comprising:
[0056] An archive image acquisition device, the archive image acquisition device is used to acquire the original archive image of the personnel file, and perform image processing on the original archive image to obtain the archive image;
[0057] Among them, for archival image acquisition, the following three methods can be used in this scheme:
[0058] Import existing files. For existing archive images, the system supports batch import. There is no limit on the size and number of image files imported at one time. Supports multiple image formats such as jpg, png, gif, etc. BMP images are not recommended because they take up a lot of space. For files in pdf format, although the system supports importing and browsing, it cannot classify each page of the file, and cannot support the allocation of browsing permissions for each page of the image. Therefore, this method does not recommend importing files in pdf format.
[0059] Scanners, all scanners currently on the market basically support the TWAIN standard protocol. TWAIN, or Technology Without An Interesting Name, is a communication standard between software and image input devices such as digital cameras and scanners. Based on this standard, this method can easily call the scanner's SDK for scanning.
[0060] The archive images obtained by the scanner have high resolution, good grayscale control, and high image quality, but the files are large. The biggest disadvantage is that the entire archive needs to be disassembled, scanned page by page, and then bound, which is very time-consuming and labor-intensive.
[0061] High-speed scanner is a popular image acquisition device. The quality of the archive images obtained by the high-speed scanner is moderate. Under normal circumstances, there is no need to disassemble the archives. You can block and scan them by relying on a black cardboard. It can be operated by one person and is simple and easy. Using the high-speed scanner to acquire images is the recommended channel for this method.
[0062] An archive encoding module, the archive encoding module is electrically connected to the archive image acquisition device, and the archive encoding module is used to generate a hash code corresponding to the archive based on the archive attribute;
[0063] An archive storage module, the archive storage module is electrically connected to the archive image acquisition device and the archive encoding module, and the archive storage module is used to adopt a secure distributed storage algorithm to distribute and store the archive images of all personnel archives in an archive data storage center;
[0064] An archive retrieval module is electrically connected to the archive storage module, and is used to input archive information to be retrieved, and generate a retrieval hash address based on the archive information to be retrieved, and perform a search in the archive data storage center based on the retrieval hash address to obtain all archive images corresponding to the hash codes that meet the retrieval hash address as the retrieval archive image, and map the FTP site for retrieving the archive image to an application or virtual directory under the Web service port, and formulate user access rights for user retrieval.
[0065] Optionally, the archive storage module includes:
[0066] A preliminary allocation unit, the preliminary allocation unit is used to generate a plurality of preliminary distributed storage solutions that can meet the storage space limitation based on the file image size corresponding to the personnel file and the storage space size of the file data storage center;
[0067] A balanced evaluation unit, the balanced evaluation unit is used to calculate a balanced storage index of each preliminarily selected distributed storage solution based on a balanced storage algorithm;
[0068] An association evaluation unit, the association evaluation unit being used to calculate a security storage index of each preliminarily selected distributed storage solution based on a security association algorithm;
[0069] A comprehensive evaluation unit is used to calculate the storage rationality index of each preliminary distributed storage scheme based on the balanced storage index and the safe storage index of the preliminary distributed storage scheme through a comprehensive evaluation formula, and screen out the preliminary distributed storage scheme with the smallest storage rationality index as the storage scheme for the archival images of the personnel files, and distribute and store the archival images of all personnel files in the archival data storage center.
[0070] Furthermore, a computer-readable storage medium is proposed, on which a computer-readable program is stored. When the computer-readable program is called, it executes the above-mentioned method for digital processing, storage and viewing of personnel file images.
[0071] Compared with the prior art, the present invention has the following beneficial effects:
[0072] The present invention proposes a digital processing, storage and reading scheme for personnel file images. When the personnel file images are digitally processed and stored, balanced storage calculation is performed in combination with the hardware storage status of the file data storage center to ensure the storage load balance of each data storage node in the file data storage center. At the same time, a security association algorithm is introduced to comprehensively analyze and plan the storage scheme for the files to be stored based on the data leakage and loss risks when various types of files are stored in the same data storage node, which can effectively reduce the data loss caused by the attack and damage of the data storage node, thereby effectively ensuring the security of the digital storage of the files. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 A flow chart of the method for digital processing, storage and reading of personnel file images proposed by the present invention;
[0074] Figure 2 A flow chart of a method for performing image processing on an original archival image to obtain an archival image in the present invention;
[0075] Figure 3 A flowchart of the method for the secure distributed storage algorithm of the present invention;
[0076] Figure 4 A flow chart of a method for generating a plurality of preliminary distributed storage solutions that can meet storage space constraints in the present invention;
[0077] Figure 5 A method flow chart of a balanced storage algorithm in the present invention;
[0078] Figure 6 is a method flow chart of the security association algorithm in the present invention;
[0079] Figure 7 A flow chart of a method for determining a data storage node's file relevance security index for each person in the present invention;
[0080] Figure 8 The present invention provides a system structure diagram for the digital processing, storage and reading of personnel file images;
[0081] Fig. 9 It is a schematic diagram of the structure of the computer-readable storage medium in the present invention. DETAILED DESCRIPTION
[0082] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art may think of other obvious variations.
[0083] Reference Figure 1As shown, a method for digital processing, storage and reading of personnel file images comprises:
[0084] Acquire the original file image of the personnel file, and perform image processing on the original file image to obtain the file image;
[0085] Generate a hash code that corresponds to each file based on the file attributes;
[0086] Adopting a secure distributed storage algorithm, the archival images of all personnel files are distributed and stored in the archival data storage center;
[0087] Input the retrieved archive information through the archive retrieval module, and generate a retrieval hash address based on the retrieved archive information;
[0088] Based on the retrieval hash address, a search is performed in the archive data storage center to obtain all archive images corresponding to the hash codes that meet the retrieval hash address as the retrieval archive images;
[0089] Map the FTP site for retrieving archive images to an application or virtual directory under the Web service port, and define user access rights for users to access.
[0090] When digitally processing and storing personnel file images, this solution combines the hardware storage status of the archive data storage center to perform balanced storage calculations to ensure that the storage load of each data storage node in the archive data storage center is balanced. At the same time, a security association algorithm is introduced to conduct a comprehensive analysis based on the risks of data leakage and loss when various types of archives are stored in the same data storage node to plan the storage plan for the archives to be stored.
[0091] Reference Figure 2 As shown, performing image processing on the original archive image to obtain the archive image specifically includes:
[0092] The original archive image is gray-scaled by using the weighted average method to obtain a gray-scale image;
[0093] Calculate the row grayscale average and column grayscale average in the grayscale image respectively;
[0094] Calculate the difference between the row grayscale average values of adjacent pixel rows respectively, and take the pixel rows whose row grayscale average value difference exceeds the mutation threshold as the identified pixel rows;
[0095] Calculate the difference between the column grayscale average values of adjacent pixel columns respectively, and take the pixel columns whose column grayscale average value difference exceeds the mutation threshold as the identification pixel columns;
[0096] Select two identification pixel rows whose interval is equal to the length of the personnel file from the identification pixel rows as boundary rows;
[0097] Select two identification pixel rows whose spacing is equal to the width of the personnel file from the identification pixel columns as boundary columns;
[0098] Output the area image enclosed by the boundary rows and the boundary columns as an archive image;
[0099] The weighted average formula is:
[0100]
[0101] In the formula, is the grayscale of the pixel at the i-th row and j-th column, , , are the weighted coefficients of human eye sensitivity to red, green and blue, respectively. , , They are the red, green and blue color components of the pixel in the i-th row and j-th column respectively.
[0102] Reference Figure 3 As shown, the secure distributed storage algorithm specifically includes:
[0103] Based on the size of the archive image corresponding to the personnel file and the storage space size of the archive data storage center, generate several preliminary distributed storage solutions that can meet the storage space constraints;
[0104] Based on the balanced storage algorithm, calculate the balanced storage index of each primary distributed storage solution;
[0105] Based on the security association algorithm, calculate the security storage index of each primary distributed storage solution;
[0106] Based on the balanced storage index and safe storage index of the preliminarily selected distributed storage solutions, the storage rationality index of each preliminarily selected distributed storage solution is calculated through a comprehensive evaluation formula;
[0107] Select the primary distributed storage solution with the smallest storage rationality index as the storage solution for the archival images of personnel files, and distribute and store the archival images of all personnel files in the archival data storage center;
[0108] The comprehensive evaluation formula is as follows:
[0109]
[0110] In the formula, To select reasonable storage indicators for the distributed storage solution, To preliminarily select the balanced storage index of the distributed storage solution, To select the security storage index of the distributed storage solution, is the safety correction factor.
[0111] The security correction factor can be dynamically set according to the unit's data security level. The higher the security level, the greater the security correction factor.
[0112] Reference Figure 4 As shown, based on the file image size corresponding to the personnel file and the storage space size of the file data storage center, several preliminary distributed storage solutions that can meet the storage space constraints are generated, including:
[0113] determining the file size of each archival image to be stored;
[0114] Determine the used space size and maximum space size of each data storage node in the archive data storage center;
[0115] Based on the file size of each archival image to be stored and the used space size and maximum space size of each data storage node in the archival data storage center, a distributed storage constraint condition is constructed;
[0116] Determine that all distributed storage solutions that meet the distributed storage restriction conditions are distributed storage solutions;
[0117] The mathematical expression of the distributed storage constraint is:
[0118]
[0119] In the formula, is the file size of the i-th archive image to be stored assigned to the j-th data storage node, is the maximum space size of the jth data storage node, is the used space size of the jth data storage node, is the number of archive images to be stored allocated to the jth data storage node, and is the total number of data storage nodes in the archive data storage center.
[0120] Reference Figure 5 As shown in the figure, the balanced storage algorithm is specifically as follows:
[0121] After determining to store according to the primary distributed storage solution, the used space size and maximum space size of each data storage node are recorded as the simulated used space size and simulated maximum space size of the data storage node;
[0122] Calculate the ratio of the simulated used space size of the data storage node to the simulated maximum space size as the simulated storage ratio of the data storage node;
[0123] Calculate the standard deviation of the simulated storage ratio of all storage nodes as the balanced storage indicator for the preliminary distributed storage solution.
[0124] It can be understood that the standard deviation represents the degree of discreteness of the data. The smaller the standard deviation, the lower the discreteness of the data and the more concentrated the data. In this scheme, the standard deviation of the simulated storage ratio of the storage nodes is used as the balanced storage indicator of the preliminary distributed storage scheme. The smaller the balanced storage indicator, the more balanced the storage load of each data storage node is under the preliminary distributed storage scheme.
[0125] Reference Figure 6 As shown, the security association algorithm specifically includes:
[0126] After determining to store according to the primary distributed storage solution, the archive storage state of each data storage node is recorded as the simulated archive storage state;
[0127] Under the simulated archive storage state, different categories of files belonging to the same person are aggregated to obtain the archive storage state of each person in the data storage node;
[0128] Based on the archive storage status of each person in the data storage node, determine the archive relevance security index of each person in the data storage node;
[0129] Determine the importance of personnel;
[0130] Based on the personnel importance weight, the data storage node is weighted and summed for each personnel's file relevance security index to obtain the personnel file storage risk index of the data storage node;
[0131] The security storage index of the preliminary distributed storage solution is obtained by summing up the personnel file storage risk indicators of all data storage nodes.
[0132] Reference Figure 7 As shown, based on the archive storage status of each person in the data storage node, determining the archive relevance security index of each person in the data storage node specifically includes:
[0133] Based on the content of personnel information recorded in different archive combinations, determine the correlation indicators of different archive combinations;
[0134] Determine the combination of personnel file types stored in the data storage node under the simulated file storage state, and based on the set association criteria, determine the association index of the combination of personnel file types stored in the data storage node as the data storage node's security index for personnel file association.
[0135] Among them, the ten major categories of archives are resume materials, autobiography materials, appraisal and assessment materials, academic training and professional and technical materials, political review materials, party and league materials, reward materials, disciplinary punishment materials, appointment and dismissal materials, and other reference materials; in determining the archive combination, there are a total of For each type of archive combination, determine the proportion of all personal information recorded in each archive combination to all personal information recorded in all archive materials, as the association indicator for the archive combination;
[0136] It can be understood that the greater the proportion of all personal information contents recorded in the archive combination to all personal information contents recorded in all archival materials, the more detailed the personal information recorded in the archive combination is. When the data node is attacked and causes data loss or leakage, the greater the personal information loss caused. Based on this, this scheme uses the proportion of all personal information contents recorded in the archive combination to all personal information contents recorded in all archival materials as the correlation indicator of the archive combination, and when conducting storage planning, try to avoid storing archival data with large correlation indicators in the same data node to ensure the security of the digital storage of archives and reduce the risk of data loss.
[0137] For further information, see Figure 8 As shown, based on the same inventive concept as the above-mentioned method for digital processing, storage and reading of personnel file images, this solution proposes a system for digital processing, storage and reading of personnel file images, including:
[0138] The file image acquisition device is used to acquire the original file image of the personnel file and perform image processing on the original file image to obtain the file image;
[0139] An archive encoding module, the archive encoding module is electrically connected to the archive image acquisition device, and the archive encoding module is used to generate a hash code corresponding to the archive based on the archive attribute;
[0140] An archive storage module, the archive storage module is electrically connected to the archive image acquisition device and the archive encoding module, and the archive storage module is used to adopt a secure distributed storage algorithm to distribute and store the archive images of all personnel archives to the archive data storage center;
[0141] The archive retrieval module is electrically connected to the archive storage module. The archive retrieval module is used to input the archive information to be retrieved, and generate a retrieval hash address based on the retrieved archive information. Based on the retrieval hash address, a search is performed in the archive data storage center to obtain all archive images corresponding to the hash codes that meet the retrieval hash address as the retrieval archive image, and the FTP site for retrieving the archive image is mapped to an application or virtual directory under the Web service port, and user access rights are formulated for user retrieval.
[0142] The archive storage module includes:
[0143] The initial allocation unit is used to generate a number of preliminary distributed storage solutions that can meet the storage space constraints based on the file image size corresponding to the personnel file and the storage space size of the file data storage center;
[0144] A balanced evaluation unit, which is used to calculate the balanced storage index of each preliminarily selected distributed storage solution based on a balanced storage algorithm;
[0145] An association evaluation unit, which is used to calculate the security storage index of each preliminarily selected distributed storage solution based on a security association algorithm;
[0146] The comprehensive evaluation unit is used to calculate the storage rationality index of each preliminary distributed storage scheme based on the balanced storage index and safe storage index of the preliminary distributed storage scheme through a comprehensive evaluation formula, and screen out the preliminary distributed storage scheme with the smallest storage rationality index as the storage scheme for the archival images of personnel files, and distribute the archival images of all personnel files to the archival data storage center.
[0147] The process of using the above system is:
[0148] Step 1: The file image acquisition device acquires the original file image of the personnel file, and performs image processing on the original file image to obtain the file image;
[0149] Step 3: The file encoding module generates a hash code corresponding to the file based on the file attributes;
[0150] Step 4: The archive storage module calls the initial allocation unit to generate several preliminary distributed storage solutions that can meet the storage space constraints based on the archive image size corresponding to the personnel archive and the storage space size of the archive data storage center;
[0151] Step 5: The balanced evaluation unit calculates the balanced storage index of each preliminarily selected distributed storage solution based on the balanced storage algorithm;
[0152] Step 6: The association evaluation unit calculates the security storage index of each preliminarily selected distributed storage solution based on the security association algorithm;
[0153] Step 7: The comprehensive evaluation unit calculates the storage rationality index of each preliminary distributed storage scheme based on the balanced storage index and the safe storage index of the preliminary distributed storage scheme through a comprehensive evaluation formula, and selects the preliminary distributed storage scheme with the smallest storage rationality index as the storage scheme for the archive images of the personnel files, and distributes and stores the archive images of all personnel files in the archive data storage center;
[0154] Step 8: When conducting archive retrieval, the user inputs the archive information to be retrieved through the archive retrieval module, and generates a retrieval hash address based on the retrieved archive information. Based on the retrieval hash address, a search is performed in the archive data storage center to obtain all archive images corresponding to the hash codes that meet the retrieval hash address as the retrieval archive image, and the FTP site for retrieving the archive image is mapped to an application or virtual directory under the Web service port, and user access rights are set for user retrieval.
[0155] Fig. 9 Schematic diagram of a computer-readable storage medium structure provided by an embodiment of the present application. Fig. 9 As shown, a computer-readable storage medium 600 according to an embodiment of the present application is shown. Computer-readable instructions are stored on the computer-readable storage medium 600. When the computer-readable instructions are executed by the processor, a method for digital processing, storage and viewing of personnel file images according to an embodiment of the present application described with reference to the above figures can be executed. The storage medium 600 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0156] In summary, the advantages of the present invention are: effectively reducing data losses caused by attacks and damages to data storage nodes, thereby effectively ensuring the security of digital storage of archives and achieving efficient and secure digital management of archives.
[0157] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for digital processing, storage and reading of personnel file images, characterized in that: include: Acquire the original file image of the personnel file, and perform image processing on the original file image to obtain the file image; Generate a hash code that corresponds to each file based on the file attributes; Adopting a secure distributed storage algorithm, the archival images of all personnel files are distributed and stored in the archival data storage center; Input the retrieved archive information through the archive retrieval module, and generate a retrieval hash address based on the retrieved archive information; Based on the retrieval hash address, a search is performed in the archive data storage center to obtain all archive images corresponding to the hash codes that meet the retrieval hash address as the retrieval archive images; Map the FTP site for retrieving archive images to an application or virtual directory under the Web service port, and set user access rights for users to access; The image processing of the original archive image to obtain the archive image specifically includes: The original archive image is gray-scaled by using the weighted average method to obtain a gray-scale image; Calculate the row grayscale average and column grayscale average in the grayscale image respectively; Calculate the difference between the row grayscale average values of adjacent pixel rows respectively, and take the pixel rows whose row grayscale average value difference exceeds the mutation threshold as the identified pixel rows; Calculate the difference between the column grayscale average values of adjacent pixel columns respectively, and take the pixel columns whose column grayscale average value difference exceeds the mutation threshold as the identification pixel columns; Select two identification pixel rows with a spacing equal to the length of the personnel file from the identification pixel rows as boundary rows; Select two identification pixel rows whose spacing is equal to the width of the personnel file from the identification pixel columns as boundary columns; Output the area image enclosed by the boundary rows and the boundary columns as an archive image; Among them, the weighted average formula is: In the formula, is the grayscale of the pixel at the i-th row and j-th column, , , are the weighted coefficients of human eye sensitivity to red, green and blue, respectively. , , are the red, green and blue color components of the pixel at the i-th row and j-th column respectively; The secure distributed storage algorithm specifically includes: Based on the size of the archive image corresponding to the personnel file and the storage space size of the archive data storage center, generate several preliminary distributed storage solutions that can meet the storage space constraints; Based on the balanced storage algorithm, calculate the balanced storage index of each primary distributed storage solution; Based on the security association algorithm, calculate the security storage index of each primary distributed storage solution; Based on the balanced storage index and safe storage index of the preliminarily selected distributed storage solutions, the storage rationality index of each preliminarily selected distributed storage solution is calculated through a comprehensive evaluation formula; Select the primary distributed storage solution with the smallest storage rationality index as the storage solution for the archival images of personnel files, and distribute and store the archival images of all personnel files in the archival data storage center; The comprehensive evaluation formula is specifically: In the formula, To select reasonable storage indicators for the distributed storage solution, To preliminarily select the balanced storage index of the distributed storage solution, To select the security storage index of the distributed storage solution, is the safety correction factor.
2. The method for digital processing, storage and reading of personnel file images according to claim 1, characterized in that: The generating of several preliminary distributed storage solutions that can meet the storage space limitation based on the file image size corresponding to the personnel file and the storage space size of the file data storage center specifically includes: determining the file size of each archival image to be stored; Determine the used space size and maximum space size of each data storage node in the archive data storage center; Based on the file size of each archival image to be stored and the used space size and maximum space size of each data storage node in the archival data storage center, a distributed storage constraint condition is constructed; Determine that all distributed storage solutions that meet the distributed storage restriction conditions are distributed storage solutions; The mathematical expression of the distributed storage restriction condition is: In the formula, is the file size of the i-th archive image to be stored assigned to the j-th data storage node, is the maximum space size of the jth data storage node, is the used space size of the jth data storage node, is the number of archive images to be stored allocated to the jth data storage node, and is the total number of data storage nodes in the archive data storage center.
3. The method for digital processing, storage and reading of personnel file images according to claim 2, characterized in that: The balanced storage algorithm is specifically as follows: After determining to store according to the primary distributed storage solution, the used space size and maximum space size of each data storage node are recorded as the simulated used space size and simulated maximum space size of the data storage node; Calculate the ratio of the simulated used space size of the data storage node to the simulated maximum space size as the simulated storage ratio of the data storage node; Calculate the standard deviation of the simulated storage ratio of all storage nodes as the balanced storage indicator for the preliminary distributed storage solution.
4. The method for digital processing, storage and reading of personnel file images according to claim 3, characterized in that: The security association algorithm specifically includes: After determining to store according to the primary distributed storage solution, the archive storage state of each data storage node is recorded as the simulated archive storage state; Under the simulated archive storage state, different categories of files belonging to the same person are aggregated to obtain the archive storage state of each person in the data storage node; Based on the archive storage status of each person in the data storage node, determine the archive relevance security index of each person in the data storage node; Determine the importance of personnel; Based on the personnel importance weight, the data storage node is weighted and summed for each personnel's file relevance security index to obtain the personnel file storage risk index of the data storage node; The security storage index of the preliminary distributed storage solution is obtained by summing up the personnel file storage risk indicators of all data storage nodes.
5. The method for digital processing, storage and reading of personnel file images according to claim 4, characterized in that: The step of determining the file relevance security index of the data storage node for each person based on the file storage status of the data storage node for each person specifically includes: Based on the content of personnel information recorded in different archive combinations, determine the correlation indicators of different archive combinations; Determine the combination of personnel file types stored in the data storage node under the simulated file storage state, and based on the set association criteria, determine the association index of the combination of personnel file types stored in the data storage node as the data storage node's security index for personnel file association.
6. A digital processing, storage and reading system for personnel file images, characterized in that: A method for digital processing, storage and viewing of personnel file images as described in any one of claims 1 to 5, comprising: An archive image acquisition device, the archive image acquisition device is used to acquire the original archive image of the personnel file, and perform image processing on the original archive image to obtain the archive image; An archive encoding module, the archive encoding module is electrically connected to the archive image acquisition device, and the archive encoding module is used to generate a hash code corresponding to the archive based on the archive attribute; An archive storage module, the archive storage module is electrically connected to the archive image acquisition device and the archive encoding module, and the archive storage module is used to adopt a secure distributed storage algorithm to distribute and store the archive images of all personnel archives in an archive data storage center; An archive retrieval module is electrically connected to the archive storage module, and is used to input archive information to be retrieved, and generate a retrieval hash address based on the archive information to be retrieved, and perform a search in the archive data storage center based on the retrieval hash address to obtain all archive images corresponding to the hash codes that meet the retrieval hash address as the retrieval archive image, and map the FTP site for retrieving the archive image to an application or virtual directory under the Web service port, and formulate user access rights for user retrieval.
7. A digital processing, storage and reading system for personnel file images according to claim 6, characterized in that: The archive storage module comprises: A preliminary allocation unit, the preliminary allocation unit is used to generate a plurality of preliminary distributed storage solutions that can meet the storage space limitation based on the file image size corresponding to the personnel file and the storage space size of the file data storage center; A balanced evaluation unit, the balanced evaluation unit is used to calculate a balanced storage index of each preliminarily selected distributed storage solution based on a balanced storage algorithm; An association evaluation unit, the association evaluation unit being used to calculate a security storage index of each preliminarily selected distributed storage solution based on a security association algorithm; A comprehensive evaluation unit is used to calculate the storage rationality index of each preliminary distributed storage scheme based on the balanced storage index and the safe storage index of the preliminary distributed storage scheme through a comprehensive evaluation formula, and screen out the preliminary distributed storage scheme with the smallest storage rationality index as the storage scheme for the archival images of the personnel files, and distribute and store the archival images of all personnel files in the archival data storage center.
8. A computer-readable storage medium, characterized in that: A computer-readable program is stored thereon, and when the computer-readable program is called, the method for digital processing, storage and viewing of personnel file images as described in any one of claims 1 to 5 is executed.
