Face layered encryption method, device, equipment and storage medium

By using encryption chips and security chips to layer the face pictures in the face layered encryption method, the problem of long encryption time in the existing technology is solved, and efficient facial information encryption and privacy protection are achieved.

CN113868688BActive Publication Date: 2025-02-28SHENZHEN XINGUODU TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111238839.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-25
Publication Date
2025-02-28
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

When encrypting facial images in the prior art, encryption chips with higher computing power are required, resulting in a long encryption time and the inability to effectively protect the privacy of facial information.

Method used

A face layered encryption method is proposed. The encryption chip encrypts the data of key parts of the face to obtain the initial face ciphertext data, and then the defective picture data and the initial face ciphertext data are encrypted through the security chip to obtain the target face ciphertext data.

Benefits of technology

Through the layered encryption method, the security of key face data can be effectively protected, the encryption time can be shortened, and the privacy protection ability of face information can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113868688B_ABST
    Figure CN113868688B_ABST
Patent Text Reader

Abstract

The present invention discloses a face layered encryption method, device, equipment and storage medium. The face layered encryption method includes: obtaining a to-be-processed picture; performing face recognition processing on the to-be-processed picture to obtain a single face picture; intercepting and processing the single face picture on a preset security chip to obtain face feature values ​​and defect picture data; sending the face feature values ​​to a preset encryption chip for a first encryption processing to obtain initial face ciphertext data; sending the initial face ciphertext data to a security chip for combination processing with the defect picture data to obtain target face data; performing a second encryption processing on the target face data to obtain target face ciphertext data. Through this technical solution, the data of key parts of the face can be encrypted through the encryption chip, and then the defect picture data and the initial face ciphertext data can be encrypted as a whole through the security chip, thereby obtaining the target face ciphertext data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a face layered encryption method, device, equipment and storage medium. Background Art

[0002] With the large-scale commercialization of facial recognition technology in public places such as smart security, urban transportation, smart business and smart communities, the privacy protection of facial information has increasingly attracted public attention and concern. In order to effectively protect public privacy and respond to the concerns of the entire society about the security of facial information, a security mechanism for facial information encryption needs to be introduced in the new generation of facial recognition systems.

[0003] In the related technology, when facial information is exchanged, when a facial image is transmitted, if the entire facial image is to be encrypted, an encryption chip with higher computing power is required for encryption processing, which not only places high requirements on the encryption chip but also takes a long time to encrypt. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a face layered encryption method, device, equipment and storage medium, which can encrypt the key part data of the face through an encryption chip to obtain the initial face ciphertext data, and then use a security chip to encrypt the defect image data and the initial face ciphertext data as a whole, so as to obtain the target face ciphertext data.

[0005] The face layered encryption method according to the first embodiment of the present invention includes:

[0006] Get the image to be processed;

[0007] Perform face recognition processing on the image to be processed to obtain a single face image;

[0008] On a preset security chip, a single face image is intercepted and processed to obtain face feature values ​​and defect image data;

[0009] The facial feature values ​​are sent to a preset encryption chip for a first encryption process to obtain initial facial ciphertext data;

[0010] The initial face ciphertext data is sent to the security chip for combination processing with the defective image data to obtain the target face data;

[0011] Perform a second encryption process on the target face data to obtain the target face ciphertext data.

[0012] The face layered encryption method according to the embodiment of the present invention has at least the following beneficial effects:

[0013] The face layered encryption method of this embodiment obtains a picture to be processed; performs face recognition processing on the picture to be processed to obtain a single face picture; intercepts and processes the single face picture on a preset security chip to obtain face feature values ​​and defect picture data; sends the face feature values ​​to a preset encryption chip for a first encryption processing to obtain initial face ciphertext data; sends the initial face ciphertext data to the security chip for combination processing with the defect picture data to obtain target face data; performs a second encryption processing on the target face data to obtain target face ciphertext data, and can encrypt the data of key parts of the face through the encryption chip to obtain initial face ciphertext data, and then encrypt the defect picture data and the initial face ciphertext data as a whole through the security chip to obtain the target face ciphertext data.

[0014] According to some embodiments of the present application, including:

[0015] Get the preset face positioning algorithm;

[0016] According to the face positioning algorithm, all face areas and their respective position information of the image to be processed are identified;

[0017] According to the position information of the face area, a single face image is determined.

[0018] According to some embodiments of the present application, including:

[0019] Train a single face image according to a preset neural network to obtain face training parameters;

[0020] According to the face training parameters, the key parts in a single face image are calibrated as the target area;

[0021] The target area is intercepted and processed to obtain the facial feature values ​​corresponding to the key parts, and the defective image data lacking the key parts is obtained.

[0022] According to some embodiments of the present application, including:

[0023] Input a single face image into the neural network for training to obtain a face recognition model;

[0024] Train a single face image according to the face recognition model to obtain face training parameters.

[0025] According to some embodiments of the present application, including:

[0026] Acquire a communication interface component for communicating between the encryption chip and the security chip;

[0027] Sending the facial feature values ​​to the encryption chip through the communication interface component;

[0028] Get the encryption algorithm preset by the encryption chip;

[0029] The facial feature values ​​are encrypted using an encryption algorithm to obtain initial facial ciphertext data.

[0030] According to some embodiments of the present application, including:

[0031] Sending the initial face ciphertext data to the security chip through the communication interface component;

[0032] Obtaining the suffix storage space of the defect image data stored in the security chip;

[0033] The initial face ciphertext data is added to the suffix storage space of the defective image data to form the target face data.

[0034] According to some embodiments of the present application, including:

[0035] Obtain the security encryption algorithm preset by the security chip;

[0036] Using a secure encryption algorithm, the target face data is subjected to a second encryption process to obtain the target face ciphertext data.

[0037] A face layered encryption device according to an embodiment of the second aspect of the present application includes:

[0038] The acquisition module is used to obtain the image to be processed;

[0039] A recognition module is used to perform face recognition processing on the image to be processed to obtain a single face image;

[0040] The interception module is used to intercept and process a single face image on a preset security chip to obtain face feature values ​​and defect image data;

[0041] The first encryption module is used to send the facial feature value to a preset encryption chip for a first encryption process to obtain initial facial ciphertext data;

[0042] A combination module is used to send the initial face ciphertext data to the security chip for combination processing with the defective image data to obtain the target face data;

[0043] The second encryption module is used to perform a second encryption process on the target face data to obtain the target face ciphertext data.

[0044] A face layered encryption device according to an embodiment of the third aspect of the present application includes:

[0045] at least one memory;

[0046] at least one processor;

[0047] at least one program;

[0048] The program is stored in the memory, and the processor executes at least one program to implement:

[0049] Such as the face layered encryption method of the first aspect of the present invention.

[0050] According to the storage medium of the fourth aspect embodiment of the present application, executable instructions are stored, and the executable instructions can be executed by a computer, so that the computer executes the face layered encryption method as the first aspect of the present invention.

[0051] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The present invention will be further described below with reference to the accompanying drawings and embodiments, wherein:

[0053] Figure 1 A schematic diagram of a specific process of the face layered encryption method provided by the present invention;

[0054] Figure 2 for Figure 1 A specific flow chart of step S200;

[0055] Figure 3 for Figure 1 A specific flow chart of step S300;

[0056] Figure 4 for Figure 3 A specific flow chart of step S310;

[0057] Figure 5 for Figure 1 A specific flow chart of step S400;

[0058] Figure 6 for Figure 1 A specific flow chart of step S500;

[0059] Figure 7 for Figure 1 A specific flow chart of step S600 in FIG. DETAILED DESCRIPTION

[0060] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0061] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0062] In the description of the present invention, "several" means more than one, "many" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0063] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0064] In the description of the present invention, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0065] First, some nouns involved in this application are analyzed:

[0066] Single face image: refers to a single image containing a face obtained from the image or video frame to be processed through face recognition technology.

[0067] Facial feature value: refers to the relevant data of key parts of the face obtained after training a single face image through a neural network.

[0068] Defective image data: refers to the single face image data remaining after the relevant data for identifying the key parts of the face are cut out and deleted from the single face image.

[0069] Encryption chip: refers to a trusted platform module, which is a device that can independently generate keys, encrypt and decrypt. It has an independent processor and storage unit inside, which can store keys and feature data, and provide encryption and security authentication services for computers. When encryption is performed with a security chip, the key is stored in the hardware, and the stolen data cannot be decrypted, thereby protecting business privacy and data security. Nationally certified security chips such as K21, 3100, 1903, etc. In this application, the encryption chip includes an encryption algorithm.

[0070] Security chip: It is a general term for a type of security chip that integrates various symmetric and asymmetric algorithms, has a very high security level, and can ensure that the keys and information data stored inside will not be illegally read or tampered with. It is widely used in the embedded industry. Its predecessor is the ESAM module in industries such as water, electricity and gas meters, which is specially used for encrypted transmission of line data and secure storage of keys. In the embodiment of the present application, the security chip includes a secure encryption algorithm.

[0071] Encryption algorithm: refers to the encryption algorithm corresponding to the encryption chip. The encryption algorithm can be a hardware encryption method, that is, the key data is solidified in the encryption chip and usually cannot be read out. If it is detected that the solidified encryption chip is damaged, the corresponding key data will be automatically cleared, thereby ensuring the security of the encrypted data encrypted by the encryption algorithm.

[0072] Security encryption algorithm: refers to the security encryption algorithm corresponding to the security chip. Usually, the key data of the security encryption algorithm is stored in the computer program.

[0073] Neural network: Artificial neural network is also referred to as neural network or connection model. It is an algorithmic mathematical model that imitates the behavioral characteristics of animal neural networks and performs distributed parallel information processing. This network relies on the complexity of the system and adjusts the interconnected relationship between a large number of internal nodes to achieve the purpose of processing information.

[0074] like Figure 1 As shown, it is a schematic diagram of the implementation process of the face layered encryption method provided in an embodiment of the present application. The face layered encryption method may include but is not limited to steps S100 to S600.

[0075] S100, obtaining a picture to be processed;

[0076] S200, performing face recognition processing on the image to be processed to obtain a single face image;

[0077] S300, intercepting and processing a single face image on a preset security chip to obtain face feature values ​​and defect image data;

[0078] S400, sending the facial feature value to a preset encryption chip for a first encryption process to obtain initial facial ciphertext data;

[0079] S500, sending the initial face ciphertext data to the security chip for combination processing with the defective image data to obtain the target face data;

[0080] S600, performing a second encryption process on the target face data to obtain the target face ciphertext data.

[0081] In step S100 of some embodiments, the image to be processed is obtained, that is, the image to be processed is obtained through a computer program, which is used to execute the face layered encryption method provided in the embodiments of the present application.

[0082] In step S200 of some embodiments, face recognition processing is performed on the image to be processed to obtain a single face image. The specific execution steps are: first obtain a preset face positioning algorithm, then identify all face regions and their respective position information of the image to be processed according to the face positioning algorithm, and then determine a single face image based on the position information of the face regions.

[0083] In some embodiments, reference Figure 2 , step S200 may include but is not limited to steps S210 to S230.

[0084] S210, obtaining a preset face positioning algorithm;

[0085] S220, identifying all face regions and their respective position information of the image to be processed according to a face positioning algorithm;

[0086] S230: Determine a single face image according to the position information of the face area.

[0087] In step S210 of some embodiments, a preset face positioning algorithm is obtained to execute step S220 to identify all face regions and their respective position information of the image to be processed according to the face positioning algorithm, wherein the face positioning algorithm is selected according to actual needs and is not limited in the embodiments of the present invention.

[0088] In step S220 of some embodiments, after executing step S210 to obtain the preset face positioning algorithm, the computer program identifies all face areas and their respective position information of the image to be processed according to the face positioning algorithm. It can be understood that if no face information is detected by the face positioning algorithm, then subsequent face recognition processing will not be performed, which can indicate that there is no face information in the image to be processed.

[0089] In step S230 of some embodiments, after executing step S220 to identify all face regions and their respective position information of the image to be processed according to the face positioning algorithm, the computer program determines a single face image based on the position information of the face regions, wherein the position information indicates the position of the corresponding face region in the image to be processed, and determines a single face image based on the position information of the face regions.

[0090] Furthermore, the face region in the image to be processed is a rectangular region, and the coordinates of the upper left corner of the rectangular region and the length and width of the rectangular region can be used as position information corresponding to the rectangular region.

[0091] In step S300 of some embodiments, a single face image is intercepted and processed on a preset security chip to obtain facial feature values ​​and defect image data. The specific execution steps are: first, the single face image is input into the neural network for training to obtain a face recognition model, and then the single face image is trained according to the face recognition model to obtain face training parameters, and then according to the face training parameters, the key parts in the single face image are calibrated as the target area, and then the target area is intercepted and processed to obtain the facial feature values ​​corresponding to the key parts, and obtain defect image data lacking the key parts.

[0092] In some embodiments, reference Figure 3 , step S300 may include but is not limited to steps S310 to S330.

[0093] S310, training a single face image according to a preset neural network to obtain face training parameters;

[0094] S320, calibrating key parts in a single face image as a target area according to the face training parameters;

[0095] S330, performing interception processing on the target area to obtain facial feature values ​​corresponding to the key parts, and obtaining defective image data lacking the key parts.

[0096] In step S310 of some embodiments, after executing step S230 to determine a single face image according to the location information of the face area, the single face image obtained by step S230 is trained according to a preset neural network to obtain face training parameters. It can be understood that the single face image is first input into the neural network for training to obtain a face recognition model, and then the single face image is trained according to the face recognition model to obtain face training parameters. Among them, the neural network is selected according to actual needs, and the embodiment of the present invention is not limited.

[0097] In step S320 of some embodiments, after executing step S310 to train a single face image according to a preset neural network to obtain face training parameters, the key parts in the single face image are calibrated as the target area according to the face training parameters. It can be understood that when using a neural network for face recognition, a face recognition model is obtained, and the face recognition model is used to train multiple single face images to obtain face training parameters. The face training parameters are the coordinate positions of the key parts of the face after the key parts are identified, and are used to intercept the target area according to the coordinate positions.

[0098] Furthermore, the key parts include at least one of the following: eyebrows, eyes, nose, face, and mouth.

[0099] In step S330 of some embodiments, after executing step S320 to calibrate the key parts in a single face image as the target area according to the face training parameters, the target area is intercepted to obtain the facial feature values ​​corresponding to the key parts, and the defective image data lacking the key parts is obtained. It can be understood that the calibrated key parts in the single face image are intercepted, and the computer program filters out the data information corresponding to these key parts to obtain the facial feature values ​​corresponding to the key parts. Then, the key parts in the single face image are intercepted, and the remaining data is the defective image data lacking the key parts.

[0100] In some embodiments, reference Figure 4 , step S310 may include but is not limited to steps S311 to S312.

[0101] S311, inputting a single face image into a neural network for training to obtain a face recognition model;

[0102] S312, training a single face image according to the face recognition model to obtain face training parameters;

[0103] In step S311 of some embodiments, after executing step S230 and determining a single face image based on the location information of the face area, the computer program inputs the single face image into a neural network for training to obtain a face recognition model and then performs machine learning training. The neural network is selected according to actual needs and is not limited in the embodiments of the present invention.

[0104] In step S312 of some embodiments, after executing step S311 to input the single face image into the neural network for training to obtain a face recognition model, the computer program trains the single face image according to the face recognition model to obtain face training parameters. It can be understood that the face recognition model obtained after the machine learning training according to step S311 is then trained to recognize the single face image to be processed, thereby obtaining the face training parameters.

[0105] In step S400 of some embodiments, the facial feature values ​​are sent to a preset encryption chip for a first encryption process to obtain initial facial ciphertext data. The specific execution steps may be: first obtain a communication interface component for communication between the encryption chip and the security chip, then send the facial feature values ​​to the encryption chip through the communication interface component, then obtain the encryption algorithm preset in the encryption chip, and then use the encryption algorithm to perform a first encryption process on the facial feature values ​​to obtain initial facial ciphertext data.

[0106] In some embodiments, reference Figure 5 , step S400 may include but is not limited to steps S410 to S440.

[0107] S410, obtaining a communication interface component for communication between the encryption chip and the security chip;

[0108] S420, sending the facial feature value to the encryption chip through the communication interface component;

[0109] S430, obtaining the encryption algorithm preset by the encryption chip;

[0110] S440, using an encryption algorithm, performing a first encryption process on the facial feature value to obtain initial facial ciphertext data.

[0111] In step S410 of some embodiments, after executing step S330 to intercept the target area, obtain the facial feature values ​​corresponding to the key parts, and obtain the defective image data lacking the key parts, a communication interface component for communication between the encryption chip and the security chip is obtained, which is used to establish a communication connection and transmit data between the encryption chip and the security chip.

[0112] In step S420 of some embodiments, after executing step S410 to obtain the communication interface component for communication between the encryption chip and the security chip, the facial feature values ​​are sent to the encryption chip through the communication interface component. It can be understood that the facial feature values ​​obtained in step S330 are sent from the security chip to the encryption chip so that the data of key parts of the face can be encrypted in the encryption chip.

[0113] In step S430 of some embodiments, after executing step S420 to send the facial feature values ​​to the encryption chip through the communication interface component, the computer program obtains the encryption algorithm preset by the encryption chip, and is used to execute step S440 to encrypt the facial feature values ​​obtained in step S330 using the algorithm preset by the encryption chip, thereby obtaining initial facial ciphertext data.

[0114] Furthermore, the encryption algorithm preset in the encryption chip can be a hardware encryption method, and the key is downloaded in a factory security environment, so the key data cannot be read out, and if it is detected that the hardware device is disassembled, the key data will be automatically cleared. Among them, the encryption algorithm is selected according to actual needs and is not specifically limited in the embodiment of the present invention.

[0115] In step S440 of some embodiments, after executing step S430 to obtain the encryption algorithm preset in the encryption chip, the encryption algorithm is used to perform a first encryption processing on the facial feature values ​​to obtain initial facial ciphertext data. It can be understood that the encryption algorithm preset in the encryption chip is used to perform a first encryption processing on the facial feature values ​​to obtain initial facial ciphertext data.

[0116] It should be noted that the first encryption processing here can be understood as the encryption processing performed on the encryption chip. The encryption processing here is of a higher level than the second encryption processing performed on the security chip. In some embodiments, the key data information of the first encryption processing is solidified on the encryption chip. Once the hardware where the encryption chip is located is damaged, the key data will be cleared, thereby achieving protection of the facial feature values.

[0117] In step S500 of some embodiments, the initial facial ciphertext data is sent to the security chip for combination with the defective image data to obtain the target facial data. The specific execution steps are: first, the initial facial ciphertext data is sent to the security chip through the communication interface component, and then the suffix storage space of the defective image data stored in the security chip is obtained, and then the initial facial ciphertext data is added to the suffix storage space of the defective image data to combine into the target facial data.

[0118] In some embodiments, reference Figure 6 , step S500 may include but is not limited to steps S510 to S530.

[0119] S510, sending the initial face ciphertext data to the security chip through the communication interface component;

[0120] S520, obtaining a suffix storage space for defect image data stored in the security chip;

[0121] S530, adding the initial face ciphertext data to the suffix storage space of the defective image data to form the target face data.

[0122] In step S510 of some embodiments, after executing step S440, using an encryption algorithm to perform a first encryption process on the facial feature values ​​to obtain initial facial ciphertext data, the initial facial ciphertext data is sent to the security chip through the communication interface component obtained in step S410.

[0123] In step S520 of some embodiments, after executing step S510 to send the initial facial ciphertext data to the security chip through the communication interface component, a suffix storage space of the defective image data stored in the security chip is obtained to store the initial facial ciphertext data obtained by step S510.

[0124] In step S530 of some embodiments, after executing step S520 to obtain the suffix storage space of the defective image data stored in the security chip, the initial facial ciphertext data obtained by step S510 is added to the suffix storage space of the defective image data obtained by step S520 to be combined into target facial data. It can be understood that not only the initial facial ciphertext data after the first encryption processing on the encryption chip is stored in the last few bytes of the defective image data storage space, but also the size value of the facial ciphertext data is also stored in the suffix space, which is used to be combined with the defective image data lacking key parts into the target facial data.

[0125] In step S600 of some embodiments, a second encryption process is performed on the target facial data to obtain the target facial ciphertext data. The specific execution steps are: first obtain the security encryption algorithm preset by the security chip, and then use the security encryption algorithm to perform a second encryption process on the target facial data to obtain the target facial ciphertext data.

[0126] In some embodiments, reference Figure 7 , step S600 may include but is not limited to steps S610 to S620.

[0127] S610, obtaining a security encryption algorithm preset by the security chip;

[0128] S620, using a secure encryption algorithm, perform a second encryption process on the target face data to obtain the target face ciphertext data.

[0129] In step S610 of some embodiments, after executing step S530 to add the initial facial ciphertext data to the suffix storage space of the defective image data, the target facial data is combined, and then the security encryption algorithm preset in the security chip is obtained through a computer program, which is used to encrypt the target facial data obtained by step S530 using the security encryption algorithm, thereby obtaining the target facial ciphertext data.

[0130] In step S620 of some embodiments, after executing step S610 to obtain the security encryption algorithm preset in the security chip, the computer program uses the security encryption algorithm obtained by step S610 to perform a second encryption process on the target facial data obtained by step S530 to obtain the target facial ciphertext data.

[0131] It should be noted that the second encryption process here can be understood as an encryption process performed on the security chip by a preset security encryption algorithm, and the second encryption process here has a lower security level than the first encryption process. In some embodiments, the encryption key data of the encryption algorithm can be stored in a computer program.

[0132] The above-mentioned method of encrypting different facial data by applying encryption algorithms of different security levels can not only ensure the security of key facial data, but also shorten the encryption time compared to the existing method of encrypting the entire facial data.

[0133] In some implementations, a face layered encryption device includes:

[0134] The acquisition module is used to obtain the image to be processed;

[0135] A recognition module is used to perform face recognition processing on the image to be processed to obtain a single face image;

[0136] The interception module is used to intercept and process a single face image on a preset security chip to obtain face feature values ​​and defect image data;

[0137] The first encryption module is used to send the facial feature value to a preset encryption chip for a first encryption process to obtain initial facial ciphertext data;

[0138] A combination module is used to send the initial face ciphertext data to the security chip for combination processing with the defective image data to obtain the target face data;

[0139] The second encryption module is used to perform a second encryption process on the target face data to obtain the target face ciphertext data.

[0140] The specific implementation of the face layered encryption device of this embodiment is basically the same as the specific implementation of the above-mentioned face layered encryption method, and will not be repeated here.

[0141] In some embodiments, a face layered encryption device includes: at least one memory; at least one processor; at least one program, wherein the memory is used to store an executable program, and the executable program executes the face layered encryption method as described above when run.

[0142] In some implementations, the storage medium stores executable instructions that can be executed by a computer.

[0143] As a non-transitory storage medium, the memory can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0144] The embodiments described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.

[0145] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0146] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0149] The preferred embodiments of the present disclosure are described above with reference to the accompanying drawings, but the scope of the rights of the present disclosure is not limited thereto. Any modification, equivalent substitution and improvement made by those skilled in the art without departing from the scope and essence of the present disclosure should be within the scope of the rights of the present disclosure.

Claims

1. A face layered encryption method, characterized in that: include: Get the image to be processed; Performing face recognition processing on the image to be processed to obtain a single face image; On a preset security chip, the single face image is intercepted and processed to obtain face feature values ​​and defect image data; The facial feature value is sent to a preset encryption chip for a first encryption process to obtain initial facial ciphertext data; the facial feature value is sent to a preset encryption chip for a first encryption process to obtain initial facial ciphertext data, including: obtaining a communication interface component for communication between the encryption chip and the security chip; sending the facial feature value to the encryption chip through the communication interface component; obtaining an encryption algorithm preset by the encryption chip; using the encryption algorithm, performing a first encryption process on the facial feature value to obtain the initial facial ciphertext data; The initial face ciphertext data is sent to the security chip for combination processing with the defective picture data to obtain target face data; the sending of the initial face ciphertext data to the security chip for combination processing with the defective picture data to obtain target face data includes: sending the initial face ciphertext data to the security chip through the communication interface component; obtaining the suffix storage space of the defective picture data stored in the security chip; adding the initial face ciphertext data to the suffix storage space of the defective picture data to combine into the target face data; The target face data is subjected to a second encryption process to obtain the target face ciphertext data.

2. The face layered encryption method according to claim 1, characterized in that: The step of performing face recognition processing on the image to be processed to obtain a single face image includes: Get the preset face positioning algorithm; Identify all face regions and their respective position information of the image to be processed according to the face positioning algorithm; The single face image is determined according to the position information of the face area.

3. The face layered encryption method according to claim 1, characterized in that: The single face image is intercepted and processed on the preset security chip to obtain face feature values ​​and defect image data, including: Training the single face image according to a preset neural network to obtain face training parameters; According to the face training parameters, calibrate the key parts in the single face image as the target area; The target area is intercepted to obtain the facial feature value corresponding to the key part, and the defective image data lacking the key part is obtained.

4. The face layered encryption method according to claim 3, characterized in that: The step of training the single face image according to a preset neural network to obtain face training parameters includes: Inputting the single face image into the neural network for training to obtain a face recognition model; The single face image is trained according to the face recognition model to obtain the face training parameters.

5. The face layered encryption method according to any one of claims 1 to 4, characterized in that: The performing a second encryption process on the target face data to obtain the target face ciphertext data includes: Obtaining a security encryption algorithm preset by the security chip; The target face data is subjected to a second encryption process using the security encryption algorithm to obtain the target face ciphertext data.

6. A face layered encryption device, characterized in that: include: The acquisition module is used to obtain the image to be processed; A recognition module, used to perform face recognition processing on the image to be processed to obtain a single face image; An interception module, used to intercept and process the single face image on a preset security chip to obtain face feature values ​​and defect image data; A first encryption module, used for sending the facial feature value to a preset encryption chip for first encryption processing to obtain initial facial ciphertext data; The first encryption module includes: obtaining a communication interface component for communication between the encryption chip and the security chip; sending the facial feature value to the encryption chip through the communication interface component; obtaining an encryption algorithm preset by the encryption chip; and performing a first encryption process on the facial feature value using the encryption algorithm to obtain the initial facial ciphertext data; A combination module is used to send the initial face ciphertext data to the security chip for combination processing with the defective image data to obtain target face data; the combination module includes: sending the initial face ciphertext data to the security chip through the communication interface component; obtaining the suffix storage space of the defective image data stored in the security chip; adding the initial face ciphertext data to the suffix storage space of the defective image data to combine into the target face data; The second encryption module is used to perform a second encryption process on the target face data to obtain the target face ciphertext data.

7. Face layered encryption device, characterized in that: include: at least one memory; at least one processor; at least one program; The program is stored in the memory, and the processor executes at least one of the programs to implement: The face layered encryption method as described in any one of claims 1 to 5.

8. A storage medium, characterized in that The storage medium stores executable instructions, which can be executed by a computer to enable the computer to execute: The face layered encryption method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Face payment method and system

    CN111476580A

  • Image encryption storage method and device

    CN111832035A

  • Face recognition method and device

    CN112633240A