CN116977454B - Electronic seal data optimized storage method - Google Patents
Electronic seal data optimized storage method Download PDFInfo
- Publication number
- CN116977454B CN116977454B CN202311218269.2A CN202311218269A CN116977454B CN 116977454 B CN116977454 B CN 116977454B CN 202311218269 A CN202311218269 A CN 202311218269A CN 116977454 B CN116977454 B CN 116977454B
- Authority
- CN
- China
- Prior art keywords
- data
- seal
- storage target
- target sequence
- sequence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000007906 compression Methods 0.000 claims abstract description 61
- 230000006835 compression Effects 0.000 claims abstract description 60
- 239000011159 matrix material Substances 0.000 claims abstract description 50
- 238000013507 mapping Methods 0.000 claims description 38
- 230000008569 process Effects 0.000 claims description 14
- 238000010606 normalization Methods 0.000 claims description 3
- 238000013144 data compression Methods 0.000 abstract description 11
- 238000004364 calculation method Methods 0.000 description 8
- 238000004458 analytical method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000006185 dispersion Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000035515 penetration Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention relates to the technical field of data compression, and provides an electronic seal data optimized storage method, which comprises the following steps: acquiring electronic seal image data, and constructing an electronic seal data matrix by utilizing the electronic seal image data; acquiring a compressed storage target sequence according to the electronic seal data matrix; acquiring a seal information judging sequence according to the compressed storage target sequence, and acquiring a seal information difference coefficient of each data in the compressed storage target sequence by utilizing the seal information judging sequence; acquiring a seal information compression complex coefficient according to the seal information difference coefficient; acquiring a seal information complex confidence coefficient according to the seal information compression complex coefficient; and adjusting the length of the compression sliding window according to the complex confidence coefficient of the seal information, and compressing the electronic seal data according to the adjusted compression sliding window. According to the invention, the compression sliding window is adjusted through the complex confidence coefficient of the seal information, so that the compression efficiency of the electronic seal data is improved.
Description
Technical Field
The invention relates to the technical field of data compression, in particular to an electronic seal data optimized storage method.
Background
With the rapid development of electronic information technology and digital networks, a stage is provided for the development of electronic government affairs and electronic commerce, wherein the appearance and the use of electronic seals improve the office efficiency. The electronic seal is an effective form of electronic signature, the storage and supervision of the electronic seal ensure the validity of the application of the electronic seal, and meanwhile, the application of the electronic seal ensures the legal effectiveness and authority of the electronic document in the process of circulation. With the penetration of informatization construction, the electronic seal is widely applied and developed.
The electronic seal is generally required to be stored on a movable medium, and one medium for storing the electronic seal is equivalent to one physical seal, so that the electronic seal is more convenient to use and the office efficiency is improved. The electronic seal needs to be stored and transmitted in the use process, so that the application efficiency of the electronic seal can be improved by a more accurate and efficient storage mode, lossless compression is needed in the storage process of the electronic seal, and the integrity of electronic seal information is ensured. However, the traditional data compression algorithm has the problem of low processing time efficiency, for example, the LZ77 data compression algorithm, and unreasonable compression sliding window arrangement can reduce the efficiency and quality of data compression and reduce the processing efficiency of electronic seal compression storage.
Disclosure of Invention
The invention provides an electronic seal data optimized storage method, which aims to solve the problem of low electronic seal data compression storage efficiency, and adopts the following technical scheme:
the invention relates to a method for optimally storing electronic seal data, which comprises the following steps:
acquiring electronic seal image data;
constructing an electronic seal data matrix according to the electronic seal image data, and acquiring a compressed storage target sequence by utilizing the electronic seal data matrix; acquiring a seal information judgment sequence of each data in the compressed storage target sequence according to the electronic seal data matrix; acquiring a seal information difference coefficient of each data in the compressed storage target sequence according to the seal information judgment sequence of each data in the compressed storage target sequence; acquiring an effective information judgment sequence of the compressed storage target sequence according to the compressed storage target sequence; acquiring an effective seal information sequence of the compressed storage target sequence according to the effective information judgment sequence of the compressed storage target sequence; acquiring a seal information compression complex coefficient of the compressed storage target sequence according to an effective seal information sequence of the compressed storage target sequence and a seal information difference coefficient of each data in the compressed storage target sequence;
acquiring an effective seal information quantity sequence of the electronic seal data according to the effective seal information sequence of the compressed storage target sequence; acquiring a seal information complex confidence coefficient of the compressed storage target sequence according to an effective seal information quantity sequence of the electronic seal data and a seal information compression complex coefficient of the compressed storage target sequence; calculating the length of the adjusted compressed sliding window according to the complex confidence coefficient of the seal information of the compressed storage target sequence;
and compressing the electronic seal data according to the length of the adjusted compression sliding window, and storing the electronic seal data according to the compression result of the electronic seal data.
Preferably, the method for constructing an electronic seal data matrix according to the electronic seal image data and obtaining the compressed storage target sequence by using the electronic seal data matrix comprises the following steps:
and constructing a matrix with the same size as the electronic seal image data according to the position information and gray value of each pixel point in the electronic seal image data as an electronic seal data matrix, and taking a sequence formed by each row of elements in the electronic seal data matrix as a compressed storage target sequence.
Preferably, the method for acquiring the stamp information judgment sequence of each data in the compressed storage target sequence according to the electronic stamp data matrix comprises the following steps:
and constructing a window with a preset value by taking each element in the electronic seal data matrix as a central element as a judging window of each element in the electronic seal data matrix, taking the elements in the judging window of each element in the electronic seal data matrix as seal information judging sequences of each element in the electronic seal data matrix according to a sequence formed by sorting from big to small, and taking the seal information judging sequences of each element in the electronic seal data as seal information judging sequences corresponding to each data in a compressed storage target sequence.
Preferably, the method for obtaining the seal information difference coefficient of each data in the compressed storage target sequence according to the seal information judgment sequence of each data in the compressed storage target sequence comprises the following steps:
calculating the average value of all data in a compressed storage target sequence as a first difference coefficient of the compressed storage target sequence, taking the square of the difference value between each element in a seal information judging sequence of each data in the compressed storage target sequence and the first difference coefficient of the seal information storage target sequence as a second difference coefficient of each data in the seal information judging sequence, and taking the average value of the second difference coefficients of all data in the seal information judging sequence as the seal information difference coefficient of each data in the compressed storage target sequence.
Preferably, the method for obtaining the effective information judgment sequence of the compressed storage target sequence according to the compressed storage target sequence comprises the following steps:
and taking the position of data in the compressed storage target sequence as an abscissa, taking the data in the compressed storage target sequence as an ordinate, mapping the compressed storage target sequence into a coordinate system formed by the abscissa and the ordinate to serve as mapping data of the compressed storage target sequence, taking adjacent mapping data as a mapping data pair according to the order of the abscissa from small to large, calculating absolute values of slopes of mapping data links in the mapping data pair, and taking absolute values of slopes of mapping data links in all the mapping data pairs as effective information judgment sequences of the compressed storage target sequence according to the sequence formed by the order from small to large.
Preferably, the method for obtaining the effective seal information sequence of the compressed storage target sequence according to the effective information judgment sequence of the compressed storage target sequence comprises the following steps:
and each data in the effective information judgment sequence corresponds to a group of mapping data pairs, data with the value of the data in the effective information judgment sequence equal to 0 is selected as an invalid information data mark value, the value of the ordinate of the corresponding mapping data is set to 0 according to the invalid information mark value, the updating result of the mapping data of the compressed storage target sequence is used as updating mapping data of the compressed storage target sequence, and the sequence formed by ordering the data with the value of the ordinate larger than 0 in the updating mapping data according to the order from the smaller abscissa to the larger abscissa is used as an effective seal information sequence of the compressed storage target sequence.
Preferably, the method for obtaining the seal information compression complex coefficient of the compressed storage target sequence according to the effective seal information sequence of the compressed storage target sequence and the seal information difference coefficient of each data in the compressed storage target sequence comprises the following steps:
in the method, in the process of the invention,representing compressed storage target sequence->The seal information compression complexity coefficient of (a); />Representing an effective stamp information sequence->Middle->Data of->Representing the seal information sequence->Data->Stamp information difference coefficient,/-, for>Representing an effective stamp information sequence->The number of data in (a); />Representing an effective stamp information sequence->Is a function of the information entropy of (a).
Preferably, the method for obtaining the effective seal information sequence of the electronic seal data according to the effective seal information sequence of the compressed storage target sequence comprises the following steps:
counting the number of data in the effective seal information sequence of each compressed storage target sequence as the effective seal information quantity of each compressed storage target sequence, and taking a sequence formed by sequentially ordering the positions of the effective seal information quantity compressed storage target sequences of each compressed storage target sequence in a seal data matrix as the effective seal information quantity sequence of the electronic seal data matrix.
Preferably, the method for obtaining the seal information complex confidence coefficient of the compressed storage target sequence according to the effective seal information quantity sequence of the electronic seal data and the seal information compression complex coefficient of the compressed storage target sequence comprises the following steps:
in the method, in the process of the invention,representing compressed storage target sequence->Is a complex confidence coefficient of seal information; />Indicate->Presence judgment coefficients of the compressed storage target sequences; />Information sequence representing effective seal>The%>Personal data,/>Information sequence representing effective seal>Middle->Data; />Representing compressed storage target sequence->The seal information of (a) compresses the complex coefficient,an exponential function based on a natural constant; />Representation to store target sequence in compression +.>The number of compressed storage target sequences is selected by taking the position as the center.
Preferably, the method for calculating the length of the adjusted compressed sliding window according to the complex confidence coefficient of the seal information of the compressed storage target sequence comprises the following steps:
taking a normalization result of a seal information complex confidence coefficient of a compressed storage target sequence as a first adjustment coefficient of the compressed storage target sequence, taking a difference value between a preset adjustment parameter and the first adjustment parameter of the compressed storage target sequence as a second adjustment parameter of the compressed storage target sequence, and taking a rounding result of a product of the second adjustment parameter of the compressed storage target sequence and a preset length of a compressed sliding window as the length of the compressed sliding window after adjustment of the compressed storage target sequence.
The beneficial effects of the invention are as follows: and constructing an electronic seal data matrix by acquiring image data of the electronic seal, and acquiring a compressed storage target sequence according to the electronic seal data matrix. And calculating the complexity of the electronic seal information contained in the compressed storage target sequence by considering the characteristics of the electronic seal data, and calculating the seal information complex confidence coefficient of the compressed storage target sequence according to the complexity of the electronic seal information. The length of the compression sliding window is calculated based on the complex confidence coefficient of the seal information, and the method has the advantages that the influence of complex characteristics of text and pattern data in the electronic seal is considered, the length of the compression sliding window is changed, the compression efficiency of the electronic seal data by adopting an LZ77 algorithm is improved, the storage efficiency of the electronic seal data is further improved, and the storage of the electronic seal data is optimized.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a flow chart of an optimized storage method for electronic seal data according to an embodiment of the present invention;
fig. 2 is a schematic diagram of compressed storage target judgment sequence mapping data according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flowchart of an electronic seal data optimizing and storing method according to an embodiment of the present invention is shown, and the method includes the following steps:
step S001, acquiring electronic seal image data, constructing an electronic seal data matrix by utilizing the electronic seal image data, and acquiring a compressed storage target sequence according to the electronic seal data matrix.
The method comprises the steps of acquiring electronic seal data in an electronic seal management system, wherein the electronic seal data are RGB image data of an electronic seal, and the electronic seal is red generally, and the background color is white, so that the RGB image of the electronic seal can be converted into gray image data of the electronic seal for analysis, the gray image data of the electronic seal are preprocessed by adopting a non-local mean denoising algorithm, and the specific calculation process of the non-local mean denoising algorithm is a known technology and is not repeated.
And constructing an electronic seal data matrix with the same size as the electronic seal gray image data according to the position information and gray value of each pixel point in the electronic seal gray image data. According to the electronic seal data matrix, the data characteristics can be further analyzed, and each data of the electronic seal data matrix is used as the electronic seal data compression storage target sequence. The electronic seal data matrix is as follows:
wherein each element represents the gray value of each pixel point in the gray image data of the electronic seal, and each row of sequence is used as a compressed storage target sequence, such as a sequenceRepresents the +.>The compressed storage target sequence.
Thus, a compressed storage target sequence of the electronic seal data is obtained.
Step S002, obtaining a seal information judging sequence according to the compressed storage target sequence, obtaining a seal information difference coefficient according to the seal information judging sequence, and obtaining a seal information compression complex coefficient according to the seal information difference coefficient.
The electronic seal has the same legal benefit as the traditional seal, so that the safety of the electronic seal data is ensured in the use process of the electronic seal, the integrity and the efficiency of the compressed storage of the electronic seal data are improved, and the storage of the electronic seal data is optimized. The electronic seal data can be stored by adopting a lossless compression technology to ensure the integrity of the electronic seal data, but the compression efficiency of some complicated electronic seal information is lower due to the difference of the electronic seal information in the compression process, so that the use efficiency of the electronic seal is reduced.
Therefore, the characteristics of different electronic seal data can be analyzed, and the electronic seal data compression process is optimized. Specifically, according to the obtained electronic seal data matrix, the complexity of the electronic seal information can be further analyzed. Because the difference between the seal information data and the background information data in the electronic seal image is large, and the regional division of the distribution of the electronic seal information data and the distribution of the background information data is obvious. And calculating the seal information difference degree of the compressed storage target sequence by considering the data characteristics and the distribution characteristics of the electronic seal information.
Specifically, selecting the first electronic seal data matrixCompressed storage target sequencesIn the sequence->Middle->Personal data->Constructing a 3*3 window in the electronic seal data matrix for the center, and taking a sequence formed by ordering elements in the window from big to small as a seal information judging sequence +.>Calculation dataThe specific calculation formula of the seal information difference coefficient is as follows:
in the method, in the process of the invention,representation data->Is a seal information difference coefficient; />Representing stamp information judgment sequence->Middle->Personal value (s)/(s)>Representing +.>Compressed storage target sequence->Mean value of->Representing stamp information judgment sequence->The number of data in the database.
If the more complex the seal information contained in the data in the compressed storage target sequence is, the data is calculatedStamp information judgment sequence->Intermediate value and compressed storage target sequence->The larger the deviation of the data mean, i.e. +.>The greater the value of (2); data obtained->Stamp information difference coefficient->The larger the value of (2) is, the data is represented>The greater the complexity of carrying information.
The compressed storage target sequence can be obtained according to the calculationThe seal information difference coefficient of each data in (a) and further, analyzing and compressing the storage target sequence +.>The data sequence length of which contains seal information. According to the shape analysis of the seal, the data of the seal information existing in each compressed target sequence in the electronic seal data matrix is part of the data, so as shown in fig. 2, the data in the compressed storage target sequence is projected into a coordinate system for analysis, the position of the data in the compressed storage target sequence is taken as the abscissa, the data in the compressed storage target sequence is taken as the ordinate, the compressed storage target sequence is mapped into the coordinate system formed by the abscissa and the ordinate to be taken as the mapping data of the compressed storage target sequence, the mapping data of the compressed storage target sequence is taken as the mapping data pair from the abscissa to the major, and the mapping data pair is calculatedAnd taking a sequence formed by sequencing the absolute values of the slopes of the mapping data links in all the mapping data pairs from small to large as an effective information judgment sequence of the compressed storage target sequence.
Further, each data in the valid information judgment sequence corresponds to a group of mapping data pairs, data with the value of the data in the valid information judgment sequence equal to 0 is selected as an invalid information data mark value, the value of the ordinate of the corresponding mapping data pair is set to 0 according to the invalid information mark value, the updating result of the mapping data of the compressed storage target sequence is used as updating mapping data of the compressed storage target sequence, and a sequence formed by ordering the data with the value of the ordinate of the updating mapping data greater than 0 according to the horizontal coordinate from small to large is used as the valid seal information sequence of the compressed storage target sequenceAcquiring a sequence according to the length of the effective seal information sequence and the information change in the seal information sequence>The seal information compression complexity coefficient of (2) representing +.>The greater the likelihood that the location is where the text and pattern is more complex in the electronic seal. The specific calculation formula of the seal information compression complex coefficient is as follows:
in the method, in the process of the invention,representing compressed storage target sequence->The seal information compression complexity coefficient of (a); />Representing an effective stamp information sequence->Middle->Data of->Representing the seal information sequence->Data->Stamp information difference coefficient,/-, for>Representing an effective stamp information sequence->The number of data in (a); />Representing an effective stamp information sequence->The larger the value of the information entropy, the more marked the stamp sequence->The greater the degree of dispersion of the data.
If the stamp information contained in the selected position of the compressed storage target sequence is rich, calculating to obtainIf the greater the value of the seal information sequence data in the compressed storage target sequence is, the greater the degree of dispersion of the seal information sequence data is, the calculation result is thatThe larger the value of (2), the compression complexity coefficient of the obtained seal information +.>The larger the value of the electronic seal data is, the more complicated the electronic seal information contained in the compressed storage target sequence is, and the greater the complexity of compressed storage of the electronic seal data is.
Thus, the complex confidence coefficient of the seal information of the compressed storage target sequence is obtained.
Step S003, obtaining the seal information complex confidence coefficient according to the seal information complex coefficient, adjusting the length of the compression sliding window according to the seal information complex confidence coefficient, and compressing the electronic seal data according to the adjusted length of the compression sliding window.
And calculating a seal information compression complexity coefficient according to the seal information difference coefficient of the data in the compression storage target sequence and the information entropy of the effective seal information sequence, and representing the compression complexity of the compression storage target sequence. Furthermore, because the whole shape of the electronic seal is circular, and the complexity of the information in the electronic seal is caused by the fact that the shape of characters or patterns is complex, the complex information of the electronic seal data compression needs to further consider the position of the compressed storage target sequence, namely the complex confidence coefficient of the seal information is calculated by compressing the position of the storage target sequence.
Specifically, the number of data in the effective seal information sequence is used as the effective seal information quantity of the compressed storage target sequence, and the effective seal information quantity sequence of the electronic seal data is obtained according to the effective seal information quantity of each compressed storage target sequenceWherein->Indicate->And compressing the effective seal information quantity of the stored target sequence, and analyzing the complexity of seal information of the compressed stored target sequence according to the difference of the effective seal information quantity.
To compress and store target sequencesSelecting 5 compressed storage target sequences in the electronic seal data matrix upwards and downwards respectively by taking the position as the center, namely selecting the compressed storage target sequences asThe effective information quantity sequence corresponding to the selected compressed storage target sequence isAccording to the difference between the compressed storage target sequence and the adjacent sequence, calculating the seal information complex confidence coefficient of the compressed storage target sequence, wherein the specific calculation formula is as follows:
in the method, in the process of the invention,representing compressed storage target sequence->Is a complex confidence coefficient of seal information; />Indicate->Presence judgment coefficients of the compressed storage target sequences; />Information sequence representing effective seal>The%>Data of->Information sequence representing effective seal>Middle->Data of->Representing compressed storage target sequence->The seal information of (a) compresses the complex coefficient,an exponential function based on a natural constant; />Representation to store target sequence in compression +.>The number and the size of the compressed storage target sequences selected by taking the position as the center take the tested value of 11 +.>Representing the number of compressed stored target sequences.
If the target sequence is compressed and storedThe smaller the difference between the effective information amount of (a) and the adjacent sequence thereof, the +.>The greater the value of (2); compressed storage target sequence->Is a contiguous sequence of (a)The more complex the seal information is, the +.>The larger the value of (2), the resulting compressed storage target sequence +.>Is a complex confidence coefficient of seal information>The larger the value of (2) is, the more the compressed storage target sequence is representedThe disorder degree of the seal information data is larger, namely the compression difficulty of the electronic seal data information is larger.
Furthermore, when the LZ77 data compression algorithm is adopted to compress and store the electronic seal data, the complexity of the electronic seal information is considered, the length of a compression sliding window in the LZ77 algorithm is adjusted, and the compression efficiency of the electronic seal data is further improved. According to the complex confidence coefficient of the seal information of the compressed storage target sequence, the length of the compressed sliding window is adjusted, and the specific calculation formula is as follows:
in the method, in the process of the invention,indicate->The adjusted compressed sliding window length of the compressed storage target sequence; />Representing the length of the initial compression sliding window, and taking an empirical value of 50; />Representing compressed storage target sequence->Is a complex confidence coefficient of seal information, < >>Representing a normalization function->The regulating parameter is expressed, and the magnitude takes an empirical value of 1.5.
If the more complex the seal information contained in the compressed storage target sequence is, the more complex the seal information is obtainedThe larger the value of (2), the calculated +.>The smaller the value of (2), the more ∈>The smaller the value of (2) is, the smaller the length of the compression sliding window needs to be adjusted, and the compression efficiency is improved. Based on the adjusted compressed sliding window length of each compressed storage target sequence, the LZ77 algorithm is adopted to complete the compression of the electronic seal data to obtain the compression result of the electronic seal data.
Thus, the compression result of the electronic seal data is obtained.
And step S004, the storage of the electronic seal data is completed according to the compression result of the electronic seal data.
And according to the compression result of the electronic seal data, a compression result corresponding to each compression storage target sequence can be obtained, and the compression result corresponding to each compression storage target sequence is stored according to the arrangement sequence of the compression storage target sequences in the electronic seal data matrix.
Specifically, firstly, acquiring electronic seal image data, and constructing an electronic seal data matrix according to the electronic seal image data; acquiring a seal information complex confidence coefficient according to the seal information complexity degree in a sequence formed by each line of data in the electronic seal data matrix; acquiring the adjusted compressed sliding window length of a sequence formed by each data in the electronic seal data matrix according to the complex confidence coefficient of the seal information; based on the length of the compressed sliding window after the sequence adjustment formed by each data in the electronic seal data matrix, the LZ77 data compression algorithm is adopted to carry out compression coding on the sequence formed by each data in the electronic seal data, and the coding result is stored.
Therefore, the electronic seal data can be compressed and stored according to the size of the length of the compression sliding window obtained in a self-adaptive mode according to the characteristics of the electronic seal data, and the efficiency of compressing and storing the electronic seal data is improved.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. The above description is only of the preferred embodiments of the present invention and is not intended to limit the invention, but any modifications, equivalent substitutions, improvements, etc. within the principles of the present invention should be included in the scope of the present invention.
Claims (8)
1. An electronic seal data optimizing storage method is characterized by comprising the following steps:
acquiring electronic seal image data;
constructing an electronic seal data matrix according to the electronic seal image data, and acquiring a compressed storage target sequence by utilizing the electronic seal data matrix; acquiring a seal information judgment sequence of each data in the compressed storage target sequence according to the electronic seal data matrix; acquiring a seal information difference coefficient of each data in the compressed storage target sequence according to the seal information judgment sequence of each data in the compressed storage target sequence; acquiring an effective information judgment sequence of the compressed storage target sequence according to the compressed storage target sequence; acquiring an effective seal information sequence of the compressed storage target sequence according to the effective information judgment sequence of the compressed storage target sequence; acquiring a seal information compression complex coefficient of the compressed storage target sequence according to an effective seal information sequence of the compressed storage target sequence and a seal information difference coefficient of each data in the compressed storage target sequence;
acquiring an effective seal information quantity sequence of the electronic seal data according to the effective seal information sequence of the compressed storage target sequence; acquiring a seal information complex confidence coefficient of the compressed storage target sequence according to an effective seal information quantity sequence of the electronic seal data and a seal information compression complex coefficient of the compressed storage target sequence; calculating the length of the adjusted compressed sliding window according to the complex confidence coefficient of the seal information of the compressed storage target sequence;
compressing the electronic seal data according to the length of the adjusted compression sliding window, and storing the electronic seal data according to the compression result of the electronic seal data;
the method for obtaining the seal information compression complex coefficient of the compressed storage target sequence according to the effective seal information sequence of the compressed storage target sequence and the seal information difference coefficient of each data in the compressed storage target sequence comprises the following steps:
in the method, in the process of the invention,representing compressed storage target sequence->The seal information compression complexity coefficient of (a); />Representing an effective stamp information sequence->Middle->Data of->Signet sealInformation sequence->Data->Stamp information difference coefficient,/-, for>Representing an effective stamp information sequence->The number of data in (a); />Representing an effective stamp information sequence->Is an information entropy of (a);
the method for acquiring the seal information complex confidence coefficient of the compressed storage target sequence according to the effective seal information quantity sequence of the electronic seal data and the seal information compression complex coefficient of the compressed storage target sequence comprises the following steps:
in the method, in the process of the invention,representing compressed storage target sequence->Is a complex confidence coefficient of seal information; />Indicate->Compressed storage ofJudging coefficients of the existence of the target sequence; />Information sequence representing effective seal>The%>Data of->Information sequence representing effective seal>Middle->Data; />Representing compressed storage target sequence->The seal information of (a) compresses the complex coefficient,an exponential function based on a natural constant; />Representation to store target sequence in compression +.>The number of compressed storage target sequences is selected by taking the position as the center.
2. The method for optimally storing electronic seal data according to claim 1, wherein the method for constructing an electronic seal data matrix according to the electronic seal image data and obtaining the compressed storage target sequence by using the electronic seal data matrix is as follows:
and constructing a matrix with the same size as the electronic seal image data according to the position information and gray value of each pixel point in the electronic seal image data as an electronic seal data matrix, and taking a sequence formed by each row of elements in the electronic seal data matrix as a compressed storage target sequence.
3. The method for optimally storing electronic seal data according to claim 1, wherein the method for acquiring the seal information judgment sequence of each data in the compressed storage target sequence according to the electronic seal data matrix is as follows:
and constructing a window with a preset value by taking each element in the electronic seal data matrix as a central element as a judging window of each element in the electronic seal data matrix, taking the elements in the judging window of each element in the electronic seal data matrix as seal information judging sequences of each element in the electronic seal data matrix according to a sequence formed by sorting from big to small, and taking the seal information judging sequences of each element in the electronic seal data as seal information judging sequences corresponding to each data in a compressed storage target sequence.
4. The method for optimally storing electronic seal data according to claim 1, wherein the method for obtaining the seal information difference coefficient of each data in the compressed storage target sequence according to the seal information judgment sequence of each data in the compressed storage target sequence is as follows:
calculating the average value of all data in a compressed storage target sequence as a first difference coefficient of the compressed storage target sequence, taking the square of the difference value between each element in a seal information judging sequence of each data in the compressed storage target sequence and the first difference coefficient of the seal information storage target sequence as a second difference coefficient of each data in the seal information judging sequence, and taking the average value of the second difference coefficients of all data in the seal information judging sequence as the seal information difference coefficient of each data in the compressed storage target sequence.
5. The method for optimally storing electronic seal data according to claim 1, wherein the method for acquiring the valid information judgment sequence of the compressed storage target sequence according to the compressed storage target sequence comprises the following steps:
and taking the position of data in the compressed storage target sequence as an abscissa, taking the data in the compressed storage target sequence as an ordinate, mapping the compressed storage target sequence into a coordinate system formed by the abscissa and the ordinate to serve as mapping data of the compressed storage target sequence, taking adjacent mapping data as a mapping data pair according to the order of the abscissa from small to large, calculating absolute values of slopes of mapping data links in the mapping data pair, and taking absolute values of slopes of mapping data links in all the mapping data pairs as effective information judgment sequences of the compressed storage target sequence according to the sequence formed by the order from small to large.
6. The method for optimizing and storing electronic seal data according to claim 1, wherein the method for obtaining the valid seal information sequence of the compressed storage target sequence according to the valid information judgment sequence of the compressed storage target sequence comprises the steps of:
and each data in the effective information judgment sequence corresponds to a group of mapping data pairs, data with the value of the data in the effective information judgment sequence equal to 0 is selected as an invalid information data mark value, the value of the ordinate of the corresponding mapping data is set to 0 according to the invalid information mark value, the updating result of the mapping data of the compressed storage target sequence is used as updating mapping data of the compressed storage target sequence, and the sequence formed by ordering the data with the value of the ordinate larger than 0 in the updating mapping data according to the order from the smaller abscissa to the larger abscissa is used as an effective seal information sequence of the compressed storage target sequence.
7. The method for optimally storing electronic seal data according to claim 1, wherein the method for acquiring the effective seal information amount sequence of the electronic seal data according to the effective seal information sequence of the compressed storage target sequence comprises the following steps:
counting the number of data in the effective seal information sequence of each compressed storage target sequence as the effective seal information quantity of each compressed storage target sequence, and taking a sequence formed by sequentially ordering the positions of the effective seal information quantity compressed storage target sequences of each compressed storage target sequence in a seal data matrix as the effective seal information quantity sequence of the electronic seal data matrix.
8. The method for optimally storing electronic seal data according to claim 1, wherein the method for calculating the length of the adjusted compressed sliding window according to the complex confidence coefficient of seal information of the compressed storage target sequence is as follows:
taking a normalization result of a seal information complex confidence coefficient of a compressed storage target sequence as a first adjustment coefficient of the compressed storage target sequence, taking a difference value between a preset adjustment parameter and the first adjustment parameter of the compressed storage target sequence as a second adjustment parameter of the compressed storage target sequence, and taking a rounding result of a product of the second adjustment parameter of the compressed storage target sequence and a preset length of a compressed sliding window as the length of the compressed sliding window after adjustment of the compressed storage target sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311218269.2A CN116977454B (en) | 2023-09-21 | 2023-09-21 | Electronic seal data optimized storage method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311218269.2A CN116977454B (en) | 2023-09-21 | 2023-09-21 | Electronic seal data optimized storage method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116977454A CN116977454A (en) | 2023-10-31 |
CN116977454B true CN116977454B (en) | 2023-12-12 |
Family
ID=88477023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311218269.2A Active CN116977454B (en) | 2023-09-21 | 2023-09-21 | Electronic seal data optimized storage method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116977454B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62254543A (en) * | 1986-04-28 | 1987-11-06 | Hitachi Ltd | Electronic transaction system |
AU7151800A (en) * | 1999-11-10 | 2001-05-17 | Nec Corporation | Electronic revenue stamp issuing apparatus and method thereof and recording medium stored control program thereof |
KR20010084412A (en) * | 2000-02-25 | 2001-09-06 | 박근수 | Data compression algorithm |
CN101221654A (en) * | 2007-01-08 | 2008-07-16 | 北京书生国际信息技术有限公司 | Electric seal weakening method |
CN104463763A (en) * | 2013-09-25 | 2015-03-25 | 天津书生投资有限公司 | Electronic seal blurring method |
KR20160005424A (en) * | 2014-07-07 | 2016-01-15 | 김창환 | Electrical Stamp And Certification System Using The Same |
CN112307520A (en) * | 2020-11-09 | 2021-02-02 | 语联网(武汉)信息技术有限公司 | Electronic seal adding and verifying method and system |
CN112583991A (en) * | 2020-11-09 | 2021-03-30 | 河北戈德防伪科技有限公司 | Chip cipher network seal inquiry and verification system |
CN116051303A (en) * | 2023-02-01 | 2023-05-02 | 浪潮通用软件有限公司 | Method, device, equipment and medium for electronic certificate identification processing |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI407794B (en) * | 2009-11-17 | 2013-09-01 | Alpha Imaging Technology Corp | Data compression method and data compression system |
-
2023
- 2023-09-21 CN CN202311218269.2A patent/CN116977454B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62254543A (en) * | 1986-04-28 | 1987-11-06 | Hitachi Ltd | Electronic transaction system |
AU7151800A (en) * | 1999-11-10 | 2001-05-17 | Nec Corporation | Electronic revenue stamp issuing apparatus and method thereof and recording medium stored control program thereof |
KR20010084412A (en) * | 2000-02-25 | 2001-09-06 | 박근수 | Data compression algorithm |
CN101221654A (en) * | 2007-01-08 | 2008-07-16 | 北京书生国际信息技术有限公司 | Electric seal weakening method |
CN104463763A (en) * | 2013-09-25 | 2015-03-25 | 天津书生投资有限公司 | Electronic seal blurring method |
KR20160005424A (en) * | 2014-07-07 | 2016-01-15 | 김창환 | Electrical Stamp And Certification System Using The Same |
CN112307520A (en) * | 2020-11-09 | 2021-02-02 | 语联网(武汉)信息技术有限公司 | Electronic seal adding and verifying method and system |
CN112583991A (en) * | 2020-11-09 | 2021-03-30 | 河北戈德防伪科技有限公司 | Chip cipher network seal inquiry and verification system |
WO2022095312A1 (en) * | 2020-11-09 | 2022-05-12 | 语联网(武汉)信息技术有限公司 | Electronic seal adding and verifying method and system |
CN116051303A (en) * | 2023-02-01 | 2023-05-02 | 浪潮通用软件有限公司 | Method, device, equipment and medium for electronic certificate identification processing |
Non-Patent Citations (1)
Title |
---|
基于数字签名的电子印章系统的设计与实现;解恒跃;中国优秀硕士学位论文全文数据库;第信息科技辑卷;1-75 * |
Also Published As
Publication number | Publication date |
---|---|
CN116977454A (en) | 2023-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108681991A (en) | Based on the high dynamic range negative tone mapping method and system for generating confrontation network | |
CN107516129A (en) | The depth Web compression method decomposed based on the adaptive Tucker of dimension | |
CN110290390B (en) | AMBTC (advanced multi-level trellis coded block) based modulo-2 operation and Hamming code information hiding method | |
CN110517329A (en) | A kind of deep learning method for compressing image based on semantic analysis | |
CN110717868B (en) | Video high dynamic range inverse tone mapping model construction and mapping method and device | |
CN113901894A (en) | Video generation method, device, server and storage medium | |
CN114445292A (en) | Multi-stage progressive underwater image enhancement method | |
CN110162290B (en) | Compression method for DeMURA data of OLED screen | |
CN112215859B (en) | Texture boundary detection method based on deep learning and adjacency constraint | |
CN111476269A (en) | Method, device, equipment and medium for constructing balanced sample set and identifying copied image | |
CN113556544A (en) | Scene-adaptive-based video coding method and device, equipment and storage medium | |
CN112637593A (en) | Video coding optimization method based on artificial intelligence and video analysis | |
CN114386595B (en) | SAR image compression method based on super prior architecture | |
CN116977454B (en) | Electronic seal data optimized storage method | |
CN111696026A (en) | Reversible gray scale map algorithm and computing device based on L0 regular term | |
CN108491747B (en) | Method for beautifying QR (quick response) code after image fusion | |
CN117422780A (en) | Astronomical image lossless compression method based on deep learning | |
CN117097906A (en) | Method and system for efficiently utilizing regional medical resources | |
CN116030114A (en) | Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression | |
CN110460855A (en) | Image processing method and system | |
CN112614196B (en) | Image robustness Hash authentication method based on quaternion convolution neural network | |
CN116416216A (en) | Quality evaluation method based on self-supervision feature extraction, storage medium and terminal | |
CN113938685B (en) | Cognitive software adjustable image coding device for large-scale image storage | |
CN109618155B (en) | Compression encoding method | |
CN117557582B (en) | Artificial intelligence-based building landscape design image processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |