CN106529307A - Photo encryption method and device - Google Patents

Photo encryption method and device Download PDF

Info

Publication number
CN106529307A
CN106529307A CN201510573789.4A CN201510573789A CN106529307A CN 106529307 A CN106529307 A CN 106529307A CN 201510573789 A CN201510573789 A CN 201510573789A CN 106529307 A CN106529307 A CN 106529307A
Authority
CN
China
Prior art keywords
user
photo
facial
information
face feature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510573789.4A
Other languages
Chinese (zh)
Other versions
CN106529307B (en
Inventor
冯坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510573789.4A priority Critical patent/CN106529307B/en
Publication of CN106529307A publication Critical patent/CN106529307A/en
Application granted granted Critical
Publication of CN106529307B publication Critical patent/CN106529307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a photo encryption method and device and relates to the field of communication technology. Photo encryption efficiency can be improved, and the probability that user information is disclosed from photos is greatly lowered. The encryption method comprises the steps that first facial feature information of a user is acquired in the previewing and framing process when a first photo of the user is shot; if the matching degree between the first facial feature information and second facial feature information is greater than or equal to a preset threshold value, a preset encryption mode corresponding to the second facial feature information is acquired, wherein the second facial feature information is the facial information acquired in advance of the encrypted user; the encryption mode is adopted for encrypting the first photo; the first photo obtained after encryption is saved into a preset gallery.

Description

A kind of encryption method and device of photo
Technical field
The present invention relates to communication technical field, more particularly to a kind of encryption method and device of photo.
Background technology
With the intellectuality of mobile phone, camera function of the various functions of mobile phone, such as mobile phone etc. It is gradually perfect, thus increasing user like with mobile phone shoot photo (including user be from Oneself shoots photo and shoots photo for others).
In prior art, when user shoots photo using the camera function of mobile phone, mobile phone can It is automatically saved in picture library (such as the photograph album application of mobile phone) with the photo for photographing user, To complete the shooting of photo.In some specific application scenarios, such as when user have taken and which During the relevant photo of communicative object (photo may relate to the communicative information of user), if user Need to protect the communicative information of oneself, then user can be by being encrypted the photo, to protect Card will not pass through the communicative information that the photo reveals user.Specifically, user can be clapped in photo After the completion of taking the photograph, it is encrypted in the photo for preserving into the photo of picture library selection needs encryption manually.
However, the encryption method of above-mentioned photo, as user is the hand after the completion of photograph taking Move preserve into the photo of picture library select need encryption photo (for example the photo includes certain The face-image of individual user, then the user can be described as encrypting user) be encrypted, therefore lead Cause relatively low to the encryption efficiency of photo;And to this period before encryption after the completion of user shoots Interior, the photo still may reveal the communicative information of user.
The content of the invention
Embodiments of the invention provide a kind of encryption method and device of photo, it is possible to increase control The encryption efficiency of piece, and substantially reduce the probability that photo reveals user profile.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
In a first aspect, the embodiment of the present invention provides a kind of encryption method of photo, the encryption side Method includes:
The first facial characteristic information of user is obtained, the first facial characteristic information is to institute State user shoot first photo preview find a view during obtain;
If the matching degree of the first facial characteristic information and the second face feature information is more than or waits In predetermined threshold value, then default cipher mode corresponding with second face feature information is obtained, Second face feature information is the face feature information of the advance encryption user for obtaining;
Using the cipher mode, first photo is encrypted;
First photo after preservation encryption is in default picture library.
Second aspect, the embodiment of the present invention provide a kind of encryption device of photo, the encryption dress Put including:
Acquiring unit, for obtaining the first facial characteristic information of user, and if first face The matching degree of portion's characteristic information and the second face feature information is more than or equal to predetermined threshold value, then obtain Default cipher mode corresponding with second face feature information is taken, the first facial is special Reference breath is to obtain during the preview that the first photo is shot to the user is found a view, described Second face feature information is the face feature information of the advance encryption user for obtaining;
Ciphering unit, for the cipher mode obtained using the acquiring unit, to described First photo is encrypted;
Storage unit, for preserving first photo after ciphering unit encryption to presetting Picture library in.
The embodiment of the present invention provides a kind of encryption method and device of photo, and the encryption method includes: The first facial characteristic information of user is obtained, and first facial characteristic information is the to be shot to user What the preview of one photo was obtained during finding a view;If first facial characteristic information and the second face are special The matching degree of reference breath is more than or equal to predetermined threshold value, then obtain default and the second facial characteristics The corresponding cipher mode of information, the second face feature information are the face of the advance encryption user for obtaining Portion's characteristic information;Using cipher mode, the first photo is encrypted;Preserve the after encryption One photo is in default picture library.
Based on above-mentioned technical proposal, the encryption method of photo provided in an embodiment of the present invention, a side Face, due to user shoot the first photo preview find a view during obtain user the first face Portion's characteristic information, and in the first facial characteristic information with advance certain the encryption user's for obtaining The matching degree of the second face feature information is more than or equal to predetermined threshold value (it is considered that first facial Characteristic information and the face feature information that the second face feature information is same user) when, from It is dynamic first photo to be carried out adding using cipher mode corresponding with second face feature information Close, i.e., the embodiment of the present invention can be during photo be shot automatically according to corresponding encryption side Formula is encrypted to the photo for photographing, therefore can improve the encryption efficiency to photo.It is another Aspect, due to the embodiment of the present invention be will shoot the first photo encryption after be saved in again it is default In picture library, i.e., first photo for preserving in picture library is already encrypted, therefore can substantially reduce Photo reveals the probability of user profile.So as to the encryption side of photo provided in an embodiment of the present invention Method can improve the encryption efficiency to photo, and substantially reduce the several of photo leakage user profile Rate.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below Accompanying drawing to be used needed for embodiment or description of the prior art will be briefly described, show and Easy insight, drawings in the following description are only some embodiments of the present invention, for this area For those of ordinary skill, on the premise of not paying creative work, can be with according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of flow chart one of the encryption method of photo provided in an embodiment of the present invention;
Fig. 2 is a kind of flowchart 2 of the encryption method of photo provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart 3 of the encryption method of photo provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart four of the encryption method of photo provided in an embodiment of the present invention;
Fig. 5 is a kind of flow chart five of the encryption method of photo provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of the encryption device of photo provided in an embodiment of the present invention.
Specific embodiment
The terms "and/or", only it is a kind of description affiliated partner incidence relation, table Show there may be three kinds of relations, for example, A and/or B can be represented:Individualism A, while There is A and B, individualism B these three situations.Character "/" herein, before typicallying represent Affiliated partner is a kind of relation of "or" afterwards.For example, A/B can be understood as A or B.
Term " first ", " second " in description and claims of this specification and " Three " it is etc. for distinguishing different objects, rather than for the particular order of description object.Example Such as, the first photo, the second photo and the 3rd photo etc. are for distinguishing different photos, and not It is the characteristic sequence for describing photo.
In describing the invention, unless otherwise stated, the implication of " multiple " refer to two or Two or more.For example, multiple face feature informations refer to that two or more facial characteristics are believed Breath;Multiple users refer to two or more users.
Additionally, the term " comprising " and " having " being previously mentioned in description of the invention and it Any deformation, it is intended that cover and non-exclusive include.Series of steps is contained for example Or the process of unit, method, system, product or equipment be not limited to the step of listing or Unit, but the step of alternatively also do not list including other or unit, or alternatively also wrap Include other intrinsic for these processes, method, product or equipment step or unit.
In below describing, in order to illustrate rather than in order to limit, it is proposed that such as particular system knot The detail of structure, interface, technology etc, understands the present invention to cut thoroughly.However, ability The technical staff in domain is it should be clear that can also in the other embodiments for do not have these details Realize the present invention.In other situations, omit to well-known device, circuit and method Detailed description, in order to avoid unnecessary details hinders description of the invention.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical side in the embodiment of the present invention Case is clearly and completely described, it is clear that described embodiment is only the present invention one Divide embodiment, rather than the embodiment of whole.Based on the embodiment in the present invention, this area is general The every other embodiment obtained under the premise of creative work is not paid by logical technical staff, Belong to the scope of protection of the invention.
The encryption method and device of photo provided in an embodiment of the present invention can apply to need protection In the scene of user profile.
In a kind of possible application scenarios, when user carries out social activity, if user needs protection certainly Oneself communicative information, such as user are not wanted to allow other users to see which uses what oneself mobile phone shot Photo related to oneself communicative object etc., then, in this application scenarios, can apply this Photo of the encryption method of the photo that bright embodiment is provided during photo is shot to photographing It is encrypted, to prevent other users from seeing.Thus, can not only improve the encryption to photo Efficiency, can also substantially reduce the probability that photo reveals user profile.Wherein, this applied field Scape is usually user to be needed to protect the application of its personal information (individual privacy of such as user etc.) Scene.
In alternatively possible application scenarios, when user extracts evidence, if user needs to extract Evidence be inconvenient to extract, such as user need shoot photo other side do not allow user shoot photo, Then in this scene, the encryption method of photo provided in an embodiment of the present invention can be applied to clap Take the photograph the photo during photo to photographing to be encrypted, to avoid other side from seeing.Thus, The encryption efficiency to photo can be not only improved, photo can also be substantially reduced and revealed user profile Probability.Wherein, this application scenarios are usually user and need to protect its personal information (for example Photographing information of user etc.) and public interest application scenarios.
The encryption method of a kind of photo provided in an embodiment of the present invention and the application scenarios of device include But it is not limited to the above-mentioned two kinds of application scenarios enumerated.For other possible application scenarios present invention Embodiment will not enumerate.
A kind of encryption method and device of photo provided in an embodiment of the present invention is mainly used in and has In the electronic equipment of camera function.Preferably, can apply to the intelligence with camera function In energy mobile phone.Wherein, the encryption method of photo can pass through the encryption device realization of photo, i.e., Encryption device of the executive agent of the encryption method of photo provided in an embodiment of the present invention for photo. It is applied in smart mobile phone with the encryption method and device of a kind of photo provided in an embodiment of the present invention As a example by, on software is realized, the encryption device of photo can be the camera application of smart mobile phone, Can also be units/modules for being made up of the code for realizing corresponding function etc. in camera application; On hardware is realized, the encryption device of photo can be the group of the camera and processor of smart mobile phone Close, or the camera of smart mobile phone and it is integrated with chip of corresponding function etc..Specifically Implementation, can be adaptively to be converted according to its use demand by each manufacturer, this Invention is not construed as limiting.
In following each embodiment of the method, in order to more clearly describe provided in an embodiment of the present invention A kind of encryption method of photo, the executive agent of the encryption method are carried out by taking smart mobile phone as an example Exemplary explanation.It will be recognized to those skilled in the art that the encryption method not only may be used To be realized by smart mobile phone, it is also possible to by being integrated with other electronic equipments or these equipment Chip and/or part of corresponding function etc. are realized.
Embodiment one
As shown in figure 1, the embodiment of the present invention provides a kind of encryption method of photo, the encryption side Method can include:
S101, smart mobile phone obtain the first facial characteristic information of user, first facial feature letter Breath is to obtain during the preview that the first photo is shot to user is found a view.
In the embodiment of the present invention, smart mobile phone shoots pre- before the process of photo can include shooting Look at the process of finding a view, shoot in shooting action and shoot after preservation process.Art technology Personnel be appreciated that smart mobile phone complete shoot photo process after just it is believed that smart mobile phone it is complete Into the shooting (it can be appreciated that photograph taking is completed) of photo.
It will be understood by those skilled in the art that user is in the process that photo is shot using smart mobile phone In, when user opens the camera application on smart mobile phone, smart mobile phone for user is in first Existing is preview viewfinder window, i.e., the window that generally user is watched in focus process.
As in preview viewfinder window, the image that camera is captured is the real life facial figure of user Picture, therefore the embodiment of the present invention can obtain the user of photo to be captured during preview is found a view Face feature information, i.e., above-mentioned first facial characteristic information.User plane can so be improved The recognition accuracy of portion's feature.
In the embodiment of the present invention, the first facial characteristic information of above-mentioned user is that user is being shot What preview during the first photo was obtained during finding a view.Wherein, the first photo is current shooting Photo;The preview preview that process is current shooting photo of finding a view is found a view process.
Optionally, above-mentioned first facial characteristic information can be the facial geometric feature information of user, Other can be extracted from the face-image of user with facial algebraic characteristic information of user etc. Facial characteristics, the present invention is not especially limited.Wherein, for smart mobile phone in above-mentioned S101 The method for obtaining the first facial characteristic information of user will be carried out in detail in the following embodiments Bright, here is omitted.
Optionally, in the embodiment of the present invention, after shooting action is performed to user, what is shot When first photo is generated, smart mobile phone will can be found a view in the preview that the first photo is shot to user The first facial characteristic information got in journey is saved in the attribute of the first photo.Wherein, The attribute of one photo can be exchangeable image file (exif) information of the first photo.First In the exif information of photo can also include the first photo photographing information, such as shooting time, At least one in spot for photography, camera model and time for exposure etc..
If the matching degree of S102, first facial characteristic information and the second face feature information be more than or Equal to predetermined threshold value, then smart mobile phone obtains default corresponding with the second face feature information add Close mode, the second face feature information are the face feature information of the advance encryption user for obtaining.
Wherein, above-mentioned second face feature information is the encryption that smart mobile phone is obtained in advance and stored The face feature information of user.In the embodiment of the present invention, encryption user refers to and needs to its photo The user being encrypted.For example, if desired the photo of certain user is encrypted, then the use User is encrypted as in family.
In practical application, as the external environment condition residing for user is different and/or the facial pose of user Not equal, there is trickle change in the face feature information that all may result in user, therefore work as When user is in different external environment conditions and/or user and has different facial poses, smart mobile phone May there are some subtle differences between the face feature information of the user for getting.I.e. Even if above-mentioned first facial characteristic information and the face that the second face feature information is same user , between them, still can there are some subtle differences in characteristic information.
In the embodiment of the present invention, user can be according to the demand of oneself in advance in the intelligent hand of oneself The object for needing to encrypt photo is set in machine, that is, is encrypted user, and is pre-saved encryption user Face feature information.Encryption user can be the user oneself, i.e. user's setting needs right It is encrypted with the photo of oneself correlation;Encryption user can also be other users, the i.e. use Family is arranged need to be to being encrypted with the related photo of other users.
Further, user also need to arrange to encrypt what user-dependent photo was encrypted Cipher mode, for example, the cipher mode can be to add password, or hide etc. mode.Its In, adding in the mode of password, the password for adding can be by user according to the actually used of oneself Demand is configured, and the present invention is not especially limited;In Stealth Modus, user can be according to certainly Oneself actually used demand arranges the storing path of the photo for needing to hide or position (only has User oneself knows that the photo for needing encryption can be stored under the storing path or be stored in the position In putting).
It should be noted that user can arrange identical cipher mode for all encryption users; Different cipher modes can also be all set for all encryption users;Can also use for Partial encryption Family arranges identical cipher mode, and the present invention is not especially limited.
In the embodiment of the present invention, when smart mobile phone shoots photo to certain user, such as first shines After piece, smart mobile phone is necessary to determine whether to need to be encrypted first photo.It is a kind of possible Implementation be, smart mobile phone can by will shoot the first photo process it is (specially pre- Look at the process of finding a view) in the first facial characteristic information for getting and multiple faces for pre-saving it is special (this multiple face feature information is the face feature information of multiple encryption users to reference breath, and is needed Will to this it is multiple encryption users photos be encrypted) carry out match contrast determine the need for it is right First photo is encrypted.For example, if first facial characteristic information and multiple facial characteristics letter In breath the second face feature information matching contrast successfully (i.e. expression first facial characteristic information with Second face feature information is the face feature information of same user, for example, be certain user Face feature information), then smart mobile phone can obtain default with the second facial characteristics automatically The corresponding cipher mode of information, and first photo is encrypted using the cipher mode.
Above-mentioned smart mobile phone is to first facial characteristic information and the multiple facial characteristics letters for pre-saving Breath carries out matching the algorithm of contrast and can adopt some the algorithm realities in existing face recognition technology It is existing, it is for instance possible to use the elastic bunch graph matching (English in existing face recognition technology: Elastic bunch graph matching, abbreviation:EBGM) algorithm is realized.Wherein, EBGM Algorithm is to carry out principal component analysis respectively to each face feature information first, extracts these faces Several maximum differential characteristic vectors in portion's characteristic information, this several maximum differential feature to Amount may be constructed elastic construction figure corresponding with face feature information, then adopt topological structure again Parser, such as carries out wavelet transformation using Gabor filter and finally gives each topological structure Between matching degree, the matching degree is the matching degree between each face feature information.Specifically , each manufacturer can be as to design other with the EBGM classes of algorithms according to the use demand of oneself Some algorithms realize that the present invention is not construed as limiting.
Exemplary, in a kind of possible implementation, smart mobile phone can be by calculating first The matching between each face feature information in face feature information and multiple face feature informations Degree, in determining multiple face feature informations, which face feature information is believed with first facial feature The face feature information for same user is ceased, such as smart mobile phone can determine that multiple faces The second face feature information in characteristic information and first facial characteristic information are same user Face feature information, needs to be encrypted the first photo so as to smart mobile phone can determine first, And need the first photo to be carried out adding using cipher mode corresponding with the second face feature information It is close.
If it is understood that smart mobile phone no determination in multiple face feature informations is taken the post as What face feature information and the facial characteristics letter that first facial characteristic information is same user Cease, then smart mobile phone is can determine without the need for be encrypted to the first photo.So as to smart mobile phone is straight Connect and the first photo that the user shoots will be saved in default picture library.
It is in practical application, in order to ensure the identification probability of the facial characteristics to people, generally above-mentioned pre- If threshold value could be arranged to 70%.As long as i.e. above-mentioned first facial characteristic information and multiple facial characteristics A face feature information in information, such as matching degree between the second face feature information are big In or be equal to 70%, then it is considered that first facial characteristic information and the second face feature information are same The face feature information of one user.As the second face feature information is that encryption user is (concrete For user) face feature information, therefore smart mobile phone can determine and need to enter the first photo Row encryption.
S103, smart mobile phone adopt cipher mode, and the first photo is encrypted.
Wherein, in cipher mode and above-mentioned S102, user arrange to encrypt it is user-dependent The cipher mode that photo is encrypted is corresponding.Specifically, can be with for the description of cipher mode Referring to the associated description of the cipher mode arranged to user in above-mentioned S102, here is omitted.
S104, smart mobile phone preserve the first photo after encryption in default picture library.
After smart mobile phone is encrypted to the first photo, then by encryption after the first photo be saved in In default picture library, with prior art in photo is saved in picture library after it is right manually by user again The photo is encrypted, and so as to after the completion of shooting, within this period before encryption, the photo is still The communicative information that user may be revealed so is compared, as the embodiment of the present invention is shooting photo During photo automatically to needing encryption be encrypted, therefore the photo can be reduced reveal to use The probability of family information.
Exemplary, if cipher mode is the mode for adding password, the first photo is saved in pre- If picture library (i.e. photo is saved in fixed path or position, for example, can be photograph album application) In after, user need to input corresponding password and can just check;If cipher mode is hiding mode, Then the first photo is saved in default picture library (i.e. photo is saved in hiding path or position, example Can such as be hidden folder) in after, user need according to hide path or position can just check To the first photo, wherein, in practical application, hiding path or position are also to need user pre- First arrange password can just unhide.
Wherein, above-mentioned default picture library can be understood as it is any in smart mobile phone being capable of storage file Where, the present invention is not construed as limiting.For example, above-mentioned default picture library can be in smart mobile phone Photograph album application, or certain hidden folder etc..
The embodiment of the present invention provides a kind of encryption method of photo, and the encryption method includes:Obtain The first facial characteristic information of user, first facial characteristic information are that the first photograph is being shot to user What the preview of piece was obtained during finding a view;If first facial characteristic information and the second facial characteristics letter The matching degree of breath is more than or equal to predetermined threshold value, then obtain default and the second face feature information Corresponding cipher mode, the second face feature information are that the face of the advance encryption user for obtaining is special Reference ceases;Using cipher mode, the first photo is encrypted;Preserve the first photograph after encryption Piece is in default picture library.
Based on above-mentioned technical proposal, the encryption method of photo provided in an embodiment of the present invention, a side Face, due to user shoot the first photo preview find a view during obtain user the first face Portion's characteristic information, and in the first facial characteristic information with advance certain the encryption user's for obtaining The matching degree of the second face feature information is more than or equal to predetermined threshold value (it is considered that first facial Characteristic information and the face feature information that the second face feature information is same user) when, from It is dynamic first photo to be carried out adding using cipher mode corresponding with second face feature information Close, i.e., the embodiment of the present invention can be during photo be shot automatically according to corresponding encryption side Formula is encrypted to the photo for photographing, therefore can improve the encryption efficiency to photo.It is another Aspect, due to the embodiment of the present invention be will shoot the first photo encryption after be saved in again it is default In picture library, i.e., first photo for preserving in picture library is already encrypted, therefore can substantially reduce Photo reveals the probability of user profile.So as to the encryption side of photo provided in an embodiment of the present invention Method can improve the encryption efficiency to photo, and substantially reduce the several of photo leakage user profile Rate.
Embodiment two
Based on the encryption method of the photo described in above-described embodiment one, the embodiment of the present invention is also provided The encryption method of following photos.
Optionally, in the encryption method of photo provided in an embodiment of the present invention, smart mobile phone is right User shoots the n frame face-images of continuous acquisition user during the preview of the first photo is found a view, And first facial characteristic information includes a first facial condition code and at least one first amendments Value, n is the integer more than or equal to 2.With reference to Fig. 1, as shown in Fig. 2 above-mentioned S101 tools Body can include:
The first frame face-image in S101a, smart mobile phone collection n frame face-images, the first frame Face-image includes first facial condition code.
S101b, smart mobile phone obtain first facial condition code according to the first frame face-image, and First facial condition code is saved in first facial characteristic information.
In the embodiment of the present invention, it is assumed that party A-subscriber needs to certain user that (user can be A User oneself, or other users) shoot photo, then when party A-subscriber opens smart mobile phone Camera, and when camera is aligned the user, smart mobile phone shows preview viewfinder first Mouthful, while party A-subscriber can see the user in preview viewfinder window.In the embodiment of the present invention, When party A-subscriber focuses to the user in preview viewfinder window, smart mobile phone can be somebody's turn to do with continuous acquisition The n frame face-images of user.And include gathering the frame face-image in each frame face-image Moment the user face feature information.The real-time changes such as the facial pose due to the user, Therefore may there are some between the face feature information that each frame face-image includes trickle Difference.Wherein, the restriction " A " of above-mentioned party A-subscriber is intended merely to and is taken the user of photo Make a distinction and propose, in fact, in the embodiment of the present invention, party A-subscriber can be any one User, which can't form any restriction to the present invention.
Specifically, when smart mobile phone collects the first frame face-image, smart mobile phone can pass through First frame face-image is identified, analyzes and is processed, is obtained in the first frame face-image Including first facial condition code.Wherein, the facial characteristics of people is obtained by the face-image of people The algorithm of code extracts the face of people by facial image in can adopting existing face recognition technology The algorithm of feature, extracts people by facial image in specifically can be found in existing face recognition technology The algorithm of facial characteristics implement, here is omitted.
The i-th frame face-image in S101c, smart mobile phone collection n frame face-images, the i-th frame Face-image includes the i-th facial characteristics code, and 2≤i≤n, i are integer.
S101d, smart mobile phone obtain the i-th facial characteristics code and saved first facial feature Difference between information, obtains first correction value, and first correction value is preserved To in first facial characteristic information.
When smart mobile phone collects the second frame face-image, smart mobile phone can be by the second frame Face-image is identified, analyzes and processes, obtain that the second frame face-image includes the Two facial characteristics codes.In the embodiment of the present invention, smart mobile phone can by the second facial characteristics code with First facial condition code in the saved characteristic information to first facial carries out contrast computing, obtains Difference between second facial characteristics code and first facial condition code, i.e., one the first correction value, And first correction value is saved in first facial characteristic information.
The like, smart mobile phone circulation performs said process, i.e. smart mobile phone and continues collection the Three frame face-images, the 4th frame face-image etc., until collect user's triggering smart mobile phone holding Capable action of taking pictures, such as smart mobile phone gather the n frame face-images of user altogether.Smart mobile phone is every A frame face-image is collected, corresponding facial characteristics code all can be obtained from the face-image, Then again the facial characteristics code (is included having obtained with saved first facial characteristic information The first facial condition code for taking and preserving and the first correction value) contrasted, and obtain the face Difference between condition code and saved first facial characteristic information, obtain another first Correction value, is then also saved in first correction value in first facial characteristic information again.Thus, After the n frame face-images of continuous acquisition user, the first facial feature letter that smart mobile phone is obtained Breath includes first facial condition code and at least one first correction values, wherein, first facial feature The result that code and at least one first correction values are presented is it can be appreciated that to first facial condition code Revised facial characteristics code.
Certainly, if smart mobile phone gathers a certain frame face-image, what smart mobile phone got Facial characteristics code and smart mobile phone is saved before the frame that the frame face-image includes No difference (i.e. identical) between first facial characteristic information, then smart mobile phone can be straight Connect the facial characteristics code for abandoning that the two field picture includes.
Wherein, in above-mentioned S101d, the i-th facial characteristics code is special with saved first facial Difference between reference breath specifically can be understood as:I-th facial characteristics code be saved in the The difference between first facial condition code and the first correction value in one face feature information.
In the embodiment of the present invention, the i-th facial characteristics code is believed with saved first facial feature Difference between breath can pass through some conventional algorithms and realize, for example, can pass through what is commonly used Principal component analysis (English:Principal component ana lysis, abbreviation:PCA) calculate Method is realized.Wherein, PCA algorithms are the series of elements from two groups of face feature informations, such as Extract in the element such as spacing between the colour of skin and each feature and cause two groups of face feature information main regions Other main component element, Jing after this extraction process, originally huge face feature information can turn The calculating of oligo-element is changed to, then carries out asking to these elements the calculating of variance, result of calculation are For the difference between two groups of face feature informations.Specifically, each manufacturer can be with according to oneself Use demand design other and some algorithms as the PCA classes of algorithms are realized, the present invention is not limited It is fixed.
As the n frame face-images of above-mentioned user are the continuous acquisition during preview is found a view, Therefore in the embodiment of the present invention, in addition to the first frame face-image in n frame face-images, other N-1 frame face-images are both needed to perform according to the method shown in S101c and S101d.Due to n patterns Portion's image is continuous acquisition, and the value of i is 2≤i≤n in above-mentioned S101c and S101d, It will therefore be appreciated that above-mentioned S101c and S101d are the method and step that circulation is performed.
It should be noted that the encryption method of photo provided in an embodiment of the present invention, is to pass through The camera of smart mobile phone carries out during preview finds a view, to know in preview viewfinder window Perform in the case of being clipped to the face-image of people;If people is not recognized in preview viewfinder window Face-image, then smart mobile phone be not carried out the encryption side of photo provided in an embodiment of the present invention Method, and it is carried out the process that prior art shoots photo.
The encryption method of photo provided in an embodiment of the present invention, by the n frames from continuous user First facial characteristic information, i.e. first facial condition code and at least one the are obtained in face-image One correction value, and the face using first facial condition code and at least one first correction values to user Portion's feature is identified, as first facial condition code and at least one first correction values can be with standards The facial characteristics of user really is represented, therefore this recognition methods of the embodiment of the present invention can be carried The high accuracy rate to user's face feature recognition.
Optionally, with reference to Fig. 1, as shown in figure 3, before S101, the embodiment of the present invention is carried For the encryption method of photo can also include:
S105, first to user shoot the second photo preview find a view during, smart mobile phone Obtain the second face feature information.
Wherein, the acquisition of the acquisition methods of the second face feature information and first facial characteristic information Method is identical.
In the embodiment of the present invention, the second face feature information can be to shoot photograph to user first Piece, such as, during the preview of the second photo is found a view, obtained by smart mobile phone.Specifically, Smart mobile phone obtains the method and such as Fig. 1 and Fig. 2 in above-described embodiment one of the second face feature information The method that shown smart mobile phone obtains first facial characteristic information is identical, specifically, Ke Yican See that the smart mobile phone in above-described embodiment one as depicted in figs. 1 and 2 obtains first facial feature letter The associated description of the method for breath, here is omitted.
It is in the embodiment of the present invention, above-mentioned that first user's the second photo of shooting can be understood as:Work as A When user needs to be set to encrypt user by the user, party A-subscriber is shot to the user for the first time to be shone Piece.
In the embodiment of the present invention, smart mobile phone according in above-described embodiment one such as Fig. 1 and Fig. 2 institutes The smart mobile phone for showing obtains the second facial characteristics letter that the method for first facial characteristic information gets Breath can include:One the second facial characteristics code and at least one second correction values.Wherein, Two facial characteristics codes are during finding a view to the preview that user shoots the second photo first, continuously The facial characteristics that the first frame face-image in the m frame face-images of the user for collecting includes Code;At least one second correction values are its in addition to the first frame face-image in m frame face-images He (includes having obtained simultaneously with the second saved face feature information respectively frame face-image Preserve the second facial characteristics code and the second correction value) between difference.
Optionally, with reference to Fig. 1, as shown in figure 4, before S101, the embodiment of the present invention is carried For the encryption method of photo can also include:
S106, smart mobile phone obtain second according to the m of the user for pre-saving the 3rd photo Face feature information.
Wherein, the acquisition of the acquisition methods of the second face feature information and first facial characteristic information Method is identical, and m is the integer more than or equal to 2.
Wherein, the m of above-mentioned user the 3rd photo can be to be pre-stored in smart mobile phone Include the user in the photo of the user, the i.e. m the 3rd photo.
Specifically, smart mobile phone obtains the method and above-described embodiment one of the second face feature information In smart mobile phone as depicted in figs. 1 and 2 obtain first facial characteristic information method it is identical, Specifically, may refer to the smart mobile phone in above-described embodiment one as depicted in figs. 1 and 2 to obtain The associated description of the method for first facial characteristic information, here is omitted.
In the embodiment of the present invention, smart mobile phone according in above-described embodiment one such as Fig. 1 and Fig. 2 institutes The smart mobile phone for showing obtains the second facial characteristics letter that the method for first facial characteristic information gets Breath can include:One the second facial characteristics code and at least one second correction values.Wherein, Two facial characteristics codes are that the m of the user for pre-saving is opened in the 3rd photo in the 3rd photo Including facial characteristics code;At least one second correction values are to remove this during m opens the 3rd photo Other outer the 3rd photos (include having obtained with the second saved face feature information respectively The the second facial characteristics code for taking and preserving and the second correction value) between difference.
Specifically, in above-mentioned embodiment as shown in Figure 3 and Figure 4, smart mobile phone obtain the Other descriptions of two facial characteristics codes and at least one second correction values can be found in above-described embodiment To first facial condition code and at least one first correction values in method as shown in Figure 2 in one Associated description, here is omitted.
In the embodiment of the present invention, as smart mobile phone can according at least two frame face-images or extremely Few two the 3rd photos obtain second face feature information of user, therefore second facial characteristics The facial characteristics code and user of user facial characteristics in varied situations is included in information Nuance, it is facial by above-mentioned first facial characteristic information and second so as to work as smart mobile phone When matching degree between characteristic information is to be identified to the facial characteristics of user, it is right to improve The accuracy rate of user's face feature recognition.
Further, the encryption method of photo provided in an embodiment of the present invention, due to smart mobile phone Can be during the first photo be shot to user, the automatically and accurately face of identifying user Feature, determines whether to need to be encrypted (if smart mobile phone first photo of user The first facial characteristic information got during the facial characteristics of identifying user and guarantor in advance Matching degree between second face feature information of certain the encryption user for depositing is more than or equal to default Threshold value, then it is believed that first facial characteristic information and the second face feature information are same user Face feature information, i.e. user is encryption user, it is therefore desirable to the first photo is carried out plus It is close), and after it is determined that needing to be encrypted the first photo, automatically according to it is default with this The corresponding cipher mode of two face feature informations, is encrypted to the first photo, then will add again The first photo after close is saved in default picture library.Therefore, photograph provided in an embodiment of the present invention The encryption method of piece, the photo of needs encryption that not only can in shooting process automatically to shooting It is encrypted, and the standard to encrypting user's face feature recognition can also be improved in identification process True rate, and then cause the encryption to photo more accurately and perfect.
Optionally, with reference to Fig. 3, as shown in figure 5, after S105, before S101, this The encryption method of the photo that bright embodiment is provided can also include:
S107, smart mobile phone preserve the correspondence between the second face feature information and the information of user Relation, the information of user is for the unique mark user.
In the embodiment of the present invention, after smart mobile phone gets the second face feature information, intelligence Mobile phone can be preserved between the second face feature information and the information of user under the operation of party A-subscriber Corresponding relation, will the second face feature information be associated with the user of the message identification of user (representing face feature information of second face feature information for the user of the message identification of user).
Optionally, the information of above-mentioned user can be the mark of user, or can be party A-subscriber Sequence for being capable of the unique mark user arranged for user etc..Wherein, the mark of user It can be certain account of name, the pet name of user, the telephone number of user or the user of user Number (for example, social network sites account of user etc.) etc. is capable of a mark of the unique mark user Know.
It is understood that in the embodiment of the present invention, the information of user can be in smart mobile phone Unique mark user in memory range.
As shown in figure 5, above-mentioned S102 is specifically included:
If the matching degree of S102a, first facial characteristic information and the second face feature information be more than or Equal to predetermined threshold value, then smart mobile phone according to the corresponding relation, believed with the second facial characteristics by acquisition Cease the information of corresponding user.
The information of S102b, smart mobile phone according to user, obtains default corresponding with the information of user Cipher mode.
Smart mobile phone gets the first face during the preview that the first photo is shot to user is found a view Portion's characteristic information, and determine first facial characteristic information and the multiple facial characteristics letters for pre-saving The matching degree between the second face feature information in breath more than or equal to predetermined threshold value (it is believed that First facial characteristic information and the facial characteristics letter that the second face feature information is same user Breath) after, smart mobile phone can be according to the letter of the second face feature information and user for pre-saving Corresponding relation between breath, gets the information of user corresponding with the second face feature information, And according to the information of user, default cipher mode corresponding with the information of user is obtained, then The first photo of current shooting is encrypted using the cipher mode again.
Only it is with right between the second face feature information and the information of user in the embodiment of the present invention Exemplary explanation should be carried out as a example by being related to, in practical application, if party A-subscriber is needed to multiple use The photo at family (can include the party A-subscriber and other users, or only include other users) enters Row encryption, then party A-subscriber generally need to pre-save respectively these users face feature information and Corresponding relation between the information of these users.Concrete implementation mode is special with the above-mentioned second face Reference ceases and the corresponding relation between the information of user is similar to, and here is omitted.
Exemplary, table 1 below shows the face feature information of multiple users and these users Information between corresponding relation, and the correspondence between the information and cipher mode of these users Relation.Above-mentioned two corresponding relation can be in same table, it is also possible in different tables, The present invention is not especially limited.Table 1 only enters so that the two corresponding relations are in same table as an example The exemplary explanation of row.
Table 1
Sequence number Face feature information The information of user Cipher mode
1 Face feature information 1 ZX1 Add password 101
2 Face feature information 2 WE2 It is saved in " my privacy "
3 Face feature information 3 GH3 Crypted password 102
4 Face feature information 4 YK4 Crypted password 103
In the embodiment of the present invention, as smart mobile phone gets second face feature information of user Afterwards, smart mobile phone under the operation of party A-subscriber can be set up the second face feature information and be somebody's turn to do Corresponding relation between the information of user;And it is the user that smart mobile phone needs to preserve party A-subscriber Default cipher mode, for example, one kind is achieved in that During mode, smart mobile phone preserves the corresponding relation between the information of the user and cipher mode, from And smart mobile phone first can be obtained when it is determined that needing to be encrypted first photo of the user To the information of the user, then get cipher mode corresponding with the information of the user, Jin Erzhi Energy mobile phone can carry out adding to first photo of the user according to default cipher mode exactly It is close.
It should be noted that the present embodiment can be combined with Fig. 4, after S106, S107 is performed. S102a and S102b is performed simultaneously.The embodiment of the present invention carries out exemplary saying only by taking Fig. 5 as an example It is bright.
The encryption method of photo provided in an embodiment of the present invention, on the one hand, due to clapping to user Take the photograph the first photo preview find a view during obtain the first facial characteristic information of user, and at this First facial characteristic information and second face feature information of advance certain the encryption user for obtaining Matching degree is more than or equal to predetermined threshold value (it is considered that first facial characteristic information and second facial Characteristic information is the face feature information of same user) when, automatically using second facial with this The corresponding cipher mode of characteristic information is encrypted to first photo, i.e., the embodiment of the present invention can Carried out to the photo for photographing according to corresponding cipher mode during photo is shot automatically Encryption, therefore the encryption efficiency to photo can be improved.On the other hand, due to present invention enforcement Example is saved in default picture library again after the first photo that will be shot is encrypted, i.e., preserve in picture library First photo be already encrypted, therefore can substantially reduce photo reveal user profile it is several Rate.So as to the encryption method of photo provided in an embodiment of the present invention can improve and photo is added Close efficiency, and substantially reduce the probability that photo reveals user profile.
Embodiment three
As shown in fig. 6, the embodiment of the present invention provides a kind of encryption device of photo, the photo Encryption device includes:
Acquiring unit 10, for obtaining the first facial characteristic information of user, and if described first Face feature information is more than or equal to predetermined threshold value with the matching degree of the second face feature information, then Obtain default cipher mode corresponding with second face feature information, the first facial Characteristic information is to obtain during the preview that the first photo is shot to the user is found a view, institute State the face feature information that the second face feature information is the advance encryption user for obtaining.
Ciphering unit 11, it is for the cipher mode obtained using the acquiring unit 10, right First photo is encrypted.
Storage unit 12, arrives for preserving first photo after the ciphering unit 11 is encrypted In default picture library.
Wherein, for first facial characteristic information, the second face feature information and cipher mode Deng description can be found in above-described embodiment one and embodiment two in first facial characteristic information, The associated description of the second face feature information and cipher mode, here is omitted.
For the encryption device of photo obtains first facial characteristic information and the second face feature information The smart mobile phone that can be found in above-described embodiment one as depicted in figs. 1 and 2 of method obtain first The associated description of the method for face feature information, here is omitted.
Optionally, in the embodiment of the present invention, the acquiring unit 10 is found a view process in the preview The n frame face-images of user described in middle continuous acquisition, the acquiring unit 10 obtain described the One face feature information includes a first facial condition code and at least one first correction values, and n is Integer more than or equal to 2;
The acquiring unit 10, specifically for gathering the first pattern in the n frames face-image Portion's image, the first frame face-image include the first facial condition code;And according to institute The first frame face-image is stated, the first facial condition code is obtained, and the first facial is special Levy code to be saved in the first facial characteristic information;And gather in the n frames face-image I-th frame face-image, the i-th frame face-image include the i-th facial characteristics code, 2≤i ≤ n, i are integer;And obtain the i-th facial characteristics code and saved described first Difference between face feature information, obtains first correction value, and by one first Correction value is saved in the first facial characteristic information.
Optionally, the acquiring unit 10, is additionally operable to obtaining the first facial characteristic information Before, during finding a view to the preview that the user shoots the second photo first, obtain described Second face feature information, wherein, the acquisition methods of second face feature information with it is described The acquisition methods of first facial characteristic information are identical.
Optionally, the acquiring unit 10, is additionally operable to obtaining the first facial characteristic information Before, according to the m of the user for pre-saving the 3rd photo, obtain described second facial Characteristic information, wherein, acquisition methods and the first facial of second face feature information The acquisition methods of characteristic information are identical, and m is the integer more than or equal to 2.
Optionally, the storage unit 12, is additionally operable to obtain described in the acquiring unit 10 After two face feature informations, before obtaining the first facial characteristic information, obtain described in preservation Take the correspondence between second face feature information and the information of the user of the acquisition of unit 10 Relation, the information of the user are used for user described in unique mark;
The acquiring unit 10, specifically for the correspondence preserved according to the storage unit 12 Relation, obtains the information of the user corresponding with second face feature information;And root According to the information of the user, the default encryption side corresponding with the information of the user is obtained Formula.
The encryption device of photo provided in an embodiment of the present invention is mainly used in camera function Electronic equipment in.Preferably, the electronic equipment can be smart mobile phone.
If the encryption device of the photo is applied on smart mobile phone, on software is realized, the photograph The encryption device of piece can be the camera application of smart mobile phone, or in camera application Units/modules being made up of the code for realizing corresponding function etc.;On hardware is realized, the photo Encryption device can be the combination of the camera and processor of smart mobile phone, or intelligent hand The camera of machine and it is integrated with chip of corresponding function etc..Concrete implementation mode, can with by Each manufacturer is adaptively converted according to its use demand, and the present invention is not construed as limiting.
Optionally, in hardware realization, acquiring unit 10 in the encryption device of above-mentioned photo, The process that ciphering unit 11 and storage unit 12 are completed can be corresponding by computing device Program code is realized.The encryption device can also include memory, and memory can be used in storage The relevant informations such as first facial characteristic information, the second face feature information and the first photo stated. The encryption device can also include system bus and data-interface, wherein, processor and memory Connect and complete mutual communication by system bus;Processor is completed by data-interface External data acquisition, such as processor gather face-image of user etc. by data-interface.
Optionally, above-mentioned processor can be central processing unit (English:central processing Unit, abbreviation:CPU).
Above-mentioned memory, for storing the program code of computing device, and by the program code Processor is transferred to, processor completes said process by performing the program code.Memory can With including volatile memory (English:Volatile memory), such as random access memory Device (English:Random-access memory, abbreviation:RAM);Memory can also include Nonvolatile memory (English:Non-volatile memory), such as read-only storage (English Text:Read-only memory, abbreviation:ROM), flash memory (English:Flash memory), Hard disk (English:Hard disk drive, abbreviation:HDD) or solid state hard disc (English: Solid-state drive, abbreviation:SSD);Memory can also include depositing for mentioned kind The combination of reservoir.
Data-interface can be shooting described above it is first-class can externally gathered data part/ Units/modules etc..
The embodiment of the present invention provides a kind of encryption device of photo, and the encryption device obtains user's First facial characteristic information, first facial characteristic information are to shoot the pre- of the first photo to user Look at what is obtained during finding a view;And if first facial characteristic information and the second face feature information Matching degree is more than or equal to predetermined threshold value, then the encryption device obtains default special with the second face Reference ceases corresponding cipher mode, and the second face feature information is the advance encryption user for obtaining Face feature information;And the encryption device adopts cipher mode, the first photo is encrypted; And the first photo after encryption device preservation encryption is in default picture library.
Based on above-mentioned technical proposal, the encryption device of photo provided in an embodiment of the present invention, a side Face, uses as the encryption device is obtained during the preview that the first photo is shot to user is found a view The first facial characteristic information at family, and in the first facial characteristic information and advance certain for obtaining The matching degree of second face feature information of encryption user (can be recognized more than or equal to predetermined threshold value For first facial characteristic information and facial characteristics that the second face feature information is same user letter Breath) when, automatically using cipher mode corresponding with second face feature information to first photograph Piece is encrypted, i.e., the encryption device of the embodiment of the present invention can be during photo be shot Automatically the photo for photographing is encrypted according to corresponding cipher mode, therefore can improves right The encryption efficiency of photo.On the other hand, as the encryption device of the embodiment of the present invention is to clap Take the photograph the first photo encryption after be saved in default picture library again, i.e., preserve in picture library this first Photo is already encrypted, therefore can substantially reduce the probability that photo reveals user profile.So as to, The encryption device of photo provided in an embodiment of the present invention can improve the encryption efficiency to photo, and And substantially reduce the probability that photo reveals user profile.
Through the above description of the embodiments, those skilled in the art can be clearly Solve, for convenience and simplicity of description, only carry out illustrating with the division of above-mentioned each functional module It is bright, in practical application, as desired above-mentioned functions can be distributed by different functional modules Complete, will the internal structure of device be divided into different functional modules, to complete above description All or part of function.The specific work process of the system, apparatus, and unit of foregoing description, The corresponding process in preceding method embodiment is may be referred to, be will not be described here.
In several embodiments provided herein, it should be understood that disclosed system, Apparatus and method, can be realized by another way.For example, device reality described above It is only schematic to apply example, and for example, the division of the module or unit, only one kind are patrolled Collect function to divide, when actually realizing, can have other dividing mode, such as multiple units or group Part can with reference to or be desirably integrated into another system, or some features can be ignored, or not Perform.It is another, shown or discussed coupling each other or direct-coupling or communication link It can be INDIRECT COUPLING or communication connection by some interfaces, device or unit to connect, Ke Yishi Electrically, mechanical or other forms.
The unit as separating component explanation can be or may not be physically separate , as the part that unit shows can be or may not be physical location, you can with position It is local in one, or can also be distributed on multiple NEs.Can be according to actual need Select some or all of unit therein to realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a process In unit, or unit is individually physically present, it is also possible to two or more lists Unit is integrated in a unit.Above-mentioned integrated unit both can be realized in the form of hardware, Can also be realized in the form of SFU software functional unit.
If the integrated unit is realized and as independent product using in the form of SFU software functional unit When product are sold or used, can be stored in a computer read/write memory medium.Based on this The understanding of sample, the portion that technical scheme is substantially contributed to prior art in other words Divide or all or part of the technical scheme can be embodied in the form of software product, should Computer software product is stored in a storage medium, is used so that one including some instructions Computer equipment (can be personal computer, server, or network equipment etc.) is processed Device performs all or part of step of each embodiment methods described of the invention.And aforesaid storage Medium includes:USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can be stored The medium of program code.
The above, specific embodiment only of the invention, but protection scope of the present invention is simultaneously Be not limited to this, any those familiar with the art the invention discloses technology model In enclosing, change or replacement can be readily occurred in, should be all included within the scope of the present invention. Therefore, protection scope of the present invention should be defined by the scope of the claims.

Claims (10)

1. a kind of encryption method of photo, it is characterised in that the encryption method includes:
The first facial characteristic information of user is obtained, the first facial characteristic information is to institute State user shoot first photo preview find a view during obtain;
If the matching degree of the first facial characteristic information and the second face feature information is more than or waits In predetermined threshold value, then default cipher mode corresponding with second face feature information is obtained, Second face feature information is the face feature information of the advance encryption user for obtaining;
Using the cipher mode, first photo is encrypted;
First photo after preservation encryption is in default picture library.
2. the encryption method of photo according to claim 1, it is characterised in that to institute State user shoot the first photo preview find a view during user described in continuous acquisition n patterns portion Image, the first facial characteristic information include a first facial condition code and at least one One correction value, n are the integer more than or equal to 2;
The first facial characteristic information for obtaining user, including:
Gather the first frame face-image in the n frames face-image, the first pattern portion figure As including the first facial condition code;
According to the first frame face-image, the first facial condition code is obtained, and will be described First facial condition code is saved in the first facial characteristic information;
Gather the i-th frame face-image in the n frames face-image, the i-th pattern portion figure As including the i-th facial characteristics code, 2≤i≤n, i are integer;
Obtain the i-th facial characteristics code and the saved first facial characteristic information it Between difference, obtain first correction value, and one first correction value be saved in into institute State in first facial characteristic information.
3. the encryption method of photo according to claim 2, it is characterised in that described to obtain Before taking the first facial characteristic information at family, the encryption method also includes:
During finding a view to the preview that the user shoots the second photo first, described the is obtained Two face feature informations, wherein, the acquisition methods of second face feature information and described The acquisition methods of one face feature information are identical.
4. the encryption method of photo according to claim 2, it is characterised in that described to obtain Before taking the first facial characteristic information at family, the encryption method also includes:
According to the m of the user for pre-saving the 3rd photo, second face is obtained special Reference ceases, wherein, the acquisition methods of second face feature information are special with the first facial The acquisition methods of reference breath are identical, and m is the integer more than or equal to 2.
5. the encryption method of the photo according to claim 3 or 4, it is characterised in that institute After stating acquisition second face feature information, the first facial feature letter for obtaining user Before breath, the encryption method also includes:
The corresponding relation between second face feature information and the information of the user is preserved, The information of the user is used for user described in unique mark;
It is described to obtain default cipher mode corresponding with second face feature information, including:
According to the corresponding relation, the use corresponding with second face feature information is obtained The information at family;
According to the information of the user, obtain default corresponding with the information of the user described Cipher mode.
6. a kind of encryption device of photo, it is characterised in that the encryption device includes:
Acquiring unit, for obtaining the first facial characteristic information of user, and if first face The matching degree of portion's characteristic information and the second face feature information is more than or equal to predetermined threshold value, then obtain Default cipher mode corresponding with second face feature information is taken, the first facial is special Reference breath is to obtain during the preview that the first photo is shot to the user is found a view, described Second face feature information is the face feature information of the advance encryption user for obtaining;
Ciphering unit, for the cipher mode obtained using the acquiring unit, to described First photo is encrypted;
Storage unit, for preserving first photo after ciphering unit encryption to presetting Picture library in.
7. encryption device according to claim 6, it is characterised in that the acquiring unit The n of user described in continuous acquisition during the preview that the first photo is shot to the user is found a view Frame face-image, the first facial characteristic information that the acquiring unit is obtained include one the One facial condition code and at least one first correction values, n is the integer more than or equal to 2;
The acquiring unit, specifically for gathering the first pattern portion in the n frames face-image Image, the first frame face-image include the first facial condition code;And according to described First frame face-image, obtains the first facial condition code, and by the first facial feature Code is saved in the first facial characteristic information;And gather in the n frames face-image i-th Frame face-image, the i-th frame face-image include the i-th facial characteristics code, 2≤i≤n, I is integer;And the i-th facial characteristics code is obtained with the saved first facial spy Difference between reference breath, obtains first correction value, and by one first correction value It is saved in the first facial characteristic information.
8. encryption device according to claim 7, it is characterised in that
The acquiring unit, is additionally operable to before the first facial characteristic information is obtained, in head During the secondary preview to the user the second photo of shooting is found a view, second face is obtained special Reference ceases, wherein, the acquisition methods of second face feature information are special with the first facial The acquisition methods of reference breath are identical.
9. encryption device according to claim 7, it is characterised in that
The acquiring unit, was additionally operable to before the first facial characteristic information is obtained, according to The m of the user for pre-saving the 3rd photo, obtains second face feature information, Wherein, the acquisition methods of second face feature information and the first facial characteristic information Acquisition methods are identical, and m is the integer more than or equal to 2.
10. encryption device according to claim 8 or claim 9, it is characterised in that
The storage unit, is additionally operable to obtain the second facial characteristics letter in the acquiring unit After breath, before obtaining the first facial characteristic information, preserve what the acquiring unit was obtained Corresponding relation between second face feature information and the information of the user, the user Information be used for user described in unique mark;
The acquiring unit, specifically for the corresponding relation preserved according to the storage unit, Obtain the information of the user corresponding with second face feature information;And according to described The information of user, obtains the default cipher mode corresponding with the information of the user.
CN201510573789.4A 2015-09-10 2015-09-10 Photograph encryption method and device Active CN106529307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510573789.4A CN106529307B (en) 2015-09-10 2015-09-10 Photograph encryption method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510573789.4A CN106529307B (en) 2015-09-10 2015-09-10 Photograph encryption method and device

Publications (2)

Publication Number Publication Date
CN106529307A true CN106529307A (en) 2017-03-22
CN106529307B CN106529307B (en) 2020-01-14

Family

ID=58346082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510573789.4A Active CN106529307B (en) 2015-09-10 2015-09-10 Photograph encryption method and device

Country Status (1)

Country Link
CN (1) CN106529307B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133603A (en) * 2017-05-24 2017-09-05 努比亚技术有限公司 Method, mobile terminal and the computer-readable recording medium for preventing fingerprint from leaking
CN108111757A (en) * 2017-12-21 2018-06-01 广东欧珀移动通信有限公司 Photographic method, device, storage medium and terminal
CN108733690A (en) * 2017-04-18 2018-11-02 阿里巴巴集团控股有限公司 Image data recording method, device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976321A (en) * 2010-09-21 2011-02-16 北京工业大学 Generated encrypting method based on face feature key
CN103942483A (en) * 2014-05-15 2014-07-23 成都卫士通信息产业股份有限公司 Encryption machine with biological feature detecting function and working method thereof
CN104253933A (en) * 2013-06-26 2014-12-31 华为技术有限公司 Shooting method and device
CN104331673A (en) * 2014-10-30 2015-02-04 宇龙计算机通信科技(深圳)有限公司 Intelligent terminal and photo safety handling method based on intelligent terminal
CN104519267A (en) * 2013-09-30 2015-04-15 北京三星通信技术研究有限公司 Shooting control method and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976321A (en) * 2010-09-21 2011-02-16 北京工业大学 Generated encrypting method based on face feature key
CN104253933A (en) * 2013-06-26 2014-12-31 华为技术有限公司 Shooting method and device
CN104519267A (en) * 2013-09-30 2015-04-15 北京三星通信技术研究有限公司 Shooting control method and terminal equipment
CN103942483A (en) * 2014-05-15 2014-07-23 成都卫士通信息产业股份有限公司 Encryption machine with biological feature detecting function and working method thereof
CN104331673A (en) * 2014-10-30 2015-02-04 宇龙计算机通信科技(深圳)有限公司 Intelligent terminal and photo safety handling method based on intelligent terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733690A (en) * 2017-04-18 2018-11-02 阿里巴巴集团控股有限公司 Image data recording method, device and electronic equipment
CN108733690B (en) * 2017-04-18 2022-02-18 阿里巴巴集团控股有限公司 Image data storage method and device and electronic equipment
CN107133603A (en) * 2017-05-24 2017-09-05 努比亚技术有限公司 Method, mobile terminal and the computer-readable recording medium for preventing fingerprint from leaking
CN108111757A (en) * 2017-12-21 2018-06-01 广东欧珀移动通信有限公司 Photographic method, device, storage medium and terminal

Also Published As

Publication number Publication date
CN106529307B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
De Marsico et al. Firme: Face and iris recognition for mobile engagement
US11336968B2 (en) Method and device for generating content
CN110489951A (en) Method, apparatus, computer equipment and the storage medium of risk identification
CN106557678A (en) A kind of intelligent terminal's mode switching method and its device
CN106161962B (en) A kind of image processing method and terminal
CN113259721A (en) Video data sending method and electronic equipment
Smith-Creasey et al. Continuous face authentication scheme for mobile devices with tracking and liveness detection
CN106529307A (en) Photo encryption method and device
CN112733946B (en) Training sample generation method and device, electronic equipment and storage medium
CN111274947A (en) Multi-task multi-thread face recognition method, system and storage medium
KR101252843B1 (en) Method of Managing Image in a Mobile Communication Terminal
CN109040594A (en) Photographic method and device
WO2021151317A1 (en) Living-body detection method, apparatus, electronic device, and storage medium
CN103269481A (en) Method and system for encrypting and protecting procedure or file of portable electronic equipment
CN111783146A (en) Image processing method and device based on privacy protection and electronic equipment
CN110502961B (en) Face image detection method and device
CN106161947A (en) Photo encryption method and system for camera terminal
CN112492383A (en) Video frame generation method and device, storage medium and electronic equipment
Mani et al. A survey on digital image forensics: Metadata and image forgeries
CN113255575B (en) Neural network training method and device, computer equipment and storage medium
CN113139527B (en) Video privacy protection method, device, equipment and storage medium
CN105512119A (en) Image ranking method and terminal
JP2007213581A (en) Method and device for estimating position of object part in digital image data using feature quantity analysis
CN107506735A (en) Photo classifying method and taxis system
WO2018060863A1 (en) Method and device for covering private data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder