A method, system, device and storage medium for generating a copy of an electronic certificate
By embedding feature data extracted from the purpose of the license and audio data in the electronic license, and generating visible and invisible watermarks, the unlimited spread and illegal abuse of the electronic license copy is solved, and the security and authenticity of the license copy is improved.
Patent Information
- Application Number
- CN202411052498.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-02
AI Technical Summary
The existing electronic certificate copy generation methods have unlimited spread and illegal abuse risks, and the watermark information is easily tampered with, making it difficult to ensure the authenticity and security of the certificate.
By obtaining the purpose and audio data of the certificate, the characteristic data is extracted and combined into visible and invisible watermark information, and embedded in the electronic certificate to ensure the application scenario limitation and tamper-proof of the certificate copy.
Effectively prevent the abuse and tampering of the license copy, improve the verification efficiency and tamper-proof level of the electronic license copy, and ensure its authenticity, security and timeliness.
Smart Images

Figure CN118608366B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital certificate generation, and in particular to a method, system, device and storage medium for generating an electronic certificate copy. Background Art
[0002] Electronic certificates refer to electronic documents of various certificates, certifications, approvals, appraisal reports, service results and other documents issued by units in accordance with the law and with legal effect, such as identity cards, marriage certificates, bank repayment flow certificates, business licenses, etc. Electronic certificate copies are credible electronic certificate files generated by the electronic certificate library based on the original electronic certificate. This file not only contains the necessary information to express the electronic certificate, but also includes the reason information for applying for the copy. It is usually used as an archive file for electronic certificates used by certificate application units. The authenticity, validity, reliability and practicality of the copies are particularly important.
[0003] At present, conventional methods for generating copies of electronic certificates include methods based on the face area and methods based on watermarks. The method based on the face area is to divide the electronic certificate into the face area and the non-face area information, and sign and encrypt them separately to generate a copy of the certificate. The limitation of this method is that it is not very operational. The user temporarily determines the visible non-face area. The same certificate may have multiple visible copies, and it is difficult to reflect the validity and authenticity of the copy from a visual experience. The watermark-based generation method refers to adding watermark information to the original electronic certificate. Since electronic files of certificates have validity periods, and are revoked and changed according to business conditions, the certificate copies generated based on watermarks cannot directly reflect the actual situation of the electronic certificates in the electronic files, and there is a risk of abuse of certificates due to the large-scale proliferation of certificate files. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a method, system, device and storage medium for generating electronic certificate copies, so as to solve the problems of unlimited spread and illegal abuse of electronic certificate copies, avoid the risk of watermark information being tampered with, and improve the security of electronic certificate copies.
[0005] In a first aspect, the present invention provides a method for generating a copy of an electronic certificate, the method comprising:
[0006] Acquire an electronic certificate and a corresponding certificate purpose, and generate a first watermark image according to the certificate purpose;
[0007] Acquire purpose audio data, perform feature extraction on the purpose audio data, and obtain feature data;
[0008] Acquire first watermark information of the first watermark image using a preset algorithm, and combine the first watermark information with the characteristic data to obtain second watermark information;
[0009] The first watermark image and the second watermark information are used as a visible watermark and an invisible watermark respectively, and the visible watermark and the invisible watermark are embedded in the electronic certificate to obtain a copy of the electronic certificate.
[0010] Furthermore, the step of extracting features from the usage audio data to obtain feature data comprises:
[0011] Performing keyword recognition and audio analysis on the usage audio data to obtain keyword feature data and audio feature data;
[0012] The keyword feature data and the audio feature data are used as feature data.
[0013] Furthermore, the step of performing keyword recognition and audio analysis on the usage audio data to obtain keyword feature data and audio feature data includes:
[0014] Using a speech recognition model to convert the usage audio data into text data, and performing keyword recognition on the text data to obtain keyword feature data;
[0015] Audio analysis is performed on the audio segment corresponding to the keyword feature data to obtain audio feature data.
[0016] Furthermore, the step of performing keyword recognition and audio analysis on the usage audio data to obtain keyword feature data and audio feature data includes:
[0017] Performing audio analysis on the usage audio data to extract first audio feature data;
[0018] Inputting the first audio feature data into a keyword recognition model to obtain keyword feature data;
[0019] The audio feature corresponding to the keyword feature data is extracted from the first audio feature data to obtain audio feature data.
[0020] Furthermore, the step of performing audio analysis on the usage audio data to extract the first audio feature data includes:
[0021] Performing spectrum analysis on the audio data according to the Fourier transform algorithm to obtain spectrum characteristics;
[0022] Performing rhythm analysis on the audio data according to a rhythm detection algorithm to obtain rhythm features;
[0023] Performing timbre analysis on the audio data according to the timbre description algorithm to obtain timbre characteristics;
[0024] The frequency spectrum feature, the rhythm feature and the timbre feature are combined to obtain first audio feature data.
[0025] Furthermore, the step of using a preset algorithm to obtain the first watermark information of the first watermark image includes:
[0026] Obtain pixel information of the first watermark image, and generate a pixel matrix and a brightness matrix according to the pixel information, wherein the pixel information includes pixel values and brightness values;
[0027] The pixel matrix and the brightness matrix are combined to obtain a four-channel matrix, a preset hash algorithm is used to calculate the four-channel matrix to obtain a pixel hash value, and the pixel hash value is used as the first watermark information.
[0028] Furthermore, after the step of obtaining the pixel hash value, the method further includes:
[0029] According to the third-party name in the certificate purpose, obtain the corresponding institution identification code, and convert the business name in the certificate purpose into the corresponding business code;
[0030] The organization identification code and the business code are combined to obtain a purpose identification, and a preset hash algorithm is used to calculate the purpose identification to obtain a purpose hash value;
[0031] The pixel hash value and the purpose hash value are combined to obtain first watermark information.
[0032] In a second aspect, the present invention provides a system for generating a copy of an electronic certificate, the system comprising:
[0033] A watermark image generation module, used to obtain an electronic certificate and a corresponding certificate purpose, and generate a first watermark image according to the certificate purpose;
[0034] A watermark information acquisition module, used to acquire purpose audio data, perform feature extraction on the purpose audio data, and obtain feature data;
[0035] Acquire first watermark information of the first watermark image using a preset algorithm, and combine the first watermark information with the characteristic data to obtain second watermark information;
[0036] The watermark embedding module is used to use the first watermark image and the second watermark information as a visible watermark and an invisible watermark respectively, and embed the visible watermark and the invisible watermark into the electronic certificate to obtain a copy of the electronic certificate.
[0037] In a third aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0038] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0039] The present invention provides a method, system, computer device and storage medium for generating an electronic certificate copy. Through the method, the certificate usage information and user biometric information are embedded in the electronic certificate, so that the generated electronic certificate copy increases the limitation of application scenarios, which can effectively prevent the occurrence of abuse of the electronic certificate copy. At the same time, the present invention can improve the verification efficiency and tamper-proof level of the electronic certificate copy through the embedding method of visible watermark and invisible watermark, and ensure the security, uniqueness and timeliness of the electronic certificate copy. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flowchart of a method for generating a copy of an electronic certificate in an embodiment of the present invention;
[0041] Figure 2 It is a schematic diagram of the structure of a system for generating a copy of an electronic certificate in an embodiment of the present invention;
[0042] Figure 3 It is a diagram of the internal structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] See also Figure 1 The first embodiment of the present invention provides a method for generating a copy of an electronic certificate, which includes steps S10 to S40:
[0045] Step S10, obtaining an electronic certificate and a corresponding certificate purpose, and generating a first watermark image according to the certificate purpose;
[0046] Step S20, obtaining purpose audio data, performing feature extraction on the purpose audio data, and obtaining feature data;
[0047] Step S30, using a preset algorithm to obtain first watermark information of the first watermark image, and combining the first watermark information with the characteristic data to obtain second watermark information;
[0048] Step S40: Use the first watermark image and the second watermark information as a visible watermark and an invisible watermark respectively, and embed the visible watermark and the invisible watermark into the electronic certificate to obtain a copy of the electronic certificate.
[0049] The present invention is a method for generating corresponding electronic certificate copies by embedding watermarks based on the original electronic certificate submitted by the user and the purpose of the electronic certificate, wherein the original electronic certificate is the electronic version of the paper certificate applied by the user to the corresponding issuing agency, and the electronic certificate will be used as the original certificate to generate electronic certificate copies for various purposes. In the present invention, the watermark embedded in the electronic certificate includes two types of watermarks, namely visible watermarks and invisible watermarks. Among them, the visible watermark is generated based on the purpose of the certificate submitted by the user. The visible watermark is displayed in the electronic certificate in the form of a watermark image. Specifically, when the user submits the electronic certificate in an encrypted manner, he also submits the purpose of the certificate. The purpose includes the name of the third-party organization that uses the electronic certificate, the related business handled, and the validity period, etc. For example, an organization needs to archive the contract signing of the electronic identity card and the corresponding archiving period. Then, the purpose of the certificate submitted by the user is input into a pre-built image generation model to generate a corresponding watermark image. The model converts the purpose of the certificate into a watermark image by setting multiple parameters such as color changes, font shape and image structure. The watermark image can clearly and intuitively display the purpose of the electronic certificate. Then, the watermark image is embedded in the electronic certificate as a visible watermark. The specific embedding steps can refer to the embedding steps of the conventional watermark embedding method, which will not be repeated here. The present invention directly displays the purpose of the certificate in the electronic certificate through a visible watermark, so that the electronic certificate copy can directly display its real purpose, thereby avoiding the problem of certificate abuse caused by the unauthorized spread of the electronic certificate.
[0050] In practical applications, visible watermarks may lead to forgery or illegal abuse of electronic certificate copies due to watermark removal or tampering. In order to ensure the authenticity, uniqueness and security of electronic certificate copies, the present invention improves the security level of electronic certificate copies by embedding invisible watermarks on the basis of visible watermarks, so as to avoid forgery and tampering of electronic certificate copies.
[0051] In this embodiment, the invisible watermark serves as the hidden content of the electronic certificate copy. Its watermark information not only includes the usage information corresponding to the visible watermark, but also includes the image information of the visible watermark and the user's own biometric information. By hiding these watermark information in the electronic certificate copy, the security level of the electronic certificate copy is improved. The acquisition of the watermark information is divided into two steps. The first step is to obtain the user's biometric information and the usage information corresponding to the visible watermark, and the second step is to obtain the watermark information of the visible watermark, and then merge the watermark information with the information obtained in the first step to obtain the watermark information of the invisible watermark.
[0052] In a preferred embodiment, the biometric information and usage information are obtained based on the audio data submitted by the user, that is, the feature data is obtained by performing feature analysis on the usage audio data submitted by the user, and the specific steps include:
[0053] Performing keyword recognition and audio analysis on the usage audio data to obtain keyword feature data and audio feature data;
[0054] The keyword feature data and the audio feature data are used as feature data.
[0055] In this embodiment, the user submits the purpose of the electronic certificate in the form of audio data, that is, the certificate purpose submission in the present invention includes two methods: text input and voice input. The information of the text input is used to generate a visible watermark image, and the information of the voice input is used to extract the watermark information. The watermark information here includes the user's biometric information and the certificate purpose information, wherein the biometric information is obtained by performing audio feature analysis on the user's audio data, and the certificate purpose information is obtained by performing keyword analysis on the audio data, that is, the feature data in this embodiment includes keyword feature data and audio feature data.
[0056] In a preferred embodiment, the feature data is extracted using the following steps:
[0057] Using a speech recognition model to convert the usage audio data into text data, and performing keyword recognition on the text data to obtain keyword feature data;
[0058] Audio analysis is performed on the audio segment corresponding to the keyword feature data to obtain audio feature data.
[0059] In this embodiment, the audio data is recognized by the speech recognition model, the audio data is converted into text data, and then the text data is subjected to keyword analysis to extract keywords, where the keywords are words related to the purpose of the license, including the name of the third-party organization, related business, and the license time limit, etc. These extracted keywords will be converted into keyword feature data. Based on the extracted keywords, multiple audio segments are extracted from the audio data, where the audio segment refers to the audio data paragraph corresponding to the keyword, and then audio feature analysis is performed on each audio segment to obtain the corresponding audio feature data, where the specific steps of the audio feature analysis will be described in detail later.
[0060] The keyword feature data in this embodiment is essentially the purpose information of the certificate. Of course, before generating the watermark information based on this information, the purpose information can also be compared with the purpose information input by the user to ensure the accuracy of the information. The audio feature data is the user's biometric information. In this embodiment, the certificate purpose information is embedded in the electronic certificate in two ways: visible and hidden. The visual information is not only used to intuitively display the purpose of the certificate, but also as a control group for the hidden information. If the visible watermark is tampered with, then the information will not match the hidden information. At the same time, the user's biometric information is also added to the hidden information. The biometric information can improve the tamper-proof level of the hidden watermark and prevent the hidden watermark from being illegally tampered with.
[0061] In order to improve the extraction efficiency of feature data, in another preferred embodiment, the following steps can be used to extract feature data:
[0062] Performing audio analysis on the usage audio data to extract first audio feature data;
[0063] Inputting the first audio feature data into a keyword recognition model to obtain keyword feature data;
[0064] The audio feature corresponding to the keyword feature data is extracted from the first audio feature data to obtain audio feature data.
[0065] The difference from the previous embodiment is that this embodiment does not use speech-to-text conversion to identify keywords, but directly extracts keywords from audio data, that is, by performing audio feature analysis on the audio data and identifying keywords based on audio features. The reason for this is that, on the one hand, speech recognition is a computationally intensive task that consumes a lot of computing resources and usually requires a lot of training data and computing resources to build and maintain. In addition, the speech recognition system usually needs to recognize the content of the entire sentence and then convert it into text. In many application scenarios, we only need to recognize specific keywords in the audio, not the content of the entire sentence, which affects processing efficiency. On the other hand, the speech recognition system may be affected by various factors such as background noise, accent, and speaking speed, resulting in a decrease in recognition accuracy, and direct speech recognition may cause a large delay.
[0066] Based on the above reasons, this embodiment improves recognition efficiency and accuracy by extracting audio features of audio data and performing keyword recognition on the audio features. The specific steps of extracting audio features include:
[0067] Performing spectrum analysis on the audio data according to the Fourier transform algorithm to obtain spectrum characteristics;
[0068] Performing rhythm analysis on the audio data according to a rhythm detection algorithm to obtain rhythm features;
[0069] Performing timbre analysis on the audio data according to the timbre description algorithm to obtain timbre characteristics;
[0070] The frequency spectrum feature, the rhythm feature and the timbre feature are combined to obtain first audio feature data.
[0071] In the audio feature analysis method provided in this embodiment, the audio data is first preprocessed, and the preprocessing includes denoising and equalization. Denoising refers to using a filter or a denoising algorithm to remove background noise in the audio to improve the signal quality, and equalization refers to adjusting the frequency response of the audio signal to make it more balanced at different frequencies; secondly, the preprocessed audio data is sampled and quantized, wherein the sampling frequency determines the clarity of the audio and the highest reproducible frequency. The continuous-time audio signal can be converted into a discrete-time signal through sampling processing, and the quantization operation converts the continuous amplitude value of the sampled audio signal into a set of a finite number of quantization steps; then, feature extraction is performed on the quantized audio data, and the audio features here include frequency domain features and perceptual features.
[0072] Specifically, frequency domain features refer to spectral features. The spectral distribution of audio signals is analyzed through Fourier transform algorithms such as FFT (fast Fourier transform) or STFT (short-time Fourier transform) and other related algorithms, so as to extract spectral features such as spectral envelope, spectral centroid, and spectral roll-off. These spectral features can reflect the characteristics of audio signals in the frequency domain, such as describing the frequency distribution and pitch characteristics of audio; perceptual features include rhythm features and timbre features. Rhythm features can be extracted using rhythm detection algorithms, such as using autocorrelation functions or beat trackers to extract rhythm features including parameters such as beat speed, beat position, and beat intensity from audio signals; timbre features can be extracted using timbre description algorithms, such as using MFCC (Mel frequency cepstral coefficients) or LPC (linear prediction coefficients) to extract timbre features from audio signals to describe the sound quality and timbre of the audio. In addition, the time domain characteristics of audio data can be obtained by calculating the zero-crossing rate and short-time energy. The zero-crossing rate refers to the number of times the audio signal waveform crosses the zero axis, which is used to reflect the fast and slow changes and noise components of the audio. The short-time energy refers to the energy of the audio signal in each short time window, which is used to detect the activity and intensity of the audio.
[0073] After obtaining the feature data, the keyword features can be extracted through the keyword recognition model. Of course, before inputting the model, the audio features can also be optimized, such as selecting the most representative feature subset according to the importance, and reducing the feature dimension through feature selection algorithms such as principal component analysis and linear discriminant analysis, and retaining key information, and then inputting the optimized audio features into the keyword recognition model for keyword recognition. In this embodiment, the keyword recognition model can be constructed using a machine learning model or a deep neural network model, such as a support vector machine model, a recurrent neural network model, or a convolutional neural network model. One or more of these models are combined to construct the model, and the audio data with labels is used to train the model. The audio data with labels refers to the audio with known keyword positions. Through model training, the model can accurately extract key information from the audio features and identify the keywords in the audio; after identifying the keywords, the time position or area of each keyword in the audio data can be located, thereby obtaining the corresponding audio feature data. It should be noted that the audio analysis process of the audio data in the previous embodiment is the same as the audio analysis process in this embodiment. The model construction and training process in this embodiment can refer to the construction and training process of the conventional model, and will not be repeated here.
[0074] The method provided in this embodiment of first extracting audio features and then performing keyword recognition based on these features, the audio feature extraction can more robustly handle interference factors such as background noise, accent, speaking speed, etc., and can respond to user requests more quickly, thereby significantly reducing the amount of calculation and improving the efficiency, accuracy and real-time performance of keyword recognition. In addition, speech recognition models usually require a large amount of training data and computing resources to build and maintain, and the method of first extracting audio features and then performing keyword recognition can reduce the demand for training data and computing resources, thereby reducing the cost of building and maintaining the model.
[0075] The invisible watermark in the present invention also includes relevant information of the visible watermark. In a preferred embodiment, the information of the visible watermark image is obtained by the following steps:
[0076] Obtain pixel information of the first watermark image, and generate a pixel matrix and a brightness matrix according to the pixel information, wherein the pixel information includes pixel values and brightness values;
[0077] The pixel matrix and the brightness matrix are combined to obtain a four-channel matrix, a preset hash algorithm is used to calculate the four-channel matrix to obtain a pixel hash value, and the pixel hash value is used as the first watermark information.
[0078] In this embodiment, the first watermark image is generated based on a preset algorithm, which defines the color, brightness, font structure and other aspects of the image generated for certificate purposes. These defined parameters are expressed in pixels and can be used as image features of the watermark image. Specifically, the pixel value and brightness value of the pixel are used as watermark image features to obtain the corresponding watermark information.
[0079] Each element or pixel in the watermark image represents the color information of a certain position in the image. In an RGB image, each pixel value is represented by three values of red, green and blue, namely R value, G value and B value. Therefore, a three-channel pixel matrix can be generated based on the pixel value. For a grayscale image, the grayscale value can represent the brightness value, but for an RGB image, the RGB value needs to be converted into a brightness value through the pixel brightness conversion formula, such as brightness = a*R+b*G+c*B, where abc represents the corresponding weights of R value, G value and B value respectively. After obtaining the brightness value, a one-channel brightness matrix can be generated based on the brightness value. Then the pixel matrix and the brightness matrix are merged to obtain a four-channel matrix, which contains all the information of the watermark image and additional brightness information. Therefore, for the watermark image, it can be considered that the matrix containing the watermark information is unique.
[0080] In order to simplify the embedding process of watermark information as an invisible watermark and improve the embedding efficiency, this embodiment does not directly embed the four-channel matrix into the electronic certificate, but continues to process the matrix, that is, calculates the hash value of the four-channel matrix through a hash function such as SHA-256, and uses the hash value as the first watermark information of the first watermark image.
[0081] The watermark information is used as the verification information of the visible watermark, and together with the extracted feature data, is used as an invisible watermark and embedded in the electronic certificate, thereby obtaining an electronic certificate copy. The electronic certificate copy not only contains the visible watermark, but also hides the invisible watermark. The visible watermark can intuitively and clearly display the true situation of the electronic certificate, and the invisible watermark provides more hidden information for the verification of the certificate copy. Since the invisible watermark contains the watermark information of the visible watermark, even if the visible watermark is tampered with by illegal means, it can be discovered in time. In addition, the invisible watermark also contains the user's biometric information, which can prevent the invisible watermark from being tampered with, thereby ensuring the security, uniqueness and authenticity of the generated electronic certificate copy.
[0082] In order to further improve the tamper-proof level of the invisible watermark, in another preferred embodiment, a usage hash value is added to the watermark information. The specific steps include:
[0083] According to the third-party name in the license purpose, obtain the corresponding organization identification code, and convert the business name in the license purpose into the corresponding business code;
[0084] The organization identification code and the business code are combined to obtain a purpose identification, and a preset hash algorithm is used to calculate the purpose identification to obtain a purpose hash value;
[0085] The pixel hash value and the purpose hash value are combined to obtain first watermark information.
[0086] The watermark information in this embodiment not only includes the image information of the first watermark image, but also includes the purpose information of the certificate used to generate the first watermark image. The purpose information here is extracted from the purpose text information submitted by the user. In the purpose information submitted by the user, the name of the third-party organization is required, and the formal third-party organization that has business needs for electronic certificates must have its unique organization identification code, such as a stock code or a unified social credit code. For the submitted certificate business, this embodiment also pre-provides business codes corresponding to various businesses. Therefore, in this embodiment, the organization identification code and the business code can be obtained based on the information submitted by the user, and the two can be combined to obtain the purpose identification, and then the purpose identification is converted into a purpose hash value through a hash function. After obtaining the purpose hash value and the above-mentioned pixel hash value, the two hash values are combined as the first watermark information. It should be noted that the hash function here can be the same as or different from the hash function corresponding to the pixel hash value, and there is no excessive restriction here. Of course, using different hash functions will further improve the tamper-proof level of the first watermark information, thereby improving the security of the electronic certificate copy. In this embodiment, the invisible watermark is embedded in a reversible embedding method, such as LSB (least significant bit) replacement, DCT (discrete cosine transform) coefficient modification, DWT (discrete wavelet transform) and other embedding algorithms, and attention should be paid to the invisibility and robustness of the watermark when embedding the watermark, so as to ensure that the watermark can still be reliably extracted after image transmission, processing or slight modification. The specific embedding process will not be described in detail here.
[0087] In addition, in order to make the electronic certificate copy time-effective and prevent the unlimited spread of the electronic certificate copy, the present invention also adds time limit data to the electronic certificate copy, and the time limit data includes a visible time limit and an invisible time limit. Among them, the visible time limit is a part of the first watermark image and can be directly displayed on the electronic certificate copy. The visible time limit is generated by the certificate time limit submitted by the user, while the invisible time limit is hidden in the electronic certificate copy in the form of timestamp data. The timestamp data is a timestamp generated by analyzing the audio data, extracting the corresponding keywords, and performing time conversion. The timestamp data can be embedded in the electronic certificate as an invisible watermark. This embodiment ensures the timeliness of the electronic certificate copy by adding the certificate time limit data, prevents the spread and abuse of the electronic certificate copy, and improves the verification efficiency and tamper-proof level of the electronic certificate copy in both visible and invisible ways, further ensuring the security and authenticity of the electronic certificate copy.
[0088] The electronic certificate copy generated by the present invention includes two types of certificate uses and time limits, visible and invisible. When the electronic certificate copy is verified, the invisible watermark information is extracted, and the relevant information of the invisible watermark is matched with the pre-stored information and the visual watermark information. When the information is matched successfully, it is also necessary to determine whether the electronic certificate copy meets the time limit requirements. Only the electronic certificate copy that meets all the rules will be recognized as a true and valid electronic certificate copy. Obviously, the electronic certificate copy generation method provided by the present invention effectively avoids the risk of watermark information being tampered with, and ensures the authenticity, security, uniqueness and timeliness of the electronic certificate copy.
[0089] The present embodiment provides a method for generating an electronic certificate copy. By embedding a watermark in the electronic certificate, the application scenario of the electronic certificate copy is limited, thereby preventing the unlimited spread and illegal abuse of the electronic certificate copy. The real situation of the electronic certificate copy is intuitively and clearly displayed through the visible watermark, and the usage information and user biometric information are hidden through the invisible watermark. When verifying the electronic certificate copy, the illegal tampering of the visible watermark can be discovered in time, and the difficulty of tampering with the invisible watermark can be increased, thereby ensuring the authenticity, security and uniqueness of the electronic certificate copy. In addition, the timeliness of the electronic certificate copy is further guaranteed by adding time limit data.
[0090] See also Figure 2 Based on the same inventive concept, a system for generating a copy of an electronic certificate proposed in a second embodiment of the present invention includes:
[0091] The watermark image generation module 10 is used to obtain the electronic certificate and the corresponding certificate purpose, and generate a first watermark image according to the certificate purpose;
[0092] The watermark information acquisition module 20 is used to acquire the purpose audio data, perform feature extraction on the purpose audio data, and obtain feature data;
[0093] Acquire first watermark information of the first watermark image using a preset algorithm, and combine the first watermark information with the characteristic data to obtain second watermark information;
[0094] The watermark embedding module 30 is used to use the first watermark image and the second watermark information as a visible watermark and an invisible watermark respectively, and embed the visible watermark and the invisible watermark into the electronic certificate to obtain a copy of the electronic certificate.
[0095] The technical features and technical effects of the system for generating a copy of an electronic certificate proposed in the embodiment of the present invention are the same as those of the method proposed in the embodiment of the present invention, and are not described in detail here. Each module in the system for generating a copy of an electronic certificate can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0096] In addition, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0097] See also Figure 3 , an internal structure diagram of a computer device in an embodiment, the computer device can specifically be a terminal or a server. The computer device includes a processor, a memory, a network interface, a display and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating a copy of an electronic certificate is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0098] It can be understood by those skilled in the art that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computing device may include more or fewer components than shown in the figure, or combine certain components, or have the same component arrangement.
[0099] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.
[0100] In summary, the embodiments of the present invention propose a method, system, device and storage medium for generating a copy of an electronic certificate. The method obtains an electronic certificate and a corresponding certificate purpose, generates a first watermark image according to the purpose of the certificate; obtains purpose audio data, performs feature extraction on the purpose audio data, and obtains feature data; uses a preset algorithm to obtain the first watermark information of the first watermark image, and merges the first watermark information with the feature data to obtain the second watermark information; uses the first watermark image and the second watermark information as a visible watermark and an invisible watermark, respectively, and embeds the visible watermark and the invisible watermark into the electronic certificate to obtain an electronic certificate copy. The present invention limits the application scenarios of electronic certificate copies by embedding watermarks in electronic certificates, prevents the unlimited spread and illegal abuse of electronic certificate copies, improves the verification efficiency of electronic certificate copies by using both visible watermarks and invisible watermarks, avoids the risk of watermark information being tampered with, and ensures the authenticity, security, uniqueness and timeliness of electronic certificate copies.
[0101] Each embodiment in this specification is described in a progressive manner, and the same or similar parts of each embodiment can be directly referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. It should be noted that the technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0102] The above-mentioned embodiments only express several preferred implementation modes of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in the technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention, and these improvements and substitutions should also be regarded as the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be based on the protection scope of the claims.
Claims
1. A method for generating a copy of an electronic certificate, characterized in that: include: Acquire an electronic certificate and a corresponding certificate purpose, and generate a first watermark image according to the certificate purpose; Acquire purpose audio data, perform feature extraction on the purpose audio data, and obtain feature data; Acquire first watermark information of the first watermark image using a preset algorithm, and combine the first watermark information with the characteristic data to obtain second watermark information; Using the first watermark image and the second watermark information as a visible watermark and an invisible watermark respectively, and embedding the visible watermark and the invisible watermark into the electronic certificate to obtain a copy of the electronic certificate; The step of using a preset algorithm to obtain the first watermark information of the first watermark image includes: Obtain pixel information of the first watermark image, and generate a pixel matrix and a brightness matrix according to the pixel information, wherein the pixel information includes pixel values and brightness values; The pixel matrix and the brightness matrix are combined to obtain a four-channel matrix, a preset hash algorithm is used to calculate the four-channel matrix to obtain a pixel hash value, and the pixel hash value is used as the first watermark information.
2. The method for generating a copy of an electronic certificate according to claim 1, characterized in that: The step of extracting features from the usage audio data to obtain feature data comprises: Performing keyword recognition and audio analysis on the usage audio data to obtain keyword feature data and audio feature data; The keyword feature data and the audio feature data are used as feature data.
3. The method for generating a copy of an electronic certificate according to claim 2, characterized in that: The step of performing keyword recognition and audio analysis on the purpose audio data to obtain keyword feature data and audio feature data comprises: Using a speech recognition model to convert the usage audio data into text data, and performing keyword recognition on the text data to obtain keyword feature data; Audio analysis is performed on the audio segment corresponding to the keyword feature data to obtain audio feature data.
4. The method for generating a copy of an electronic certificate according to claim 2, characterized in that: The step of performing keyword recognition and audio analysis on the purpose audio data to obtain keyword feature data and audio feature data comprises: Performing audio analysis on the usage audio data to extract first audio feature data; Inputting the first audio feature data into a keyword recognition model to obtain keyword feature data; The audio feature corresponding to the keyword feature data is extracted from the first audio feature data to obtain audio feature data.
5. The method for generating a copy of an electronic certificate according to claim 4, characterized in that: The step of performing audio analysis on the usage audio data to extract first audio feature data comprises: Performing spectrum analysis on the audio data according to the Fourier transform algorithm to obtain spectrum characteristics; Performing rhythm analysis on the audio data according to a rhythm detection algorithm to obtain rhythm features; Performing timbre analysis on the audio data according to the timbre description algorithm to obtain timbre characteristics; The frequency spectrum feature, the rhythm feature and the timbre feature are combined to obtain first audio feature data.
6. The method for generating a copy of an electronic certificate according to claim 1, characterized in that: After the step of obtaining the pixel hash value, the method further includes: According to the third-party name in the certificate purpose, obtain the corresponding institution identification code, and convert the business name in the certificate purpose into the corresponding business code; The organization identification code and the business code are combined to obtain a purpose identification, and a preset hash algorithm is used to calculate the purpose identification to obtain a purpose hash value; The pixel hash value and the purpose hash value are combined to obtain first watermark information.
7. A system for generating a copy of an electronic certificate, characterized in that: include: A watermark image generation module, used to obtain an electronic certificate and a corresponding certificate purpose, and generate a first watermark image according to the certificate purpose; A watermark information acquisition module, used to acquire purpose audio data, perform feature extraction on the purpose audio data, and obtain feature data; Acquire first watermark information of the first watermark image using a preset algorithm, and combine the first watermark information with the characteristic data to obtain second watermark information; The step of using a preset algorithm to obtain the first watermark information of the first watermark image includes: Obtain pixel information of the first watermark image, and generate a pixel matrix and a brightness matrix according to the pixel information, wherein the pixel information includes pixel values and brightness values; The pixel matrix and the brightness matrix are combined to obtain a four-channel matrix, a preset hash algorithm is used to calculate the four-channel matrix to obtain a pixel hash value, and the pixel hash value is used as the first watermark information; The watermark embedding module is used to use the first watermark image and the second watermark information as a visible watermark and an invisible watermark respectively, and embed the visible watermark and the invisible watermark into the electronic certificate to obtain a copy of the electronic certificate.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Picture authorization authentication method and device, image opening and checking method and device, and memory medium
CN108650099A
Electronic certificate personalized information embedding and authenticating method for mobile equipment
CN110782383A
Certificate picture anti-theft method and system and medium
CN118379179A
Security methods employing drivers licenses and other documents
US20040049401A1
Intelligent terminal-based watermark adding method and watermark adding system
WO2019023867A1
