The invention content is as follows:
the invention aims to provide an identity recognition application method and system aiming at the defects in the prior art, and solves the problem that no effective and reasonable identity recognition method without physiological characteristics exists in the prior art.
In order to solve the technical problem, the technical scheme of the application is as follows:
on one hand, the identity identification application method comprises the steps of obtaining audio information, decoding the audio information to obtain an identity key, wherein the identity key at least comprises a timestamp and ID information; reading the current time and verifying whether the current time is in the range of the timestamp, and if so, verifying the ID information through a first preset rule; and if the ID information passes the verification, the result of successful verification is transmitted. The time stamp indicates effective start and stop time in the present application, for example, when a temporary identity identification is to be applied, the time required for the application is 1 month, then the time stamp is set to be one month, in this month, the identity identification can be successfully completed, and if the identity time is not within the time stamp, the identity identification cannot be successfully completed. The advantage of this arrangement is that it provides convenience for people living or traveling for a short period of time, without taking time and effort to handle a physical card for a short period of stay, and without the trouble of losing the card for leaving. The ID information is mainly used for matching the user with the use area, and the specific user can only complete identity recognition in the limited area, so that on one hand, the ID information is set to achieve the purpose of achieving the recognition work more quickly and accurately, and on the other hand, the security of the identity recognition can be improved.
Preferably, the ID information includes user identification information and location information of a use area.
Preferably, the first preset rule is that identity information is verified, after the identity information is verified, the position information is continuously verified, and after the position information is verified, the result of successful verification is transmitted. The identity recognition process of the application is as follows: firstly, verifying a time stamp, reading the current time and verifying whether the current time is within the range of the time stamp, if so, verifying the identity information of a user, and finally, verifying the position information, and if all three kinds of information are successfully verified, finishing the identity identification and transmitting the result of successful verification. If one of the items is not successfully verified, the identification work is terminated. The setting improves the working efficiency of the identity recognition on one hand and improves the safety of the identity recognition on the other hand.
In another aspect, an identification system includes: the audio acquisition module is used for acquiring audio information and decoding the audio information to obtain an identity key, wherein the identity key at least comprises a timestamp and ID information; the information processing module is used for reading the current time and verifying whether the current time is within the range of the timestamp, and if so, verifying the ID information through a first preset rule; and the transmission module is used for transmitting a result of successful verification if the ID information passes the verification.
Preferably, the system further comprises a key module, wherein the key module is used for acquiring the user information, the time node and the use area, and uploading the user information, the time node and the use area to the key management platform; the key management platform obtains a primary key according to the user information and the time node, obtains a receiving key according to the using area, sequentially arranges the receiving key and the primary key to obtain a secondary key, and transmits the secondary key to the information processing module and the audio acquisition module; and the audio acquisition module generates audio information according to the secondary key.
Preferably, the frequency of the information audio is not lower than 20kHz or 18-20kHz, and preferably, the frequency of the information audio is 19-20 kHz. The ultrasonic wave can noise pollution abatement, and the audio verification process can not cause the influence to external environment. However, one problem with ultrasonic waves is that equipment for emitting and receiving sound suitable for ultrasonic waves needs to be provided, which increases the difficulty of application. Due to the problem of human ear acutance, experiments prove that about 60 percent of people basically cannot hear the sound at 18-20kHz, and about 80 percent of people basically cannot hear the sound at 19-20kHz, but the possibility of processing by adopting the existing equipment can be ensured in the frequency space, so that the cost of the application to the practical scene is greatly reduced.
Preferably, the device further comprises an acousto-optic module, and the acousto-optic module is used for starting the indicator light after receiving the result of successful verification. At present, identity recognition systems such as entrance guard or elevator control in a plurality of areas all add acousto-optic functions, and the identity recognition system of the application adds an acousto-optic module and is more convenient for identity recognition.
Preferably, the audio information includes at least one receiving segment and at least one verifying segment, the receiving segment is used for the server to determine whether the received audio is the audio information and the analysis mode of the audio information, and the verifying segment is used for carrying the identity key information; the received segment includes a first matching audio and the verification segment includes a second matching audio paired with the first matching audio.
Preferably, the verification segment comprises at least a first verification segment and a second verification segment, the frequency of the second verification segment being a random multiple of the frequency of the first verification segment greater than or equal to 1; the receiving section is a fixed frequency audio, and the receiving section contains the following information: presetting a first key and/or verifying frequency information of the segment audio.
Preferably, the verification process includes firstly acquiring all original audios within a set time, then decomposing the original audios into a plurality of decomposed audios according to frequency, and giving a time anchor point according to the initial time of the acquired original audios, firstly verifying that each decomposed audio contains a receiving segment, if the decomposed audio contains the receiving segment, performing next processing, and if not, directly skipping the decomposed audio; for the decomposed audio containing the receiving segment, continuously analyzing the first verification segment of the decomposed audio, and obtaining the audio frequency of the first verification segment, if the decomposed audio obtained within the set time has the first verification segment with the same audio frequency, automatically obtaining the second verification segment of the decomposed audio with the later time anchor point, and extracting data of the second verification segment to obtain ID information; and if the decomposed audio obtained in the set time does not have other first verification sections with the same audio frequency, performing data extraction on the first verification sections to obtain ID information.
Compared with the prior art, the invention has the advantages that:
1. replaces the use of physical cards; and the problem that temporary identity recognition is needed to be handled when people live and work such as temporary living or business trips is solved.
2. The efficiency of the identity recognition work is improved;
3. the problem that others cannot perform agency work for the holder of the physiological characteristics due to the fact that the physiological characteristics of the persons are used as identity recognition is solved.
The specific implementation mode is as follows:
in order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings.
Fig. 1 is a flowchart of an identity recognition method according to an embodiment of the present invention.
S101, obtaining the audio information, and decoding the audio information to obtain an identity key.
Specifically, in the process of identity identification, firstly, audio information is acquired, and an identity key is obtained by decoding the audio information, wherein the identity key at least comprises a timestamp and ID information.
The audio information comprises at least one receiving segment and at least one verifying segment, the receiving segment is used for the server to determine whether the received audio is the audio information and the analysis mode of the audio information, and the verifying segment is used for carrying an identity key. The verification segment includes at least a first verification segment and a second verification segment, the frequency of the second verification segment being a fixed multiple of the frequency of the first verification segment. The receiving section is a fixed frequency audio, and the receiving section contains the following information: presetting a first key and/or verifying frequency information of the segment audio.
S102, reading the current time and verifying that the current time is in the range of the timestamp;
specifically, the time stamp can be flexibly set according to the requirement of a user, and if the user uses the owner of the artificial house or lives for a long time, the time stamp can be set to be unlimited in use time; if identification is temporarily required by a person who temporarily lives or goes on a business trip, the time stamp is set to a start-stop time, identification can be normally performed within the time stamp range, and if the time stamp is not within the time stamp range, identification cannot be performed. On one hand, the arrangement is that rapid screening can be carried out for identity recognition work, so that the working efficiency is improved; on the other hand, the safety of identity recognition by using the invention is improved.
S103, the ID information is verified through a first preset rule.
Specifically, the first preset rule is to verify identity information, after the identity information passes verification, the location information is continuously verified, and after the location information passes verification, the location information is externally transmitted to a result of successful verification. The time stamp, the identity information of the user and the position information of the use area are mutually corresponding through the setting, namely the user must perform identity verification within the time range set by the time stamp, and the legal user and the user can only complete identity identification of the designated area, and the three kinds of information are all absent. For example, the entrance guard is changed into the identity recognition mode of the invention for identity recognition in a cell, and a user must enter the door at the right time, in a legal user and in a right use area, so that the accuracy and the safety of identity recognition can be improved.
And S104, transmitting the result of successful verification.
Specifically, if the identification is successfully completed, the result is successfully uploaded. For example, when the access control is replaced by the method, the door can be opened after the identity authentication is completed; the elevator control card is replaced by the elevator control card, and the corresponding floor can be reached after the identity authentication is completed; the method and the device are used for replacing patrol personnel to sign in, and the sign-in work of the corresponding patrol area is completed after the identity verification is completed, so that the efficiency of the patrol work can be greatly improved.
Fig. 2 is a flowchart of another identity recognition method according to an embodiment of the present invention.
S201, obtaining the audio information, and decoding the audio information to obtain the identity key.
Specifically, in the process of identity identification, firstly, audio information is obtained, and an identity key is obtained by decoding the audio information, wherein the identity key at least comprises a timestamp and ID information, and the ID information comprises identity information of a user and position information of a use area.
The audio information comprises at least one receiving segment and at least one verifying segment, the receiving segment is used for the server to determine whether the received audio is the audio information and the analysis mode of the audio information, and the verifying segment is used for carrying an identity key. The verification segment includes at least a first verification segment and a second verification segment, the frequency of the second verification segment being a fixed multiple of the frequency of the first verification segment. The receiving section is a fixed frequency audio, and the receiving section contains the following information: presetting a first key and/or verifying frequency information of the segment audio.
S202, reading the current time and verifying whether the current time is in the range of the time stamp.
Specifically, the time stamp can be flexibly set according to the requirements of users, identity recognition can be normally carried out within the time stamp range, and if the time stamp is not within the time range, identity recognition cannot be carried out. On one hand, the arrangement is that rapid screening can be carried out for identity recognition work, so that the working efficiency is improved; on the other hand, the safety of identity recognition by using the invention is improved.
And S203, if the current time is within the range of the timestamp, further verifying whether the identity information is matched through a first preset rule.
Specifically, when the user performs identity verification, after the timestamp verification is successful, the identity information of the user is verified next, and the user can be quickly found through the identity information including identity card information, contact information and the like.
And S204, if the current time is read and verified to be out of the range of the time stamp, terminating verification.
Specifically, if the time of use is not within the range of the time stamp at the time of authentication, the authentication is terminated.
And S205, if the identity information is matched, further verifying whether the position information is matched through a first preset rule.
Specifically, after the timestamp verification is successful, and the identity information verification is also successful, the position information is further verified, and the position information includes the building number of the community, the number of floors of an office building, the position of a patrol point and the like, so that the identity verification can be successfully completed only in a specified area.
And S206, if the identity information is not matched, terminating the verification.
Specifically, if the timestamp is successfully verified and further identity information is not successfully verified, the verification is also terminated. This is provided to improve security and the identification must be done by a legitimate user.
And S207, if the position information is matched, the result of successful verification is transmitted.
Specifically, if the location information is also successfully verified, the result of the successful verification is uploaded. The system can smoothly enter a house, an office, complete check-in of patrol points and the like.
And S208, if the position information does not match, terminating the verification.
Specifically, if the position information of the last step of the identity recognition cannot be successfully verified, the identity recognition is terminated, and the accuracy and the safety of the recognition are further improved.
Fig. 3 is a flowchart of another identity recognition method according to an embodiment of the present invention.
S301, receiving and verifying whether the audio information is correct.
Obtaining a primary key according to the user information and the time node, obtaining a receiving key according to the using area, sequentially arranging the receiving key and the primary key to obtain a secondary key, and generating audio information according to the secondary key;
the identity key is obtained by verifying the audio information, the audio information comprises at least one receiving segment and at least one verifying segment, the receiving segment is used for the server to determine whether the received audio is the audio information and the analysis mode of the audio information, and the verifying segment is used for carrying the identity key. The verification segment includes at least a first verification segment and a second verification segment, the frequency of the second verification segment being a fixed multiple of the frequency of the first verification segment. The receiving section is a fixed frequency audio, and the receiving section contains the following information: presetting a first key and/or verifying frequency information of the segment audio.
S302, if the audio information is correct, an identity key is obtained.
The identity key at least comprises a time stamp and ID information, wherein the ID information comprises identity information of a user and position information of a use area.
S303, if the audio information is incorrect, the verification is terminated.
When the identity recognition is carried out, if the input audio signals are not matched, the identity key cannot be obtained for further verification.
S304, after obtaining the identity key, verifying whether the current time is in the range of the timestamp.
And after obtaining the identity key, starting to verify whether the timestamp in the key information is matched with the current time.
S305, if the current time is within the range of the time stamp, further verifying whether the identity information is matched.
And after the timestamp signal is verified, further verifying the identity information of the user.
And S306, if the current time is not in the range of the time stamp, terminating the verification.
And if the time stamp is not matched with the current time, the next identity authentication cannot be carried out.
S307, if the identity information is successfully verified, further verifying whether the position information is matched.
And if the identity information is successfully verified, further verifying the used position information.
S308, if the identity information is not verified successfully, the verification is terminated.
If the user is not a legal user, the next authentication cannot be continued.
And S309, if the position information is successfully verified, the result of successful verification is transmitted out.
And if the position information is verified, successfully finishing the identity recognition and transmitting the result of successful verification.
And S310, if the position information is not verified successfully, terminating the verification.
If the verified area is not within the predetermined area, the verification of the position information cannot be successfully passed, and the next operation cannot be continued.
The embodiment encrypts the identity key, the identity key can be obtained through the verification of the audio information, the information in the identity key is gradually verified, the timestamp, the user identity information and the position information are sequentially verified, only if the three information are gradually verified successfully, the result is successfully uploaded and responded, such as door opening, elevator floor opening, patrol card punching and the like, and if one information does not pass the verification, the verification is terminated. The identity authentication is more accurate and safer due to the arrangement.
Fig. 4 is a schematic diagram of an identity recognition system according to an embodiment of the present invention.
The system is composed of anaudio acquisition module 401, aninformation processing module 402 and atransmission module 403.
The audio obtainingmodule 401 is configured to obtain audio information, and decode the audio information to obtain an identity key, where the identity key at least includes a timestamp and ID information;
aninformation processing module 402, configured to read a current time and verify whether the current time is within a range of the timestamp, and if so, verify the ID information according to a first preset rule;
if the ID information passes the verification, thetransmission module 403 transmits a result of the successful verification to the outside.
Fig. 5 is a schematic diagram of another identification system according to an embodiment of the present invention.
The system consists of akey module 501, a key management platformkey module 502, anaudio acquisition module 503, aninformation processing module 504, atransmission module 505 and an acousto-optic module 506.
Thekey module 501 is configured to obtain user information, time nodes, and a use area, and upload the user information, the time nodes, and the use area to thekey management platform 502; thekey management platform 502 obtains a primary key according to the user information and the time node, obtains a receiving key according to the use area, sequentially arranges the receiving key and the primary key to obtain a secondary key, and transmits the secondary key to theinformation processing module 504 and theaudio acquisition module 503; the audio obtainingmodule 503 generates audio information according to the secondary key;
aninformation processing module 504, configured to read a current time and verify whether the current time is within a range of the timestamp, and if so, verify the ID information according to a first preset rule;
if the ID information passes the verification, thetransmission module 505 transmits a result of the successful verification to the outside.
The acousto-optic module 506 is used for starting the indicator light after receiving the result of successful verification. At present, indicating lamps are installed in many places needing identity recognition, such as entrance guard of a community, elevator control of office places and the like, so that the acousto-optic module 506 is added to adapt to identity recognition work in the places, and the identity recognition efficiency is improved.
The following describes the audio information verification method according to an embodiment of the present invention in detail, with only one verification segment, taking the scenario shown in fig. 3 as an example, as shown in fig. 6.
S701, after receiving a primary audio frequency, an audio frequency acquisition module firstly performs frequency division processing according to the frequency of the primary audio frequency to obtain a plurality of sections of audio frequencies to be verified;
s702, extracting a second matching audio from the audio to be verified, and then inquiring whether a first matching audio matched with the second matching audio exists in the obtained audio to be verified, and if the first matching audio matched with the second matching audio does not exist, ignoring the audio information; the matching audio can be matched in a mode of numbers or notes;
s703, acquiring all audio information with receiving segments from S702, including the receiving segments and the verification segments, and extracting information of the verification segments;
s704, in the frequency division process, the frequencies of the audios with relatively similar frequencies are poor in frequency division effect and possibly interfere with each other, so that the precision of the verification level cannot be achieved, the audios with the similar frequencies obtained in the S703 are automatically stopped to be verified at the late time anchor point, the verification fails, and a fan of the equipment corresponding to the information video needs to be pressed again for verification;
s705, after eliminating the relevant interference, verifying all the audio information obtained by the frequency division processing and acquired within all the predetermined time, and if the audio information is passed, sending a pass indication, and if the audio information is not passed, sending a fail indication.
The following describes in detail how the audio information of the embodiment of the present invention tests the simultaneous verification of multiple audio information, as shown in fig. 7, in the case where there are two or more verification segments, taking the scenario shown in fig. 3 as an example.
S801, after receiving a primary audio frequency, an audio frequency acquisition module firstly performs frequency division processing according to the frequency of the primary audio frequency to obtain a plurality of sections of audio frequencies to be verified;
s802, extracting a second matching audio from the audio to be verified, and then inquiring whether a first matching audio matched with the second matching audio exists in the obtained audio to be verified, if the first matching audio matched with the second matching audio does not exist, ignoring the audio information; the matching audio can be matched in a mode of numbers or notes;
s803, acquiring all audio information with receiving segments from S802, including the receiving segments and the verification segments, and extracting information from the verification segments;
s804, because in the frequency division process, the audio frequencies with relatively similar frequencies have poor frequency division effects and can interfere with each other, so that the accuracy of the verification level can not be achieved, the audio frequencies with similar frequencies obtained in S803 automatically obtain a second verification section from the audio frequency with late time anchor point, and then the frequencies of the second verification section are set in the same way to ensure that the audio frequencies can not be interfered;
s805, after eliminating the relevant interference, verifying all the first verification sections of the audio information obtained in the preset time through frequency division processing, if the first verification sections pass, sending a pass indication, and if the first verification sections do not pass, sending a fail indication;
s806, if the audio information of the first verification section is eliminated, the second verification section and even the third verification section are verified, if the audio information is passed, a pass indication is sent, and if the audio information is not passed, a fail indication is sent.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.