CN109118626B - Lock control method and device, storage medium and electronic device - Google Patents

Lock control method and device, storage medium and electronic device Download PDF

Info

Publication number
CN109118626B
CN109118626B CN201810899043.6A CN201810899043A CN109118626B CN 109118626 B CN109118626 B CN 109118626B CN 201810899043 A CN201810899043 A CN 201810899043A CN 109118626 B CN109118626 B CN 109118626B
Authority
CN
China
Prior art keywords
information
emotion
target
lock
type
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.)
Active
Application number
CN201810899043.6A
Other languages
Chinese (zh)
Other versions
CN109118626A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810899043.6A priority Critical patent/CN109118626B/en
Publication of CN109118626A publication Critical patent/CN109118626A/en
Application granted granted Critical
Publication of CN109118626B publication Critical patent/CN109118626B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00563Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys using personal physical data of the operator, e.g. finger prints, retinal images, voicepatterns

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a lock control method and device, a storage medium and an electronic device. Wherein, the method comprises the following steps: acquiring characteristic information of a target object; extracting first emotion information from the characteristic information, wherein the first emotion information is used for indicating the current emotional state of the target object; determining the emotion type to which the first emotion information belongs; and controlling the on-off state of the target lock according to the emotion type of the first emotion information. The invention solves the technical problem of lower safety of the intelligent lock in the related technology.

Description

Lock control method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a lock control method and device, a storage medium and an electronic device.
Background
Along with the popularization of intelligent equipment, intelligent tool to lock has also got into people's sight gradually, but current intelligent tool to lock's discernment dimension is single, and there is the leak in the security.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a lock control method and device, a storage medium and an electronic device, and at least solves the technical problem that an intelligent lock in the related art is low in safety.
According to an aspect of an embodiment of the present invention, there is provided a lock control method, including: acquiring characteristic information of a target object; extracting first emotion information from the characteristic information, wherein the first emotion information is used for indicating the current emotional state of the target object; determining the emotion type to which the first emotion information belongs; and controlling the on-off state of the target lockset according to the emotion type of the first emotion information.
According to another aspect of the embodiments of the present invention, there is also provided a control device for a lock, including: the acquisition module is used for acquiring the characteristic information of the target object; an extraction module, configured to extract first emotion information from the feature information, where the first emotion information is used to indicate an emotional state of the target object at present; the determining module is used for determining the emotion type to which the first emotion information belongs; and the first control module is used for controlling the on-off state of the target lock according to the emotion type to which the first emotion information belongs.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, characterized in that the storage medium stores therein a computer program, wherein the computer program is configured to execute the method described in any one of the above when executed.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory and a processor, wherein the memory stores therein a computer program, and the processor is configured to execute the method described in any one of the above through the computer program.
In the embodiment of the invention, the characteristic information of the target object is acquired; extracting first emotion information from the characteristic information, wherein the first emotion information is used for indicating the current emotional state of the target object; determining the emotion type to which the first emotion information belongs; according to the mode of controlling the on-off state of the target lock according to the emotion type to which the first emotion information belongs, extracting first emotion information used for indicating the current emotion state of the target object from the acquired feature information of the target object, and then controlling the on-off state of the target lock according to the emotion type to which the current emotion state of the target object belongs, for example: target lock etc. is not opened to the current emotional state of target object is unusual then to can regard the current emotional state of target object as the reference factor when controlling target lock, expand the dimension of discernment, regard as the influence factor of control tool to lock on-off state with abundanter information, thereby realized improving the technological effect of intelligent tool to lock's security, and then solved the lower technical problem of security of intelligent tool to lock among the correlation technique.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an alternative lock control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application environment of an alternative lock control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative lock control method according to an alternative embodiment of the present invention;
FIG. 4 is a schematic diagram of another alternative lock control method according to an alternative embodiment of the present invention;
FIG. 5 is a schematic diagram of another alternative lock control method according to an alternative embodiment of the present invention;
FIG. 6 is a schematic view of an alternative control for a lock according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating an application scenario of an alternative lock control method according to an embodiment of the present invention; and
FIG. 8 is a schematic diagram of an alternative electronic device according to an embodiment of the invention.
Detailed description of the preferred embodiment (in the book of filing, mention may be through the cloud with APP and audio amplifier and other intelligent device connection, but the example is not given in the detailed description)
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of an embodiment of the present invention, there is provided a method for controlling a lock, as shown in fig. 1, the method including:
s102, acquiring characteristic information of a target object;
s104, extracting first emotion information from the characteristic information, wherein the first emotion information is used for indicating the current emotion state of the target object;
s106, determining the emotion type of the first emotion information;
and S108, controlling the on-off state of the target lock according to the emotion type of the first emotion information.
It should be noted that the lock control method provided in the embodiment of the present invention may be applied to an electronic device with data processing capability, where the electronic device may be a server set on a network side, or may be a terminal device such as a PC (personal computer) set on a user side; the electronic device can implement the control method of the lock provided by the embodiment of the present application by loading a program having a function corresponding to the control method of the lock provided by the embodiment of the present application, and the program can be stored in a memory of the computing device and called by the processor to implement the program function.
Optionally, in this embodiment, the terminal device may be, but is not limited to, the target lock, or may also be, but is not limited to, a controller for controlling the target lock.
Optionally, in this embodiment, the control method of the lock may be applied to a hardware environment formed by the electronic device 202 shown in fig. 2. As shown in fig. 2, the electronic device 202 acquires feature information of a target object; extracting first emotion information from the characteristic information, wherein the first emotion information is used for indicating the current emotional state of the target object; determining the emotion type to which the first emotion information belongs; and controlling the on-off state of the target lock according to the emotion type of the first emotion information.
Optionally, in this embodiment, the lock control method may be applied to, but not limited to, a scenario in which a target lock is controlled. The target lock may be, but is not limited to, a lock assembled on various things, such as a door lock, a safe lock, a drawer lock, a trunk lock, and the like. In particular, the method can be applied to, but not limited to, a scenario in which the door lock is controlled, or can also be applied to, but not limited to, a scenario in which the safe lock is controlled, so as to improve the security of the intelligent lock. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the target object may include, but is not limited to: objects within detection range of the target lock, objects attempting to unlock the target lock, and so on. The target object may be, but is not limited to, a human being or any other living being.
Optionally, in the present embodiment, the feature information may include, but is not limited to, various forms of features. Such as: voice features, facial features, etc.
Optionally, in this embodiment, the emotional state may include, but is not limited to: happy, sad, frightened, panic, nervous, etc. The first emotion information is a feature extracted from the feature information and capable of representing the current emotional state of the target object. Such as: information of voice intonation extracted from voice features, semantic information for expressing emotional states recognized from voice features, expression information extracted from facial features, and the like.
Optionally, in this embodiment, the target lock may be unlocked, but is not limited to, by at least one of the following information: fingerprint information, voice information, iris information, face information, character information, keys, and the like. After the information of the target object is received, whether the target lock is unlocked can be determined according to the first emotion information of the target object.
Optionally, in this embodiment, the emotion types may be divided into two types, one is a normal emotion, and the other is an abnormal emotion (fear, panic, tension, etc.), and when the first emotion information does not belong to the abnormal emotion, it belongs to the normal emotion.
Optionally, in this embodiment, the switch state of the target lock may include, but is not limited to: an on state, an off state, an early warning state, an alarm state, and the like. For example: the unlocking state can be the unlocking of a lock cylinder of the target lock, the closing state can be the locking of the target lock, the early warning state can be the state of pre-warning while the lock cylinder is kept closed, emotion information of the target object can be continuously detected in the state, if the target object is always in abnormal emotion, the alarm state is switched to the alarming state for alarming operation, and if the emotion of the target object is switched to normal, the lock cylinder can be unlocked or confirmation operation can be carried out. The alarm state may be an alarm operation while keeping the lock cylinder closed.
In an alternative embodiment, taking a target lock to execute the lock control method as an example, as shown in fig. 3, a camera, a microphone, and other devices of the target lock acquire feature information of a target object, send the feature information to a processor, the processor extracts first emotion information from the feature information, determines an emotion type to which the first emotion information belongs, generates control information according to the emotion type to which the first emotion information belongs, and sends the control information to a lock cylinder module to control an on-off state of the lock cylinder module.
Therefore, through the steps, the first emotion information used for indicating the current emotion state of the target object is extracted from the acquired feature information of the target object, and then the switch state of the target lock is controlled according to the emotion type to which the current emotion state of the target object belongs, for example: the current emotional state of the target object is abnormal, the target lock is not opened, and the like, so that the current emotional state of the target object can be used as a reference factor when the target lock is controlled, the identified dimensionality is expanded, richer information is used as an influence factor for controlling the on-off state of the lock, the technical effect of improving the safety of the intelligent lock is achieved, and the technical problem that the safety of the intelligent lock is low in the related technology is solved.
As an alternative, controlling the switch state of the target lock according to the emotion type to which the first emotion information belongs includes:
and S1, controlling the target lock to be in a closed state under the condition that the emotion type to which the first emotion information belongs is the first emotion type.
Optionally, in this embodiment, the first emotion type may be, but is not limited to, an emotion type that may indicate that the target subject is forced to open the target lock (such as hijacked, forced, and the like) or that the target subject maliciously opens the target lock (such as a thief, and the like), such as: fear, stress, panic, etc.
Through the steps, if the first emotion information belongs to the first emotion type, the lock is closed at the control target, and therefore the safety of an object protected by the lock is guaranteed.
As an optional solution, after controlling the switch state of the target lock according to the emotion type to which the first emotion information belongs, the method further includes:
s1, acquiring second emotion information of the target object in a preset time, wherein the second emotion information is used for indicating the emotional state of the target object in the preset time;
s2, detecting the emotion type to which the second emotion information belongs;
s3, an operation corresponding to the emotion type to which the second emotion information belongs is executed.
Alternatively, in the present embodiment, the predetermined time may be autonomously set by the user as needed. Such as setting for 1 minute, 30 seconds, 5 minutes, etc.
In the above optional embodiment, as shown in fig. 4, if the first emotion information indicates that the target object is in a fear emotion state, the emotion type to which the first emotion information belongs is the first emotion type, the processor controls the key module to be in a closed state (as shown by a bold solid frame "closed" word in fig. 4), and continuously acquires the second emotion information of the target object within one minute, and the processor detects the emotion type to which the second emotion information belongs and performs an operation corresponding to the emotion type to which the second emotion information belongs.
Through the steps, if the first emotion information belongs to the first emotion type, the emotion state of the target object is continuously acquired within the preset time while the target lock is controlled to be closed, corresponding operation is executed according to the emotion type to which the emotion state of the target object within the preset time belongs, the target object can enter an early warning state when the emotion of the target object is abnormal, corresponding operation is executed according to the emotion change of the target object within the next preset time, and therefore the safety of the target lock is guaranteed.
As an alternative, the performing of the operation corresponding to the emotion type to which the second emotion information belongs includes:
s1, sending first confirmation information to the client corresponding to the target lock under the condition that the emotion type to which the second emotion information belongs is converted from the first emotion type to the second emotion type within preset time, wherein the first confirmation information is used for requesting the client to confirm whether to open the target lock;
and S2, sending alarm information to a predetermined receiver under the condition that the emotion type to which the second emotion information belongs is the first emotion type all the time in a predetermined time.
Alternatively, in this embodiment, the second emotion type may be, but is not limited to, emotions other than the first emotion type, that is, abnormal emotions such as fear, tension, panic, and the like may be determined as the first emotion type, and the emotions other than these emotions may be, for example: the emotions of happy emotion, sad emotion and the like belong to the second emotion type.
Optionally, in this embodiment, if the emotion of the target object is converted from the first emotion type to the second emotion type within a predetermined time, sending first confirmation information to a client corresponding to the target lock, and determining, by the client, whether to open the door for the target object. An alert is made if the target object has been in an emotional state of the first emotion type for a predetermined time.
Optionally, in this embodiment, the target lock may be, but is not limited to, connected with its corresponding client through the cloud server. For example: if the emotion of the unlocking person is converted into calmness by fear within the preset time, first confirmation information can be sent to the client side corresponding to the target lock through the cloud server, and the client side determines whether the target lock is unlocked for the unlocking person or not.
Optionally, in this embodiment, the predetermined recipient is a predetermined subject to be alerted. Such as: but may be, but is not limited to, police, security, social groups, property management, and the like.
In the above optional embodiment, as shown in fig. 5, in the case that the second emotion information is converted from fear emotion to normal emotion such as calm emotion or happy emotion within one minute, the first confirmation information is sent to the client corresponding to the target lock to request the client to confirm whether to unlock the target lock. And sending alarm information to the police under the condition that the second emotion information is in fear emotion all the time within one minute or the fear emotion is converted into stress, panic and other emotion.
As an optional scheme, sending the first confirmation information to the client corresponding to the target lock includes:
s1, extracting identity information from the characteristic information, wherein the identity information is used for indicating the identity type to which the target object belongs;
s2, sending first confirmation information carrying identity information to a client corresponding to the target lock when the identity information is used for indicating that the identity type of the target object is a first identity type, wherein the first identity type is used for indicating that the target object and the target lock have a binding relationship;
and S3, sending first confirmation information carrying the identity information and first indication information to a client corresponding to the target lock when the identity information is used for indicating that the identity type to which the target object belongs is a second identity type, wherein the second identity type is used for indicating that the target object and the target lock do not have a binding relationship, and the first indication information is used for indicating that the emotion type of the second emotion information is converted from the first emotion type to the second emotion type within a preset time.
Optionally, in this embodiment, the first identity type is used to indicate that the target object and the target lock have a binding relationship, for example, the first identity type may be, but is not limited to, used to indicate that the target object is an owner of the target lock, the owner of the target lock may be one or more persons, a user may bind the target lock and identity information on a client corresponding to the target lock, the user inputs the identity information, and if an identity corresponding to the identity information is selected as an identity of the owner, the binding between the identity information and the target lock is completed.
Optionally, in this embodiment, the second identity type is used to indicate that the target object and the target lock do not have a binding relationship, for example, the second identity type may be but is not limited to be used to indicate that the target object is not an owner of the target lock, and may be a stranger or a friend, a relative, and the like of the owner, if the target object is a stranger, the identity information of the target object is recorded in the database, the user may input the identity information of the relatives and friends on the client corresponding to the target lock and select a label for the client, the user inputs the identity information, selects the identity corresponding to the identity information as the identity of the friend or the relative, or may also select a more specific identity label, such as a parent, a brother, a sister, a colleague, and the like, the database records the correspondence relationship between the identity information and the identity label, when the target lock detects the identity information, the identity tag can be confirmed. The identity information and the indication information can be carried in the first confirmation information and sent to the client, the indication information can carry identity tags, such as strangers, relatives, friends and the like, and an operator of the client can confirm whether the target lock is opened for the target object according to the indication information and the identity information.
Through the steps, different information is carried in the first confirmation information according to different identity types of the target object, so that an operator at a client can know the identity of the current unlocking person and determine whether the target lock is bound to the object to be unlocked, and the safety of the intelligent lock is further ensured.
As an optional scheme, after sending the first confirmation information to the client corresponding to the target lock, the method further includes:
s1, receiving first feedback information sent by the client end in response to the first confirmation information;
s2, controlling the target lock to be in an open state under the condition that the first feedback information is used for indicating that the target lock is confirmed to be opened, and sending second indication information carrying third emotion information to the target intelligent device, wherein the third emotion information is used for indicating the emotion state of the target object when the target lock is opened, and the second indication information is used for indicating the target intelligent device to push resources to the target object according to the third emotion information;
and S3, controlling the target lock to be in a closed state under the condition that the first feedback information is used for indicating that the target lock is not unlocked.
Optionally, in this embodiment, the target smart device may include, but is not limited to: intelligent electronic equipment (intelligent sound box, intelligent television, intelligent projector, etc.), intelligent household equipment (intelligent sofa, intelligent curtain, intelligent air purifier, intelligent water purifier, etc.).
Optionally, in this embodiment, the target lock may be connected to the target smart device through, but not limited to, a cloud server. For example: when the target lock is opened, second indication information carrying third emotion information used for indicating the emotion state of the target object when the target lock is opened is sent to the target intelligent device through the cloud server, and the target intelligent device is indicated to push resources to the target object according to the third emotion information.
Optionally, in this embodiment, the target smart device may obtain, but is not limited to, the resource pushed to the target object from the cloud server. The cloud server can store a corresponding resource library for each target object, and can also be connected with other servers for providing resources or a network, so that the resources are obtained from the network and forwarded to the target intelligent device.
Optionally, in this embodiment, when the target lock is unlocked for the target object, the current third emotional information of the target object is simultaneously sent to the target smart device, so that the target smart device can push resources for the target object according to the current emotional state of the target object. Such as: if the current emotion of the target object is happy, the smart sound box can play happy music, phase sound, talk show and other resources for the target object. If the current emotion of the target object is sad, the intelligent sound box can play cured music for the target object, and the intelligent television can play a television program for adjusting the mood for the target object.
As an alternative, controlling the switch state of the target lock according to the emotion type to which the first emotion information belongs includes:
s1, under the condition that the emotion type to which the first emotion information belongs is a second emotion type, extracting identity information from the characteristic information, wherein the identity information is used for indicating the identity type to which the target object belongs;
s2, controlling the target lock to be in an open state and sending third indication information carrying first emotion information to the target intelligent device under the condition that the identity information is used for indicating that the identity type of the target object is a first identity type, wherein the first identity type is used for indicating that the target object and the target lock have a binding relationship, and the third indication information is used for indicating that the target intelligent device pushes resources to the target object according to the first emotion information;
and S3, sending second confirmation information carrying the identity information to the client corresponding to the target lock when the identity information is used for indicating that the identity type to which the target object belongs is the second identity type, wherein the second identity type is used for indicating that the target object and the target lock do not have a binding relationship, and the second confirmation information is used for requesting the client to confirm whether to unlock the target lock.
Alternatively, in the present embodiment, the second emotion type may refer to all emotional states except the first emotion type. If the emotion type of the first emotion information of the target object is the second emotion type, corresponding operation is carried out according to the identity information of the target object, if the target object is the first identity type, a target lock is unlocked, the target intelligent device is indicated to push resources for the target intelligent device according to the emotion information of the target intelligent device, if the target object is the second identity type, the client side is informed, and whether the target lock is unlocked or not is confirmed by the client side.
As an optional scheme, after sending the second confirmation information carrying the identity information to the client corresponding to the target lock, the method further includes:
s1, receiving second feedback information sent by the client end in response to the second confirmation information;
s2, controlling the target lock to be in an open state under the condition that the second feedback information is used for indicating that the target lock is confirmed to be opened, and sending fourth indication information carrying first emotion information to the target intelligent equipment, wherein the fourth indication information is used for indicating the target intelligent equipment to push resources to a target object according to the first emotion information;
s3, controlling the target lock to be in a closed state under the condition that the second feedback information is used for indicating that the target lock is not unlocked
Optionally, in this embodiment, if the client determines to open the target lock for the target object, the target smart device is instructed to push resources for the target object according to the current emotion information of the target object while controlling the opening of the target lock.
Optionally, in this embodiment, if the client confirms not to unlock the target lock, the target lock is controlled to be in a closed state.
As an alternative, determining the emotion type to which the first emotion information belongs includes:
s1, matching the first emotion information with the target emotion information;
s2, determining the emotion type to which the first emotion information belongs as a first emotion type under the condition that the first emotion information is successfully matched with the target emotion information;
and S3, determining the emotion type to which the first emotion information belongs as a second emotion type under the condition that the first emotion information fails to be matched with the target emotion information.
Optionally, in this embodiment, the target emotion information may be configured, the target emotion information is used as a first emotion type, the first emotion information is used for matching with the target emotion information, if matching is successful, the emotion type of the first emotion information is determined to be the first emotion type, and if matching is failed, the emotion type of the first emotion information is determined to be a second emotion type.
Such as: the method comprises the steps of setting abnormal emotion characteristics such as panic, tension and fear as target emotion information, matching the target emotion information with first emotion information, if matching is successful, determining the emotion type of the first emotion information to be a first emotion type, if matching is failed, determining the emotion type of the first emotion information to be a second emotion type, and further determining a specific emotion state indicated by the first emotion information to indicate the target intelligent equipment to push resources according with the emotion state of the target intelligent equipment for the target object according to the specific emotion state.
As an optional scheme, the obtaining of the feature information of the target object includes:
s1, detecting voiceprint information of the target object and face information of the target object;
s2, determining the voiceprint information as the characteristic information of the target object when the voiceprint information is detected;
s3, in the case where the face information is detected, determining the face information as the feature information of the target object;
s4, determining the voiceprint information and the face information as the feature information of the target object when the voiceprint information and the face information are detected;
and S5, sending third confirmation information to the client corresponding to the target lock when the voiceprint information is not detected and the face information is not detected, wherein the third confirmation information is used for requesting the client to confirm whether the target lock is unlocked.
Optionally, in this embodiment, the feature information may include, but is not limited to, voiceprint information and/or facial information, if only one type of information is detected, the detected one type of information is used as the feature information, if a plurality of types of information are detected, the detected plurality of types of information are used as the feature information, and if the information is not detected, whether the target lock is unlocked is confirmed by the client.
As an alternative, in a case where the voiceprint information and the face information are determined as the feature information, extracting the first emotion information from the feature information includes:
s1, extracting voice emotion information from the voiceprint information and extracting face emotion information from the face information;
s2, determining the sound emotion information and the facial emotion information as first emotion information in a case where the current emotional state of the target object indicated by the sound emotion information coincides with the current emotional state of the target object indicated by the facial emotion information;
and S3, sending fourth confirmation information to the client corresponding to the target lock when the current emotional state of the target object indicated by the sound emotion information is inconsistent with the current emotional state of the target object indicated by the facial emotion information, wherein the fourth confirmation information is used for requesting the client to confirm whether to unlock the target lock.
Alternatively, in this embodiment, in the case where the voiceprint information and the face information are determined as the feature information, it may be determined through the process of consistency determination whether the plurality of kinds of information are directed to the same emotion, if so, the content indicating the emotion in the plurality of kinds of information is determined as the first emotion information, and if not, it is determined by the client whether the target lock is unlocked.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
According to another aspect of the embodiments of the present invention, there is also provided a control device of a lock for implementing the control method of the lock, as shown in fig. 6, the device includes:
an obtaining module 62, configured to obtain feature information of the target object;
an extracting module 64, configured to extract first emotion information from the feature information, where the first emotion information is used to indicate an emotional state of the target object at present;
a determining module 66, configured to determine a type of emotion to which the first emotion information belongs;
and the first control module 68 is used for controlling the on-off state of the target lock according to the emotion type to which the first emotion information belongs.
It should be noted that the control device of the lock provided in the embodiment of the present invention may be applied to an electronic device with data processing capability, where the electronic device may be a server set on a network side, or may be a terminal device such as a PC (personal computer) set on a user side; the electronic device can implement the control device of the lock provided by the embodiment of the application by loading a program with a function corresponding to the control device of the lock provided by the embodiment of the application, and the program can be stored in a memory of the computing device and called by a processor to realize a program function.
Optionally, in this embodiment, the terminal device may be, but is not limited to, the target lock, or may also be, but is not limited to, a controller for controlling the target lock.
Alternatively, in this embodiment, the control device of the lock may be applied to a hardware environment formed by the electronic device 202 shown in fig. 2. As shown in fig. 2, the electronic device 202 acquires feature information of a target object; extracting first emotion information from the characteristic information, wherein the first emotion information is used for indicating the current emotional state of the target object; determining the emotion type to which the first emotion information belongs; and controlling the on-off state of the target lock according to the emotion type of the first emotion information.
Optionally, in this embodiment, the control device of the lock may be applied to, but not limited to, a scenario in which a target lock is controlled. The target lock may be, but is not limited to, a lock assembled on various things, such as a door lock, a safe lock, a drawer lock, a trunk lock, and the like. In particular, the method can be applied to, but not limited to, a scenario in which the door lock is controlled, or can also be applied to, but not limited to, a scenario in which the safe lock is controlled, so as to improve the security of the intelligent lock. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the target object may include, but is not limited to: objects within detection range of the target lock, objects attempting to unlock the target lock, and so on. The target object may be, but is not limited to, a human being or any other living being.
Optionally, in this embodiment, the feature information may include, but is not limited to, various forms of features. Such as: voice features, facial features, etc.
Optionally, in this embodiment, the emotional state may include, but is not limited to: happy, sad, frightened, panic, nervous, etc. The first emotion information is a feature extracted from the feature information and capable of representing the current emotional state of the target object. Such as: information of voice intonation extracted from voice features, semantic information for expressing emotional states recognized from voice features, expression information extracted from facial features, and the like.
Optionally, in this embodiment, the target lock may be unlocked, but is not limited to, by at least one of the following information: fingerprint information, voice information, iris information, face information, character information, keys, and the like. After the information of the target object is received, whether the target lock is unlocked can be determined according to the first emotion information of the target object.
Optionally, in this embodiment, the emotion types may be divided into two types, one is a normal emotion, the other is an abnormal emotion (fear, panic, tension, etc.), and when the first emotion information does not belong to the abnormal emotion, the first emotion information belongs to the normal emotion.
Optionally, in this embodiment, the switch state of the target lock may include, but is not limited to: an on state, an off state, an early warning state, an alarm state, and the like. For example: the unlocking state can be the unlocking of a lock cylinder of the target lock, the closing state can be the locking of the target lock, the early warning state can be the state of pre-warning while the lock cylinder is kept closed, emotion information of the target object can be continuously detected in the state, if the target object is always in abnormal emotion, the alarm state is switched to the alarming state for alarming operation, and if the emotion of the target object is switched to normal, the lock cylinder can be unlocked or confirmation operation can be carried out. The alarm state may be an alarm operation while keeping the lock cylinder closed.
In an optional embodiment, taking a target lock as the control device of the lock as an example, as shown in fig. 3, a camera, a microphone, and the like of the target lock acquire feature information of a target object, send the feature information to a processor, the processor extracts first emotion information from the feature information, determines an emotion type to which the first emotion information belongs, generates control information according to the emotion type to which the first emotion information belongs, and sends the control information to a lock cylinder module to control an on-off state of the lock cylinder module.
Therefore, through the device, the first emotion information used for indicating the current emotion state of the target object is extracted from the acquired feature information of the target object, and then the switch state of the target lock is controlled according to the emotion type to which the current emotion state of the target object belongs, for example: target lock etc. is not opened to the current emotional state of target object is unusual then to can regard the current emotional state of target object as the reference factor when controlling target lock, expand the dimension of discernment, regard as the influence factor of control tool to lock on-off state with abundanter information, thereby realized improving the technological effect of intelligent tool to lock's security, and then solved the lower technical problem of security of intelligent tool to lock among the correlation technique.
As an alternative, the first control module includes:
and the first control unit is used for controlling the target lockset to be in a closed state under the condition that the emotion type to which the first emotion information belongs is the first emotion type.
Optionally, in this embodiment, the first emotion type may be, but is not limited to, an emotion type that may indicate that the target subject is forced to open the target lock (such as hijacked, forced, and the like) or that the target subject maliciously opens the target lock (such as a thief, and the like), such as: fear, stress, panic, etc.
Through the device, if the first emotion information belongs to the first emotion type, the lock is closed at the control target, so that the safety of an object protected by the lock is guaranteed.
As an optional solution, the first control module further includes:
the acquiring unit is used for acquiring second emotion information of the target object within a preset time, wherein the second emotion information is used for indicating the emotional state of the target object within the preset time;
the first detection unit is used for detecting the emotion type to which the second emotion information belongs;
and the execution unit is used for executing the operation corresponding to the emotion type to which the second emotion information belongs.
Alternatively, in the present embodiment, the predetermined time may be autonomously set by the user as needed. Such as setting for 1 minute, 30 seconds, 5 minutes, etc.
In the above optional embodiment, as shown in fig. 4, if the first emotion information indicates that the target object is in an emotional state of fear, the emotion type to which the first emotion information belongs is the first emotion type, the processor controls the lock cylinder module to be in the closed state, and continuously acquires the second emotion information of the target object within one minute, and the processor detects the emotion type to which the second emotion information belongs, and executes an operation corresponding to the emotion type to which the second emotion information belongs.
Through the device, if the first emotion information belongs to the first emotion type, the emotion state of the target object is continuously acquired within the preset time while the target lock is controlled to be closed, corresponding operation is executed according to the emotion type to which the emotion state of the target object within the preset time belongs, the target object can enter an early warning state when the emotion of the target object is abnormal, corresponding operation is executed according to emotion change of the target object within the next preset time, and therefore safety of the target lock is guaranteed.
As an alternative, the execution unit includes:
the first sending subunit is used for sending first confirmation information to the client corresponding to the target lock when the emotion type to which the second emotion information belongs is converted from the first emotion type to the second emotion type within the preset time, wherein the first confirmation information is used for requesting the client to confirm whether the target lock is unlocked;
and the second sending subunit is used for sending alarm information to a predetermined receiving party under the condition that the emotion type to which the second emotion information belongs is always the first emotion type in a predetermined time.
Optionally, in this embodiment, the second emotion type may be, but is not limited to, emotions other than the first emotion type, that is, abnormal emotions such as fear, tension, panic, and the like may be determined as the first emotion type, and the emotions other than these emotions may be, for example: the emotions of happy emotion, sad emotion and the like belong to the second emotion type.
Optionally, in this embodiment, if the emotion of the target object is converted from the first emotion type to the second emotion type within a predetermined time, sending first confirmation information to a client corresponding to the target lock, and determining, by the client, whether to open the door for the target object. An alert is made if the target object has been in an emotional state of the first emotional type for a predetermined time.
Optionally, in this embodiment, the target lock may be, but is not limited to, connected with its corresponding client through the cloud server. For example: if the emotion of the unlocking person is converted into calmness by fear within the preset time, first confirmation information can be sent to the client side corresponding to the target lock through the cloud server, and the client side determines whether the target lock is unlocked for the unlocking person or not.
Optionally, in this embodiment, the predetermined recipient is a predetermined subject to be alerted. Such as: but may be, but is not limited to, police, security, social groups, property management, and the like.
In the above optional embodiment, as shown in fig. 5, in a case that the second emotion information is converted from a fear emotion to a normal emotion such as a calm emotion or a happy emotion within one minute, the first confirmation information is sent to the client corresponding to the target lock to request the client to confirm whether to unlock the target lock. And sending alarm information to the police under the condition that the second emotion information is in fear emotion all the time within one minute or the fear emotion is converted into stress, panic and other emotion.
As an alternative, the first sending subunit is configured to:
extracting identity information from the characteristic information, wherein the identity information is used for indicating the identity type to which the target object belongs;
under the condition that the identity information is used for indicating that the identity type of the target object is a first identity type, sending first confirmation information carrying the identity information to a client side corresponding to the target lock, wherein the first identity type is used for indicating that the target object and the target lock have a binding relationship;
and under the condition that the identity information is used for indicating that the identity type of the target object is a second identity type, sending first confirmation information carrying the identity information and first indication information to a client corresponding to the target lock, wherein the second identity type is used for indicating that the target object and the target lock do not have a binding relationship, and the first indication information is used for indicating that the emotion type of the second emotion information is converted from the first emotion type to the second emotion type within a preset time.
Optionally, in this embodiment, the first identity type is used to indicate that the target object and the target lock have a binding relationship, for example, the first identity type may be, but is not limited to, used to indicate that the target object is an owner of the target lock, the owner of the target lock may be one or more persons, the user may bind the target lock and the identity information on the client corresponding to the target lock, the user inputs the identity information, and if the identity corresponding to the identity information is selected as the owner identity, the binding between the identity information and the target lock is completed.
Optionally, in this embodiment, the second identity type is used to indicate that the target object and the target lock do not have a binding relationship, for example, the second identity type may be but is not limited to be used to indicate that the target object is not an owner of the target lock, and may be a stranger or a friend, a relative, and the like of the owner, if the target object is a stranger, the identity information of the target object is recorded in the database, the user may input the identity information of the relatives and friends on the client corresponding to the target lock and select a label for the client, the user inputs the identity information, selects the identity corresponding to the identity information as the identity of the friend or the relative, or may also select a more specific identity label, such as a parent, a brother, a sister, a colleague, and the like, the database records the correspondence relationship between the identity information and the identity label, when the target lock detects the identity information, the identity tag can be confirmed. The identity information and the indication information can be carried in the first confirmation information and sent to the client, the indication information can carry identity tags, such as strangers, relatives, friends and the like, and an operator of the client can confirm whether the target lock is opened for the target object according to the indication information and the identity information.
Through the device, different information is carried in the first confirmation information according to different identity types of the target object, so that an operator at a client can know the identity of a current unlocking person, and whether the target lock is bound to the target lock to unlock the target lock is determined, and the safety of the intelligent lock is further ensured.
As an optional solution, after sending the first confirmation information to the client corresponding to the target lock, the apparatus further includes:
the first receiving module is used for receiving first feedback information sent by the client end in response to the first confirmation information;
the first processing module is used for controlling the target lock to be in an opening state and sending second indication information carrying third emotion information to the target intelligent device under the condition that the first feedback information is used for indicating that the target lock is confirmed to be opened, wherein the third emotion information is used for indicating the emotion state of the target object when the target lock is opened, and the second indication information is used for indicating the target intelligent device to push resources to the target object according to the third emotion information;
and the second control module is used for controlling the target lock to be in a closed state under the condition that the first feedback information is used for indicating that the target lock is not unlocked.
Optionally, in this embodiment, the target smart device may include, but is not limited to: intelligent electronic equipment (intelligent sound box, intelligent television, intelligent projector, etc.), intelligent household equipment (intelligent sofa, intelligent curtain, intelligent air purifier, intelligent water purifier, etc.).
Optionally, in this embodiment, the target lock may be, but is not limited to, connected to the target smart device through the cloud server. For example: when the target lock is opened, second indication information carrying third emotion information used for indicating the emotion state of the target object when the target lock is opened is sent to the target intelligent device through the cloud server, and the target intelligent device is indicated to push resources to the target object according to the third emotion information.
Optionally, in this embodiment, the target smart device may obtain, but is not limited to, the resource pushed to the target object from the cloud server. The cloud server can store a corresponding resource library for each target object, and can also be connected with other servers for providing resources or a network, so that the resources are obtained from the network and forwarded to the target intelligent device.
Optionally, in this embodiment, when the target lock is unlocked for the target object, the current third emotional information of the target object is simultaneously sent to the target smart device, so that the target smart device can push resources for the target object according to the current emotional state of the target object. Such as: if the current emotion of the target object is happy, the smart sound box can play happy music, phase sound, talk show and other resources for the target object. If the current emotion of the target object is sad, the smart sound box can play cured music for the target object, and the smart television can play a television program for adjusting the mood for the target object.
As an optional solution, the first control module includes:
a first extraction unit, configured to extract identity information from the feature information if the emotion type to which the first emotion information belongs is a second emotion type, where the identity information is used to indicate an identity type to which the target object belongs;
the processing unit is used for controlling the target lock to be in an open state and sending third indication information carrying first emotion information to the target intelligent device under the condition that the identity information is used for indicating that the identity type of the target object is a first identity type, wherein the first identity type is used for indicating that the target object and the target lock have a binding relationship, and the third indication information is used for indicating that the target intelligent device pushes resources to the target object according to the first emotion information;
the first sending unit is used for sending second confirmation information carrying the identity information to the client corresponding to the target lock when the identity information is used for indicating that the identity type to which the target object belongs is the second identity type, wherein the second identity type is used for indicating that the target object and the target lock do not have a binding relationship, and the second confirmation information is used for requesting the client to confirm whether the target lock is unlocked.
Alternatively, in the present embodiment, the second emotion type may refer to all emotional states except the first emotion type. If the emotion type of the first emotion information of the target object is the second emotion type, corresponding operation is carried out according to the identity information of the target object, if the target object is the first identity type, a target lock is unlocked, the target intelligent device is indicated to push resources for the target intelligent device according to the emotion information of the target intelligent device, if the target object is the second identity type, the client side is informed, and whether the target lock is unlocked or not is confirmed by the client side.
As an optional scheme, after sending the second confirmation information carrying the identity information to the client corresponding to the target lock, the apparatus further includes:
the second receiving module is used for receiving second feedback information sent by the client end in response to the second confirmation information;
the second processing module is used for controlling the target lock to be in an opening state and sending fourth indication information carrying the first emotion information to the target intelligent equipment under the condition that the second feedback information is used for indicating that the target lock is confirmed to be opened, wherein the fourth indication information is used for indicating the target intelligent equipment to push resources to a target object according to the first emotion information;
and the third control module is used for controlling the target lock to be in a closed state under the condition that the second feedback information is used for indicating that the target lock is not unlocked.
Optionally, in this embodiment, if the client determines that the target lock is unlocked for the target object, the target smart device is instructed to push resources for the target object according to the current emotional information of the target object while controlling the target lock to be unlocked.
Optionally, in this embodiment, if the client confirms not to unlock the target lock, the target lock is controlled to be in a closed state.
As an optional solution, the determining module includes:
the matching unit is used for matching the first emotion information with the target emotion information;
the first determining unit is used for determining that the emotion type to which the first emotion information belongs is a first emotion type under the condition that the first emotion information is successfully matched with the target emotion information;
and the second determining unit is used for determining that the emotion type to which the first emotion information belongs is the second emotion type under the condition that the first emotion information is unsuccessfully matched with the target emotion information.
Optionally, in this embodiment, the target emotion information may be configured, the target emotion information is used as a first emotion type, the first emotion information is used for matching with the target emotion information, if matching is successful, the emotion type of the first emotion information is determined to be the first emotion type, and if matching is failed, the emotion type of the first emotion information is determined to be a second emotion type.
Such as: abnormal emotion characteristics such as panic, tension and fear can be set as target emotion information, the first emotion information is used for matching with the target emotion information, if matching is successful, the emotion type of the first emotion information is determined to be a first emotion type, if matching is failed, the emotion type of the first emotion information is determined to be a second emotion type, the specific emotion state indicated by the first emotion information can be further determined, and the target intelligent device is indicated to push resources according with the emotion state of the target intelligent device as a target object according to the specific emotion state.
As an optional scheme, the obtaining module includes:
a second detection unit for detecting voiceprint information of the target object and face information of the target object;
a third determination unit configured to determine the voiceprint information as feature information of the target object in a case where the voiceprint information is detected;
a fourth determination unit configured to determine, in a case where the face information is detected, the face information as feature information of the target object;
a fifth determining unit configured to determine the voiceprint information and the face information as feature information of the target object in a case where the voiceprint information and the face information are detected;
and the second sending unit is used for sending third confirmation information to the client corresponding to the target lock under the condition that the voiceprint information is not detected and the face information is not detected, wherein the third confirmation information is used for requesting the client to confirm whether the target lock is unlocked or not.
Optionally, in this embodiment, the feature information may include, but is not limited to, voiceprint information and/or facial information, if only one type of information is detected, the detected one type of information is used as the feature information, if multiple types of information are detected, the detected multiple types of information are used as the feature information, and if the information is not detected, the client confirms whether to unlock the target lock.
As an optional solution, the extraction module includes:
a second extraction unit that extracts, in a case where the voiceprint information and the face information are determined as the feature information, the voice emotion information from the voiceprint information and the face emotion information from the face information;
a sixth determining unit configured to determine, as the first emotion information, the voice emotion information and the facial emotion information in a case where an emotion state in which the target object indicated by the voice emotion information is currently located coincides with an emotion state in which the target object indicated by the facial emotion information is currently located;
and the third sending unit is used for sending fourth confirmation information to the client corresponding to the target lock when the current emotion state of the target object indicated by the sound emotion information is inconsistent with the current emotion state of the target object indicated by the facial emotion information, wherein the fourth confirmation information is used for requesting the client to confirm whether the target lock is unlocked.
Alternatively, in this embodiment, in the case where the voiceprint information and the face information are determined as the feature information, it may be determined through the process of consistency determination whether the plurality of kinds of information are directed to the same emotion, if so, the content indicating the emotion in the plurality of kinds of information is determined as the first emotion information, and if not, it is determined by the client whether the target lock is unlocked.
The application environment of the embodiment of the present invention may refer to the application environment in the above embodiments, but is not described herein again. The embodiment of the invention provides an optional specific application example of the connection method for implementing the real-time communication.
As an alternative embodiment, the control method of the lock may be applied, but not limited to, in a scenario of controlling an intelligent door lock as shown in fig. 7. As shown in fig. 7, the intelligent door lock can communicate with the client (APP) corresponding to the intelligent door lock, and the intelligent door lock can also communicate with indoor intelligent equipment, such as an intelligent sound box. The intelligent door lock is an important member in an intelligent home, and can produce a linkage effect with intelligent equipment such as an intelligent sound box. With the popularization of the intelligent door lock, the safety of the intelligent door lock is more and more emphasized. In this scene, based on voiceprint/face recognition technology, with emotion recognition blend in intelligent lock application (if the people who opens the door do not start opening the door under the fear state, but get into the early warning state) to the emotion state that will discern makes communication with intelligent equipment's such as intelligent audio amplifier content, according to entering people and emotion state, the suitable content of initiative propelling movement, and then promotes intelligent lock's security and intelligent equipment's such as intelligent audio amplifier product experience.
Through the intelligent door lock capable of recognizing voiceprints and human faces, the ID and emotional state of the owner and relative friends of the owner are recorded, and proper contents are pushed in combination with personalized preferences to form a series of interactions from a family entrance to a family device.
Firstly, when someone opens the door, the door lock switch can be triggered by identifying the person who opens the door and the emotional state through the voiceprint/face. As shown in table 1, if the emotional state of the door opener is identified as an abnormal state, the door opener enters an early warning state, and if the emotional state of the door opener is identified as a normal state, different control operations are executed according to different identities of the door openers.
TABLE 1
Figure BDA0001758914840000251
Secondly, after a door opener enters the door, the recognized emotional state is synchronized to the intelligent sound box, and the background of the intelligent sound box actively pushes the appropriate resource content according to the emotional state and the preference.
In addition, if the door opener is not the owner but is invited to visit by a relative friend/stranger, the door can be opened after being confirmed by the mobile phone APP of the owner, and appropriate content is pushed according to the emotional state of the guest to wait for the owner to get home.
Optionally, in this embodiment, a determination rule may be formulated for voiceprint and face recognition, as shown in table 2, if only voiceprint information is recognized, the determination is performed according to the voiceprint information, if only face information is recognized, the determination is performed according to the face information, and if both voiceprint and face are recognized and the result is inconsistent or both voiceprint and face are not recognized, the door is opened after confirmation through the APP.
TABLE 2
Identification information Determination
Recognizing only voiceprint information Determining according to voiceprint information
Recognizing only face information Decision according to face information
Voiceprints and human faces are recognized, and results are inconsistent APP confirmation back door
The voiceprint and the face are not recognized APP confirmation back door
Optionally, in this embodiment, the technology of voiceprint and face recognition ID is the same in technical principle, and is essentially determined by matching the feature library and the recognized features, except that the information of voiceprint recognition is human voice (usually recognized through a sound wave pattern + intonation), and the face recognition is feature points of the face part (determined by matching the distribution features of the recognized feature points with the information in the feature library).
Optionally, in this embodiment, when emotion information is identified through voiceprints, emotion can be identified through keyword semantics, for example, a user yells at the gate to "haha happy today", and the emotional state of the user is judged to be happy through the "happy" keyword.
Optionally, in this embodiment, when the emotion is recognized through the face, the emotion is recognized through the facial expression, and the emotional state of the user is also determined through the principle of the distribution features of the feature points.
Optionally, in this embodiment, an alarm triggering device may be disposed in the lock hole of the smart door lock, and after it is recognized that the door opener is at the door but the emotional state is abnormal for 1 minute, the alarm triggering device may be triggered, so as to trigger an alarm.
Optionally, in this embodiment, the accumulated content in the user preference content library and the emotional state of the user identified by the door lock are also combined, and a suitable content is pushed to the user through the smart speaker. As shown in table 3, taking music content as an example: if the emotional state of the door opener is normal positive emotion such as happy emotion and excited emotion, happy music is played for the door opener, and the music can be obtained from a music library corresponding to the door opener and can also be obtained from a network. If the emotional state of the door opener is normal negative emotion such as injury, disappointment and the like, the music for healing is played for the door opener.
TABLE 3
Figure BDA0001758914840000271
Through the control process of above-mentioned intelligent lock, on the one hand, can improve the security of intelligent lock system through joining emotional state discernment, on the other hand through interacting with intelligent house equipment, can improve the application ductility of technique
Optionally, the intelligent device is not only suitable for an intelligent sound box, but also can be used for other intelligent household devices such as an intelligent television, an intelligent projector and the like.
Optionally, in this embodiment, the emotions are divided into normal emotions and abnormal emotions, and the normal emotions are further divided into positive and negative emotions. This indicates an example, the emotions may also be classified according to emotion classification methods such as PAD, and the control process of the intelligent lock is similar to the above embodiment and is not described again.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the control of the lock, as shown in fig. 8, the electronic device including: one or more processors 802 (only one of which is shown), in which a computer program is stored, a memory 804, in which a sensor 806, an encoder 808 and a transmission device 810 are arranged, wherein the processor is arranged to execute the steps of any of the above-described method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring characteristic information of the target object;
s2, extracting first emotion information from the characteristic information, wherein the first emotion information is used for indicating the current emotional state of the target object;
s3, determining the emotion type to which the first emotion information belongs;
and S4, controlling the switch state of the target lock according to the emotion type of the first emotion information.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 8 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
The memory 802 may be used to store software programs and modules, such as program instructions/modules corresponding to the lock control method and apparatus in the embodiments of the present invention, and the processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, the control method of the target component described above is implemented. The memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 802 can further include memory located remotely from the processor 804, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmitting device 810 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 810 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 810 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The memory 802 is used, among other things, for storing application programs.
An embodiment of the present invention further provides a storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the method embodiments described above when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring characteristic information of the target object;
s2, extracting first emotion information from the characteristic information, wherein the first emotion information is used for indicating the current emotional state of the target object;
s3, determining the emotion type to which the first emotion information belongs;
and S4, controlling the switch state of the target lock according to the emotion type of the first emotion information.
Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be essentially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be an indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A method of controlling a lock, comprising:
acquiring characteristic information of a target object;
extracting first emotion information from the characteristic information, wherein the first emotion information is used for indicating the current emotional state of the target object;
determining the emotion type to which the first emotion information belongs;
under the condition that the emotion type to which the first emotion information belongs is a first emotion type, acquiring second emotion information of the target object within preset time, wherein the first emotion type is used for indicating to control a target lock to keep a closed state;
detecting the emotion type to which the second emotion information belongs;
sending alarm information to a predetermined receiver under the condition that the emotion type to which the second emotion information belongs is the first emotion type all the time in the predetermined time;
and under the condition that the emotion type to which the second emotion information belongs is converted from the first emotion type to the second emotion type within the preset time, sending first confirmation information to a client corresponding to the target lock to request the client to confirm whether to open the target lock, wherein the information carried by the first confirmation information is determined based on whether the target object and the target lock have a binding relationship.
2. The method of claim 1, wherein sending the first confirmation information to the client corresponding to the target lock comprises:
extracting identity information from the feature information, wherein the identity information is used for indicating an identity type to which the target object belongs;
sending the first confirmation information carrying the identity information to the client corresponding to the target lock when the identity information is used for indicating that the identity type to which the target object belongs is a first identity type, wherein the first identity type is used for indicating that the target object and the target lock have a binding relationship;
and sending first confirmation information carrying the identity information and first indication information to the client corresponding to the target lock when the identity information is used for indicating that the identity type to which the target object belongs is a second identity type, wherein the second identity type is used for indicating that the target object and the target lock do not have a binding relationship, and the first indication information is used for indicating that the emotion type of the second emotion information is converted from the first emotion type to the second emotion type within the preset time.
3. The method of claim 1, wherein after sending the first confirmation information to the client corresponding to the target lock, the method further comprises:
receiving first feedback information sent by the client in response to the first confirmation information;
controlling the target lock to be in an opening state under the condition that the first feedback information is used for indicating that the target lock is confirmed to be opened, and sending second indication information carrying third emotion information to target intelligent equipment, wherein the third emotion information is used for indicating an emotion state of the target object when the target lock is opened, and the second indication information is used for indicating the target intelligent equipment to push resources to the target object according to the third emotion information;
and controlling the target lock to be in a closed state under the condition that the first feedback information is used for indicating that the target lock is not unlocked.
4. The method of claim 1, after determining the type of emotion to which the first emotion information belongs, further comprising:
extracting identity information from the feature information under the condition that the emotion type to which the first emotion information belongs is a second emotion type, wherein the identity information is used for indicating the identity type to which the target object belongs;
controlling the target lock to be in an open state and sending third indication information carrying the first emotion information to a target intelligent device under the condition that the identity information is used for indicating that the identity type of the target object is a first identity type, wherein the first identity type is used for indicating that the target object and the target lock have a binding relationship, and the third indication information is used for indicating the target intelligent device to push resources to the target object according to the first emotion information;
and sending second confirmation information carrying the identity information to a client corresponding to the target lock under the condition that the identity information is used for indicating that the identity type to which the target object belongs is a second identity type, wherein the second identity type is used for indicating that the target object and the target lock do not have a binding relationship, and the second confirmation information is used for requesting the client to confirm whether to open the target lock.
5. The method according to claim 4, wherein after sending the second confirmation information carrying the identity information to the client corresponding to the target lock, the method further comprises:
receiving second feedback information sent by the client in response to the second confirmation information;
controlling the target lock to be in an open state under the condition that the second feedback information is used for indicating that the target lock is confirmed to be opened, and sending fourth indication information carrying the first emotion information to target intelligent equipment, wherein the fourth indication information is used for indicating the target intelligent equipment to push resources to the target object according to the first emotion information;
and controlling the target lock to be in a closed state under the condition that the second feedback information is used for indicating that the target lock is not unlocked.
6. The method of claim 1, wherein determining the type of emotion to which the first emotion information belongs comprises:
matching the first emotion information with target emotion information;
under the condition that the first emotion information is successfully matched with the target emotion information, determining that the emotion type to which the first emotion information belongs is a first emotion type;
and under the condition that the first emotion information is unsuccessfully matched with the target emotion information, determining that the emotion type to which the first emotion information belongs is a second emotion type.
7. The method of claim 1, wherein obtaining the feature information of the target object comprises:
detecting voiceprint information of the target object and face information of the target object;
determining the voiceprint information as the characteristic information of the target object under the condition that the voiceprint information is detected;
determining the face information as feature information of the target object in a case where the face information is detected;
determining the voiceprint information and the face information as feature information of the target object in a case where the voiceprint information and the face information are detected;
and under the condition that the voiceprint information is not detected and the face information is not detected, sending third confirmation information to the client corresponding to the target lock, wherein the third confirmation information is used for requesting the client to confirm whether the target lock is unlocked.
8. The method according to claim 7, wherein, in a case where the voiceprint information and the face information are determined as the feature information, extracting first emotion information from the feature information includes:
extracting voice emotion information from the voiceprint information and extracting face emotion information from the face information;
determining the sound emotion information and the facial emotion information as the first emotion information in the case that the current emotional state of the target object indicated by the sound emotion information coincides with the current emotional state of the target object indicated by the facial emotion information;
and sending fourth confirmation information to the client corresponding to the target lock when the current emotional state of the target object indicated by the sound emotion information is inconsistent with the current emotional state of the target object indicated by the facial emotion information, wherein the fourth confirmation information is used for requesting the client to confirm whether to unlock the target lock.
9. A control device for a lock, comprising:
the first acquisition module is used for acquiring characteristic information of a target object;
an extraction module, configured to extract first emotion information from the feature information, where the first emotion information is used to indicate an emotional state of the target object at present;
the determining module is used for determining the emotion type to which the first emotion information belongs;
the second obtaining module is used for obtaining second emotion information of the target object within preset time under the condition that the emotion type to which the first emotion information belongs is a first emotion type, wherein the first emotion type is used for indicating that a target lock is controlled to keep a closed state;
the detection module is used for detecting the emotion type to which the second emotion information belongs;
the sending module is used for sending alarm information to a preset receiving party under the condition that the emotion type to which the second emotion information belongs is the first emotion type all the time in the preset time; and under the condition that the emotion type to which the second emotion information belongs is converted from the first emotion type to the second emotion type within the preset time, sending first confirmation information to a client corresponding to the target lock to request the client to confirm whether to open the target lock, wherein the information carried by the first confirmation information is determined based on whether the target object and the target lock have a binding relationship.
10. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 8 when executed.
11. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 8 by means of the computer program.
CN201810899043.6A 2018-08-08 2018-08-08 Lock control method and device, storage medium and electronic device Active CN109118626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810899043.6A CN109118626B (en) 2018-08-08 2018-08-08 Lock control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810899043.6A CN109118626B (en) 2018-08-08 2018-08-08 Lock control method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN109118626A CN109118626A (en) 2019-01-01
CN109118626B true CN109118626B (en) 2022-09-13

Family

ID=64853006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810899043.6A Active CN109118626B (en) 2018-08-08 2018-08-08 Lock control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN109118626B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110126723B (en) * 2019-05-08 2021-06-18 浙江大华技术股份有限公司 Lock control system, method and device, storage medium and electronic device
CN111009241A (en) * 2019-07-29 2020-04-14 恒大智慧科技有限公司 Music playing method based on intelligent door lock and storage medium
CN111126244A (en) * 2019-12-20 2020-05-08 南京邮电大学 Security authentication system and method based on facial expressions
CN112634507B (en) * 2020-12-30 2022-11-22 重庆赤木科技有限公司 Safety access control management system for community

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090034522A (en) * 2007-10-04 2009-04-08 에스케이 텔레콤주식회사 Apparatus and method for user emotion status information provision
CN101414348A (en) * 2007-10-19 2009-04-22 三星电子株式会社 Method and system for identifying human face in multiple angles
CN101984453A (en) * 2010-11-02 2011-03-09 中国科学技术大学 Human eye recognition system and method
CN103079034A (en) * 2013-01-06 2013-05-01 北京百度网讯科技有限公司 Perception shooting method and system
CN103246869A (en) * 2013-04-19 2013-08-14 福建亿榕信息技术有限公司 Crime monitoring method based on face recognition technology and behavior and sound recognition
CN108039988A (en) * 2017-10-31 2018-05-15 珠海格力电器股份有限公司 Equipment control process method and device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102975690A (en) * 2011-09-02 2013-03-20 上海博泰悦臻电子设备制造有限公司 Automobile locking system and method thereof
CN104102346A (en) * 2014-07-01 2014-10-15 华中科技大学 Household information acquisition and user emotion recognition equipment and working method thereof
CN107944434A (en) * 2015-06-11 2018-04-20 广东欧珀移动通信有限公司 A kind of alarm method and terminal based on rotating camera
CN104951434B (en) * 2015-07-10 2018-10-23 沃民高新科技(北京)股份有限公司 The determination method and apparatus of brand mood
CN104966344B (en) * 2015-07-17 2018-01-30 江西洪都航空工业集团有限责任公司 A kind of security access control system based on video
CN105528703A (en) * 2015-12-26 2016-04-27 上海孩子国科教设备有限公司 Method and system for implementing payment verification via expression
CN106782545B (en) * 2016-12-16 2019-07-16 广州视源电子科技股份有限公司 A kind of system and method that audio, video data is converted to writing record
CN106730234A (en) * 2017-01-11 2017-05-31 上海北辰软件股份有限公司 A kind of intelligent mood persuasion system
CN106846578A (en) * 2017-01-20 2017-06-13 贵州财经大学 Face identification system and gate control system
CN107392112A (en) * 2017-06-28 2017-11-24 中山职业技术学院 A kind of facial expression recognizing method and its intelligent lock system of application
CN107992739A (en) * 2017-11-30 2018-05-04 北京旷视科技有限公司 User authentication method, apparatus and system
CN107992199A (en) * 2017-12-19 2018-05-04 广东小天才科技有限公司 A kind of Emotion identification method, system and electronic equipment for electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090034522A (en) * 2007-10-04 2009-04-08 에스케이 텔레콤주식회사 Apparatus and method for user emotion status information provision
CN101414348A (en) * 2007-10-19 2009-04-22 三星电子株式会社 Method and system for identifying human face in multiple angles
CN101984453A (en) * 2010-11-02 2011-03-09 中国科学技术大学 Human eye recognition system and method
CN103079034A (en) * 2013-01-06 2013-05-01 北京百度网讯科技有限公司 Perception shooting method and system
CN103246869A (en) * 2013-04-19 2013-08-14 福建亿榕信息技术有限公司 Crime monitoring method based on face recognition technology and behavior and sound recognition
CN108039988A (en) * 2017-10-31 2018-05-15 珠海格力电器股份有限公司 Equipment control process method and device

Also Published As

Publication number Publication date
CN109118626A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN109118626B (en) Lock control method and device, storage medium and electronic device
CN109036438B (en) Storage cabinet control method, storage cabinet control device, computer equipment and storage medium
US9197867B1 (en) Identity verification using a social network
CN104850827B (en) Fingerprint identification method and device
CN107564144A (en) A kind of intelligent robot gate control system and control method
CN107845165A (en) A kind of server cabinet door control method, device and terminal
CN206522020U (en) A kind of intelligent door lock and system
CN110211267A (en) Indoor openings control method, the configuration method of permission, device and storage medium
CN109389711A (en) Gate inhibition's unlocking method, device, equipment and medium based on living things feature recognition
CN109660767A (en) A kind of visitor's response method, intelligent doorbell and the system of intelligent doorbell
JP2016177484A (en) Security system
CN109697989B (en) Audio data processing method, server and readable storage medium
CN106161406B (en) The method and apparatus for obtaining user account
CN111508521B (en) Security method, terminal device and storage medium
CN108549848A (en) Method and apparatus for output information
CN205140028U (en) Gate inhibition system
CN110730330B (en) Sound processing method and device, doorbell and computer readable storage medium
US11694693B2 (en) Methods and systems for processing audio signals containing speech data
CN112489276A (en) Gate inhibition control method and device based on gait recognition and storage medium
CN107507308B (en) Information matching method and device and intelligent door lock
CN113628367A (en) Lock control method, device and system, storage medium and electronic equipment
CN110930545A (en) Intelligent door lock control method, control device, control equipment and storage medium
US10715348B2 (en) Method for processing user information detected by at least one detection device of a system
CN108574760A (en) The display methods and device of associated person information and the display methods and device of information
US20200364321A1 (en) Method and apparatus for providing authentication using voice and facial data

Legal Events

Date Code Title Description
PB01 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