Background technique
Past decades, China's rapid economic development, living standards of the people increase substantially, therefore the common people are to family's wealthThe demand for producing safety increasingly improves, and especially reinforces antitheft aspect, at present household lockset, and a part is locked using simple mechanical typeTool, it is another more advanced, it is for the control mode of electric lockset, mainly to there is key using various electric locksetsSpoon, password, magnetic card and IC card etc..And increasingly developed today in internet, the concepts such as artificial intelligence, Internet of Things and technology areIt is gradually deep into our life, so that more and more smart machine keeps our life more efficient, especially electronicsLock is that each family is intended to use.Such as electronic lock includes processor module CPU, matrix keyboard, display in the prior artModule, memory module, unlocking control module, temperature read module, Clockreading module, speech recognition module, communication module andWarning note module.Compared with traditional keys door lock, electronic lock is being carried, and the processing when loss is more convenient, withoutReplace a large amount of door lock & keys, it is only necessary to make corresponding operation in software.
Meanwhile as the improvement of people's living standards, this indispensable required apparatus of electric lockset also gives life bandSome the problem of being likely to occur are carried out.For example, user may forget that band key or a key are lost, daily when being away from homeGo out oneself will put key well and occupy certain time and energy to remind.In addition, from the control of current existing electric locksetFrom the point of view of mode processed, there is some potential safety problems, key, password and magnetic card are easy duplication, steal;The safety of IC card compared withHeight, but be also easily lost.And the technology of early stage is that password is inputted by user to carry out the unlocking of electronic lock and control, and password quiltThe probability for cracking or peeping is higher and higher.There is intellective IC card later, but this mode equally exists and is replicated or stealsSecurity risk.The following bio-identification becomes the important improvement of electronic lock control.Biological characteristic is by computer benefitWith the intrinsic physiological characteristic of human body or behavioural characteristic identification personal identification, has and is not easy to forget and lose, be not easy to forge and be stolen,It " can carry ", the advantages that use whenever and wherever possible.In the prior art, the mobile terminal is obtained by image capture module to work asAfter the face-image of preceding user, characteristics of image is extracted from the face-image;The mobile terminal is special by the image of extractionSign is compared with the characteristics of image in characteristics of image library, determines whether to unlock according to comparison result.Due to current by obtainingThe face-image of user is simultaneously compared with pre-stored characteristics of image, to decide whether to unlock, so that user is solvingIt need not be unlocked again cumbersomely by key-press input password during lock.But in living things feature recognition such as face, fingerprintAlso while there is " stealing " mode of face information and finger print information, and has and grow in intensity it in the development of identification technologyGesture.Such as fingerprint pour mask, faceform, due to technological achievement more and more true to nature, so that simple only by face and fingerprint etc.Biological characteristic is also unable to reach antitheft thief-proof effect.
In addition, electronic lock is provided with unlocking cipher in the prior art, then leading to when user needs to input password to unlockAfter crossing keyboard input password, if the password of input is identical as setting password, which is passed through, electronic lock is openedLock control.This is also more traditional simple electronic lock door-opening mode, and another electronic lock work quoted extensively nowMode and system.But for password come protect relevant information method and apparatus for, especially for the robber for preventing passwordIt takes or peeps, user often has to remember a variety of different passwords, and correct when being switched on or using certain functionsThe certain functions that can be just authorized to use after the multiple digital perhaps alphabet keys of ground input in mobile terminal or mobile terminal;So that user becomes cumbersome using the process of mobile terminal, the burden of user's unlocking is increased, especially for the elderlyFor children, remembers long letter and number mixed cipher, or the password that input is long, be one relatively difficultThing, be also easy to forget, lead to not enter, no small trouble may be brought.
Summary of the invention
The present invention provides a kind of electronic lock of double authentication, comprising: controller, memory, image acquisition device, at imageReason and identifier, information transceiver, touch display screen and door interlock switch;Image acquisition device, for being shot to user's face,Facial image is obtained, and the facial image is transferred in controller;Controller carries out for all parts to electronic lockCorresponding control, and the data such as face and password are managed;Video procession device, for handling imageAnd user's face is identified;Information transceiver, the information for determining controller are sent to remote user equipment, orPerson, which receives the information of remote user equipment and is dealt into controller, carries out subsequent processing;Touch display screen, for providing user's inputInterface and display user's information needed.
In information collection and memory phase: touch display screen receive password acquisition signal after, first prompt user intoThe acquisition of row password, and then show age of user input interface, and after user's input actual age, touch display screen is by above-mentioned yearAge information is sent to controller, and controller is judged that controller is tied according to judgement for age information according to all age groupThe determination of fruit progress interface for password input.
In information collection and memory phase, touch display screen shows user's prompt information, which adopted with user's faceCollect relevant information, and after user carries out numerical ciphers input according to prompt, by the numerical ciphers of input or number and wordThe encrypted message that mother combines is sent to controller.
In information collection and memory phase, after video procession device is handled the face direct picture receivedThe facial image sample of prescribed form is formed, and sends memory for above-mentioned image pattern.
Controller issues password and acquires signal, control touch display screen shows user after face acquisition and storagePassword acquisition interface.
For each age level specifically: 6-12 is determined as children, 13-50 is determined as ordinary people, 51-100 is trueIt is set to the elderly.
The present invention also provides a kind of verification method using face and the electronic lock of password double authentication, this method is divided intoInformation collection and memory phase and face and password identification authentication phase when unlocking.
In information collection and memory phase:
(1) user's prompt information is shown;
(2) the facial image sample of prescribed form is formed after being handled the face direct picture received, and will be upperIt states image pattern to be stored, and multiple user's facial images is formed into face database;
(3) after face acquisition and storage, password acquisition is carried out, and show user password acquisition interface;
(4) after receiving password acquisition signal, prompt user carries out password acquisition first, and then shows age of userInput interface is judged for age information according to all age group, after user inputs actual age according to judging resultCarry out the determination of interface for password input, then, after user carries out numerical ciphers input according to prompt, by the numerical ciphers of input orThe encrypted message that person's number and letter combine stores, while by encrypted message and age of user information and user's facial imageBinding storage;
(5) by kinsfolk or using the electronic lock user in everyone face information and encrypted message intoRow typing, and store and form user's face database.
Face and password identification authentication phase when unlocking:
(1) facial image for the user that acquisition currently needs to unlock;
(2) facial image is pre-processed;
(3) if receiving user information and encrypted message, judge age corresponding user type in user information, andIt shows corresponding input interface, after subsequent user inputs password, the password of input is carried out with the encrypted message being previously sent pairThan, and door lock is controlled according to comparing result.When receiving the unsuccessful notice of comparison, the unsuccessful prompt letter of display unlockingBreath, and simultaneously send active user's facial image of acquisition in remote user equipment.
For each age level specifically: be determined as children for 6-12 years old, be determined as within 13-50 years old ordinary people, 51-100Year is determined as the elderly.
The beneficial effects of the present invention are: improving the safety of unlocking, while also making by face and password double authenticationThe kinsfolk that the electronic lock is suitble to all age group is obtained, the range and user experience of application are improved.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
The present invention provides a kind of electronic lock of double authentication, as shown in Figure 1, specifically including controller, memory, imageCollector, video procession device, information transceiver, touch display screen and door interlock switch.Above-mentioned electronic lock can pass throughThe acquisition and certification of password and face information carry out the control of switch door lock, which is to have above-mentioned all parts to realize's.Specific structure is as follows:
Image acquisition device is connect with controller, and video procession device is connect with controller, carries out data double-way transmission,Information transceiver is connect with controller, same to carry out data double-way transmission.Memory one end connects controller, other end connection figureAs processing and identifier, the data transmission with memory is transmitted in both directions.Touch display screen while and video processionDevice and controller connection, door interlock switch are connect with controller.Electronic lock of the invention further includes power supply, is above-mentioned each portionPart provides electric power.
The realization function of electronic lock and the working principle of all parts is described more fully below.
For the electronic lock of face of the present invention and password double authentication, comprising:
Image acquisition device obtains facial image, and the facial image is transferred to control for shooting to user's faceIn device processed.
Above-mentioned image acquisition device can be the first-class equipment with image collecting function of miniature video camera.And for user's faceThe acquisition of image is in two kinds of situation: one is acquisition needs the facial image of the user using electronic lock in advance, by above-mentioned peopleFace image stores in memory as sample.The second is acquisition active user's facial image is used for when user needs to open the doorComparison judgement.
Controller is controlled accordingly for all parts to electronic lock, and to data such as face and passwordsIt is managed.
In addition to complete image and code data transmission, also to specific image recognition result carry out confirmation and to user it is defeatedThe password entered is authenticated, and is completed switch door lock and entered and left the interaction of information.
Video procession device, for handle and identify user's face to image.
Mainly the image of acquisition is carried out to be processed into defined format, and the face of active user is compared simultaneouslyIt judges.
Information transceiver, the information for determining controller is sent to remote user equipment, or receives remote userThe information of equipment is simultaneously dealt into controller progress subsequent processing.
Touch display screen, for providing user input interface and display user's information needed.
User input interface is provided mainly to the key of input password or user needs the content of selection, in addition, being somebody's turn to doDisplay screen can also show user's prompt information, inform the content that current door lock state or user are operated.
Memory, for storing user's facial image and corresponding encrypted message and user information.
Electronic lock provided by the invention, in use, all parts are carried out as follows cooperating.
In information collection and memory phase:
Touch display screen shows user's prompt information, which is information relevant to the acquisition of user's face, such as positive faceTo information such as camera or screens.Subsequent picture collector acquires active user's face direct picture, and the face is positiveImage is sent to controller, then is sent in video procession device by controller.
Video procession device forms the face figure of prescribed form after being handled the face direct picture receivedDecent, and memory is sent by above-mentioned image pattern.Multiple user's facial images are stored in the manner described above forms faceDatabase.And specific face image processing mode belongs to the prior art, repeats no more.
Controller issues password and acquires signal, control touch display screen shows user after face acquisition and storagePassword acquisition interface.
For touch display screen after receiving password acquisition signal, prompt user carries out password acquisition first, and then showsAge of user input interface, after user inputs actual age, above-mentioned age information is sent controller by touch display screen, controlDevice processed is judged for age information according to all age group, such as 6-12,13-50,51-100, and 6-12 years old is determined asChild is determined as ordinary people for 13-50 years old, is determined as the elderly within 51-100 years old.Then, controller is defeated according to judging result progress passwordEnter the determination at interface, if it is judged that for children perhaps old man due to children and old man's memory it is limited or be easy to forgetToo long of numerical ciphers, so controller controls few Password Input circle of touch display screen figure place showing according to above-mentioned judging resultFace, such as 3 or 4 bit digital interface for password input.After user carries out numerical ciphers input according to prompt, touch display screen will be defeatedThe numerical ciphers information entered is sent to controller, is sent in memory by controller, by encrypted message and age of user informationMemory is stored in the binding of user's facial image.If it is judged that being ordinary people, since the memory of ordinary people does not have generallyIt is problematic, so controller controls the interface for password input that touch display screen shows normal digit, such as 6 according to above-mentioned judging resultThe position password etc. that perhaps 8-10 bit digital password or number are combined with letter.Then, user carries out numerical ciphers according to promptAfter input, the encrypted message that the numerical ciphers of input or number and letter combine is sent controller by touch display screen, byController is sent in memory, and encrypted message and age of user information and the binding of user's facial image are stored in memory.
In the manner described above, controller is believed by kinsfolk or using everyone face in the user of the electronic lockBreath and encrypted message store by touch display screen typing and form user's face database into memory.
Face and password identification authentication phase when unlocking:
The facial image of user that image acquisition device acquisition currently needs to unlock, by controller be sent to image procossing withIdentifier.
After video procession device receives facial image, facial image is pre-processed, the pretreatment is according to depositingPicture format in reservoir in face database is handled.Then, video procession device will treated facial imageIt is compared with the facial image stored in memory, and control is sent to according to comparing result and corresponding user informationDevice.After video procession device compares successfully, by the corresponding user information of facial image in memory, (such as the age believesBreath) and the corresponding encrypted message of the user be sent to controller.When the comparison of video procession device is unsuccessful, by the resultNotification controller.
If controller receives the user information and encrypted message of video procession device transmission, judge that user believesAge corresponding user type in breath is judged, controller judges active user for children according to age bracket above-mentionedOr when the elderly, the few interface for password input of control touch display screen figure place showing after subsequent user inputs password, is touched aobviousThe encrypted message of input is sent controller by display screen.Controller sends the password of input with video procession device closeCode information compares, if correctly, controller controls door interlock switch, opens electronic lock, if incorrect, controller noticeTouch display screen shows user's prompt information of password mistake, and controls touch display screen and continue to show interface for password input.
Likewise, if control touch display screen shows the normal digit in position when controller judges active user for ordinary peopleInterface for password input, such as number and alphabetical input interface, after subsequent user inputs password, touch display screen is by the password of inputInformation is sent to controller.Controller compares the encrypted message that the password of input is sent with video procession device,If correct, controller controls door interlock switch, opens electronic lock, if incorrect, controller notice touch display screen is shownUser's prompt information of password mistake, and control touch display screen and continue to show interface for password input.
In addition, control touches when the comparison that controller receives the transmission of video procession device unsuccessful noticeThe unsuccessful prompt information of display screen display unlocking, and simultaneously send active user's facial image that image acquisition device acquires toInformation transceiver, subsequent information transceiver are sent in remote user equipment by network.
Above-mentioned remote user equipment, such as smart phone, after receiving the user's facial image for currently needing to unlock, user sentencesThe facial image that breaks belongs to acquaintance or household, sends unlocking instruction by remote user equipment, controller receives unlocking and refers toWhen enabling, control door interlock switch is checked card, and completes user's remote unlocking, avoiding household children, perhaps old man etc. forgets Password or do not haveThere is typing information and can not enter.If user judges that the facial image belongs to stranger, sent not by remote user equipmentUnlocking instruction, the control after controller receives not unlocking instruction, without door interlock switch.
Through the invention after all parts cooperating of electronic lock, household can satisfy and using having electronic door lockAll types of users carry out faces and the securely unlocking of password double authentication guarantees, can also carry out other users remote unlocking andMonitoring control.
In addition, specifically including following step the present invention also provides a kind of unlocking control method of the electronic lock of double authenticationIt is rapid:
As shown in Fig. 2, in information collection and memory phase:
(1) user's prompt information is shown, which is information relevant to the acquisition of user's face, and such as front faces cameraOr the information such as screen, then acquire active user's face direct picture.
(2) the facial image sample of prescribed form is formed after being handled the face direct picture received, and will be upperIt states image pattern to be stored, and multiple user's facial images is formed into face database.And specific face image processing modeBelong to the prior art, repeats no more.
(3) after face acquisition and storage, password acquisition is carried out, and show user password acquisition interface.
(4) after receiving password acquisition signal, prompt user carries out password acquisition first, and then shows age of userInput interface is judged for age information according to all age group, after user inputs actual age such as 6-12,13-50,51-100 etc. will be determined as children for 6-12 years old, be determined as within 13-50 years old ordinary people, be determined as the elderly within 51-100 years old.Then,Controller carries out the determination of interface for password input according to judging result, if it is judged that being children or old man, due to childrenIt is limited or be easy to forget too long of numerical ciphers with old man's memory, so according to few close of above-mentioned judgment result displays digitCode input interface, such as 3 or 4 bit digital interface for password input.After user carries out numerical ciphers input according to prompt, it will inputNumerical ciphers information stored, while encrypted message and age of user information and the binding of user's facial image being stored.Such asFruit judging result is ordinary people, due to the typically no problem of the memory of ordinary people, so just according to above-mentioned judgment result displaysThe interface for password input of normal digit, such as 6 passwords etc. that perhaps 8-10 bit digital password or number are combined with letter.Then,User according to prompt carry out numerical ciphers input after, by the numerical ciphers of input or number and letter combine encrypted message intoRow storage, while encrypted message and age of user information and the binding of user's facial image being stored.
(5) in the manner described above, by kinsfolk or everyone face information in the user of the electronic lock is usedAnd encrypted message carries out typing, and stores and form user's face database.
As shown in figure 3, face and password identification authentication phase when unlocking:
(1) facial image for the user that acquisition currently needs to unlock.
(2) facial image is pre-processed, the pretreatment according to the picture format in face database in memory intoRow processing.Then, the facial image stored in treated facial image and memory is compared, when image procossing and knowledgeAfter other device compares successfully, the corresponding user information (such as age information) of facial image and the corresponding message in cipher of the user are sentBreath, when video procession device compares unsuccessful, transmission notification information.
(3) if receiving user information and encrypted message, judge age corresponding user type in user information, pressJudged according to age bracket above-mentioned.When active user is children or the elderly, few Password Input circle of figure place showingFace compares the password of input with the encrypted message being previously sent after subsequent user inputs password, if correctly, openedElectronic lock shows user's prompt information of password mistake if incorrect, and continues to show interface for password input.
Likewise, if it is determined that showing the interface for password input of the normal digit in position, such as number when active user is ordinary peopleThe password of input is compared with the encrypted message being previously sent, such as after subsequent user inputs password with alphabetical input interfaceFruit is correct, opens electronic lock, if incorrect, shows user's prompt information of password mistake, and continues to show that password is defeatedEnter interface.
(4) in addition, when receiving the unsuccessful notice of comparison, the unsuccessful prompt information of display unlocking, and simultaneously willActive user's facial image of acquisition is sent in remote user equipment.
(5) after above-mentioned remote user equipment receives the user's facial image for currently needing to unlock, judge the facial imageBelong to acquaintance or household, send unlocking instruction, when controller receives unlocking instruction, open door lock, completes user and remotely openLock, avoiding household children, perhaps old man etc. forgets Password or can not enter without typing information.If it is determined that the face figureAs belonging to stranger, not unlocking instruction, the control after controller receives not unlocking instruction, without door interlock switch are sent.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, anyThose skilled in the art is in technical scope disclosed by the invention, and any changes or substitutions that can be easily thought of, all answersIt is included within the scope of the present invention.Therefore, protection scope of the present invention should be with the scope of protection of the claimsIt is quasi-.