Authority control method, device, computer equipment and the storage medium of home equipment
Technical field
The present invention relates to permission control fields, more particularly to the authority control method, device, calculating of a kind of home equipment
Machine equipment and storage medium.
Background technique
In smart home environment, when user wants control smart home device, user carries out authentication first, if
Authentication passes through, that is, can control the smart home device.
The mode that the prior art carries out authentication to user includes that recognition of face, finger print identifying or vocal print compare, and adopt
With single authentication mode, i.e., one of authentication mode authentication mode is compared only with recognition of face, finger print identifying, vocal print, if
Single authentication passes through, the i.e. controllable smart home device of user.However the single authentication mode is easy to be broken through by unauthorized person, obtains
The illegal control to smart home device is obtained, the safety of smart home device is reduced.
Summary of the invention
Present invention generally provides a kind of authority control methods of home equipment, can overcome existing single purview certification side
Formula is easy to be broken through by unauthorized person, obtains the illegal control to smart home device to reduce the safety of smart home device
The problem of.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of permission of home equipment is provided
Control method, the authority control method are applied to server or terminal control center, the permission controlling party of the home equipment
Method includes:
Receive control instruction of the user to the home equipment to be controlled of terminal transmission;
Send default authentication mode prompts the user that a variety of authentication modes is therefrom selected to authenticate to the terminal;
The authentication information for obtaining the selected a variety of authentication modes of user and being inputted respectively under a variety of authentication modes;
Recognize based on default weight corresponding to every kind of authentication mode and based on each authentication information certification is obtained
Card result score obtains the certification total score of the user;
When the certification total score is greater than or equal to the pre- setting authentication score of the home equipment, referred to according to the control
It enables and controls the home equipment.
Preferably, the step of the user that the reception terminal is sent is to the control instruction of the home equipment to be controlled it
Prompt the user that a variety of authentication modes is therefrom selected to authenticate to the terminal with the default authentication mode of the transmission afterwards
The step of before it is further comprising the steps of:
Obtain the log-on message that the user is inputted on the terminal;
The title of user's home equipment to be controlled is obtained according to the control instruction;
Judge that the user is according to the log-on message, the title of the home equipment and the user right table prestored
The no control authority having to the home equipment;
If so, send default authentication mode prompted to the terminal user therefrom select a variety of authentication modes into
Row certification.
Preferably, the corresponding relationship of the title of User ID and controllable home equipment is preserved in the user right table;Institute
It states and judges whether the user has according to the log-on message, the title of the home equipment and the user right table prestored
The step of to the control authority of the home equipment specifically:
The User ID is obtained according to the log-on message;
Controllable household corresponding to the User ID is inquired from the user right table prestored according to the User ID
The title of equipment;
Judge in the title of the controllable home equipment whether include the home equipment title, if including, it is determined that
The user has the control authority to the home equipment.
Preferably, described based on default weight corresponding to every kind of authentication mode and based on each authentication information certification
Obtained authentication result score obtains the step of certification total score of the user and specifically includes:
The authentication information based on authentication mode described in every kind and the corresponding input of user authenticates the user, and
It obtains authenticating obtained authentication result score based on each authentication information;
Obtain the user's according to default weight corresponding to every kind of authentication mode and the authentication result score
Authenticate total score.
Preferably, described when the certification total score is greater than or equal to the pre- setting authentication score of the home equipment, root
It is further comprising the steps of before the step of controlling the home equipment according to the control instruction:
Obtain the quantity of the selected a variety of authentication modes of the user;
Divided according to the quantity of a variety of authentication modes and the title of the home equipment from the home equipment certification prestored
The pre- setting authentication score of the home equipment is obtained in number table.
Preferably, the default authentication mode includes recognition of face, User ID certification, fingerprint recognition, iris recognition, vocal print
Identification.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of power of home equipment
Control device is limited, the permission control device of the home equipment includes:
Command reception module, for receiving control instruction of the user to the home equipment to be controlled of terminal transmission;
Authorization prompt module, it is a variety of to prompt the user therefrom to select to the terminal for sending default authentication mode
Authentication mode is authenticated;
Authentication information receiving module, for obtaining the selected a variety of authentication modes of user and under a variety of authentication modes
The authentication information inputted respectively;
It authenticates score and obtains module, for described recognizing based on default weight corresponding to every kind of authentication mode and based on each
The card obtained authentication result score of authentification of message obtains the certification total score of the user;
Control module, for when it is described certification total score be greater than or equal to the home equipment pre- setting authentication score when,
The home equipment is controlled according to the control instruction.
Preferably, the default authentication mode includes recognition of face, User ID certification, fingerprint recognition, iris recognition, vocal print
Identification.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of computer equipment, institute
Stating computer equipment includes processor and memory, and the processor couples the memory, and the processor is at work
Execute instruction the authority control method to realize above-mentioned home equipment.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of storage medium, thereon
It is stored with computer program, the computer program is executed by processor the permission controlling party to realize above-mentioned home equipment
Method.
The beneficial effects of the present invention are: being in contrast to the prior art, the user couple that terminal is sent is received in the present invention
The control instruction for the home equipment to be controlled;Send default authentication mode prompts user therefrom to select a variety of certifications to terminal
Mode is authenticated;The certification letter for obtaining the selected a variety of authentication modes of user and being inputted respectively under a variety of authentication modes
Breath;Obtained authentication result score is authenticated based on default weight corresponding to every kind of authentication mode and based on each authentication information
Obtain the certification total score of user;When authenticating pre- setting authentication score of the total score more than or equal to home equipment, according to control
Instruction control home equipment.User is authenticated according to a variety of authentication modes, and is not less than home equipment in certification total score
Pre- setting authentication score when, just according to the control instruction of user control home equipment, reduce the rate of breaking through of unauthorized person, guarantee
The safety of home equipment.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing, in which:
Fig. 1 is the flow chart of the authority control method for the home equipment that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides home equipment authority control method flow chart;
Fig. 3 be another embodiment of the present invention provides home equipment authority control method flow chart;
Fig. 4 be another embodiment of the present invention provides the structure of permission control device of home equipment show
It is intended to;
Fig. 5 be another embodiment of the present invention provides computer equipment structural schematic diagram;
Fig. 6 be another embodiment of the present invention provides storage medium structural schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiments are merely a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is the flow chart of the authority control method for the home equipment that one embodiment of the invention provides, the power of home equipment
It limits control method and is applied to server or terminal control center, the authority control method of the home equipment is for managing user to family
The control authority of equipment is occupied, the authority control method of home equipment includes step S100, step S200, step S300, step
S400 and step S500.
Step S100: control instruction of the user to the home equipment to be controlled of terminal transmission is received.
Specifically, terminal can be mobile terminal used by a user, control home equipment is installed on mobile terminal
APP, after user logs in APP on mobile terminals, the optional home equipment to be controlled and control mode to be controlled selected
After the home equipment and control mode of system, mobile terminal sends control instruction to server or terminal control center.
Step S200: it sends default authentication mode and prompts user that a variety of authentication modes is therefrom selected to recognize to terminal
Card.
Specifically, default authentication mode includes recognition of face, User ID certification, fingerprint recognition, iris recognition, vocal print knowledge
Not, prompt user selects two or more authentication mode to authenticate from default authentication mode.
Step S300: the selected a variety of authentication modes of user are obtained and what is inputted respectively under a variety of authentication modes recognize
Demonstrate,prove information.
Specifically, obtaining the face figure that user is inputted as user has selected recognition of face, fingerprint recognition and Application on Voiceprint Recognition
Picture, fingerprint and voice signal.
Step S400: based on default weight corresponding to every kind of authentication mode and based on obtained by the certification of each authentication information
Authentication result score obtain user certification total score.
Specifically, the authentication information based on every kind of authentication mode and the corresponding input of user authenticates user, and obtain
Obtained authentication result score is authenticated based on each authentication information;The default weight according to corresponding to every kind of authentication mode and recognize
Demonstrate,prove the certification total score that result score obtains user.
Further specifically, according to user's face characteristic matching degree, iris feature matching degree and vocal print feature matching degree point
The authentication result score of recognition of face, the authentication result score of red film identification, the authentication result score of Application on Voiceprint Recognition (are not obtained
Point range is 0-1);According to user fingerprints identify whether by the authentication result score that obtains fingerprint recognition (be scored at 0 or 1,
By being 1, not by for 0), whether by obtaining the authentication result score of User ID certification (0 is scored at according to User ID certification
Or 1, by being 1, not by for 0).If user has selected recognition of face, fingerprint recognition and Application on Voiceprint Recognition, based on user's input
Facial image, fingerprint and voice signal carry out recognition of face certification, fingerprint recognition certification and Application on Voiceprint Recognition to user respectively and authenticate.
Recognition of face authentication result score 0.97 is obtained according to the face characteristic matching degree in face recognition process, it is logical according to fingerprint recognition
It crosses to obtain fingerprint recognition authentication result score 1, Application on Voiceprint Recognition is obtained according to the vocal print feature matching degree during Application on Voiceprint Recognition and is recognized
Demonstrate,prove result score 0.85.According to the default weight 0.8 of recognition of face, recognition of face authentication result score 0.97, fingerprint recognition
Default weight 0.6, fingerprint recognition authentication result score 1, the default weight 0.8 of Application on Voiceprint Recognition and Application on Voiceprint Recognition authentication result score
0.85 obtains the certification total score of user.
Further specifically, the certification total score of user: y=(y1*f1+y2*f2+...+ can be obtained according to the following formula
ym*fm)/m.Wherein, y is certification total score, and f1+f2+...+fm=m, f1, f2 ... fm are the default power of every kind of authentication mode
Weight, y1, y2 ... ym are the corresponding authentication result score of every kind of authentication mode.Therefore, the certification of user is total in above-mentioned specific example
Score are as follows: y=(0.97*0.8+1*0.6+0.85*0.8)/2.82=0.73.
Step S500: when authenticating pre- setting authentication score of the total score more than or equal to home equipment, according to control instruction
Control home equipment.
Specifically, the pre- setting authentication score of air-conditioning is 0.72, then user if user's home equipment to be controlled is air-conditioning
With the control authority to air-conditioning, the control instruction according to transmitted by terminal controls air-conditioning and executes corresponding operating.
In embodiments of the present invention, control instruction of the user to the home equipment to be controlled of terminal transmission is received;Hair
Send default authentication mode to terminal to prompt user that a variety of authentication modes is therefrom selected to authenticate;It is selected more to obtain user
Kind authentication mode and the authentication information inputted respectively under a variety of authentication modes;Based on default corresponding to every kind of authentication mode
Weight and the certification total score that obtained authentication result score acquisition user is authenticated based on each authentication information;When certification must
When dividing the pre- setting authentication score more than or equal to home equipment, home equipment is controlled according to control instruction.According to a variety of authenticating parties
Formula authenticates user, and when authenticating pre- setting authentication score of the total score not less than home equipment, just according to the control of user
System instruction control home equipment, reduce unauthorized person breaks through rate, ensure that the safety of home equipment.
Embodiment two
Fig. 2 be another embodiment of the present invention provides home equipment authority control method flow chart, the home equipment
Authority control method include above-mentioned steps S100, S300 to S500 on the basis of, further comprising the steps of S600, S700,
S800 and S900, step S600, S700, S800 and S900 are executed between step S100 and step S300.
Step S600: the log-on message that user is inputted at the terminal is obtained.
Specifically, user inputs the log-on message of user when logging in the APP of control home equipment on mobile terminals.
Step S700: the title of user's home equipment to be controlled is obtained according to control instruction.
Specifically, obtaining the title of user's home equipment to be controlled from control instruction transmitted by terminal.
Step S800: whether user is judged according to log-on message, the title of home equipment and the user right table prestored
With the control authority to home equipment.
Specifically, obtaining User ID according to log-on message;User is inquired from the user right table prestored according to User ID
The title of controllable home equipment corresponding to ID;Judge in the title of controllable home equipment whether include home equipment title,
If including, it is determined that user has the control authority to home equipment.Wherein, User ID and controllable is preserved in user right table
The corresponding relationship of the title of home equipment.The example of a user right table is given below, user right table is as shown in table 1:
Table 1
Step S900: user is prompted therefrom to select a variety of authentication modes to terminal if so, sending default authentication mode
It is authenticated.
Specifically, sending default authentication mode to movement when judging that user has the control authority to the home equipment
Terminal is to prompt user to select a variety of authentication modes to authenticate from default authentication mode.
In embodiments of the present invention, before user authenticates, the home equipment for first determining whether that user to be controlled is
It is no within the scope of its control authority, when within the scope of the control authority in user, just user is allowed to authenticate, further ensured
The safety of home equipment control.
Embodiment three
Fig. 3 be another embodiment of the present invention provides home equipment authority control method flow chart, the home equipment
Authority control method include above-mentioned steps S100, S600 to S900, S300 to S500 on the basis of, it is further comprising the steps of
S10 and S20, step S10 and S20 are executed between step S400 and step S500.
Step S10: the quantity of the selected a variety of authentication modes of user is obtained.
Specifically, default authentication mode includes recognition of face, User ID certification, fingerprint recognition, iris recognition, vocal print knowledge
Not, including five kinds of authentication modes, user can from five kinds of authentication modes optional two or three or four kinds or five kinds of authentication modes.
If user has selected recognition of face, fingerprint recognition and Application on Voiceprint Recognition authentication mode, a variety of authentication modes of user's selection
Quantity is 3.
Step S20: divided according to the quantity of a variety of authentication modes and the title of home equipment from the home equipment certification prestored
The pre- setting authentication score of home equipment is obtained in number table.
Specifically, server or terminal control center prestore home equipment certification score graph, home equipment authenticates score
It include the corresponding relationship between home equipment title, the quantity of authentication mode and pre- setting authentication score, home equipment certification in table
Fraction representation is for example shown in table 2.
Table 2
Specifically, if the authentication mode quantity that user selects is 3, it is desirable to which the home equipment of control is door lock, then obtains
The pre- setting authentication score of door lock is 0.83, and the only certification total score of user is greater than or equal to 0.83, just can control the door lock.
In the embodiment of the present invention, different pre- setting authentication scores is set according to the authentication mode of different number, improves house
The accuracy and accuracy for occupying the control of equipment permission greatly reduce non-permission user and obtain the several of home equipment control authority
Rate.
Example IV
Fig. 4 be another embodiment of the present invention provides home equipment permission control device structural schematic diagram, household sets
Standby permission control device includes command reception module 100, authorization prompt module 200, authentication information receiving module 300, certification
Score obtains module 400 and control module 500.
Command reception module 100 is used to receive control instruction of the user to the home equipment to be controlled of terminal transmission;
Authorization prompt module 200 is for sending default authentication mode to terminal to prompt user therefrom to select a variety of authenticating parties
Formula is authenticated;
Authentication information receiving module 300 is for obtaining the selected a variety of authentication modes of user and in a variety of authentication modes
The lower authentication information inputted respectively;
It authenticates score and obtains module 400 for based on default weight corresponding to every kind of authentication mode and based on each certification
The obtained authentication result score of authentification of message obtains the certification total score of user;
Control module 500 is used for when authenticating pre- setting authentication score of the total score more than or equal to home equipment, according to control
System instruction control home equipment.
Wherein, default authentication mode includes recognition of face, User ID certification, fingerprint recognition, iris recognition, Application on Voiceprint Recognition.
The specific implementation of the permission control device of home equipment provided in an embodiment of the present invention and the permission control of home equipment
The specific implementation of method processed is identical, and the specific implementation of the permission control device of home equipment sees above-described embodiment one to implementation
The description of example three, details are not described herein.
In the embodiment of the present invention, control instruction of the user to the home equipment to be controlled of terminal transmission is received;It sends
Default authentication mode prompts user that a variety of authentication modes is therefrom selected to authenticate to terminal;It is selected a variety of to obtain user
Authentication mode and the authentication information inputted respectively under a variety of authentication modes;Based on default power corresponding to every kind of authentication mode
Weight and the certification total score that obtained authentication result score acquisition user is authenticated based on each authentication information;When certification total score
More than or equal to home equipment pre- setting authentication score when, according to control instruction control home equipment.According to a variety of authentication modes
User is authenticated, and when authenticating pre- setting authentication score of the total score not less than home equipment, just according to the control of user
Instruction control home equipment, reduce unauthorized person breaks through rate, ensure that the safety of home equipment.
Embodiment five
Fig. 5 be another embodiment of the present invention provides computer equipment structural schematic diagram, computer equipment include processing
Device 600 and memory 700,600 coupled memory 700 of processor, processor 600 executes instruction above-mentioned to realize at work
The authority control method of home equipment in any embodiment.
Wherein, processor 600 can also be known as CPU (Central Processing Unit, central processing unit).Place
Managing device 600 may be a kind of IC chip, the processing capacity with signal.Processor 600 can also be general processor,
Digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable patrol
Collect device, discrete gate or transistor logic, discrete hardware components.General processor can be microprocessor or this at
Reason device is also possible to any conventional processor, but is not limited only to this.
Embodiment six
Refering to Fig. 6, Fig. 6 be another embodiment of the present invention provides storage medium schematic diagram, calculating in the present embodiment
Machine readable storage medium storing program for executing is stored with computer program 800, which can be executed by processor 600 on to realize
State the authority control method of the home equipment in any embodiment.
Optionally, which can be USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The terminal devices such as the medium or computer of sequence code, server, mobile phone, plate.
Control instruction of the user to the home equipment to be controlled of terminal transmission is received in the present invention;Send pre- setting authentication
Mode prompts user that a variety of authentication modes is therefrom selected to authenticate to terminal;Obtain the selected a variety of authentication modes of user
And the authentication information inputted respectively under a variety of authentication modes;Based on default weight corresponding to every kind of authentication mode and it is based on
Each authentication information authenticates the certification total score that obtained authentication result score obtains user;When certification total score is greater than or waits
When the pre- setting authentication score of home equipment, home equipment is controlled according to control instruction.According to a variety of authentication modes to user into
Row certification, and when authenticating pre- setting authentication score of the total score not less than home equipment, just controlled according to the control instruction of user
Home equipment, reduce unauthorized person breaks through rate, ensure that the safety of home equipment.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.