Disclosure of Invention
The invention aims to provide an unlocking method and system based on the Internet of things, and aims to solve the problem that in the prior art, unlocking verification is insufficient in safety only through voiceprints or fingerprints.
The invention is realized in such a way that, in a first aspect, the invention provides an unlocking method based on the internet of things, comprising the following steps:
the internet of things lock collects password voice of a user;
the internet of things lock analyzes the password voice to obtain voiceprint information and instruction information in the password voice;
the internet of things lock verifies the voiceprint information according to a first database, and if the voiceprint information passes the verification, a corresponding first calling signal is generated according to the voiceprint information;
the internet of things lock verifies the instruction information according to a second database, and if the verification is passed, a corresponding second calling signal is generated according to the instruction information;
the internet of things lock invokes a comparison fingerprint from a third database according to the first invoking signal and the second invoking signal;
the Internet of things lock collects fingerprints to be detected of the user; the fingerprint to be detected is a fingerprint of a finger part area of the user;
and the Internet of things lock verifies the fingerprint to be detected and the comparison fingerprint, and if the verification is passed, the Internet of things lock executes an unlocking instruction.
Preferably, the internet of things lock analyzes the password voice to obtain voiceprint information in the password voice includes:
extracting voiceprint characteristics of each frame of the password voice, and recording the voiceprint characteristics as first information;
calculating the change relation of the voiceprint characteristics between adjacent frames, and recording the change relation as second information;
and generating voiceprint information of the password voice by combining the first information and the second information.
Preferably, the internet of things lock analyzes the password voice to obtain instruction information in the password voice includes:
and converting the password voice into corresponding characters and recording the characters as the instruction information.
Preferably, the first database is used for storing a plurality of pieces of voiceprint information, and the voiceprint information stored in the first database has corresponding first codes, and the first codes are used for generating first calling signals.
Preferably, the second database is used for storing a plurality of instruction information, and the instruction information stored in the second database is provided with a corresponding second code, and the second code is used for generating a second calling signal.
Preferably, the third database is used for storing record fingerprints;
the recorded fingerprints are provided with first identification codes, and the first identification codes are in one-to-one correspondence with the first calling signals;
the recorded fingerprints are divided into a plurality of comparison fingerprints, the comparison fingerprints are provided with second identification codes, and the second identification codes are in one-to-one correspondence with the second calling signals.
Preferably, the internet of things lock verifies the fingerprint to be detected and the comparison fingerprint, if the fingerprint to be detected and the comparison fingerprint do not pass the verification, the internet of things lock performs one-time security recording, and when the security recording is continuously accumulated to a preset number of times, the internet of things lock enters a locking state.
In a second aspect, the present invention provides an unlocking system based on the internet of things, configured to implement the unlocking method based on the internet of things according to any one of the first aspect, including:
an Internet of things lock; the lock of the internet of things is provided with a memory, an operator, a sound sensor and a fingerprint sensor, wherein the memory is used for storing a computer program for realizing the unlocking method based on the internet of things according to any one of the first aspect, the operator is used for operating the computer program in the memory, the sound sensor is used for collecting password voice, and the fingerprint sensor is used for collecting the fingerprint to be tested.
The invention provides an unlocking method based on the Internet of things, which has the following beneficial effects:
according to the invention, firstly, password voice of a user is collected, voiceprint information and instruction information are obtained through analysis, a corresponding first calling signal and a corresponding second calling signal are generated, comparison fingerprints are called out from a third database according to the first calling signal and the second calling signal and are used for fingerprint verification, at the moment, the user inputs the fingerprints of partial areas of the fingers, the fingerprints to be tested and the comparison fingerprints are verified, a fingerprint verification part can be completed, and after the Internet of things lock completes double verification, an unlocking instruction can be executed.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The same or similar reference numerals in the drawings of the present embodiment correspond to the same or similar components; in the description of the present invention, it should be understood that, if there is an azimuth or positional relationship indicated by terms such as "upper", "lower", "left", "right", etc., based on the azimuth or positional relationship shown in the drawings, it is only for convenience of describing the present invention and simplifying the description, but it is not indicated or implied that the apparatus or element referred to must have a specific azimuth, be constructed and operated in a specific azimuth, and thus terms describing the positional relationship in the drawings are merely illustrative and should not be construed as limitations of the present patent, and specific meanings of the terms described above may be understood by those skilled in the art according to specific circumstances.
The implementation of the present invention will be described in detail below with reference to specific embodiments.
Referring to FIG. 1, a preferred embodiment of the present invention is provided.
In a first aspect, the present invention provides an unlocking method based on the internet of things, including:
s1: the internet of things lock collects password voice of the user.
S2: the internet of things lock analyzes the password voice to obtain voiceprint information and instruction information in the password voice.
S3: and the internet of things lock verifies the voiceprint information according to the first database, and if the voiceprint information passes the verification, a corresponding first calling signal is generated according to the voiceprint information.
S4: and the internet of things lock verifies the instruction information according to the second database, and if the verification is passed, a corresponding second calling signal is generated according to the instruction information.
S5: and the Internet of things lock is used for calling and comparing fingerprints from a third database according to the first calling signal and the second calling signal.
S6: the Internet of things lock collects fingerprints to be detected of the user; the fingerprint to be detected is a fingerprint of a finger part area of the user.
S7: and the Internet of things lock verifies the fingerprint to be detected and the comparison fingerprint, and if the verification is passed, the Internet of things lock executes an unlocking instruction.
Specifically, in the scheme of the invention, the unlocking is realized by adopting a mode of verifying part of fingerprints of the user, and the part of fingerprints used for verifying the unlocking are called fingerprints to be tested.
More specifically, before verifying a part of the fingerprint of the user, the user needs to input password voice, and the internet of things lock can generate a corresponding first calling signal and a second calling signal through the password voice input by the user so as to call out the comparison fingerprint in a third database of the internet of things.
It will be appreciated that the advantages of the above approach are:
(1) the dual verification is carried out only when the Internet of things lock needs to be successfully verified by sound and fingerprints, and compared with the intelligent lock which only verifies sound or fingerprint in the traditional technology, the Internet of things lock has higher safety performance.
(2) The quick verification is realized, the Internet of things lock can call out the comparison fingerprint for verifying the fingerprint to be tested in advance through the collection of the password voice, so that the fingerprint to be tested is not required to be compared with all fingerprints stored in the Internet of things lock in the fingerprint verification stage, and the fingerprint verification efficiency is improved.
It should be noted that, one internet of things lock may record information of a plurality of users, that is, the internet of things lock stores voiceprint information and fingerprint information of a plurality of users, where a first database is used to store voiceprint information of the users, a second database is used to store passwords preset by the users, and a third database is used to store fingerprint information of the users.
The following is a practical use case of the internet of things lock:
the user A registers a complete fingerprint of the user A in the Internet of things lock in advance, the fingerprint is divided into three areas A1, A2 and A3, and fingerprint information of each area is the comparison fingerprint.
In the Internet of things lock, the user A respectively sets password voices A10, A20 and A30 for three comparison fingerprints A1, A2 and A3.
When the user A needs to unlock the Internet of things lock, the user A arbitrarily selects one of three password voices to speak, and the Internet of things lock can obtain that the password voices correspond to A10, A20 or A30 through analysis of the password voices of the user A, so that corresponding comparison fingerprints are taken out according to the password voice.
At this time, the user a places the portion corresponding to the finger on the fingerprint detector to input the fingerprint to be detected, and when the fingerprint to be detected and the comparison fingerprint pass the verification, the internet of things lock can confirm the unlocked artificial user a and start to execute the unlocking instruction.
It should be noted that, one internet of things lock may record multiple users, so that it is necessary to analyze voiceprint information of password voice to determine which user sends a password command, if the password voice is not analyzed, each user must use different password voices to point to their own fingerprints respectively, or the same password voice may point to multiple comparison fingerprints at the same time, which results in reduced efficiency of fingerprint verification.
The invention provides an unlocking method based on the Internet of things, which has the following beneficial effects:
according to the invention, firstly, password voice of a user is collected, voiceprint information and instruction information are obtained through analysis, a corresponding first calling signal and a corresponding second calling signal are generated, comparison fingerprints are called out from a third database according to the first calling signal and the second calling signal and are used for fingerprint verification, at the moment, the user inputs the fingerprints of partial areas of the fingers, the fingerprints to be tested and the comparison fingerprints are verified, a fingerprint verification part can be completed, and after the Internet of things lock completes double verification, an unlocking instruction can be executed.
Preferably, the internet of things lock analyzes the password voice to obtain voiceprint information in the password voice includes:
s21: voiceprint features of each frame of password speech are extracted and recorded as first information.
S22: and calculating the change relation of the voiceprint characteristics between adjacent frames, and recording the change relation as second information.
S23: voiceprint information of password speech is generated in combination with the first information and the second information.
Specifically, the password speech is uttered by the user, and the voiceprint information thereof can reflect which user uttered the password speech.
More specifically, in the scheme of the invention, the voiceprint information is distinguished by extracting the voiceprint characteristics of each frame of the command and calculating the change relation of the voiceprint characteristics between adjacent frames.
Preferably, the internet of things lock analyzes the password voice to obtain instruction information in the password voice, including:
and converting the password voice into corresponding characters and recording the corresponding characters as instruction information.
Preferably, the first database is used for storing a plurality of pieces of voiceprint information, the voiceprint information stored in the first database has corresponding first codes, and after the voiceprint information in the password voice is verified by the internet of things lock, a first calling signal is generated according to the first codes of the corresponding voiceprint information in the first database.
Preferably, the second database is used for storing a plurality of instruction information, the instruction information stored in the second database has corresponding second codes, and the internet of things lock generates the second calling signal according to the second codes of the corresponding instruction information in the second database after verifying the instruction information in the password voice.
Preferably, the third database user stores a recorded fingerprint; the record fingerprint has first identification code, and first identification code and first calling signal one-to-one are divided into a plurality of comparison fingerprints, and the comparison fingerprint has second identification code, and second identification code and second calling signal one-to-one.
The following is an embodiment:
the user A, the user B and the user C all reside in the same house, so that the user A, the user B and the user C all need to record own password voice and comparison fingerprints in the internet of things lock on the house door.
Specifically, the user a records the comparison fingerprints A1, A2, A3, and password voices a10, a20, a30 corresponding to the comparison fingerprints respectively; the user B records comparison fingerprints B1, B2 and B3 and password voices B10, B20 and B30 corresponding to the comparison fingerprints respectively; the user a records the comparison fingerprints C1, C2, C3 and password voices C10, C20, C30 corresponding to the respective comparison fingerprints.
More specifically, the first identification code of the comparison fingerprint A1 is a, the second identification code is 1, and the rest of the comparison fingerprints and so on have the first identification code and the second identification code.
More specifically, the voiceprint information of the user a, the user B, and the user C are different, so when the user a, the user B, and the user C send out the password voice, by analyzing the voiceprint information of the password voice, it is possible to determine where the voice comes from the user through the analysis of the voiceprint information of the password voice, thereby obtaining a first call signal, where the first call signal is used for comparing the fingerprints, so that the first call signal generated by the voiceprint information of the user a is a, the first call signal generated by the voiceprint information of the user B is B, and the first call signal generated by the voiceprint information of the user C is C.
More specifically, the instruction information determined by the comparison fingerprints of different users is different, and through verification of the instruction information, a second calling signal can be obtained, and the second calling signal is in the form of 1, 2 and 3.
By combining the above, it is easy to obtain that the first invoking signal and the second invoking signal are combined, so that codes in the forms of A1, B2 and C3 can be generated in a combined mode, the codes can be obtained by combining the first identification code and the second identification code of the comparison fingerprint, the corresponding comparison fingerprint is invoked from the third database by the internet of things lock, and in subsequent fingerprint verification, the user can verify the fingerprint of the corresponding region on the finger by placing the fingerprint on the fingerprint verifier.
It should be noted that, the fingerprint to be tested is a fingerprint of a partial area of the user's finger, it is easy to see that the finger of the human body is not planar, but has a three-dimensional state with a certain radian, so that the fingerprint of the finger can be divided into a front area, two side areas, a front end area and other areas, the whole fingerprint of the finger is divided according to different areas, a plurality of comparison fingerprints can be obtained, when the fingerprint is verified, the user can complete the verification by only placing the corresponding areas on the fingerprint verifier, and the condition that the position needs to be adjusted when the whole fingerprint verification fails can not occur.
More specifically, when the fingerprint is input and compared, the fingerprint of the partial region of the finger can be input at any angle without strictly dividing the fingerprint regions of the finger, and when the fingerprint is subsequently verified, the fingerprint of the region can be verified at the same angle.
Preferably, the internet of things lock verifies the fingerprint to be detected and the comparison fingerprint, if the verification fails, the internet of things lock performs one-time security recording, and when the security recording is continuously accumulated to a preset number of times, the internet of things lock enters a locking state.
Specifically, the arrangement is a safety prevention means for preventing outsiders from performing intelligent lock cracking by stealing voiceprints and fingerprints.
In a second aspect, the present invention provides an unlocking system based on the internet of things, configured to implement the unlocking method based on the internet of things according to any one of the first aspect, including:
an Internet of things lock; the lock of the internet of things is provided with a memory, an operator, a sound sensor and a fingerprint sensor, wherein the memory is used for storing a computer program for realizing the unlocking method based on the internet of things according to any one of the first aspect, the operator is used for operating the computer program in the memory, the sound sensor is used for collecting password voice, and the fingerprint sensor is used for collecting the fingerprint to be tested.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.